@font-face { font-family: "Urbanist"; src: url("/fonts/urbanist-latin-wght.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ground: #dfe5f0;
  --panel: rgb(255 255 255 / 52%);
  --panel-2: rgb(255 255 255 / 68%);
  --panel-3: #ffffff;
  --ink: #15161a;
  --ink-2: #333847;
  --ink-soft: #4c5569;
  --line: rgb(25 35 70 / 10%);
  --line-strong: rgb(25 35 70 / 22%);
  --chip: rgb(25 35 70 / 7%);
  --mint: #15161a;
  --mint-2: #2d2f37;
  --lemon: #d98b2b;
  --lavender: #8d7fd6;
  --aqua: #4a70bd;
  --coral: #c44f4b;
  --on-color: #ffffff;
  --link: #3a62b3;
  --green: #23794b;
  --green-soft: rgb(35 121 75 / 12%);
  --amber: #b0521a;
  --amber-soft: rgb(217 139 43 / 16%);
  --red: #c44f4b;
  --a-radonett: #4f78d9;
  --a-unisafe: #d9627c;
  --a-lego: #c9861f;
  --tick: rgb(25 35 70 / 13%);
  --shadow-1: 0 2px 6px rgb(60 75 120 / 8%);
  --shadow-2: 0 10px 26px rgb(60 75 120 / 16%);
  --shadow-3: 0 22px 60px rgb(40 55 100 / 26%);
  --row: 60px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-move: cubic-bezier(0.45, 0, 0.2, 1);
}

.offer-page, .approve-page {
  --ground: #f4f1f8;
  --panel: #ffffff;
  --panel-2: #f4f1f8;
  --ink: #18161c;
  --ink-2: #3a3742;
  --ink-soft: #625e6c;
  --line: #e5e1ec;
  --line-strong: #cfcad8;
  --link: #2f6fd0;
  --green: #0f7a43;
  --shadow-2: 0 10px 30px rgb(40 24 80 / 10%);
}

* { box-sizing: border-box; }
html { font-family: "Urbanist", -apple-system, "Segoe UI", sans-serif; caret-color: var(--mint); color: var(--ink); background: var(--ground); -webkit-font-smoothing: antialiased; font-size: 15px; font-weight: 500; line-height: 1.4; }
.offer-page, .approve-page { background: var(--ground); }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--link); text-underline-offset: 3px; }
::selection { background: var(--lavender); color: var(--on-color); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
* { scrollbar-width: thin; scrollbar-color: var(--panel-3) transparent; }
::placeholder { color: var(--ink-soft); }
[hidden] { display: none !important; }
input[type="checkbox"] { accent-color: var(--mint); }

.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; display: block; }
[data-icon] { display: inline-flex; flex: none; }



.main { min-width: 0; padding: 12px 28px 56px 20px; }
.lost { margin-bottom: 14px; padding: 12px 18px; border-radius: 18px; background: var(--amber-soft); color: var(--amber); font-weight: 600; }
.page-title { min-width: 0; }

.link-btn { border: 0; background: transparent; padding: 0; color: var(--link); font-weight: 600; font-size: 14.5px; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }

.tag { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 10px; background: var(--chip); color: var(--ink-2); font-size: 13px; font-weight: 600; white-space: nowrap; }
.status { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 10px; font-size: 13.5px; font-weight: 600; white-space: nowrap; background: var(--chip); color: var(--ink-2); }
.status.ok { background: var(--aqua); color: #fff; }
.status.warn { background: var(--coral); color: #fff; }
.source { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; color: var(--ink-soft); font-weight: 500; }
.source .icon { width: 14px; height: 14px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--chip); color: var(--ink-2); font-size: 11.5px; font-weight: 700; display: grid; place-items: center; flex: none; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--ink-soft); }
.dot.radonett { background: var(--a-radonett); }
.dot.unisafe { background: var(--a-unisafe); }
.dot.lego { background: var(--a-lego); }
.dot.all { background: conic-gradient(var(--a-radonett) 0 33%, var(--a-unisafe) 33% 66%, var(--a-lego) 66%); }

.areas { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.areas button { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border: 0; border-radius: 15px; background: var(--panel); color: var(--ink-2); font-size: 15px; font-weight: 600; transition: background-color 140ms var(--ease), color 140ms var(--ease); }
.areas button:hover { background: var(--panel-2); }
.areas button[aria-pressed="true"] { background: var(--ink); color: var(--on-color); }
.areas small { font-size: 13.5px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.areas button[aria-pressed="true"] small { color: rgb(255 255 255 / 72%); }




.todo, .split, .record-deal { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 0; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; color: var(--ink); }
.todo:first-child, .split:first-child, .record-deal:first-child { border-top: 0; }
.todo:hover strong, .record-deal:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.todo-main { flex: 1; min-width: 0; }
.todo strong, .record-deal strong { display: block; font-size: 15.5px; font-weight: 600; }
.todo small { display: block; font-size: 14px; color: var(--ink-soft); }
.todo-next { font-size: 14.5px; color: var(--link); font-weight: 700; white-space: nowrap; }
.empty-line { padding: 16px 0; color: var(--ink-soft); }

.grid-wrap { background: var(--panel); box-shadow: var(--shadow-1); border-radius: 34px; overflow-x: auto; padding: 8px 10px; }
.grid { width: 100%; border-collapse: collapse; }
.grid th { text-align: left; font-size: 14px; font-weight: 500; color: var(--ink-soft); padding: 12px 14px; white-space: nowrap; }
.grid td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.grid tr[data-customer] { cursor: pointer; }
.grid tbody tr:hover td { background: rgb(255 255 255 / 55%); }
.grid .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.grid th.num { text-align: right; }
.grid .soft { color: var(--ink-soft); white-space: nowrap; }
.grid .mono { font-variant-numeric: tabular-nums; color: var(--ink-soft); white-space: nowrap; }
.cell-link { border: 0; background: transparent; padding: 0; font-weight: 600; font-size: 15.5px; text-align: left; }
.cell-link:hover { color: var(--mint); }
.cell-owner { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.table-note { margin-top: 12px; font-size: 14px; color: var(--ink-soft); }
.blank { padding: 56px 20px; text-align: center; color: var(--ink-soft); background: var(--panel); border-radius: 28px; }

.record { display: grid; grid-template-columns: 350px minmax(0, 1fr); gap: 16px; align-items: start; }
.record-main { display: grid; gap: 16px; min-width: 0; grid-column: 2; grid-row: 1; }
.record > .folder.yellow { grid-column: 1; grid-row: 1; }
.feed { list-style: none; margin: 0; padding: 8px 0 4px; display: grid; gap: 8px; }
.feed li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--panel-2); border-radius: 20px; }
.feed-dot { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--lavender); color: var(--on-color); }
.feed li:nth-child(even) .feed-dot { background: var(--aqua); }
.feed time { display: block; font-size: 13.5px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--line); }
.facts.single div:first-child { border-top: 0; }
.facts dt { font-size: 14.5px; color: var(--ink-soft); }
.facts dd { margin: 0; font-size: 15px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.facts.single, #case-product .facts { grid-template-columns: 1fr; }

.drawer { position: fixed; top: 12px; right: 12px; bottom: 12px; width: min(430px, calc(100vw - 24px)); background: #f5f7fc; border-radius: 30px; box-shadow: var(--shadow-3); z-index: 20; overflow-y: auto; padding: 18px 24px 26px; animation: drawer-in 380ms var(--ease); }
@keyframes drawer-in { from { transform: translateX(44px); opacity: 0; } }
.drawer-top { display: flex; justify-content: flex-end; margin-bottom: 4px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 14px; background: var(--chip); color: var(--ink-2); }
.icon-btn:hover { background: var(--panel-3); color: var(--ink); }
.drawer h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; text-wrap: balance; }
.drawer-customer { display: block; margin: 4px 0 16px; }
.stage-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; padding: 4px; margin-bottom: 14px; background: var(--panel-2); border-radius: 16px; }
.stage-pick button { height: 36px; padding: 0 2px; border: 0; border-radius: 12px; background: transparent; color: var(--ink-soft); font-size: 14px; font-weight: 600; transition: background-color 140ms var(--ease), color 140ms var(--ease); }
.stage-pick button:hover { color: var(--ink); }
.stage-pick button[aria-pressed="true"] { background: var(--mint); color: var(--on-color); }
.drawer .primary { width: 100%; margin-top: 16px; }
.drawer-note { margin-top: 12px; font-size: 14px; color: var(--ink-soft); }

