:root {
  color-scheme: dark;
  --bg: #07111d;
  --bg-soft: #0b1725;
  --panel: rgba(15, 29, 45, 0.92);
  --panel-solid: #102033;
  --panel-strong: #142940;
  --panel-hover: #19324d;
  --text: #edf5ff;
  --text-muted: #91a6bc;
  --border: rgba(148, 174, 202, 0.16);
  --border-strong: rgba(148, 174, 202, 0.28);
  --accent: #f3a83b;
  --accent-strong: #ffb847;
  --accent-soft: rgba(243, 168, 59, 0.13);
  --positive: #2bd49b;
  --warning: #ffbd59;
  --danger: #ff6b78;
  --neutral: #91a6bc;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  --radius: 18px;
  --radius-sm: 11px;
  --sidebar-width: 274px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #eef3f8;
  --bg-soft: #e5edf5;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-solid: #ffffff;
  --panel-strong: #f4f7fa;
  --panel-hover: #edf2f7;
  --text: #102032;
  --text-muted: #62758a;
  --border: rgba(38, 66, 96, 0.12);
  --border-strong: rgba(38, 66, 96, 0.22);
  --accent-soft: rgba(221, 137, 25, 0.12);
  --shadow: 0 20px 52px rgba(35, 57, 82, 0.12);
}
* { box-sizing: border-box; }
html, body, #root { min-height: 100%; margin: 0; }
body { background: radial-gradient(circle at 90% 0%, rgba(30, 108, 142, .18), transparent 28rem), var(--bg); color: var(--text); }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; }
.icon { display: block; flex: 0 0 auto; }

