:root {
  --ink: #1d1d21;
  --ink-soft: #44454c;
  --muted: #74757d;
  --muted-2: #96979e;
  --blue: #5c6ce2;
  --blue-dark: #4454ca;
  --violet: #7869d8;
  --green: #57aa7d;
  --amber: #c58a35;
  --red: #bd5868;
  --line: rgba(40, 42, 51, 0.09);
  --glass: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.86);
  --shadow: 0 22px 60px rgba(72, 69, 104, 0.09);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: #f7f7f9; }
body { min-height: 100vh; margin: 0; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", Arial, sans-serif; background: #f7f7f9; }
button, input, select, textarea { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [contenteditable]:focus-visible { outline: 3px solid rgba(91, 108, 226, .2); outline-offset: 2px; }
a { color: inherit; }
[hidden] { display: none !important; }

.boot-screen, .login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 43% 30%, rgba(244, 217, 241, .92), transparent 28%),
    radial-gradient(circle at 72% 68%, rgba(217, 232, 255, .92), transparent 30%),
    #f8f8fa;
}
.boot-screen { align-content: center; color: var(--muted); font-size: 13px; }
.boot-orb { width: 44px; height: 44px; margin: auto; border-radius: 14px; background: linear-gradient(145deg, #f05bc7, #ffd861 54%, #80ecdd); box-shadow: 0 12px 30px rgba(120, 98, 171, .18); }

.glass-card { background: var(--glass); border: 1px solid rgba(255, 255, 255, .88); box-shadow: var(--shadow), inset 0 0 0 1px rgba(35, 38, 51, .035); backdrop-filter: blur(22px) saturate(145%); -webkit-backdrop-filter: blur(22px) saturate(145%); }
.app-shell {
  min-height: 100vh;
  padding: 18px;
  display: grid;
  grid-template-columns: 242px minmax(0, 1fr);
  gap: 18px;
  position: relative;
  overflow-x: clip;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 215, 246, .82), transparent 27%),
    radial-gradient(circle at 83% 2%, rgba(210, 242, 255, .75), transparent 25%),
    radial-gradient(circle at 68% 92%, rgba(218, 229, 255, .68), transparent 27%),
    #f7f7f9;
}
.app-shell::before, .app-shell::after { content: ""; position: fixed; z-index: 0; pointer-events: none; border-radius: 999px; filter: blur(8px); }
.app-shell::before { width: 340px; height: 340px; right: 8%; top: 14%; background: rgba(225, 208, 255, .2); }
.app-shell::after { width: 260px; height: 260px; left: 26%; bottom: 2%; background: rgba(176, 239, 226, .18); }

