:root {
  --forest-950: #082c25;
  --forest-900: #0c392f;
  --forest-800: #124a3e;
  --forest-700: #1b6252;
  --mint-500: #32c8a2;
  --mint-200: #b8f0df;
  --cream: #f4f4ec;
  --paper: #fbfbf7;
  --white: #fff;
  --ink: #17342d;
  --muted: #6d7f78;
  --line: #dce3dd;
  --line-dark: #cad5ce;
  --red: #b64242;
  --amber: #b3731d;
  --blue: #2473a5;
  --shadow: 0 22px 60px rgba(15, 52, 44, .12);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--cream); color: var(--ink); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { margin: 0; min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.login-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.08fr) minmax(420px, .92fr); }
.login-story { position: relative; overflow: hidden; padding: 52px 64px; background: var(--forest-950); color: var(--white); display: flex; flex-direction: column; justify-content: space-between; }
.login-story::before { content: ""; position: absolute; width: 580px; height: 580px; right: -210px; bottom: -160px; border: 1px solid rgba(94, 222, 187, .2); border-radius: 50%; box-shadow: 0 0 0 80px rgba(94, 222, 187, .035), 0 0 0 160px rgba(94, 222, 187, .025); }
.login-story::after { content: ""; position: absolute; width: 180px; height: 180px; right: 15%; top: 16%; background: radial-gradient(circle, rgba(50, 200, 162, .24), transparent 68%); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--forest-950); font-size: 18px; letter-spacing: -.02em; text-decoration: none; }
.brand img { width: 42px; height: 42px; }
.brand strong { color: var(--forest-700); font-weight: 650; }
.brand--light { color: #fff; position: relative; z-index: 1; }
.brand--light strong { color: var(--mint-500); }
.login-story__copy { position: relative; z-index: 1; max-width: 600px; padding: 80px 0; }
.login-story h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(54px, 6.3vw, 96px); line-height: .94; letter-spacing: -.055em; margin: 18px 0 28px; font-weight: 400; }
.login-story__copy > p:last-child { max-width: 500px; color: #bbccc6; font-size: 18px; line-height: 1.7; }
.eyebrow { margin: 0 0 8px; color: var(--forest-700); font-size: 11px; line-height: 1.2; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.login-story .eyebrow { color: var(--mint-500); }
.login-panel { background: var(--paper); display: grid; place-items: center; padding: 48px; }
.login-panel__stack { width: min(100%, 430px); }
.login-card { width: 100%; }
.login-card h2 { margin: 8px 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 42px; font-weight: 400; letter-spacing: -.035em; }
.muted { color: var(--muted); line-height: 1.6; }
form { display: grid; gap: 17px; }
.login-card form { margin-top: 32px; }
label { color: #39564e; font-size: 12px; font-weight: 700; letter-spacing: .02em; display: grid; gap: 8px; }
label small { color: var(--muted); font-weight: 500; }
input, select, textarea { width: 100%; border: 1px solid var(--line-dark); border-radius: 8px; background: var(--white); color: var(--ink); padding: 12px 13px; outline: none; transition: border .15s, box-shadow .15s; }
textarea { resize: vertical; min-height: 104px; }
input:focus, select:focus, textarea:focus { border-color: var(--forest-700); box-shadow: 0 0 0 3px rgba(27, 98, 82, .1); }
.button { appearance: none; border: 1px solid transparent; border-radius: 7px; padding: 11px 16px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; font-weight: 700; font-size: 13px; text-decoration: none; transition: transform .15s, background .15s, border .15s; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .5; transform: none; cursor: not-allowed; }
.button--primary { background: var(--forest-900); color: #fff; }
.button--primary:hover { background: var(--forest-800); }
.button--secondary { border-color: var(--line-dark); background: #fff; color: var(--forest-900); }
.button--ghost { border-color: var(--line); color: var(--forest-800); background: transparent; }
.button--danger { border-color: #e7bcbc; color: var(--red); background: #fff7f7; }
.button--small { padding: 8px 11px; font-size: 12px; }
.button--wide { width: 100%; justify-content: space-between; margin-top: 4px; padding: 13px 15px; }
.text-button, .back-link { padding: 0; border: 0; color: var(--forest-700); background: transparent; font-size: 12px; font-weight: 700; }
.auth-links { display: flex; justify-content: space-between; margin-top: 20px; }
.form-error { min-height: 18px; margin: 0; color: var(--red); font-size: 12px; }
.form-message { margin: 0; color: var(--forest-700); line-height: 1.5; font-size: 12px; }
.back-link { margin-bottom: 38px; }

body[data-portal="operations"] { background: var(--forest-950); }
body[data-portal="operations"] .login-layout {
  grid-template-columns: 1fr;
  place-items: center;
  padding: 32px;
  background: var(--forest-950);
}
body[data-portal="operations"] .login-story { display: none; }
body[data-portal="operations"] .login-panel {
  width: min(100%, 390px);
  padding: 0;
  background: transparent;
  display: block;
}
body[data-portal="operations"] .login-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .22);
}
body[data-portal="operations"] .login-card[data-auth-view="login"] > .eyebrow,
body[data-portal="operations"] .login-card[data-auth-view="login"] > h2,
body[data-portal="operations"] .login-card[data-auth-view="login"] > .muted,
body[data-portal="operations"] .login-card[data-auth-view="login"] [data-login-field-label] { display: none; }
body[data-portal="operations"] .login-card[data-auth-view="login"] form { margin-top: 0; gap: 14px; }
body[data-portal="operations"] .login-card[data-auth-view="login"] label { gap: 0; }
body[data-portal="operations"] .login-card .button--wide { justify-content: center; }
body[data-portal="operations"] .login-card .button--wide span { display: none; }
body[data-portal="operations"] .login-card .auth-links { display: none; }
body[data-portal="operations"] .login-card [data-customer-recovery],
body[data-portal="operations"] .login-card [data-customer-registration] { display: none !important; }
body[data-portal="operations"] .login-card .back-link { margin-bottom: 24px; }

.app-layout { min-height: 100vh; display: grid; grid-template-columns: 252px minmax(0, 1fr); }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 252px; padding: 25px 18px 18px; color: #d3e1dc; background: var(--forest-950); display: flex; flex-direction: column; z-index: 20; }
.sidebar-scrim { display: none; }
.sidebar .brand { padding: 0 10px 26px; color: #fff; }
.sidebar .brand strong { color: var(--mint-500); }
.side-nav { flex: 1; overflow-y: auto; padding-top: 6px; }
.nav-group { margin-bottom: 22px; }
.nav-group > span { display: block; margin: 0 11px 8px; color: #759188; font-size: 9px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.nav-item { width: 100%; padding: 10px 11px; border: 0; border-radius: 7px; color: #b8cac4; background: transparent; display: flex; align-items: center; gap: 11px; text-align: left; font-size: 12px; font-weight: 650; }
.nav-item > span { min-width: 0; flex: 1; }
.nav-item:hover { background: rgba(255,255,255,.045); color: #fff; }
.nav-item.active { color: #fff; background: rgba(50, 200, 162, .12); }
.nav-item i { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.12); border-radius: 6px; color: var(--mint-500); font-style: normal; font-size: 11px; }
.nav-item.active i { border-color: rgba(50,200,162,.3); background: rgba(50,200,162,.08); }
.nav-notification-badge { min-width: 22px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 99px; color: var(--forest-950); background: var(--mint-500); font-size: 9px; line-height: 1; }
.sidebar-foot { padding: 14px 0 0; border-top: 1px solid rgba(255,255,255,.09); }
.avatar { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; background: #1d5b4e; color: #fff; font-size: 11px; font-weight: 800; }
.sidebar-account { width: 100%; padding: 8px; border: 0; border-radius: 9px; display: grid; grid-template-columns: 35px minmax(0,1fr) 18px; align-items: center; gap: 9px; color: inherit; background: transparent; text-align: left; }
.sidebar-account:hover, .sidebar-account[aria-expanded="true"] { background: rgba(255,255,255,.055); }
.sidebar-account > span:nth-child(2), .sidebar-account strong, .sidebar-account small { min-width: 0; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-account strong { color: #f8fbf9; font-size: 11px; }
.sidebar-account small { margin-top: 3px; color: #829c93; font-size: 9px; text-transform: capitalize; }
.sidebar-account i { color: #829c93; font-size: 10px; font-style: normal; text-align: center; }
.icon-button { border: 0; background: transparent; color: #8fa59e; font-size: 17px; }
.workspace { grid-column: 2; min-width: 0; min-height: 100vh; }
.topbar { height: 102px; padding: 24px clamp(24px, 4vw, 56px); border-bottom: 1px solid var(--line); background: rgba(251, 251, 247, .92); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 10; backdrop-filter: blur(10px); }
.topbar h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 27px; font-weight: 400; letter-spacing: -.025em; }
.topbar-actions { display: flex; align-items: center; gap: 13px; }
.account-menu-wrap { position: relative; }
.topbar-account { min-height: 40px; padding: 4px 9px 4px 5px; border: 1px solid var(--line); border-radius: 10px; display: flex; align-items: center; gap: 8px; color: var(--ink); background: var(--paper); }
.topbar-account:hover, .topbar-account[aria-expanded="true"] { border-color: #adc8ba; background: #f1f7f3; }
.topbar-account .avatar { width: 30px; height: 30px; }
.topbar-account > span:nth-child(2) { max-width: 130px; overflow: hidden; font-size: 10px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.topbar-account i { color: var(--muted); font-size: 10px; font-style: normal; }
.account-menu { position: absolute; top: calc(100% + 9px); right: 0; width: 260px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 18px 50px rgba(8, 44, 37, .18); z-index: 30; }
.account-menu__identity { padding: 10px 11px 12px; border-bottom: 1px solid var(--line); }
.account-menu__identity strong, .account-menu__identity span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu__identity strong { font-size: 11px; }
.account-menu__identity span { margin-top: 4px; color: var(--muted); font-size: 9px; text-transform: capitalize; }
.account-menu > button { width: 100%; padding: 10px 11px; border: 0; border-radius: 8px; display: block; color: var(--ink); background: transparent; text-align: left; }
.account-menu > button:hover, .account-menu > button:focus { background: #f0f6f2; outline: none; }
.account-menu > button span, .account-menu > button small { display: block; }
.account-menu > button span { font-size: 11px; font-weight: 750; }
.account-menu > button small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.notification-button { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--forest-700); background: var(--paper); }
.notification-button > span { font-size: 9px; }
.notification-button > strong { position: absolute; top: -5px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; border: 2px solid var(--paper); border-radius: 99px; color: var(--forest-950); background: var(--mint-500); font-size: 8px; line-height: 1; }
.mobile-menu { display: none; border: 0; background: transparent; color: var(--forest-900); font-size: 20px; }
.content { padding: 34px clamp(24px, 4vw, 56px) 72px; max-width: 1640px; margin: 0 auto; }

body[data-portal-role="admin"] { background-color: #f2f5f3; background-image: linear-gradient(rgba(18, 74, 62, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(18, 74, 62, .025) 1px, transparent 1px); background-size: 28px 28px; }
body[data-portal-role="admin"] .topbar { background: rgba(246, 249, 247, .9); }
body[data-portal-role="admin"] .topbar h1, body[data-portal-role="admin"] .view-head h2, body[data-portal-role="admin"] .metric-card strong, body[data-portal-role="admin"] .product-card h3 { font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-weight: 680; letter-spacing: -.035em; }
body[data-portal-role="admin"] .topbar h1 { font-size: 24px; }
body[data-portal-role="admin"] .view-head h2 { font-size: 28px; }
body[data-portal-role="admin"] .panel, body[data-portal-role="admin"] .metric-card, body[data-portal-role="admin"] .product-card { border-color: #d7e0da; border-radius: 12px; box-shadow: 0 1px 2px rgba(8, 44, 37, .025); }
body[data-portal-role="admin"] th { color: #577168; background: #edf2ef; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
body[data-portal-role="admin"] .eyebrow, body[data-portal-role="admin"] .nav-group > span { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.loading { min-height: 300px; display: grid; place-items: center; align-content: center; gap: 15px; color: var(--muted); font-size: 12px; }
.loading span { width: 26px; height: 26px; border: 2px solid var(--line); border-top-color: var(--mint-500); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.view-head { margin-bottom: 25px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.view-head h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 30px; font-weight: 400; letter-spacing: -.035em; }
.view-head p { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.action-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.metric-card { min-height: 138px; padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); display: flex; flex-direction: column; justify-content: space-between; }
.metric-card--dark { background: var(--forest-900); color: #fff; border-color: var(--forest-900); }
.metric-card__top { display: flex; justify-content: space-between; gap: 14px; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.metric-card--dark .metric-card__top { color: #9db5ad; }
.metric-card__icon { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 6px; background: #edf3ee; color: var(--forest-700); }
.metric-card--dark .metric-card__icon { background: rgba(50,200,162,.12); color: var(--mint-500); }
.metric-card strong { display: block; margin-top: 15px; font-family: Georgia, "Times New Roman", serif; font-size: 34px; font-weight: 400; letter-spacing: -.03em; }
.metric-card small { color: var(--muted); }
.metric-card--dark small { color: #9db5ad; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.panel { border: 1px solid var(--line); border-radius: 10px; background: var(--paper); overflow: hidden; }
.panel + .panel { margin-top: 18px; }
.panel__head { min-height: 62px; padding: 16px 19px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.panel__head h3 { margin: 0; font-size: 13px; }
.panel__head p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.panel__body { padding: 19px; }
.panel--flush .panel__body { padding: 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 11px; }
th { padding: 11px 15px; color: var(--muted); background: #f3f5f1; text-align: left; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
td { padding: 13px 15px; border-top: 1px solid var(--line); vertical-align: middle; }
tbody tr:hover { background: #f8faf6; }
td strong { color: var(--forest-900); }
td small { display: block; margin-top: 3px; color: var(--muted); }
.table-link { padding: 0; border: 0; color: var(--forest-700); background: none; font-weight: 750; text-align: left; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 99px; background: #edf3ee; color: var(--forest-700); font-size: 9px; font-weight: 800; text-transform: capitalize; white-space: nowrap; }
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge--active, .badge--success, .badge--resolved, .badge--healthy, .badge--2fa_enabled { background: #e8f7ef; color: #217350; }
.badge--waiting, .badge--warning, .badge--pending_customer, .badge--pending_support, .badge--pending, .badge--provisioning, .badge--awaiting_provisioning, .badge--high, .badge--required { background: #fff4de; color: var(--amber); }
.badge--failed, .badge--critical, .badge--unavailable, .badge--urgent, .badge--disabled, .badge--suspended { background: #fceaea; color: var(--red); }
.badge--open { background: #e9f2fa; color: var(--blue); }
.badge--closed, .badge--cancelled, .badge--inactive, .badge--2fa_disabled { background: #edf0ed; color: #63736d; }
.empty { padding: 55px 24px; text-align: center; color: var(--muted); }
.empty strong { display: block; margin-bottom: 7px; color: var(--forest-800); }
.list { display: grid; }
.list-row { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.list-row:first-child { padding-top: 0; }
.list-row:last-child { padding-bottom: 0; border-bottom: 0; }
.list-row strong, .list-row small { display: block; }
.list-row strong { font-size: 11px; }
.list-row small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.server-status-grid { align-items: stretch; }
.server-status-grid .panel { margin: 0; }
.server-resource-list { display: grid; gap: 22px; }
.server-resource__label { margin-bottom: 9px; display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.server-resource__label > div:last-child { text-align: right; }
.server-resource__label strong, .server-resource__label small { display: block; }
.server-resource__label strong { color: var(--forest-900); font-size: 11px; }
.server-resource__label small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.server-resource__bar { height: 9px; overflow: hidden; border-radius: 99px; background: #e4ebe6; }
.server-resource__bar span { display: block; height: 100%; border-radius: inherit; background: var(--mint-500); transition: width .25s ease; }
.server-history { margin-top: 18px; }
.technical-chip { display: inline-flex; align-items: center; padding: 5px 8px; border: 1px solid #cbd9d1; border-radius: 5px; color: #49645c; background: #f4f7f5; font: 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 800; letter-spacing: .07em; white-space: nowrap; }
.telemetry-console { margin-bottom: 18px; padding: 20px; overflow: hidden; border: 1px solid #214d43; border-radius: 12px; color: #e8f5ef; background: radial-gradient(circle at 90% 0%, rgba(71, 180, 145, .16), transparent 32%), #092b24; box-shadow: 0 18px 40px rgba(7, 39, 32, .14); }
.telemetry-console__head { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.telemetry-console__head span { color: #77cfb1; font: 8px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 800; letter-spacing: .12em; }
.telemetry-console__head h3 { margin: 8px 0 0; color: #fff; font-size: 16px; }
.telemetry-console__head p { margin: 6px 0 0; color: #a9c0b8; font-size: 9px; line-height: 1.6; }
.telemetry-console__window { min-width: 155px; padding: 11px 13px; border: 1px solid rgba(117, 207, 177, .2); border-radius: 7px; background: rgba(255,255,255,.035); text-align: right; }
.telemetry-console__window small, .telemetry-console__window strong, .telemetry-console__window em { display: block; }
.telemetry-console__window small { color: #91afa4; font: 7px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; }
.telemetry-console__window strong { margin-top: 7px; color: #fff; font: 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.telemetry-console__window em { margin-top: 6px; color: #77cfb1; font: 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace; font-style: normal; }
.telemetry-tracks { margin-top: 22px; display: grid; gap: 12px; }
.telemetry-track { display: grid; grid-template-columns: 74px minmax(0,1fr); align-items: center; gap: 12px; }
.telemetry-track__label { min-width: 0; }
.telemetry-track__label strong, .telemetry-track__label span, .telemetry-track__label small { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.telemetry-track__label strong { color: #c4d8d0; font-size: 8px; letter-spacing: .08em; }
.telemetry-track__label span { margin-top: 4px; color: #fff; font-size: 10px; }
.telemetry-track__label small { margin-top: 4px; color: #75958a; font-size: 6px; line-height: 1.3; white-space: nowrap; }
.telemetry-track__plot { position: relative; height: 42px; overflow: hidden; border-bottom: 1px solid rgba(177, 214, 200, .2); background: repeating-linear-gradient(to top, transparent 0, transparent 12px, rgba(177,214,200,.06) 13px); }
.telemetry-track__canvas { display: block; width: 100%; height: 100%; }
.telemetry-axis { margin: 7px 0 0 86px; display: flex; justify-content: space-between; color: #75958a; font: 7px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.product-card { min-height: 280px; padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); display: flex; flex-direction: column; }
.product-card__top { display: flex; justify-content: space-between; gap: 12px; }
.product-card__category { color: var(--forest-700); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.product-card h3 { margin: 15px 0 7px; font-family: Georgia, "Times New Roman", serif; font-size: 24px; font-weight: 400; letter-spacing: -.025em; }
.product-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.specs { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0; }
.specs span { padding: 5px 7px; border: 1px solid var(--line); border-radius: 5px; color: #49645c; font-size: 9px; }
.product-card__foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.price { font-family: Georgia, "Times New Roman", serif; font-size: 27px; color: var(--forest-900); }
.price small { font-family: inherit; font-size: 12px; color: var(--muted); }

.split-view { display: grid; grid-template-columns: minmax(260px, .72fr) minmax(420px, 1.28fr); border: 1px solid var(--line); border-radius: 10px; background: var(--paper); min-height: 580px; overflow: hidden; }
.split-list { border-right: 1px solid var(--line); overflow-y: auto; max-height: 72vh; }
.split-list__head { padding: 17px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--paper); z-index: 1; }
.queue-filters { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 5px; }
.queue-filters button { padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--muted); font-size: 9px; font-weight: 700; }
.queue-filters button:hover, .queue-filters button.active { border-color: #b9d2c1; background: #eaf4ed; color: var(--forest-800); }
.split-item { width: 100%; padding: 15px 17px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; color: var(--ink); }
.split-item:hover, .split-item.active { background: #f0f5f0; }
.split-item.active { box-shadow: inset 3px 0 var(--mint-500); }
.split-item__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.split-item strong { font-size: 11px; }
.split-item p { margin: 7px 0 0; color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.split-item__tags { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 5px; }
.ticket-workspace-nav { margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ticket-workspace-nav > div { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 10px; }
.ticket-workspace-nav > div span { font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ticket-workspace-nav > div strong { color: var(--forest-700); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.ticket-workspace { min-width: 0; min-height: 620px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); overflow: hidden; box-shadow: 0 14px 38px rgba(20, 49, 41, .07); }
.ticket-workspace .conversation { min-height: 620px; }
.ticket-workspace .conversation__head { align-items: flex-start; }
.ticket-workspace .conversation__head > div:first-child { min-width: 0; }
.ticket-workspace .conversation__head > .action-row { justify-content: flex-end; }
.ticket-workspace .messages { min-height: 310px; max-height: 48vh; }
.source-chip, .queue-chip, .category-chip, .sla-pill, .child-case-label { display: inline-flex; align-items: center; padding: 4px 7px; border-radius: 99px; font-size: 8px; line-height: 1; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.support-state { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid transparent; border-radius: 99px; font-size: 8px; line-height: 1; font-weight: 850; letter-spacing: .035em; text-transform: uppercase; white-space: nowrap; }
.support-state i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(255,255,255,.62); }
.support-state--waiting_support { border-color: #efc8bd; color: #963d31; background: #fcece8; }
.support-state--waiting_customer { border-color: #bed6e8; color: #285f8e; background: #eaf3fa; }
.support-state--closed { border-color: #d6dcd8; color: #617069; background: #f0f2f0; }
.source-chip--email { background: #e7f0fa; color: #285f8e; }
.source-chip--portal { background: #e6f3ec; color: #28644a; }
.source-chip--contact { background: #f1eafa; color: #694493; }
.queue-chip { background: #fff0cf; color: #8a5a13; }
.category-chip { background: #edf0ed; color: #53645d; }
.sla-pill--met { background: #e8f7ef; color: #217350; }
.sla-pill--pending { background: #fff4de; color: #8a5a13; }
.sla-pill--breached { background: #fceaea; color: var(--red); }
.case-line { margin-bottom: 6px; display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.case-number { color: var(--forest-700); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; font-weight: 850; letter-spacing: .04em; white-space: nowrap; }
.child-case-label { background: #e7f0fa; color: #285f8e; }
.parent-case-link { padding: 0; border: 0; background: none; color: var(--blue); font-size: 9px; font-weight: 750; }
.conversation { display: flex; flex-direction: column; min-width: 0; }
.conversation__head { min-height: 74px; padding: 17px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.conversation__head h3 { margin: 0; font-size: 14px; }
.conversation__head p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.ticket-context { margin-top: 7px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 9px; }
.assignment-pill { padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; background: #f4f5f2; color: var(--muted); font-size: 9px; font-weight: 750; white-space: nowrap; }
.assignment-pill--mine { border-color: #c6dfcf; background: #eaf6ee; color: #276247; }
.case-notice { padding: 10px 20px; border-bottom: 1px solid #efdbb5; background: #fff8e9; color: #76561d; font-size: 10px; line-height: 1.5; }
.case-notice--locked { border-color: #e8c5c5; background: #fceaea; color: #8b3434; }
.messages { flex: 1; padding: 22px; overflow-y: auto; max-height: calc(72vh - 155px); background: #f7f8f4; }
.message { max-width: 75%; margin-bottom: 15px; }
.message--mine { margin-left: auto; }
.message__meta { margin: 0 5px 5px; color: var(--muted); font-size: 9px; display: flex; gap: 8px; }
.message--mine .message__meta { justify-content: flex-end; }
.message__bubble { padding: 11px 13px; border: 1px solid var(--line); border-radius: 4px 10px 10px 10px; background: #fff; font-size: 11px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.message--mine .message__bubble { border-color: var(--forest-800); border-radius: 10px 4px 10px 10px; background: var(--forest-800); color: #fff; }
.message--internal .message__bubble { border-style: dashed; background: #fff8e9; color: #76561d; }
.message--typing { max-width: 220px; }
.typing-bubble { width: 58px; min-height: 38px; display: flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid var(--line); border-radius: 4px 10px 10px 10px; background: #fff; }
.typing-bubble i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: chat-typing 1s infinite ease-in-out; }
.typing-bubble i:nth-child(2) { animation-delay: .14s; }
.typing-bubble i:nth-child(3) { animation-delay: .28s; }
@keyframes chat-typing { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-3px); opacity: 1; } }
.ticket-composers { padding: 14px; border-top: 1px solid var(--line); background: #f7f8f4; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ticket-composers--customer { grid-template-columns: 1fr; }
.ticket-composer { padding: 13px; border: 1px solid; border-radius: 9px; }
.ticket-composer--public { border-color: #c6dfcf; background: #eff8f1; }
.ticket-composer--internal { border-color: #e7cd9b; background: #fff8e9; }
.ticket-composer__head { min-height: 42px; display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.ticket-composer__head strong, .ticket-composer__head small { display: block; }
.ticket-composer__head strong { color: var(--forest-900); font-size: 11px; }
.ticket-composer--internal .ticket-composer__head strong { color: #76561d; }
.ticket-composer__head small { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.ticket-composer form { margin-top: 10px; gap: 9px; }
.ticket-composer textarea { min-height: 74px; max-height: 150px; resize: vertical; background: rgba(255, 255, 255, .92); font-size: 11px; }
.ticket-composer .button { justify-self: start; }
.audience-label { flex: 0 0 auto; padding: 4px 7px; border-radius: 99px; font-size: 8px; line-height: 1.2; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.audience-label--customer { background: #d9eee0; color: #246044; }
.audience-label--staff { background: #f4dfb9; color: #76561d; }
.composer { padding: 14px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.composer textarea { min-height: 42px; max-height: 120px; resize: none; }
.conversation-empty { height: 100%; display: grid; place-items: center; color: var(--muted); text-align: center; padding: 40px; }

.request-command { margin-bottom: 14px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.86); display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.request-filter-stack { min-width: 0; display: grid; gap: 5px; }
.request-tabs, .request-account-tabs, .request-state-tabs { display: flex; flex-wrap: wrap; gap: 5px; }
.request-tabs button, .request-account-tabs button, .request-state-tabs button { padding: 8px 10px; border: 1px solid transparent; border-radius: 7px; display: inline-flex; align-items: center; gap: 7px; color: var(--muted); background: transparent; font-size: 10px; font-weight: 750; }
.request-tabs button span, .request-account-tabs button span, .request-state-tabs button span { min-width: 19px; padding: 3px 5px; border-radius: 99px; color: #527067; background: #e6ece8; font: 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-align: center; }
.request-tabs button:hover, .request-tabs button.active, .request-account-tabs button:hover, .request-account-tabs button.active, .request-state-tabs button:hover, .request-state-tabs button.active { border-color: #bed2c7; color: var(--forest-900); background: #eef6f1; }
.request-state-tabs { padding-top: 5px; border-top: 1px solid #e3e9e5; }
.request-state-tabs button { padding: 6px 8px; font-size: 8px; }
.request-search { width: min(430px, 100%); display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px; }
.request-search input { min-height: 36px; padding: 8px 10px; font-size: 10px; }
.request-directory { min-height: 650px; border: 1px solid var(--line); border-radius: 13px; display: grid; grid-template-columns: minmax(310px, .72fr) minmax(480px, 1.28fr); overflow: hidden; background: rgba(255,255,255,.9); }
.request-people { min-width: 0; border-right: 1px solid var(--line); background: #f7f9f7; }
.request-people__head { min-height: 90px; padding: 15px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.request-people__head > strong { font: 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .05em; text-transform: uppercase; }
.request-account-tabs button { padding: 6px 7px; font-size: 8px; }
.request-people__list { max-height: 650px; overflow-y: auto; }
.request-person { width: 100%; min-height: 79px; padding: 13px 14px; border: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 36px minmax(0,1fr) auto; align-items: center; gap: 10px; color: var(--ink); background: transparent; text-align: left; }
.request-person:hover { background: #eff5f1; }
.request-person.active { background: #e7f2eb; box-shadow: inset 3px 0 var(--mint-500); }
.request-person__avatar { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid #bfd3c8; border-radius: 9px; color: var(--forest-800); background: #fff; font: 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 800; }
.request-person strong, .request-person small, .request-person em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.request-person strong { font-size: 11px; }
.request-person small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.request-person em { margin-top: 4px; color: #527067; font-size: 8px; font-style: normal; }
.request-person__counts { display: grid; gap: 4px; }
.request-person__counts b { min-width: 25px; padding: 4px 5px; border-radius: 5px; color: #526c63; background: #e6ece8; font: 7px/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-align: center; }
.request-history { min-width: 0; background: #fff; }
.request-history__head { min-height: 110px; padding: 20px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.request-history__head span { color: var(--forest-700); font: 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.request-history__head h3 { margin: 7px 0 0; font-size: 18px; }
.request-history__head p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.request-history__list { padding: 8px 20px 20px; }
.request-row { min-height: 84px; padding: 14px 2px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 13px; }
.request-row__type { padding: 6px 5px; border-radius: 5px; color: #246044; background: #dff1e5; font: 7px/1 ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 800; text-align: center; }
.request-row__type--chat { color: #285f8e; background: #e2eff8; }
.request-row__title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.request-row__title > strong { font-size: 11px; }
.request-row p { margin: 6px 0 0; color: var(--muted); font-size: 9px; }

.billing-filter-panel { margin-bottom: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.billing-filter-panel form { padding: 16px; display: grid; grid-template-columns: 150px 150px minmax(220px,1fr) 145px 145px auto; align-items: end; gap: 10px; }
.billing-filter-panel label { color: #567067; font: 8px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .05em; text-transform: uppercase; }
.billing-filter-panel input, .billing-filter-panel select { min-height: 38px; padding: 8px 9px; font-family: Inter, ui-sans-serif, sans-serif; font-size: 10px; letter-spacing: 0; text-transform: none; }
.billing-filter-panel .button { min-height: 38px; }
.billing-filter-summary { padding: 10px 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 14px; color: var(--muted); background: #f4f7f5; font-size: 9px; }
.billing-filter-summary span { color: var(--forest-800); font: 9px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; }
.billing-records table { min-width: 1050px; }
.record-type { padding: 5px 7px; border: 1px solid #cbd9d1; border-radius: 5px; color: var(--forest-700); background: #f0f5f2; font: 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 800; text-transform: uppercase; }

.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.field-grid .span-2 { grid-column: 1/-1; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-row input, .filter-row select { width: auto; min-width: 180px; padding: 8px 10px; font-size: 11px; }
.product-tabs { display: inline-flex; gap: 5px; margin-bottom: 14px; padding: 4px; border: 1px solid var(--line); border-radius: 9px; background: #f3f5f1; }
.product-tabs button { padding: 8px 11px; display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; font-size: 10px; font-weight: 750; }
.product-tabs button:hover, .product-tabs button.active { color: var(--forest-900); background: var(--paper); box-shadow: 0 1px 3px rgba(8, 44, 37, .1); }
.product-tabs button span { min-width: 20px; padding: 3px 5px; border-radius: 99px; background: #e3e9e3; color: var(--forest-700); font-size: 8px; text-align: center; }
.customer-catalog-tabs { margin-bottom: 18px; }
.customer-catalog-filter { margin-bottom: 18px; overflow: visible; }
.customer-catalog-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-bottom: 18px; }
.customer-catalog-controls label { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.customer-catalog-controls input, .customer-catalog-controls select { min-height: 40px; padding: 9px 10px; font-size: 11px; text-transform: none; letter-spacing: 0; }
.customer-catalog-sliders { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.customer-catalog-slider { min-width: 0; padding: 13px 14px 11px; display: grid; gap: 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.customer-catalog-slider > span { display: grid; gap: 4px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.customer-catalog-slider output { min-height: 16px; color: var(--forest-800); font-size: 10px; font-weight: 700; line-height: 1.4; letter-spacing: 0; text-transform: none; }
.customer-catalog-range { --range-start: 0%; --range-end: 100%; position: relative; height: 22px; }
.customer-catalog-range::before, .customer-catalog-range::after { position: absolute; top: 9px; height: 4px; border-radius: 99px; pointer-events: none; content: ""; }
.customer-catalog-range::before { right: 0; left: 0; background: #d7ddd8; }
.customer-catalog-range::after { right: calc(100% - var(--range-end)); left: var(--range-start); background: var(--forest-700); }
.customer-catalog-range input[type='range'] { position: absolute; z-index: 2; top: 0; left: 0; width: 100%; height: 22px; margin: 0; padding: 0; appearance: none; border: 0; background: transparent; box-shadow: none; cursor: pointer; pointer-events: none; }
.customer-catalog-range input[type='range']::-webkit-slider-runnable-track { height: 4px; background: transparent; }
.customer-catalog-range input[type='range']::-webkit-slider-thumb { width: 17px; height: 17px; margin-top: -7px; appearance: none; border: 2px solid #fff; border-radius: 50%; background: var(--forest-700); box-shadow: 0 0 0 1px rgba(18, 74, 62, .35); pointer-events: auto; }
.customer-catalog-range input[type='range']::-moz-range-track { height: 4px; background: transparent; }
.customer-catalog-range input[type='range']::-moz-range-thumb { width: 15px; height: 15px; border: 2px solid #fff; border-radius: 50%; background: var(--forest-700); box-shadow: 0 0 0 1px rgba(18, 74, 62, .35); pointer-events: auto; }
.customer-catalog-range input[type='range']:disabled { cursor: wait; opacity: .45; }
.customer-catalog-profiles { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 15px; }
.customer-catalog-profiles button { padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: transparent; font-size: 9px; font-weight: 750; }
.customer-catalog-profiles button:hover, .customer-catalog-profiles button.active { border-color: #b9d2c1; color: var(--forest-800); background: #eaf4ed; }
.customer-catalog-summary { padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); }
.customer-catalog-summary p, .customer-catalog-note { margin: 0; color: var(--muted); font-size: 10px; }
.customer-catalog-summary button { padding: 0; border: 0; color: var(--forest-700); background: transparent; font-size: 10px; font-weight: 750; }
.customer-catalog-note { margin-top: 9px; font-size: 8px; }
.customer-catalog-list { margin-top: 0; }
.customer-catalog-head p { min-height: 14px; }
.customer-catalog-table { min-width: 980px; }
.customer-catalog-table tbody th { padding: 13px 15px; border-top: 1px solid var(--line); color: var(--ink); background: transparent; text-align: left; font-size: 11px; letter-spacing: 0; text-transform: none; vertical-align: middle; white-space: normal; }
.customer-catalog-table tbody th strong, .customer-catalog-table tbody th small { display: block; }
.customer-catalog-table tbody th strong { color: var(--forest-900); font-size: 11px; }
.customer-catalog-table tbody th small { margin-top: 4px; color: var(--muted); font-size: 9px; font-weight: 500; line-height: 1.5; }
.customer-catalog-table tbody tr.customer-catalog-best-match { background: #eff8f1; }
.customer-catalog-match { display: inline-flex; margin-bottom: 6px; padding: 3px 6px; border-radius: 99px; color: #fff; background: var(--forest-700); font-size: 7px; font-weight: 800; letter-spacing: .05em; line-height: 1; text-transform: uppercase; }
.customer-catalog-locations { white-space: nowrap; }
.customer-catalog-price { font-size: 14px; white-space: nowrap; }
.customer-catalog-price small { display: inline; margin-left: 2px; font-size: 8px; font-weight: 500; }
.customer-catalog-empty { padding: 42px 18px !important; color: var(--muted); text-align: center; }
.customer-directory-head { align-items: center; flex-wrap: wrap; }
.customer-directory-head .filter-row { flex: 1 1 650px; }
.customer-directory-head .filter-row input { flex: 1 1 260px; }
.directory-count { color: var(--muted); font-size: 10px; white-space: nowrap; }
.directory-pagination { padding: 14px 16px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: flex-end; gap: 12px; color: var(--muted); font-size: 10px; }
.report-controls { margin-bottom: 18px; }
.report-form { display: grid; grid-template-columns: minmax(190px, 1fr) minmax(190px, 1fr) auto; align-items: end; gap: 14px; }
.report-form .button { min-height: 42px; }
.audit-console { margin-bottom: 18px; overflow: hidden; border: 1px solid #1f4b40; border-radius: 12px; color: #e6f3ed; background: #0a2e26; box-shadow: 0 16px 38px rgba(11, 51, 42, .12); }
.audit-console__head { padding: 18px 20px; display: flex; align-items: start; justify-content: space-between; gap: 20px; border-bottom: 1px solid rgba(169, 211, 196, .15); background: radial-gradient(circle at 88% -20%, rgba(88, 194, 157, .16), transparent 38%); }
.audit-console__head > div > span { color: #70c9ab; font: 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 800; letter-spacing: .12em; }
.audit-console__head h3 { margin: 8px 0 0; color: #fff; font-size: 16px; }
.audit-console__head p { margin: 6px 0 0; color: #a8bfb7; font: 9px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.audit-console .technical-chip { border-color: rgba(112, 201, 171, .3); color: #8be0c3; background: rgba(255,255,255,.04); }
.audit-role-grid { padding: 12px 20px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; border-bottom: 1px solid rgba(169, 211, 196, .15); }
.audit-role-grid button { min-width: 0; padding: 12px 13px; border: 1px solid rgba(166, 207, 193, .16); border-radius: 7px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 5px 10px; color: #c1d5ce; background: rgba(255,255,255,.025); text-align: left; }
.audit-role-grid button:hover, .audit-role-grid button.active { border-color: rgba(112, 201, 171, .56); color: #fff; background: rgba(92, 190, 156, .12); }
.audit-role-grid span { font-size: 9px; font-weight: 800; }
.audit-role-grid strong { color: #73d0b1; font: 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.audit-role-grid small { grid-column: 1/-1; color: #829f95; font-size: 8px; }
.audit-filter-deck { padding: 14px 20px; display: flex; align-items: end; justify-content: space-between; gap: 18px; border-bottom: 1px solid rgba(169, 211, 196, .15); }
.audit-filter-deck__label { display: block; margin-bottom: 8px; color: #78988d; font: 7px/1 ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.audit-event-tabs { display: flex; flex-wrap: wrap; gap: 5px; }
.audit-event-tabs button { padding: 7px 9px; border: 1px solid rgba(164, 205, 191, .16); border-radius: 5px; color: #9bb5ac; background: transparent; font-size: 8px; font-weight: 750; }
.audit-event-tabs button:hover, .audit-event-tabs button.active { border-color: rgba(112, 201, 171, .5); color: #fff; background: rgba(112, 201, 171, .12); }
.audit-ticket-search { min-width: min(430px, 100%); display: flex; align-items: end; gap: 6px; }
.audit-ticket-search label { flex: 1; color: #78988d; font: 7px/1 ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.audit-ticket-search input { min-height: 34px; margin-top: 7px; border-color: rgba(164,205,191,.22); color: #fff; background: rgba(255,255,255,.055); font: 9px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0; text-transform: none; }
.audit-ticket-search input::placeholder { color: #718d83; }
.audit-timeframe { padding: 13px 20px; display: grid; grid-template-columns: minmax(180px, 240px) minmax(180px, 240px) auto minmax(220px,1fr); align-items: end; gap: 10px; }
.audit-timeframe label { color: #78988d; font: 7px/1 ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.audit-timeframe input { min-height: 34px; margin-top: 7px; border-color: rgba(164,205,191,.22); color: #fff; background: rgba(255,255,255,.055); font-size: 9px; }
.audit-timeframe small { align-self: center; color: #78988d; font-size: 8px; line-height: 1.5; }
.audit-log-panel .panel__head { background: #f5f8f6; }
.audit-log-panel table { min-width: 1100px; }
.audit-event-row td { vertical-align: top; }
.audit-event-row td:nth-child(1) { width: 160px; }
.audit-event-row td:nth-child(3) { width: 225px; }
.audit-event-row td:nth-child(4) { width: 210px; }
.audit-time { font: 9px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--forest-800); white-space: nowrap; }
.audit-scope { color: var(--forest-800); font-size: 10px; font-weight: 750; }
.json-field { min-height: 130px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.notice { padding: 13px 15px; border: 1px solid #d5e5da; border-radius: 8px; background: #eff8f1; color: #37624f; font-size: 11px; line-height: 1.6; }
.notice--warning { border-color: #efdbb5; background: #fff8e9; color: #76561d; }
.code { padding: 3px 5px; border-radius: 4px; background: #edf0ed; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; overflow-wrap: anywhere; }
.mfa-setup { margin: 20px 0; display: grid; grid-template-columns: 180px 1fr; align-items: center; gap: 22px; }
.mfa-setup img { width: 180px; height: 180px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.manual-secret { display: block; margin-top: 12px; padding: 10px; border-radius: 6px; background: #edf0ed; font-size: 12px; letter-spacing: .08em; overflow-wrap: anywhere; user-select: all; }
.recovery-codes { margin: 16px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.recovery-codes code { padding: 8px 10px; border: 1px solid var(--line); border-radius: 5px; background: #fff; font-size: 11px; text-align: center; user-select: all; }
.credential-block { margin: 18px 0 0; padding: 16px; border-radius: 8px; background: var(--forest-900); color: #e8f7ef; font: 11px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; }
.bar-list { display: grid; gap: 13px; }
.bar-row__label { margin-bottom: 6px; display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
.bar { height: 6px; border-radius: 10px; background: #e7ece7; overflow: hidden; }
.bar span { height: 100%; display: block; border-radius: inherit; background: var(--mint-500); }

.agent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.agent-card { padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.agent-card__head { display: flex; align-items: center; gap: 11px; }
.agent-card__head > div:nth-child(2) { min-width: 0; flex: 1; }
.agent-card__head h3 { margin: 0; color: var(--forest-900); font-size: 13px; }
.agent-card__head p { margin: 4px 0 0; color: var(--muted); font-size: 9px; overflow-wrap: anywhere; }
.agent-avatar { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--forest-900); color: #fff; font-size: 11px; font-weight: 800; }
.agent-card__coverage { margin: 17px 0; padding: 12px; border-radius: 7px; background: #f0f5f0; }
.agent-card__coverage strong, .agent-card__coverage span { display: block; }
.agent-card__coverage strong { color: var(--forest-800); font-size: 10px; }
.agent-card__coverage span { margin-top: 4px; color: var(--muted); font-size: 9px; }
.agent-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.agent-stats div { min-height: 64px; padding: 11px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.agent-stats div:nth-child(2n) { border-right: 0; }
.agent-stats div:nth-last-child(-n+2) { border-bottom: 0; }
.agent-stats strong, .agent-stats span { display: block; }
.agent-stats strong { color: var(--forest-900); font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 400; }
.agent-stats span { margin-top: 3px; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .05em; }
.agent-card__activity { margin: 14px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; padding: 25px; background: rgba(3, 20, 16, .64); display: grid; place-items: center; }
.modal { width: min(620px, 100%); max-height: calc(100vh - 50px); overflow-y: auto; position: relative; padding: 29px; border-radius: 12px; background: var(--paper); box-shadow: var(--shadow); }
.modal--wide { width: min(940px, 100%); }
.modal h2 { margin: 5px 40px 8px 0; font-family: Georgia, "Times New Roman", serif; font-size: 30px; font-weight: 400; }
.modal-close { position: absolute; top: 18px; right: 19px; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); font-size: 20px; }
.modal form { margin-top: 24px; }
.content-markdown { min-height: 320px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; line-height: 1.65; }
.content-image-field { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.content-image-field__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.content-image-field__head strong, .content-image-field__head small { display: block; }
.content-image-field__head strong { color: var(--ink); font-size: 11px; }
.content-image-field__head small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.content-image-preview { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.content-image-preview img, .content-preview__image { display: block; width: 100%; max-height: 360px; object-fit: cover; }
.checkbox-field { align-self: end; min-height: 46px; display: flex; align-items: center; gap: 10px; padding-bottom: 11px; }
.checkbox-field input { width: auto; margin: 0; }
.content-preview { margin: 22px 0; padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.content-preview__body { color: var(--ink); font-size: 13px; line-height: 1.75; }
.content-preview__body h2, .content-preview__body h3 { margin: 22px 0 8px; font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.content-preview__body h2 { font-size: 26px; }
.content-preview__body h3 { font-size: 21px; }
.content-preview__body p, .content-preview__body ul, .content-preview__body ol, .content-preview__body blockquote { margin: 0 0 14px; }
.content-preview__body blockquote { padding: 10px 15px; border-left: 3px solid var(--forest-500); background: var(--paper); }
.notification-summary { margin: 20px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.notification-summary button { padding: 14px; display: grid; gap: 3px; border: 1px solid var(--line); border-radius: 9px; color: var(--forest-900); background: #fff; text-align: left; }
.notification-summary strong { font-family: Georgia, "Times New Roman", serif; font-size: 26px; font-weight: 400; }
.notification-summary span { color: var(--muted); font-size: 10px; }
.notification-list { display: grid; gap: 8px; }
.notification-item { width: 100%; padding: 13px; display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; text-align: left; }
.notification-item:hover { border-color: var(--forest-700); background: #f7faf7; }
.notification-item__type { color: var(--forest-700); font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.notification-item strong { font-size: 11px; }
.notification-item small { color: var(--muted); font-size: 9px; }
.notification-item p { margin: 3px 0 0; color: #4f645d; font-size: 10px; line-height: 1.5; }
.cookie-notice {
  position: fixed;
  z-index: 100;
  bottom: 16px;
  left: 50%;
  width: min(calc(100% - 32px), 1040px);
  padding: 21px 23px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  border: 1px solid rgba(111, 224, 193, .3);
  border-radius: 16px;
  color: rgba(255, 255, 255, .8);
  background: rgba(8, 44, 37, .97);
  box-shadow: 0 24px 70px rgba(7, 31, 25, .3);
  transform: translateX(-50%);
  backdrop-filter: blur(16px);
}
.cookie-notice__eyebrow, .cookie-notice__copy strong { display: block; }
.cookie-notice__eyebrow { margin-bottom: 5px; color: var(--mint-500); font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.cookie-notice__copy strong { color: #fff; font-size: 15px; }
.cookie-notice__copy p { max-width: 760px; margin: 7px 0 0; font-size: 11px; line-height: 1.65; }
.cookie-notice__actions { display: flex; align-items: center; gap: 16px; }
.cookie-notice__actions a { color: rgba(255, 255, 255, .84); font-size: 10px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.cookie-notice__actions button { min-height: 42px; padding: 10px 15px; border: 1px solid rgba(111, 224, 193, .42); border-radius: 8px; color: var(--forest-950); background: var(--mint-500); font-size: 10px; font-weight: 800; white-space: nowrap; }
.cookie-notice__actions button:hover { background: #6fe0c1; }
body.has-cookie-notice .toast-region { bottom: var(--cookie-notice-offset, 180px); }

.toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: grid; gap: 8px; }
.toast { min-width: 260px; max-width: 390px; padding: 13px 15px; border-radius: 8px; color: #fff; background: var(--forest-900); box-shadow: var(--shadow); font-size: 11px; animation: toast-in .2s ease; }
.toast--error { background: #812e2e; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1100px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-catalog-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-catalog-sliders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ticket-workspace .conversation__head { flex-direction: column; align-items: stretch; }
  .ticket-workspace .conversation__head > .action-row { justify-content: flex-start; }
  .billing-filter-panel form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .audit-timeframe { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .audit-timeframe small { grid-column: 1/-1; }
}

@media (max-width: 800px) {
  .login-layout { grid-template-columns: 1fr; }
  .login-story { min-height: 290px; padding: 28px; }
  .login-story__copy { padding: 40px 0 20px; }
  .login-story h1 { font-size: 48px; }
  .login-story__copy > p:last-child { font-size: 14px; }
  .login-panel { padding: 42px 24px; }
  .sidebar { transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow); }
  .sidebar-scrim {
    position: fixed;
    inset: 0;
    z-index: 19;
    display: block;
    padding: 0;
    border: 0;
    background: rgba(7, 31, 25, .32);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s, visibility .2s;
  }
  .app-layout.menu-open .sidebar { transform: translateX(0); }
  .app-layout.menu-open .sidebar-scrim { opacity: 1; visibility: visible; pointer-events: auto; }
  .app-layout { grid-template-columns: 1fr; }
  .workspace { grid-column: 1; }
  .mobile-menu { display: block; }
  .topbar { height: 84px; padding: 18px 22px; }
  .topbar > div:first-of-type { margin-right: auto; margin-left: 12px; }
  .topbar h1 { font-size: 22px; }
  .content { padding: 24px 18px 55px; }
  .grid-2, .split-view { grid-template-columns: 1fr; }
  .request-directory { grid-template-columns: 1fr; }
  .request-people { border-right: 0; border-bottom: 1px solid var(--line); }
  .request-people__list { max-height: 300px; }
  .request-command { align-items: stretch; flex-direction: column; }
  .request-search { width: 100%; }
  .telemetry-console__head, .audit-console__head, .audit-filter-deck { align-items: stretch; flex-direction: column; }
  .telemetry-console__window { text-align: left; }
  .audit-role-grid { grid-template-columns: 1fr; }
  .audit-ticket-search { min-width: 0; width: 100%; }
  .audit-timeframe { grid-template-columns: 1fr 1fr; }
  .audit-timeframe small { grid-column: 1/-1; }
  .split-list { border-right: 0; border-bottom: 1px solid var(--line); max-height: 260px; }
  .conversation { min-height: 520px; }
  .field-grid { grid-template-columns: 1fr; }
  .field-grid .span-2 { grid-column: auto; }
  .customer-catalog-controls { grid-template-columns: 1fr; }
  .mfa-setup { grid-template-columns: 1fr; }
  .cookie-notice { grid-template-columns: 1fr; gap: 17px; padding: 19px; }
  .cookie-notice__actions { justify-content: space-between; }
  .topbar-account > span:nth-child(2), .topbar-account > i { display: none; }
}

@media (max-width: 560px) {
  .metric-grid, .product-grid, .agent-grid, .grid-3 { grid-template-columns: 1fr; }
  .customer-catalog-sliders { grid-template-columns: 1fr; }
  .customer-catalog-summary { align-items: flex-start; flex-direction: column; }
  .metric-card { min-height: 115px; }
  .view-head { align-items: start; flex-direction: column; }
  .topbar-actions .button { display: none; }
  .topbar-actions .account-menu .button { display: block; }
  .login-card h2 { font-size: 36px; }
  body[data-portal="operations"] .login-layout { padding: 20px; }
  body[data-portal="operations"] .login-card { padding: 20px; }
  .message { max-width: 90%; }
  .ticket-composers { grid-template-columns: 1fr; }
  .ticket-composer .button { width: 100%; }
  .ticket-workspace-nav { align-items: stretch; flex-direction: column; }
  .ticket-workspace-nav .button { width: 100%; }
  .ticket-workspace-nav > div { justify-content: space-between; }
  .report-form { grid-template-columns: 1fr; }
  .billing-filter-panel form { grid-template-columns: 1fr; }
  .billing-filter-summary, .request-history__head { align-items: flex-start; flex-direction: column; }
  .request-row { grid-template-columns: 42px minmax(0,1fr); }
  .request-row > .button { grid-column: 2; justify-self: start; }
  .telemetry-console { padding: 16px; }
  .telemetry-track { grid-template-columns: 54px minmax(0,1fr); gap: 8px; }
  .telemetry-axis { margin-left: 62px; }
  .audit-timeframe { grid-template-columns: 1fr; }
  .audit-timeframe small { grid-column: auto; }
  .audit-ticket-search { align-items: stretch; flex-direction: column; }
  .recovery-codes { grid-template-columns: 1fr; }
  .notification-summary { grid-template-columns: 1fr; }
  .modal-backdrop { padding: 10px; }
  .modal { max-height: calc(100dvh - 20px); padding: 24px 18px; }
  .cookie-notice { bottom: 10px; width: min(calc(100% - 20px), 1040px); }
  .cookie-notice__actions { align-items: stretch; flex-direction: column-reverse; gap: 11px; }
  .cookie-notice__actions a { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