.boot { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 24px; }
.boot img { width: 100px; filter: drop-shadow(0 10px 28px rgba(0,0,0,.25)); }
.loader-wrap { min-height: 160px; display: grid; place-items: center; width: 100%; }
.loader { width: 34px; height: 34px; border: 3px solid var(--border-strong); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.login-page { min-height: 100vh; display: grid; place-items: center; padding: 32px; position: relative; overflow: hidden; background: linear-gradient(145deg, #06101b, #0b2134 55%, #07111c); }
:root[data-theme="light"] .login-page { background: linear-gradient(145deg, #eff5fa, #dfeaf4 55%, #f7f9fb); }
.login-ambient { position: absolute; border-radius: 50%; filter: blur(20px); pointer-events: none; }
.ambient-one { width: 470px; height: 470px; background: rgba(13, 111, 147, .22); top: -210px; right: -150px; }
.ambient-two { width: 380px; height: 380px; background: rgba(243, 168, 59, .11); bottom: -180px; left: -120px; }
.login-top-controls { position: absolute; top: 24px; right: 24px; display: flex; gap: 10px; align-items: center; }
.login-top-controls .input { min-width: 130px; }
.login-card { width: min(470px, 100%); background: var(--panel); border: 1px solid var(--border-strong); border-radius: 28px; padding: 34px; box-shadow: var(--shadow); backdrop-filter: blur(18px); position: relative; z-index: 1; }
.login-brand { display: flex; align-items: center; gap: 16px; padding-bottom: 26px; border-bottom: 1px solid var(--border); }
.brand-mark { width: 70px; height: 70px; border-radius: 20px; display: grid; place-items: center; background: linear-gradient(145deg, #102739, #091522); border: 1px solid rgba(255,255,255,.1); }
.brand-mark img { width: 54px; }
.login-brand h1 { font-size: 21px; margin: 0 0 4px; letter-spacing: -.02em; }
.login-brand p, .login-copy p { color: var(--text-muted); margin: 0; }
.login-copy { margin: 28px 0 24px; }
.login-copy h2 { margin: 0 0 8px; font-size: 30px; letter-spacing: -.035em; }
.login-security { display: flex; gap: 10px; color: var(--text-muted); font-size: 13px; line-height: 1.5; border-top: 1px solid var(--border); padding-top: 20px; margin-top: 22px; }
.login-footer { position: absolute; bottom: 20px; color: #7890a6; font-size: 12px; }

.form-stack { display: grid; gap: 17px; }
.form-grid { display: grid; gap: 16px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: grid; gap: 8px; min-width: 0; }
.field-label { font-size: 13px; font-weight: 650; color: var(--text-muted); }
.field small { color: var(--text-muted); font-size: 12px; }
.current-field-value { display: flex; align-items: flex-start; gap: 9px; min-height: 38px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg-soft); }
.current-field-value span { flex: 0 0 auto; color: var(--text-muted); font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; padding-top: 2px; }
.current-field-value strong { min-width: 0; color: var(--text); font-size: 12px; font-weight: 600; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.field-load-error { color: var(--warning) !important; }
.input { width: 100%; min-height: 44px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--panel-strong); color: var(--text); padding: 10px 13px; outline: none; transition: .18s ease; }
.input:focus { border-color: rgba(243,168,59,.7); box-shadow: 0 0 0 3px rgba(243,168,59,.11); }
.input:disabled { opacity: .55; cursor: not-allowed; }
.textarea { resize: vertical; min-height: 100px; }
.code-editor { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.form-error { display: flex; align-items: center; gap: 9px; padding: 11px 13px; border-radius: var(--radius-sm); color: #ffdfe3; background: rgba(255,107,120,.14); border: 1px solid rgba(255,107,120,.25); }
.check-field { display: flex; align-items: center; gap: 10px; color: var(--text-muted); margin: 12px 0; }
.check-field input, .data-table input[type="checkbox"], .permission-item input { accent-color: var(--accent); width: 17px; height: 17px; }

.button { border: 1px solid transparent; min-height: 41px; padding: 9px 15px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; cursor: pointer; transition: .18s ease; white-space: nowrap; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .55; cursor: wait; transform: none; }
.button-primary { background: linear-gradient(135deg, var(--accent), var(--accent-strong)); color: #17202a; box-shadow: 0 8px 22px rgba(243,168,59,.19); }
.button-secondary { background: var(--panel-strong); border-color: var(--border-strong); color: var(--text); }
.button-secondary:hover { background: var(--panel-hover); }
.button-ghost { background: transparent; border-color: transparent; color: var(--text-muted); }
.button-danger { background: rgba(255,107,120,.13); border-color: rgba(255,107,120,.25); color: var(--danger); }
.button-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.icon-button { width: 42px; height: 42px; display: grid; place-items: center; background: transparent; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; }
.icon-button:hover { background: var(--panel-hover); }
.icon-button.raised { background: var(--panel); }

.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: var(--sidebar-width); min-width: var(--sidebar-width); height: 100vh; position: sticky; top: 0; background: linear-gradient(180deg, #0b1928, #07111c); border-right: 1px solid rgba(255,255,255,.07); display: flex; flex-direction: column; z-index: 50; }
:root[data-theme="light"] .sidebar { background: linear-gradient(180deg, #173047, #102538); color: #f3f8fd; }
.sidebar-brand { min-height: 84px; display: flex; align-items: center; gap: 13px; padding: 16px 19px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-brand img { width: 48px; }
.sidebar-brand strong { display: block; font-size: 21px; letter-spacing: .06em; }
.sidebar-brand small { color: #8ca5ba; }
.sidebar-close { display: none; margin-left: auto; background: none; border: none; }
.sidebar-nav { padding: 14px 10px; display: grid; gap: 3px; overflow-y: auto; }
.nav-item { width: 100%; border: 0; background: transparent; color: #90a7ba; border-radius: 11px; padding: 11px 13px; display: flex; align-items: center; gap: 12px; cursor: pointer; text-align: left; font-weight: 600; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.055); }
.nav-item.active { color: #f7ba58; background: linear-gradient(90deg, rgba(243,168,59,.15), rgba(243,168,59,.045)); box-shadow: inset 3px 0 0 #f3a83b; }
.sidebar-footer { margin-top: auto; border-top: 1px solid rgba(255,255,255,.08); padding: 14px 11px; }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 7px; margin-bottom: 6px; min-width: 0; }
.sidebar-user > div:last-child { min-width: 0; }
.sidebar-user strong, .sidebar-user small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user small { color: #7f97aa; font-size: 11px; }
.avatar, .top-avatar { border-radius: 50%; display: grid; place-items: center; background: linear-gradient(145deg, #dd8c28, #ffbd59); color: #17202a; font-weight: 800; }
.avatar { width: 38px; height: 38px; flex: 0 0 auto; }
.avatar.large { width: 72px; height: 72px; font-size: 24px; }
.logout { color: #8399aa; }
.sidebar-overlay { display: none; }
.main-column { min-width: 0; flex: 1; }
.topbar { height: 70px; position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; padding: 0 26px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(18px); border-bottom: 1px solid var(--border); }
.topbar-title span { display: block; font-weight: 800; }
.topbar-title small { color: var(--text-muted); }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.topbar-actions .input { min-width: 72px; min-height: 40px; }
.top-avatar { width: 39px; height: 39px; }
.mobile-menu { display: none; }
.content { padding: 27px; max-width: 1760px; margin: 0 auto; }

.section-header { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 23px; }
.section-header h1 { margin: 0; font-size: clamp(25px, 3vw, 36px); letter-spacing: -.04em; }
.section-header p { color: var(--text-muted); margin: 7px 0 0; max-width: 760px; line-height: 1.55; }
.section-actions { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 12px 35px rgba(0,0,0,.08); overflow: hidden; margin-bottom: 20px; }
.card-header { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 19px 21px; border-bottom: 1px solid var(--border); }
.card-header h3 { margin: 0; font-size: 17px; }
.card-header p { color: var(--text-muted); margin: 4px 0 0; font-size: 13px; }
.card-body { padding: 20px; }
.card-actions { display: flex; justify-content: flex-end; margin-top: 20px; }
.stats-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 13px; margin-bottom: 20px; }
.stat-card { background: linear-gradient(160deg, var(--panel), var(--panel-solid)); border: 1px solid var(--border); border-radius: 16px; padding: 17px; min-width: 0; }
.stat-top { display: flex; justify-content: space-between; align-items: center; color: var(--text-muted); font-size: 12px; font-weight: 700; }
.stat-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.stat-card strong { display: block; font-size: 27px; margin-top: 12px; letter-spacing: -.03em; }
.stat-card small { color: var(--text-muted); }
.stat-positive .stat-icon { color: var(--positive); background: rgba(43,212,155,.11); }
.stat-warning .stat-icon { color: var(--warning); background: rgba(255,189,89,.11); }
.stat-danger .stat-icon { color: var(--danger); background: rgba(255,107,120,.11); }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.filter-row { display: grid; grid-template-columns: 2fr 1fr .65fr; gap: 15px; align-items: end; }

.activity-filter-row { grid-template-columns: 1.6fr 1fr 1fr; margin-bottom: 18px; }
.filter-check { min-height: 42px; align-self: end; }
.policy-switches { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 18px; }
.inline-notice { padding: 13px 15px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel-strong); color: var(--text-muted); line-height: 1.5; }
.inline-notice.warning { margin-bottom: 18px; color: var(--warning); border-color: rgba(255,189,89,.24); background: rgba(255,189,89,.07); }
.metadata-code { display: block; min-width: 260px; max-width: 520px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-muted); font-size: 11px; line-height: 1.45; }
.activity-detail-hero { align-items: flex-start; }

.table-wrap { overflow-x: auto; margin: -1px; }
.data-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.data-table th { text-align: left; color: var(--text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; font-weight: 800; padding: 11px 14px; border-bottom: 1px solid var(--border); background: var(--panel-strong); }
.data-table td { padding: 13px 14px; border-bottom: 1px solid var(--border); color: var(--text-muted); font-size: 13px; vertical-align: middle; }
.data-table td strong { color: var(--text); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr.clickable { cursor: pointer; }
.data-table tbody tr:hover { background: color-mix(in srgb, var(--panel-hover) 55%, transparent); }
.empty { min-height: 140px; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--text-muted); text-align: center; }
.empty-icon { width: 54px; height: 54px; border-radius: 17px; background: var(--panel-strong); display: grid; place-items: center; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 9px; font-size: 10px; font-weight: 850; letter-spacing: .04em; white-space: nowrap; }
.badge-positive { color: var(--positive); background: rgba(43,212,155,.11); border: 1px solid rgba(43,212,155,.18); }
.badge-warning { color: var(--warning); background: rgba(255,189,89,.11); border: 1px solid rgba(255,189,89,.18); }
.badge-danger { color: var(--danger); background: rgba(255,107,120,.11); border: 1px solid rgba(255,107,120,.18); }
.badge-neutral { color: var(--neutral); background: rgba(145,166,188,.09); border: 1px solid var(--border); }
.badge-row { display: flex; gap: 8px; margin-top: 9px; }

.activity-list { display: grid; }
.activity-item { display: grid; grid-template-columns: 10px 1fr auto; gap: 12px; align-items: center; padding: 13px 2px; border-bottom: 1px solid var(--border); }
.activity-item:last-child { border: 0; }
.activity-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.activity-item strong, .activity-item span { display: block; }
.activity-item strong { font-size: 12px; }
.activity-item span, .activity-item time { color: var(--text-muted); font-size: 11px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(1,6,11,.72); backdrop-filter: blur(8px); display: grid; place-items: center; padding: 20px; }
.modal { width: min(620px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; background: var(--panel-solid); border: 1px solid var(--border-strong); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.modal-large { width: min(1050px, 100%); }
.modal-small { width: min(440px, 100%); }
.modal-header { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 20px; border-bottom: 1px solid var(--border); }
.modal-header h2 { margin: 0; font-size: 21px; }
.modal-body { overflow-y: auto; padding: 22px; }
.modal-body > .field { margin-bottom: 16px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.detail-hero { display: flex; align-items: center; gap: 18px; padding: 4px 0 22px; border-bottom: 1px solid var(--border); }
.detail-hero h2 { margin: 0; }
.detail-hero p { color: var(--text-muted); margin: 5px 0; }
.hero-actions { margin-left: auto; display: flex; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin: 20px 0; }
.detail-grid.compact { grid-template-columns: repeat(2, minmax(0,1fr)); }
.info { background: var(--panel-strong); border: 1px solid var(--border); padding: 12px; border-radius: 12px; min-width: 0; }
.info span, .info strong { display: block; }
.info span { color: var(--text-muted); font-size: 11px; margin-bottom: 5px; }
.info strong { font-size: 13px; overflow-wrap: anywhere; }
.mono, code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.subheading { font-size: 14px; margin: 24px 0 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.notes-list { display: grid; gap: 10px; }
.note { padding: 14px; background: var(--panel-strong); border-radius: 12px; border: 1px solid var(--border); }
.note > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.note time { color: var(--text-muted); font-size: 11px; }
.note p { margin: 11px 0 0; line-height: 1.6; }

.product-grid, .integration-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.product-card { background: linear-gradient(155deg, var(--panel), var(--panel-solid)); border: 1px solid var(--border); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.product-card-top { display: flex; align-items: center; justify-content: space-between; }
.product-type { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: var(--accent-soft); color: var(--accent); }
.product-card h3 { margin: 4px 0 0; }
.product-card p { color: var(--text-muted); min-height: 42px; margin: 0; line-height: 1.5; }
.product-meta { display: flex; justify-content: space-between; color: var(--text-muted); font-family: ui-monospace, monospace; font-size: 11px; }
.product-numbers { display: grid; grid-template-columns: 1fr 1.3fr; gap: 9px; }
.pricing-grid { display: grid; grid-template-columns: 1fr; }
.tabs { display: flex; gap: 5px; overflow-x: auto; margin: 0 0 18px; padding: 5px; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; width: fit-content; max-width: 100%; }
.tabs button { border: 0; background: transparent; color: var(--text-muted); padding: 9px 13px; border-radius: 9px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.tabs button.active { background: var(--panel-strong); color: var(--accent); box-shadow: inset 0 0 0 1px var(--border); }
.permission-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; max-height: 360px; overflow-y: auto; padding: 4px; }
.permission-item { display: flex; gap: 10px; align-items: center; background: var(--panel-strong); border: 1px solid var(--border); border-radius: 11px; padding: 11px; }
.permission-item span, .permission-item strong, .permission-item small { display: block; }
.permission-item small { color: var(--text-muted); margin-top: 3px; }

.page-error { min-height: 220px; display: flex; place-content: center; align-items: center; justify-content: center; gap: 16px; color: var(--danger); }
.page-error > div { display: grid; gap: 12px; }
.toasts { position: fixed; z-index: 200; right: 20px; bottom: 20px; display: grid; gap: 10px; width: min(390px, calc(100vw - 40px)); }
.toast { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; padding: 13px 14px; border-radius: 13px; background: var(--panel-solid); border: 1px solid var(--border-strong); box-shadow: var(--shadow); }
.toast-success { border-color: rgba(43,212,155,.3); }
.toast-error { border-color: rgba(255,107,120,.35); }
.toast button { border: 0; background: transparent; color: var(--text-muted); cursor: pointer; }

@media (max-width: 1350px) {
  .stats-grid { grid-template-columns: repeat(3,1fr); }
  .product-grid, .integration-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 980px) {
  .sidebar { position: fixed; left: calc(-1 * var(--sidebar-width)); transition: left .24s ease; box-shadow: 20px 0 50px rgba(0,0,0,.35); }
  .sidebar.sidebar-open { left: 0; }
  .sidebar-close { display: block; }
  .sidebar-overlay { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.52); }
  .sidebar-overlay.show { display: block; }
  .mobile-menu { display: grid; }
  .topbar { padding: 0 17px; }
  .topbar-title { margin-right: auto; margin-left: 12px; }
  .two-column { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: repeat(2,1fr); }
  .section-header { flex-direction: column; }
  .section-actions { justify-content: flex-start; }
}
@media (max-width: 720px) {
  .content { padding: 19px 14px; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .product-grid, .integration-grid { grid-template-columns: 1fr; }
  .filter-row, .form-grid.two { grid-template-columns: 1fr; }
  .detail-hero { align-items: flex-start; flex-wrap: wrap; }
  .hero-actions { width: 100%; margin-left: 0; justify-content: flex-start; }
  .detail-grid, .detail-grid.compact { grid-template-columns: 1fr; }
  .permission-grid { grid-template-columns: 1fr; }
  .topbar-title small { display: none; }
  .top-avatar { display: none; }
  .login-page { padding: 18px; }
  .login-card { padding: 25px 21px; }
  .login-top-controls { top: 14px; right: 14px; }
}
.table-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding-top: 16px; }
.table-pagination span { color: var(--text-muted); font-size: 13px; font-weight: 700; }

.nav-count {
  margin-left: auto;
  min-width: 24px;
  height: 22px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 189, 89, .16);
  border: 1px solid rgba(255, 189, 89, .3);
  color: var(--warning);
  font-size: 10px;
  font-weight: 850;
}
.topbar-action-count {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border-radius: 11px;
  color: var(--warning);
  background: rgba(255, 189, 89, .08);
  border: 1px solid rgba(255, 189, 89, .22);
  font-weight: 850;
}
.change-comparison { display: grid; gap: 10px; }
.change-row {
  display: grid;
  grid-template-columns: minmax(130px, .7fr) repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: color-mix(in srgb, var(--panel-strong) 75%, transparent);
}
.change-row > strong {
  align-self: center;
  text-transform: capitalize;
  font-size: 13px;
}
.change-row > div {
  min-width: 0;
  border-left: 1px solid var(--border);
  padding-left: 10px;
}
.change-row span {
  display: block;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.change-row pre {
  min-height: 44px;
  margin: 0;
  padding: 10px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  border-radius: 9px;
  background: var(--panel-solid);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12px;
}
@media (max-width: 720px) {
  .change-row { grid-template-columns: 1fr; }
  .change-row > div { border-left: 0; border-top: 1px solid var(--border); padding: 10px 0 0; }
  .topbar-action-count { padding: 0 8px; }
}

/* Platform completion release */
.top-avatar {
  flex: 0 0 39px;
  min-width: 39px;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  overflow: hidden;
}
.request-filter-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.request-filter-actions .input { min-width: 210px; }
.posture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}
.posture-group {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: color-mix(in srgb, var(--surface-2) 70%, transparent);
}
.posture-group header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.posture-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
}
.posture-row span { color: var(--muted); }
.posture-row strong { font-size: 1.15rem; }
.target-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 12px 0 18px;
}
.selection-list {
  display: grid;
  gap: 8px;
  max-height: 230px;
  overflow: auto;
  margin-top: 7px;
}
.selection-list button {
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 11px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  cursor: pointer;
}
.selection-list button:hover,
.selection-list button.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 18%, transparent);
}
.selection-list button span,
.table-subtext { display: block; color: var(--muted); font-size: .78rem; margin-top: 2px; }
.provider-summary {
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 14px;
  margin: 12px 0;
  background: var(--surface-2);
}
.provider-summary p { color: var(--muted); margin: 7px 0 10px; }
.chip-row { display: flex; gap: 7px; flex-wrap: wrap; }
.chip {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: .72rem;
  color: var(--muted);
  background: var(--surface);
}
.check-grid { display: flex; gap: 18px; flex-wrap: wrap; margin: 10px 0 16px; }
.portal-failure {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--background);
}
.portal-failure .card { max-width: 620px; width: 100%; text-align: center; }
.portal-failure code { display: block; margin: 14px 0; padding: 10px; border-radius: 9px; background: var(--surface-2); overflow-wrap: anywhere; }
.portal-failure .button-row { justify-content: center; }
@media (max-width: 760px) {
  .target-picker { grid-template-columns: 1fr; }
  .request-filter-actions { width: 100%; }
  .request-filter-actions .input { flex: 1; min-width: 0; }
}
.contact-change-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:12px; margin-bottom:18px; }
.contact-change-card { display:grid; gap:8px; padding:13px; border:1px solid var(--border); border-radius:12px; background:var(--bg-soft); }
.contact-change-card > div { display:flex; justify-content:space-between; gap:10px; align-items:center; }
.contact-change-card p,.contact-change-card small { margin:0; overflow-wrap:anywhere; }
.change-log { display:grid; gap:0; margin:0 0 18px; }
.change-log-item { position:relative; display:grid; grid-template-columns:18px 1fr; gap:10px; padding:0 0 16px; }
.change-log-item:not(:last-child)::after { content:""; position:absolute; left:6px; top:14px; bottom:0; width:1px; background:var(--border); }
.change-log-dot { width:13px; height:13px; border-radius:50%; margin-top:3px; background:var(--accent); box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 15%,transparent); }
.change-log-item div { display:grid; gap:3px; }
.change-log-item small { color:var(--muted); overflow-wrap:anywhere; }
