:root {
  --bg: #f3f6f5;
  --surface: #ffffff;
  --surface-2: #f8faf9;
  --ink: #101c19;
  --muted: #65716d;
  --line: #dbe3e0;
  --line-dark: #283632;
  --nav: #0d1715;
  --nav-2: #14221f;
  --green: #0b8159;
  --green-dark: #075f43;
  --lime: #00e524;
  --lime-soft: #dbffe2;
  --teal: #58c4c1;
  --blue: #2672ff;
  --amber: #b76a00;
  --amber-soft: #fff3da;
  --red: #c23e3e;
  --red-soft: #ffebeb;
  --shadow: 0 16px 45px rgba(9, 30, 24, .08);
  --shadow-lg: 0 30px 90px rgba(4, 20, 16, .26);
  --radius: 14px;
  --sidebar: 252px;
}

* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: hidden; scroll-behavior: smooth; }
body { max-width: 100%; margin: 0; overflow-x: hidden; color: var(--ink); background: var(--bg); font: 14px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.hidden { display: none !important; }
.kicker { margin: 0 0 5px; color: #65746e; font-size: 10px; font-weight: 850; letter-spacing: .17em; }
.kicker-light { color: rgba(255,255,255,.63); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 8px 14px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; font-weight: 750; cursor: pointer; transition: border-color .16s, background .16s, transform .16s; }
.button:hover { border-color: #9baaa4; transform: translateY(-1px); }
.button:disabled { opacity: .5; cursor: wait; transform: none; }
.button-primary { color: #06110e; background: var(--lime); border-color: var(--lime); }
.button-primary:hover { background: #22ee42; border-color: #22ee42; }
.button-dark { color: #fff; background: #12201d; border-color: #12201d; }
.button-full { width: 100%; min-height: 48px; font-size: 15px; }
.text-button { padding: 0; color: var(--green); background: none; border: 0; font-weight: 750; cursor: pointer; }
.icon-button { display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; color: inherit; background: transparent; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; color: #176044; background: #e4f6ed; border: 1px solid #c8eadb; border-radius: 99px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.status-pill.warning { color: #845000; background: var(--amber-soft); border-color: #f0d69e; }
.status-pill.critical, .status-pill.failed { color: #9d3030; background: var(--red-soft); border-color: #f3c4c4; }
.status-pill.pending { color: #56615d; background: #eef1f0; border-color: #dfe5e2; }
.status-pill.approved { color: #075f43; background: var(--lime-soft); border-color: #a9efb4; }

/* Login */
.login-page { min-height: 100vh; color: #fff; background: #020b0b; }
.login-page::before { content: ""; position: fixed; inset: 0; background: linear-gradient(90deg, rgba(1,14,13,.95) 0%, rgba(1,18,17,.78) 50%, rgba(0,10,10,.58) 100%), url('/assets/assets/login-mesh.png') center bottom / cover no-repeat; }
.login-page::after { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .17; background-image: radial-gradient(rgba(255,255,255,.7) .6px, transparent .7px); background-size: 22px 22px; mask-image: linear-gradient(to bottom, #000, transparent 65%); }
.login-shell { position: relative; z-index: 1; min-height: 100vh; display: grid; grid-template-rows: 86px 1fr 58px; }
.login-brandbar { display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(24px, 5vw, 78px); border-bottom: 1px solid rgba(255,255,255,.13); background: rgba(2,17,15,.54); backdrop-filter: blur(10px); }
.login-brandbar img { width: 146px; height: 60px; object-fit: contain; }
.login-brandbar span { color: rgba(255,255,255,.68); font-size: 13px; }
.login-main { width: min(1260px, 90vw); margin: auto; display: grid; grid-template-columns: 1fr 500px; align-items: center; gap: clamp(50px, 9vw, 150px); padding: 54px 0; }
.login-message { max-width: 650px; }
.login-message h1 { max-width: 620px; margin: 12px 0 18px; font-size: clamp(43px, 5.6vw, 74px); line-height: 1.02; letter-spacing: -.055em; }
.login-message > p { max-width: 600px; margin: 0; color: rgba(255,255,255,.72); font-size: 17px; line-height: 1.7; }
.login-benefits { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 42px 0 0; padding: 0; list-style: none; }
.login-benefits li { padding: 16px 14px; color: rgba(255,255,255,.83); background: rgba(4,29,25,.64); border: 1px solid rgba(255,255,255,.13); border-radius: 10px; font-size: 12px; backdrop-filter: blur(8px); }
.login-benefits span { display: block; margin-bottom: 13px; color: var(--lime); font-size: 10px; font-weight: 850; letter-spacing: .18em; }
.login-card { color: var(--ink); padding: 38px; background: rgba(255,255,255,.97); border: 1px solid rgba(255,255,255,.72); border-radius: 18px; box-shadow: var(--shadow-lg); }
.login-card-head { display: flex; align-items: center; gap: 15px; }
.brand-symbol { display: grid; place-items: center; width: 48px; height: 48px; color: #07150f; background: var(--lime); border-radius: 12px; font-weight: 900; letter-spacing: -.06em; }
.login-card h2 { margin: 0; font-size: 28px; letter-spacing: -.04em; }
.login-intro { margin: 22px 0 25px; color: var(--muted); }
.login-card label { display: block; margin: 16px 0 7px; font-weight: 750; }
.field-wrap { position: relative; }
.field-wrap input { width: 100%; height: 48px; padding: 0 55px 0 47px; color: var(--ink); background: #fff; border: 1px solid #bbc7c3; border-radius: 8px; outline: none; }
.field-wrap input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(11,129,89,.13); }
.field-mark { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #6e7b76; font-size: 11px; font-weight: 900; letter-spacing: -.06em; }
.field-action { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); padding: 6px 8px; color: var(--green); background: none; border: 0; font-size: 12px; font-weight: 750; cursor: pointer; }
.login-card .button-full { margin-top: 22px; justify-content: space-between; padding-inline: 18px; }
.login-security { display: flex; align-items: center; gap: 12px; margin-top: 25px; padding-top: 21px; border-top: 1px solid var(--line); }
.login-security p { margin: 0; color: var(--muted); font-size: 12px; }
.login-security strong { color: var(--ink); }
.security-dot { width: 10px; height: 10px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 5px rgba(11,129,89,.12); }
.login-footer { display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(24px, 5vw, 78px); color: rgba(255,255,255,.5); border-top: 1px solid rgba(255,255,255,.09); font-size: 11px; }
.form-error { margin-top: 14px; padding: 10px 12px; color: #9b2929; background: var(--red-soft); border: 1px solid #f2c4c4; border-radius: 8px; }

/* Console shell */
.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) 1fr; }
.sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; width: var(--sidebar); display: flex; flex-direction: column; color: #d8e0dd; background: var(--nav); border-right: 1px solid #24302d; }
.sidebar-brand { display: flex; align-items: center; gap: 10px; height: 82px; padding: 12px 22px; text-decoration: none; border-bottom: 1px solid #25312e; }
.sidebar-brand-logo { width: 118px; height: 51px; object-fit: contain; }
.sidebar-brand-symbol { display: none; width: 38px; height: 38px; object-fit: contain; }
.sidebar-brand span { display: none; }
.sidebar-nav { flex: 1; padding: 20px 12px; overflow-y: auto; }
.nav-label { margin: 18px 11px 8px; color: #82908b; font-size: 9px; font-weight: 850; letter-spacing: .18em; }
.sidebar-nav a, .nav-create { width: 100%; display: flex; align-items: center; gap: 11px; min-height: 43px; padding: 8px 11px; color: #acb8b4; background: transparent; border: 0; border-radius: 8px; text-decoration: none; text-align: left; font-weight: 650; cursor: pointer; }
.sidebar-nav a:hover, .nav-create:hover { color: #fff; background: #172521; }
.sidebar-nav a.active { color: #fff; background: #1b2c27; box-shadow: inset 3px 0 var(--lime); }
.sidebar-nav a b { margin-left: auto; min-width: 23px; padding: 2px 6px; color: #d7e0dc; background: #2b3b36; border-radius: 99px; font-size: 10px; text-align: center; }
.sidebar-nav a i { margin-left: auto; color: #73827c; font-style: normal; }
.nav-icon { display: grid; place-items: center; width: 25px; height: 25px; flex: 0 0 25px; color: #8ea49b; border: 1px solid #3b4945; border-radius: 6px; font-size: 8px; font-weight: 900; letter-spacing: -.02em; }
.active .nav-icon, .nav-create .nav-icon { color: #07150f; background: var(--lime); border-color: var(--lime); }
.nav-create { margin-top: 7px; color: #e8efec; border: 1px dashed #384943; }
.sidebar-foot { padding: 18px 18px 22px; border-top: 1px solid #25312e; }
.server-mini { display: flex; align-items: center; gap: 11px; }
.server-mini div { display: flex; flex-direction: column; }
.server-mini strong { color: #fff; font-size: 12px; }
.server-mini small { color: #8d9b96; font-size: 10px; }
.pulse { width: 9px; height: 9px; background: var(--lime); border-radius: 50%; box-shadow: 0 0 0 5px rgba(0,229,36,.11); }
.pulse.bad { background: var(--red); box-shadow: 0 0 0 5px rgba(194,62,62,.13); }
.sidebar-foot > p { margin: 14px 0 0; color: #71807b; font-size: 10px; line-height: 1.6; }
.main-column { grid-column: 2; min-width: 0; }
.topbar { position: sticky; z-index: 20; top: 0; height: 70px; display: flex; align-items: center; gap: 18px; padding: 0 26px; color: #e9efed; background: rgba(13,23,21,.97); border-bottom: 1px solid #283633; backdrop-filter: blur(12px); }
.search-box { max-width: 600px; flex: 1; display: flex; align-items: center; gap: 10px; height: 41px; padding: 0 12px; color: #7f918a; background: #111e1b; border: 1px solid #30403b; border-radius: 8px; }
.search-box input { min-width: 0; flex: 1; color: #e7eeeb; background: transparent; border: 0; outline: 0; }
.search-box kbd { padding: 3px 6px; color: #81908b; background: #1c2b27; border: 1px solid #35443f; border-radius: 5px; font-size: 9px; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.topbar .icon-button { color: #dce5e1; border-color: #34423e; }
.notification-button { position: relative; }
.notification-button b { position: absolute; right: -3px; top: -4px; min-width: 17px; height: 17px; display: grid; place-items: center; color: #fff; background: var(--red); border: 2px solid var(--nav); border-radius: 99px; font-size: 8px; }
.user-menu-wrap { position: relative; }
.user-button { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 4px 7px; color: #fff; background: transparent; border: 0; border-radius: 8px; text-align: left; cursor: pointer; }
.user-button:hover { background: #182622; }
.user-button > span:first-child { width: 34px; height: 34px; display: grid; place-items: center; color: #07150f; background: var(--lime); border-radius: 50%; font-size: 10px; font-weight: 900; }
.user-copy { display: flex; flex-direction: column; }
.user-copy strong { font-size: 12px; }
.user-copy small { max-width: 160px; color: #889791; font-size: 9px; overflow: hidden; text-overflow: ellipsis; }
.user-button i { color: #80908a; font-style: normal; }
.popover { position: absolute; z-index: 50; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); }
.user-popover { top: 51px; right: 0; width: 250px; padding: 14px; }
.user-popover div { padding: 3px 4px 13px; border-bottom: 1px solid var(--line); }
.user-popover strong, .user-popover small { display: block; }
.user-popover small { margin-top: 3px; color: var(--muted); }
.user-popover button { width: 100%; margin-top: 9px; padding: 9px; color: var(--red); background: transparent; border: 0; border-radius: 6px; text-align: left; font-weight: 700; cursor: pointer; }
.user-popover button:hover { background: var(--red-soft); }
.menu-toggle { display: grid; flex: 0 0 38px; }

.content { width: 100%; max-width: 1510px; min-width: 0; margin: 0 auto; padding: 34px clamp(22px, 3vw, 46px) 70px; }
.main-column, .topbar, .content, .view, .panel, .dashboard-grid > *, .metric-grid > *, .project-grid > *, .resource-grid > * { min-width: 0; }

body.sidebar-collapsed { --sidebar: 78px; }
body.sidebar-collapsed .sidebar-brand { justify-content: center; padding-inline: 12px; }
body.sidebar-collapsed .sidebar-brand-logo { display: none; }
body.sidebar-collapsed .sidebar-brand-symbol { display: block; }
body.sidebar-collapsed .sidebar-nav { padding-inline: 9px; }
body.sidebar-collapsed .sidebar-nav a, body.sidebar-collapsed .nav-create { justify-content: center; padding-inline: 8px; }
body.sidebar-collapsed .sidebar-nav a > span:not(.nav-icon), body.sidebar-collapsed .nav-create > span:not(.nav-icon), body.sidebar-collapsed .sidebar-nav a b, body.sidebar-collapsed .sidebar-nav a i, body.sidebar-collapsed .nav-label, body.sidebar-collapsed .server-mini div, body.sidebar-collapsed .sidebar-foot > p { display: none; }
body.sidebar-collapsed .sidebar-foot { padding-inline: 0; }
body.sidebar-collapsed .server-mini { justify-content: center; }
.view { display: none; }
.view.active { display: block; animation: enter .22s ease-out; }
@keyframes enter { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 26px; }
.page-heading h1 { margin: 0; font-size: clamp(28px, 3vw, 39px); line-height: 1.1; letter-spacing: -.045em; }
.page-heading p:not(.kicker) { margin: 7px 0 0; color: var(--muted); }
.heading-actions { display: flex; gap: 9px; }
.incident-banner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; margin-bottom: 20px; padding: 17px 19px; color: #fff; background: #552625; border: 1px solid #7a3533; border-radius: 11px; }
.incident-icon { width: 40px; height: 40px; display: grid; place-items: center; background: #e8544f; border-radius: 9px; font-size: 20px; font-weight: 900; }
.incident-banner span { display: block; color: #f1aaa7; font-size: 9px; font-weight: 850; letter-spacing: .14em; }
.incident-banner strong { display: block; margin-top: 2px; }
.incident-banner p { margin: 2px 0 0; color: #dcb8b6; font-size: 12px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.metric-card { position: relative; min-height: 173px; padding: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.metric-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, var(--green), transparent 75%); opacity: .55; }
.metric-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; }
.metric-symbol { padding: 4px 6px; color: var(--green); background: #e6f4ee; border-radius: 5px; font-size: 8px; font-style: normal; font-weight: 900; }
.metric-card > strong { display: block; margin: 15px 0 2px; font-size: 30px; line-height: 1; letter-spacing: -.04em; }
.metric-card > small { color: var(--muted); font-size: 10px; }
.accent-card { color: #fff; background: linear-gradient(135deg, #0d2c25, #0e5541); border-color: #174a3b; }
.accent-card::before { height: 100%; opacity: .18; background: radial-gradient(circle at 90% 8%, var(--lime), transparent 36%); }
.accent-card .metric-head, .accent-card > small { color: #b9cec7; }
.accent-card .metric-symbol { color: #07150f; background: var(--lime); }
.accent-card .text-button { position: absolute; bottom: 19px; left: 20px; color: var(--lime); }
.meter { height: 7px; margin-top: 20px; overflow: hidden; background: #e7ecea; border-radius: 99px; }
.meter i { display: block; width: 0; height: 100%; background: var(--green); border-radius: inherit; transition: width .45s ease; }
.meter i.warning { background: var(--amber); }
.meter i.critical { background: var(--red); }
.micro-chart { position: absolute; right: 17px; bottom: 18px; left: 17px; height: 30px; display: flex; align-items: flex-end; justify-content: flex-end; gap: 5px; opacity: .64; }
.micro-chart i { width: 9px; height: 23%; background: #63b89a; border-radius: 2px 2px 0 0; }
.micro-chart i:nth-child(2) { height: 47%; }.micro-chart i:nth-child(3) { height: 31%; }.micro-chart i:nth-child(4) { height: 68%; }.micro-chart i:nth-child(5) { height: 45%; }.micro-chart i:nth-child(6) { height: 76%; }.micro-chart i:nth-child(7) { height: 55%; }.micro-chart i:nth-child(8) { height: 88%; background: var(--green); }
.dashboard-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; margin-top: 14px; }
.panel { padding: 21px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-bottom: 16px; }
.panel-heading h2 { margin: 0; font-size: 20px; letter-spacing: -.035em; }
.recent-projects { border-top: 1px solid var(--line); }
.recent-row { display: grid; grid-template-columns: minmax(150px, 1fr) auto auto; align-items: center; gap: 16px; padding: 14px 2px; border-bottom: 1px solid var(--line); }
.recent-row:last-child { border-bottom: 0; }
.recent-main { min-width: 0; display: flex; align-items: center; gap: 11px; }
.runtime-badge { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 34px; color: #075f43; background: var(--lime-soft); border: 1px solid #b5edbf; border-radius: 8px; font-size: 9px; font-weight: 900; }
.recent-main div { min-width: 0; }
.recent-main strong, .recent-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-main small { color: var(--muted); font-size: 10px; }
.capacity-row { margin: 8px 0 20px; }
.capacity-row > div:first-child { display: flex; align-items: center; justify-content: space-between; }
.capacity-row span { color: var(--muted); font-size: 12px; }
.capacity-row .meter { margin-top: 9px; }
.panel-note { margin: 20px -5px -4px; padding: 13px; color: #5c6a65; background: #f3f7f5; border-radius: 8px; font-size: 11px; }
.quickstart-panel { margin-top: 14px; display: grid; grid-template-columns: minmax(260px,.85fr) 1.7fr; align-items: center; gap: 32px; background: #fdfefd; }
.quickstart-copy h2 { margin: 0; font-size: 21px; letter-spacing: -.035em; }
.quickstart-copy > p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.flow-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; margin: 0; padding: 0; list-style: none; }
.flow-steps li { position: relative; display: flex; align-items: center; gap: 9px; padding: 12px 9px; background: #f3f7f5; border-radius: 8px; }
.flow-steps li:not(:last-child)::after { content: ""; position: absolute; z-index: 2; right: -8px; width: 10px; height: 2px; background: #aebbb6; }
.flow-steps li > span { width: 24px; height: 24px; display: grid; place-items: center; flex: 0 0 24px; color: #fff; background: var(--green); border-radius: 50%; font-size: 9px; font-weight: 850; }
.flow-steps strong, .flow-steps small { display: block; }
.flow-steps strong { font-size: 11px; }.flow-steps small { color: var(--muted); font-size: 9px; }
.skeleton-row { height: 54px; margin: 10px 0; background: linear-gradient(90deg,#edf1ef,#f7f9f8,#edf1ef); background-size: 200% 100%; border-radius: 8px; animation: shimmer 1.6s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Projects and catalog */
.filterbar { display: flex; gap: 10px; margin-bottom: 16px; }
.filterbar input, .filterbar select { height: 42px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; outline: 0; }
.filterbar input { min-width: 260px; flex: 1; }.filterbar select { width: 210px; }
.filterbar input:focus, .filterbar select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(11,129,89,.1); }
.project-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.project-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 26px rgba(9,30,24,.05); overflow: hidden; }
.project-card-head { display: flex; justify-content: space-between; gap: 15px; padding: 18px; border-bottom: 1px solid var(--line); }
.project-title { min-width: 0; display: flex; gap: 12px; }
.project-title > div:last-child { min-width: 0; }
.project-title h3 { margin: 0; font-size: 17px; letter-spacing: -.025em; }
.project-title a { display: block; max-width: 330px; margin-top: 3px; color: var(--green); font-size: 10px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.domain-muted { display: block; max-width: 330px; margin-top: 3px; color: #89948f; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-card-body { padding: 16px 18px; }
.project-image { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.project-image code { min-width: 0; padding: 4px 7px; color: #385149; background: #f2f6f4; border-radius: 5px; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resource-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 13px 0; }
.chip { padding: 4px 7px; color: #4d5d57; background: #f0f4f2; border: 1px solid #e2e8e5; border-radius: 5px; font-size: 9px; font-weight: 750; }
.validation-strip { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px; background: #f7f9f8; border-radius: 7px; }
.validation-strip p { margin: 0; color: var(--muted); font-size: 10px; }
.project-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 13px 18px; background: #fbfcfc; border-top: 1px solid var(--line); }
.project-actions button { padding: 7px 9px; color: #3b4c46; background: #fff; border: 1px solid var(--line); border-radius: 6px; font-size: 10px; font-weight: 750; cursor: pointer; }
.project-actions button:hover { border-color: #9baaa4; }
.project-actions button.primary-action { color: #075f43; background: var(--lime-soft); border-color: #b7edc0; }
.project-actions button.danger-action { margin-left: auto; color: #9d3030; background: #fff7f7; border-color: #f0cccc; }
.deployment-error { padding: 12px; color: #812d2d; background: var(--red-soft); border: 1px solid #efc4c4; border-radius: 8px; }
.deployment-error strong, .deployment-error p { display: block; margin: 0; }
.deployment-error p { margin-top: 4px; font-size: 10px; line-height: 1.55; overflow-wrap: anywhere; }
.empty-state { grid-column: 1/-1; min-height: 300px; display: grid; place-items: center; align-content: center; text-align: center; color: var(--muted); background: #fff; border: 1px dashed #cbd6d2; border-radius: 12px; }
.empty-state > span { width: 56px; height: 56px; display: grid; place-items: center; color: var(--green); background: #edf7f3; border-radius: 14px; font-weight: 900; }
.empty-state h3 { margin: 15px 0 4px; color: var(--ink); }
.empty-state p { margin: 0 0 18px; }
.notice-card { display: flex; gap: 14px; margin-bottom: 18px; padding: 15px 17px; background: #eaf5f4; border: 1px solid #c5e2df; border-radius: 10px; }
.notice-card > span { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 28px; color: #0b655e; background: #fff; border-radius: 50%; font-weight: 900; }
.notice-card p { margin: 2px 0 0; color: #49625d; font-size: 12px; }
.catalog-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.catalog-card { display: flex; flex-direction: column; min-height: 245px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: transform .16s, box-shadow .16s, border-color .16s; }
.catalog-card:hover { transform: translateY(-2px); border-color: #aabcb5; box-shadow: var(--shadow); }
.catalog-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.tech-mark { width: 43px; height: 43px; display: grid; place-items: center; flex: 0 0 43px; color: #075f43; background: var(--lime-soft); border: 1px solid #b7efc1; border-radius: 10px; font-size: 11px; font-weight: 900; overflow: hidden; }
.tech-logo { background: #fff; }
.tech-logo img { width: 76%; height: 76%; object-fit: contain; }
.runtime-badge.tech-logo img { width: 74%; height: 74%; object-fit: contain; }
.catalog-category { padding: 4px 7px; color: #5d6b66; background: #f1f4f3; border-radius: 5px; font-size: 9px; font-weight: 750; }
.catalog-card h3 { margin: 15px 0 3px; font-size: 18px; }.catalog-card > p { margin: 0; color: var(--muted); font-size: 12px; }
.catalog-resources { display: flex; flex-wrap: wrap; gap: 6px; margin: 15px 0; }
.compatibility-chip { color: #075f43; background: #edfaf3; border-color: #c7ead8; }
.catalog-card footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.catalog-card footer small { color: var(--muted); font-size: 9px; }.catalog-card footer button { white-space: nowrap; }

/* Resources and activity */
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 9px; }
table { width: 100%; min-width: 720px; border-collapse: collapse; }
th, td { padding: 11px 13px; text-align: left; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { color: #6b7873; background: #f7f9f8; font-size: 9px; letter-spacing: .08em; }
td { font-size: 11px; }
td:first-child { font-weight: 750; }
td:last-child { max-width: 330px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resource-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.alert-list, .notification-list { display: grid; gap: 8px; }
.alert-item { display: flex; gap: 11px; padding: 12px; background: #f7f9f8; border-left: 3px solid #84928d; border-radius: 7px; }
.alert-item.critical { background: var(--red-soft); border-color: var(--red); }
.alert-item.warning { background: var(--amber-soft); border-color: var(--amber); }
.alert-item strong, .alert-item span { display: block; }.alert-item span { color: var(--muted); font-size: 10px; }
.terminal-output { min-height: 225px; max-height: 420px; margin: 0; padding: 15px; color: #cfe2da; background: #0c1613; border: 1px solid #23332e; border-radius: 8px; font: 11px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; overflow: auto; }
.terminal-output.large { min-height: 420px; }
.activity-list { position: relative; padding-left: 29px; }
.activity-list::before { content: ""; position: absolute; left: 10px; top: 10px; bottom: 10px; width: 1px; background: var(--line); }
.activity-item { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 11px 0 16px; border-bottom: 1px solid var(--line); }
.activity-item::before { content: ""; position: absolute; left: -24px; top: 17px; width: 9px; height: 9px; background: var(--green); border: 3px solid #e0f2eb; border-radius: 50%; }
.activity-item h3 { margin: 0; font-size: 13px; }.activity-item p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.activity-item time { color: #7c8984; font-size: 10px; white-space: nowrap; }

/* Drawers, dialogs and forms */
.notification-panel { position: fixed; z-index: 60; right: 20px; top: 78px; width: min(390px, calc(100vw - 36px)); max-height: 70vh; padding: 17px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); overflow: auto; }
.popover-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }.popover-heading h3 { margin: 0; font-size: 19px; }
dialog { color: var(--ink); background: #fff; border: 0; border-radius: 15px; box-shadow: var(--shadow-lg); }
dialog::backdrop { background: rgba(4,14,12,.73); backdrop-filter: blur(3px); }
.wizard-dialog { width: min(910px, 94vw); max-height: 92vh; padding: 0; overflow: hidden; }
.wizard-dialog form { display: flex; flex-direction: column; max-height: 92vh; }
.detail-dialog { width: min(920px, 94vw); max-height: 90vh; padding: 22px; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 21px 24px 17px; border-bottom: 1px solid var(--line); }
.detail-dialog .dialog-header { padding: 0 0 17px; margin-bottom: 17px; }
.dialog-header h2 { margin: 0; font-size: 24px; letter-spacing: -.035em; }
.wizard-steps { display: grid; grid-template-columns: repeat(3,1fr); padding: 0 24px; background: #f7f9f8; border-bottom: 1px solid var(--line); }
.wizard-steps button { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 58px; color: #77847f; background: transparent; border: 0; font-weight: 750; cursor: default; }
.wizard-steps button::after { content: ""; position: absolute; bottom: -1px; left: 20%; right: 20%; height: 2px; background: transparent; }
.wizard-steps button span { width: 23px; height: 23px; display: grid; place-items: center; border: 1px solid #aebbb6; border-radius: 50%; font-size: 9px; }
.wizard-steps button.active { color: var(--green); }.wizard-steps button.active::after { background: var(--green); }.wizard-steps button.active span { color: #fff; background: var(--green); border-color: var(--green); }
.wizard-step { display: none; min-height: 0; padding: 23px 26px; overflow-y: auto; }.wizard-step.active { display: block; flex: 1; }
.step-intro { margin-bottom: 17px; }.step-intro h3 { margin: 0; font-size: 19px; }.step-intro p { margin: 4px 0 0; color: var(--muted); }
.template-search { display: flex; align-items: center; gap: 9px; margin: -3px 0 14px; padding: 0 12px; color: #75827d; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.template-search:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(11,129,89,.1); }
.template-search input { width: 100%; height: 42px; padding: 0; color: var(--ink); background: transparent; border: 0; outline: 0; }
.wizard-templates { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.wizard-template { position: relative; min-width: 0; min-height: 154px; padding: 14px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 9px; text-align: left; cursor: pointer; }
.wizard-template:hover { border-color: #91a59d; }.wizard-template.selected { background: #f0faf5; border-color: var(--green); box-shadow: 0 0 0 2px rgba(11,129,89,.1); }
.wizard-template .tech-mark { width: 33px; height: 33px; border-radius: 8px; }
.wizard-template strong { display: block; margin-top: 10px; color: var(--ink); }.wizard-template small { display: block; color: var(--muted); font-size: 9px; }.wizard-template em { display: block; margin-top: 8px; color: var(--green); font-size: 9px; font-style: normal; font-weight: 700; }
.wizard-empty { grid-column: 1/-1; padding: 28px; color: var(--muted); background: #f8faf9; border: 1px dashed var(--line); border-radius: 9px; text-align: center; }
.source-mode-box { margin: 16px 0 12px; padding: 0; border: 0; }
.source-mode-box legend { margin-bottom: 7px; color: #31423c; font-weight: 750; }
.source-mode-choices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.single-source .source-mode-choices { grid-template-columns: 1fr; }
.source-mode { min-width: 0; padding: 12px; color: var(--ink); background: #fff; border: 1px solid #bdc9c5; border-radius: 8px; text-align: left; cursor: pointer; }
.source-mode.selected { background: #edf9f3; border-color: var(--green); box-shadow: 0 0 0 2px rgba(11,129,89,.09); }
.source-mode strong, .source-mode small { display: block; }.source-mode small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.artifact-current { display: block; margin-top: 7px; padding: 7px 9px; color: #176044; background: #e8f7ef; border-radius: 6px; font-size: 9px; font-weight: 650; }
form > .wizard-step label, .wizard-step > label { display: block; margin: 13px 0; color: #31423c; font-weight: 750; }
form input, form textarea, form select { width: 100%; margin-top: 6px; padding: 10px 11px; color: var(--ink); background: #fff; border: 1px solid #bdc9c5; border-radius: 7px; outline: 0; }
form input:focus, form textarea:focus, form select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(11,129,89,.1); }
form textarea { resize: vertical; font: 11px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
form label small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; font-weight: 500; }
.form-grid { display: grid; gap: 12px; }.form-grid.two { grid-template-columns: 1fr 1fr; }.form-grid.three { grid-template-columns: 1fr 1fr 1fr; }
.addon-box { margin: 15px 0; padding: 8px 13px; background: #f7f9f8; border: 1px solid var(--line); border-radius: 8px; }
.addon-box legend { padding: 0 5px; color: #5a6863; font-size: 10px; font-weight: 800; }
.check-row { display: flex !important; align-items: flex-start; gap: 10px; margin: 9px 0 !important; cursor: pointer; }
.check-row input { width: 16px; height: 16px; flex: 0 0 16px; margin: 2px 0 0; accent-color: var(--green); }
.check-row strong, .check-row small { display: block; }.check-row small { margin: 1px 0 0; }.check-row.disabled { opacity: .6; cursor: not-allowed; }
.confirmation { margin-top: 17px !important; padding: 12px; background: #f5f8f7; border: 1px solid var(--line); border-radius: 8px; }
.dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 24px; background: #f8faf9; border-top: 1px solid var(--line); }
.dialog-footer > div { display: flex; gap: 8px; }
.assessment-card { padding: 17px; background: #f5f8f7; border: 1px solid var(--line); border-left: 4px solid #82918b; border-radius: 9px; }
.assessment-card.ready { background: #edfaf3; border-color: #bce5cf; border-left-color: var(--green); }.assessment-card.warning { background: var(--amber-soft); border-color: #efd7a6; border-left-color: var(--amber); }.assessment-card.blocked { background: var(--red-soft); border-color: #efc4c4; border-left-color: var(--red); }
.assessment-card h3 { margin: 0; font-size: 17px; }.assessment-card > p { margin: 4px 0 0; color: var(--muted); }.assessment-card ul { margin: 11px 0 0; padding-left: 20px; color: #4d5b56; font-size: 11px; }
.assessment-spinner { width: 24px; height: 24px; border: 3px solid #d8e1de; border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.review-card { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; margin-top: 12px; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-radius: 8px; }
.review-card > div { padding: 12px; background: #fff; }.review-card span, .review-card strong { display: block; }.review-card span { color: var(--muted); font-size: 9px; }.review-card strong { margin-top: 2px; font-size: 11px; }
.validation-results { display: grid; gap: 8px; }
.validation-check { display: grid; grid-template-columns: auto 1fr; gap: 11px; padding: 12px; background: #f7f9f8; border-radius: 8px; }
.check-mark { width: 25px; height: 25px; display: grid; place-items: center; color: #fff; background: var(--green); border-radius: 50%; font-size: 10px; font-weight: 900; }.check-mark.warning { background: var(--amber); }.check-mark.failed { background: var(--red); }
.validation-check strong, .validation-check small { display: block; }.validation-check small { margin-top: 2px; color: var(--muted); }
#toast { position: fixed; z-index: 100; right: 25px; bottom: 25px; max-width: 390px; padding: 12px 16px; color: #fff; background: #101e1a; border: 1px solid #32413c; border-radius: 8px; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(12px); transition: .2s; pointer-events: none; }
#toast.show { opacity: 1; transform: none; }

@media (max-width: 1180px) {
  :root { --sidebar: 220px; }
  .metric-grid { grid-template-columns: repeat(2,1fr); }
  .catalog-grid { grid-template-columns: repeat(2,1fr); }
  .quickstart-panel { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root { --sidebar: 252px; }
  body.sidebar-collapsed { --sidebar: 252px; }
  .app-shell { display: block; }
  .sidebar { transform: translateX(-105%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: translateX(0); }
  body.sidebar-collapsed .sidebar-brand { justify-content: flex-start; padding: 12px 22px; }
  body.sidebar-collapsed .sidebar-brand-logo { display: block; }
  body.sidebar-collapsed .sidebar-brand-symbol { display: none; }
  body.sidebar-collapsed .sidebar-nav { padding: 20px 12px; }
  body.sidebar-collapsed .sidebar-nav a, body.sidebar-collapsed .nav-create { justify-content: flex-start; padding: 8px 11px; }
  body.sidebar-collapsed .sidebar-nav a > span:not(.nav-icon), body.sidebar-collapsed .nav-create > span:not(.nav-icon), body.sidebar-collapsed .sidebar-nav a b, body.sidebar-collapsed .sidebar-nav a i, body.sidebar-collapsed .nav-label, body.sidebar-collapsed .server-mini div, body.sidebar-collapsed .sidebar-foot > p { display: initial; }
  body.sidebar-collapsed .sidebar-foot { padding: 18px 18px 22px; }
  body.sidebar-collapsed .server-mini { justify-content: flex-start; }
  .main-column { width: 100%; }
  .menu-toggle { display: grid; }
  .content { width: 100%; }
  .dashboard-grid, .resource-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .login-main { grid-template-columns: 1fr; gap: 35px; }
  .login-message { display: none; }
  .login-card { width: min(500px,100%); margin: auto; }
}
@media (max-width: 680px) {
  .topbar { padding: 0 12px; }.search-box { display: none; }.user-copy { display: none; }
  .content { padding: 25px 14px 50px; }
  .page-heading { align-items: flex-start; flex-direction: column; }.page-heading .heading-actions { width: 100%; flex-wrap: wrap; }
  .metric-grid { grid-template-columns: 1fr; }
  .flow-steps { grid-template-columns: 1fr 1fr; }.flow-steps li::after { display: none; }
  .catalog-grid, .wizard-templates { grid-template-columns: 1fr 1fr; }
  .form-grid.two, .form-grid.three { grid-template-columns: 1fr; }
  .review-card { grid-template-columns: 1fr; }
  .incident-banner { grid-template-columns: auto 1fr; }.incident-banner .button { grid-column: 1/-1; }
  .recent-row { grid-template-columns: 1fr auto; }.recent-row > :last-child { display: none; }
  .filterbar { flex-direction: column; }.filterbar input, .filterbar select { width: 100%; min-width: 0; }
  .wizard-steps button { font-size: 0; }.wizard-steps button span { font-size: 9px; }
  .wizard-dialog { width: 100vw; max-width: 100vw; max-height: 100dvh; margin: 0; border-radius: 0; }
  .wizard-dialog form { max-height: 100dvh; }
  .dialog-header { padding: 17px 16px 13px; }.dialog-header h2 { font-size: 21px; }
  .wizard-step { padding: 18px 15px; }.wizard-steps { padding-inline: 8px; }
  .source-mode-choices { grid-template-columns: 1fr; }
  .dialog-footer { align-items: stretch; flex-direction: column-reverse; padding: 12px 15px; }.dialog-footer > div { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }.dialog-footer .button { width: 100%; }
  .project-actions button.danger-action { margin-left: 0; }
  .login-brandbar span { display: none; }.login-card { padding: 27px 22px; }.login-footer { font-size: 9px; }
}
@media (max-width: 430px) {
  .catalog-grid, .wizard-templates { grid-template-columns: 1fr; }
  .topbar .button-primary span:first-child { display: none; }
  .login-shell { grid-template-rows: 70px 1fr 50px; }.login-main { width: 92vw; padding: 28px 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