.palette { width: min(620px, calc(100vw - 32px)); margin: 13vh auto auto; padding: 0; border: 0; border-radius: 26px; background: #f5f7fc; box-shadow: var(--shadow-3); color: var(--ink); overflow: hidden; }
.palette[open] { animation: palette-in 240ms var(--ease); }
@keyframes palette-in { from { opacity: 0; transform: translateY(-10px) scale(0.98); } }
.palette::backdrop { background: rgb(40 55 100 / 30%); backdrop-filter: blur(3px); }
.palette-input { display: flex; align-items: center; gap: 12px; padding: 0 20px; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.palette-input input { flex: 1; height: 62px; border: 0; outline: 0; font: inherit; font-size: 18px; color: var(--ink); background: transparent; }
.palette-input input::-webkit-search-cancel-button { display: none; }
.palette-list { max-height: 400px; overflow-y: auto; padding: 8px; }
.palette-list h3 { font-size: 13.5px; font-weight: 500; color: var(--ink-soft); padding: 10px 12px 4px; }
.palette-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 6px 12px; border: 0; border-radius: 14px; background: transparent; text-align: left; font-size: 15.5px; }
.palette-item .icon { color: var(--ink-soft); }
.palette-item small { margin-left: auto; font-size: 14px; color: var(--ink-soft); white-space: nowrap; }
.palette-item.active { background: var(--mint); color: var(--on-color); }
.palette-item.active .icon, .palette-item.active small { color: var(--on-color); }
.palette-none { padding: 30px 8px; text-align: center; color: var(--ink-soft); }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tabs button { position: relative; display: inline-flex; align-items: center; height: 42px; padding: 0 16px; border: 0; border-radius: 15px; background: var(--panel); color: var(--ink-2); font-size: 15px; font-weight: 600; white-space: nowrap; transition: background-color 140ms var(--ease); }
.tabs button:hover { background: var(--panel-2); }
.tabs button[aria-current="true"] { background: var(--ink); color: var(--on-color); }
.integration-bar { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 14px; }
.integration-bar:empty { display: none; }
.int-toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; }
.int-toggle input { width: 18px; height: 18px; flex: none; }
.int-toggle .state { font-weight: 500; color: var(--ink-soft); }
.int-toggle.off .state { color: var(--amber); }

