:root {
  --ink: #102a43;
  --ink-soft: #53657b;
  --teal: #0f9d8a;
  --teal-deep: #087d71;
  --teal-pale: #ebf8f6;
  --line: #dce5ed;
  --line-strong: #c8d4df;
  --mist: #f5f8fa;
  --blue-mist: #eff7ff;
  --danger: #b42318;
  --success: #108a45;
  --shadow: 0 18px 46px rgba(24, 61, 92, 0.07);
  font-family: "Noto Sans TC", system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: #fff; }
body { min-width: 320px; margin: 0; background: #fff; }
button, input, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px 24px;
  background: linear-gradient(122deg, #f7fbfb 0%, #fff 47%, #f4f9fb 100%);
}

.auth-brand, .brand {
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  gap: 10px;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.auth-brand { margin: 0 0 30px; }
.auth-brand svg, .brand svg { width: 47px; height: 47px; color: var(--teal); flex: none; }
.auth-brand small, .brand small { display: block; margin-top: 1px; color: var(--ink-soft); font-size: 13px; font-weight: 500; letter-spacing: .12em; }
.auth-card { width: min(100%, 510px); border: 1px solid var(--line); border-radius: 18px; padding: 42px; background: #fff; box-shadow: var(--shadow); }
.auth-kicker, .page-kicker { margin: 0 0 10px; color: var(--teal-deep); font-family: "DM Mono", monospace; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.auth-card h1 { margin: 0; font-size: clamp(28px, 4vw, 35px); line-height: 1.2; letter-spacing: -.05em; }
.auth-copy { margin: 14px 0 26px; color: var(--ink-soft); font-size: 14px; line-height: 1.85; }
.auth-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: var(--mist); }
.auth-tab { flex: 1; border: 0; border-radius: 7px; padding: 10px; color: var(--ink-soft); background: transparent; font-size: 14px; font-weight: 700; }
.auth-tab.is-active { color: var(--ink); background: #fff; box-shadow: 0 1px 3px rgba(16, 42, 67, .12); }
.auth-form { display: grid; gap: 16px; margin-top: 26px; }
.auth-form label, .setup-form label, .bot-picker { display: grid; gap: 7px; color: var(--ink); font-size: 13px; font-weight: 700; }
.auth-form input, .setup-form input, .bot-picker select { width: 100%; height: 46px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 0 13px; outline: 0; color: var(--ink); background: #fff; font-size: 14px; transition: border-color .18s, box-shadow .18s; }
.auth-form input:focus, .setup-form input:focus, .bot-picker select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15, 157, 138, .13); }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-notice { min-height: 1.2em; margin: 0; color: var(--danger); font-size: 13px; line-height: 1.55; }
.form-notice.is-success { color: var(--success); }
.primary-button, .secondary-button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 8px; font-weight: 700; transition: transform .18s, background .18s, box-shadow .18s; }
.primary-button { width: 100%; color: #fff; background: var(--teal); box-shadow: 0 8px 16px rgba(15, 157, 138, .18); }
.primary-button:hover { background: var(--teal-deep); transform: translateY(-1px); }
.primary-button:focus-visible, .secondary-button:focus-visible, .nav-link:focus-visible, .account-row:focus-visible { outline: 3px solid rgba(15, 157, 138, .32); outline-offset: 2px; }
.primary-button:disabled, .secondary-button:disabled { cursor: not-allowed; opacity: .58; transform: none; box-shadow: none; }
.primary-button svg { width: 19px; height: 19px; }
.line-login-option { margin-top: 20px; }
.auth-divider { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; color: #8292a2; font-size: 12px; }
.auth-divider::before, .auth-divider::after { height: 1px; background: var(--line); content: ""; }
.line-login-button { display: inline-flex; width: 100%; min-height: 50px; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; border: 1px solid #03a14b; border-radius: 8px; color: #fff; background: #06c755; box-shadow: 0 8px 16px rgba(6, 199, 85, .16); font-weight: 700; transition: transform .18s, background .18s, box-shadow .18s; }
.line-login-button:hover { background: #05b94f; transform: translateY(-1px); }
.line-login-button:focus-visible { outline: 3px solid rgba(6, 199, 85, .28); outline-offset: 2px; }
.line-login-button svg { width: 22px; height: 22px; }
.line-login-option > p { margin: 10px 0 0; color: #71828f; font-size: 12px; line-height: 1.65; text-align: center; }
.auth-security { display: flex; gap: 9px; align-items: flex-start; margin: 30px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 12px; line-height: 1.65; }
.auth-security svg { width: 17px; height: 17px; flex: none; color: var(--teal-deep); }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 252px minmax(0, 1fr); }
.side-nav { position: sticky; top: 0; display: flex; height: 100vh; flex-direction: column; border-right: 1px solid var(--line); padding: 28px 16px 20px; background: #fff; }
.brand { margin: 0 12px 44px; font-size: 24px; }
.brand svg { width: 40px; height: 40px; }
.brand small { font-size: 11px; }
.side-nav nav { display: grid; gap: 5px; }
.nav-link { display: flex; align-items: center; gap: 14px; min-height: 46px; padding: 0 14px; border-radius: 7px; color: #496178; text-decoration: none; font-size: 14px; font-weight: 600; }
.nav-link:hover { color: var(--ink); background: var(--mist); }
.nav-link.is-active { position: relative; color: var(--teal-deep); background: var(--teal-pale); }
.nav-link.is-active::before { position: absolute; left: -16px; width: 4px; height: 28px; border-radius: 0 4px 4px 0; background: var(--teal); content: ""; }
.nav-icon { position: relative; width: 20px; height: 20px; flex: none; color: currentColor; }
.grid-icon { background: linear-gradient(currentColor 0 0) 0 0/7px 7px, linear-gradient(currentColor 0 0) 100% 0/7px 7px, linear-gradient(currentColor 0 0) 0 100%/7px 7px, linear-gradient(currentColor 0 0) 100% 100%/7px 7px; background-repeat: no-repeat; border-radius: 3px; opacity: .9; }
.message-icon { border: 1.8px solid currentColor; border-radius: 4px; }
.message-icon::before { position: absolute; left: 4px; right: 4px; top: 6px; height: 2px; background: currentColor; box-shadow: 0 4px 0 currentColor; content: ""; }
.message-icon::after { position: absolute; bottom: -3px; left: 4px; border-top: 4px solid currentColor; border-right: 4px solid transparent; content: ""; }
.report-icon { border: 1.8px solid currentColor; border-radius: 3px; }
.report-icon::before { position: absolute; inset: 5px 4px; background: linear-gradient(currentColor 0 0) 0 0/100% 2px, linear-gradient(currentColor 0 0) 0 50%/72% 2px, linear-gradient(currentColor 0 0) 0 100%/86% 2px; background-repeat: no-repeat; content: ""; }
.alert-icon { border: 1.8px solid currentColor; border-bottom-color: transparent; border-radius: 10px 10px 4px 4px; transform: scale(.78); }
.alert-icon::after { position: absolute; bottom: -5px; left: 7px; width: 5px; height: 2px; border-radius: 2px; background: currentColor; content: ""; }
.bot-icon { border: 1.8px solid currentColor; border-radius: 5px; }
.bot-icon::before { position: absolute; top: -5px; left: 8px; width: 2px; height: 4px; background: currentColor; content: ""; }
.bot-icon::after { position: absolute; top: 7px; left: 4px; width: 3px; height: 3px; border-radius: 50%; background: currentColor; box-shadow: 8px 0 0 currentColor; content: ""; }
.side-footer { margin-top: auto; padding: 18px 12px 0; border-top: 1px solid var(--line); }
.workspace-label { margin: 0 0 5px; color: #7a8da1; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.side-footer > strong { display: block; overflow: hidden; margin-bottom: 16px; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.account-row { width: 100%; display: grid; grid-template-columns: 32px 1fr 16px; gap: 9px; align-items: center; border: 0; padding: 0; color: var(--ink); background: transparent; text-align: left; }
.account-row svg { width: 16px; color: var(--ink-soft); }
.account-avatar { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; color: #fff; background: var(--teal); font-size: 12px; font-weight: 700; }
.account-row b, .account-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-row b { font-size: 12px; }.account-row small { margin-top: 2px; color: var(--ink-soft); font-size: 10px; }

.main-content { min-width: 0; padding: 54px clamp(24px, 5vw, 74px) 44px; }
.content-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; max-width: 1320px; margin: 0 auto 32px; }
.content-header h1 { margin: 0; font-size: clamp(31px, 3vw, 43px); line-height: 1.16; letter-spacing: -.055em; }
.content-header p:not(.page-kicker) { max-width: 650px; margin: 13px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.8; }
.header-actions { display: flex; align-items: end; gap: 12px; flex: none; }
.bot-picker { min-width: 180px; color: var(--ink-soft); font-size: 10px; letter-spacing: .05em; }
.bot-picker select { min-width: 180px; height: 38px; color: var(--ink); font-size: 13px; font-weight: 600; letter-spacing: 0; }
.status-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; color: #617389; background: var(--mist); font-size: 12px; white-space: nowrap; }
.status-chip i { width: 9px; height: 9px; border-radius: 50%; background: #95a4b5; }
.status-chip[data-status="active"] { color: #087d42; border-color: #bfe4cf; background: #effaf3; }.status-chip[data-status="active"] i { background: #22a85d; box-shadow: 0 0 0 4px rgba(34, 168, 93, .11); }
.permission-denied { max-width: 900px; margin: 50px auto; border: 1px solid #f2c8c5; border-radius: 14px; padding: 28px; color: #7d1f1a; background: #fff8f7; }.permission-denied h2 { margin: 0; font-size: 20px; }.permission-denied p { margin: 9px 0 0; font-size: 14px; }
.setup-layout { max-width: 1320px; display: grid; grid-template-columns: minmax(440px, .96fr) minmax(390px, 1fr); gap: 28px; margin: 0 auto; }
.setup-form, .verification-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 10px 28px rgba(23, 51, 78, .035); }
.form-stage { display: grid; grid-template-columns: 43px 1fr; gap: 14px; padding: 27px 30px; border-bottom: 1px solid var(--line); }.form-stage:last-child { border-bottom: 0; }
.stage-number { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 50%; color: #fff; background: var(--teal); font-family: "DM Mono", monospace; font-size: 14px; font-weight: 700; box-shadow: 0 4px 9px rgba(15, 157, 138, .19); }
.stage-content h2, .webhook-card h2, .checklist-card h2 { margin: 0; font-size: 18px; letter-spacing: -.025em; }.stage-content > p, .webhook-card > p, .checklist-card > p { margin: 7px 0 18px; color: var(--ink-soft); font-size: 13px; line-height: 1.75; }
.setup-form label { position: relative; margin-top: 16px; }.setup-form label:first-of-type { margin-top: 0; }.setup-form label small { position: absolute; right: 11px; bottom: 14px; color: #8292a2; font-size: 11px; font-weight: 500; }.setup-form label em { color: var(--ink-soft); font-style: normal; font-weight: 500; }
.setup-form input { height: 47px; }.setup-form input::placeholder { color: #a2afbc; }.setup-form input[type="password"] { font-family: "DM Mono", monospace; letter-spacing: .06em; }.setup-form .secret-hint { color: var(--teal-deep); }.credential-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px 13px; border-radius: 8px; color: #315471; background: var(--blue-mist); }.credential-note svg { width: 19px; flex: none; color: #1774bf; }.credential-note p { margin: 0; font-size: 12px; line-height: 1.65; }.credential-note b { color: var(--ink); }
.form-action-stage { background: #fbfefd; }.form-action-stage .stage-content > p { margin-bottom: 14px; }.form-action-stage .primary-button { max-width: 100%; }
.verification-panel { display: flex; flex-direction: column; }.webhook-card, .checklist-card { padding: 28px 30px; }.webhook-card { border-bottom: 1px solid var(--line); }.webhook-card > p { margin-bottom: 17px; }
.webhook-output { display: grid; grid-template-columns: minmax(0, 1fr) 54px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; }.webhook-output code { overflow: hidden; padding: 13px 14px; color: var(--ink); font-family: "DM Mono", monospace; font-size: 12px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }.webhook-output code.is-empty { color: #8998a7; font-family: "Noto Sans TC", system-ui, sans-serif; }.webhook-output button { display: grid; place-items: center; border: 0; border-left: 1px solid var(--line); color: var(--teal); background: #fff; }.webhook-output button:hover:not(:disabled) { background: var(--teal-pale); }.webhook-output button:disabled { color: #aab5c0; cursor: not-allowed; }.webhook-output svg { width: 23px; }
.webhook-note { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; padding: 11px 12px; border-radius: 7px; color: #2f5f82; background: var(--blue-mist); font-size: 12px; line-height: 1.6; }.webhook-note svg { width: 18px; flex: none; }
.checklist-card > p { margin-bottom: 10px; }.verification-checklist { margin: 0; padding: 0; list-style: none; }.verification-checklist li { display: grid; grid-template-columns: 29px 1fr 20px; gap: 10px; align-items: center; min-height: 51px; border-bottom: 1px solid #e8edf2; }.verification-checklist li > span { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 50%; color: #fff; background: var(--teal); font-family: "DM Mono", monospace; font-size: 11px; font-weight: 700; }.verification-checklist p { margin: 0; color: #334f69; font-size: 12px; line-height: 1.45; }.verification-checklist i { position: relative; display: block; width: 19px; height: 19px; border: 1.5px dashed #a3b1bf; border-radius: 50%; }.verification-checklist li.is-done i { border-color: #18a954; background: #18a954; }.verification-checklist li.is-done i::after { position: absolute; left: 5px; top: 3px; width: 6px; height: 9px; border: solid #fff; border-width: 0 1.7px 1.7px 0; transform: rotate(45deg); content: ""; }
.activation-box { margin-top: 22px; padding: 15px; border-radius: 9px; background: var(--mist); }.activation-box p { margin: 0 0 12px; color: #466278; font-size: 12px; line-height: 1.7; }.activation-box b { color: var(--ink); }.secondary-button { width: 100%; border: 1px solid var(--teal); color: var(--teal-deep); background: #fff; font-size: 13px; }.secondary-button:hover:not(:disabled) { color: #fff; background: var(--teal); }
.test-callout { display: flex; gap: 11px; align-items: flex-start; margin: auto 30px 28px; padding: 15px; border-radius: 9px; color: #315a7c; background: var(--blue-mist); }.test-callout svg { width: 22px; flex: none; color: var(--teal-deep); }.test-callout p { margin: 0; font-size: 12px; line-height: 1.7; }

@media (max-width: 1050px) { .app-shell { grid-template-columns: 76px minmax(0, 1fr); }.side-nav { align-items: center; padding-inline: 10px; }.brand { margin: 0 0 40px; }.brand span, .nav-link:not(.is-active)::after, .nav-link { font-size: 0; }.nav-link { width: 48px; height: 48px; justify-content: center; padding: 0; }.nav-link.is-active::before { left: -10px; }.nav-icon { width: 21px; height: 21px; }.side-footer { width: 100%; padding-inline: 0; text-align: center; }.side-footer > strong, .workspace-label, .account-row > span:nth-child(2), .account-row > svg { display: none; }.account-row { display: flex; justify-content: center; }.setup-layout { grid-template-columns: 1fr; }.verification-panel { order: -1; }.verification-panel { display: grid; grid-template-columns: 1fr 1fr; }.webhook-card { border-bottom: 0; border-right: 1px solid var(--line); }.checklist-card { border-top: 1px solid var(--line); grid-column: span 2; }.test-callout { grid-column: span 2; }.content-header { flex-direction: column; }.header-actions { width: 100%; }.bot-picker { flex: 1; }.bot-picker select { min-width: 0; } }
@media (max-width: 700px) { .auth-shell { padding: 22px 15px; align-content: center; }.auth-brand { margin-bottom: 20px; }.auth-card { padding: 27px 21px; }.two-fields { grid-template-columns: 1fr; }.app-shell { display: block; }.side-nav { position: static; width: 100%; height: auto; flex-direction: row; align-items: center; padding: 14px 18px; border-right: 0; border-bottom: 1px solid var(--line); }.brand { margin: 0; }.brand svg { width: 34px; height: 34px; }.side-nav nav, .side-footer { display: none; }.main-content { padding: 32px 16px 28px; }.content-header { gap: 18px; margin-bottom: 22px; }.content-header h1 { font-size: 32px; }.header-actions { display: grid; grid-template-columns: 1fr auto; align-items: end; }.bot-picker { min-width: 0; }.bot-picker select { width: 100%; }.setup-layout { gap: 18px; }.verification-panel { display: flex; }.webhook-card, .checklist-card { padding: 24px 20px; border-right: 0; }.webhook-card { border-bottom: 1px solid var(--line); }.form-stage { grid-template-columns: 33px 1fr; gap: 10px; padding: 24px 20px; }.stage-number { width: 27px; height: 27px; font-size: 12px; }.test-callout { margin: 0 20px 20px; }.webhook-output code { font-size: 11px; }.status-chip { padding-inline: 9px; }.status-chip b { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }

/* Onboarding entry: turn the first sign-in into a clear, three-step product path. */
.auth-shell { display: block; min-height: 100svh; padding: clamp(36px, 4.8vw, 72px) 24px; background: #fff; }
.auth-layout { width: min(100%, 1270px); min-height: calc(100svh - clamp(72px, 9.6vw, 144px)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(460px, 540px); gap: clamp(50px, 7vw, 104px); align-items: center; margin: 0 auto; }
.auth-intro { max-width: 630px; }
.auth-brand { margin: 0 0 clamp(46px, 6vw, 76px); color: var(--ink); }
.auth-brand svg { width: 49px; height: 49px; color: var(--teal-deep); }
.auth-intro h1 { max-width: 630px; margin: 0; color: var(--ink); font-size: clamp(42px, 3.65vw, 53px); font-weight: 700; line-height: 1.3; letter-spacing: -.065em; }
.auth-intro-copy { max-width: 515px; margin: 23px 0 39px; color: #526b84; font-size: 16px; line-height: 1.9; }
.auth-journey { display: grid; gap: 0; max-width: 520px; margin: 0; padding: 0; list-style: none; }
.auth-journey li { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; min-height: 104px; }
.auth-journey li:not(:last-child)::after { position: absolute; top: 47px; bottom: 8px; left: 23px; width: 1px; background: #cddde5; content: ""; }
.auth-journey li > span { position: relative; z-index: 1; display: grid; width: 47px; height: 47px; place-items: center; border: 1px solid #cddde5; border-radius: 50%; color: #60778d; background: #fff; font-family: "DM Mono", monospace; font-size: 16px; font-weight: 700; }
.auth-journey li.is-current > span { border-color: var(--teal); color: #fff; background: var(--teal-deep); box-shadow: 0 9px 19px rgba(8, 125, 113, .2); }
.auth-journey b { display: block; padding-top: 6px; color: var(--ink); font-size: 18px; letter-spacing: -.03em; }
.auth-journey p { margin: 8px 0 0; color: #61758a; font-size: 13px; line-height: 1.7; }
.auth-assurance { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 16px; max-width: 545px; margin-top: 34px; padding: 19px; border: 1px solid #b9dedb; border-radius: 11px; background: #f6fbfb; }
.auth-assurance svg { width: 46px; height: 46px; color: var(--teal); fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.auth-assurance b { display: block; color: var(--ink); font-size: 15px; }
.auth-assurance p { margin: 5px 0 0; color: #557084; font-size: 12px; line-height: 1.65; }

.auth-card { width: 100%; padding: 46px; border-color: #d8e4eb; border-radius: 16px; box-shadow: 0 20px 52px rgba(19, 53, 80, .07); }
.auth-card h2 { margin: 0; color: var(--ink); font-size: clamp(30px, 3vw, 38px); line-height: 1.2; letter-spacing: -.055em; }
.auth-copy { max-width: 420px; margin: 14px 0 30px; color: #586f85; font-size: 14px; line-height: 1.8; }
.auth-tabs { gap: 0; padding: 0; border-radius: 0; border-bottom: 1px solid #d8e3ea; background: transparent; }
.auth-tab { position: relative; border-radius: 0; padding: 13px 10px 14px; color: #60788e; }
.auth-tab::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: transparent; content: ""; }
.auth-tab.is-active { color: var(--teal-deep); background: transparent; box-shadow: none; }
.auth-tab.is-active::after { background: var(--teal); }
.auth-form { gap: 17px; margin-top: 28px; }
.auth-form input { height: 51px; border-radius: 9px; padding-inline: 15px; }
.auth-form input::placeholder { color: #a2b0bd; }
.primary-button { min-height: 52px; border-radius: 8px; }
.auth-security { margin-top: 27px; padding-top: 18px; }
.auth-return { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; color: var(--teal-deep); font-size: 13px; font-weight: 700; text-decoration: none; }
.auth-return:hover { color: var(--ink); }.auth-return:focus-visible { outline: 3px solid rgba(15, 157, 138, .28); outline-offset: 4px; }

@media (max-width: 980px) { .auth-shell { padding-block: 46px; }.auth-layout { max-width: 690px; grid-template-columns: 1fr; gap: 48px; }.auth-intro { max-width: none; }.auth-brand { margin-bottom: 34px; }.auth-intro h1 { max-width: 640px; font-size: clamp(40px, 7vw, 54px); }.auth-intro-copy { max-width: 640px; }.auth-journey { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; gap: 18px; }.auth-journey li { display: block; min-height: 0; }.auth-journey li:not(:last-child)::after { display: none; }.auth-journey b { padding-top: 12px; font-size: 15px; }.auth-journey p { font-size: 12px; }.auth-assurance { max-width: none; margin-top: 28px; }.auth-card { max-width: 620px; } }
@media (max-width: 650px) { .auth-shell { padding: 28px 15px; }.auth-layout { min-height: auto; gap: 34px; }.auth-brand { margin-bottom: 30px; font-size: 23px; }.auth-brand svg { width: 42px; height: 42px; }.auth-intro h1 { font-size: 36px; line-height: 1.34; }.auth-intro-copy { margin: 16px 0 27px; font-size: 14px; }.auth-journey { grid-template-columns: 1fr; gap: 0; }.auth-journey li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 13px; min-height: 77px; }.auth-journey li:not(:last-child)::after { display: block; top: 38px; bottom: 6px; left: 19px; }.auth-journey li > span { width: 39px; height: 39px; font-size: 13px; }.auth-journey b { padding-top: 4px; font-size: 15px; }.auth-journey p { margin-top: 4px; font-size: 12px; }.auth-assurance { grid-template-columns: 38px minmax(0, 1fr); gap: 12px; margin-top: 22px; padding: 15px; }.auth-assurance svg { width: 34px; height: 34px; }.auth-card { padding: 28px 21px; border-radius: 13px; }.auth-card h2 { font-size: 29px; }.auth-copy { margin: 12px 0 24px; font-size: 13px; }.auth-tab { padding-block: 11px 12px; }.auth-form { margin-top: 22px; }.auth-return { margin-top: 21px; } }

/* Operations console */
:root {
  --ink: #062844;
  --ink-soft: #5b7183;
  --teal: #007f83;
  --teal-deep: #00666b;
  --teal-pale: #eaf7f5;
  --line: #d7e5ea;
  --line-strong: #c5d7de;
  --mist: #f5f8f9;
}

.app-shell { grid-template-columns: 224px minmax(0, 1fr); background: #f7f9fa; }
.side-nav { width: 224px; padding: 22px 12px 18px; background: #fff; }
.side-nav .brand { gap: 9px; margin: 0 10px 28px; font-size: 20px; }
.admin-brand-mark { position: relative; display: grid; width: 34px; height: 34px; place-items: center; overflow: hidden; border: 5px solid var(--ink); border-radius: 50%; color: transparent; font-size: 0; transform: rotate(-10deg); }
.admin-brand-mark::before { position: absolute; right: -6px; bottom: -3px; width: 14px; height: 5px; border-radius: 5px; background: var(--teal); transform: rotate(50deg); content: ""; }
.admin-brand-mark::after { position: absolute; top: 2px; right: 1px; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); content: ""; }
.side-nav nav { gap: 3px; }
.side-nav .nav-link { position: relative; width: 100%; min-height: 43px; border: 0; padding: 0 12px; text-align: left; background: transparent; }
.side-nav .nav-link.is-active::before { left: -12px; height: 25px; }
.nav-symbol { display: grid; width: 21px; height: 21px; place-items: center; flex: none; font-family: "DM Mono", monospace; font-size: 17px; }
.nav-count { min-width: 20px; margin-left: auto; border-radius: 20px; padding: 1px 6px; color: var(--teal-deep); background: #d6efec; font-family: "DM Mono", monospace; font-size: 10px; text-align: center; }
.admin-main { min-width: 0; padding: 26px clamp(22px, 3vw, 46px) 48px; }
.admin-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1540px; margin: 0 auto 24px; }
.admin-header h1 { margin: 1px 0 0; font-size: clamp(26px, 2.2vw, 34px); line-height: 1.2; letter-spacing: -.045em; }
.admin-header > div > p:last-child { margin: 6px 0 0; color: var(--ink-soft); font-size: 13px; }
.header-identity { display: flex; align-items: center; gap: 12px; }
.live-indicator { display: inline-flex; align-items: center; gap: 7px; color: #416577; font-size: 12px; }
.live-indicator i { width: 8px; height: 8px; border-radius: 50%; background: #22a85d; box-shadow: 0 0 0 4px #e6f6ec; }
.icon-button { position: relative; display: grid; width: 37px; height: 37px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--teal); background: #fff; font-size: 7px; }
.icon-button b { position: absolute; top: -5px; right: -3px; display: grid; width: 17px; height: 17px; place-items: center; border: 2px solid #fff; border-radius: 50%; color: #fff; background: #d63f38; font-size: 8px; }
.admin-view { display: none; max-width: 1540px; margin: 0 auto; }
.admin-view.is-active { display: block; }
.metric-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.metric-row article { min-height: 128px; border: 1px solid var(--line); border-radius: 10px; padding: 18px 19px; background: #fff; }
.metric-row article > span { display: block; color: #536d7d; font-size: 12px; font-weight: 700; }
.metric-row strong { display: block; margin-top: 10px; color: var(--teal); font-family: "DM Mono", monospace; font-size: 27px; font-weight: 600; line-height: 1.1; }
.metric-row strong b { font: inherit; }
.metric-row strong small { margin-left: 5px; color: #80909d; font-size: 12px; font-weight: 500; }
.metric-row article > small { display: block; margin-top: 10px; color: #82929f; font-size: 11px; }
.tone-warning { color: #c66c00 !important; }.tone-success { color: #168a4b !important; }.tone-danger { color: #c5322f !important; }
.meter { height: 5px; overflow: hidden; margin-top: 14px; border-radius: 6px; background: #e9eff1; }
.meter i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--teal); transition: width .45s ease; }
.operations-grid { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 16px; align-items: stretch; }
.data-panel, .detail-panel, .connection-mode, .review-intro, .billing-period { border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.data-panel { min-width: 0; overflow: hidden; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.panel-title h2, .section-heading h2, .byo-header h2 { margin: 1px 0 0; font-size: 18px; letter-spacing: -.025em; }
.eyebrow { margin: 0; color: var(--teal-deep); font-family: "DM Mono", monospace; font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.text-button { border: 0; padding: 5px; color: var(--teal-deep); background: transparent; font-size: 12px; font-weight: 700; }
.table-wrap { overflow: auto; }
.message-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.message-table th { height: 39px; padding: 0 12px; color: #6a7d8b; background: #fbfcfc; font-size: 10px; font-weight: 700; text-align: left; white-space: nowrap; }
.message-table td { height: 52px; overflow: hidden; border-top: 1px solid #e8eef0; padding: 8px 12px; color: #3f596c; font-size: 11px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.message-table th:nth-child(1), .message-table td:nth-child(1) { width: 92px; }
.message-table th:nth-child(2), .message-table td:nth-child(2) { width: 132px; }
.message-table th:nth-child(3), .message-table td:nth-child(3) { width: 110px; }
.message-table th:nth-child(5), .message-table td:nth-child(5) { width: 128px; }
.message-table th:nth-child(6), .message-table td:nth-child(6) { width: 93px; }
.message-table tbody tr { cursor: pointer; transition: background .15s ease; }
.message-table tbody tr:hover, .message-table tbody tr.is-selected { background: #eef8f6; }
.message-table tbody tr.is-selected td:first-child { box-shadow: inset 3px 0 var(--teal); }
.status-badge { display: inline-flex; align-items: center; min-height: 23px; border: 1px solid #cbd9de; border-radius: 5px; padding: 0 7px; color: #60727e; background: #f8fafb; font-size: 10px; font-weight: 700; }
.status-badge.pending { border-color: #efcc94; color: #a55a00; background: #fff8e9; }
.status-badge.confirmed, .status-badge.corrected, .status-badge.complete { border-color: #a9dac0; color: #087a43; background: #effaf3; }
.status-badge.error { border-color: #efb8b5; color: #b42318; background: #fff4f3; }
.detail-panel { min-height: 460px; padding: 20px; }
.detail-empty { display: grid; min-height: 380px; place-items: center; color: #81919d; text-align: center; }
.detail-empty span { display: grid; width: 48px; height: 48px; margin: 0 auto 13px; place-items: center; border-radius: 50%; color: var(--teal); background: var(--teal-pale); font-size: 20px; }
.detail-empty p { max-width: 250px; margin: 0; font-size: 12px; line-height: 1.7; }
.detail-head { padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.detail-head h2 { margin: 0 0 10px; font-size: 17px; }
.detail-meta { display: grid; grid-template-columns: 74px 1fr; gap: 7px; color: #647987; font-size: 11px; }
.detail-meta b { color: var(--ink); font-weight: 600; }
.source-block { margin: 16px 0; }
.source-block > span, .ai-block > span { display: block; margin-bottom: 8px; color: #647987; font-size: 10px; font-weight: 700; letter-spacing: .06em; }
.source-message { width: fit-content; max-width: 94%; margin-left: auto; border-radius: 12px 3px 12px 12px; padding: 10px 12px; color: #29465a; background: #edf2f4; font-size: 12px; line-height: 1.65; }
.ai-block { border-radius: 8px; padding: 14px; background: var(--teal-pale); }
.ai-grid { display: grid; grid-template-columns: 74px 1fr; gap: 8px; margin: 0; font-size: 11px; }
.ai-grid dt { color: #607681; }.ai-grid dd { margin: 0; color: var(--ink); font-weight: 600; }
.review-form { display: grid; gap: 9px; margin-top: 14px; }
.review-form label { display: grid; gap: 4px; color: #5d7180; font-size: 10px; font-weight: 700; }
.review-form input, .review-form select, .review-form textarea, .filter-bar input, .filter-bar select, .estimator input, .estimator select { width: 100%; border: 1px solid var(--line-strong); border-radius: 6px; padding: 8px 9px; outline: none; color: var(--ink); background: #fff; font-size: 11px; }
.review-form textarea { min-height: 58px; resize: vertical; }
.review-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 4px; }
.review-actions .confirm-action { grid-column: 1 / -1; color: #fff; border-color: var(--teal); background: var(--teal); }
.review-actions button { min-height: 34px; border: 1px solid var(--teal); border-radius: 6px; color: var(--teal-deep); background: #fff; font-size: 11px; font-weight: 700; }
.overview-lower { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 16px; margin-top: 16px; }
.group-health-panel { margin-top: 16px; }.group-health-panel .panel-title p { margin: 5px 0 0; color: #6c808c; font-size: 10px; }
.status-bars { display: grid; gap: 10px; padding: 18px; }
.status-line { display: grid; grid-template-columns: 72px minmax(0, 1fr) 34px; gap: 10px; align-items: center; font-size: 11px; }
.status-line span { color: #526a7a; }.status-line b { color: var(--ink); text-align: right; }
.status-line i { display: block; height: 7px; border-radius: 6px; background: #dce8ea; }
.status-line i::after { display: block; width: var(--status-width, 0%); height: 100%; border-radius: inherit; background: var(--teal); content: ""; transition: width .5s ease; }
.usage-mini { padding-bottom: 13px; }
.usage-line { display: grid; grid-template-columns: 86px minmax(0, 1fr) 90px; gap: 9px; align-items: center; padding: 7px 18px; font-size: 10px; }
.usage-line > span { color: #526a7a; }.usage-line > b { color: #40596c; text-align: right; }
.usage-line .meter { margin: 0; }
.plan-note { margin: 9px 18px 0; color: #71828f; font-size: 10px; }
.outline-button, .pagination button { min-height: 34px; border: 1px solid var(--teal); border-radius: 6px; padding: 0 12px; color: var(--teal-deep); background: #fff; font-size: 11px; font-weight: 700; }
.outline-button.compact { min-height: 30px; }
.empty-state { padding: 54px 20px; text-align: center; }
.empty-state b { display: block; color: var(--ink); font-size: 15px; }.empty-state p { max-width: 420px; margin: 8px auto 18px; color: var(--ink-soft); font-size: 12px; }
.filter-bar { display: grid; grid-template-columns: 150px 150px 150px minmax(220px, 1fr) auto; gap: 10px; align-items: end; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 9px; padding: 12px; background: #fff; }
.filter-bar label, .estimator label { display: grid; gap: 5px; color: #667a88; font-size: 10px; font-weight: 700; }
.filter-bar input, .filter-bar select { height: 35px; }
.messages-grid .data-panel { min-height: 620px; }
.table-count { color: #748693; font-size: 11px; }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 13px; padding: 12px 16px; border-top: 1px solid var(--line); color: #667b88; font-size: 11px; }
.pagination button:disabled { opacity: .45; cursor: not-allowed; }
.review-intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 14px; padding: 20px 23px; }
.review-intro > div:first-child { display: grid; grid-template-columns: 42px 1fr; column-gap: 14px; align-items: center; }
.review-intro h2 { margin: 0; font-size: 20px; }.review-intro p { grid-column: 2; margin: 3px 0 0; color: var(--ink-soft); font-size: 12px; }
.review-icon { grid-row: span 2; display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; color: #fff; background: var(--teal); font-weight: 700; }
.review-intro > div:last-child { text-align: right; }.review-intro > div:last-child b { display: block; color: var(--teal); font-family: "DM Mono", monospace; font-size: 28px; }.review-intro > div:last-child span { color: #6f818e; font-size: 10px; }
.report-review-panel { margin-top: 16px; }.report-review-panel .panel-title { align-items: flex-start; }.report-review-panel .panel-title p { margin: 4px 0 0; color: #647b87; font-size: 10px; line-height: 1.65; }.report-review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }.report-review-grid > div + div { border-left: 1px solid var(--line); }.report-review-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: #fbfefe; }.report-review-heading b { color: var(--teal-deep); font-size: 11px; }.digest-review-row { align-items: flex-start; }.digest-review-row small { max-width: 620px; }.digest-review-row .governance-actions { padding-top: 2px; }
.billing-period { display: grid; grid-template-columns: 190px minmax(0, 1fr) 160px; align-items: center; margin-bottom: 26px; padding: 18px 21px; }
.billing-period > div { padding: 0 18px; border-right: 1px solid var(--line); }.billing-period > div:first-child { padding-left: 0; }.billing-period > div:last-child { border: 0; padding-right: 0; text-align: right; }
.billing-period span { display: block; color: #6a7d8a; font-size: 10px; }.billing-period b { display: block; margin-top: 3px; color: var(--ink); font-size: 14px; }
#billing-usage-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.billing-summary-item b { color: var(--teal); font-family: "DM Mono", monospace; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 0 0 15px; }
.section-heading h2 { font-size: 24px; }.section-heading > div > p:last-child, .byo-header > div > p:last-child { margin: 6px 0 0; color: var(--ink-soft); font-size: 12px; }
.beta-label { border: 1px solid #add6d2; border-radius: 6px; padding: 5px 9px; color: var(--teal-deep); background: #f3fbfa; font-size: 10px; font-weight: 700; }
.plan-comparison { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.plan-column { position: relative; min-width: 0; border-right: 1px solid var(--line); padding: 20px; }
.plan-column:last-child { border-right: 0; }.plan-column.is-popular { box-shadow: inset 0 3px var(--teal); background: #fbfefd; }
.plan-tag { display: inline-flex; min-height: 22px; align-items: center; border-radius: 20px; padding: 0 8px; color: var(--teal-deep); background: var(--teal-pale); font-size: 9px; font-weight: 700; }
.plan-column h3 { margin: 12px 0 3px; font-size: 18px; }.plan-price { color: var(--ink); font-family: "DM Mono", monospace; font-size: 22px; font-weight: 700; }.plan-price small { color: #758692; font-size: 10px; }
.plan-description { min-height: 42px; margin: 9px 0 15px; color: var(--ink-soft); font-size: 10px; line-height: 1.65; }
.plan-facts, .plan-features { margin: 0; padding: 0; list-style: none; }.plan-facts li, .plan-features li { min-height: 29px; border-top: 1px solid #e8eef0; padding: 7px 0; color: #476071; font-size: 10px; }.plan-features li::before { margin-right: 6px; color: var(--teal); content: "✓"; }
.plan-action { width: 100%; min-height: 35px; margin-top: 15px; border: 1px solid var(--teal); border-radius: 6px; color: var(--teal-deep); background: #fff; font-size: 10px; font-weight: 700; }.plan-column.is-current .plan-action { border-color: #cbd7dc; color: #71808b; background: #f4f6f7; }
.billing-lower { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(310px, .72fr); gap: 16px; margin-top: 16px; }
.addon-row { display: grid; grid-template-columns: minmax(150px, 1fr) 110px 90px auto; gap: 12px; align-items: center; min-height: 58px; border-top: 1px solid var(--line); padding: 10px 18px; font-size: 11px; }.addon-row:first-child { border-top: 0; }.addon-row b { color: var(--ink); }.addon-row span { color: #607683; }.addon-row button { min-height: 31px; border: 1px solid var(--teal); border-radius: 5px; color: var(--teal-deep); background: #fff; font-size: 10px; font-weight: 700; }
.billing-footnote, .usage-definition { color: #6b7e8b; font-size: 10px; line-height: 1.65; }.billing-footnote { margin: 10px 18px 16px; }.usage-definition { margin: 15px 3px 0; }
.estimator { padding-bottom: 18px; }.estimator > label, .estimator > button, .estimate-result { margin: 12px 18px 0; }.estimator input, .estimator select { height: 37px; }
.estimate-result { border-top: 1px solid var(--line); padding-top: 13px; }.estimate-result > strong { display: block; color: var(--teal); font-family: "DM Mono", monospace; font-size: 27px; }.estimate-result p { display: flex; justify-content: space-between; margin: 5px 0; color: #5d7381; font-size: 10px; }.estimate-result p b { color: var(--ink); }
.connection-mode { margin-bottom: 18px; padding: 20px 22px; }
.connection-mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mode-option { border: 1px solid var(--line); border-radius: 8px; padding: 16px; }.mode-option.is-current { border-color: #8fc8c5; background: var(--teal-pale); }.mode-option span { display: inline-block; color: var(--teal-deep); font-size: 9px; font-weight: 700; }.mode-option h3 { margin: 5px 0; font-size: 15px; }.mode-option p { margin: 0; color: #5f7481; font-size: 11px; line-height: 1.7; }.mode-option a, .mode-option button { display: inline-flex; margin-top: 12px; border: 0; padding: 0; color: var(--teal-deep); background: transparent; font-size: 11px; font-weight: 700; }
.byo-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 28px 0 15px; }
.member-panel { max-width: 1080px; }
.group-access-panel { max-width: 1080px; margin-top: 16px; }
.group-access-panel .panel-title { align-items: flex-start; }
.group-access-panel .panel-title p { max-width: 610px; margin: 5px 0 0; color: #647b87; font-size: 11px; line-height: 1.7; }
.group-access-panel .panel-title > label { display: grid; min-width: 190px; gap: 5px; color: #5c7280; font-size: 10px; font-weight: 700; }
.group-access-panel select, .group-access-panel input { min-width: 0; height: 35px; border: 1px solid var(--line-strong); border-radius: 6px; padding: 0 8px; color: var(--ink); background: #fff; font: inherit; font-size: 11px; }
.group-access-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(255px, .5fr); border-top: 1px solid var(--line); }
.group-access-list { min-width: 0; }
.group-access-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 61px; padding: 11px 17px; border-bottom: 1px solid #e6eef0; }
.group-access-row b { color: var(--ink); font-size: 11px; }.group-access-row p { margin: 4px 0 0; color: #667d89; font-size: 10px; }
.group-access-row button { min-height: 30px; border: 1px solid #c98781; border-radius: 5px; padding: 0 9px; color: #9b403a; background: #fff; font-size: 10px; font-weight: 700; }
.group-access-form { display: grid; align-content: start; gap: 10px; padding: 16px; border-left: 1px solid var(--line); background: #fbfefe; }
.group-access-form label { display: grid; gap: 4px; color: #5c7280; font-size: 10px; font-weight: 700; }.group-access-form button { justify-self: start; }
.console-toast { position: fixed; right: 22px; bottom: 22px; z-index: 100; max-width: 390px; border: 1px solid #9fd0b6; border-radius: 8px; padding: 13px 16px; color: #0b6c3e; background: #f0faf4; box-shadow: 0 14px 32px rgba(6, 40, 55, .14); font-size: 12px; font-weight: 700; }
.console-toast.is-error { border-color: #edb9b5; color: #a92922; background: #fff5f4; }
.processing-error { margin-top: 12px; border: 1px solid #efc0bd; border-radius: 7px; padding: 10px 12px; color: #8d2c27; background: #fff7f6; }
.processing-error b { font-size: 11px; }.processing-error p { overflow-wrap: anywhere; margin: 4px 0 0; font-family: "DM Mono", monospace; font-size: 9px; line-height: 1.6; }
.shared-rollout-note { margin: 14px 0 0; border-top: 1px solid var(--line); padding-top: 13px; color: #5c7280; font-size: 11px; line-height: 1.7; }
.shared-rollout-note b { color: var(--ink); }
.shared-claim-panel { margin: 18px 0; border: 1px solid #a9dce0; border-radius: 12px; padding: 22px; background: linear-gradient(135deg, #f2fbfb, #ffffff 66%); }
.shared-claim-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.shared-claim-head h2 { margin: 3px 0 6px; font-size: 19px; }
.shared-claim-head p { margin: 0; max-width: 650px; color: #5c7280; font-size: 12px; line-height: 1.75; }
.shared-claim-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.shared-claim-actions button, .addon-row button, .addon-request button { border: 1px solid #007680; border-radius: 7px; padding: 8px 11px; background: #fff; color: #006e77; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.shared-claim-actions button:hover, .addon-row button:hover, .addon-request button:hover { background: #e7f7f7; }
.shared-oa-readiness { display: grid; gap: 11px; margin: 16px 0; padding: 15px; border: 1px solid #cbe5e6; border-radius: 10px; background: #fbfefe; }
.shared-oa-readiness h3 { margin: 2px 0 5px; color: #0a5660; font-size: 14px; }.shared-oa-readiness p { margin: 0; color: #5c7280; font-size: 11px; line-height: 1.6; }.shared-oa-readiness dl { display: grid; gap: 7px; margin: 0; }.shared-oa-readiness dt { color: #66808a; font-size: 9px; font-weight: 700; text-transform: uppercase; }.shared-oa-readiness dd { margin: 2px 0 0; overflow-wrap: anywhere; color: #16444b; font-size: 10px; }.shared-oa-readiness code { font-family: "DM Mono", monospace; font-size: 9px; }.shared-oa-readiness ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 12px; margin: 0; padding: 0; list-style: none; color: #6a7e87; font-size: 10px; }.shared-oa-readiness li.complete { color: #087a43; }.shared-oa-readiness li.platform_action_required { color: #a55a00; }
.claim-code-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding: 14px 16px; border: 1px dashed #69b9bf; border-radius: 9px; background: rgba(255,255,255,.8); }
.claim-code-card span { display: block; color: #5c7280; font-size: 11px; }
.claim-code-card code { display: block; margin-top: 5px; color: #004e58; font-family: "DM Mono", monospace; font-size: 22px; font-weight: 700; letter-spacing: .14em; }
.claim-code-card p { margin: 0; max-width: 455px; color: #36596a; font-size: 12px; line-height: 1.75; }
.shared-group-list { display: grid; gap: 9px; margin-top: 18px; }
.shared-group-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(105,185,191,.36); }
.shared-group-row:first-child { border-top: 0; }
.shared-group-row b { display: block; color: var(--ink); font-size: 13px; }
.shared-group-row p { margin: 4px 0 0; color: #637a87; font-size: 11px; }
.shared-group-status { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; color: #007680; font-size: 10px; font-weight: 700; }
.shared-group-status.is-paused { color: #9a6916; }
.group-policy-panel { margin: 18px 0; border: 1px solid #cadfe3; border-radius: 12px; padding: 22px; background: #fff; }
.group-policy-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.group-policy-head h2 { margin: 3px 0 6px; font-size: 19px; }
.group-policy-head p { max-width: 660px; margin: 0; color: #5c7280; font-size: 12px; line-height: 1.75; }
.group-policy-list { display: grid; gap: 12px; margin-top: 18px; }
.group-policy-card { border: 1px solid #d6e5e8; border-radius: 9px; padding: 15px; background: #fcfefe; }
.group-policy-card.is-readonly { background: #f9fbfb; }
.group-policy-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.group-policy-title b { color: var(--ink); font-size: 14px; }.group-policy-title p { margin: 4px 0 0; color: #637a87; font-size: 10px; }
.group-policy-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.group-policy-fields label, .group-policy-footer label { display: grid; gap: 5px; color: #5b7280; font-size: 10px; font-weight: 700; }
.group-policy-fields select, .group-policy-fields input, .group-policy-footer input { min-width: 0; height: 35px; border: 1px solid var(--line-strong); border-radius: 6px; padding: 7px 8px; color: var(--ink); background: #fff; font: inherit; font-size: 11px; }
.group-policy-footer { display: flex; align-items: end; justify-content: flex-end; gap: 12px; margin-top: 13px; border-top: 1px solid #e3edef; padding-top: 12px; }
.group-policy-footer .group-summary-toggle { display: flex; align-items: center; min-height: 35px; margin-right: auto; color: var(--teal-deep); }.group-summary-toggle input { width: 14px; height: 14px; margin-right: 6px; padding: 0; accent-color: var(--teal); }
.group-policy-footer button, .record-actions button { min-height: 34px; border: 1px solid var(--teal); border-radius: 6px; padding: 0 11px; color: var(--teal-deep); background: #fff; font-size: 10px; font-weight: 700; }
.record-actions { white-space: normal !important; }.record-actions button + button { margin-left: 5px; }
.record-relation-form { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; align-items: end; gap: 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 13px 18px; background: #fbfefe; }.record-relation-form label { display: grid; gap: 4px; color: #5c7280; font-size: 10px; font-weight: 700; }.record-relation-form select { min-width: 0; height: 34px; border: 1px solid var(--line-strong); border-radius: 6px; padding: 0 8px; color: var(--ink); background: #fff; font: inherit; font-size: 10px; }.record-relation-form button { min-height: 34px; white-space: nowrap; }.relation-target { color: var(--teal-deep); }
.message-table td small { display: block; overflow: hidden; color: #718491; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.group-policy-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 13px 0 0; }.group-policy-summary div { border-top: 1px solid #e3edef; padding-top: 9px; }.group-policy-summary dt { color: #738793; font-size: 10px; }.group-policy-summary dd { margin: 4px 0 0; color: var(--ink); font-size: 11px; font-weight: 700; }
.byo-guide { margin-top: 18px; }.byo-guide .panel-title { align-items: flex-start; }.byo-guide .panel-title p { max-width: 720px; margin: 5px 0 0; color: #647b87; font-size: 11px; line-height: 1.65; }.byo-guide-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; padding: 18px; list-style: none; }.byo-guide-steps li { min-width: 0; padding: 0 16px; border-right: 1px solid #deeaed; }.byo-guide-steps li:first-child { padding-left: 0; }.byo-guide-steps li:last-child { border-right: 0; padding-right: 0; }.byo-guide-steps span { display: inline-flex; color: var(--teal-deep); font-family: "DM Mono", monospace; font-size: 10px; font-weight: 700; }.byo-guide-steps b { display: block; min-height: 38px; margin-top: 8px; color: var(--ink); font-size: 12px; line-height: 1.55; }.byo-guide-steps p { margin: 7px 0 0; color: #647b87; font-size: 10px; line-height: 1.65; }.byo-guide-boundary { display: flex; gap: 12px; border-top: 1px solid #deeaed; padding: 13px 18px; color: #657b87; background: #fbfefe; font-size: 10px; line-height: 1.65; }.byo-guide-boundary b { flex: none; color: #805815; }
.output-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }.output-control { min-width: 0; }.output-control .panel-title > label { display: grid; gap: 4px; color: #607682; font-size: 10px; font-weight: 700; }.output-control .panel-title select { min-width: 190px; height: 34px; border: 1px solid var(--line-strong); border-radius: 6px; padding: 0 8px; background: #fff; font: inherit; font-size: 11px; }
.template-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; padding: 16px; }.template-card { display: flex; min-height: 176px; flex-direction: column; border: 1px solid #d7e5e8; border-radius: 8px; padding: 13px; background: #fbfefe; }.template-card > span { color: var(--teal-deep); font-family: "DM Mono", monospace; font-size: 9px; font-weight: 700; text-transform: uppercase; }.template-card h3 { margin: 6px 0; color: var(--ink); font-size: 14px; }.template-card p { flex: 1; margin: 0; color: #617784; font-size: 10px; line-height: 1.65; }.template-card i { display: inline-block; margin: 9px 3px 0 0; border-radius: 4px; padding: 3px 5px; color: #376575; background: #edf6f6; font-size: 9px; font-style: normal; }.template-card button { min-height: 31px; margin-top: 12px; border: 1px solid var(--teal); border-radius: 6px; color: var(--teal-deep); background: #fff; font-size: 10px; font-weight: 700; }
.output-form { display: grid; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }.output-form label { display: grid; gap: 4px; color: #5c7180; font-size: 10px; font-weight: 700; }.output-form input, .output-form select { min-width: 0; height: 35px; border: 1px solid var(--line-strong); border-radius: 6px; padding: 0 8px; color: var(--ink); background: #fff; font: inherit; font-size: 11px; }.output-form small { color: #738793; font-weight: 400; }.output-form button { justify-self: start; }.output-list { display: grid; gap: 0; }.output-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid #e5edef; }.output-row:last-child { border-bottom: 0; }.output-row b { color: var(--ink); font-size: 11px; }.output-row p { margin: 4px 0 0; color: #6c818d; font-family: "DM Mono", monospace; font-size: 9px; }.output-connection-row { align-items: flex-start; }.output-connection-row > div { min-width: 0; flex: 1; }.connector-readiness { display: grid; gap: 7px; max-width: 440px; margin-top: 10px; padding: 10px; border: 1px solid #d9e7ea; border-radius: 7px; background: linear-gradient(120deg, #fbfdfd, #f4fafa); }.connector-readiness-head { display: flex; align-items: center; gap: 7px; color: #51707b; font-family: "DM Mono", monospace; font-size: 9px; }.connector-readiness-head b { margin-right: auto; color: #006b70; }.connector-readiness-head .status-badge { min-height: 20px; }.connector-readiness-track { height: 4px; overflow: hidden; border-radius: 99px; background: #dcebed; }.connector-readiness-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #00a7a1, #47c6c0); transition: width .45s ease; }.connector-readiness ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 10px; margin: 0; padding: 0; list-style: none; color: #6a7e87; font-size: 9px; }.connector-readiness li.complete { color: #087a43; }.connector-readiness li.platform_action_required, .connector-readiness li.not_available { color: #a55a00; }.connector-readiness small { color: #5e7782; font-size: 9px; line-height: 1.45; }
.output-delivery-heading { display: flex; align-items: baseline; gap: 9px; border-top: 1px solid var(--line); padding: 14px 18px 6px; }.output-delivery-heading span { color: var(--teal-deep); font-family: "DM Mono", monospace; font-size: 9px; font-weight: 700; }.output-delivery-heading b { color: var(--ink); font-size: 12px; }
.output-delivery-status { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; }.output-delivery-status button { min-height: 28px; border: 1px solid #b8873a; border-radius: 5px; padding: 0 8px; color: #805b1d; background: #fff; font: inherit; font-size: 10px; font-weight: 700; cursor: pointer; }
.inbox-layout { display: grid; grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr); gap: 16px; }.inbox-capture, .inbox-list-panel { min-width: 0; }.inbox-list-panel .panel-title > label { display: grid; min-width: 120px; gap: 4px; color: #5c7280; font-size: 10px; font-weight: 700; }.inbox-list-panel .panel-title select { height: 35px; border: 1px solid var(--line-strong); border-radius: 6px; padding: 0 8px; background: #fff; color: var(--ink); font: inherit; font-size: 11px; }
.inbox-form { display: grid; gap: 10px; padding: 16px 18px; }.inbox-form label { display: grid; gap: 4px; color: #5c7280; font-size: 10px; font-weight: 700; }.inbox-form input, .inbox-form select, .inbox-form textarea { min-width: 0; border: 1px solid var(--line-strong); border-radius: 6px; padding: 8px; color: var(--ink); background: #fff; font: inherit; font-size: 11px; }.inbox-form input, .inbox-form select { height: 35px; padding: 0 8px; }.inbox-form textarea { min-height: 95px; resize: vertical; }.inbox-form button { justify-self: start; }.inbox-safety-note { margin: 0; border-top: 1px solid var(--line); padding: 13px 18px 16px; color: #687d89; font-size: 10px; line-height: 1.65; }
.inbox-list { display: grid; }.inbox-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 74px; padding: 13px 18px; border-top: 1px solid #e5edef; }.inbox-row > div { min-width: 0; }.inbox-row b { display: block; margin-top: 5px; color: var(--ink); font-size: 13px; }.inbox-row p, .inbox-row small { display: block; margin: 4px 0 0; color: #647b87; font-size: 10px; line-height: 1.55; }.inbox-row small { max-width: 560px; }.inbox-row.is-done b { color: #6b828a; text-decoration: line-through; }.inbox-type { display: inline-flex; border-radius: 4px; padding: 2px 5px; color: #126e76; background: #e7f6f5; font-size: 9px; font-weight: 700; }.inbox-actions { display: flex; flex-shrink: 0; gap: 6px; }.inbox-actions button { min-height: 29px; border: 1px solid var(--teal); border-radius: 5px; padding: 0 8px; color: var(--teal-deep); background: #fff; font: inherit; font-size: 10px; font-weight: 700; cursor: pointer; }.inbox-actions button[data-inbox-status="archived"] { border-color: #b2c1c6; color: #667a85; }
.media-console { max-width: 1060px; }.media-console .panel-title > label { display: grid; min-width: 200px; gap: 4px; color: #5c7280; font-size: 10px; font-weight: 700; }.media-console .panel-title select { height: 35px; border: 1px solid var(--line-strong); border-radius: 6px; padding: 0 8px; color: var(--ink); background: #fff; font: inherit; font-size: 11px; }.media-list { display: grid; }.media-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 14px 18px; border-top: 1px solid #e4edef; }.media-row > div { min-width: 0; }.media-row b { color: var(--ink); font-family: "DM Mono", monospace; font-size: 11px; text-transform: uppercase; }.media-status { display: inline-flex; margin-left: 8px; border-radius: 4px; padding: 2px 5px; color: #196d73; background: #e9f7f6; font-family: "Noto Sans TC", sans-serif; font-size: 9px; font-weight: 700; text-transform: none; }.media-row p, .media-row small { display: block; margin: 5px 0 0; color: #647b87; font-size: 10px; line-height: 1.55; }.media-row pre { overflow: auto; max-width: 700px; margin: 8px 0 0; border: 1px solid #deeaed; border-radius: 5px; padding: 8px; color: #46636f; background: #fbfefe; font-family: "Noto Sans TC", sans-serif; font-size: 11px; line-height: 1.65; white-space: pre-wrap; }.media-row button { flex-shrink: 0; min-height: 30px; border: 1px solid var(--teal); border-radius: 5px; padding: 0 9px; color: var(--teal-deep); background: #fff; font: inherit; font-size: 10px; font-weight: 700; cursor: pointer; }
.system-health-panel { margin: 16px 0; }.system-health-summary { padding: 0 18px 18px; }.system-health-state { display: flex; align-items: center; gap: 10px; padding: 0 0 12px; color: #687c88; font-size: 10px; }.system-health-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }.system-health-grid article { min-height: 92px; border: 1px solid #d9e7e9; border-radius: 8px; padding: 13px; background: #fbfefe; }.system-health-grid span, .system-health-grid small { display: block; color: #647b87; font-size: 10px; line-height: 1.55; }.system-health-grid b { display: block; margin: 7px 0 4px; color: var(--teal-deep); font-family: "DM Mono", monospace; font-size: 25px; }.system-health-empty { padding: 4px 0; color: #647b87; font-size: 11px; }
.weekly-brief-panel { margin: 16px 0; overflow: hidden; }.weekly-brief-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }.weekly-brief-metrics article { position: relative; min-height: 102px; padding: 16px 18px; border-right: 1px solid var(--line); background: linear-gradient(135deg, #fbfefe, #f4faf9); }.weekly-brief-metrics article:last-child { border-right: 0; }.weekly-brief-metrics span, .weekly-brief-metrics small { display: block; color: #617985; font-size: 10px; line-height: 1.5; }.weekly-brief-metrics b { display: block; margin: 7px 0 3px; color: var(--teal-deep); font-family: "DM Mono", monospace; font-size: 29px; }.weekly-brief-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }.weekly-brief-layout > div { min-width: 0; padding: 15px 18px; }.weekly-brief-layout > div + div { border-left: 1px solid var(--line); }.weekly-brief-label { margin: 0 0 9px; color: var(--teal-deep); font-family: "DM Mono", monospace; font-size: 9px; font-weight: 700; }.weekly-brief-insights, .weekly-brief-focus { display: grid; gap: 7px; }.weekly-insight { display: flex; align-items: flex-start; gap: 8px; border-radius: 6px; padding: 8px 9px; background: #f8fbfb; }.weekly-insight span { width: 7px; height: 7px; flex: none; margin-top: 5px; border-radius: 50%; background: #55aebb; box-shadow: 0 0 0 3px #e7f5f4; }.weekly-insight.error span { background: #c9615a; box-shadow: 0 0 0 3px #fff0ef; }.weekly-insight.pending span { background: #bd8128; box-shadow: 0 0 0 3px #fff7e8; }.weekly-insight p { margin: 0; color: #536d79; font-size: 10px; line-height: 1.6; }.weekly-focus-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 50px; border-top: 1px solid #e3edef; padding: 8px 0; }.weekly-focus-row:first-child { border-top: 0; padding-top: 0; }.weekly-focus-row > div { min-width: 0; }.weekly-focus-row b { display: block; overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.weekly-focus-row p { overflow: hidden; margin: 4px 0 0; color: #70838c; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.weekly-focus-row .status-badge { flex: none; }
.sla-escalation-panel { margin: 16px 0; overflow: hidden; }.sla-escalation-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }.sla-escalation-metrics article { min-height: 88px; padding: 14px 18px; border-right: 1px solid var(--line); background: linear-gradient(135deg, #fffdf9, #f6fbfa); }.sla-escalation-metrics article:last-child { border-right: 0; }.sla-escalation-metrics span, .sla-escalation-metrics small { display: block; color: #617985; font-size: 10px; line-height: 1.5; }.sla-escalation-metrics b { display: block; margin: 6px 0 2px; color: var(--teal-deep); font-family: "DM Mono", monospace; font-size: 25px; }.sla-escalation-layout { display: grid; grid-template-columns: 1.45fr .55fr; border-top: 1px solid var(--line); }.sla-escalation-layout > div { min-width: 0; padding: 14px 18px; }.sla-escalation-layout > div + div { border-left: 1px solid var(--line); }.sla-escalation-list, .sla-workload-list { display: grid; gap: 7px; }.sla-escalation-row { display: grid; grid-template-columns: 78px minmax(0, 1fr) minmax(160px, .8fr); align-items: center; gap: 9px; border-top: 1px solid #e3edef; padding: 8px 0; }.sla-escalation-row:first-child { border-top: 0; padding-top: 0; }.sla-escalation-row > div { min-width: 0; }.sla-escalation-row b { display: block; overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.sla-escalation-row p { overflow: hidden; margin: 4px 0 0; color: #70838c; font-size: 9px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }.sla-escalation-row > p { margin: 0; }.sla-workload-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid #e3edef; padding: 9px 0; }.sla-workload-row:first-child { border-top: 0; padding-top: 0; }.sla-workload-row b { overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.sla-workload-row span { flex: none; color: #647b87; font-family: "DM Mono", monospace; font-size: 9px; }
.dependency-impact-panel { margin: 16px 0; overflow: hidden; }.dependency-impact-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }.dependency-impact-metrics article { min-height: 88px; padding: 14px 18px; border-right: 1px solid var(--line); background: linear-gradient(135deg, #fcfefe, #f3f9fa); }.dependency-impact-metrics article:last-child { border-right: 0; }.dependency-impact-metrics span, .dependency-impact-metrics small { display: block; color: #617985; font-size: 10px; line-height: 1.5; }.dependency-impact-metrics b { display: block; margin: 6px 0 2px; color: var(--teal-deep); font-family: "DM Mono", monospace; font-size: 25px; }.dependency-impact-list { display: grid; }.dependency-impact-row { display: grid; grid-template-columns: 82px minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 70px; border-top: 1px solid #e3edef; padding: 11px 18px; }.dependency-impact-row > div { min-width: 0; }.dependency-impact-row b { display: block; overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.dependency-impact-row p { overflow: hidden; margin: 4px 0 0; color: #70838c; font-size: 9px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }.dependency-impact-row .status-badge { justify-self: start; }.dependency-action-form { display: grid; grid-template-columns: minmax(220px, 1.4fr) minmax(150px, 1fr) minmax(120px, .7fr) minmax(150px, .8fr) auto; align-items: end; gap: 10px; border-top: 1px solid var(--line); padding: 14px 18px; background: #f7fbfb; }.dependency-action-form > div:first-child p { margin: 0 0 6px; }.dependency-action-form > div:first-child b { color: var(--ink); font-size: 11px; }.dependency-action-form > div:first-child > p:last-child { margin: 5px 0 0; color: #617985; font-size: 9px; line-height: 1.5; }.dependency-action-form label { display: grid; gap: 5px; color: #617985; font-size: 9px; font-weight: 700; }.dependency-action-form input { width: 100%; min-height: 34px; border: 1px solid #cadde1; border-radius: 5px; padding: 0 8px; color: var(--ink); background: #fff; font: inherit; font-size: 11px; }.dependency-action-buttons { display: flex; gap: 6px; }
.addon-request-list { display: grid; gap: 8px; margin-top: 13px; }
.addon-request { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px; border: 1px solid #d6e6e9; border-radius: 8px; background: #fbfefe; }
.addon-request b { display: block; font-size: 11px; }
.addon-request p { margin: 3px 0 0; color: #637a87; font-size: 10px; }
.billing-admin-queue { margin-top: 20px; }
.billing-admin-queue h3 { margin: 0 0 8px; font-size: 14px; }
.billing-admin-queue > p { margin: 0 0 10px; color: #637a87; font-size: 11px; line-height: 1.6; }
.admin-addon-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.admin-addon-actions button[data-admin-review="reject"] { border-color: #b0534c; color: #a1433c; }
.governance-access-note { max-width: 960px; border: 1px solid #e3c68a; border-radius: 8px; padding: 14px 16px; color: #79541c; background: #fff9e8; font-size: 12px; line-height: 1.6; }
.governance-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.governance-panel { min-width: 0; }.governance-panel .panel-title { align-items: flex-start; }.governance-panel .panel-title p { max-width: 370px; margin: 4px 0 0; color: #647b87; font-size: 10px; line-height: 1.65; }
.periodic-report-panel { grid-column: 1 / -1; }.periodic-report-panel .panel-title p { max-width: 760px; }.periodic-report-form { grid-template-columns: minmax(180px, 1fr) minmax(140px, .7fr) minmax(180px, .8fr) auto; align-items: end; }.periodic-report-form button { min-height: 35px; }.periodic-report-row small { max-width: 760px; white-space: pre-wrap; }
.governance-form { display: grid; gap: 10px; padding: 16px 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fbfefe; }.governance-form label { display: grid; gap: 4px; color: #5c7280; font-size: 10px; font-weight: 700; }.governance-form input, .governance-form select { min-width: 0; height: 35px; border: 1px solid var(--line-strong); border-radius: 6px; padding: 0 8px; color: var(--ink); background: #fff; font: inherit; font-size: 11px; }.governance-form button { justify-self: start; }
.governance-list { display: grid; }.governance-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 67px; padding: 12px 18px; border-bottom: 1px solid #e5edef; }.governance-row:last-child { border-bottom: 0; }.governance-row > div { min-width: 0; }.governance-row b { color: var(--ink); font-size: 11px; }.governance-row p { margin: 4px 0 0; color: #647b87; font-size: 10px; line-height: 1.55; }.governance-row small { display: block; margin-top: 5px; color: #536e7d; font-size: 10px; line-height: 1.55; }.governance-status { display: inline-flex; margin-left: 7px; border-radius: 4px; padding: 2px 5px; color: #805815; background: #fff4d6; font-size: 9px; font-weight: 700; }.governance-status.is-approved { color: #087143; background: #eaf8ef; }.governance-status.is-rejected { color: #a33f38; background: #fff0ef; }
.governance-actions { display: flex; flex-shrink: 0; gap: 6px; }.governance-actions button { min-height: 30px; border: 1px solid var(--teal); border-radius: 5px; padding: 0 8px; color: var(--teal-deep); background: #fff; font: inherit; font-size: 10px; font-weight: 700; cursor: pointer; }.governance-actions .is-danger { border-color: #c27b75; color: #a23f39; }.governance-self-review { flex-shrink: 0; color: #8a691d; font-size: 10px; font-weight: 700; }
.audit-list { max-height: 620px; overflow: auto; }.audit-row { align-items: flex-start; }.audit-row code { display: block; max-width: 100%; overflow: hidden; margin-top: 6px; color: #617784; font-family: "DM Mono", monospace; font-size: 9px; line-height: 1.55; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1180px) {
  .weekly-brief-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }.weekly-brief-metrics article:nth-child(2) { border-right: 0; }.weekly-brief-metrics article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .sla-escalation-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }.sla-escalation-metrics article:nth-child(2) { border-right: 0; }.sla-escalation-metrics article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .dependency-impact-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }.dependency-impact-metrics article:nth-child(2) { border-right: 0; }.dependency-impact-metrics article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .metric-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .operations-grid, .overview-lower { grid-template-columns: 1fr; }
  .detail-panel { min-height: 0; }
  .detail-empty { min-height: 180px; }
  .filter-bar { grid-template-columns: repeat(3, 1fr); }
  .filter-bar .search-field { grid-column: span 2; }
  .plan-comparison { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.output-layout, .governance-layout, .inbox-layout { grid-template-columns: 1fr; }.byo-guide-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }.byo-guide-steps li:nth-child(2) { border-right: 0; }.byo-guide-steps li:nth-child(3) { padding-left: 0; }
  .plan-column:nth-child(2) { border-right: 0; }.plan-column:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 800px) {
  .record-relation-form { grid-template-columns: 1fr; }.record-relation-form button { justify-self: start; }
  .app-shell { display: block; }
  .side-nav { position: static; width: 100%; height: auto; flex-direction: row; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); padding: 11px 14px; }
  .side-nav .brand { margin: 0; }.side-nav nav { display: flex; overflow: auto; margin-left: auto; }.side-nav .nav-link { width: 42px; min-width: 42px; justify-content: center; padding: 0; font-size: 0; }.nav-symbol { font-size: 17px; }.nav-count { position: absolute; top: -1px; right: -1px; min-width: 16px; padding: 0 4px; font-size: 8px; }.side-footer { display: none; }
  .admin-main { padding: 22px 14px 36px; }.admin-header { align-items: flex-start; }.live-indicator { display: none; }
  .billing-period { grid-template-columns: 1fr; gap: 14px; }.billing-period > div { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 12px; }.billing-period > div:last-child { border: 0; padding: 0; text-align: left; }
  .billing-lower, .connection-mode-grid { grid-template-columns: 1fr; }
  .group-access-layout { grid-template-columns: 1fr; }.group-access-form { border-top: 1px solid var(--line); border-left: 0; }
  .group-policy-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .byo-guide-steps { grid-template-columns: 1fr; gap: 14px; }.byo-guide-steps li, .byo-guide-steps li:first-child, .byo-guide-steps li:last-child { border-right: 0; padding: 0; }.byo-guide-steps b { min-height: 0; }.byo-guide-boundary { flex-direction: column; gap: 4px; }
  .setup-layout { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .report-review-grid { grid-template-columns: 1fr; }.report-review-grid > div + div { border-top: 1px solid var(--line); border-left: 0; }
  .weekly-brief-layout { grid-template-columns: 1fr; }.weekly-brief-layout > div + div { border-top: 1px solid var(--line); border-left: 0; }
  .sla-escalation-layout { grid-template-columns: 1fr; }.sla-escalation-layout > div + div { border-top: 1px solid var(--line); border-left: 0; }.sla-escalation-row { grid-template-columns: 1fr; gap: 5px; }.sla-escalation-row p { white-space: normal; }
  .dependency-impact-row { grid-template-columns: 1fr; gap: 6px; }.dependency-impact-row p { white-space: normal; }.dependency-action-form { grid-template-columns: 1fr; }
  .metric-row, .plan-comparison { grid-template-columns: 1fr; }
  .template-grid { grid-template-columns: 1fr; }.output-control .panel-title { align-items: flex-start; flex-direction: column; }.output-control .panel-title select { min-width: 0; width: 100%; }
  .plan-column { border-right: 0; border-bottom: 1px solid var(--line); }.plan-column:last-child { border-bottom: 0; }
  .media-row { flex-direction: column; }.media-row button { width: 100%; }
  .filter-bar { grid-template-columns: 1fr 1fr; }.filter-bar .search-field { grid-column: span 2; }
  .message-table { min-width: 760px; }
  .billing-summary-item:nth-child(3) { display: none; }
  #billing-usage-summary { grid-template-columns: 1fr 1fr; }
  .addon-row { grid-template-columns: 1fr auto; }.addon-row span:nth-child(2) { display: none; }
  .review-intro p { display: none; }
  .byo-header { align-items: flex-start; flex-direction: column; }
  .shared-claim-panel { padding: 16px; }
  .shared-claim-head, .claim-code-card { display: block; }
  .shared-claim-actions { margin-top: 13px; }
  .claim-code-card p { margin-top: 12px; }
  .claim-code-card code { font-size: 18px; }
  .shared-group-row, .addon-request { grid-template-columns: 1fr; }
  .governance-row { align-items: flex-start; flex-direction: column; }.governance-actions { width: 100%; }.governance-actions button { flex: 1; }
  .periodic-report-form { grid-template-columns: 1fr; }.periodic-report-form button { width: 100%; }
  .inbox-row { align-items: flex-start; flex-direction: column; }.inbox-actions { width: 100%; }.inbox-actions button { flex: 1; }
  .system-health-grid { grid-template-columns: 1fr; }
}
