@font-face {
  font-family: "Suisse Intl Condensed";
  src: url("/_orion_assets/SuisseIntlCond-Medium-WebXL.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Suisse Intl Condensed";
  src: url("/_orion_assets/SuisseIntlCond-Bold-WebXL.woff2") format("woff2");
  font-weight: 700 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --deep: #090c12;
  --graphite: #171c25;
  --meteor: #2b3443;
  --nebula: #6e7888;
  --white: #f4f7fb;
  --gold: #ffd84d;
  --violet: #8b5cff;
  --blue: #69d8ff;
  --cyan: #c7f6ff;
  --danger: #ff6675;
  --success: #4fe3a4;
  --line: #303a49;
  --input: #0e131b;
  --radius: 8px;
  font-family: "Suisse Intl Condensed", Arial, sans-serif;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--deep); }
body { margin: 0; min-height: 100vh; overflow-x: hidden; color: var(--white); background: var(--deep); letter-spacing: 0; }
button, input, select { font: inherit; }
input, select, button { max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
.hidden { display: none !important; }
.mobile-only { display: none !important; }
.muted { color: var(--nebula); }
.eyebrow { color: var(--blue); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }

.screen-state { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 22px; }
.boot-mark { width: 62px; height: 62px; object-fit: contain; }
.spinner { width: 30px; height: 30px; border: 3px solid var(--meteor); border-top-color: var(--violet); border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 28px 18px; }
.login-shell { width: min(100%, 430px); display: grid; gap: 22px; }
.login-logo { display: block; width: min(250px, 72vw); height: auto; margin: 0 auto 8px; }
.login-copy { text-align: center; }
.login-copy h1 { margin: 8px 0 10px; font-size: 2rem; line-height: 1.1; }
.login-copy p { margin: 0 auto; max-width: 390px; color: var(--nebula); line-height: 1.5; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--graphite); }
.login-card { display: grid; gap: 16px; padding: 26px; box-shadow: 0 24px 70px rgba(0, 0, 0, .36); }
.form-error { margin: 0; color: var(--danger); font-size: .9rem; }

.field { min-width: 0; display: grid; gap: 7px; color: var(--white); font-size: .9rem; font-weight: 650; }
.field small { color: var(--nebula); font-weight: 400; line-height: 1.4; }
.field input, .field select {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 6px; outline: none; color: var(--white); background: var(--input);
}
.field input:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(105, 216, 255, .1); }
.field input::placeholder { color: #566171; }
.field.checkbox { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--input); }
.field.checkbox input { width: 18px; min-height: auto; height: 18px; padding: 0; accent-color: var(--violet); }