.stage { display: grid; grid-template-columns: minmax(0, 1fr) 72px minmax(280px, 340px) 72px minmax(0, 1fr); align-items: stretch; height: clamp(440px, calc(100vh - 380px), 720px); }
.panel, .bridge { display: flex; flex-direction: column; min-height: 0; background: var(--panel); border-radius: 28px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 20px 10px; }
.panel-head h3 { font-size: 18px; font-weight: 600; }
.panel-head span { font-size: 14px; color: var(--ink-soft); }
.panel-body { flex: 1; min-height: 0; overflow-y: auto; padding: 0 20px 14px; }
.group { font-size: 14px; color: var(--ink-soft); padding: 12px 0 4px; }
.group:first-child { padding-top: 0; }
.row { display: flex; align-items: center; gap: 12px; min-height: var(--row); padding: 8px 0; border-top: 1px solid var(--line); border-radius: 4px; }
.row-main { flex: 1; min-width: 0; }
.row-main strong { display: block; font-weight: 600; overflow-wrap: anywhere; }
.row-main small { display: block; font-size: 14px; color: var(--ink-soft); }
.row .value { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.row.changed { animation: flash 2.4s var(--ease); }
@keyframes flash { 0% { background: rgb(125 245 166 / 28%); } 100% { background: transparent; } }
.seo { display: inline-flex; align-items: center; gap: 4px; }
.seo svg { width: 12px; height: 12px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; }
.pill { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 10px; font-size: 13px; font-weight: 600; white-space: nowrap; background: var(--chip); color: var(--ink-2); }
.pill.ok { background: var(--aqua); color: #fff; }
.pill.warn { background: var(--coral); color: #fff; }
.act { flex: none; border: 0; background: var(--mint); color: var(--on-color); border-radius: 13px; height: 38px; padding: 0 15px; font-size: 14.5px; font-weight: 600; transition: background-color 140ms var(--ease); }
.act:hover { background: var(--mint-2); }
.act.ghost { background: var(--chip); color: var(--ink); }
.act.ghost:hover { background: var(--panel-3); }
.steppers { display: flex; gap: 4px; flex: none; }
.steppers .act { padding: 0 9px; font-variant-numeric: tabular-nums; }
.check { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; cursor: pointer; }
.check input { width: 18px; height: 18px; flex: none; }
.empty { padding: 18px 0; color: var(--ink-soft); max-width: 42ch; }
.empty .act { margin-top: 10px; display: block; }
.gutter { position: relative; }
.wire { position: absolute; left: 0; right: 0; height: 1px; background: var(--line-strong); }
.wire span { position: absolute; left: 0; right: 0; bottom: 5px; font-size: 13px; text-align: center; color: var(--ink-soft); }
.wire::after { content: ""; position: absolute; top: -4px; width: 0; height: 0; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }
.wire.to-woo { top: 96px; }
.wire.to-woo::after { left: 0; border-right: 7px solid var(--line-strong); }
.wire.to-monitor { top: 146px; }
.wire.to-monitor::after { right: 0; border-left: 7px solid var(--line-strong); }
.bridge { padding-bottom: 12px; }
.link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-soft); }
.link::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--mint); }
.link.down::before { background: var(--amber); }
.link.error::before { background: var(--red); }
#bridge-action { padding: 0 20px; }
#bridge-action:empty { display: none; }
.approve { width: 100%; height: 46px; border: 0; background: var(--mint); color: var(--on-color); font-weight: 700; border-radius: 15px; margin-bottom: 10px; }
.approve:hover:not(:disabled) { background: var(--mint-2); }
.approve:disabled { background: var(--chip); color: var(--ink-soft); cursor: default; }
.counters { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; margin: 0; padding: 2px 20px 8px; }
.counters div { display: flex; justify-content: space-between; align-items: baseline; padding: 5px 0; border-top: 1px solid var(--line); }
.counters dt { font-size: 14px; color: var(--ink-soft); }
.counters dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.counters dd.alert { color: var(--amber); }
.promise { margin: 0 20px 8px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-soft); }
.promise strong { color: var(--ink); font-weight: 600; }
.bridge h4 { font-size: 14px; font-weight: 600; padding: 8px 20px 4px; border-top: 1px solid var(--line); }
.activity { flex: 1; min-height: 0; overflow-y: auto; list-style: none; margin: 0; padding: 0 20px; font-size: 14px; }
.activity li { padding: 7px 0; line-height: 1.35; animation: enter 400ms var(--ease); }
.activity li + li { border-top: 1px solid var(--line); }
.activity li.warn { color: var(--amber); }
.activity li.error { color: var(--red); }
.activity time { display: block; font-size: 13px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.activity .none { color: var(--ink-soft); animation: none; }
@keyframes enter { from { opacity: 0; transform: translateY(-6px); } }
.tests { margin-top: 16px; }
.tests h3 { font-size: 15.5px; font-weight: 600; margin-bottom: 8px; }
.test-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.test-row button { display: block; text-align: left; border: 0; background: var(--panel); border-radius: 22px; padding: 13px 16px; transition: background-color 140ms var(--ease); }
.test-row button:hover { background: var(--panel-2); }
.test-row button strong { display: block; font-weight: 600; }
.test-row button span { display: block; font-size: 14px; color: var(--ink-soft); line-height: 1.3; margin-top: 2px; }
.test-row button.on { background: var(--amber-soft); }
.test-row button.on strong { color: var(--amber); }
.tech { margin-top: 14px; font-size: 14px; color: var(--ink-soft); }
.tech summary { display: flex; align-items: center; gap: 4px; cursor: pointer; color: var(--link); width: fit-content; list-style: none; }
.tech summary::-webkit-details-marker { display: none; }
.tech summary .icon { width: 15px; height: 15px; transition: transform 180ms var(--ease); }
.tech[open] summary .icon { transform: rotate(90deg); }
.tech p { margin: 8px 0; max-width: 90ch; }
.tech-scroll { max-height: 220px; overflow: auto; background: var(--panel); border-radius: 16px; }
.tech table { border-collapse: collapse; width: 100%; font-family: Menlo, Consolas, monospace; font-size: 12px; }
.tech td { padding: 4px 10px; white-space: nowrap; border-top: 1px solid var(--line); }
.tech td.bad { color: var(--red); font-weight: 700; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 30; display: flex; align-items: center; gap: 16px; max-width: calc(100vw - 32px); padding: 8px 8px 8px 20px; background: var(--ink); color: #fff; border-radius: 20px; box-shadow: var(--shadow-3); font-weight: 600; animation: toast-in 420ms var(--ease); }
.toast .link-btn { height: 40px; padding: 0 16px; border-radius: 14px; background: #fff; color: var(--ink); white-space: nowrap; }
.toast .link-btn:hover { text-decoration: none; background: #e6eaf3; }
.toast :focus-visible { outline-color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(0.97); } }
.tokens { position: fixed; inset: 0; pointer-events: none; z-index: 10; }
.token { position: absolute; left: 0; top: 0; padding: 4px 11px; border-radius: 10px; background: var(--mint); color: var(--on-color); font-size: 13px; font-weight: 700; white-space: nowrap; box-shadow: var(--shadow-2); }

.overview { background: var(--panel); border-radius: 28px; padding: 6px 20px 14px; }
.ints { width: 100%; border-collapse: collapse; }
.ints th { text-align: left; font-size: 14px; font-weight: 500; color: var(--ink-soft); padding: 10px 12px 8px 0; white-space: nowrap; }
.ints td { padding: 12px 12px 12px 0; border-top: 1px solid var(--line); vertical-align: middle; font-size: 14.5px; }
.ints td:last-child { padding-right: 0; text-align: right; }
.int-name { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.int-name input { width: 18px; height: 18px; flex: none; }
.int-name strong { display: block; font-size: 15.5px; font-weight: 600; }
.int-name small { display: block; font-size: 14px; color: var(--ink-soft); max-width: 34ch; }
.ints tr.off .int-name strong, .ints tr.off .lane, .ints tr.off .muted-off { opacity: 0.45; }
.int-state { font-size: 13.5px; color: var(--amber); font-weight: 600; }
.int-runs { font-variant-numeric: tabular-nums; font-weight: 700; }
.int-runs small { display: block; font-weight: 500; font-size: 13.5px; color: var(--ink-soft); }
.lane { display: grid; grid-template-columns: 62px minmax(70px, 1fr) 62px; align-items: center; gap: 8px; min-width: 240px; font-size: 14px; font-weight: 600; }
.lane .end:first-child { text-align: right; }
.lane .line { position: relative; height: 1px; background: var(--line-strong); }
.lane .line::after { content: ""; position: absolute; top: -4px; width: 0; height: 0; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }
.lane.right .line::after { right: 0; border-left: 7px solid var(--line-strong); }
.lane.left .line::after { left: 0; border-right: 7px solid var(--line-strong); }
.lane .line i { position: absolute; top: -5px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--mint); opacity: 0; }
.lane.right.run .line i { animation: run-right 1100ms var(--ease-move); }
.lane.left.run .line i { animation: run-left 1100ms var(--ease-move); }
@keyframes run-right { 0% { left: 0; opacity: 0; } 12%, 85% { opacity: 1; } 100% { left: calc(100% - 11px); opacity: 0; } }
@keyframes run-left { 0% { left: calc(100% - 11px); opacity: 0; } 12%, 85% { opacity: 1; } 100% { left: 0; opacity: 0; } }
.shared { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 14.5px; color: var(--ink-soft); }
.shared strong { color: var(--ink); font-weight: 600; }
.row.rule { flex-wrap: wrap; }
.switch { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 200px; cursor: pointer; }
.switch input { width: 18px; height: 18px; flex: none; }
.switch.fixed { cursor: default; }
.link-act { text-decoration: none; display: inline-flex; align-items: center; }
.row-actions { display: flex; gap: 6px; flex: none; }
.row.request { flex-wrap: wrap; }
.signal { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-soft); }
.signal pre { margin: 6px 0; padding: 10px 12px; background: var(--panel-2); border-radius: 12px; font-family: Menlo, Consolas, monospace; font-size: 11.5px; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.when { font-weight: 700; color: var(--mint); white-space: nowrap; font-variant-numeric: tabular-nums; }

.inbox { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(330px, 1fr); gap: 14px; align-items: start; }
.inbox-main { min-width: 0; }
.inbox-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.inbox-filters button { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 16px; border: 0; border-radius: 15px; background: var(--panel); color: var(--ink-2); font-size: 15px; font-weight: 600; transition: background-color 140ms var(--ease); }
.inbox-filters button:hover { background: var(--panel-2); }
.inbox-filters button[aria-pressed="true"] { background: var(--ink); color: var(--on-color); }
.inbox-filters small { font-size: 13.5px; font-variant-numeric: tabular-nums; opacity: 0.75; }
.inbox-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ticket { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr); align-items: center; gap: 12px; padding-right: 14px; background: var(--panel); border-radius: 22px; transition: background-color 140ms var(--ease); }
.ticket:hover { background: var(--panel-2); }
.ticket.selected { background: var(--panel-3); }
.ticket.closed .ticket-open strong { color: var(--ink-soft); font-weight: 500; }
.ticket-open { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 10px; align-items: start; width: 100%; text-align: left; border: 0; background: transparent; padding: 13px 0 13px 16px; border-radius: 22px; }
.ticket-open strong { display: block; font-size: 16px; font-weight: 600; }
.ticket-open small { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 14px; color: var(--ink-soft); margin-top: 3px; }
.urgency { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; background: transparent; }
.urgency.high { background: var(--coral); }
.ticket-rec { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 0; text-align: right; }
.ticket-rec .act { white-space: normal; height: auto; min-height: 38px; padding-block: 5px; }
.rec-none { font-size: 14px; color: var(--ink-soft); }
.ticket-outcome { font-size: 14px; color: var(--mint); font-weight: 600; }
.ticket-outcome.waiting { color: var(--ink-2); }
.ticket-outcome.muted { color: var(--ink-soft); font-weight: 500; }
.ticket-error { font-size: 14px; color: var(--amber); font-weight: 600; }
.inbox-empty { padding: 34px; color: var(--ink-soft); background: var(--panel); border-radius: 22px; }
.inbox-detail .who { font-size: 14.5px; color: var(--ink-soft); margin-top: 3px; }
.inbox-detail .said { margin: 14px 0; line-height: 1.5; font-size: 15.5px; }
.inbox-detail h4 { font-size: 14px; color: var(--ink-soft); font-weight: 500; margin: 16px 0 0; }
.inbox-detail .advice { margin: 4px 0 12px; line-height: 1.4; }
.inbox-detail .detail-outcome { margin-top: 14px; padding: 11px 14px; background: var(--mint); color: var(--on-color); border-radius: 15px; font-weight: 600; }
.inbox-detail .detail-error { margin-top: 10px; color: var(--amber); font-weight: 600; }
.inbox-detail .alt { display: block; width: 100%; height: 46px; margin-top: 8px; border: 0; border-radius: 15px; background: var(--chip); font-weight: 600; transition: background-color 140ms var(--ease); }
.inbox-detail .alt:hover { background: var(--panel-3); }

.case-empty { display: grid; place-items: center; gap: 16px; min-height: 360px; padding: 32px; background: var(--panel); border-radius: 28px; align-content: center; color: var(--ink-soft); }
.case-loading { display: grid; place-items: center; align-content: center; gap: 16px; min-height: 380px; color: var(--ink-soft); text-align: center; }
.case-spinner { width: 40px; height: 40px; border: 3px solid var(--tick); border-top-color: var(--mint); border-radius: 50%; animation: spin 800ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.case-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.pipeline { display: flex; flex: 1; list-style: none; margin: 0; padding: 0; gap: 8px; font-size: 15px; font-weight: 600; }
.pipeline li { flex: 1; display: flex; align-items: center; height: 52px; padding: 0 22px; border-radius: 26px; background: var(--panel); color: var(--ink-soft); white-space: nowrap; }
.pipeline li.reached { background: var(--mint); color: var(--on-color); }
.pipeline li.stop { background: var(--coral); color: #fff; }
.quiet { display: inline-flex; align-items: center; flex: none; height: 52px; padding: 0 24px; border: 1px solid var(--line-strong); background: transparent; border-radius: 26px; font-weight: 600; }
.quiet:hover { background: var(--chip); }
.case-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(330px, 1.05fr); gap: 14px; align-items: start; }
.case-col { display: grid; gap: 14px; min-width: 0; }
.case-card { background: var(--panel); border-radius: 34px; padding: 22px 24px; box-shadow: var(--shadow-1); }
.case-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.case-who { font-size: 20px; font-weight: 600; }
.case-who small { display: block; font-size: 14.5px; font-weight: 500; color: var(--ink-soft); margin-top: 1px; }
.case-message { margin-top: 12px; line-height: 1.45; font-size: 16px; }
.case-signals { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 5px; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); line-height: 1.3; }
.checks li:first-child { border-top: 0; }
.checks strong { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink-soft); }
.mark { flex: none; width: 22px; height: 22px; margin-top: 1px; }
.mark circle { fill: var(--chip); }
.mark path { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mark.ok circle { fill: var(--mint); }
.mark.ok path { stroke: var(--on-color); }
.mark.ask circle { fill: var(--lemon); }
.mark.ask path { stroke: #fff; }
.mark.tip circle { fill: var(--aqua); }
.mark.tip path { stroke: var(--on-color); }
.product-top { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center; margin-bottom: 14px; }
.product-top img { width: 112px; height: 132px; object-fit: contain; padding: 8px; background: #fff; border-radius: 24px; }
.product-top h3 { font-size: 30px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 4px; }
.product-top p { font-size: 14.5px; color: var(--ink-soft); margin-top: 2px; line-height: 1.3; }
.monitor-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.monitor-strip div { display: flex; flex-direction: column; justify-content: space-between; gap: 2px; padding: 10px 12px; background: var(--panel-2); border-radius: 16px; }
.monitor-strip div:nth-child(2) { background: var(--mint); color: var(--on-color); }
.monitor-strip span { display: block; font-size: 13px; color: var(--ink-soft); line-height: 1.2; }
.monitor-strip div:nth-child(2) span { color: rgb(255 255 255 / 75%); }
.monitor-strip strong { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
#case-product .facts div:first-child { border-top: 0; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { padding: 8px 0; border-top: 1px solid var(--line); line-height: 1.3; }
.timeline li:first-child { border-top: 0; }
.timeline time { display: block; font-size: 13.5px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.timeline li.done { color: var(--mint); font-weight: 600; }
.timeline li.warn { color: var(--amber); }
.case-steps { background: var(--panel); box-shadow: var(--shadow-1); border-radius: 34px; padding: 18px 16px 16px; position: sticky; top: 16px; }
.case-steps h3 { font-size: 19px; font-weight: 700; padding-inline: 6px; }
.case-steps > p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 12px; padding-inline: 6px; }
.inbox-detail { padding: 22px; }
.inbox-detail h3, .inbox-detail > p { padding: 0; }
.step { display: block; width: 100%; text-align: left; border: 0; background: var(--panel-3); border-radius: 20px; padding: 13px 16px; margin-top: 8px; transition: background-color 140ms var(--ease), transform 200ms var(--ease); }
.step:hover:not(:disabled) { background: var(--panel-3); transform: translateY(-1px); }
.step strong { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; }
.step small { display: block; font-size: 14px; color: var(--ink-soft); line-height: 1.3; margin-top: 3px; }
.step.primary { display: block; height: auto; padding: 13px 16px; font-weight: 500; background: var(--mint); color: var(--on-color); white-space: normal; }
.step.primary:hover:not(:disabled) { background: var(--mint-2); }
.step.primary small { color: rgb(255 255 255 / 75%); }
.step:disabled { cursor: default; }
.step .state { font-size: 13.5px; font-weight: 600; color: var(--mint); white-space: nowrap; }
.step.primary .state { color: var(--on-color); }
.step .tag { background: rgb(255 255 255 / 18%); color: var(--on-color); }
.offer-sent { background: var(--panel-2); border-radius: 18px; padding: 12px 16px; margin: 4px 0; }
.offer-sent strong { display: block; font-weight: 600; font-size: 16px; }
.offer-sent a { display: inline-block; margin-top: 6px; }
.composer { display: grid; gap: 12px; padding-inline: 6px; }
.composer .back { display: inline-flex; align-items: center; gap: 3px; justify-self: start; border: 0; background: transparent; color: var(--ink-soft); padding: 0 6px 0 0; font-size: 14.5px; }
.composer .back:hover { color: var(--ink); }
.composer .back .icon { width: 16px; height: 16px; }
.composer label.pick { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.composer label.pick input { width: 18px; height: 18px; flex: none; }
.composer textarea { width: 100%; min-height: 150px; resize: vertical; border: 0; border-radius: 18px; padding: 12px 14px; font: inherit; line-height: 1.4; color: var(--ink); background: var(--panel-2); }
.composer textarea:focus { outline: 2px solid var(--mint); outline-offset: 0; }
.doc-row { display: flex; align-items: center; gap: 10px; }
.doc-row input { width: 18px; height: 18px; flex: none; }
.doc-row label { cursor: pointer; }
.doc-open { flex: none; display: grid; place-items: center; padding: 0; border: 0; background: transparent; border-radius: 6px; transition: transform 220ms var(--ease); }
.doc-open:hover { transform: translateY(-2px) scale(1.08); }
.pdf-icon { display: block; width: 24px; height: 30px; }
.pdf-page { fill: #e2231a; }
.video-page { fill: #4a70bd; }
.video-fold { fill: #a9bde6; }
.video-play-mark { fill: #fff; }
.doc-preview.is-video { width: min(860px, calc(100vw - 24px)); height: fit-content; }
.video-stage { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; background: radial-gradient(circle at 50% 42%, #3a4562 0, #15161a 72%); }
.video-stage img { position: absolute; left: 0; top: 10%; width: 100%; height: 80%; object-fit: contain; }
.video-play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 76px; height: 76px; margin: -38px 0 0 -38px; padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / 92%); color: var(--ink); box-shadow: var(--shadow-3); transition: opacity 200ms var(--ease), transform 220ms var(--ease); }
.video-play:hover { transform: scale(1.06); }
.video-play .icon { width: 28px; height: 28px; fill: currentColor; }
.playing .video-play { opacity: 0; }
.video-stage:hover .video-play, .video-play:focus-visible { opacity: 1; }
.video-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgb(255 255 255 / 22%); }
.video-progress i { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(0); animation: video-run 90s linear forwards paused; }
.playing .video-progress i { animation-play-state: running; }
@keyframes video-run { to { transform: scaleX(1); } }
.pdf-fold { fill: #f4928c; }
.pdf-icon text { fill: #fff; font-size: 12px; font-weight: 800; letter-spacing: 0.02em; }
.doc-preview { width: min(620px, calc(100vw - 24px)); height: min(90vh, 1000px); margin: auto; padding: 0; border: 0; border-radius: 30px; background: #f5f7fc; color: var(--ink); box-shadow: var(--shadow-3); overflow: hidden; }
.doc-preview[open] { animation: palette-in 260ms var(--ease); }
.doc-preview::backdrop { background: rgb(30 40 75 / 45%); backdrop-filter: blur(6px); }
.doc-preview-body { display: flex; flex-direction: column; height: 100%; }
.doc-bar { flex: none; display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 20px; }
.doc-title { flex: 1; min-width: 0; line-height: 1.25; }
.doc-title strong { display: block; font-weight: 700; overflow-wrap: anywhere; }
.doc-title small { display: block; font-size: 13.5px; color: var(--ink-soft); }
.doc-pages { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-content: start; padding: 22px; background: #d6dde9; }
.doc-sheet { display: flex; flex-direction: column; width: 100%; min-width: 0; aspect-ratio: 1 / 1.414; padding: 36px 40px 26px; background: #fff; color: #15161a; font-size: 14px; box-shadow: 0 6px 22px rgb(40 55 100 / 22%); }
.doc-brand { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 10px; margin-bottom: 20px; border-bottom: 2px solid #15161a; }
.doc-brand strong { font-size: 18px; font-weight: 800; }
.doc-brand span { color: #5a6172; }
.doc-sheet h3 { font-size: 34px; font-weight: 700; letter-spacing: -0.015em; }
.doc-sheet h4 { margin-top: 24px; font-size: 16px; font-weight: 700; }
.doc-sheet p { margin-top: 4px; color: #3b4150; line-height: 1.4; }
.doc-sheet img { align-self: center; height: 190px; margin: 14px 0; object-fit: contain; }
.doc-sheet table { width: 100%; border-collapse: collapse; }
.doc-sheet th, .doc-sheet td { padding: 7px 0; border-top: 1px solid #e3e6ec; font-weight: 500; text-align: left; }
.doc-sheet th { color: #5a6172; }
.doc-sheet td { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.doc-line { display: block; height: 8px; margin-top: 9px; border-radius: 4px; background: #e6e9ef; }
.doc-foot { margin-top: auto; padding-top: 16px; color: #5a6172; font-size: 12.5px; }
.field { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stepper { display: inline-flex; align-items: center; gap: 3px; }
.stepper button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 12px; background: var(--chip); }
.stepper button:hover { background: var(--panel-3); }
.stepper button .icon { width: 15px; height: 15px; }
.stepper output { min-width: 52px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.sum { display: grid; gap: 3px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink-2); }
.sum div { display: flex; justify-content: space-between; gap: 10px; font-variant-numeric: tabular-nums; }
.sum .internal { padding-bottom: 6px; margin-bottom: 3px; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.sum .subtotal { padding-top: 6px; margin-top: 3px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.sum .total { font-size: 22px; font-weight: 700; color: var(--ink); }
.delivery-note { font-size: 14px; color: var(--ink-soft); }
.delivery-note.long { color: var(--amber); font-weight: 600; }
.send { height: 52px; padding: 0 18px; border: 0; border-radius: 18px; background: var(--mint); color: var(--on-color); font-size: 16px; font-weight: 700; transition: background-color 140ms var(--ease); }
.send:hover:not(:disabled) { background: var(--mint-2); }
.send:disabled { background: var(--chip); color: var(--ink-soft); cursor: default; }
.slots { display: grid; gap: 6px; }
.slots button { height: 46px; border: 0; border-radius: 15px; background: var(--chip); font-weight: 600; }
.slots button:hover { background: var(--panel-3); }
.slots button[aria-pressed="true"] { background: var(--mint); color: var(--on-color); }
.simulated { font-size: 13.5px; color: var(--ink-soft); }

.fresh .reveal { animation: reveal 620ms var(--ease) both; animation-delay: calc(var(--d, 0ms) - var(--shift, 0ms)); }
.fresh #case-steps { animation: reveal 620ms var(--ease) both; }
#case-product, #case-timeline, #case-steps { --shift: 450ms; }
@keyframes reveal { from { opacity: 0; transform: translateY(12px); } }

.offer-page { padding: 32px 16px; min-height: 100vh; }
.offer { width: min(720px, 100%); margin-inline: auto; background: var(--panel); border-radius: 28px; padding: 32px; box-shadow: var(--shadow-2); }
.offer h1 { font-size: 34px; font-weight: 400; letter-spacing: -0.01em; }
.offer-to { color: var(--ink-soft); margin-top: 2px; }
.offer-note { margin-top: 16px; padding: 12px 16px; background: var(--panel-2); border-radius: 16px; }
.offer-product { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; align-items: center; margin-top: 18px; }
.offer-product img { width: 130px; height: 150px; object-fit: contain; }
.offer-product h2 { font-size: 22px; font-weight: 500; }
.offer-product p { color: var(--ink-soft); }
.offer-product dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin: 8px 0 0; font-size: 14px; }
.offer-product dl div { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-top: 1px solid var(--line); }
.offer-product dt { color: var(--ink-soft); }
.offer-product dd { margin: 0; font-weight: 600; text-align: right; }
.offer-lines { width: 100%; border-collapse: collapse; margin-top: 18px; font-variant-numeric: tabular-nums; }
.offer-lines th { text-align: right; font-size: 13.5px; font-weight: 500; color: var(--ink-soft); padding: 4px 0 6px 10px; }
.offer-lines td { text-align: right; padding: 8px 0 8px 10px; border-top: 1px solid var(--line); }
.offer-lines th:first-child, .offer-lines td:first-child { text-align: left; padding-left: 0; }
.offer-lines .total td { font-size: 20px; font-weight: 600; }
.offer-terms { margin-top: 12px; color: var(--ink-soft); }
.offer-docs { margin: 10px 0 0; padding: 0; list-style: none; }
.offer-docs li { padding: 3px 0; }
.approve-page { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.approve-card { width: min(440px, 100%); background: var(--panel); border-radius: 28px; padding: 28px; box-shadow: var(--shadow-2); }
.approve-from { font-size: 14px; color: var(--ink-soft); margin-top: 2px; }
.approve-card h1 { font-size: 26px; font-weight: 500; line-height: 1.2; text-wrap: balance; }
.approve-card #detail { margin-top: 8px; font-size: 16px; }
.approve-choices { display: grid; gap: 8px; margin-top: 20px; }
.approve-choices[hidden] { display: none; }
.approve-yes, .approve-no { min-height: 52px; border-radius: 26px; font-size: 16px; font-weight: 700; }
.approve-yes { border: 0; background: var(--mint); color: var(--on-color); }
.approve-yes:hover:not(:disabled) { background: var(--mint-2); }
.approve-no { border: 1px solid var(--line-strong); background: transparent; }
.approve-no:hover:not(:disabled) { background: var(--panel-2); }
.approve-yes:disabled, .approve-no:disabled { opacity: 0.55; cursor: default; }
.approve-result { margin-top: 16px; font-weight: 700; color: var(--green); }

body { margin: 0; min-height: 100vh; background: radial-gradient(1200px 800px at 12% -10%, #f3f5fa 0, transparent 60%), radial-gradient(1200px 900px at 100% 110%, #bcc9e3 0, transparent 62%), #dfe5f0; background-attachment: fixed; }
.offer-page, .approve-page { background: var(--ground); }

.app { display: grid; grid-template-columns: 92px minmax(0, 1fr); grid-template-rows: auto 1fr; min-height: 100vh; }
.topbar { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 22px 32px 10px 34px; }
.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; border: 0; background: transparent; padding: 0; font-size: 25px; font-weight: 700; letter-spacing: -0.015em; }
.logo-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; background: var(--ink); color: #fff; font-size: 21px; font-weight: 800; transition: transform 260ms var(--ease); }
.logo:hover .logo-mark { transform: rotate(-8deg); }
.main-nav { display: flex; gap: 4px; }
.main-nav button { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 56px; padding: 0 24px; border: 0; border-radius: 28px; background: transparent; color: var(--ink-2); font-size: 16.5px; font-weight: 600; transition: background-color 180ms var(--ease), color 180ms var(--ease); }
.main-nav button:hover { background: var(--panel); }
.main-nav button[aria-current="true"] { background: var(--ink); color: #fff; }
.nav-ico { display: none; }
.badge { min-width: 21px; height: 21px; padding: 0 6px; border-radius: 11px; background: var(--coral); color: #fff; font-size: 12.5px; font-weight: 700; line-height: 21px; text-align: center; font-variant-numeric: tabular-nums; }
.tabs .badge { margin-left: 7px; }
.main-nav button[aria-current="true"] .badge { background: #fff; color: var(--ink); }
.top-right { display: flex; align-items: center; gap: 10px; flex: none; }
.demo-chip { color: var(--ink-soft); font-size: 14px; white-space: nowrap; margin-right: 6px; }
.round { position: relative; display: grid; place-items: center; width: 54px; height: 54px; padding: 0; border: 0; border-radius: 50%; background: var(--panel-2); color: var(--ink); box-shadow: var(--shadow-1); transition: background-color 180ms var(--ease), transform 220ms var(--ease); }
.round:hover { background: #fff; transform: translateY(-1px); }
.round[aria-current="true"] { background: var(--ink); color: #fff; }
.hint { position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%) translateX(-4px); padding: 6px 12px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 120ms var(--ease), transform 200ms var(--ease); z-index: 12; }
.top-right .hint { left: auto; right: 0; top: calc(100% + 8px); transform: translateY(-4px); }
.round:hover .hint, .round:focus-visible .hint { opacity: 1; transform: translateY(-50%); }
.top-right .round:hover .hint, .top-right .round:focus-visible .hint { transform: none; }
.me { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--aqua); color: #fff; font-weight: 700; font-size: 17px; box-shadow: var(--shadow-1); }

.rail { position: sticky; top: 12px; align-self: start; display: flex; flex-direction: column; justify-content: space-between; height: calc(100vh - 118px); padding: 14px 0 12px 32px; }
.rail-group, .rail .nav, .crumbs { display: grid; gap: 12px; }
.crumbs:empty { display: none; }

.main { min-width: 0; padding: 8px 32px 56px 26px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 18px; }
.page-title { min-width: 0; }
.title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.title-row h1 { font-size: 46px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
.title-chip { display: flex; flex-wrap: wrap; gap: 6px; }
.title-chip:empty { display: none; }
.chip-solid { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 16px; background: var(--panel-3); font-size: 14px; font-weight: 600; white-space: nowrap; }
.page-head p { color: var(--ink-soft); max-width: 75ch; font-size: 16px; margin-top: 4px; }
.page-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 14px; flex: none; }
.stats { display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 34px; background: var(--panel); box-shadow: var(--shadow-1); }
.stat { padding: 7px 20px; border: 0; background: transparent; border-radius: 28px; text-align: left; line-height: 1.15; }
.stat strong { display: block; font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat span { display: block; font-size: 13.5px; color: var(--ink-soft); white-space: nowrap; }
.stat-btn { transition: background-color 180ms var(--ease); }
.stat-btn strong { color: var(--coral); }
.stat-btn:hover { background: #fff; }
.stat-btn[aria-pressed="true"] { background: var(--coral); }
.stat-btn[aria-pressed="true"] strong, .stat-btn[aria-pressed="true"] span { color: #fff; }

.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 56px; padding: 0 28px; border-radius: 28px; font-size: 16px; font-weight: 600; white-space: nowrap; text-decoration: none; transition: background-color 180ms var(--ease), transform 220ms var(--ease); }
.primary { border: 0; background: var(--ink); color: #fff; }
.primary:hover { background: var(--mint-2); transform: translateY(-1px); }
.secondary { border: 1px solid var(--line-strong); background: transparent; color: var(--ink); }
.secondary:hover { background: var(--panel); }

.journey { padding: 26px 28px 22px; border-radius: 46px; background: var(--panel); box-shadow: var(--shadow-1); }
.journey-head { display: flex; align-items: center; gap: 24px; margin-bottom: 20px; }
.journey-head h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.012em; white-space: nowrap; }
.journey-note { margin-left: auto; max-width: 42ch; color: var(--ink-soft); font-size: 14px; line-height: 1.3; text-align: right; }
.owner-tray { display: flex; gap: 6px; padding: 7px 12px 7px; border-radius: 34px; background: var(--panel); }
.owner { position: relative; padding: 0 0 8px; border: 0; background: transparent; transition: transform 220ms var(--ease); }
.owner:hover { transform: translateY(-2px); }
.owner-face { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--panel-3); font-size: 15px; font-weight: 700; box-shadow: var(--shadow-1); transition: background-color 180ms var(--ease), color 180ms var(--ease); }
.owner[aria-pressed="true"] .owner-face { background: var(--ink); color: #fff; }
.owner-count { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); min-width: 21px; height: 21px; padding: 0 5px; border-radius: 11px; background: var(--aqua); color: #fff; font-size: 12px; font-weight: 700; line-height: 21px; text-align: center; font-variant-numeric: tabular-nums; }
.owner-count.stuck { background: var(--coral); }

.board-wrap { position: relative; }
.board-links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.board-links path { fill: none; stroke: var(--a-radonett); stroke-width: 1.5; }
.board-links circle { fill: var(--a-radonett); stroke: #fff; stroke-width: 1.5; }
.board-links path.stuck { stroke: var(--coral); stroke-dasharray: 5 4; }
.board-links circle.stuck { fill: var(--coral); }
.board { display: grid; grid-template-columns: repeat(4, minmax(230px, 1fr)); gap: 34px; align-items: stretch; }
.col { display: flex; flex-direction: column; min-width: 0; }
.col-body { flex: 1; padding: 12px; background: var(--panel-2); border-radius: 36px; transition: background-color 180ms var(--ease), box-shadow 180ms var(--ease); }
.col.over .col-body { background: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
.col-label { margin: 12px 0 0; text-align: center; font-size: 17px; font-weight: 600; }
.col-label small { display: block; font-size: 14px; font-weight: 500; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.col-empty { padding: 32px 8px; text-align: center; color: var(--ink-soft); }
.deal { display: block; padding: 14px 16px; margin-bottom: 8px; background-color: var(--panel-3); border-radius: 26px; cursor: pointer; box-shadow: var(--shadow-1); transition: transform 240ms var(--ease), box-shadow 240ms var(--ease), opacity 180ms var(--ease); }
.deal:last-child { margin-bottom: 0; }
.deal[draggable="true"] { cursor: grab; }
.deal:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.deal.dragging { opacity: 0.4; }
.deal.scored { background-image: linear-gradient(118deg, transparent 44%, color-mix(in srgb, var(--score-color) 20%, transparent) 100%); }
.deal.arrive { animation: arrive 1500ms var(--ease); }
@keyframes arrive { 0% { background-color: var(--ink); transform: translateY(-14px) scale(0.97); opacity: 0; } 35% { transform: none; opacity: 1; } 100% { background-color: var(--panel-3); } }
.deal-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.deal-top strong { font-size: 16px; font-weight: 700; line-height: 1.25; min-width: 0; overflow-wrap: anywhere; }
.deal > small { display: block; font-size: 14px; color: var(--ink-soft); line-height: 1.3; margin-top: 2px; }
.deal-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 8px; margin-top: 11px; }
.deal-value { font-size: 16.5px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.deal-tags { display: flex; align-items: center; gap: 6px; min-width: 0; margin-left: auto; }
.deal-stall { display: flex; align-items: center; gap: 4px; white-space: nowrap; font-size: 13.5px; font-weight: 700; color: var(--coral); }
.deal-stall .icon { width: 15px; height: 15px; }
.deal-score { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 11px; }
.score { display: inline-flex; align-items: center; gap: 9px; }
.score-ticks { display: inline-flex; gap: 3px; }
.score-ticks i { width: 3px; height: 16px; border-radius: 1.5px; background: var(--tick); }
.score-value { padding: 0 7px; border: 1px solid var(--line-strong); border-radius: 9px; background: rgb(255 255 255 / 60%); color: var(--ink); font-size: 13px; font-weight: 600; line-height: 20px; font-variant-numeric: tabular-nums; }

.home-lower { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: 14px; margin-top: 14px; align-items: stretch; }
.folder { padding: 22px 28px 16px; background: var(--panel); border-radius: 40px; box-shadow: var(--shadow-1); }
.folder-tab { margin: 0 0 10px; font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.folder-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.folder-body { color: var(--ink); }
.split { display: block; width: 100%; padding: 11px 12px; border: 0; border-radius: 18px; background: transparent; text-align: left; color: var(--ink); transition: background-color 180ms var(--ease); }
.split:hover { background: var(--panel); }
.split[aria-pressed="true"] { background: var(--panel-3); }
.split-top { display: flex; align-items: center; gap: 8px; }
.split-top strong { font-weight: 600; }
.split-top span:last-child { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.donut-wrap { display: flex; align-items: center; gap: 18px; }
.donut { position: relative; flex: none; width: 176px; height: 176px; }
.donut svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 26; stroke: var(--ink-soft); transition: stroke-dasharray 620ms var(--ease), stroke-dashoffset 620ms var(--ease); }
.donut circle.radonett { stroke: var(--a-radonett); }
.donut circle.unisafe { stroke: var(--a-unisafe); }
.donut circle.lego { stroke: var(--a-lego); }
.donut-total { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.1; }
.donut-total strong { font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; }
.donut-total span { font-size: 13px; color: var(--ink-soft); }
.donut-legend { flex: 1; min-width: 0; }
.record-facts { padding: 0; }

.mail-card { margin-bottom: 14px; padding: 16px 18px; border-radius: 22px; background: var(--panel-3); box-shadow: var(--shadow-1); }
.mail-card dl { display: grid; gap: 2px; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 14px; }
.mail-card dl div { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 8px; }
.mail-card dt { color: var(--ink-soft); }
.mail-card dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.mail-card p { line-height: 1.5; white-space: pre-wrap; }
.actions-title { margin: 16px 0 2px; font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.inbox-detail .step { margin-top: 8px; }
.ai-reading { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.mini-spinner { width: 16px; height: 16px; flex: none; border: 2px solid var(--tick); border-top-color: var(--ink); border-radius: 50%; animation: spin 800ms linear infinite; }
.ticket-open strong .icon { display: inline-block; width: 16px; height: 16px; margin: 0 6px -2px 0; color: var(--ink-soft); }
.ai-box { display: grid; gap: 8px; margin: 4px 0 14px; padding: 14px 16px; border-radius: 20px; background: var(--panel-3); box-shadow: var(--shadow-1); }
.ai-box:has(> .mini-spinner) { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-weight: 600; }
.ai-box h4 { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; color: var(--ink); font-weight: 700; }
.ai-box h4 .icon { width: 16px; height: 16px; color: var(--lavender); }
.ai-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.ai-missing { font-size: 14px; color: var(--ink-soft); }
.ai-missing strong { color: var(--ink); font-weight: 600; }
.ai-reply { margin-top: 12px; }
.ai-reply summary { display: flex; align-items: center; gap: 4px; cursor: pointer; list-style: none; font-weight: 600; }
.ai-reply summary::-webkit-details-marker { display: none; }
.ai-reply summary .icon { width: 15px; height: 15px; transition: transform 180ms var(--ease); }
.ai-reply[open] summary .icon { transform: rotate(90deg); }
.ai-reply p { margin-top: 8px; padding: 12px 14px; border-radius: 16px; background: var(--panel-3); white-space: pre-wrap; line-height: 1.45; }
.mailbox { margin-bottom: 14px; padding: 22px 26px; border-radius: 34px; background: var(--panel); box-shadow: var(--shadow-1); }
.mailbox h2 { font-size: 20px; font-weight: 700; }
.mailbox-status { margin: 2px 0 12px; color: var(--ink-soft); }
.mail-test { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mail-test input, .mail-test textarea { width: 100%; padding: 12px 14px; border: 0; border-radius: 16px; background: var(--panel-3); font: inherit; color: var(--ink); }
.mail-test textarea { grid-column: 1 / -1; min-height: 110px; resize: vertical; }
.mail-test input:focus, .mail-test textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; }
.mail-test .primary { grid-column: 1 / -1; justify-self: start; }
.login { display: grid; gap: 12px; }
.login input { padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 16px; font: inherit; }
.login-error { color: var(--red); font-weight: 600; }

@media (max-width: 1420px) {
  .journey-note { display: none; }
  .demo-chip { display: none; }
  .main-nav button { padding: 0 18px; }
  .title-row h1 { font-size: 38px; }
  .stat { padding: 7px 14px; }
}

@media (max-width: 1320px) {
  .case-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .case-grid > .case-steps { grid-column: 1 / -1; position: static; }
  .board { gap: 22px; }
  .journey { padding: 20px 18px; border-radius: 38px; }
  .page-head { flex-wrap: wrap; }
}

@media (max-width: 1100px) {
  .stage { grid-template-columns: 1fr; height: auto; gap: 12px; }
  .gutter { display: none; }
  .panel-body { max-height: 420px; }
  .activity { max-height: 240px; }
  .test-row { grid-template-columns: 1fr 1fr; }
  .ints thead { display: none; }
  .ints, .ints tbody, .ints tr, .ints td { display: block; width: 100%; }
  .ints tr { padding: 12px 0; border-top: 1px solid var(--line); }
  .ints tr:first-child { border-top: 0; }
  .ints td, .ints td:last-child { border: 0; padding: 4px 0; text-align: left; }
  .lane { min-width: 0; }
  .shared { flex-direction: column; align-items: flex-start; }
  .inbox { grid-template-columns: 1fr; }
  .inbox-detail { position: static; }
  .home-lower, .record { grid-template-columns: 1fr; }
  .record-main, .record > .folder.yellow { grid-column: auto; grid-row: auto; }
  .board-wrap { overflow-x: auto; margin-inline: -18px; padding-inline: 18px; scroll-snap-type: x proximity; scroll-padding-left: 18px; }
  .board { grid-template-columns: repeat(4, 276px); gap: 12px; width: max-content; }
  .col { scroll-snap-align: start; }
}

@media (max-width: 860px) {
  .app { display: flex; flex-direction: column; padding-bottom: 92px; }
  .topbar { padding: 14px 16px 6px; }
  .logo { font-size: 21px; }
  .logo-mark { width: 34px; height: 34px; border-radius: 11px; font-size: 18px; }
  .round, .me { width: 46px; height: 46px; }
  .main-nav { position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 15; display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; padding: 6px; background: #fff; border-radius: 34px; box-shadow: var(--shadow-3); }
  .main-nav button { flex-direction: column; justify-content: center; gap: 2px; height: 60px; padding: 0; border-radius: 28px; font-size: 11.5px; }
  .nav-ico { display: inline-flex; }
  .main-nav .badge { position: absolute; top: 3px; right: calc(50% - 24px); min-width: 18px; height: 18px; padding: 0 4px; line-height: 18px; font-size: 11px; }
  .rail { position: static; order: 4; flex-direction: row; justify-content: center; gap: 12px; height: auto; padding: 0 16px 16px; }
  .rail-group, .rail .nav, .crumbs { display: flex; gap: 12px; }
  .hint { display: none; }
  .main { order: 3; width: 100%; padding: 8px 16px 18px; }
  .toast { left: 16px; right: 16px; bottom: 104px; justify-content: space-between; }
  .page-head { flex-direction: column; align-items: stretch; gap: 14px; }
  .title-row h1 { font-size: 34px; }
  .page-actions { justify-content: stretch; }
  .page-actions .primary, .page-actions .secondary { flex: 1 1 100%; }
  .stats { display: grid; grid-template-columns: 1fr 1fr; flex: 1 1 100%; border-radius: 28px; }
  .journey { padding: 18px 16px; border-radius: 34px; }
  .journey-head { flex-wrap: wrap; gap: 12px; }
  .board-wrap { margin-inline: -16px; padding-inline: 16px; scroll-padding-left: 16px; }
  .folder { padding: 18px 18px 12px; border-radius: 32px; }
  .donut-wrap { flex-direction: column; align-items: stretch; }
  .donut { align-self: center; }
  .ticket { grid-template-columns: 1fr; gap: 0; padding: 0 14px 12px 0; }
  .ticket-rec { justify-content: flex-start; text-align: left; padding-left: 34px; }
  .case-grid { grid-template-columns: 1fr; }
  .case-head { flex-direction: column; align-items: stretch; }
  .pipeline { flex-wrap: wrap; }
  .pipeline li { flex: 1 1 calc(50% - 4px); height: 48px; padding: 0 16px; }
  .quiet { justify-content: center; height: 48px; }
  .opt { display: none; }
  .todo { flex-wrap: wrap; gap: 4px 10px; }
  .todo-main { flex: 1 1 60%; }
  .todo-next { flex: 1 1 100%; white-space: normal; }
  .doc-pages { padding: 12px; }
  .doc-sheet { padding: 26px 24px 20px; }
  .doc-sheet h3 { font-size: 26px; }
  .doc-sheet img { height: 150px; }
  .grid-wrap { overflow: visible; padding: 4px; }
  .grid, .grid tbody { display: block; }
  .grid thead { display: none; }
  .grid tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; padding: 12px 14px; border-top: 1px solid var(--line); }
  .grid tbody tr:first-child { border-top: 0; }
  .grid td, .grid tbody tr:hover td { display: block; padding: 0; border: 0; background: none; }
  .grid td.opt { display: none; }
  #customers td:nth-child(1), #products td:nth-child(1), #quotes td:nth-child(2) { grid-area: 1 / 1; }
  #customers td:nth-child(5), #products td:nth-child(4), #quotes td:nth-child(5) { grid-area: 1 / 2; }
  #customers td:nth-child(2) { grid-area: 2 / 1 / 2 / 3; }
  #products td:nth-child(2), #quotes td:nth-child(1) { grid-area: 2 / 1; }
  #products td:nth-child(5), #quotes td:nth-child(8) { grid-area: 2 / 2; justify-self: end; }
}


@media (max-width: 620px) {
  .offer { padding: 20px; }
  .offer-product { grid-template-columns: 1fr; }
  .offer-product img { justify-self: center; }
  .monitor-strip { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .test-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 1ms !important; animation-delay: 0ms !important; transition: none !important; }
  .case-spinner { animation-duration: 800ms !important; }
}