.sidebar { position: sticky; top: 18px; z-index: 4; height: calc(100vh - 36px); padding: 20px 14px 16px; border-radius: 25px; display: flex; flex-direction: column; overflow-y: auto; scrollbar-width: none; }
.sidebar::-webkit-scrollbar { display: none; }
.brand { min-height: 58px; padding: 0 8px 14px; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid var(--line); }
.brand img { width: 132px; height: 43px; object-fit: contain; }
.brand span { padding-left: 9px; border-left: 1px solid #d9d9df; color: #85858c; font-size: 10px; line-height: 1.35; letter-spacing: .08em; white-space: nowrap; }
.side-nav { display: grid; gap: 4px; padding-top: 14px; }
.side-nav button, .mobile-nav button { border: 0; background: transparent; cursor: pointer; }
.side-nav button { min-height: 42px; padding: 0 11px; border-radius: 13px; display: flex; align-items: center; gap: 11px; color: #696a72; text-align: left; }
.side-nav button i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: #777983; font-size: 16px; font-style: normal; font-weight: 700; }
.side-nav button span { flex: 1; font-size: 13px; font-weight: 640; }
.side-nav button b { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; color: #8a427f; background: #f1c6ed; font-size: 9px; }
.side-nav button.active { color: #3e47ad; background: rgba(239, 240, 252, .92); box-shadow: inset 0 0 0 1px rgba(84, 99, 224, .08); }
.side-nav button.active i { color: white; background: linear-gradient(145deg, #7682ef, #5362dc); box-shadow: 0 7px 14px rgba(80, 96, 216, .25); }
.nav-section-label { margin: 11px 11px 2px; color: #aaaab0; font-size: 8px; font-weight: 760; letter-spacing: .16em; text-transform: uppercase; }
.sidebar-spacer { flex: 1; min-height: 14px; }
.guardrail-card { margin: 0 2px 11px; padding: 14px; border: 1px solid rgba(93, 87, 123, .08); border-radius: 17px; background: rgba(246, 245, 252, .82); }
.guardrail-card strong { display: flex; align-items: center; gap: 7px; color: #4c4d55; font-size: 10px; }
.guardrail-card strong i { width: 7px; height: 7px; border-radius: 50%; background: #63c88f; box-shadow: 0 0 0 4px rgba(99, 200, 143, .1); }
.guardrail-card p { margin: 8px 0 0; color: #95959b; font-size: 8px; line-height: 1.55; }
.help-link { padding: 8px 12px; display: flex; gap: 11px; color: #8c8c94; font-size: 11px; text-decoration: none; }

.main-content { position: relative; z-index: 2; min-width: 0; padding: 2px 6px 38px; }
.topbar { height: 64px; display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.topbar-spacer { flex: 1; }
.search-box { width: min(360px, 36vw); height: 42px; padding: 0 13px; display: flex; align-items: center; gap: 10px; border: 1px solid rgba(47, 48, 58, .08); border-radius: 14px; background: rgba(255, 255, 255, .62); box-shadow: 0 8px 26px rgba(45, 44, 70, .045); }
.search-box span { color: #8e8f96; font-size: 21px; line-height: 1; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; color: #34343a; background: transparent; font-size: 12px; }
.icon-button, .primary-button, .secondary-button, .danger-button { border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-weight: 650; text-decoration: none; transition: transform .12s ease, filter .12s ease, background .12s ease; }
.primary-button, .secondary-button, .danger-button { min-height: 42px; padding: 0 17px; font-size: 12px; }
.primary-button { border: 0; color: white; background: linear-gradient(135deg, #6775eb, #4e5cda); box-shadow: 0 10px 22px rgba(75, 91, 211, .22); }
.primary-button:hover { filter: brightness(1.04); }
.secondary-button { border: 1px solid rgba(48, 50, 59, .09); color: #5f637c; background: rgba(255, 255, 255, .7); }
.danger-button { border: 1px solid rgba(189, 88, 104, .14); color: #a84f60; background: #fff4f6; }
.primary-button:disabled, .secondary-button:disabled, .danger-button:disabled { opacity: .44; cursor: not-allowed; }
.icon-button { width: 38px; height: 38px; border: 1px solid var(--line); color: #5d66b7; background: rgba(255, 255, 255, .62); font-size: 16px; }
.account-chip { min-width: 148px; height: 46px; padding: 0 9px; border: 0; border-left: 1px solid var(--line); display: flex; align-items: center; gap: 9px; background: transparent; cursor: pointer; text-align: left; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; color: #4d4264; background: linear-gradient(145deg, #ffe9b8, #e7c3fa); box-shadow: inset 0 0 0 1px rgba(255,255,255,.7); font-size: 13px; font-weight: 760; }
.account-chip > span { min-width: 70px; display: flex; flex-direction: column; }
.account-chip strong { font-size: 12px; }
.account-chip small { margin-top: 2px; color: #92929a; font-size: 9px; }
.account-chip b { color: #94949c; font-size: 11px; }

.page-heading { min-height: 132px; padding: 30px 8px 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.eyebrow { margin: 0 0 7px; color: #777fca; font-size: 9px; font-weight: 760; letter-spacing: .2em; text-transform: uppercase; }
.page-heading h1 { margin: 0; font-size: clamp(28px, 3vw, 40px); font-weight: 770; letter-spacing: -.045em; line-height: 1.12; }
.page-heading p:not(.eyebrow) { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.heading-actions { display: flex; align-items: center; gap: 8px; }
.live-pill { align-self: center; margin-top: 22px; padding: 8px 12px; border: 1px solid rgba(58, 60, 70, .07); border-radius: 999px; color: #5d6864; background: rgba(255, 255, 255, .58); font-size: 10px; font-weight: 650; white-space: nowrap; }
.live-pill i { width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; display: inline-block; background: #5fca91; box-shadow: 0 0 0 4px rgba(95,202,145,.12); }

.bento-grid { margin-bottom: 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.metric-card { min-height: 164px; padding: 18px; border-radius: 21px; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.metric-card::after { content: ""; position: absolute; width: 140px; height: 140px; right: -52px; top: -62px; border-radius: 50%; background: rgba(213, 204, 255, .22); }
.metric-card.feature { grid-column: span 2; background: linear-gradient(145deg, rgba(248, 247, 255, .83), rgba(253, 242, 250, .74)); }
.metric-icon { width: 32px; height: 32px; margin-bottom: 12px; display: grid; place-items: center; border-radius: 10px; color: #4e4f62; box-shadow: inset 0 0 0 1px rgba(255,255,255,.72); font-size: 14px; font-weight: 800; }
.metric-icon.lilac { background: linear-gradient(145deg, #ded9ff, #f6d8f4); }
.metric-icon.mint { background: linear-gradient(145deg, #d2f5e6, #dcecff); }
.metric-icon.amber { background: linear-gradient(145deg, #fff0c6, #fbd8ea); }
.metric-icon.rose { background: linear-gradient(145deg, #f8d8e9, #eadfff); }
.metric-card > span { color: #73747d; font-size: 10px; font-weight: 650; }
.metric-card > strong { margin-top: 4px; font-size: 27px; letter-spacing: -.035em; }
.metric-card > small { max-width: 80%; margin-top: 5px; color: #98989e; font-size: 9px; line-height: 1.5; }
.metric-card .micro-label { margin-top: auto; display: flex; align-items: center; gap: 6px; color: #6972ba; font-size: 9px; }
.metric-card .micro-label i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.mini-bars { position: absolute; right: 18px; bottom: 22px; height: 45px; display: flex; align-items: flex-end; gap: 4px; }
.mini-bars i { width: 5px; border-radius: 5px; background: linear-gradient(#9ba4f6, #dbb6e9); }
.mini-bars i:nth-child(1) { height: 16px; }.mini-bars i:nth-child(2) { height: 29px; }.mini-bars i:nth-child(3) { height: 21px; }.mini-bars i:nth-child(4) { height: 40px; }.mini-bars i:nth-child(5) { height: 33px; }
.ring { --progress: 0deg; position: absolute; right: 20px; bottom: 19px; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#69c39a var(--progress), rgba(89,111,102,.09) 0); }
.ring::after { content: ""; position: absolute; width: 41px; height: 41px; border-radius: 50%; background: #f7fbf9; }
.ring b { z-index: 1; font-size: 10px; }

.dashboard-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .8fr); gap: 13px; }
.panel { min-width: 0; border-radius: 22px; overflow: hidden; }
.panel-head { min-height: 68px; padding: 13px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.panel-head h2 { margin: 0; font-size: 15px; letter-spacing: -.01em; }
.panel-head p { margin: 4px 0 0; color: #92939a; font-size: 10px; line-height: 1.45; }
.panel-actions { display: flex; align-items: center; gap: 7px; }
.panel-actions input, .panel-actions select { height: 34px; border: 1px solid var(--line); border-radius: 10px; color: #56575f; background: rgba(255,255,255,.75); font-size: 10px; }
.panel-actions input { width: 180px; padding: 0 10px; }
.panel-actions select { padding: 0 26px 0 10px; }
.panel-actions button { min-height: 34px; padding: 0 11px; border-radius: 10px; font-size: 10px; }
.panel-body { padding: 16px 18px; }
.full-panel { margin-top: 13px; }

.trend-stage { min-height: 245px; padding: 24px 18px 18px; display: grid; grid-template-rows: 1fr auto; gap: 14px; }
.trend-bars { min-height: 175px; display: flex; align-items: flex-end; gap: clamp(7px, 1.6vw, 18px); border-bottom: 1px solid var(--line); }
.trend-item { min-width: 0; flex: 1; display: grid; justify-items: center; gap: 7px; }
.trend-item i { width: min(32px, 76%); min-height: 4px; border-radius: 9px 9px 3px 3px; display: block; background: linear-gradient(180deg, #7e88eb, #d0a8df); box-shadow: 0 7px 16px rgba(90,99,190,.12); }
.trend-item b { color: #7e7f87; font-size: 8px; font-weight: 600; white-space: nowrap; }
.trend-legend { display: flex; flex-wrap: wrap; gap: 13px; color: #84858d; font-size: 9px; }
.trend-legend i { width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; display: inline-block; background: #7c87e8; }

.action-list, .gap-list, .channel-stack { display: grid; gap: 9px; }
.action-item, .gap-item, .channel-row { padding: 12px; border: 1px solid rgba(47,48,58,.065); border-radius: 14px; background: rgba(255,255,255,.52); }
.action-item { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 10px; }
.action-item > i { width: 29px; height: 29px; border-radius: 9px; display: grid; place-items: center; color: #626bc0; background: #e7e9fb; font-size: 12px; font-style: normal; }
.action-item > div, .gap-item > div { min-width: 0; }
.action-item strong, .gap-item strong { display: block; overflow: hidden; color: #44454c; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.action-item small, .gap-item small { margin-top: 3px; display: block; color: #9899a1; font-size: 8px; line-height: 1.45; }
.action-item time { color: #94959d; font-size: 8px; white-space: nowrap; }
.gap-item { display: flex; gap: 10px; }
.gap-item > span { min-width: 42px; height: 23px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center; color: #9a5b66; background: #f8e3e7; font-size: 8px; font-weight: 750; }

.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.data-table th { height: 38px; padding: 0 11px; border-bottom: 1px solid rgba(38,40,48,.06); color: #9899a0; font-size: 9px; font-weight: 620; text-align: left; }
.data-table td { min-height: 58px; padding: 11px; border-bottom: 1px solid rgba(38,40,48,.055); color: #707179; font-size: 10px; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: rgba(255,255,255,.42); }
.cell-title { min-width: 0; display: grid; gap: 3px; }
.cell-title strong { overflow: hidden; color: #35363c; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.cell-title small { overflow: hidden; color: #9a9ba2; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.status-badge { width: fit-content; min-height: 24px; padding: 0 8px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; color: #5e746a; background: rgba(209,242,225,.66); font-size: 8px; font-weight: 680; white-space: nowrap; }
.status-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #62bd8b; }
.status-badge.draft, .status-badge.neutral { color: #777780; background: #eeeef2; }.status-badge.draft::before, .status-badge.neutral::before { background: #a2a2ab; }
.status-badge.review, .status-badge.pending, .status-badge.warning { color: #85683e; background: #f7edd3; }.status-badge.review::before, .status-badge.pending::before, .status-badge.warning::before { background: #d8a34d; }
.status-badge.approved, .status-badge.ready { color: #5664b7; background: #e7e9fb; }.status-badge.approved::before, .status-badge.ready::before { background: #7481df; }
.status-badge.failed, .status-badge.blocked { color: #995b63; background: #fae1e5; }.status-badge.failed::before, .status-badge.blocked::before { background: #dd6e7c; }
.row-actions { display: flex; justify-content: flex-end; gap: 5px; }
.row-actions button { min-height: 30px; padding: 0 9px; border: 1px solid var(--line); border-radius: 9px; color: #656875; background: rgba(255,255,255,.72); cursor: pointer; font-size: 9px; }
.pagination { min-height: 58px; padding: 10px 17px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #8d8e95; font-size: 9px; }
.pagination > div { display: flex; align-items: center; gap: 7px; }
.pagination select, .pagination button { height: 31px; border: 1px solid var(--line); border-radius: 9px; color: #62636b; background: rgba(255,255,255,.72); font-size: 9px; }
.pagination select { padding: 0 23px 0 8px; }.pagination button { min-width: 31px; padding: 0 9px; cursor: pointer; }.pagination button:disabled { opacity: .35; cursor: not-allowed; }

.channel-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 13px; }
.channel-card { min-height: 190px; padding: 18px; border-radius: 21px; display: flex; flex-direction: column; }
.channel-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.channel-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #565b8d; background: linear-gradient(145deg, #e1ddff, #f5def0); font-size: 15px; font-weight: 800; }
.channel-icon.wechat { color: #3e8060; background: linear-gradient(145deg, #d4f2e1, #e2f0ff); }
.channel-icon.web { color: #6068ad; background: linear-gradient(145deg, #dce1ff, #f0e0f4); }
.channel-icon.submit { color: #8f6c3e; background: linear-gradient(145deg, #f9e8c5, #f4deeb); }
.channel-card h3 { margin: 15px 0 4px; font-size: 15px; }.channel-card p { margin: 0; color: #8c8d95; font-size: 9px; line-height: 1.55; }
.channel-card footer { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; color: #92939b; font-size: 8px; }

.claims-summary { margin-bottom: 13px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mini-stat { padding: 14px 15px; border-radius: 17px; }.mini-stat span { color: #888992; font-size: 9px; }.mini-stat strong { margin-top: 3px; display: block; font-size: 21px; }
.rule-tag { display: inline-flex; min-height: 22px; padding: 0 7px; border-radius: 7px; align-items: center; color: #5664b7; background: #e8eafd; font-size: 8px; font-weight: 650; }.rule-tag.blocked { color: #9b5762; background: #fae3e7; }.rule-tag.attribute { color: #85683e; background: #f7edd3; }.rule-tag.rewrite { color: #75608f; background: #eee4f4; }

.empty-state { min-height: 210px; padding: 34px 20px; display: grid; place-items: center; align-content: center; color: #8a8b93; text-align: center; }
.empty-state i { width: 48px; height: 48px; margin-bottom: 12px; border-radius: 16px; display: grid; place-items: center; color: #6974ca; background: linear-gradient(145deg, #e2e1fa, #f5dfed); font-size: 18px; font-style: normal; }
.empty-state strong { color: #4a4b52; font-size: 13px; }.empty-state p { max-width: 360px; margin: 6px 0 0; font-size: 9px; line-height: 1.6; }
.skeleton { border-radius: 8px; background: linear-gradient(90deg, rgba(235,235,240,.8), rgba(250,250,252,.9), rgba(235,235,240,.8)); background-size: 220% 100%; animation: shimmer 1.4s ease infinite; }
@keyframes shimmer { to { background-position: -220% 0; } }

.dialog-backdrop { position: fixed; z-index: 80; inset: 0; padding: 22px; display: grid; place-items: center; background: rgba(37,35,51,.3); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.dialog { width: min(560px, calc(100vw - 28px)); max-height: calc(100vh - 44px); border-radius: 23px; overflow: auto; background: rgba(255,255,255,.94); }
.dialog.wide { width: min(1040px, calc(100vw - 28px)); }
.dialog-head { position: sticky; z-index: 2; top: 0; min-height: 74px; padding: 15px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 14px; background: rgba(252,252,253,.91); backdrop-filter: blur(18px); }
.dialog-head h2 { margin: 0; font-size: 17px; }.dialog-head p { margin: 4px 0 0; color: #8f9098; font-size: 9px; }.dialog-head button { flex: 0 0 auto; }
.dialog-body { padding: 18px; }
.dialog-actions { padding: 14px 18px 18px; display: flex; justify-content: flex-end; gap: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.field { min-width: 0; display: grid; gap: 6px; color: #64656d; font-size: 9px; font-weight: 680; }
.field.full { grid-column: 1 / -1; }.field.checkbox { display: flex; align-items: center; gap: 7px; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid rgba(44,45,55,.1); border-radius: 12px; outline: 0; color: #35363b; background: rgba(250,250,252,.84); font-size: 11px; font-weight: 450; }
.field input, .field select { height: 43px; padding: 0 12px; }.field textarea { min-height: 82px; padding: 11px 12px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #8590e7; box-shadow: 0 0 0 3px rgba(104,118,225,.1); }
.field small { color: #9a9ba2; font-size: 8px; font-weight: 450; line-height: 1.45; }
.required::after { content: " *"; color: #bb5667; }

.editor-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: 14px; }
.editor-main, .editor-side { min-width: 0; display: grid; align-content: start; gap: 12px; }
.editor-box { overflow: hidden; border: 1px solid rgba(44,45,55,.1); border-radius: 15px; background: rgba(250,250,252,.84); }
.editor-toolbar { padding: 7px; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 5px; background: rgba(245,245,248,.92); }
.editor-toolbar button { min-width: 32px; height: 30px; padding: 0 8px; border: 1px solid rgba(43,45,54,.08); border-radius: 8px; color: #646670; background: white; cursor: pointer; font-size: 9px; font-weight: 680; }
.rich-editor { min-height: 330px; padding: 22px; outline: 0; color: #3c3d44; background: white; font-size: 13px; line-height: 1.8; }
.rich-editor:empty::before { content: attr(data-placeholder); color: #acadb4; }
.rich-editor h2 { font-size: 21px; }.rich-editor h3 { font-size: 17px; }.rich-editor img, .rich-editor video { max-width: 100%; border-radius: 13px; }.rich-editor blockquote { margin: 18px 0; padding: 12px 16px; border-left: 3px solid #7a84e0; color: #666875; background: #f5f5fb; }
.seo-meter { display: grid; gap: 8px; }.seo-line { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; color: #777881; font-size: 8px; }.seo-track { grid-column: 1/-1; height: 5px; border-radius: 999px; overflow: hidden; background: #e7e7ec; }.seo-track i { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg,#7b86e6,#79c6a6); }
.preflight-list { display: grid; gap: 7px; }.preflight-item { padding: 9px 10px; border-radius: 10px; display: grid; grid-template-columns: auto minmax(0,1fr); gap: 8px; color: #73747d; background: #f5f5f8; font-size: 8px; line-height: 1.45; }.preflight-item i { width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; color: white; background: #5eb185; font-size: 8px; font-style: normal; }.preflight-item.failed i { background: #c36170; }

.login-screen { position: relative; overflow: hidden; }
.login-card { width: min(430px, calc(100vw - 32px)); padding: 39px; border-radius: 28px; background: rgba(255,255,255,.76); text-align: center; }
.login-card img { width: 220px; max-width: 80%; height: auto; margin: 0 auto 18px; display: block; }
.login-card .eyebrow { margin-bottom: 9px; }.login-card h1 { margin: 0; font-size: 34px; letter-spacing: -.05em; }.login-card > p:not(.eyebrow) { color: #777882; font-size: 11px; line-height: 1.6; }
.login-form { margin-top: 23px; display: grid; gap: 12px; text-align: left; }.login-form label { display: grid; gap: 6px; color: #686970; font-size: 10px; font-weight: 650; }.login-form input { width: 100%; height: 45px; padding: 0 14px; border: 1px solid rgba(44,45,55,.1); border-radius: 13px; outline: 0; color: #35363b; background: rgba(250,250,252,.84); }.login-form input:focus { border-color: #8590e7; box-shadow: 0 0 0 3px rgba(104,118,225,.1); }.login-form .primary-button { width: 100%; margin-top: 5px; }.login-message { min-height: 16px; margin-top: 13px; display: block; color: #9898a0; font-size: 9px; }.login-message.error { color: #c25262; }
.security-note { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); color: #9899a1; font-size: 8px; line-height: 1.5; }

.toast-root { position: fixed; z-index: 120; right: 18px; bottom: 18px; display: grid; gap: 8px; pointer-events: none; }
.toast { min-width: 260px; max-width: min(380px, calc(100vw - 32px)); padding: 12px 14px; border: 1px solid rgba(255,255,255,.86); border-radius: 13px; color: #55565e; background: rgba(255,255,255,.94); box-shadow: 0 15px 38px rgba(52,51,75,.16); backdrop-filter: blur(18px); font-size: 10px; line-height: 1.45; pointer-events: auto; }
.toast.error { color: #9d4e5b; background: rgba(255,244,246,.96); }.toast.success { color: #46785f; background: rgba(243,255,249,.96); }
.notice { padding: 11px 13px; border: 1px solid rgba(98,108,194,.1); border-radius: 12px; color: #626887; background: rgba(237,239,253,.72); font-size: 9px; line-height: 1.55; }.notice.warning { border-color: rgba(195,137,53,.12); color: #80653d; background: rgba(250,239,213,.72); }.notice.danger { border-color: rgba(190,88,104,.12); color: #985563; background: rgba(250,227,231,.72); }
.mobile-nav { display: none; }

@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 210px minmax(0,1fr); }
  .brand img { width: 110px; }
  .bento-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-layout { grid-template-columns: 1fr; }
  .channel-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .app-shell { display: block; padding: 10px 10px calc(88px + env(safe-area-inset-bottom)); overflow: visible; }
  .sidebar { display: none; }.main-content { padding: 0; }.topbar { height: 58px; justify-content: space-between; }.topbar-spacer { display: block; }
  .search-box { width: min(100%,320px); flex: 1; }.topbar .primary-button { width: 42px; padding: 0; font-size: 0; }.topbar .primary-button::after { content: "+"; font-size: 20px; }
  .account-chip { min-width: auto; padding-left: 8px; }.account-chip > span, .account-chip b { display: none; }
  .page-heading { min-height: 116px; padding: 23px 5px 17px; align-items: flex-end; }.page-heading h1 { font-size: 29px; }.page-heading .live-pill { display: none; }.heading-actions { align-items: flex-end; flex-direction: column-reverse; gap: 6px; }
  .bento-grid { grid-template-columns: 1fr 1fr; gap: 10px; }.metric-card { min-height: 145px; padding: 15px; }.metric-card.feature { grid-column: span 2; }.metric-card > strong { font-size: 21px; }.metric-card > small { max-width: 90%; }
  .panel { border-radius: 19px; }.panel-head { padding: 11px 13px; align-items: flex-start; flex-direction: column; }.panel-actions { width: 100%; }.panel-actions input { min-width: 0; flex: 1; }
  .channel-grid, .claims-summary { grid-template-columns: 1fr 1fr; gap: 10px; }.channel-card { min-height: 170px; padding: 15px; }
  .data-table { min-width: 680px; }.data-table.mobile-cards { min-width: 0; }.data-table.mobile-cards thead { display: none; }.data-table.mobile-cards, .data-table.mobile-cards tbody, .data-table.mobile-cards tr, .data-table.mobile-cards td { display: block; width: 100%; }.data-table.mobile-cards tr { padding: 12px; border-bottom: 1px solid var(--line); position: relative; }.data-table.mobile-cards td { min-height: 0; padding: 4px 0; border: 0; }.data-table.mobile-cards td.hide-mobile { display: none; }.data-table.mobile-cards .row-actions { position: absolute; right: 12px; top: 12px; }
  .pagination { align-items: flex-start; flex-direction: column; }.pagination > div:last-child { width: 100%; justify-content: flex-end; }
  .editor-layout, .form-grid { grid-template-columns: 1fr; }.field.full { grid-column: auto; }.rich-editor { min-height: 280px; padding: 15px; }.dialog-backdrop { padding: 8px; }.dialog, .dialog.wide { width: calc(100vw - 16px); max-height: calc(100vh - 16px); border-radius: 19px; }.dialog-body { padding: 14px; }
  .mobile-nav { position: fixed; z-index: 30; left: 10px; right: 10px; bottom: calc(8px + env(safe-area-inset-bottom)); height: 62px; padding: 6px; border: 1px solid rgba(255,255,255,.9); border-radius: 20px; display: flex; justify-content: space-around; background: rgba(250,250,252,.9); box-shadow: 0 18px 50px rgba(44,45,60,.18); backdrop-filter: blur(22px); }
  .mobile-nav button { flex: 1; max-width: 120px; padding: 4px 8px; border-radius: 14px; display: grid; place-items: center; gap: 1px; color: #8a8a92; }.mobile-nav button i { font-size: 16px; font-style: normal; }.mobile-nav button span { font-size: 8px; font-weight: 650; }.mobile-nav button.active { color: #4f5fd2; background: #eef0fc; }
  .login-card { padding: 30px 24px; }
}

@media (max-width: 430px) {
  .bento-grid { grid-template-columns: 1fr; }.metric-card.feature { grid-column: auto; }.channel-grid, .claims-summary { grid-template-columns: 1fr; }.topbar .search-box { display: none; }.topbar { justify-content: flex-end; }.page-heading { min-height: 110px; }.page-heading p:not(.eyebrow) { max-width: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