.button {
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border: 1px solid var(--violet); border-radius: 6px; color: #fff;
  background: var(--violet); font-weight: 750; cursor: pointer; text-decoration: none;
}
.button:hover { filter: brightness(1.1); }
.button:focus-visible { outline: 3px solid rgba(105, 216, 255, .3); outline-offset: 2px; }
.button:disabled { opacity: .5; cursor: wait; filter: none; }
.button.full { width: 100%; }
.button.ghost { border-color: var(--line); color: var(--white); background: transparent; }
.button.soft { border-color: rgba(105, 216, 255, .32); color: var(--cyan); background: rgba(105, 216, 255, .07); }
.button.danger { border-color: rgba(255, 102, 117, .6); color: #fff; background: #b93d4a; }
.compact-button { min-height: 38px; padding: 7px 12px; font-size: .86rem; }
.icon-button { width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 6px; color: var(--white); background: transparent; cursor: pointer; }

.language-switch { display: flex; justify-content: center; gap: 5px; }
.language-switch button { min-width: 44px; height: 36px; border: 1px solid transparent; border-radius: 6px; color: var(--nebula); background: transparent; font-weight: 750; cursor: pointer; }
.language-switch button:hover { color: var(--white); background: var(--meteor); }
.language-switch button.active { border-color: rgba(139, 92, 255, .7); color: var(--white); background: rgba(139, 92, 255, .16); }
.language-switch.compact button { min-width: 36px; height: 34px; font-size: .78rem; }

.app-shell { min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 20; min-height: 72px; display: flex; align-items: center; gap: 15px;
  padding: 12px 22px; border-bottom: 1px solid rgba(105, 216, 255, .16); background: rgba(9, 12, 18, .97);
}
.brand-logo { width: 172px; height: auto; }
.product-name { padding-left: 15px; border-left: 1px solid var(--line); color: var(--nebula); font-weight: 700; }
.topbar-spacer { flex: 1; }
.connection-pill { padding: 7px 10px; border: 1px solid rgba(79, 227, 164, .35); border-radius: 999px; color: var(--success); background: rgba(79, 227, 164, .07); font-size: .78rem; font-weight: 700; }
.connection-pill.off { border-color: rgba(255, 216, 77, .35); color: var(--gold); background: rgba(255, 216, 77, .07); }
.account-pill { max-width: 190px; padding: 7px 10px; overflow: hidden; border: 1px solid var(--line); border-radius: 999px; color: var(--cyan); background: rgba(105, 216, 255, .05); font-size: .78rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }

.workspace-grid { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: calc(100vh - 72px); }
.sidebar { position: sticky; top: 72px; align-self: start; height: calc(100vh - 72px); display: flex; flex-direction: column; padding: 22px 14px; border-right: 1px solid var(--line); background: #10151d; }
.sidebar-label { padding: 0 12px 12px; color: var(--nebula); font-size: .7rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.navigation { display: grid; gap: 5px; }
.navigation button { width: 100%; min-height: 46px; display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 8px; padding: 9px 11px; border: 1px solid transparent; border-radius: 6px; color: var(--nebula); background: transparent; text-align: left; cursor: pointer; }
.navigation button span { color: #4f5a6a; font: 700 .72rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.navigation button b { font-size: .92rem; }
.navigation button:hover { color: var(--white); background: var(--meteor); }
.navigation button.active { border-color: rgba(139, 92, 255, .5); color: var(--white); background: rgba(139, 92, 255, .13); }
.navigation button.active span { color: var(--blue); }
.sidebar-footer { margin-top: auto; display: flex; justify-content: space-between; gap: 12px; padding: 15px 12px 0; border-top: 1px solid var(--line); color: var(--nebula); font-size: .78rem; }
.sidebar-footer strong { color: var(--cyan); }
.sidebar-scrim { display: none; }

.content { min-width: 0; width: 100%; max-width: 1320px; justify-self: center; margin: 0; padding: 34px 30px 64px; outline: none; }
.page { min-width: 0; display: grid; gap: 20px; }
.page > * { min-width: 0; max-width: 100%; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.page-head > div:first-child, .section-head > div:first-child { min-width: 0; }
.page-head > div:first-child { flex: 1 1 auto; }
.page-head h1 { margin: 7px 0 8px; font-size: 2rem; line-height: 1.1; }
.page-head p { max-width: 820px; margin: 0; color: var(--nebula); line-height: 1.5; }
.page-actions { min-width: 0; display: flex; flex: 0 1 auto; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 11px; }
.stat { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--graphite); }
.stat span { display: block; color: var(--nebula); font-size: .78rem; }
.stat strong { display: block; margin-top: 9px; overflow: hidden; color: var(--white); font-size: 1.35rem; text-overflow: ellipsis; white-space: nowrap; }
.stat small { display: block; margin-top: 7px; overflow: hidden; color: var(--nebula); font-size: .72rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.stat.accent strong { color: var(--cyan); }
.usage-stat.over-limit { border-color: rgba(255, 102, 117, .55); }
.usage-stat.over-limit strong { color: var(--danger); }
.usage-meter { height: 4px; margin-top: 11px; overflow: hidden; border-radius: 999px; background: var(--meteor); }
.usage-meter i { display: block; height: 100%; border-radius: inherit; background: var(--cyan); }
.usage-stat.over-limit .usage-meter i { background: var(--danger); }

.section { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--graphite); }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { margin: 0 0 6px; font-size: 1.15rem; }
.section-head p { margin: 0; color: var(--nebula); line-height: 1.45; }
.section-head .status { flex: 0 0 auto; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .span-all { grid-column: 1 / -1; }
.destination-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 15px; }
.destination-grid.two-destinations { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.destination-grid.one-destination { grid-template-columns: 1fr; margin: 0; }
.destination { padding: 15px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(43, 52, 67, .36); }
.destination h3 { margin: 0 0 12px; color: var(--cyan); font-size: .9rem; }
.destination .field + .field { margin-top: 10px; }
.destination-title { min-height: 62px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.destination-title h3 { margin: 0 0 5px; color: var(--white); font-size: 1rem; }
.destination-title p { margin: 0; color: var(--nebula); font-size: .82rem; font-weight: 400; line-height: 1.4; }
.required-mark { color: var(--gold); font-size: 1.2rem; }
.field-error { margin: 8px 0 0; color: var(--danger); font-size: .8rem; }
.step { display: grid; gap: 13px; padding: 17px; border-left: 2px solid var(--violet); background: rgba(43, 52, 67, .25); }
.step + .step { margin-top: 12px; }
.step-title { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.step-title span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: var(--deep); background: var(--cyan); font-size: .75rem; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; }
.permission-note { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid rgba(255, 216, 77, .24); border-radius: var(--radius); color: #ece5c8; background: rgba(255, 216, 77, .045); }
.permission-note > span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: var(--deep); background: var(--gold); font-weight: 900; }
.permission-note p { margin: 0; line-height: 1.45; }

.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.click-toolbar { display: grid; grid-template-columns: minmax(240px, 2fr) minmax(180px, 1fr); gap: 12px; margin-bottom: 14px; }
.click-filter-count { margin: 0 0 10px; color: var(--nebula); font-size: .8rem; }
.click-filter-count strong { color: var(--white); }
.blacklist-section { border-color: rgba(255, 102, 117, .22); }
.blacklist-form { min-width: 0; width: 100%; display: grid; grid-template-columns: minmax(210px, .8fr) minmax(260px, 1.4fr) auto; align-items: end; gap: 12px; margin-bottom: 18px; }
.blacklist-form .button { min-width: 150px; }
.blacklist-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.blacklist-item { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--input); }
.blacklist-item > div { min-width: 0; }
.blacklist-item strong, .blacklist-item span, .blacklist-item small { display: block; overflow-wrap: anywhere; }
.blacklist-item strong { color: var(--white); font: 750 .84rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.blacklist-item span { margin-top: 5px; color: #dce3eb; font-size: .8rem; }
.blacklist-item small { margin-top: 5px; color: var(--nebula); font-size: .7rem; }
.ip-value { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.local-badge { display: inline-flex; margin-top: 5px; padding: 3px 5px; border-radius: 4px; color: #ffdce0; background: rgba(255, 102, 117, .1); font-size: .65rem; font-weight: 750; }
table { width: 100%; border-collapse: collapse; min-width: 720px; background: var(--graphite); }
th, td { padding: 13px 15px; border-bottom: 1px solid rgba(110, 120, 136, .17); text-align: left; vertical-align: middle; }
th { color: var(--cyan); background: var(--meteor); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; }
td { color: #dbe1e9; font-size: .88rem; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(43, 52, 67, .28); }
.cell-main { display: block; color: var(--white); font-weight: 700; }
.cell-sub { display: block; max-width: 340px; margin-top: 4px; overflow: hidden; color: var(--nebula); font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-action { min-height: 34px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 5px; color: var(--white); background: transparent; cursor: pointer; font-size: .75rem; }
.mini-action:hover { background: var(--meteor); }
.mini-action.primary-action { border-color: rgba(105, 216, 255, .4); color: var(--cyan); background: rgba(105, 216, 255, .07); }
.mini-action.primary-action:hover { background: rgba(105, 216, 255, .14); }
.mini-action.danger { color: var(--danger); }
.mini-action:disabled { opacity: .42; cursor: not-allowed; }
.mini-action:disabled:hover { background: transparent; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 999px; color: var(--nebula); background: var(--meteor); font-size: .72rem; font-weight: 700; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.on, .status.ready { color: var(--success); background: rgba(79, 227, 164, .09); }
.status.off { color: var(--danger); background: rgba(255, 102, 117, .08); }
.status.tls-active { color: var(--success); background: rgba(79, 227, 164, .09); }
.status.tls-pending, .status.tls-issuing { color: var(--gold); background: rgba(255, 216, 77, .08); }
.status.tls-action_required { color: var(--gold); background: rgba(255, 216, 77, .1); }
.status.tls-error { color: var(--danger); background: rgba(255, 102, 117, .08); }
.status.tls-disabled { color: var(--nebula); background: var(--meteor); }
.empty { padding: 36px 20px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--nebula); text-align: center; }
.empty p { margin: 0; }
.empty .button { margin-top: 16px; }

.setup-panel { border-color: rgba(105, 216, 255, .24); background: linear-gradient(135deg, rgba(105, 216, 255, .055), rgba(139, 92, 255, .035)), var(--graphite); }
.checklist { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.check-item { min-width: 0; min-height: 84px; display: grid; grid-template-columns: 32px minmax(0, 1fr) 18px; align-items: center; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--white); background: var(--input); text-align: left; cursor: pointer; }
.check-item:hover { border-color: rgba(105, 216, 255, .42); background: var(--meteor); }
.check-item.done { border-color: rgba(79, 227, 164, .25); }
.check-index { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--cyan); font-weight: 800; }
.check-item.done .check-index { border-color: rgba(79, 227, 164, .38); color: var(--success); background: rgba(79, 227, 164, .08); }
.check-item b, .check-item small { display: block; }
.check-item b { overflow-wrap: anywhere; font-size: .86rem; line-height: 1.25; }
.check-item small { margin-top: 5px; color: var(--nebula); font-size: .7rem; }
.check-arrow { color: var(--nebula); }
.safety-note { margin: 16px 0 0; padding: 11px 13px; border-left: 2px solid var(--gold); color: #dfe4ec; background: rgba(255, 216, 77, .05); font-size: .84rem; line-height: 1.45; }

.resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.resource-card { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--input); }
.resource-head { min-width: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 13px; }
.resource-head > div { min-width: 0; }
.resource-head h3 { margin: 5px 0 0; overflow-wrap: anywhere; color: var(--white); font-size: 1.08rem; }
.route-list { display: grid; gap: 7px; margin: 16px 0; }
.route-list > div { min-width: 0; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 9px 10px; border: 1px solid rgba(110, 120, 136, .17); border-radius: 5px; background: rgba(43, 52, 67, .27); }
.route-list span { color: var(--nebula); font-size: .75rem; }
.route-list strong { overflow: hidden; color: #dfe5ed; font-size: .78rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.resource-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 12px; border-top: 1px solid rgba(110, 120, 136, .18); color: var(--nebula); font-size: .8rem; }
.resource-meta strong { color: var(--white); }
.inline-warning { margin: 11px 0 0; padding: 9px 11px; border-left: 2px solid var(--gold); color: #e9dfb6; background: rgba(255, 216, 77, .055); font-size: .78rem; line-height: 1.4; }
.resource-card .row-actions { margin-top: 15px; }
.domain-card { display: flex; flex-direction: column; }
.domain-card .route-list { flex: 1; }
.domain-health { min-height: 34px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px; margin-top: 15px; padding: 9px 10px; border: 1px solid rgba(110, 120, 136, .17); border-radius: 6px; background: rgba(43, 52, 67, .2); }
.domain-health > span:not(.status) { color: var(--nebula); font-size: .75rem; }
.domain-health b { color: var(--white); }
.domain-policy { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.domain-policy span { padding: 5px 8px; border: 1px solid rgba(105, 216, 255, .2); border-radius: 5px; color: #dcecf3; background: rgba(105, 216, 255, .045); font-size: .72rem; }
.tls-error-detail { max-height: 96px; overflow: auto; overflow-wrap: anywhere; }
.cloudflare-action-card { display: grid; gap: 13px; margin-top: 13px; padding: 15px; border: 1px solid rgba(255, 216, 77, .34); border-radius: var(--radius); background: rgba(255, 216, 77, .045); }
.cloudflare-action-head { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 11px; align-items: start; }
.cloudflare-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 6px; color: var(--deep); background: var(--gold); font-size: .7rem; font-weight: 900; }
.cloudflare-action-head strong { color: var(--white); line-height: 1.35; }
.cloudflare-action-head p { margin: 5px 0 0; color: #d7dce4; font-size: .8rem; line-height: 1.45; }
.cloudflare-action-card ol { display: grid; gap: 7px; margin: 0; padding-left: 21px; color: #e3e7ed; font-size: .8rem; line-height: 1.45; }
.cloudflare-action-card li::marker { color: var(--gold); font-weight: 800; }
.cloudflare-origin { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px; padding: 9px 11px; border: 1px solid rgba(255, 216, 77, .2); border-radius: 6px; background: rgba(9, 12, 18, .45); }
.cloudflare-origin span { color: var(--nebula); font-size: .72rem; }
.cloudflare-origin code { color: var(--gold); font: 800 .82rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.cloudflare-ready-note { margin-top: 13px; padding: 11px 13px; border-left: 2px solid var(--success); border-radius: 4px; color: #cef6e4; background: rgba(79, 227, 164, .055); font-size: .8rem; line-height: 1.45; }
.tls-action-note { display: grid; gap: 10px; margin-top: 13px; padding: 13px; border: 1px solid rgba(255, 216, 77, .28); border-radius: var(--radius); background: rgba(255, 216, 77, .04); }
.tls-action-note p { margin: 0; color: #f2e9c5; font-size: .8rem; line-height: 1.45; }

.rule-list { display: grid; gap: 9px; }
.rule-card { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 15px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--input); }
.priority-badge { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(105, 216, 255, .3); border-radius: 6px; color: var(--cyan); background: rgba(105, 216, 255, .06); font: 800 .78rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.rule-content { min-width: 0; }
.rule-content p { margin: 10px 0 0; color: #d9dfe7; font-size: .84rem; line-height: 1.45; }
.rule-content p span { color: var(--nebula); }
.rule-content .row-actions { margin-top: 13px; }
.template-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.template-groups { display: grid; gap: 22px; }
.template-group { min-width: 0; }
.template-group > h3 { margin: 0 0 10px; color: var(--cyan); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.template-card { min-width: 0; min-height: 166px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--input); }
.template-card h3 { margin: 8px 0 7px; color: var(--white); font-size: 1rem; }
.template-card p { margin: 0; color: var(--nebula); font-size: .82rem; line-height: 1.45; }
.template-signal { display: inline-flex; padding: 4px 7px; border-radius: 4px; color: var(--cyan); background: rgba(105, 216, 255, .08); font-size: .68rem; font-weight: 750; text-transform: uppercase; }

.drop-zone { position: relative; min-height: 142px; display: grid; place-content: center; gap: 8px; padding: 20px; border: 1px dashed #536072; border-radius: var(--radius); color: var(--nebula); background: var(--input); text-align: center; }
.drop-zone strong { color: var(--white); }
.drop-zone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.landing-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.landing-item { padding: 17px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--graphite); }
.landing-item h3 { margin: 0 0 8px; }
.landing-item p { margin: 0 0 14px; color: var(--nebula); font-size: .84rem; }
.landing-item .resource-head { margin-bottom: 12px; }
.landing-item .resource-head h3 { margin-top: 9px; }

.instructions { max-width: 940px; color: #dbe1e9; line-height: 1.65; }
.instructions h2, .instructions h3 { margin: 28px 0 10px; color: var(--cyan); }
.instructions h2:first-child, .instructions h3:first-child { margin-top: 0; }
.instructions p { margin: 9px 0; }
.instructions ul, .instructions ol { padding-left: 22px; }
.instructions code { padding: 2px 5px; border: 1px solid var(--line); border-radius: 4px; color: var(--gold); background: var(--input); }
.system-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.system-row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid rgba(110, 120, 136, .17); }
.system-row span { color: var(--nebula); }
.system-row strong { overflow-wrap: anywhere; text-align: right; }
.health-value.ok { color: var(--success); }
.health-value.fail { color: var(--danger); }

.toast { position: fixed; right: 20px; bottom: 20px; z-index: 80; max-width: min(390px, calc(100vw - 32px)); padding: 13px 15px; border: 1px solid rgba(79, 227, 164, .5); border-radius: 6px; color: var(--white); background: var(--meteor); box-shadow: 0 16px 48px rgba(0, 0, 0, .5); }
.toast.error { border-color: rgba(255, 102, 117, .65); }
dialog { width: min(500px, calc(100% - 24px)); padding: 0; border: 1px solid var(--line); border-radius: var(--radius); color: var(--white); background: var(--graphite); box-shadow: 0 24px 80px rgba(0, 0, 0, .6); }
dialog::backdrop { background: rgba(3, 5, 8, .8); backdrop-filter: blur(4px); }
.dialog-card { position: relative; padding: 25px; }
.dialog-card h2 { margin: 8px 0 9px; }
.dialog-card p { line-height: 1.5; }
.dialog-close { position: absolute; top: 11px; right: 12px; width: 38px; height: 38px; border: 0; color: var(--nebula); background: transparent; font-size: 1.5rem; cursor: pointer; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }
.workflow-dialog { width: min(900px, calc(100% - 28px)); max-height: min(860px, calc(100dvh - 28px)); overflow: auto; }
.workflow-card { padding: 27px; }
.workflow-card > h2 { margin: 7px 42px 7px 0; font-size: 1.5rem; }
.workflow-card > .muted { margin: 0; line-height: 1.45; }
.wizard-progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 22px 0; }
.wizard-progress.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wizard-progress span { min-width: 0; display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--nebula); font-size: .78rem; }
.wizard-progress b { width: 24px; height: 24px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: var(--nebula); background: var(--meteor); font-size: .7rem; }
.wizard-progress span.active { border-color: rgba(139, 92, 255, .55); color: var(--white); background: rgba(139, 92, 255, .08); }
.wizard-progress span.active b { color: #fff; background: var(--violet); }
.wizard-progress span.complete { border-color: rgba(79, 227, 164, .25); color: var(--success); }
.wizard-progress span.complete b { color: var(--success); background: rgba(79, 227, 164, .1); }
.wizard-step { min-height: 250px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--input); }
.preflight-box { margin-top: 15px; padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--graphite); }
.preflight-box.success { border-color: rgba(79, 227, 164, .35); }
.preflight-box.warning { border-color: rgba(255, 216, 77, .35); }
.preflight-box > strong { display: block; color: var(--white); line-height: 1.4; }
.preflight-box.success > strong { color: var(--success); }
.preflight-box.warning > strong { color: var(--gold); }
.preflight-box dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 13px 0 0; }
.preflight-box dl div { min-width: 0; padding: 8px 10px; border-radius: 5px; background: rgba(43, 52, 67, .4); }
.preflight-box dt { color: var(--nebula); font-size: .7rem; }
.preflight-box dd { margin: 4px 0 0; overflow-wrap: anywhere; color: #e5eaf0; font-size: .8rem; }
.preflight-actions { display: flex; justify-content: flex-end; margin-top: 11px; }
.guidance-box { margin-top: 14px; padding: 14px 15px; border: 1px solid rgba(105, 216, 255, .27); border-radius: var(--radius); background: rgba(105, 216, 255, .045); }
.guidance-box strong { color: var(--cyan); }
.guidance-box p { margin: 7px 0 0; color: #d9e1ea; font-size: .84rem; line-height: 1.5; }
.tls-choice { margin-top: 14px; align-items: flex-start !important; }
.tls-choice > span { display: grid; gap: 4px; }
.tls-choice strong, .tls-choice small { display: block; }
.review-card { margin-top: 16px; padding: 16px; border: 1px solid rgba(105, 216, 255, .22); border-radius: var(--radius); background: rgba(105, 216, 255, .035); }
.review-card h3 { margin: 0 0 12px; color: var(--cyan); font-size: .92rem; }
.review-card dl { display: grid; gap: 7px; margin: 0; }
.review-card dl div { min-width: 0; display: grid; grid-template-columns: 135px minmax(0, 1fr); gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(110, 120, 136, .14); }
.review-card dl div:last-child { border-bottom: 0; }
.review-card dt { color: var(--nebula); font-size: .78rem; }
.review-card dd { margin: 0; overflow-wrap: anywhere; color: var(--white); font-size: .82rem; }
.workflow-actions { position: sticky; bottom: -27px; z-index: 2; margin: 22px -27px -27px; padding: 15px 27px; border-top: 1px solid var(--line); background: rgba(23, 28, 37, .98); }
.action-spacer { flex: 1; }
.preset-bar { margin: 20px 0 13px; padding: 13px; border: 1px solid rgba(105, 216, 255, .2); border-radius: var(--radius); background: rgba(105, 216, 255, .035); }
.preset-bar > span { display: block; margin-bottom: 9px; color: var(--cyan); font-size: .74rem; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.preset-bar > div { display: flex; flex-wrap: wrap; gap: 7px; }
.form-section { margin-top: 11px; padding: 17px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--input); }
.form-section-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 15px; }
.form-section-head > b { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 5px; color: var(--cyan); background: rgba(105, 216, 255, .08); font-size: .72rem; }
.form-section-head span strong, .form-section-head span small { display: block; }
.form-section-head span strong { color: var(--white); }
.form-section-head span small { margin-top: 4px; color: var(--nebula); font-size: .78rem; font-weight: 400; line-height: 1.4; }
.conditions-editor { display: grid; gap: 9px; }
.condition-row { position: relative; }
.condition-fields { min-width: 0; display: grid; grid-template-columns: minmax(150px, .85fr) minmax(150px, .85fr) minmax(220px, 1.4fr) auto; align-items: end; gap: 10px; padding: 13px; border: 1px solid rgba(110, 120, 136, .22); border-radius: var(--radius); background: rgba(43, 52, 67, .22); }
.condition-remove { margin-bottom: 7px; }
.and-chip { position: absolute; top: -14px; left: 18px; z-index: 1; padding: 3px 7px; border: 1px solid rgba(139, 92, 255, .38); border-radius: 999px; color: #d8ccff; background: var(--graphite); font-size: .62rem; font-weight: 800; }
.condition-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 11px; }
.condition-actions small { color: var(--nebula); }
.plain-summary { display: grid; gap: 6px; margin-top: 12px; padding: 13px 15px; border-left: 2px solid var(--violet); background: rgba(139, 92, 255, .06); }
.plain-summary span { color: var(--nebula); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.plain-summary strong { color: #e8e3ff; font-size: .88rem; line-height: 1.45; }
.security-section { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(43, 52, 67, .2); }
.security-section + .security-section, .security-section + .destination-grid { margin-top: 13px; }
.compact-head { margin-bottom: 12px; }
.compact-head h3 { margin: 0; color: var(--white); font-size: 1rem; }
.compact-head p { margin-top: 5px; font-size: .82rem; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.choice-grid.outage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-card { position: relative; min-width: 0; display: block; cursor: pointer; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card > span { min-height: 100%; display: block; padding: 13px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--input); transition: border-color .15s ease, background .15s ease; }
.choice-card:hover > span { border-color: #485567; background: rgba(43, 52, 67, .38); }
.choice-card input:checked + span { border-color: rgba(139, 92, 255, .72); background: rgba(139, 92, 255, .09); box-shadow: inset 3px 0 0 var(--violet); }
.choice-card input:focus-visible + span { outline: 3px solid rgba(105, 216, 255, .24); outline-offset: 2px; }
.choice-card strong, .choice-card small { display: block; }
.choice-card strong { color: var(--white); }
.choice-card strong em { display: inline-flex; margin-left: 7px; padding: 2px 5px; border-radius: 4px; color: var(--deep); background: var(--cyan); font-size: .6rem; font-style: normal; text-transform: uppercase; }
.choice-card small { margin-top: 5px; color: var(--nebula); font-size: .76rem; font-weight: 400; line-height: 1.4; }

.rules-workspace { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; border: 1px solid rgba(79, 227, 164, .25); border-radius: var(--radius); background: rgba(79, 227, 164, .035); }
.rules-workspace.dirty { border-color: rgba(255, 216, 77, .36); background: rgba(255, 216, 77, .045); }
.workspace-state { min-width: 0; display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 13px; }
.state-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--deep); background: var(--success); font-weight: 900; }
.rules-workspace.dirty .state-mark { background: var(--gold); }
.workspace-state h2 { margin: 3px 0 4px; font-size: 1.08rem; }
.workspace-state p { margin: 0; color: var(--nebula); font-size: .8rem; }
.workspace-state p b { color: var(--white); }
.workspace-actions { display: flex; flex: 0 0 auto; gap: 8px; }
.version-list { display: grid; gap: 8px; }
.version-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--input); }
.version-item.current { border-color: rgba(79, 227, 164, .3); background: rgba(79, 227, 164, .035); }
.version-item > div { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 10px; }
.version-number { grid-row: 1 / 3; padding: 5px 7px; border-radius: 5px; color: var(--cyan); background: rgba(105, 216, 255, .08); font: 800 .75rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.version-item strong { overflow: hidden; color: var(--white); text-overflow: ellipsis; white-space: nowrap; }
.version-item small { color: var(--nebula); }
.signal-fieldset { display: flex; flex-wrap: wrap; gap: 8px; margin: 15px 0 0; padding: 13px; border: 1px solid var(--line); border-radius: var(--radius); }
.signal-fieldset legend { padding: 0 6px; color: var(--cyan); font-size: .78rem; font-weight: 700; }
.signal-fieldset label { display: flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 5px; color: #dce3eb; background: var(--input); cursor: pointer; }
.signal-fieldset input { accent-color: var(--violet); }
.simulation-result { display: grid; gap: 15px; margin-top: 18px; padding: 16px; border: 1px solid rgba(105, 216, 255, .25); border-radius: var(--radius); background: rgba(105, 216, 255, .025); }
.simulation-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.simulation-summary article { min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: 6px; background: var(--input); }
.simulation-summary span, .guard-result span { display: block; color: var(--nebula); font-size: .72rem; }
.simulation-summary strong { display: block; margin-top: 5px; overflow-wrap: anywhere; color: var(--white); font-size: .84rem; }
.guard-result { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 14px; border-left: 3px solid var(--success); border-radius: 5px; background: rgba(79, 227, 164, .05); }
.guard-result.filtered { border-color: var(--danger); background: rgba(255, 102, 117, .05); }
.guard-result strong { display: block; margin-top: 3px; color: var(--white); }
.guard-result p { grid-column: 1 / -1; margin: 0; color: #dce3eb; font-size: .8rem; }
.trace-title { margin: 0; color: var(--cyan); font-size: .9rem; }
.simulation-trace { display: grid; gap: 8px; }
.trace-item { padding: 11px; border: 1px solid var(--line); border-radius: 6px; background: var(--input); opacity: .78; }
.trace-item.matched { border-color: rgba(79, 227, 164, .4); opacity: 1; }
.trace-head { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 10px; }
.trace-head .priority-badge { width: 36px; height: 36px; }
.trace-head strong, .trace-head small { display: block; }
.trace-head small { margin-top: 3px; color: var(--nebula); }
.trace-conditions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.trace-conditions span { padding: 4px 6px; border-radius: 4px; color: var(--danger); background: rgba(255, 102, 117, .07); font-size: .7rem; }
.trace-conditions span.ok { color: var(--success); background: rgba(79, 227, 164, .07); }

.system-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.system-columns > .section:last-child { grid-column: 1 / -1; }
.system-list.single { grid-template-columns: 1fr; }
.alerts-section { border-color: rgba(105, 216, 255, .18); }
.alert-list { display: grid; gap: 8px; }
.runtime-alert { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 11px; padding: 12px; border: 1px solid rgba(255, 216, 77, .3); border-radius: 6px; background: rgba(255, 216, 77, .04); }
.runtime-alert.critical { border-color: rgba(255, 102, 117, .42); background: rgba(255, 102, 117, .045); }
.alert-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: var(--deep); background: var(--gold); font-weight: 900; }
.critical .alert-icon { color: #fff; background: var(--danger); }
.runtime-alert strong, .runtime-alert small { display: block; }
.runtime-alert p { margin: 5px 0 0; color: var(--cosmic); font-size: .84rem; line-height: 1.45; overflow-wrap: anywhere; }
.runtime-alert small { margin-top: 4px; color: var(--nebula); }
.healthy-empty { min-height: 80px; display: flex; align-items: center; justify-content: center; gap: 10px; color: #ccefdc; }
.healthy-empty span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--deep); background: var(--success); font-weight: 900; }
.healthy-empty p { margin: 0; }
.cloudflare-dns-card { border-color: rgba(105, 216, 255, .22); }
.cloudflare-token-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; margin-top: 15px; }
.access-guidance { margin-top: 0; }
.access-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.access-card { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--input); }
.access-card.inactive { opacity: .62; }
.access-card .resource-head p { margin: 5px 0 0; color: var(--nebula); }
.permission-chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 14px 0; }
.permission-chips span { padding: 4px 6px; border-radius: 4px; color: #d9e7ee; background: rgba(105, 216, 255, .07); font-size: .68rem; }
.loading-panel { min-height: 220px; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--nebula); }
.diagnostic-dialog { width: min(720px, calc(100% - 24px)); }
.diagnostic-content { min-height: 190px; display: grid; align-content: start; gap: 13px; margin-top: 18px; }
.diagnostic-content > .spinner { align-self: center; justify-self: center; margin: 55px 0; }
.diagnostic-summary { padding: 13px 15px; border-left: 3px solid var(--gold); border-radius: 4px; color: #f2e9c5; background: rgba(255, 216, 77, .055); line-height: 1.45; }
.diagnostic-summary.ready { border-color: var(--success); color: #cef6e4; background: rgba(79, 227, 164, .055); }
.diagnostic-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.diagnostic-row { min-width: 0; display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: start; gap: 10px; padding: 11px; border: 1px solid var(--line); border-radius: 6px; background: var(--input); }
.diagnostic-mark { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font-weight: 800; }
.diagnostic-mark.ok { color: var(--success); background: rgba(79, 227, 164, .09); }
.diagnostic-mark.fail { color: var(--danger); background: rgba(255, 102, 117, .09); }
.diagnostic-row b, .diagnostic-row small { display: block; }
.diagnostic-row b { color: var(--white); font-size: .82rem; }
.diagnostic-row small { margin-top: 4px; overflow-wrap: anywhere; color: var(--nebula); font-size: .74rem; line-height: 1.35; }
.technical-details { border: 1px solid var(--line); border-radius: 6px; background: var(--input); }
.technical-details summary { padding: 11px 13px; color: var(--cyan); cursor: pointer; }
.technical-details pre { max-height: 220px; margin: 0; padding: 0 13px 13px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--nebula); font: .72rem/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; }

@media (max-width: 1120px) {
  .stats-grid { grid-template-columns: repeat(3, minmax(130px, 1fr)); }
  .destination-grid, .form-grid { grid-template-columns: 1fr 1fr; }
  .destination:last-child { grid-column: 1 / -1; }
  .landing-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .template-grid { grid-template-columns: 1fr; }
  .condition-fields { grid-template-columns: 1fr 1fr; }
  .condition-fields .field:nth-child(3) { grid-column: 1 / -1; }
  .system-columns { grid-template-columns: 1fr; }
  .system-columns > .section:last-child { grid-column: auto; }
  .blacklist-form { grid-template-columns: minmax(180px, .8fr) minmax(220px, 1.2fr); }
  .blacklist-form .button { grid-column: 1 / -1; justify-self: end; }
}

@media (max-width: 820px) {
  .mobile-only { display: inline-grid !important; place-items: center; }
  .topbar { min-height: 64px; padding: 10px max(13px, env(safe-area-inset-right)) 10px max(13px, env(safe-area-inset-left)); gap: 10px; }
  .brand-logo { width: 142px; }
  .product-name, .connection-pill, .account-pill, .topbar .language-switch { display: none; }
  .workspace-grid { grid-template-columns: 1fr; min-height: calc(100vh - 64px); }
  .sidebar { position: fixed; top: 64px; left: 0; z-index: 30; width: min(290px, 88vw); height: calc(100vh - 64px); transform: translateX(-105%); transition: transform .2s ease; box-shadow: 18px 0 60px rgba(0, 0, 0, .5); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-scrim { position: fixed; inset: 64px 0 0; z-index: 25; border: 0; background: rgba(3, 5, 8, .7); }
  body.sidebar-open .sidebar-scrim { display: block; }
  .content { padding: 24px max(15px, env(safe-area-inset-right)) calc(50px + env(safe-area-inset-bottom)) max(15px, env(safe-area-inset-left)); }
  .page-head { display: grid; }
  .page-head h1 { font-size: 1.65rem; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid, .form-grid.two, .destination-grid, .destination-grid.two-destinations, .landing-list, .system-list, .resource-grid, .click-toolbar { grid-template-columns: 1fr; }
  .destination:last-child { grid-column: auto; }
  .section { padding: 17px; }
  .section-head { display: grid; }
  .page-actions, .form-actions { width: 100%; }
  .page-actions .button, .form-actions .button { flex: 1; }
  .workflow-dialog { width: calc(100% - 18px); max-height: calc(100dvh - 18px); }
  .workflow-card { padding: 20px; }
  .wizard-progress { gap: 5px; }
  .wizard-progress span { justify-content: center; padding: 8px 6px; font-size: 0; }
  .wizard-progress b { font-size: .7rem; }
  .wizard-step { min-height: 220px; padding: 15px; }
  .workflow-actions { bottom: -20px; margin: 18px -20px -20px; padding: 13px 20px; }
  .workflow-actions .button { flex: 0 1 auto; }
  .diagnostic-list { grid-template-columns: 1fr; }
  .condition-fields { grid-template-columns: 1fr; }
  .condition-fields .field:nth-child(3) { grid-column: auto; }
  .rules-workspace { align-items: stretch; flex-direction: column; }
  .workspace-actions { width: 100%; }
  .workspace-actions .button { flex: 1; }
  .choice-grid, .choice-grid.outage-grid, .access-grid { grid-template-columns: 1fr; }
  .cloudflare-token-form { grid-template-columns: 1fr; }
  .cloudflare-token-form .button { width: 100%; }
  .blacklist-form, .blacklist-list { grid-template-columns: 1fr; }
  .blacklist-form .button { grid-column: auto; width: 100%; }
  .blacklist-item { align-items: flex-start; }
  .click-table { min-width: 0; }
  .click-table thead { display: none; }
  .click-table tbody { display: grid; gap: 10px; padding: 10px; }
  .click-table tr { display: grid; grid-template-columns: 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: var(--input); }
  .click-table td { min-width: 0; display: grid; grid-template-columns: minmax(88px, .38fr) minmax(0, 1fr); gap: 10px; padding: 9px 11px; border-bottom: 1px solid rgba(110, 120, 136, .14); overflow-wrap: anywhere; }
  .click-table td::before { content: attr(data-label); color: var(--nebula); font-size: .7rem; font-weight: 750; text-transform: uppercase; }
  .click-table td:last-child { border-bottom: 0; }
  .click-table .cell-sub { max-width: none; margin-top: 0; overflow: visible; text-overflow: clip; white-space: normal; }
  .click-table .mini-action { width: 100%; }
}

@media (max-width: 480px) {
  .login-card { padding: 20px; }
  .brand-logo { width: 126px; }
  .compact-button { padding-inline: 10px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat { padding: 14px; }
  .stat strong { font-size: 1.1rem; }
  .content { padding-inline: 11px; }
  .section { padding: 14px; }
  .checklist { grid-template-columns: 1fr; }
  .check-item { min-height: 68px; }
  .rule-card { grid-template-columns: 42px minmax(0, 1fr); gap: 10px; padding: 13px; }
  .priority-badge { width: 38px; height: 38px; }
  .route-list > div { grid-template-columns: 75px minmax(0, 1fr); }
  .preflight-box dl { grid-template-columns: 1fr; }
  .review-card dl div { grid-template-columns: 1fr; gap: 4px; }
  .workflow-actions { flex-wrap: wrap; }
  .workflow-actions .action-spacer { display: none; }
  .workflow-actions .button { flex: 1 1 calc(50% - 5px); }
  .wizard-progress.four { gap: 4px; }
  .domain-health { align-items: flex-start; flex-direction: column; }
  .version-item { align-items: flex-start; flex-direction: column; }
  .version-item > .mini-action { width: 100%; }
  .simulation-summary { grid-template-columns: 1fr; }
  .guard-result { grid-template-columns: 1fr; }
  .guard-result p { grid-column: auto; }
  .workspace-state { grid-template-columns: 34px minmax(0, 1fr); }
  .state-mark { width: 34px; height: 34px; }
  .blacklist-item { display: grid; }
  .blacklist-item .mini-action { width: 100%; }
  .click-table td { grid-template-columns: 78px minmax(0, 1fr); }
}
