:root {
  --blue: #2878f0;
  --blue-dark: #145ec9;
  --blue-soft: #edf5ff;
  --navy: #102d5b;
  --navy-light: #1b4b96;
  --ink: #142033;
  --muted: #66758c;
  --subtle: #8d9aab;
  --line: #e3e9f1;
  --canvas: #f4f7fb;
  --surface: #fff;
  --success: #079455;
  --success-soft: #eafaf2;
  --danger: #d92d20;
  --danger-soft: #fff1f0;
  --warning: #b54708;
  --warning-soft: #fff7ed;
  --violet: #7a5af8;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .025), 0 6px 22px rgba(29, 44, 76, .035);
  --shadow-lg: 0 22px 70px rgba(20, 32, 51, .12);
}

[hidden] { display: none !important; }
* { box-sizing: border-box; }
html { background: var(--canvas); }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { transition: border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(40, 120, 240, .18); outline-offset: 2px; }
code { padding: 2px 5px; border-radius: 5px; background: #f1f4f8; color: #344054; font: 500 12px ui-monospace, SFMono-Regular, Menlo, monospace; }

.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 15% 12%, rgba(40, 120, 240, .17), transparent 26%), radial-gradient(circle at 90% 90%, rgba(122, 90, 248, .09), transparent 28%), var(--canvas); }
.login-card { width: min(440px, 100%); padding: 42px; border: 1px solid rgba(20, 32, 51, .07); border-radius: 26px; background: rgba(255, 255, 255, .96); box-shadow: var(--shadow-lg); }
.session-panel { margin-bottom: 24px; }
.login-brand, .brand-row { display: flex; align-items: center; gap: 12px; }
.login-brand strong, .login-brand span, .brand-row strong, .brand-row span { display: block; }
.login-brand strong { font-size: 16px; }
.login-brand span, .brand-row span { margin-top: 3px; color: var(--subtle); font-size: 11px; }
.brand-mark { display: block; width: 52px; height: 52px; object-fit: contain; }
.brand-mark.small { width: 42px; height: 42px; }
.eyebrow, .panel-kicker { margin: 24px 0 7px; color: var(--blue); font-size: 10px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.login-card h1, .topbar h1 { margin: 0; font-size: 30px; letter-spacing: -.035em; }
.login-copy { margin: 10px 0 0; font-size: 13px; line-height: 1.65; }
.muted { color: var(--muted); }
.stack { display: grid; gap: 17px; margin-top: 28px; }
label { display: grid; gap: 7px; color: #344054; font-size: 12px; font-weight: 750; }
label small { color: var(--subtle); font-size: 10px; font-weight: 500; line-height: 1.45; }
input, select, textarea { width: 100%; border: 1px solid #cfd8e5; border-radius: 11px; background: #fff; color: var(--ink); padding: 11px 13px; outline: none; }
input::placeholder, textarea::placeholder { color: #a3adbb; }
textarea { resize: vertical; line-height: 1.6; }
input:hover, select:hover, textarea:hover { border-color: #b8c5d7; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(40, 120, 240, .1); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; border: 0; border-radius: 10px; padding: 10px 15px; font-size: 12px; font-weight: 800; text-decoration: none; white-space: nowrap; cursor: pointer; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.button.primary { background: var(--blue); color: #fff; box-shadow: 0 7px 16px rgba(40, 120, 240, .2); }
.button.primary:hover { background: var(--blue-dark); }
.button.secondary { border: 1px solid var(--line); background: #fff; color: #3b4a60; }
.button.secondary:hover { border-color: #c8d2e0; background: #fafcff; }
.button.danger { background: var(--danger-soft); color: var(--danger); }
.button.white { background: #fff; color: #175fc7; box-shadow: 0 8px 20px rgba(0, 28, 70, .18); }
.button.white:hover { background: #f4f8ff; }
.button.wide { width: 100%; }
.button.compact { min-height: 34px; padding: 7px 11px; font-size: 11px; }
.security-note { margin: 19px 0 0; color: var(--subtle); font-size: 10px; line-height: 1.6; }
.secure-row { display: flex; align-items: flex-start; gap: 8px; }
.secure-icon { display: grid; place-items: center; flex: 0 0 18px; height: 18px; border-radius: 50%; background: var(--success-soft); color: var(--success); font-weight: 850; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; width: 244px; padding: 24px 17px 18px; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: #fff; }
.brand-row { min-height: 52px; padding: 0 7px 24px; }
.brand-row > div:nth-child(2) { min-width: 0; }
.brand-row strong { font-size: 15px; }
.sidebar-close { display: none; margin-left: auto; }
.sidebar nav { display: grid; gap: 4px; }
.nav-item { display: flex; align-items: center; gap: 11px; width: 100%; border: 0; border-radius: 11px; background: transparent; color: #56657a; padding: 10px 12px; text-align: left; font-size: 12px; font-weight: 720; cursor: pointer; }
.nav-icon { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 7px; color: #7f8da0; font-size: 15px; font-weight: 700; }
.nav-item:hover { background: #f6f8fb; color: var(--ink); }
.nav-item.active { background: var(--blue-soft); color: var(--blue); }
.nav-item.active .nav-icon { background: #fff; color: var(--blue); box-shadow: 0 2px 8px rgba(40, 120, 240, .1); }
.sidebar-foot { margin-top: auto; padding: 17px 6px 3px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 34px 1fr 30px; align-items: center; gap: 9px; }
.admin-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: #eef4fb; color: #4d627d; font-size: 11px; font-weight: 850; }
.admin-meta { min-width: 0; }
.admin-meta strong, .admin-meta span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-meta strong { color: #344054; font-size: 11px; }
.admin-meta span { margin-top: 2px; color: var(--subtle); font-size: 9px; }
.icon-button { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 9px; background: transparent; color: #738198; cursor: pointer; }
.icon-button:hover { background: #f0f4f8; color: var(--ink); }
.sidebar-close { display: none; }
.sidebar-backdrop { position: fixed; z-index: 25; inset: 0; background: rgba(10, 24, 44, .36); backdrop-filter: blur(2px); }

.workspace { min-width: 0; margin-left: 244px; padding: 0 32px 48px; }
.topbar { min-height: 116px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.topbar-title { display: flex; align-items: center; gap: 12px; }
.topbar .eyebrow { margin: 0 0 5px; }
.topbar h1 { font-size: 27px; }
.view-description { margin: 5px 0 0; color: var(--subtle); font-size: 11px; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.menu-button { display: none; }
.health { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #56657a; font-size: 10px; font-weight: 750; }
.health-dot { width: 7px; height: 7px; border-radius: 50%; background: #f79009; box-shadow: 0 0 0 4px #fef0c7; }
.health.ok .health-dot { background: #12b76a; box-shadow: 0 0 0 4px #d1fadf; }
.health.error .health-dot { background: #f04438; box-shadow: 0 0 0 4px #fee4e2; }
.view { display: none; animation: view-in .2s ease; }
.view.active-view { display: block; }
@keyframes view-in { from { opacity: .4; transform: translateY(3px); } to { opacity: 1; transform: none; } }

.readiness-banner { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; margin-bottom: 15px; padding: 12px 15px; border: 1px solid #fedf89; border-radius: 13px; background: var(--warning-soft); }
.banner-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: #fff0c8; color: var(--warning); font-weight: 900; }
.readiness-banner strong { display: block; color: #7a2e0e; font-size: 11px; }
.readiness-banner p { margin: 3px 0 0; color: #9a4b1b; font-size: 10px; }
.text-button { border: 0; background: transparent; color: var(--blue); font-size: 11px; font-weight: 800; cursor: pointer; padding: 4px; }
.text-button:hover { color: var(--blue-dark); }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.metric { min-height: 136px; padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: var(--shadow-sm); }
.metric-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.metric span, .metric small { display: block; color: var(--muted); font-size: 11px; }
.metric strong { display: block; margin: 14px 0 6px; font-size: 32px; line-height: 1; letter-spacing: -.045em; }
.metric-icon { display: grid !important; place-items: center; width: 31px; height: 31px; border-radius: 10px; font-size: 15px !important; font-weight: 850; }
.metric-icon.blue { background: var(--blue-soft); color: var(--blue); }
.metric-icon.violet { background: #f2efff; color: var(--violet); }
.metric-icon.green { background: var(--success-soft); color: var(--success); }
.metric.accent { border-color: rgba(40, 120, 240, .2); background: linear-gradient(145deg, #fff, #f2f7ff); }
.two-column { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 14px; margin-top: 14px; }
.panel { margin-top: 14px; padding: 21px; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: var(--shadow-sm); }
.two-column > .panel, .release-aside > .panel, .system-grid > .panel { margin-top: 0; }
.panel h2 { margin: 0; font-size: 17px; letter-spacing: -.02em; }
.panel h3 { margin: 0; font-size: 14px; }
.panel-kicker { margin: 0 0 6px; font-size: 9px; }
.panel-kicker.light { color: #8bbdff; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.release-spotlight { min-height: 226px; padding: 26px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; overflow: hidden; position: relative; border: 0; background: linear-gradient(124deg, #0e2a57 0%, #15448c 66%, #256bd2 130%); color: #fff; }
.release-spotlight::before { content: ""; position: absolute; right: -72px; top: -95px; width: 260px; height: 260px; border: 1px solid rgba(255, 255, 255, .11); border-radius: 50%; box-shadow: 0 0 0 45px rgba(255, 255, 255, .025), 0 0 0 90px rgba(255, 255, 255, .02); }
.spotlight-content { position: relative; z-index: 1; min-width: 0; }
.spotlight-top { display: flex; align-items: center; gap: 8px; margin-bottom: 23px; }
.spotlight-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 10px; background: rgba(255, 255, 255, .12); font-size: 16px; }
.soft-pill { padding: 5px 8px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; background: rgba(255, 255, 255, .08); color: #d8e8ff; font-size: 9px; font-weight: 800; }
.release-spotlight h2 { font-size: 22px; }
.release-spotlight p:not(.panel-kicker) { max-width: 590px; margin: 9px 0 0; color: #c8dbf6; font-size: 11px; line-height: 1.6; }
.spotlight-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.spotlight-meta span { color: #adcaee; font-size: 9px; }
.spotlight-meta span::before { content: "✓"; margin-right: 5px; color: #70d9ad; font-weight: 900; }
.release-spotlight .button { position: relative; z-index: 1; }
.service-panel { min-height: 226px; display: flex; flex-direction: column; }
.status-pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 8px; font-size: 9px; font-weight: 850; white-space: nowrap; }
.status-pill.success, .status-pill.published, .status-pill.active { background: var(--success-soft); color: var(--success); }
.status-pill.draft { background: #f1f3f6; color: #59677b; }
.status-pill.ready { background: var(--blue-soft); color: #175fc7; }
.status-pill.legacy, .status-pill.pending { background: var(--warning-soft); color: var(--warning); }
.status-pill.disabled { background: var(--danger-soft); color: var(--danger); }
.detail-list { margin: 14px 0 0; }
.detail-list div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 10px; }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; font-weight: 750; text-align: right; }
.service-link { align-self: flex-start; margin-top: auto; padding: 8px 0 0; }
.compact-list { margin-top: 12px; }
.compact-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 18px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 11px; }
.compact-row:first-child { border-top: 0; }
.compact-row strong, .compact-row span { display: block; }
.compact-row span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.avatar-line { display: flex; align-items: center; gap: 10px; min-width: 0; }
.user-avatar { display: grid; place-items: center; flex: 0 0 32px; height: 32px; border-radius: 10px; background: #edf4ff; color: var(--blue); font-size: 11px; font-weight: 850; }
.compact-status { min-width: 70px; text-align: right; }
.empty { color: var(--subtle); font-size: 11px; padding: 22px 0; }

.section-intro { min-height: 56px; display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; margin-bottom: 10px; }
.section-intro h2 { margin: 0; font-size: 19px; letter-spacing: -.025em; }
.section-intro p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.section-actions { display: flex; align-items: center; gap: 8px; }
.summary-pill, .readiness-score { display: inline-flex; align-items: center; min-height: 31px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: #56657a; font-size: 10px; font-weight: 800; }
.summary-pill.warning { border-color: #fedf89; background: var(--warning-soft); color: var(--warning); }
.readiness-score { border-color: #c8dcff; background: var(--blue-soft); color: #175fc7; }

.release-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 318px; gap: 14px; }
.release-workspace > .panel { margin-top: 0; }
.publish-panel { padding: 26px; }
.publish-steps { display: flex; align-items: center; justify-content: center; gap: 10px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.publish-step { display: flex; align-items: center; gap: 7px; color: var(--subtle); }
.publish-step span { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 9px; font-weight: 850; }
.publish-step strong { font-size: 9px; white-space: nowrap; }
.publish-step.active { color: var(--blue); }
.publish-step.active span { border-color: var(--blue); background: var(--blue); color: #fff; }
.publish-steps i { width: 35px; height: 1px; background: var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 22px; }
.full { grid-column: 1 / -1; }
.file-field { min-height: 88px; padding: 17px; display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 13px; position: relative; overflow: hidden; border: 1px dashed #a9bfdc; border-radius: 13px; background: #f7faff; cursor: pointer; }
.file-field:hover { border-color: var(--blue); background: #f1f7ff; }
.file-field input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-field > span:nth-child(2) strong, .file-field > span:nth-child(2) small { display: block; }
.file-field > span:nth-child(2) strong { margin-bottom: 5px; color: #344054; font-size: 11px; }
.file-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: #fff; color: var(--blue); box-shadow: 0 3px 10px rgba(37, 75, 126, .08); font: 850 9px ui-monospace, SFMono-Regular, Menlo, monospace; }
.check-row { display: grid; grid-template-columns: 17px 1fr; align-items: flex-start; gap: 9px; font-weight: 600; line-height: 1.5; }
.check-row input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--blue); }
.check-row strong, .check-row small { display: block; }
.check-row small { margin-top: 2px; }
.upload-status { padding: 13px; border-radius: 12px; background: #f7f9fc; }
.progress { height: 6px; overflow: hidden; border-radius: 99px; background: #e3e9f1; }
.progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--blue), #6da8ff); transition: width .15s; }
.upload-status > div:last-child { display: flex; justify-content: space-between; margin-top: 8px; color: var(--muted); font-size: 9px; }
.publish-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 2px; }
.form-tip { color: var(--subtle); font-size: 9px; }
.release-aside { display: grid; align-content: start; gap: 14px; }
.checklist { list-style: none; padding: 0; margin: 16px 0 0; }
.checklist li { display: flex; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); }
.checklist li > span { display: grid; place-items: center; flex: 0 0 22px; height: 22px; border-radius: 7px; background: var(--success-soft); color: var(--success); font-size: 9px; font-weight: 900; }
.checklist p { margin: 0; }
.checklist strong, .checklist small { display: block; }
.checklist strong { font-size: 10px; }
.checklist small { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.help-card { display: flex; gap: 11px; padding: 17px; background: #f6f9fe; }
.help-icon { display: grid; place-items: center; flex: 0 0 27px; height: 27px; border-radius: 9px; background: var(--blue-soft); color: var(--blue); font-size: 11px; font-weight: 900; }
.help-card strong { font-size: 10px; }
.help-card p { margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }

.table-panel { padding: 0; overflow: hidden; }
.table-heading { min-height: 72px; padding: 17px 20px; }
.table-tools { display: flex; align-items: center; gap: 8px; }
.search-box { display: flex; align-items: center; gap: 6px; min-width: 205px; height: 34px; padding: 0 9px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--subtle); }
.search-box input { min-width: 0; height: 30px; padding: 0; border: 0; box-shadow: none; font-size: 10px; }
.search-box input:focus { box-shadow: none; }
.table-tools select { width: auto; min-width: 104px; height: 34px; padding: 0 28px 0 10px; border-color: var(--line); font-size: 10px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 15px; border-top: 1px solid var(--line); text-align: left; white-space: nowrap; font-size: 10px; }
th { height: 39px; background: #fafbfd; color: #718096; font-weight: 750; }
td { color: #3b4a60; }
tbody tr:hover { background: #fcfdff; }
.align-right { text-align: right; }
.cell-main { max-width: 250px; }
.cell-main strong, .cell-main span { display: block; overflow: hidden; text-overflow: ellipsis; }
.cell-main span { max-width: 250px; margin-top: 3px; color: var(--subtle); font-size: 9px; }
.hash-line { display: flex; align-items: center; gap: 7px; margin-top: 4px; }
.hash { display: block; max-width: 120px; overflow: hidden; text-overflow: ellipsis; color: var(--subtle); font: 500 8px ui-monospace, SFMono-Regular, Menlo, monospace; }
.copy-button { border: 0; background: transparent; color: var(--blue); padding: 0; font-size: 8px; font-weight: 800; cursor: pointer; }
.row-actions { display: flex; justify-content: flex-end; gap: 6px; }
.row-actions .button { min-height: 28px; padding: 5px 8px; font-size: 9px; }
.table-empty { padding: 28px; color: var(--subtle); text-align: center; }

.node-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.node-card { min-height: 305px; padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: var(--shadow-sm); }
.node-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.node-title { display: flex; align-items: center; gap: 9px; min-width: 0; }
.node-flag { display: grid; place-items: center; flex: 0 0 37px; height: 37px; border-radius: 12px; background: #f4f7fb; font-size: 18px; }
.node-card h3 { overflow: hidden; margin: 0; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.node-card .node-place { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.node-endpoint { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 17px 0 0; padding: 11px; border-radius: 10px; background: #f7f9fc; }
.node-endpoint span { color: var(--subtle); font-size: 8px; }
.node-endpoint code { overflow: hidden; max-width: 170px; padding: 0; background: transparent; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.node-detail-list { margin: 13px 0 0; }
.node-detail-list > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 9px; }
.node-detail-list > div > span { color: var(--muted); }
.node-detail-list > div > strong { text-align: right; }
.node-detail-list > .node-traffic { display: block; padding-bottom: 10px; }
.node-traffic-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.node-traffic-heading span { color: var(--muted); }
.node-traffic-heading strong { text-align: right; }
.node-traffic-meter { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; margin-top: 7px; }
.node-traffic-progress { overflow: hidden; width: 100%; height: 6px; border: 0; border-radius: 999px; appearance: none; background: #e6edf7; }
.node-traffic-progress::-webkit-progress-bar { border-radius: 999px; background: #e6edf7; }
.node-traffic-progress::-webkit-progress-value { border-radius: 999px; background: linear-gradient(90deg, #2176ed, #55a6ff); }
.node-traffic-progress::-moz-progress-bar { border-radius: 999px; background: linear-gradient(90deg, #2176ed, #55a6ff); }
.node-traffic-meter small { min-width: 50px; color: #52657d; text-align: right; font-size: 8px; font-weight: 750; }
.node-footer { display: flex; align-items: center; gap: 6px; margin-top: 13px; color: var(--subtle); font-size: 8px; }
.node-footer::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #12b76a; }
.node-card.unavailable .node-footer::before { background: #f04438; }
.node-footer-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 13px; }
.node-footer-row .node-footer { margin-top: 0; }
.node-actions { display: flex; justify-content: flex-end; gap: 5px; }
.node-actions .button { min-height: 27px; padding: 5px 7px; font-size: 8px; }

.access-layout { grid-template-columns: 1fr 1fr; margin-top: 0; }
.section-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 11px; background: var(--blue-soft); color: var(--blue); font-size: 14px; font-weight: 850; }
.compact-form { margin-top: 19px; }
.generated-code { margin-top: 16px; padding: 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #c8dcff; border-radius: 12px; background: var(--blue-soft); }
.generated-code span, .generated-code strong { display: block; }
.generated-code span { margin-bottom: 3px; color: var(--blue); font-size: 8px; font-weight: 800; }
.generated-code strong { color: #175fc7; font: 800 12px ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }

.audit-list { margin: 0; padding: 0 20px 10px; }
.audit-item { display: grid; grid-template-columns: 145px 38px minmax(170px, 1fr) minmax(100px, .55fr); align-items: center; gap: 11px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 10px; }
.audit-item time, .audit-item .audit-actor { color: var(--muted); }
.audit-symbol { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: #f1f5fa; color: #63758d; font-size: 11px; font-weight: 850; }
.audit-title strong, .audit-title span { display: block; }
.audit-title span { margin-top: 3px; color: var(--subtle); font-size: 8px; }

.system-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.system-card { min-height: 205px; padding: 20px; }
.system-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 25px; }
.system-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; font-size: 11px; font-weight: 900; }
.system-icon.success { background: var(--success-soft); color: var(--success); }
.system-icon.pending { background: var(--warning-soft); color: var(--warning); }
.system-card p { margin: 9px 0 16px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.system-card > small { color: var(--subtle); font-size: 8px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.launch-path { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 24px; }
.launch-path ol { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); padding: 0; margin: 0; }
.launch-path li { position: relative; padding-right: 12px; }
.launch-path li::after { content: ""; position: absolute; top: 14px; left: 34px; right: 7px; height: 1px; background: var(--line); }
.launch-path li:last-child::after { display: none; }
.launch-path li > span { display: grid; place-items: center; position: relative; z-index: 1; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--subtle); font-size: 9px; font-weight: 850; }
.launch-path li.done > span { border-color: var(--success); background: var(--success); color: #fff; }
.launch-path li.current > span { border-color: var(--blue); background: var(--blue); color: #fff; }
.launch-path p { margin: 9px 0 0; padding-right: 8px; }
.launch-path strong, .launch-path small { display: block; }
.launch-path strong { font-size: 9px; }
.launch-path small { margin-top: 4px; color: var(--subtle); font-size: 8px; line-height: 1.4; }

.toast { position: fixed; z-index: 100; right: 22px; top: 18px; max-width: 380px; padding: 12px 15px; border-radius: 11px; background: var(--ink); color: #fff; font-size: 11px; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(-8px); pointer-events: none; }
.toast.show { opacity: 1; transform: none; }
.toast.error { background: #b42318; }
.toast.success { background: #067647; }

.dialog { width: min(440px, calc(100% - 32px)); max-width: none; padding: 0; border: 0; border-radius: 18px; background: transparent; box-shadow: var(--shadow-lg); }
.dialog:has(.node-form) { width: min(620px, calc(100% - 32px)); }
.dialog::backdrop { background: rgba(12, 25, 44, .46); backdrop-filter: blur(3px); }
.dialog-card { position: relative; padding: 27px; border-radius: 18px; background: #fff; }
.dialog-card h2 { margin: 12px 0 0; font-size: 18px; }
.dialog-card > p:not(.panel-kicker) { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.dialog-card > label { margin-top: 20px; }
.dialog-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--warning-soft); color: var(--warning); font-size: 14px; font-weight: 900; }
.dialog-icon.danger { background: var(--danger-soft); color: var(--danger); }
.dialog-icon.success { background: var(--success-soft); color: var(--success); }
.dialog-details { margin-top: 14px; padding: 12px; border-radius: 10px; background: #f7f9fc; color: #506078; font-size: 9px; line-height: 1.6; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 23px; }
.dialog-close { position: absolute; right: 16px; top: 14px; width: 30px; height: 30px; border: 0; border-radius: 9px; background: transparent; color: var(--subtle); font-size: 18px; cursor: pointer; }
.dialog-close:hover { background: #f2f4f7; }
.quick-days { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.quick-days button { min-width: 58px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #56657a; font-size: 9px; font-weight: 750; cursor: pointer; }
.quick-days button:hover { border-color: var(--blue); color: var(--blue); }

@media (max-width: 1180px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .release-workspace { grid-template-columns: 1fr; }
  .release-aside { grid-template-columns: 1fr 1fr; }
  .system-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .launch-path { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .sidebar { width: 218px; }
  .workspace { margin-left: 218px; padding-inline: 22px; }
  .overview-columns, .access-layout { grid-template-columns: 1fr; }
  .node-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .table-heading { align-items: flex-start; flex-direction: column; }
  .table-tools { width: 100%; }
  .search-box { flex: 1; }
}

@media (max-width: 760px) {
  .sidebar { width: min(290px, 84vw); transform: translateX(-104%); box-shadow: var(--shadow-lg); transition: transform .2s ease; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close, .menu-button { display: grid; }
  .workspace { margin-left: 0; padding: 0 16px 38px; }
  .topbar { min-height: 96px; }
  .topbar h1 { font-size: 23px; }
  .view-description, #refreshButton span:last-child { display: none; }
  #refreshButton { width: 34px; padding: 0; }
  .readiness-banner { grid-template-columns: 30px 1fr; }
  .readiness-banner .text-button { grid-column: 2; justify-self: start; padding-left: 0; }
  .release-spotlight { min-height: 260px; align-items: flex-start; flex-direction: column; }
  .release-spotlight .button { align-self: stretch; }
  .form-grid { grid-template-columns: 1fr; }
  .full { grid-column: 1; }
  .publish-actions { align-items: stretch; flex-direction: column; }
  .publish-actions .button { width: 100%; }
  .publish-steps { gap: 6px; }
  .publish-steps i { width: 18px; }
  .release-aside { grid-template-columns: 1fr; }
  .section-intro { align-items: stretch; flex-direction: column; }
  .section-intro > .button { align-self: flex-start; }
  .section-actions { justify-content: space-between; }
  .node-grid, .system-grid { grid-template-columns: 1fr; }
  .launch-path ol { grid-template-columns: 1fr; gap: 15px; }
  .launch-path li { display: grid; grid-template-columns: 32px 1fr; align-items: start; }
  .launch-path li::after { top: 34px; bottom: -12px; left: 14px; width: 1px; height: auto; }
  .launch-path p { margin-top: 2px; }
  .audit-item { grid-template-columns: 90px 30px 1fr; }
  .audit-actor { display: none; }
}

@media (max-width: 520px) {
  .login-card { padding: 30px 24px; }
  .health { padding-inline: 9px; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .metric { min-height: 123px; padding: 16px; }
  .metric strong { font-size: 28px; }
  .metric-icon { width: 28px; height: 28px; }
  .panel { padding: 18px; }
  .table-panel { padding: 0; }
  .table-tools { align-items: stretch; flex-direction: column; }
  .search-box, .table-tools select { width: 100%; }
  .file-field { grid-template-columns: 40px 1fr; }
  .file-icon { width: 40px; height: 40px; }
  .spotlight-meta { gap: 7px; }
  .dialog-actions .button { flex: 1; }
}
