@font-face {
  font-family: "Manrope";
  src: url("/static/fonts/manrope.woff2?v=2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/static/fonts/jetbrains-mono.woff2?v=2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Unbounded";
  src: url("/static/fonts/unbounded-cyrillic.woff2?v=2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0493, U+049A-049B, U+04B0-04B3, U+2116;
}
@font-face {
  font-family: "Unbounded";
  src: url("/static/fonts/unbounded-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #e7eaf2;
  --spot-product: rgba(47, 102, 196, 0.15);
  --spot-warm: rgba(217, 164, 65, 0.12);
  --paper-wash:
    radial-gradient(760px 440px at 100% 0%, var(--spot-product), transparent 72%),
    radial-gradient(620px 420px at 0% 100%, var(--spot-warm), transparent 70%),
    linear-gradient(155deg, #f0f2f8 0%, #e4e8f1 52%, #eaedf4 100%);
  --panel: #ffffff;
  --surface-soft: #f8f7fb;
  --field: #fafbfe;
  --ink: #191a24;
  --ink-2: #4d4e60;
  --muted: #5f6074;
  --quiet: #707186;
  --line: #e4e8f1;
  --line-card: #e9edf5;
  --line-soft: #f0f3f8;
  --line-field: #d8deea;
  --line-paper: #d3d9e7;
  --line-strong: #aeb7cb;
  --graphite: #1b1c26;
  --graphite-ink: #ffffff;
  --accent: #234a9c;
  --accent-dark: #1a3878;
  --accent-soft: #eaf0fb;
  --accent-lift: #4f78c9;
  --brand: linear-gradient(90deg, #ef788c, #c979ee 34%, #7b7bf4 66%, #74bcd6);
  --brand-strong: linear-gradient(90deg, #c8456a, #8b43c9 36%, #4a46d6 68%, #2f7f96);
  --brand-soft: linear-gradient(135deg, #2f66c4, #1c3f8f);
  --grad-id2: linear-gradient(110deg, #7d4fe6 0%, #4f58d8 48%, #234a9c 100%);
  --grad-neuro: linear-gradient(105deg, #8f6df0 0%, #6a5bdc 50%, #3f78e0 100%);
  --grad-ink: linear-gradient(105deg, #c96aa6 0%, #8a5fe4 14%, #5f5bdc 46%, #4f58d8 70%, #2f7fc0 100%);
  --grad-soft: radial-gradient(70% 130% at 0% 0%, rgba(239, 120, 140, 0.17), rgba(239, 120, 140, 0) 60%), linear-gradient(115deg, rgba(182, 169, 248, 0.2) 0%, rgba(109, 103, 200, 0.13) 60%, rgba(116, 188, 214, 0.2) 100%);
  --primary: var(--accent);
  --primary-dark: var(--accent-dark);
  --primary-soft: var(--accent-soft);
  --primary-ink: #ffffff;
  --warn: #7b4304;
  --warn-soft: #fdf7ec;
  --warn-line: #e3c99a;
  --error: #9b1c1c;
  --error-soft: #fceeee;
  --ok: #1b6037;
  --ok-soft: #e6f3ea;
  --fs-xs: 12px;
  --fs-s: 13.5px;
  --fs-m: 15px;
  --fs-l: 17px;
  --fs-xl: 20px;
  --fs-2xl: 26px;
  --fs-3xl: 36px;
  --fs-hello: var(--fs-3xl);
  --fs-total: var(--fs-3xl);
  --fs-hero: var(--fs-2xl);
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 16px;
  --r-xl: 20px;
  --r-pill: 999px;
  --ctl: 40px;
  --seg-item: 32px;
  --w-page: 920px;
  --w-read: 760px;
  --w-chat: 900px;
  --gutter: var(--sp-5);
  --soft: #f5f7fb;
  --graphite-hover: #2b2c39;
  --radius: var(--r-xl);
  --radius-card: var(--r-l);
  --radius-control: var(--r-m);
  --radius-small: var(--r-s);
  --shadow: 0 1px 2px rgba(25, 26, 36, 0.05), 0 14px 34px -22px rgba(25, 26, 36, 0.32);
  --shadow-scene: 0 1px 2px rgba(25, 26, 36, 0.05), 0 34px 64px -36px rgba(24, 36, 72, 0.45);
  --font: "Manrope", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-brand: "Unbounded", "Manrope", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, "Liberation Mono", monospace;
  --deep: #3a3b4d;
  --deep-ink: #e9edf5;
  --deep-muted: #b6b3c9;
  --scroll-thumb: #c9d0df;
  --scroll-thumb-hover: #aeb7cb;
  --chat-glow: radial-gradient(48% 46% at 50% 50%, rgba(47, 102, 196, 0.2) 0%, rgba(217, 164, 65, 0.12) 40%, rgba(255, 255, 255, 0) 72%);
  --control-height: var(--ctl);
  --topbar: 72px;
  --ease: 0.15s ease;
  --mo-settle: linear(0, 0.037, 0.127, 0.244, 0.377, 0.511, 0.635, 0.742, 0.836, 0.911, 0.968, 1.01, 1.037, 1.054, 1.062, 1.063, 1.06, 1.054, 1.046, 1.037, 1.029, 1.021, 1.015, 1.009, 1.005, 1.001, 0.999, 0.997, 0.996, 0.996, 0.996, 0.996, 0.997, 0.997, 0.998, 0.998, 0.999, 0.999, 0.999, 1, 1);
  --mo-settle-d: 675ms;
  --mo-pop: linear(0, 0.108, 0.363, 0.671, 0.955, 1.165, 1.28, 1.306, 1.262, 1.178, 1.083, 0.999, 0.94, 0.91, 0.907, 0.923, 0.95, 0.979, 1.004, 1.021, 1.028, 1.028, 1.022, 1.014, 1.005, 0.998, 0.993, 0.991, 0.992, 0.994, 0.996, 0.999, 1.001, 1.002, 1.003, 1.002, 1.002, 1.001, 1, 1, 1);
  --mo-pop-d: 861ms;
  --mo-soft: linear(0, 0.024, 0.08, 0.162, 0.256, 0.352, 0.451, 0.545, 0.629, 0.707, 0.774, 0.833, 0.882, 0.921, 0.953, 0.978, 0.997, 1.01, 1.02, 1.025, 1.028, 1.029, 1.029, 1.027, 1.025, 1.022, 1.019, 1.016, 1.014, 1.011, 1.009, 1.007, 1.005, 1.004, 1.002, 1.001, 1.001, 1, 1, 0.999, 1);
  --mo-soft-d: 553ms;
  --mo-fade: linear(0, 0.026, 0.086, 0.171, 0.268, 0.37, 0.465, 0.558, 0.643, 0.719, 0.781, 0.837, 0.882, 0.918, 0.948, 0.971, 0.988, 1, 1.009, 1.014, 1.017, 1.019, 1.019, 1.018, 1.017, 1.015, 1.013, 1.011, 1.009, 1.008, 1.006, 1.005, 1.004, 1.003, 1.002, 1.001, 1.001, 1, 1, 1, 1);
  --mo-fade-d: 455ms;
  --mo-calm: linear(0, 0.039, 0.127, 0.237, 0.348, 0.453, 0.547, 0.629, 0.701, 0.759, 0.807, 0.846, 0.878, 0.904, 0.925, 0.941, 0.954, 0.964, 0.972, 0.978, 0.983, 0.987, 0.99, 0.992, 0.994, 0.995, 0.996, 0.997, 0.998, 0.998, 1);
  --mo-calm-d: 510ms;
}

* { box-sizing: border-box; scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background-color: var(--scroll-thumb); border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--scroll-thumb-hover); }
::-webkit-scrollbar-corner { background: transparent; }
::selection { background: var(--accent); color: #ffffff; }

html {
  background: var(--paper);
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 500 var(--fs-m)/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  accent-color: var(--accent);
}

h1 { margin: 0 0 var(--sp-3); font-weight: 600; font-size: var(--fs-2xl); line-height: 1.2; letter-spacing: -0.01em; }
h2 { margin: 0 0 var(--sp-3); font-size: var(--fs-xl); line-height: 1.3; font-weight: 700; }
h3 { margin: 0 0 var(--sp-2); font-size: var(--fs-l); line-height: 1.4; font-weight: 700; }
p { margin: 0 0 var(--sp-3); }
a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
  text-underline-offset: 3px;
  transition: color var(--ease), text-decoration-color var(--ease);
}
a:hover { color: var(--accent-dark); text-decoration-color: currentColor; }
code { padding: 2px var(--sp-2); font-family: var(--font-mono); font-size: max(var(--fs-xs), 0.9em); background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--radius-small); }
hr { height: 1px; margin: var(--sp-5) 0; border: 0; background: var(--line); }
b, strong { font-weight: 700; }
small { font-size: max(var(--fs-xs), 0.875em); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -9999px; }
.preview-bar {
  position: fixed;
  top: 28px;
  left: 50%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  height: 32px;
  margin: 0;
  padding: 0 var(--sp-2) 0 var(--sp-4);
  transform: translateX(-50%);
  border-radius: var(--r-pill);
  box-shadow: 0 10px 30px -12px rgba(24, 36, 72, 0.55);
  white-space: nowrap;
  background: var(--accent);
  color: #fff;
  font-size: var(--fs-xs);
}
.preview-bar button {
  padding: 0 var(--sp-2);
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 10;
  padding: var(--sp-3) var(--sp-4);
  background: var(--panel);
  border: 2px solid var(--accent);
  border-radius: var(--radius-small);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.muted, .hint, .placeholder { color: var(--muted); }
.hint { font-size: var(--fs-m); }
.spacer { flex: 1; }
.error {
  padding: var(--sp-3) var(--sp-4);
  color: var(--error);
  background: var(--error-soft);
  border: 1px solid color-mix(in srgb, var(--error) 30%, transparent);
  border-radius: var(--radius-control);
}
.notice { padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-control); background: var(--accent-soft); color: var(--ink); }
.locked-note {
  padding: var(--sp-4) var(--sp-4);
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-control);
}

button, .button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: var(--control-height);
  padding: 0 var(--sp-5);
  font: inherit;
  font-size: var(--fs-m);
  font-weight: 700;
  line-height: 1.2;
  color: var(--graphite-ink);
  text-decoration: none;
  background: var(--graphite);
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease), color var(--ease), filter var(--ease);
}
:where(button:hover) { filter: brightness(1.28); color: var(--graphite-ink); }
button:disabled { background: var(--line); border-color: var(--line); color: var(--muted); cursor: not-allowed; filter: none; }
button.secondary, .button-link {
  color: var(--ink);
  background: var(--panel);
  border-color: var(--line-strong);
  filter: none;
}
button.secondary:hover, .button-link:hover { color: var(--accent-dark); background: var(--panel); border-color: var(--accent); filter: none; }
.link-button {
  min-height: 32px;
  padding: 0 var(--sp-1);
  border: 0;
  border-radius: var(--radius-small);
  background: none;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
  cursor: pointer;
  transition: color var(--ease), text-decoration-color var(--ease);
}
.link-button:hover, .link-button:focus-visible { background: none; color: var(--accent-dark); text-decoration-color: currentColor; }
.muted-link { color: var(--muted); font-weight: 500; }
.close {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 var(--sp-3);
  font-size: var(--fs-s);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--panel);
  transition: border-color var(--ease), color var(--ease);
}
.close:hover { color: var(--accent); border-color: var(--accent); }

input[type="text"], input[type="date"], input[type="month"], select, textarea {
  width: 100%;
  min-height: var(--control-height);
  padding: var(--sp-2) var(--sp-3);
  font: inherit;
  font-size: var(--fs-m);
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--line-field);
  border-radius: var(--radius-control);
  transition: border-color var(--ease), box-shadow var(--ease);
}
input[type="text"]:hover, input[type="date"]:hover, select:hover, textarea:hover { border-color: var(--line-strong); }
input[type="text"]:focus, input[type="date"]:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); }
input[aria-invalid="true"]:focus, textarea[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px var(--error-soft); }
select {
  appearance: none;
  padding-right: var(--sp-7);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
textarea { resize: vertical; line-height: 1.5; }
input[type="file"] { width: 100%; padding: var(--sp-2) 0; font: inherit; color: var(--ink); }
input[type="file"]::file-selector-button {
  margin-right: var(--sp-3);
  min-height: 40px;
  padding: 0 var(--sp-4);
  font: inherit;
  font-size: var(--fs-m);
  font-weight: 700;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  cursor: pointer;
}
input[type="file"]:hover::file-selector-button { border-color: var(--accent); color: var(--accent); }
input[type="file"][aria-invalid="true"]::file-selector-button { border-color: var(--error); }
::placeholder { color: var(--muted); opacity: 1; }
label { display: block; margin-bottom: var(--sp-2); font-weight: 600; }
legend { padding: 0; font-weight: 600; }
.field { margin-bottom: var(--sp-5); }
.field label { font-size: var(--fs-s); font-weight: 600; }
.field .hint { margin: -2px 0 var(--sp-2); font-size: var(--fs-s); }
.tip {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  min-height: 0;
  padding: 0;
  margin-left: var(--sp-2);
  font-size: var(--fs-s);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 50%;
  vertical-align: middle;
  cursor: pointer;
  transition: color var(--ease), background-color var(--ease);
}
.tip:hover, .tip:focus-visible, .tip[aria-expanded="true"] { color: var(--panel); background: var(--accent); }
.tip-text {
  margin: var(--sp-2) 0 var(--sp-3);
  padding: var(--sp-3) var(--sp-3);
  font-size: var(--fs-m);
  line-height: 1.5;
  color: var(--ink);
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
}
.tip-text p { margin: 0; }
.tip-text p + p { margin-top: var(--sp-2); color: var(--muted); }
.field-pair { display: flex; flex-wrap: wrap; gap: 0 var(--sp-4); }
.field-pair > .field { flex: 1 1 200px; display: flex; flex-direction: column; }
.field-pair > .field .hint { flex: 1 1 auto; }
.field .file-note, .field .attached { margin: var(--sp-2) 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

.depth { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: 0; padding: 0; border: 0; }
.depth legend { margin-bottom: var(--sp-2); }
.depth-option {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 40px;
  padding: 0 var(--sp-4) 0 var(--sp-3);
  margin: 0;
  font-size: var(--fs-s);
  font-weight: 600;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  cursor: pointer;
  transition: border-color var(--ease), background-color var(--ease), color var(--ease);
}
.depth-option:hover { border-color: var(--accent); }
.depth-option:has(input:checked) { color: var(--accent-dark); background: var(--accent-soft); border-color: var(--accent); }
.depth-option:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.depth-option input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }

.think {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 40px;
  padding: 0 var(--sp-4);
  margin: 0;
  font-size: var(--fs-s);
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  cursor: pointer;
  transition: background-color var(--ease), border-color var(--ease), color var(--ease);
}
.think input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.think-icon { flex: none; stroke: var(--muted); }
.think:hover { color: var(--ink); }
.think:hover .think-icon { stroke: var(--ink); }
.think:has(input:checked) {
  color: var(--accent-dark);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  border-color: color-mix(in srgb, var(--accent) 22%, transparent);
}
.think:has(input:checked) .think-icon { stroke: url(#think-gradient); }
.think:has(input:checked) .think-text {
  background: linear-gradient(100deg, var(--accent), var(--accent-lift));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.think:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.think-tip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  z-index: 20;
  width: max-content;
  max-width: 280px;
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-s);
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--ease), visibility var(--ease);
}
.think:hover .think-tip, .think:has(input:focus-visible) .think-tip { opacity: 1; visibility: visible; }

.attach { position: relative; display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin: 0; }
.attach-tip {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  z-index: 20;
  width: max-content;
  max-width: 280px;
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-s);
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--ease), visibility var(--ease);
}
.attach:hover .attach-tip, .attach:has(input:focus-visible) .attach-tip { opacity: 1; visibility: visible; }
.attach input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.attach-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--control-height);
  height: var(--control-height);
  margin: 0;
  padding: 0;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  cursor: pointer;
  transition: border-color var(--ease), color var(--ease);
}
.attach-button:hover { color: var(--accent); border-color: var(--accent); }
.attach:has(input:focus-visible) .attach-button { outline: 3px solid var(--accent); outline-offset: 2px; }
.attach-name { font-size: var(--fs-s); font-weight: 600; color: var(--accent-dark); }
.attach-clear {
  min-height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: var(--fs-s);
  text-decoration: underline dotted;
  cursor: pointer;
}
.attach-clear:hover { background: transparent; color: var(--accent); }

body {
  background-color: var(--paper);
  background-image: var(--paper-wash);
  background-attachment: fixed;
}
@media print {
  body { background-image: none; }
}
.topbar {
  display: flex;
  gap: var(--sp-4);
  align-items: center;
  flex-wrap: wrap;
  min-height: 72px;
  padding: var(--sp-4) var(--sp-5);
  background: transparent;
  position: relative;
}
:root {
  --orb-base: #b6a9f8;
  --orb-rose: #ef788c;
  --orb-lilac: #c979ee;
  --orb-sky: #74bcd6;
  --orb-deep: #6d67c8;
  --orb-pink: #eb7fc6;
  --orb-halo: color-mix(in srgb, #7b7bf4, transparent 86%);
}
.orb-mini {
  --orb-mini-s: 22px;
  position: relative;
  display: inline-block;
  flex: none;
  width: var(--orb-mini-s);
  height: var(--orb-mini-s);
}
.orb-mini::before {
  content: "";
  position: absolute;
  inset: -12.5%;
  background: url("mark.svg") center / contain no-repeat;
}
.orb-mini-large { --orb-mini-s: 34px; }
.doc-head .orb-mini { --orb-mini-s: 16px; margin-right: 2px; }
.doc-face { --ring: transparent; position: relative; flex: none; display: grid; place-items: center; width: 28px; height: 28px; margin: 0 8px 0 5px; }
.doc-face::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 2px solid var(--ring);
  border-radius: 50%;
  transition: border-color 0.3s ease;
  pointer-events: none;
}
.doc-face .orb { --orb-s: 40px; position: absolute; margin: 0; background: none; animation-duration: 1s, 3s; }
.doc-face .orb-mini { --orb-mini-s: 28px; margin-right: 0; }
.doc-face.is-ok { --ring: #5aa872; }
.doc-face.is-doubt { --ring: #ff9f0a; }
.doc-face.is-fail { --ring: var(--error); }
.chat-window:has(.doc-busy) .doc-face.is-ok { --ring: transparent; }
.doc-head:has(.doc-busy) .doc-face { --ring: var(--accent); }
.doc-head[data-phase="search"] .doc-face, .doc-head[data-phase="select"] .doc-face { --ring: #5ac8fa; }
.doc-head[data-phase="claims"] .doc-face, .doc-head[data-phase="verify"] .doc-face { --ring: #007aff; }
.doc-head[data-phase="calc"] .doc-face { --ring: #ff9f0a; }
.doc-head[data-phase="build"] .doc-face { --ring: #5aa872; }
.doc-body > * { min-width: 0; }
.doc-body .doc-skeleton { gap: 8px; max-width: 520px; margin-top: 14px; }
.doc-body .doc-skeleton i { height: 9px; background: var(--surface-soft); animation: none; }
.doc-word { display: inline-block; opacity: 0; translate: 0 0.4em; filter: blur(4px); transition: opacity 0.28s ease, filter 0.28s ease, translate var(--mo-fade-d) var(--mo-fade); }
.doc-word.is-on { opacity: 1; translate: 0 0; filter: blur(0); }
.chat-window .doc-arrive > .doc-head, .chat-window .doc-arrive > .doc-body > *, .chat-window .doc-arrive > .doc-proof, .chat-window .doc-arrive > .doc-foot { animation-name: doc-rise; animation-duration: 0.2s; }
.chat-window .doc-arrive.doc-typing > .doc-body > :not(.doc-typed), .chat-window .doc-arrive.doc-typing > .doc-proof, .chat-window .doc-arrive.doc-typing > .doc-foot { animation-play-state: paused; }
@keyframes doc-rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes orb-mini-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}
.topbar .brand-form { margin: 0; }
.topbar .brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: 0;
  padding: 0;
  font-family: inherit;
  font-weight: 700;
  font-size: var(--fs-xl);
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  background: none;
  border: 0;
  border-radius: var(--radius-small);
  cursor: pointer;
}
.topbar button.brand:hover { color: var(--accent-dark); background: none; filter: none; }
.topbar .product { color: var(--muted); }
.topbar .segment, .rail .segment, .strip-pop .segment { display: inline-flex; border: 1px solid var(--line-strong); background: var(--panel); }
.rail .segment { display: flex; width: 100%; }
.rail .segment-item { flex: 1 1 0; justify-content: center; padding: 0 var(--sp-3); }
.topbar .segment-item, .rail .segment-item, .strip-pop .segment-item {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 var(--sp-4);
  color: var(--muted);
  font-weight: 500;
  font-size: var(--fs-m);
  text-decoration: none;
  transition: color var(--ease), background-color var(--ease);
}
.topbar .segment-item:hover, .topbar .segment-item:focus-visible,
.rail .segment-item:hover, .rail .segment-item:focus-visible,
.strip-pop .segment-item:hover, .strip-pop .segment-item:focus-visible { color: var(--ink); background: var(--accent-soft); }
.topbar .segment-active, .topbar .segment-active:hover,
.rail .segment-active, .rail .segment-active:hover,
.strip-pop .segment-active, .strip-pop .segment-active:hover {
  background: var(--brand-soft);
  color: var(--primary-ink);
  font-weight: 600;
}
.rail .segment-item::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: transparent; }
.rail .segment { gap: 3px; padding: 3px; border: 1px solid var(--line-field); border-radius: var(--r-m); background: rgba(255, 255, 255, 0.55); }
.rail .segment .segment-item { gap: var(--sp-2); height: 34px; min-height: 34px; padding: 0 var(--sp-3); border-radius: var(--r-s); color: #5a5b6e; font-size: var(--fs-s); font-weight: 500; background: transparent; }
.rail .segment a.segment-item:hover, .rail .segment a.segment-item:focus-visible { color: var(--ink); background: rgba(255, 255, 255, 0.6); }
.rail .segment-item:has(.seg-logo)::before { content: none; }
.seg-logo { flex: none; display: block; width: 18px; height: 18px; overflow: hidden; border-radius: 4px; }
.seg-logo img { display: block; width: auto; max-width: none; height: 18px; object-fit: cover; object-position: left center; }
.seg-logo-kd { width: 21px; height: 24px; margin: -3px 0; }
.seg-logo-kd img { height: 24px; }
.rail .segment .segment-locked { border: 0; background: transparent; cursor: pointer; color: var(--quiet); }
.rail .segment .segment-locked .seg-logo { filter: grayscale(1); opacity: 0.55; }
.rail .segment .segment-locked:hover .seg-logo, .rail .segment .segment-locked:focus-visible .seg-logo { filter: none; opacity: 1; }
.gate-logo { display: grid; place-items: center; height: 48px; }
.gate-logo img { display: block; height: 40px; width: auto; }
.rail .segment .segment-item.segment-active, .rail .segment .segment-item.segment-active:hover { background: var(--panel); color: var(--ink); font-weight: 600; }
.rail .segment .segment-active::before { background: var(--accent); }
.topbar .units-meter { position: relative; display: inline-flex; align-items: center; font-size: var(--fs-s); color: var(--muted); white-space: nowrap; }
.topbar .units-open {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-2);
  color: inherit;
  text-decoration: none;
  border-radius: var(--radius-small);
  transition: background-color var(--ease), color var(--ease);
}
.topbar .units-open:hover, .topbar .units-open:focus-visible { background: var(--surface-soft); color: var(--ink); }
.topbar .units-bar { display: inline-block; width: 90px; height: 6px; border-radius: 3px; background: var(--line-soft); overflow: hidden; }
.topbar .units-fill { display: block; height: 100%; background: var(--fill); transition: width 0.3s ease, background-color 0.3s ease; }
.topbar .units-text { font-weight: 600; }
.units-tip {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  width: max-content;
  max-width: 300px;
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-s);
  font-weight: 500;
  line-height: 1.4;
  white-space: normal;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--ease), visibility var(--ease);
}
.units-meter:hover .units-tip, .units-meter:has(.units-open:focus-visible) .units-tip { opacity: 1; visibility: visible; }
.topbar .topbar-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: 44px;
  padding: 0 var(--sp-3);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--radius-small);
  transition: background-color var(--ease);
}
.topbar .topbar-link:hover, .topbar .topbar-link:focus-visible { background: var(--accent-soft); }
.topbar-form { margin: 0; }
.avatar {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: var(--fs-s);
}
.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.profile-menu { position: relative; }
.profile-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  max-width: 100%;
  min-height: 44px;
  padding: 0 var(--sp-3) 0 var(--sp-2);
  font-size: var(--fs-m);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--radius-small);
  transition: background-color var(--ease);
}
.profile-link:hover, .profile-link:focus-visible, .profile-menu:hover .profile-link, .profile-menu.open .profile-link { background: var(--accent-soft); color: var(--ink); }
.profile-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-panel {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 20;
  display: none;
  min-width: 240px;
  margin: 0;
  padding: var(--sp-2);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  box-shadow: var(--shadow);
}
.profile-menu:hover .profile-panel, .profile-menu:focus-within .profile-panel, .profile-menu.open .profile-panel { display: grid; }
.profile-panel::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 10px; }
.chats-panel-item {
  display: block;
  width: 100%;
  min-height: 0;
  padding: var(--sp-2) var(--sp-3);
  border: 0;
  border-radius: var(--radius-small);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-s);
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--ease), color var(--ease);
}
.chats-panel-item:hover, .chats-panel-item:focus-visible { background: var(--accent-soft); color: var(--accent-dark); }
.profile-who { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 0; }
.profile-product { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-xs); font-weight: 500; color: var(--ink-2); }
.profile-chevron { flex: none; margin-left: auto; color: var(--ink-2); }
.profile-panel { gap: var(--sp-3); width: 300px; padding: var(--sp-4) var(--sp-4) var(--sp-3); border-color: var(--line-card); border-radius: var(--r-l); box-shadow: 0 2px 6px rgba(25, 26, 36, 0.07), 0 34px 70px -40px rgba(24, 36, 72, 0.55); }
.pm-head { display: flex; align-items: center; gap: var(--sp-3); }
.pm-avatar { width: 38px; height: 38px; font-size: var(--fs-m); font-weight: 700; }
.pm-who { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pm-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-s); font-weight: 600; }
.pm-product { font-size: var(--fs-xs); color: var(--muted); }
.pm-label { font-family: var(--font); font-size: var(--fs-xs); font-weight: 500; color: var(--quiet); }
.pm-company { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-3); border-radius: var(--r-m); background: var(--surface-soft); color: var(--ink); text-decoration: none; }
.pm-company svg { flex: none; color: var(--ink-2); }
.profile-panel { grid-template-columns: minmax(0, 1fr); }
.profile-panel > * { min-width: 0; }
.pm-company-body { display: flex; flex: 1 1 auto; flex-direction: column; gap: 1px; min-width: 0; }
.pm-change { flex: none; }
.pm-name, .pm-product { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-who { min-width: 0; }
.pm-company-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-s); font-weight: 600; }
.pm-change { margin-left: auto; flex: none; font-size: var(--fs-xs); font-weight: 600; color: var(--accent-dark); }
.pm-units { display: flex; flex-direction: column; gap: var(--sp-2); padding: 0 2px; }
.pm-units-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-2); }
.pm-units-text { font-family: var(--font); font-size: var(--fs-xs); font-weight: 600; font-variant-numeric: tabular-nums; }
.pm-bar { display: block; height: 4px; border-radius: 2px; background: var(--line-card); overflow: hidden; }
.pm-bar-fill { display: block; height: 100%; border-radius: 2px; background: var(--grad-neuro); transition: width 0.3s ease; }
.pm-items { display: flex; flex-direction: column; gap: 1px; }
.pm-item { display: flex; align-items: center; gap: var(--sp-3); height: 38px; padding: 0 var(--sp-3); border-radius: var(--r-m); font-size: var(--fs-s); font-weight: 500; color: var(--ink); text-decoration: none; }
.pm-item svg { flex: none; color: var(--ink-2); }
.pm-item:hover, .pm-item:focus-visible { background: #eff3fa; color: var(--ink); }
.pm-bottom { padding-top: var(--sp-2); border-top: 1px solid var(--line-soft); }
.pm-support { flex: 1 1 auto; }
.pm-phone { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.pm-bottom .topbar-form { margin: 0; }
.pm-exit { width: 100%; min-height: 0; border: 0; background: none; font-family: inherit; cursor: pointer; }
.rail-profile {
  position: relative;
  z-index: 8;
  margin: 0;
  padding: 0;
  background: transparent;
  border-top: 0;
}
.rail-profile::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 14px;
  background: transparent;
}

.rail-profile .profile-link { width: 100%; min-height: 0; padding: var(--sp-2) var(--sp-2); background: transparent; border-radius: var(--r-m); box-shadow: none; }
.rail-profile .profile-link:hover, .rail-profile .profile-link:focus-visible, .rail-profile .profile-menu:hover .profile-link, .rail-profile .profile-menu.open .profile-link { background: var(--panel); box-shadow: 0 1px 2px rgba(25, 26, 36, 0.06); }
.rail-profile .profile-name { font-size: var(--fs-s); }
.rail-profile .avatar { width: 32px; height: 32px; }
.rail-profile .profile-panel { position: fixed; top: auto; right: auto; }
.rail-profile .profile-panel::before { top: 100%; bottom: auto; height: 12px; }
.rail-profile:has(.profile-menu:hover), .rail-profile:has(.profile-menu.open), .rail-profile:focus-within { z-index: 40; }
.shell-main.profile-hot .rail-grip { pointer-events: none; }
.topbar #panelcontainer:empty { display: none; }
@media (min-width: 1100px) {
  .catalog-page .cards { grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); gap: var(--sp-4); }
  .cards > .card-main { grid-column: span 2; }
  .cards > .card-main .card-name { font-size: var(--fs-2xl); }
  .cards > .card-main .card-summary { font-size: var(--fs-m); max-width: 42ch; }
  .cards > .card-main .card-watermark { width: 38%; right: 16px; }
}

.shell {
  --rail-w: 290px;
  --strip-w: 64px;
  --stage-w: 860px;
  --left-w: var(--rail-w);
  position: relative;
  display: grid;
  gap: var(--sp-5);
  padding: var(--sp-5);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
.shell .side-column { display: grid; gap: var(--sp-4); align-content: start; }
.shell .rail {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  align-self: stretch;
  padding: var(--sp-5) var(--sp-4) var(--sp-5) var(--sp-5);
  background: transparent;
  border: 0;
}
.shell:not(.shell-working) .rail { min-height: calc(100vh - 40px); }
.rail-grip {
  display: none;
  position: absolute;
  top: 0;
  bottom: 0;
  width: 11px;
  margin-left: calc(-1 * var(--sp-1));
  z-index: 25;
  padding: 0;
  background: none;
  border: 0;
  cursor: col-resize;
  touch-action: none;
}
.rail-grip::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 4px;
  width: 3px;
  border-radius: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity var(--ease);
}
.rail-grip:hover::before, .rail-grip:focus-visible::before, .shell-sizing .rail-grip::before { opacity: 1; }
.rail-grip:focus-visible { outline: none; }
.shell-sizing { user-select: none; cursor: col-resize; }
.rail-head { display: flex; align-items: center; gap: var(--sp-3); }
.rail-head .brand-form { margin: 0; }
.rail-head .brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: 0;
  padding: 0;
  background: none;
  border: 0;
  color: var(--ink);
  font: 500 var(--fs-l) var(--font-brand);
  letter-spacing: -0.02em;
  text-decoration: none;
  cursor: pointer;
}
.rail-head button.brand:hover, .rail-head .brand:hover { background: none; color: var(--accent-dark); filter: none; }
.rail-fold {
  display: none;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  min-height: 0;
  padding: 0;
  color: var(--ink-2);
  background: none;
  border: 0;
  border-radius: var(--radius-small);
  cursor: pointer;
  transition: color var(--ease), background-color var(--ease);
}
.rail-fold svg { flex: none; width: 18px; height: 18px; }
.rail-fold:hover, .rail-fold:focus-visible { color: var(--accent-dark); background: var(--surface-soft); }
.rail-label {
  margin: 0;
  padding: 0 var(--sp-2) 2px;
  font-family: var(--font);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.rail-count { margin-left: auto; font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500; color: var(--ink-2); }
.rail-units {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: 0 var(--sp-2);
  color: var(--ink);
  text-decoration: none;
}
.rail-units-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-2); }
.rail-units .rail-label { padding: 0; }
.rail-units-text { font-family: var(--font); font-size: var(--fs-xs); font-weight: 600; font-variant-numeric: tabular-nums; }
.rail-units .units-bar { display: block; width: 100%; height: 4px; border-radius: 2px; background: var(--line-paper); overflow: hidden; }
.rail-units .units-fill { display: block; height: 100%; border-radius: 2px; background: var(--grad-neuro); transition: width 0.3s ease; }
.rail-strip {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-5) 0 var(--sp-5);
  background: transparent;
  border: 0;
}
.side-strip { border-right: 0; border-left: 1px solid var(--line); }
.strip-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  min-height: 0;
  padding: 0;
  color: #3f4052;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line-field);
  border-radius: var(--r-m);
  cursor: pointer;
  text-decoration: none;
  transition: color var(--ease), background-color var(--ease), border-color var(--ease);
}
.strip-button:hover, .strip-button:focus-visible { color: var(--accent-dark); background: var(--panel); border-color: var(--accent); filter: none; }
.strip-button[aria-expanded="true"] { color: var(--accent-dark); background: var(--accent-soft); }
.strip-button.strip-plain { color: #5a5b6e; background: transparent; border-color: transparent; }
.strip-button.strip-plain:hover, .strip-button.strip-plain:focus-visible { background: rgba(255, 255, 255, 0.62); border-color: var(--line-field); }
.strip-button.strip-small { width: 34px; height: 34px; border-radius: var(--r-s); }
.strip-button.strip-dark { color: var(--graphite-ink); background: var(--graphite); border-color: var(--graphite); }
.strip-button.strip-dark:hover, .strip-button.strip-dark:focus-visible { color: var(--graphite-ink); background: var(--graphite); border-color: var(--graphite); opacity: 0.88; }
.strip-button.is-active { color: var(--accent); background: var(--panel); border-color: #c5d3ec; box-shadow: 0 1px 2px rgba(25, 26, 36, 0.06); }
.strip-avatar { width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; }
.strip-avatar:hover, .strip-avatar:focus-visible { background: transparent; border-color: transparent; }
.strip-limits-dot { position: absolute; right: 5px; top: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.strip-orb { display: flex; align-items: center; justify-content: center; width: 27px; height: 27px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.strip-orb:hover, .strip-orb:focus-visible { background: none; filter: none; }
.strip-orb:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.strip-orb .orb-mini { --orb-mini-s: 27px; }
.strip-line { width: 28px; height: 1px; margin: 2px 0; background: var(--line-paper); }
.rail .rail-action.is-active { background: var(--panel); border-color: #c5d3ec; color: var(--accent-dark); box-shadow: 0 1px 2px rgba(25, 26, 36, 0.06); }
.strip-form { margin: 0; }
.strip-space { flex: 1; }
.strip-pop-wrap { position: relative; }
.strip-products { display: grid; gap: 4px; padding: 3px; border-radius: 12px; background: rgba(255, 255, 255, 0.55); }
.strip-product { width: 32px; height: 32px; }
.strip-product.is-current { background: var(--panel); box-shadow: 0 1px 2px rgba(25, 26, 36, 0.08); cursor: default; }
.strip-product.is-locked { cursor: default; }
.strip-product.is-locked .seg-logo { filter: grayscale(1); opacity: 0.5; }
.strip-letter {
  font-family: var(--font);
  font-size: var(--fs-s);
  font-weight: 700;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.7);
}
.strip-pop {
  display: none;
  position: absolute;
  top: 0;
  left: 46px;
  z-index: 40;
  padding: var(--sp-2);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 70px -30px rgba(25, 26, 36, 0.5);
}
.strip-pop.open { display: block; animation: panel-in var(--mo-calm-d) var(--mo-calm) both; }
.strip-pop .segment { display: flex; flex-direction: column; width: 150px; }
.strip-pop .segment-item { justify-content: flex-start; padding: 0 var(--sp-3); }
.chats-search { position: relative; display: flex; align-items: center; }
.chats-search-icon { position: absolute; left: 11px; color: var(--muted); pointer-events: none; }
.chats-search input {
  width: 100%;
  min-height: 38px;
  padding: 0 var(--sp-3) 0 var(--sp-6);
  font-size: var(--fs-s);
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
}
.chats-search input::-webkit-search-cancel-button { cursor: pointer; }
.chats-empty { margin: 0; font-size: var(--fs-s); }
.rail-find input {
  min-height: 44px;
  font-size: var(--fs-m);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  box-shadow: 0 1px 0 var(--line-soft);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.rail-find input::placeholder { color: var(--muted); }
.rail-find input:hover { border-color: var(--accent-lift); }
.rail-find input:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.rail .rail-find input { min-height: 38px; height: 38px; padding: 0 var(--sp-7) 0 var(--sp-6); font-size: var(--fs-s); background: rgba(255, 255, 255, 0.62); border: 1px solid var(--line-field); border-radius: var(--r-m); box-shadow: none; }
.rail .rail-find input:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.rail-find .chats-search-icon { color: var(--muted); }
.rail-find-hint { position: absolute; right: 10px; font-family: var(--font); font-size: var(--fs-xs); color: var(--quiet); pointer-events: none; }
.rail-find input:not(:placeholder-shown) ~ .rail-find-hint, .rail-find input:focus ~ .rail-find-hint { display: none; }
.rail.rail-finding [data-card="new"],
.rail.rail-finding [data-card="frequent"],
.rail.rail-finding [data-card="chats"] { display: none; }
.find-results { display: grid; gap: var(--sp-1); }
.find-list { list-style: none; margin: 0 0 var(--sp-2); padding: 0; display: grid; gap: 2px; }
.find-row {
  display: grid;
  gap: 1px;
  width: 100%;
  min-height: 0;
  padding: var(--sp-2) var(--sp-3);
  text-align: left;
  color: var(--ink);
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  transition: background-color var(--ease);
}
.find-row:hover, .find-row:focus-visible { color: var(--ink); background: var(--surface-soft); }
.find-row-off { cursor: default; }
.find-name { font-size: var(--fs-s); font-weight: 600; }
.find-note { font-size: var(--fs-xs); font-weight: 500; color: var(--muted); }
.find-empty { margin: 0; font-size: var(--fs-s); }
.shell .stage {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow-scene);
  overflow: hidden;
}
.stage-bar {
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--sp-3);
  height: 60px;
  padding: 0 var(--sp-5) 0 var(--sp-6);
  border-bottom: 1px solid var(--line-soft);
}
.stage-title { font-size: var(--fs-m); font-weight: 600; letter-spacing: -0.012em; }
.stage-when, .stage-inn { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); }
.stage-company {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: var(--sp-2);
  height: 34px;
  min-height: 0;
  max-width: 320px;
  padding: 0 var(--sp-3);
  background: var(--surface-soft);
  border: 0;
  border-radius: var(--radius-small);
  color: var(--ink);
  font: 500 var(--fs-s) var(--font);
  cursor: pointer;
}
.stage-company:hover, .stage-company:focus-visible { background: var(--accent-soft); color: var(--ink); filter: none; }
.stage-company svg { flex: none; color: var(--quiet); }
.stage-company-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stage-tool {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-height: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: var(--radius-small);
  color: var(--ink-2);
  cursor: pointer;
}
.stage-tool svg { flex: none; width: 18px; height: 18px; }
.stage-tool:hover, .stage-tool:focus-visible { background: var(--surface-soft); color: var(--ink); filter: none; }
.stage-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: var(--sp-4);
  min-height: 0;
  min-width: 0;
  padding: var(--sp-5) var(--sp-6) 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.stage-foot { display: flex; flex: none; flex-direction: column; gap: var(--sp-3); min-width: 0; padding: var(--sp-4) var(--sp-6) var(--sp-3); }
.shell:not(.shell-working) .stage-body { justify-content: safe center; gap: var(--sp-5); }
.stage-body > .hero, .stage-body > .resume, .stage-body > .desktop,
.stage-foot > .chat-form, .stage-foot > #onboarding-form, .stage-foot > .locked-note,
.stage-foot > .disclaimer { width: 100%; max-width: 900px; margin-inline: auto; }
.desktop { display: flex; flex-direction: column; gap: var(--sp-5); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
.tile {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  min-height: 88px;
  padding: 0 var(--sp-4);
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0) 24%, rgba(255, 255, 255, 0.92) 37%, rgba(255, 255, 255, 0) 50%),
    linear-gradient(180deg, #fbfbff, #eff2f8);
  background-size: 260% 100%, auto;
  background-position: -30% 0, 0 0;
  border: 1px solid #e8ecf3;
  border-radius: var(--r-m);
  box-shadow: 0 1px 2px rgba(25, 26, 36, 0.045);
  color: var(--ink);
  text-decoration: none;
  transition: background-position 0.5s ease, box-shadow var(--ease), border-color var(--ease);
}
.tile:hover, .tile:focus-visible {
  background-position: 130% 0, 0 0;
  border-color: #dee4f0;
  box-shadow: 0 2px 7px rgba(25, 26, 36, 0.075);
}
.tile-icon { flex: none; display: inline-flex; color: var(--accent); }
.tile-icon .group-icon { width: 25px; height: 25px; stroke: currentColor; stroke-width: 1.7; }
.tile-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tile-title { font-size: var(--fs-m); font-weight: 600; letter-spacing: -0.012em; }
.tile-count { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.desk-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }
.desk-label { font-family: var(--font); font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin-right: var(--sp-1); }
.desk-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 var(--sp-3);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  color: var(--ink);
  font-size: var(--fs-s);
  font-weight: 500;
  text-decoration: none;
  transition: border-color var(--ease), color var(--ease);
}
.desk-chip:hover, .desk-chip:focus-visible { border-color: var(--accent); color: var(--accent-dark); }
.desk-all { display: inline-flex; align-items: center; gap: var(--sp-2); color: var(--accent); font-size: var(--fs-s); font-weight: 600; text-decoration: none; }
.desk-all-count { font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500; }
.desk-dates { gap: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--line-soft); }
.desk-dates { flex-wrap: nowrap; overflow: hidden; }
.desk-date {
  display: inline-flex;
  align-items: baseline;
  min-width: 0;
  max-width: 34ch;
  font-size: var(--fs-s);
  color: #3f4052;
  white-space: nowrap;
}
.desk-date-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.desk-date b { margin-right: var(--sp-2); font-family: var(--font-mono); font-size: var(--fs-s); font-weight: 600; color: var(--ink); }
.side-card {
  padding: var(--sp-4);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  transition: border-color var(--ease);
}
.side-card-accent { background: var(--accent-soft); border-color: var(--accent); }
.side-title, .rail-title {
  margin: 0 0 var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.side-services { list-style: none; margin: 0; padding: 0; display: grid; }
.side-services a, .side-services span {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: 40px;
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--fs-s);
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none;
  transition: background-color var(--ease), color var(--ease);
}
.side-service-name { flex: 1; }
.side-service-go {
  flex: none;
  color: var(--accent);
  transform: translateX(-4px);
  opacity: 0;
  transition: transform var(--ease), opacity var(--ease);
}
.side-services a:hover, .side-services a:focus-visible {
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.side-services a:hover .side-service-go, .side-services a:focus-visible .side-service-go {
  transform: translateX(0);
  opacity: 1;
}
.side-services span { color: var(--muted); font-weight: 500; }
.side-group .side-title { padding: 0 var(--sp-4); }
.side-group .side-actions { display: block; margin: var(--sp-2) 0 0; font-size: var(--fs-s); }
.side-group .side-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-top: 1px solid var(--line-soft);
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
  transition: background-color var(--ease), color var(--ease);
}
.side-group .side-actions a:hover, .side-group .side-actions a:focus-visible {
  background: var(--accent);
  color: var(--primary-ink);
}
.side-ref { margin: 0; display: grid; gap: var(--sp-4); }
.side-ref-item { display: grid; gap: 1px; }
.side-ref-item + .side-ref-item { padding-top: var(--sp-4); border-top: 1px solid var(--line-soft); }
.side-ref dt {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.side-ref dd { margin: 0; display: grid; gap: 1px; }
.side-ref-value {
  font-size: var(--fs-xl);
  font-weight: 600;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.side-ref-unit { margin-left: var(--sp-1); font-family: var(--font); font-size: var(--fs-s); font-weight: 500; color: var(--muted); }
.side-ref-since { font-size: var(--fs-xs); line-height: 1.35; color: var(--muted); }
.company-head { display: flex; align-items: center; gap: var(--sp-3); margin: 0 0 var(--sp-3); }
.company-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-size: var(--fs-l);
  font-weight: 600;
  color: hsl(var(--mark-hue) 42% 30%);
  background: hsl(var(--mark-hue) 62% 94%);
  border: 1px solid hsl(var(--mark-hue) 45% 84%);
  border-radius: var(--radius-small);
}
.company-mark-small { width: 30px; height: 30px; font-size: var(--fs-s); }
.company-titles { display: grid; gap: 2px; min-width: 0; }
.company-name {
  font-weight: 600;
  font-size: var(--fs-xl);
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.company-inn { font-size: var(--fs-xs); color: var(--muted); }
.company-pills { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: 0; padding: 0; list-style: none; }
.company-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-1) var(--sp-2);
  font-size: var(--fs-s);
  line-height: 1.25;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
}
.pill-icon { flex: none; color: var(--muted); }
.company-pills li { display: flex; min-width: 0; max-width: 100%; }
.company-pill { max-width: 100%; min-width: 0; }
.pill-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.company-pill-empty {
  color: var(--muted);
  font-weight: 500;
  background: transparent;
  border-style: dashed;
  text-decoration: none;
}
.company-pill-empty:hover, .company-pill-empty:focus-visible {
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-color: var(--accent);
}
.company-fill { display: grid; gap: var(--sp-1); margin: var(--sp-3) 0 0; }
.company-fill-bar { display: block; height: 3px; background: var(--line); }
.company-fill-bar i { display: block; height: 100%; background: var(--accent); }
.company-fill-note { font-size: var(--fs-xs); color: var(--muted); }
.company-empty { margin: 0; font-size: var(--fs-s); line-height: 1.45; color: var(--muted); }
.company-main { min-height: 36px; padding: 0 var(--sp-4); font-size: var(--fs-s); }
.company-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); margin: 0 0 var(--sp-3); }
.company-bar .side-title { margin: 0; }
.company-tools { display: flex; align-items: center; gap: var(--sp-1); }
.icon-button {
  display: grid;
  place-items: center;
  width: 28px;
  min-height: 28px;
  padding: 0;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  cursor: pointer;
  transition: color var(--ease), border-color var(--ease), background-color var(--ease);
}
.icon-button:hover, .icon-button:focus-visible {
  color: var(--accent-dark);
  background: var(--panel);
  border-color: var(--accent);
  filter: none;
}
.company-pages { min-width: 0; touch-action: pan-y; }
.company-page { min-width: 0; }
.company-page:not([hidden]) { animation: company-page-in 0.18s ease both; }
@keyframes company-page-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.company-card .hint { margin: var(--sp-2) 2px 0; }
.dots-menu { position: relative; }
.dots-panel {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 20;
  display: none;
  min-width: 190px;
  padding: var(--sp-2);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  box-shadow: var(--shadow);
}
.dots-menu.open .dots-panel { display: grid; gap: 2px; }
.dots-form { margin: 0; }
.dots-item {
  display: block;
  width: 100%;
  min-height: 0;
  padding: var(--sp-2) var(--sp-3);
  border: 0;
  border-radius: var(--radius-small);
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-s);
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.dots-item:hover, .dots-item:focus-visible { color: var(--accent-dark); background: var(--accent-soft); filter: none; }
.dots-delete { color: var(--error); }
.dots-delete:hover, .dots-delete:focus-visible { color: var(--error); background: var(--error-soft); }
.dots-delete.asking { color: var(--error); background: var(--error-soft); }
.company-card { position: relative; min-width: 0; }
.company-form .field { margin-bottom: var(--sp-4); }
.company-form .actions { margin-top: var(--sp-1); }
.tabs { display: flex; gap: var(--sp-1); margin: 0 0 var(--sp-4); border-bottom: 1px solid var(--line); }
.tab {
  min-height: 38px;
  padding: 0 var(--sp-4);
  color: var(--muted);
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  font: inherit;
  font-size: var(--fs-m);
  font-weight: 600;
  cursor: pointer;
}
.tab:hover { color: var(--ink); background: none; filter: none; }
.tab[aria-selected="true"] { color: var(--accent-dark); border-bottom-color: var(--accent); }
.tab-panel:not([hidden]) { animation: tab-in 0.22s ease both; }
@keyframes tab-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}
.company-window .tab-panel { overflow-y: auto; padding-right: var(--sp-1); }
.company-find { display: flex; align-items: center; gap: var(--sp-2); margin: 0 0 var(--sp-3); }
.company-find .company-search { flex: 1 1 auto; margin: 0; }
.company-sort {
  flex: 0 0 auto;
  width: auto;
  min-height: 38px;
  padding: 0 var(--sp-6) 0 var(--sp-3);
  font-size: var(--fs-s);
  color: var(--muted);
  background-position: right 12px center;
}
.company-option-body { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.company-option-life { font-size: var(--fs-xs); font-weight: 500; color: var(--muted); }
.company-option-current .company-option-life { color: var(--accent-dark); }
.company-window .company-options { max-height: 46vh; overflow-y: auto; }
.company-search { margin: 0 0 var(--sp-3); }
.company-choose { margin: 0; }
.company-option-name { flex: 1 1 auto; min-width: 0; }
.company-option-mine {
  flex: none;
  padding: var(--sp-1) var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--panel);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}
.dialog {
  position: relative;
  width: min(520px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  margin: auto;
  padding: var(--sp-5) var(--sp-5) var(--sp-5);
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line-card);
  border-radius: var(--r-xl);
  box-shadow: 0 2px 6px rgba(25, 26, 36, 0.06), 0 30px 64px -40px rgba(24, 36, 72, 0.5);
}
.dialog-wide { width: min(680px, calc(100% - 32px)); overflow-y: auto; }
.dialog-wide .panel-body > .hint:first-child { margin-top: 0; }
.dialog-wide .skill-list { margin: 0; }
.dialog-wide h3 { margin: var(--sp-5) 0 var(--sp-2); font-size: var(--fs-l); font-weight: 600; }
.dialog .panel-body[aria-busy="true"] { opacity: 0.55; }
.dialog::backdrop { background: rgba(25, 26, 36, 0.38); }
.dialog:not([open]) { display: none; }
.dialog[open] { animation: panel-in var(--mo-calm-d) var(--mo-calm) both; }
.dialog[open]::backdrop { animation: veil-in 160ms ease-out both; }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
}
@keyframes veil-in {
  from { opacity: 0; }
}
.palette {
  width: min(560px, calc(100% - 32px));
  margin: 12vh auto auto;
  padding: var(--sp-4);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  box-shadow: 0 26px 70px -28px rgba(25, 26, 36, 0.45);
}
@supports not (backdrop-filter: blur(4px)) {
  .palette { background: var(--panel); }
}
.palette::backdrop { background: rgba(25, 26, 36, 0.32); backdrop-filter: blur(3px); }
.palette:not([open]) { display: none; }
.palette-field {
  width: 100%;
  min-height: 44px;
  padding: 0 var(--sp-3);
  font: inherit;
  font-size: var(--fs-l);
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) - 6px);
}
.palette-list { display: grid; gap: 2px; margin: var(--sp-3) 0 0; padding: 0; list-style: none; }
.palette-item {
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  border-radius: calc(var(--radius) - 8px);
  cursor: pointer;
}
.palette-item:hover { background: var(--surface-soft); }
.palette-current { background: var(--accent-soft); }
.palette-title { flex: 1 1 auto; }
.palette-note { flex: 0 0 auto; font-size: var(--fs-s); color: var(--muted); }
.palette-empty { margin: var(--sp-3) 0 2px; }
.dialog-close-form { position: absolute; top: 18px; right: 22px; margin: 0; }
.dialog-close {
  width: 30px;
  height: 30px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius-small);
  background: transparent;
  color: var(--muted);
  font-size: var(--fs-xl);
  line-height: 1;
}
.dialog-close:hover { background: var(--surface-soft); color: var(--ink); }
.dialog-title {
  margin: 0 0 var(--sp-4);
  padding-right: var(--sp-7);
  font-size: var(--fs-xl);
  font-weight: 600;
  letter-spacing: -0.018em;
}
.dialog-foot {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line-soft);
}
.dialog-foot .hint { margin: 0; font-family: var(--font); font-size: var(--fs-xs); color: var(--quiet); }
.dialog-foot .spacer { flex: 1; }
.dialog-foot button, .dialog-foot .button-link { min-height: 38px; padding: 0 var(--sp-4); border-radius: var(--radius-control); font-size: var(--fs-s); }
.company-dialog .company-card { padding: 0; background: none; border: 0; }
.company-dialog .company-bar { display: flex; align-items: center; gap: var(--sp-3); padding-right: var(--sp-7); }
.company-dialog .dialog-title { margin: 0; padding-right: 0; }
.company-dialog .company-tools { margin-left: auto; }
.dialog-lead { margin: calc(-1 * var(--sp-1)) 0 0; font-size: var(--fs-xs); line-height: 1.5; color: var(--muted); }
.ref-list { display: flex; flex-direction: column; margin: var(--sp-4) 0 0; }
.ref-row { display: flex; align-items: baseline; gap: var(--sp-4); padding: var(--sp-3) 0; border-bottom: 1px solid var(--line-soft); }
.ref-row:last-child { border-bottom: 0; }
.ref-value {
  flex: none;
  width: 160px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-xl);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.ref-unit { margin-left: var(--sp-1); font-family: var(--font); font-size: var(--fs-s); font-weight: 500; color: var(--muted); }
.ref-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ref-name { font-size: var(--fs-s); font-weight: 600; }
.ref-since { font-size: var(--fs-xs); color: var(--muted); }
.dialog .error { margin-bottom: var(--sp-4); }
.dialog-actions { margin: var(--sp-4) 0 0; }
.limits { display: grid; gap: var(--sp-4); }
.limits-block { display: grid; gap: var(--sp-1); }
.limits-head {
  margin: 0;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.limits-value {
  margin: 0;
  font-size: var(--fs-xl);
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.limits-of { margin-left: var(--sp-2); font-family: var(--font); font-size: var(--fs-s); font-weight: 500; color: var(--muted); }
.limits-bar { margin: var(--sp-1) 0 0; height: 4px; background: var(--line-soft); overflow: hidden; }
.limits-bar i { display: block; height: 100%; background: var(--fill); }
.units-fill, .limits-bar i { --left: 100; --fill: hsl(calc(var(--left) * 1.2deg) 62% 40%); }
.limits-note { margin: 0; font-size: var(--fs-s); color: var(--muted); }
.limits-hint { margin: 0; }
.limits-page .limits { max-width: 460px; }
.company-options { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--sp-2); }
.company-option {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
  min-height: 0;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-m);
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--ease), background-color var(--ease);
}
.company-option:hover { border-color: var(--accent); background: var(--panel); color: var(--ink); }
.company-option-current { background: var(--accent-soft); border-color: var(--line); border-left-color: var(--accent); cursor: default; }
.company-option .muted { font-weight: 500; font-size: var(--fs-s); }
.company-option-name { font-size: var(--fs-l); font-weight: 600; }
.company-option-name .muted { font-family: var(--font); font-size: var(--fs-xs); }
.side-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-4); margin: var(--sp-3) 0 var(--sp-3); font-size: var(--fs-s); }
.side-actions a { display: inline-flex; align-items: center; min-height: 24px; font-weight: 600; }
.inline-form { display: inline; margin: 0; }
.inline-form .link-button { min-height: 24px; padding: 0; font-size: var(--fs-s); }
.deadlines { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--sp-2); font-size: var(--fs-s); }
.conversation-services, .conversation-skills { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--sp-2); font-size: var(--fs-s); }
.conversation-services a { font-weight: 600; }
.conversation-counts { margin: var(--sp-2) 0 0; font-size: var(--fs-s); }

.rail-actions { display: flex; flex-direction: column; gap: var(--sp-2); }
.rail-actions form { margin: 0; }
.rail .rail-action {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
  height: 44px;
  min-height: 44px;
  padding: 0 var(--sp-4);
  border: 1px solid var(--line-field);
  border-radius: var(--r-m);
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-s);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 160ms ease 200ms, border-color 200ms ease, color 200ms ease, opacity 200ms ease;
}
.rail .rail-action:hover, .rail .rail-action:focus-visible { background: var(--panel); color: var(--ink); filter: none; transition: background-color 160ms ease, border-color 200ms ease, color 200ms ease, opacity 200ms ease; }
.rail .rail-action:not(.rail-action-dark, .rail-action-off):is(:hover, :focus-visible)::after, .strip-button.strip-button:not(.strip-dark, .strip-plain, .strip-product):is(:hover, :focus-visible)::after { transition: opacity 200ms ease 160ms; }
.strip-button:not(.strip-dark, .strip-plain, .strip-product) { transition: color var(--ease), background-color 160ms ease 200ms, border-color var(--ease); }
.strip-button:not(.strip-dark, .strip-plain, .strip-product):is(:hover, :focus-visible) { transition: color var(--ease), background-color 160ms ease, border-color var(--ease); }
.rail .rail-action svg { flex: none; }
.rail .rail-action-dark, .rail .rail-action-dark:hover, .rail .rail-action-dark:focus-visible { background: var(--graphite); border-color: var(--graphite); color: var(--graphite-ink); font-weight: 600; }
.rail .rail-action-dark:hover, .rail .rail-action-dark:focus-visible { opacity: 0.9; }
.rail .rail-count { margin-left: auto; font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 400; color: #5a5b6e; }
.rail .rail-chevron { margin-left: auto; color: #5a5b6e; }
.rail-recent { display: flex; flex-direction: column; gap: var(--sp-1); min-width: 0; }
.rail-recent .rail-label { padding: 0 var(--sp-2) var(--sp-2); }
.rail .chats-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-1); }
.rail .chats-item { position: relative; display: block; padding: 0; border-radius: var(--r-s); }
.rail .chats-item:hover { background: rgba(255, 255, 255, 0.5); }
.rail .chats-current, .rail .chats-current:hover { background: rgba(255, 255, 255, 0.7); border: 0; }
.rail .chats-row { display: flex; align-items: center; gap: var(--sp-2); height: 32px; min-width: 0; padding: 0 var(--sp-2); }
.rail .chats-open { display: block; flex: 1 1 auto; min-width: 0; margin: 0; }
.rail .chats-title {
  display: block;
  width: 100%;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  font-weight: 500;
  font-size: var(--fs-s);
  line-height: 32px;
  text-align: left;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #3f4052;
  background: none;
  border: 0;
}
.rail .chats-row > span.chats-title { flex: 1 1 auto; min-width: 0; }
.rail .chats-title:hover { color: var(--ink); background: none; }
.rail .chats-current .chats-title { color: var(--ink); font-weight: 500; }
.chats-menu { position: absolute; top: 4px; right: 4px; z-index: 6; }
.chats-dots {
  display: grid;
  place-items: center;
  width: 24px;
  min-height: 24px;
  padding: 0;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius-small);
  box-shadow: 0 0 0 4px var(--panel);
  cursor: pointer;
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--ease), color var(--ease), background-color var(--ease);
}
.rail .chats-item:hover .chats-dots, .chats-dots:focus-visible, .chats-menu.open .chats-dots { visibility: visible; opacity: 1; }
.chats-dots:hover, .chats-menu.open .chats-dots { color: var(--primary-ink); background: var(--accent); }
@media (hover: none) { .chats-dots { visibility: visible; opacity: 1; } }
.chats-panel {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 20;
  display: none;
  min-width: 170px;
  padding: var(--sp-2);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  box-shadow: var(--shadow);
}
.chats-menu:hover .chats-panel, .chats-menu:focus-within .chats-panel, .chats-menu.open .chats-panel { display: grid; gap: 2px; }
.chats-panel::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 8px; }
.chats-panel .chats-remove, .chats-panel .chats-pin { display: block; margin: 0; }
.chats-pinned { flex: none; color: var(--accent); }
.chats-delete { color: var(--error); }
.chats-delete:hover, .chats-delete:focus-visible { color: var(--error); background: var(--error-soft); }
.chats-rename-form { margin: 0; }
.chats-rename-form input {
  width: 100%;
  min-height: 32px;
  padding: 0 var(--sp-2);
  font: inherit;
  font-size: var(--fs-s);
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--accent);
  border-radius: var(--radius-small);
}
.rail .chats-item:has(.chats-rename-form:not([hidden])) .chats-row { display: none; }
.rail-frequent { display: block; position: relative; }
.rail-summary { cursor: pointer; list-style: none; user-select: none; }
.rail-summary::-webkit-details-marker { display: none; }
.rail-chevron { flex: none; transition: transform 0.2s ease; }
.rail-frequent[open] .rail-chevron { transform: rotate(180deg); }
.rail-frequent[open] :is(.frequent-list, .frequent-empty) {
  position: absolute;
  z-index: 25;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  padding: var(--sp-2);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 50px -24px rgba(25, 26, 36, 0.5);
  animation: panel-in var(--mo-calm-d) var(--mo-calm) both;
}
.frequent-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.frequent-row { display: flex; align-items: center; gap: 2px; }
.frequent-row .frequent-item { flex: 1 1 auto; min-width: 0; }
.frequent-row .frequent-item span { overflow-wrap: anywhere; }
.frequent-hide { margin: 0; flex: none; }
.frequent-drop {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius-small);
  background: none;
  color: var(--muted);
  opacity: 0;
  cursor: pointer;
  transition: opacity var(--ease), color var(--ease), background-color var(--ease);
}
.frequent-row:hover .frequent-drop, .frequent-drop:focus-visible { opacity: 1; }
.frequent-drop:hover { color: var(--error); background: var(--surface-soft); }
.frequent-empty { margin: 0; padding: var(--sp-2) var(--sp-3); font-size: var(--fs-s); color: var(--muted); }
.rail-frequent :is(.frequent-list, .frequent-empty)[hidden] { display: none; }
.frequent-restore { margin: var(--sp-2) 0 0; }
.frequent-restore .link-button { font-size: var(--fs-s); font-weight: 600; }
.frequent-restore-alone { margin: 0 0 var(--sp-3); }
.frequent-item {
  display: flex;
  gap: var(--sp-2);
  align-items: center;
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-s);
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--radius-small);
  transition: background-color var(--ease), color var(--ease);
}
.frequent-item:hover, .frequent-item:focus-visible { background: var(--accent-soft); color: var(--accent-dark); }
.frequent-item .group-icon { flex: none; width: 16px; height: 16px; color: var(--muted); stroke-width: 1.7; }
.frequent-pin { flex: none; width: 12px; height: 12px; color: var(--accent); }
.frequent-pinned .frequent-item { font-weight: 600; }
.service-tools { display: flex; align-items: center; gap: var(--sp-2); }
.service-tools .tip { margin-left: 0; }
.service .service-tools form, .pin-form { margin: 0; }
.pin-icon { width: 30px; min-height: 30px; }
.pin-icon.pin-on { color: var(--accent-dark); border-color: var(--accent); background: var(--accent-soft); }
.frequent-item:hover .group-icon, .frequent-item:focus-visible .group-icon { color: var(--accent); }

.hero { display: grid; gap: var(--sp-4); text-align: center; padding: var(--sp-2) 0 var(--sp-1); }
body.body-onboarding .rail, body.body-onboarding .rail-strip, body.body-onboarding .rail-grip, body.body-onboarding .stage-bar, body.body-onboarding .desktop, body.body-onboarding .disclaimer, body.body-onboarding .topbar .units-meter { display: none; }
.hero-onboarding { padding-bottom: var(--sp-3); justify-items: center; text-align: center; }
.hero.hero-onboarding h1 { font-size: var(--fs-3xl); line-height: 1.1; min-height: 1.1em; }
.hero-onboarding .hero-line { font-size: var(--fs-xl); line-height: 1.45; color: var(--ink); min-height: 1.45em; }
.hero-onboarding .hero-extra { font-size: var(--fs-m); }
.body-onboarding .shell .stage { align-items: center; }
.body-onboarding #onboarding-form { width: 100%; }
.hero-onboarding .hero-extra { font-style: normal; transition: opacity 0.4s ease; }
#onboarding-form { transition: opacity 0.5s ease, transform 0.5s ease; }
.onboarding-leaving .hero-onboarding { opacity: 0; transform: translateY(-14px); transition: opacity 0.55s ease, transform 0.55s ease; }
.onboarding-leaving #onboarding-form { opacity: 0.55; transition: opacity 0.55s ease; }
.just-onboarded .hero, .just-onboarded .rail, .just-onboarded .side-column, .just-onboarded .groups, .just-onboarded .chat-window { animation: soft-in 0.7s ease both; }
@keyframes soft-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
#onboarding-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-3) var(--sp-3) var(--sp-4);
}
#onboarding-form textarea { min-height: 28px; padding: 0; font-size: var(--fs-l); }
#onboarding-form .chat-controls { gap: 0; }
#onboarding-form #onboarding-send { margin: 0; padding: 0 var(--sp-5); }
.js .onboarding-intro #onboarding-form, .js .onboarding-intro #onboarding-hint { opacity: 0; visibility: hidden; transform: translateY(8px); }
.js .onboarding-intro .shell .stage-body { padding-top: 22vh; }
.body-onboarding .shell .stage-body { transition: padding-top 0.6s ease; }

@property --orb-s { syntax: "<length>"; inherits: true; initial-value: 72px; }
@property --orb-a { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
@property --orb-l { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --orb-o { syntax: "<number>"; inherits: false; initial-value: 1; }
.orb {
  --orb-s: 72px;
  --orb-p: calc(var(--orb-s) / 4);
  --orb-tint: var(--orb-halo);
  position: relative;
  display: grid;
  place-items: center;
  width: var(--orb-s);
  aspect-ratio: 1;
  margin: 0 0 var(--sp-2);
  padding: var(--orb-p);
  border-radius: 50%;
  background: radial-gradient(circle closest-side, color-mix(in srgb, #7b7bf4, transparent 62%) 48%, color-mix(in srgb, #7b7bf4, transparent 84%) 68%, transparent 100%);
  transform: scale(1.4);
  transition: --orb-s 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  animation: orb-in 1s ease both, orb-breathe 5s ease-in-out 1s infinite;
}
.body-onboarding .orb { --orb-s: 150px; }
.onboarding-intro .orb { --orb-s: 300px; margin-bottom: var(--sp-5); }
.orb-core {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background: var(--orb-base);
  transition: transform 0.2s ease;
}
.orb-speaking .orb-core { animation: orb-speak 0.75s ease-in-out infinite; }
.orb-c {
  --orb-count: 4;
  --orb-radius: calc(var(--orb-s) * 0.15);
  --orb-x: 0px;
  --orb-step: calc(360deg / var(--orb-count));
  --orb-angle: calc(var(--orb-step) * var(--orb-i) + var(--orb-a));
  position: absolute;
  width: calc(var(--orb-s) * 0.25);
  aspect-ratio: 1;
  border-radius: 50%;
  translate: calc(cos(var(--orb-angle)) * var(--orb-radius) + var(--orb-x)) calc(sin(var(--orb-angle)) * var(--orb-radius) * -1);
  scale: calc(0.6 + var(--orb-l));
  opacity: var(--orb-o);
  animation: orb-drift 5.5s cubic-bezier(0.45, -0.35, 0.16, 1.5) infinite;
}
.orb-c4 { --orb-i: 0; background: var(--orb-deep); animation-timing-function: cubic-bezier(0.39, -0.03, 0.75, 0.47); }
.orb-c1 { --orb-i: 1; --orb-x: calc(var(--orb-s) * 0.025); width: calc(var(--orb-s) * 0.4); background: radial-gradient(50% 50% at center, var(--orb-lilac), var(--orb-sky)); animation-timing-function: cubic-bezier(0.12, 0.32, 0.68, 0.24); }
.orb-c2 { --orb-i: 2; width: calc(var(--orb-s) * 0.375); background: radial-gradient(50% 50% at center, var(--orb-rose), #e4eafb); }
.orb-c3 { --orb-i: 3; --orb-x: calc(var(--orb-s) * -0.025); width: calc(var(--orb-s) * 0.125); background: radial-gradient(50% 50% at center, var(--orb-pink), transparent); opacity: 0.6; }
.orb-glass {
  position: absolute;
  inset: calc(var(--orb-p) - var(--orb-s) * 0.0125);
  overflow: hidden;
  border-radius: 50%;
  backdrop-filter: blur(calc(var(--orb-s) * 0.03));
  box-shadow: 0 0 calc(var(--orb-s) * 0.2) color-mix(in srgb, #1f3a75, transparent 75%);
  background: radial-gradient(calc(var(--orb-s) * 0.25) at 70% 30%, rgba(255, 255, 255, 0.7), transparent);
}
.orb-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: calc(var(--orb-s) * 0.025) solid rgba(255, 255, 255, 0.12);
  background: repeating-linear-gradient(rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.03) 1px, transparent 1px, transparent 4px);
}
@keyframes orb-drift {
  from { --orb-a: 360deg; --orb-l: 0.35; --orb-o: 1; }
  30% { --orb-l: 1.5; }
  70% { --orb-o: 0.4; --orb-l: 0.05; }
  98% { --orb-o: 0.7; }
  to { --orb-a: 0deg; --orb-l: 0.35; --orb-o: 1; }
}
@keyframes orb-in {
  from { opacity: 0; transform: scale(1.1); }
  to { opacity: 1; transform: scale(1.4); }
}
@keyframes orb-breathe {
  0%, 100% { transform: scale(1.4); }
  50% { transform: scale(1.46); }
}
@keyframes orb-speak {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.08, 0.94); }
  55% { transform: scale(0.95, 1.06); }
  80% { transform: scale(1.04); }
}
.dots { display: flex; justify-content: center; gap: var(--sp-2); height: 24px; margin: 0; align-items: center; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); opacity: 0.5; animation: dot-wave 1.1s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: 0.15s; }
.dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot-wave {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-7px); opacity: 1; }
}
.hero-onboarding .word-box { display: inline-block; white-space: nowrap; }
.hero-onboarding .char-in {
  display: inline-block;
  animation: char-in 600ms ease both;
}
@keyframes char-in {
  from { opacity: 0; filter: blur(14px); transform: scale(1.06); }
  to { opacity: 1; filter: blur(0); transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .orb, .orb-core, .orb-c, .dots i { animation: none !important; }
  .just-onboarded .hero, .just-onboarded .rail, .just-onboarded .side-column, .just-onboarded .groups, .just-onboarded .chat-window { animation: none; }
  .onboarding-leaving .hero-onboarding, .onboarding-leaving #onboarding-form { transition: none; }
  .js .onboarding-intro #onboarding-form, .js .onboarding-intro #onboarding-hint { opacity: 1; visibility: visible; transform: none; }
}
.hero h1 { margin: 0; font-family: var(--font); font-size: var(--fs-3xl); font-weight: 600; letter-spacing: -0.028em; line-height: 1.15; }
.hero-name {
  background: var(--brand-soft);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-line { margin: 0; font-size: var(--fs-m); line-height: 1.45; color: var(--ink-2); }
.hero-line b { font-family: var(--font-mono); font-weight: 600; color: var(--ink); }
.hero-extra { margin: var(--sp-1) 0 0; font-size: var(--fs-m); color: var(--muted); font-style: italic; }
.hero .orb { justify-self: center; }
.orb-quiet { --orb-s: 58px; margin-bottom: 0; }
.shell:not(.shell-working) .stage-foot > .disclaimer { display: none; }
.hero .locked-note { text-align: left; }
.hero .groups-all { justify-self: center; margin-top: var(--sp-2); }
.groups-all { gap: var(--sp-2); }
.groups-all .muted { color: var(--muted); font-weight: 600; }

.focus { margin: 0; padding: var(--sp-4) var(--sp-4); background: var(--accent-soft); border-radius: var(--radius-control); }
.focus-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-3); margin: 0 0 var(--sp-1); }
.focus-name { font-weight: 700; color: var(--accent-dark); }
.focus-off { font-size: var(--fs-s); color: var(--muted); }
.focus .hint { margin: 0 0 var(--sp-3); }
.starters { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.starter, .service-chip {
  min-height: 36px;
  padding: 0 var(--sp-4);
  font: inherit;
  font-size: var(--fs-s);
  font-weight: 600;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  text-align: left;
  cursor: pointer;
}
.starter:hover, .service-chip:hover { border-color: var(--accent); color: var(--accent); background: var(--panel); }
.service-chip::after { content: " ›"; color: var(--muted); }

.chat-window {
  display: grid;
  grid-auto-rows: max-content;
  gap: var(--sp-4);
  align-content: start;
  margin: 0;
  padding: 0;
}
.chat-window:focus-visible { outline-offset: 4px; }
.chat-window-empty { display: none; }
.chat-window .placeholder { margin: 0; }
.chat-window .said { display: grid; gap: var(--sp-2); margin: 0; }
.said-label {
  font-family: var(--font);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.chat-window .bubble {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  font-size: var(--fs-l);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.01em;
  white-space: pre-wrap;
}
.chat-window .said { justify-items: end; }
.chat-window .said .said-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chat-window .said .bubble { max-width: min(80%, 620px); padding: 10px 16px; border: 1px solid var(--line-card); border-radius: 20px 20px 6px 20px; background: var(--accent-soft); color: var(--ink); font-size: var(--fs-m); font-weight: 500; overflow-wrap: anywhere; }
.chat-window .said .file { justify-self: end; }
.chat-window .said .file { display: block; margin-top: var(--sp-1); font-size: var(--fs-s); color: var(--muted); }

.chat-form {
  display: grid;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-4) var(--sp-3);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: none;
  position: relative;
}
.stage-foot { position: relative; isolation: isolate; }
.stage-foot > * { position: relative; z-index: 1; }
.stage-foot::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -125px;
  z-index: 0;
  width: 1040px;
  height: 440px;
  margin-left: -520px;
  background: var(--chat-glow);
  opacity: 0.8;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stage-foot:focus-within::before { opacity: 1; transform: scale(1.14); }
.chat-controls { display: flex; align-items: center; gap: var(--sp-2); }
.chat-tool {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-height: 0;
  padding: 0;
  background: var(--panel);
  border: 1px solid #dfe4ee;
  border-radius: var(--radius-small);
  color: var(--ink-2);
  cursor: pointer;
  list-style: none;
  transition: border-color var(--ease), color var(--ease), background-color var(--ease);
}
.chat-tool::-webkit-details-marker { display: none; }
.chat-tool:hover { border-color: var(--accent); color: var(--accent-dark); background: var(--panel); }
.chat-tool svg { flex: none; }
.skills-pick { position: relative; }
.skills-pick[open] .chat-tool { border-color: var(--accent); color: var(--accent-dark); }
.skills-pick .skills {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 20;
  width: max-content;
  max-width: 420px;
  padding: var(--sp-3);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  box-shadow: var(--shadow);
}
.chat-tool .think-icon { stroke: currentColor; }
.think.chat-tool:has(input:checked) {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-dark);
}
.think.chat-tool:has(input:checked) .think-icon { stroke: currentColor; }
.chat-form textarea { font-size: var(--fs-m); }
#chat-send {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-height: 0;
  padding: 0;
  border-radius: 50%;
}
.drop-zone { position: relative; }
.drop-zone.dropping { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.drop-zone.dropping::after {
  content: "Отпустите файл — разберём его";
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  color: var(--accent-dark);
  font-weight: 600;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  pointer-events: none;
}
.drop-field { padding: var(--sp-3) var(--sp-3); border: 1px dashed var(--line-strong); border-radius: var(--radius-control); }
.service.drop-zone.dropping { border-color: transparent; box-shadow: inset 0 0 0 2px var(--accent); }
.service.drop-zone.dropping::after { border-radius: var(--radius); }
.service-page .drop-field { border: 0; padding: 0; }
.drop-invite { margin: var(--sp-2) 0 0; font-size: var(--fs-s); }
.drop-note { margin: var(--sp-2) 0 0; color: var(--error); font-size: var(--fs-s); font-weight: 600; }
.shell-working .chat-form { scroll-margin-bottom: 16px; }
.shell-working .desktop { display: none; }
.chat-form textarea {
  min-height: 0;
  max-height: 40vh;
  padding: var(--sp-1) 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: var(--fs-m);
  resize: none;
  field-sizing: content;
}
.chat-form textarea:hover { border: 0; }
.chat-form textarea:focus, .chat-form textarea:focus-visible { outline: none; box-shadow: none; }
.ghost-text { position: absolute; z-index: 2; margin: 0; border-style: solid; border-color: transparent; white-space: pre-wrap; overflow-wrap: break-word; pointer-events: none; opacity: 0; transition: opacity 0.18s ease; }
.ghost-text.is-on { opacity: 1; }
.ghost-typed { color: transparent; }
.ghost-rest { color: var(--muted); pointer-events: auto; cursor: pointer; }
.ghost-rest.is-new { animation: ghost-in 0.32s ease both; }
@keyframes ghost-in { from { opacity: 0; filter: blur(3px); } to { opacity: 1; filter: blur(0); } }
.chat-controls { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.chat-controls #chat-send { margin: 0; padding: 0; }
.chat-controls #chat-send svg { flex: none; }
.chat-controls #chat-send.chat-stop { color: var(--accent-dark); background: var(--panel); border: 1px solid var(--accent); }
.stopped-note { margin: var(--sp-2) 0 0; font-size: var(--fs-s); color: var(--muted); }
.shell .disclaimer { text-align: center; font-size: var(--fs-xs); color: var(--muted); }
.shell-working .stage-body > .chat-window,
.shell-working .stage-foot > .chat-form,
.shell-working .stage-foot > .disclaimer,
.shell-working .stage-foot > .locked-note { width: 100%; max-width: var(--w-chat); margin-inline: auto; }

.groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-3); margin-top: var(--sp-6); }
.group-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-1) var(--sp-3);
  border-radius: var(--radius-control);
  font-size: var(--fs-s);
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
}
.group-link:hover, .group-link:focus-visible { color: var(--accent-dark); }
.group-link:hover .group-badge, .group-link:focus-visible .group-badge { background: var(--accent-soft); border-color: var(--accent); }
.group-link .group-badge {
  width: 72px;
  height: 72px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: var(--ink);
  transition: background-color var(--ease), border-color var(--ease);
}
.group-link .group-icon { width: 32px; height: 32px; stroke: var(--ink); stroke-width: 1.6; transition: stroke var(--ease); }
.group-link:hover .group-icon, .group-link:focus-visible .group-icon { stroke: var(--accent-dark); }
/* Градиенты групп: вернуть вместо двух строк выше, если нейтральный ряд не приживётся (D-168)
.group-link .group-icon { width: 32px; height: 32px; stroke: url(#ico-nav); }
.group-link[data-group="calc"] .group-icon { stroke: url(#ico-calc); }
.group-link[data-group="docs"] .group-icon { stroke: url(#ico-docs); }
.group-link[data-group="check"] .group-icon { stroke: url(#ico-check); }
.group-link[data-group="ref"] .group-icon { stroke: url(#ico-ref); }
.group-link[data-group="cal"] .group-icon { stroke: url(#ico-cal); }
.group-link[data-group="all"] .group-icon { stroke: url(#ico-all); }
*/
.group-link-title { line-height: 1.25; }
.shell .disclaimer { margin: calc(-1 * var(--sp-2)) 0 0; }
.group-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-control);
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--accent);
}
.cards-hidden { display: none; }

.doc {
  display: grid;
  gap: var(--sp-4);
  border-radius: 0;
  background: none;
  border: 0;
  box-shadow: none;
  overflow: visible;
}
.doc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-2);
  padding: 0;
  border-bottom: 0;
  font-family: var(--font);
  font-size: var(--fs-xs);
  color: var(--muted);
}
.doc-who { font-family: var(--font-brand); font-size: var(--fs-s); font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.doc-meta::before { content: "· "; }
.doc-busy { display: inline-flex; align-items: center; gap: var(--sp-2); }
.doc-busy::before { content: ""; width: 10px; height: 10px; border: 2px solid var(--accent); border-right-color: transparent; border-radius: 50%; animation: doc-spin 0.9s linear infinite; }
@keyframes doc-spin { to { transform: rotate(360deg); } }
.doc-body { display: grid; gap: var(--sp-4); padding: 0; font-size: var(--fs-l); line-height: 1.62; font-weight: 500; color: #1d1e2a; }
.doc-body p { margin: 0; white-space: pre-wrap; }
.doc-body .streaming { min-height: 1.6em; }
.doc-body .doc-ref { font: inherit; color: var(--quiet); text-decoration: none; }
.doc-body a.doc-ref:hover, .doc-body a.doc-ref:focus-visible { color: var(--accent-dark); text-decoration: underline; }
.doc-body .chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); font-family: var(--font); }
.tool-card {
  display: grid;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-4);
  border-radius: var(--r-m);
  background: var(--surface-soft);
  border: 0;
  font-family: var(--font);
  font-size: var(--fs-m);
  line-height: 1.45;
  font-weight: 500;
}
.tool-name { font-size: var(--fs-m); }
.tool-args { font-family: var(--font-mono); font-size: var(--fs-xs); }
.chat-service {
  display: grid;
  gap: var(--sp-3);
  margin: var(--sp-2) 0;
  padding: var(--sp-4) var(--sp-4);
  border-radius: var(--radius-control);
  background: var(--panel);
  border: 1px solid var(--line-strong);
}
.chat-service-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.chat-service-name {
  font-family: var(--font);
  font-size: var(--fs-m);
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.chat-service-name::before { content: "⚙ "; }
.chat-service-toggle {
  flex: none;
  min-height: 28px;
  padding: 0 var(--sp-2);
  border: 0;
  border-radius: var(--radius-small);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: var(--fs-s);
  font-weight: 600;
  cursor: pointer;
  transition: color var(--ease);
}
.chat-service-toggle:hover { background: transparent; color: var(--accent); text-decoration: underline; }
.chat-service-off { gap: 0; }
.chat-service-off .chat-service-body { display: none; }
.chat-service-body { font-family: var(--font); font-size: var(--fs-m); }
.chat-service-body .service { display: grid; gap: var(--sp-3); }
.tool-name { font-weight: 700; color: var(--accent); text-decoration: none; }
.tool-name::before { content: "⚙ "; }
a.tool-name::after { content: " ›"; color: var(--muted); }
a.tool-name:hover { text-decoration: underline; }
.tool-args { color: var(--muted); }
.tool-result { display: block; }
.tool-result.busy { color: var(--muted); font-style: italic; animation: tool-pulse 1.2s ease-in-out infinite; }
.tool-result.failed { color: var(--muted); font-style: italic; }
@keyframes tool-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}
.tool-links { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.tool-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  justify-self: start;
  min-height: 36px;
  padding: 0 var(--sp-4);
  border: 1px solid var(--accent);
  border-radius: var(--radius-small);
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.tool-link:hover { background: var(--accent-soft); }
.doc-foot { display: grid; gap: var(--sp-3); padding: var(--sp-3) 0 0; border-top: 1px solid var(--line-soft); font-size: var(--fs-xs); }
.doc-sources { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-2) var(--sp-4); }
.doc-label {
  font-family: var(--font);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.doc-source { display: inline-flex; gap: var(--sp-2); align-items: baseline; font-size: var(--fs-xs); text-decoration: none; color: var(--ink-2); }
.doc-source:hover { text-decoration: underline; }
.doc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.doc-actions .rating { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-xs); color: var(--ink-2); }
.rate, .doc-action, .doc-download-button { font-size: var(--fs-xs); font-weight: 500; }
.rate {
  min-height: 30px;
  padding: 0 var(--sp-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--panel);
  color: var(--ink);
  font-size: var(--fs-s);
  font-weight: 600;
  transition: color var(--ease), border-color var(--ease);
}
.rate:hover { border-color: var(--accent); color: var(--accent); background: var(--panel); }
.rate:disabled { background: var(--panel); border-color: var(--line); }
.doc-action {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 var(--sp-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: var(--fs-s);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--ease);
}
.doc-action:hover { text-decoration: underline; background: transparent; color: var(--accent-dark); }
.doc-download { position: relative; }
.doc-download-button {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 36px;
  padding: 0 var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--panel);
  color: var(--ink);
  font-size: var(--fs-s);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
  user-select: none;
  transition: border-color var(--ease), color var(--ease);
}
.doc-download-button::-webkit-details-marker { display: none; }
.doc-download-button::before {
  content: "";
  width: 14px;
  height: 14px;
  background: currentColor;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 4v11M7 10l5 5 5-5M5 20h14'/></svg>") center / contain no-repeat;
}
.doc-download-button:hover, .doc-download[open] .doc-download-button { border-color: var(--accent); color: var(--accent); }
.doc-download-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  z-index: 20;
  display: grid;
  gap: 2px;
  min-width: 170px;
  padding: var(--sp-2);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  box-shadow: var(--shadow);
}
.doc-download-item {
  display: block;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-small);
  color: var(--ink);
  font-size: var(--fs-s);
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--ease), color var(--ease);
}
.doc-download-item:hover, .doc-download-item:focus-visible { background: var(--accent-soft); color: var(--accent-dark); }
.doc-service .doc-body { padding-bottom: var(--sp-5); }
.doc.error-text .doc-body { color: var(--error); font-family: var(--font); font-size: var(--fs-m); }

.page {
  max-width: 880px;
  margin: 0 auto;
  padding: var(--sp-5) var(--sp-6) var(--sp-6);
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow-scene);
}
.service {
  position: relative;
  padding: var(--sp-6) var(--sp-6) var(--sp-6);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.service-page { max-width: none; padding: 0; overflow: hidden; }
.service-page .service { padding: 0; border: 0; border-radius: 0; box-shadow: none; background: none; }
.service-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-5) var(--sp-6) var(--sp-5);
  background: var(--card-bg, var(--brand-soft));
  color: #ffffff;
}
.service-hero.tone-9 { color: #241c0d; }
.service-watermark {
  position: absolute;
  z-index: -1;
  right: 44px;
  bottom: -44px;
  width: 200px;
  height: 200px;
  opacity: 0.1;
  transform: rotate(10deg);
  pointer-events: none;
}
.service-watermark svg { width: 100%; height: 100%; stroke: currentColor; stroke-width: 1.15; fill: none; }
.service-hero-top { display: flex; align-items: center; gap: var(--sp-3); }
.service-hero-top .service-top { flex: 1 1 auto; min-width: 0; margin: 0; padding: 0; border: 0; }
.service-hero-top .crumbs, .service-hero-top .crumbs a, .service-hero-top .crumbs span {
  font-family: var(--font);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
}
.service-hero-top .crumbs { gap: var(--sp-2); }
.service-hero-top .crumbs-root { padding: 0; border: 0; font-weight: 500; }
.service-hero-top .crumbs a:hover, .service-hero-top .crumbs a:focus-visible { color: #ffffff; border: 0; }
.service-hero-top .crumbs .crumbs-sep { font-weight: 400; letter-spacing: 0; color: rgba(255, 255, 255, 0.5); }
.service-hero.tone-9 .crumbs .crumbs-sep { color: rgba(36, 28, 13, 0.5); }
.service-hero-top .crumbs-current { font-weight: 600; color: #ffffff; }
.service-hero-top .crumbs-root svg { display: none; }
.service-hero-top .close { display: none; }
.service-back { display: inline-flex; flex: none; align-items: center; gap: 4px; min-height: 36px; padding: 0 14px 0 8px; border: 0; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.18); color: #ffffff; font-size: var(--fs-m); font-weight: 700; text-decoration: none; white-space: nowrap; transition: background 160ms ease; }
.service-back:hover, .service-back:focus-visible { background: rgba(255, 255, 255, 0.28); color: #ffffff; border: 0; }
.service-back:active { background: rgba(255, 255, 255, 0.36); }
.service-hero.tone-9 .service-back { background: rgba(36, 28, 13, 0.08); color: #241c0d; }
.service-hero.tone-9 .service-back:hover, .service-hero.tone-9 .service-back:focus-visible { background: rgba(36, 28, 13, 0.14); color: #241c0d; }
@media (min-width: 641px) {
  .service-hero-top .crumbs { display: none; }
}
@media (max-width: 640px) {
  .service-back { display: none; }
}
.service-hero.tone-9 .crumbs, .service-hero.tone-9 .crumbs a, .service-hero.tone-9 .crumbs span { color: rgba(36, 28, 13, 0.78); }
.service-hero.tone-9 .crumbs-current { color: #241c0d; }
.service-hero-top .service-tools { flex: none; display: flex; gap: var(--sp-2); margin: 0; }
.service-hero-top .service-tools .tip,
.service-hero-top .service-tools .icon-button {
  width: 34px;
  height: 34px;
  min-height: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.16);
  border: 0;
  border-radius: var(--radius-small);
  color: currentColor;
}
.service-hero-top .service-tools .tip:hover,
.service-hero-top .service-tools .icon-button:hover { background: rgba(255, 255, 255, 0.28); color: currentColor; filter: none; }
.service-video-icon { position: relative; display: inline-flex; flex: none; }
.service-video-dot { position: absolute; top: -3px; right: -4px; width: 8px; height: 8px; border-radius: 50%; background: #f0445a; box-shadow: 0 0 0 1.5px #ffffff; pointer-events: none; animation: note-dot-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s both; }
.service-video-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #f0445a; animation: note-dot-ping 2.8s cubic-bezier(0, 0, 0.2, 1) 1s infinite; }
.service-video-dot.is-gone { animation: note-dot-out 0.26s cubic-bezier(0.32, 0.72, 0, 1) forwards; }
.service-video-dot.is-gone::after { animation: none; opacity: 0; }
.service-video-dot.is-more { top: calc(50% - 12px); right: calc(50% - 12px); }
@keyframes note-dot-in { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
@keyframes note-dot-ping { 0% { opacity: 0.55; transform: scale(1); } 45%, 100% { opacity: 0; transform: scale(2.6); } }
@keyframes note-dot-out { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(0); } }
@media (prefers-reduced-motion: reduce) {
  .service-video-dot, .service-video-dot.is-gone { animation: none; }
  .service-video-dot::after { display: none; }
}
.service-video { position: relative; display: inline-flex; flex: none; align-items: center; gap: var(--sp-2); height: 34px; min-height: 0; padding: 0 var(--sp-3) 0 10px; border: 0; border-radius: var(--radius-small); background: rgba(255, 255, 255, 0.16); color: currentColor; font: inherit; font-size: var(--fs-s); font-weight: 600; white-space: nowrap; cursor: pointer; transition: background 0.2s ease; }
.service-video:hover { background: rgba(255, 255, 255, 0.28); }
.service-video:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.dialog.video-window { width: min(1000px, calc(100% - 32px), calc((100vh - 270px) * 16 / 9 + 48px)); padding: 24px; border-radius: 28px; overflow-y: auto; }
.dialog.video-window[open] { display: flex; flex-direction: column; gap: 18px; }
.video-window-grip { display: none; }
.video-window-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.video-window-names { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.video-window-title { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }
.video-window-sub { margin: 0; font-size: 16px; font-weight: 600; color: var(--muted); }
.video-window-close { flex: none; display: grid; place-items: center; width: 44px; height: 44px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: #f1f2f5; color: var(--ink); cursor: pointer; transition: background var(--ease); }
.video-window-close:hover { background: #e4e5ea; }
.video-window-stage { position: relative; flex: none; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #0f1016; }
.video-window-stage:fullscreen { border-radius: 0; }
.video-window-clip { display: block; width: 100%; height: 100%; object-fit: contain; background: #0f1016; cursor: pointer; }
.video-window-stage::after { content: ""; position: absolute; inset: 0; background: rgba(15, 16, 22, 0.32); pointer-events: none; transition: opacity 0.3s ease; }
.video-window-stage.is-on::after { opacity: 0; }
.video-window-play { position: absolute; left: 50%; top: 50%; z-index: 1; display: inline-flex; align-items: center; gap: 12px; height: 64px; min-height: 0; padding: 0 28px 0 22px; border: 0; border-radius: 999px; background: #ffffff; color: var(--graphite); font: inherit; font-size: 18px; font-weight: 800; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3); cursor: pointer; transform: translate(-50%, -50%); transition: opacity 0.25s ease, transform 0.25s ease; }
.video-window-play:hover { transform: translate(-50%, -50%) scale(1.04); }
.video-window-len { position: absolute; right: 16px; bottom: 16px; z-index: 1; padding: 6px 12px; border-radius: 999px; background: rgba(15, 16, 22, 0.72); color: #ffffff; font-size: 14px; font-weight: 700; transition: opacity 0.25s ease; }
.video-window-stage.is-on .video-window-play, .video-window-stage.is-on .video-window-len { opacity: 0; pointer-events: none; }
.video-window-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; flex-direction: column; gap: 10px; padding: 44px 18px 12px; background: linear-gradient(to top, rgba(15, 16, 22, 0.78), rgba(15, 16, 22, 0)); color: #ffffff; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
.video-window-stage.is-on .video-window-bar { opacity: 1; pointer-events: auto; }
.video-window-stage:fullscreen .video-window-bar { padding-bottom: 20px; }
.video-window-track { display: flex; gap: 3px; padding: 8px 0; margin: -8px 0; cursor: pointer; }
.video-window-seg { flex: 1 1 0; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.35); overflow: hidden; }
.video-window-seg i { display: block; width: 0; height: 100%; background: #ffffff; }
.video-window-controls { display: flex; align-items: center; gap: 14px; }
.video-window-controls button { display: grid; place-items: center; flex: none; width: 36px; height: 36px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: none; color: #ffffff; cursor: pointer; transition: background var(--ease); }
.video-window-controls button:hover { background: rgba(255, 255, 255, 0.16); }
.video-window-time { flex: none; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.video-window-now { flex: 1 1 auto; min-width: 0; overflow: hidden; font-size: 15px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; opacity: 0.85; }
.video-window-resume, .video-window-quiet { display: none; }
.video-window-stage.is-paused .video-window-pause, .video-window-stage.is-muted .video-window-loud { display: none; }
.video-window-stage.is-paused .video-window-resume, .video-window-stage.is-muted .video-window-quiet { display: block; }
.video-window-rail { position: relative; flex: none; margin: 0 -24px; }
.video-window-rail::before, .video-window-rail::after { content: ""; position: absolute; top: 0; bottom: 0; z-index: 1; width: 72px; pointer-events: none; opacity: 0; transition: opacity 0.2s ease; }
.video-window-rail::before { left: 0; background: linear-gradient(90deg, var(--panel) 30%, transparent); }
.video-window-rail::after { right: 0; background: linear-gradient(270deg, var(--panel) 30%, transparent); }
.video-window-rail.has-back::before, .video-window-rail.has-more::after { opacity: 1; }
.video-window-parts { display: flex; gap: 8px; margin: 0; padding: 0 24px; list-style: none; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: 24px; scrollbar-width: none; }
.video-window-parts::-webkit-scrollbar { display: none; }
.video-window-arrow { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 36px; height: 36px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: #ffffff; color: var(--ink); box-shadow: 0 2px 10px rgba(16, 18, 32, 0.18); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(-50%) scale(0.9); transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s, background 0.2s ease; }
.video-window-arrow:hover { background: #f1f2f5; }
.video-window-arrow.is-back { left: 12px; }
.video-window-arrow.is-more { right: 12px; }
.video-window-rail.has-back .is-back, .video-window-rail.has-more .is-more { opacity: 1; visibility: visible; transform: translateY(-50%); }
.video-window-parts li { flex: none; scroll-snap-align: start; }
.video-window-parts button { display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 2px; width: auto; height: 100%; min-height: 0; padding: 10px 16px; white-space: nowrap; border: 0; border-radius: 14px; background: #f1f2f5; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: background var(--ease), color var(--ease); }
.video-window-parts button:hover { background: #e4e5ea; }
.video-window-parts b { font-size: 15px; font-weight: 700; }
.video-window-at { font-size: 13px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; transition: color var(--ease); }
.video-window-parts button[aria-current="true"] { background: var(--graphite); color: var(--graphite-ink); }
.video-window-parts button[aria-current="true"] .video-window-at { color: rgba(255, 255, 255, 0.72); }
.service-hero-name { display: flex; flex-direction: column; gap: var(--sp-2); }
.service-hero-name h1 { margin: 0; font-size: var(--fs-3xl); font-weight: 600; line-height: 1.12; letter-spacing: -0.022em; color: currentColor; }
.service-hero-sum { margin: 0; max-width: 620px; font-size: var(--fs-s); line-height: 1.5; color: inherit; opacity: 0.9; }
.service-hero-main { display: flex; align-items: flex-end; gap: var(--sp-4); }
.service-hero-main .service-hero-name { flex: 1 1 auto; min-width: 0; }
.service-hero-foot { flex: none; display: flex; align-items: center; gap: var(--sp-4); }
.service-mark {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 var(--sp-3);
  border-radius: var(--r-s);
  background: rgba(255, 255, 255, 0.18);
  font-size: var(--fs-xs);
  font-weight: 700;
}
.service-when { margin-left: auto; font-family: var(--font-mono); font-size: var(--fs-xs); opacity: 0.78; }
.service-cols { display: grid; grid-template-columns: 480px minmax(0, 1fr); align-items: start; }
.service-col-form { display: grid; gap: var(--sp-4); align-content: start; padding: var(--sp-5) var(--sp-5) var(--sp-5) var(--sp-5); }
.service-col-result { display: grid; gap: var(--sp-4); align-content: start; min-width: 0; padding: var(--sp-5) var(--sp-6) var(--sp-5) var(--sp-6); border-left: 1px solid var(--line-soft); }
.service-col-form .field { margin: 0; }
.service-col-form > form { display: grid; gap: var(--sp-4); }
.service-empty { display: grid; gap: var(--sp-4); }
.result-label { font-family: var(--font); font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase; color: var(--quiet); }
.service-empty-line { display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); margin: 0; text-align: center; }
.service-empty-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }
.service-empty-head .result-label { flex: 1 1 auto; }
.service-empty-tools { display: flex; flex-wrap: wrap; gap: var(--sp-2); min-width: 0; }
.service-empty-tools button, .service-empty-tools button:disabled {
  min-height: 32px;
  padding: 0 var(--sp-3);
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 500;
  border-radius: var(--radius-small);
  background: none;
  border: 1px solid #f0f3f8;
  color: #b4b5c4;
  cursor: default;
}
.service-empty-tools button:last-child { font-weight: 600; }
.service-col-form .field label { display: block; margin-bottom: var(--sp-2); font-size: var(--fs-s); font-weight: 600; }
.service-col-form .field .hint { margin: -2px 0 var(--sp-2); font-size: var(--fs-xs); color: var(--muted); }
.service-col-form input[type="text"], .service-col-form input[type="date"], .service-col-form input[type="month"], .service-col-form select {
  min-height: 44px;
  padding: 0 var(--sp-4);
  background: var(--field);
  border-color: var(--line-field);
}
.service-col-form input[inputmode="decimal"] {
  font-family: var(--font-mono);
  font-size: var(--fs-m);
  font-weight: 500;
}
.service-col-form input[type="date"] {
  font-family: var(--font-mono);
  font-size: var(--fs-s);
  font-weight: 500;
}
.service-col-form select { font-size: var(--fs-s); }
.service-col-form textarea[name="lines"] {
  min-height: 110px;
  font-family: var(--font-mono);
  font-size: var(--fs-s);
  line-height: 1.6;
}
.service-col-form textarea {
  min-height: 0;
  padding: var(--sp-3) var(--sp-4);
  background: var(--field);
  border-color: var(--line-field);
  border-radius: var(--r-m);
  font-size: var(--fs-s);
  line-height: 1.5;
  resize: none;
}
.service-col-form > form > button[type="submit"]:not(.doc-check) {
  min-height: 48px;
  margin-top: var(--sp-1);
  border-radius: var(--r-m);
  font-size: var(--fs-m);
  font-weight: 600;
  gap: var(--sp-2);
}
.service-col-result .result {
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}
.service-col-result .result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 var(--sp-3);
  margin: 0;
  overflow: visible;
}
.service-col-result .result::before { display: none; }
.service-col-result .result > * { grid-column: 1 / -1; margin-left: 0; }
.service-col-result .result h2 {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.service-col-result .result-tools { grid-column: 2; grid-row: 1; margin: 0; justify-content: flex-end; }
.service-col-result .result-tools button { min-height: 32px; padding: 0 var(--sp-3); gap: var(--sp-2); font-size: var(--fs-xs); font-weight: 500; border-radius: var(--radius-small); }
.service-col-result .result-tools button.secondary svg { color: #5a5b6e; }
@media (min-width: 900px) {
  .service-col-result .service-empty-head { display: contents; }
  .service-col-result .service-empty-tools { order: 99; align-self: center; position: relative; isolation: isolate; flex-wrap: nowrap; max-width: 100%; margin: var(--sp-5) 0 0; padding: 5px; gap: 4px; border: 1px solid transparent; border-radius: var(--r-pill); background: rgba(118, 118, 128, 0.08); }
  .service-col-result .service-empty-tools::before { content: ""; position: absolute; inset: -1px; z-index: 2; padding: 1px; border-radius: inherit; background: linear-gradient(170deg, rgba(60, 60, 67, 0.06) 0%, rgba(60, 60, 67, 0.14) 55%, rgba(60, 60, 67, 0.2) 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); pointer-events: none; }
  .service-col-result .service-empty-tools button, .service-col-result .service-empty-tools button:disabled { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; padding: 0 var(--sp-5); border: 0; border-radius: var(--r-pill); background: transparent; box-shadow: none; color: var(--quiet); font-size: var(--fs-s); font-weight: 700; }
  .service-col-result .result-tools:has(button) { grid-column: 1 / -1; grid-row: auto; order: 99; justify-self: center; justify-content: center; align-items: center; flex-wrap: nowrap; width: max-content; max-width: 100%; position: sticky; bottom: var(--sp-4); z-index: 40; isolation: isolate; margin: var(--sp-5) 0 0; padding: 5px; gap: 4px; border: 1px solid transparent; border-radius: var(--r-pill); background: rgba(118, 118, 128, 0.08); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); box-shadow: none; transition: background 320ms cubic-bezier(0.32, 0.72, 0, 1), box-shadow 320ms cubic-bezier(0.32, 0.72, 0, 1); }
  .service-col-result .result-tools:has(button)::before { content: ""; position: absolute; inset: -1px; z-index: 2; padding: 1px; border-radius: inherit; background: linear-gradient(170deg, rgba(60, 60, 67, 0.06) 0%, rgba(60, 60, 67, 0.14) 55%, rgba(60, 60, 67, 0.2) 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); pointer-events: none; }
  .service-col-result .result-tools.is-stuck:has(button) { background: rgba(255, 255, 255, 0.72); box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(16, 24, 40, 0.06), 0 16px 36px -16px rgba(16, 24, 40, 0.35); }
  html.is-liquid .service-col-result .result-tools.is-stuck:has(button) { background: rgba(255, 255, 255, 0.77); -webkit-backdrop-filter: url(#glass-bar) blur(4px) saturate(1.7); backdrop-filter: url(#glass-bar) blur(4px) saturate(1.7); box-shadow: inset 1.5px 1.5px 0 rgba(255, 255, 255, 0.95), inset -1px -1px 0 rgba(255, 255, 255, 0.55), inset 0 0 18px rgba(255, 255, 255, 0.45), inset 0 -10px 18px -12px rgba(25, 26, 36, 0.12), 0 1px 2px rgba(16, 24, 40, 0.06), 0 18px 40px -20px rgba(16, 24, 40, 0.45); }
  html.is-liquid .service-col-result .result-tools.is-stuck:has(button)::before { opacity: 0; }
  html.is-liquid .service-col-result .result-tools.is-stuck:has(button)::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(120% 90% at 20% -10%, rgba(255, 255, 255, 0.55), transparent 55%), radial-gradient(90% 80% at 90% 120%, rgba(255, 255, 255, 0.28), transparent 60%); pointer-events: none; }
  .service-col-result .result-tools:has(button) button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; padding: 0 var(--sp-5); border: 0; border-radius: var(--r-pill); background: transparent; box-shadow: none; color: var(--ink-2); font-size: var(--fs-s); font-weight: 700; transition: background var(--ease), color var(--ease); }
  .service-col-result .result-tools:has(button) button:hover, .service-col-result .result-tools:has(button) button:focus-visible { background: rgba(118, 118, 128, 0.12); color: var(--ink); }
  .service-col-result .result-tools:has(button) .discuss-button { min-height: 44px; padding: 0 var(--sp-5); border: 0; border-radius: var(--r-pill); background: var(--graphite); color: var(--graphite-ink); font-size: var(--fs-s); font-weight: 700; box-shadow: 0 8px 20px -10px rgba(25, 26, 36, 0.6); }
  .service-col-result .result-tools:has(button) .discuss-button:hover, .service-col-result .result-tools:has(button) .discuss-button:focus-visible { background: var(--graphite-hover); color: var(--graphite-ink); }
  .service-col-result .result-tools:has(button) .result-state { margin: 0; padding: 0 var(--sp-3); }
}
.service-col-result .result dl { margin-top: var(--sp-4); }
.service-col-result .result-line { gap: var(--sp-3); padding: var(--sp-1) 0; flex-wrap: nowrap; align-items: baseline; }
.service-col-result .result-line::after {
  content: "";
  order: 1;
  flex: 1 1 auto;
  min-width: 18px;
  border-bottom: 1px dotted var(--line-field);
  transform: translateY(-4px);
}
.service-col-result .result-line dt { flex: 0 1 auto; order: 0; font-size: var(--fs-s); color: var(--ink-2); }
.service-col-result .result-line dd { order: 2; margin: 0; font-family: var(--font-mono); font-size: var(--fs-m); font-weight: 500; }
.service-col-result .result-line.emphasis {
  margin: var(--sp-3) 0 0;
  padding: var(--sp-4) 0 0;
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
}
.service-col-result .result-line.emphasis::after { display: none; }
.service-col-result .result-line.emphasis dt { font-size: var(--fs-m); font-weight: 600; color: var(--ink); }
.service-col-result .result-line.emphasis dd {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: var(--fs-2xl);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.service-col-form .field-label { display: block; font-size: var(--fs-s); font-weight: 600; }
.field-file { display: grid; gap: var(--sp-2); }
.field-file .hint { margin: 0; font-size: var(--fs-xs); line-height: 1.45; }
.file-slot { display: grid; gap: var(--sp-2); position: relative; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.file-input:focus-visible + .file-pick, .file-slot:focus-within .file-pick { outline: 2px solid var(--accent); outline-offset: 2px; }
.file-card { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-4) var(--sp-4); border-radius: var(--r-m); background: var(--surface-soft); }
.file-card[hidden], .file-pick[hidden], .drop-veil[hidden] { display: none; }
.file-icon { display: flex; align-items: center; justify-content: center; flex: none; width: 38px; height: 38px; border-radius: var(--r-m); background: #eff3fa; color: #8a8b9c; }
.file-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-s); font-weight: 600; }
.file-facts { font-family: var(--font); font-size: var(--fs-xs); color: var(--muted); }
.file-clear { display: flex; align-items: center; justify-content: center; flex: none; width: 30px; height: 30px; min-height: 0; padding: 0; border-radius: var(--r-s); background: none; color: var(--muted); border: 0; }
.file-clear:hover { background: var(--line-soft); color: var(--ink); filter: none; }
.service-col-form .file-pick, .file-pick { display: inline-flex; margin: 0; align-items: center; justify-content: center; gap: var(--sp-2); height: 44px; border-radius: var(--radius-control); border: 1.5px dashed var(--line-strong); color: var(--accent-dark); background: var(--field); font-size: var(--fs-s); font-weight: 600; cursor: pointer; }
.file-pick:hover { border-color: var(--accent); background: var(--accent-soft); }
.file-slot:has([data-file-saved]) .file-pick { height: 36px; font-size: var(--fs-s); border-style: solid; border-width: 1px; border-color: var(--line-field); background: var(--panel); }
.drop-note { margin: 0; }
.service.drop-zone.dropping { box-shadow: none; }
.service.drop-zone.dropping::after { content: none; }
.drop-veil { position: absolute; inset: 0; z-index: 8; display: none; align-items: stretch; padding: var(--sp-4); background: color-mix(in srgb, var(--tone-soft, var(--accent-soft)) 88%, transparent); backdrop-filter: blur(2px); pointer-events: none; }
.service.drop-zone.dropping .drop-veil, .stage.dropping > .drop-veil { display: flex; }
.stage { position: relative; }
.stage > .drop-veil { background: color-mix(in srgb, var(--accent-soft) 88%, transparent); border-radius: var(--radius); }
.stage > .drop-veil .drop-veil-frame { border-color: #2f66c4; color: #1a3878; }
.stage > .drop-veil .drop-veil-icon { color: #2f66c4; }
.drop-veil-frame { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-4); border: 2px dashed var(--tone-ink, var(--accent)); border-radius: var(--radius-card); color: var(--tone-ink, var(--accent-dark)); }
.drop-veil-icon { display: flex; align-items: center; justify-content: center; color: var(--tone-ink, currentColor); width: 68px; height: 68px; border-radius: 50%; background: var(--panel); box-shadow: 0 10px 26px -14px rgba(25, 26, 36, 0.5); }
.drop-veil-title { font-size: var(--fs-2xl); font-weight: 600; letter-spacing: -0.018em; }
.drop-veil-sub { font-size: var(--fs-s); color: var(--ink-2); }

.field[hidden] { display: none; }
.opt-tag { margin-left: var(--sp-2); font-family: var(--font); font-size: var(--fs-xs); font-weight: 600; color: var(--quiet); }
.req-tag { color: var(--error); font-weight: 700; }
.service-col-form .field .hint.hint-after { margin: var(--sp-2) 0 0; font-size: var(--fs-xs); line-height: 1.45; }
.service-col-form .field.has-tip { position: relative; }
.field-tip { position: absolute; z-index: 30; left: 0; right: 0; bottom: calc(100% - 2px); display: grid; gap: var(--sp-1); padding: var(--sp-3) var(--sp-4); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 20px; background: rgba(255, 255, 255, 0.62); -webkit-backdrop-filter: blur(18px) saturate(1.8); backdrop-filter: blur(18px) saturate(1.8); box-shadow: inset 1.5px 1.5px 0 rgba(255, 255, 255, 0.9), inset -1px -1px 0 rgba(255, 255, 255, 0.54), inset 0 0 18px rgba(255, 255, 255, 0.4), 0 12px 30px -14px rgba(24, 36, 72, 0.45), 0 2px 6px rgba(25, 26, 36, 0.08); opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s; pointer-events: none; }
.field-tip::after { content: ""; position: absolute; left: 28px; bottom: -7px; width: 14px; height: 14px; border-right: 1px solid rgba(25, 26, 36, 0.06); border-bottom: 1px solid rgba(25, 26, 36, 0.06); background: rgba(255, 255, 255, 0.94); box-shadow: 3px 3px 6px -3px rgba(24, 36, 72, 0.22); transform: rotate(45deg); }
.card-bubble { position: fixed; z-index: 90; display: grid; gap: var(--sp-2); width: min(380px, calc(100vw - 24px)); padding: var(--sp-3) var(--sp-4); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 20px; background: rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6); box-shadow: inset 1.5px 1.5px 0 rgba(255, 255, 255, 0.9), 0 18px 40px -16px rgba(24, 36, 72, 0.55), 0 2px 6px rgba(25, 26, 36, 0.1); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s; }
.card-bubble.is-on { opacity: 1; visibility: visible; transform: none; }
.card-bubble::before { content: ""; position: absolute; top: -7px; left: calc(var(--tail, 40px) - 7px); width: 14px; height: 14px; border-left: 1px solid rgba(25, 26, 36, 0.06); border-top: 1px solid rgba(25, 26, 36, 0.06); background: rgba(255, 255, 255, 0.94); transform: rotate(45deg); }
.card-bubble .card-notice { margin: 0; padding: 0; border: 0; background: none; color: var(--ink); font-size: var(--fs-m); }
.card-bubble .card-notice a { color: var(--accent-dark, var(--ink)); }
.stage-company.has-note { position: relative; }
.stage-company.has-note::after { content: ""; position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: #ff9f0a; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85); }
@media (prefers-reduced-motion: reduce) { .card-bubble { transition: none; } }
.field.tip-below > .field-tip { top: calc(100% - 2px); bottom: auto; transform: translateY(-4px); }
.field.tip-below > .field-tip::after { top: -7px; bottom: auto; transform: rotate(225deg); }
.service-col-form .field-tip .hint.hint-after { margin: 0; font-size: var(--fs-m); line-height: 1.45; color: var(--ink); }
.field-tip:not(:has(> .hint:not([hidden]))) { display: none; }
.field.has-tip:focus-within > .field-tip { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 1s; }
@media (hover: hover) { .field.has-tip:hover > .field-tip { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 1s; } }
.field.has-tip:has(.field-error) > .field-tip, .field.has-tip:has(.pk-date, .pk-list) > .field-tip { display: none; }
html[data-no-tips] .field-tip { display: none; }
.field-tip-off { justify-self: start; margin-top: 2px; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: var(--fs-s); cursor: pointer; }
.field-tip-off:hover, .field-tip-off:focus-visible { color: var(--ink); text-decoration: underline; }
.field-tip.is-gone { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.field-tip.is-gone .field-tip-gone { color: var(--muted); }
.service-col-form .field .clarify { margin: var(--sp-1) 0 var(--sp-2); padding: var(--sp-3) var(--sp-4) var(--sp-3) var(--sp-6); border-radius: var(--radius-control); background: var(--accent-soft); color: var(--ink); font-size: var(--fs-s); line-height: 1.5; }
.seg-label { display: block; margin-bottom: var(--sp-2); font-size: var(--fs-s); font-weight: 600; }
.seg { display: flex; gap: var(--sp-1); padding: var(--sp-1); border-radius: var(--r-m); background: #eff3fa; }
.service-col-form .seg-item { position: relative; display: block; flex: 1 1 0; margin: 0; font-weight: 500; }
.seg-item input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg-item span { display: flex; align-items: center; justify-content: center; height: 40px; padding: 0 var(--sp-3); border-radius: var(--r-s); color: #5a5b6e; font-size: var(--fs-s); text-align: center; }
.seg-item:has(input:checked) span { background: var(--panel); box-shadow: 0 1px 2px rgba(25, 26, 36, 0.08); color: var(--ink); font-weight: 600; }
.seg-item:has(input:focus-visible) span { outline: 2px solid var(--accent); outline-offset: 1px; }
.ref-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1) var(--sp-2); padding-top: 2px; }
.ref-line[hidden], .ref-note[hidden], .ref-link[hidden] { display: none; }
.ref-note { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-xs); color: var(--ink-2); }
.ref-note svg { flex: none; }
.ref-ok svg { color: var(--accent); }
.ref-note b { font-family: var(--font-mono); font-weight: 600; color: var(--ink); }
.ref-diff { color: #8a6a2a; }
.ref-diff svg, .ref-diff b { color: #a97c2f; }
.ref-link { min-height: 0; margin-left: auto; padding: 2px 0; border: 0; background: none; color: var(--accent-dark); font: inherit; font-size: var(--fs-xs); font-weight: 600; text-decoration: underline; text-align: left; cursor: pointer; }
.ref-link:hover, .ref-link:focus-visible { background: none; color: var(--accent); filter: none; }
.range-link { display: inline-flex; align-items: center; gap: var(--sp-2); margin: var(--sp-1) 0 0; font-size: var(--fs-xs); }
.range-link svg { flex: none; }
.field:has([data-ref-diff]:not([hidden])) input[type="text"] { border-color: #e0d9c8; background: #fbf9f4; }
.dep-block { display: grid; gap: var(--sp-4); margin-left: 2px; padding-left: var(--sp-4); border-left: 2px solid #c5d3ec; }
.dep-block:not(:has(.field:not([hidden]))) { display: none; }
.field-row[data-group="period"] > .field:nth-child(1) { flex: 0 0 116px; }
.field-row[data-group="period"] > .field:nth-child(2) { flex: 1 1 0; }
.field-row[data-group="range"] { gap: var(--sp-3); }
.field-row[data-group="range"] > .field:nth-child(n) { flex: 1 1 0; }
.combo { position: relative; display: flex; align-items: center; }
.combo-source { display: none; }
.combo-icon { position: absolute; left: 13px; color: var(--muted); pointer-events: none; }
.service-col-form input.combo-input[type="text"], .combo-input { width: 100%; min-height: 46px; padding: 0 var(--sp-4) 0 var(--sp-6); border: 1px solid var(--line-field); border-radius: var(--r-m); background: var(--field); font-size: var(--fs-m); }
.combo-input:focus { border: 1.5px solid #2f66c4; background: var(--panel); box-shadow: 0 0 0 3px rgba(47, 102, 196, 0.12); outline: none; }
.combo-list { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; max-height: 360px; overflow-y: auto; border: 1px solid var(--line-card); border-radius: var(--r-m); background: var(--panel); box-shadow: 0 12px 30px -18px rgba(24, 36, 72, 0.5); }
.combo-list[hidden] { display: none; }
.combo-head { padding: var(--sp-3) var(--sp-4) var(--sp-2); font-family: var(--font); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.combo-row { display: flex; align-items: center; gap: var(--sp-3); width: 100%; min-height: 0; padding: var(--sp-2) var(--sp-4); border: 0; border-radius: 0; background: transparent; color: var(--ink); font: inherit; font-size: var(--fs-s); text-align: left; cursor: pointer; }
.combo-row:hover, .combo-row.is-active { background: #eff3fa; color: var(--ink); filter: none; }
.combo-row.is-current .combo-name { font-weight: 600; }
.combo-flag { display: inline-flex; flex: none; width: 24px; height: 16px; border-radius: 3px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(25, 26, 36, 0.12); }
.combo-flag svg { display: block; }
.combo-code { flex: none; min-width: 44px; font-family: var(--font-mono); font-size: var(--fs-s); font-weight: 700; }
.combo-name { flex: 1 1 auto; font-weight: 500; }
.combo-none { padding: var(--sp-3) var(--sp-4); font-size: var(--fs-s); color: var(--muted); }
.combo-foot { padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--line-soft); font-family: var(--font); font-size: var(--fs-xs); color: var(--quiet); }
.rare-fields { border-radius: var(--radius-control); background: var(--surface-soft); }
.rare-fields > summary { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); cursor: pointer; font-size: var(--fs-s); font-weight: 600; list-style: none; }
.rare-fields > summary::-webkit-details-marker { display: none; }
.rare-fields > summary::before { content: ""; width: 7px; height: 7px; border-right: 1.8px solid var(--muted); border-bottom: 1.8px solid var(--muted); transform: rotate(-45deg); transition: transform var(--ease); }
.rare-fields[open] > summary::before { transform: rotate(45deg); }
.rare-count { margin-left: auto; font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500; color: var(--muted); }
.rare-body { display: grid; gap: var(--sp-4); padding: var(--sp-1) var(--sp-4) var(--sp-4); }
.rare-body .field { margin: 0; }
.field-row { display: flex; gap: var(--sp-3); }
.field-row > .field { flex: 1 1 0; min-width: 0; }
.field-row > .field:nth-child(1) { flex: 0 0 148px; }
.field-row > .field:nth-child(2) { flex: 0 0 88px; }
.field-row > .field:nth-child(3) { flex: 1 1 0; }
.field-row input[type="date"] { padding: 0 var(--sp-2) 0 var(--sp-3); font-size: var(--fs-s); }
.company-note { display: flex; align-items: flex-start; gap: var(--sp-3); margin: 0; padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-control); background: var(--surface-soft); font-size: var(--fs-xs); line-height: 1.45; color: var(--ink-2); }
.company-note svg { flex: none; margin-top: 1px; color: var(--quiet); }
.company-note b { font-weight: 600; color: var(--ink); }
.service-col-form .actions { flex-wrap: nowrap; gap: var(--sp-2); margin-top: var(--sp-1); }
.service-col-form .doc-download { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); min-height: 48px; border-radius: var(--r-m); font-size: var(--fs-m); font-weight: 600; }
.service-col-form .doc-pdf { min-height: 48px; padding: 0 var(--sp-4); border-radius: var(--r-m); font-family: var(--font); font-size: var(--fs-s); font-weight: 600; border-color: var(--line-field); background: var(--panel); }
.service-col-form .doc-check { min-height: 40px; border-radius: var(--r-m); border-color: var(--line-field); font-size: var(--fs-s); font-weight: 600; }
.service-col-form .run-button { display: flex; align-items: center; justify-content: center; gap: var(--sp-2); }
.run-cost { display: block; text-align: center; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--quiet); }
.doc-source { margin: 0; padding-top: var(--sp-4); border-top: 1px solid var(--line-soft); font-size: var(--fs-xs); line-height: 1.5; color: var(--quiet); }

.service-col-result.on-paper { background: var(--field); align-content: stretch; grid-template-rows: minmax(0, 1fr); }
.service-col-result.on-paper .result-sheet { grid-template-rows: auto minmax(0, 1fr); align-content: stretch; }
.service-col-result .result-tools .export-button { font-family: var(--font-mono); font-size: var(--fs-xs); }
.service-col-result .result-tools .discuss-button, .discuss-button { order: 9; display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 32px; padding: 0 var(--sp-3); border-radius: var(--radius-small); border: 1px solid #c5d3ec; background: var(--accent-soft); color: var(--accent-dark); font-size: var(--fs-xs); font-weight: 600; }
.discuss-button:hover { background: var(--panel); border-color: var(--accent); filter: none; }
.service-col-result .result-stamp { margin-top: var(--sp-4); font-family: var(--font); font-size: var(--fs-xs); }
.service-col-result .result-sheet { gap: var(--sp-4) var(--sp-3); }
.sheet { display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-5) var(--sp-6); background: var(--panel); border: 1px solid var(--line-card); box-shadow: 0 1px 2px rgba(25, 26, 36, 0.04), 0 18px 40px -28px rgba(24, 36, 72, 0.4); }
.sheet-head { display: flex; align-items: flex-start; gap: var(--sp-4); padding-bottom: var(--sp-4); border-bottom: 1px solid var(--line-card); }
.sheet-heading { display: flex; flex-direction: column; gap: 3px; }
.sheet-kind { font-family: var(--font); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--quiet); }
.sheet-title { font-family: var(--font); font-size: var(--fs-l); font-weight: 600; }
.sheet-source { margin-left: auto; font-family: var(--font); font-size: var(--fs-xs); color: #a5a6b6; }
.sheet-parties { display: flex; gap: var(--sp-7); }
.sheet-party { display: flex; flex-direction: column; gap: var(--sp-1); min-width: 0; }
.sheet-role { font-family: var(--font); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--quiet); }
.sheet-name { font-size: var(--fs-s); font-weight: 600; }
.sheet-inn { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); }
.sheet-table { width: 100%; border-collapse: collapse; font-size: var(--fs-s); }
.sheet-table th { padding: 0 0 var(--sp-2); border-bottom: 1px solid var(--ink); text-align: left; font-family: var(--font); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.sheet-table td { padding: var(--sp-3) 0; border-bottom: 1px solid var(--line-soft); }
.sheet-table .num { text-align: right; font-family: var(--font-mono); padding-left: var(--sp-3); white-space: nowrap; }
.sheet-table thead .num { font-family: var(--font-mono); }
.sheet-table tfoot th { padding: var(--sp-3) 0 0; border: 0; text-align: left; font-family: var(--font); font-size: var(--fs-s); font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink); }
.sheet-table tfoot td { padding: var(--sp-3) 0 0; border: 0; font-size: var(--fs-m); font-weight: 600; }
.sheet-check { display: flex; align-items: center; gap: var(--sp-2); margin: auto 0 0; font-size: var(--fs-xs); color: var(--ink-2); }
.sheet-check svg { flex: none; color: var(--accent); }

.analysis.is-blocks { white-space: normal; font-family: var(--font); font-size: var(--fs-s); line-height: 1.5; margin-top: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-4); }
.an-section { display: flex; flex-direction: column; gap: var(--sp-3); }
.an-section + .an-section { padding-top: var(--sp-4); border-top: 1px solid var(--line-soft); }
.an-section.an-risk { padding-top: 0; border-top: 0; }
.an-label { margin: 0; font-family: var(--font); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.an-risk .an-label { color: #9b3a3a; }
.an-lead { margin: 0; font-size: var(--fs-s); line-height: 1.55; color: var(--ink-2); }
.an-sub { margin: var(--sp-1) 0 0; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); }
.an-items { display: flex; flex-direction: column; gap: var(--sp-3); margin: 0; padding: 0; list-style: none; }
.an-item { display: flex; flex-direction: column; gap: 3px; }
.an-title { font-size: var(--fs-l); font-weight: 600; line-height: 1.3; }
.an-body { margin: 0; font-size: var(--fs-s); line-height: 1.5; color: #5a5b6e; }
.an-tag { font-weight: 700; color: var(--ink); }
.an-line { font-size: var(--fs-s); line-height: 1.5; color: #3f4052; }
.an-check .an-item { position: relative; padding-left: var(--sp-5); }
.an-check .an-item::before { content: ""; position: absolute; left: 0; top: 3px; width: 15px; height: 15px; background: currentColor; opacity: 0.45; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 8.5v4.5M12 16.4h.01'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 8.5v4.5M12 16.4h.01'/%3E%3C/svg%3E") center / contain no-repeat; }
.an-figure { font-family: var(--font-mono); font-weight: 600; color: var(--ink); }
.service-head { display: flex; gap: var(--sp-4); align-items: flex-start; justify-content: space-between; margin-bottom: var(--sp-3); }
.service-head h1 { margin: 0; }
.service-head .close { flex: none; margin-top: var(--sp-1); }
.service-head .service-tools { flex: none; margin-top: var(--sp-2); }
.panel-body .service,
.chat-service-body .service {
  position: static;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.panel-body > .service > .service-tools { position: absolute; top: 20px; right: 66px; }
#service-dialog .dialog-title { padding-right: 136px; }
body.has-footer { min-height: 100vh; display: flex; flex-direction: column; }
body.has-footer #main { flex: 1 0 auto; display: flex; flex-direction: column; }
body.has-footer .footer { margin-top: auto; }
.footer {
  margin: 0 var(--sp-5) var(--sp-5);
  padding: var(--sp-5) var(--sp-6) var(--sp-4);
  background: linear-gradient(160deg, #35364a 0%, #24252f 60%, #1b1c26 100%);
  color: var(--deep-ink);
  border: 0;
  border-radius: var(--radius);
}
.footer-inner {
  display: grid;
  grid-template-columns: 300px repeat(2, minmax(0, auto)) minmax(0, 1fr);
  gap: var(--sp-5) var(--sp-7);
  align-items: start;
}
.footer { container-type: inline-size; }
@container (max-width: 1220px) {
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5) var(--sp-6); }
  .footer-brand { order: 0; }
  .footer-call { order: 1; }
  .footer-col { order: 2; }
}
@container (max-width: 620px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-inner .footer-call, .footer-inner .footer-mail { justify-items: start; text-align: left; }
}
.footer-brand { display: grid; gap: var(--sp-2); align-content: start; }
.footer-mark { display: inline-flex; align-items: center; gap: var(--sp-2); font-family: var(--font-brand); font-size: var(--fs-m); font-weight: 500; letter-spacing: -0.02em; color: var(--panel); }
.footer-about { margin: 0; font-size: var(--fs-xs); line-height: 1.5; color: var(--deep-muted); }
.footer-col { display: grid; gap: var(--sp-2); align-content: start; }
.footer-col a { font-size: var(--fs-s); color: #dfe4ee; text-decoration: none; }
.footer-col a:hover, .footer-col a:focus-visible { color: var(--panel); text-decoration: underline; }
.footer-label {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #8b89a0;
}
.footer-call { display: grid; gap: var(--sp-1); justify-items: end; text-align: right; }
.footer-phone {
  font-family: var(--font-mono);
  font-size: var(--fs-2xl);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--panel);
  text-decoration: none;
  white-space: nowrap;
}
.footer-phone:hover, .footer-phone:focus-visible { color: var(--deep-muted); }
.footer-note { margin: 0; font-size: var(--fs-xs); color: var(--deep-muted); }
.footer-mail { display: grid; gap: 1px; margin-top: var(--sp-2); justify-items: end; font-size: var(--fs-s); font-weight: 600; color: #dfe4ee; text-decoration: none; }
.footer-mail-address { font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500; color: var(--deep-muted); }
.footer-link { font-size: var(--fs-s); color: #dfe4ee; text-decoration: none; }
.footer-mail:hover, .footer-mail:focus-visible, .footer-link:hover, .footer-link:focus-visible { color: var(--panel); text-decoration: underline; }
.footer-partner {
  display: inline-flex;
  align-items: center;
  height: 34px;
  margin-top: var(--sp-2);
  padding: 0 var(--sp-4);
  border-radius: var(--r-s);
  background: var(--accent);
  color: var(--panel);
  font-size: var(--fs-s);
  font-weight: 600;
  text-decoration: none;
}
.footer-partner:hover, .footer-partner:focus-visible { filter: brightness(1.12); color: var(--panel); }
.footer-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4);
  margin-top: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-copy { margin: 0; font-family: var(--font); font-size: var(--fs-xs); color: #8b89a0; }
.footer-logo { display: block; width: 120px; height: auto; filter: brightness(0) invert(1); opacity: 0.7; }
.footer-warn { margin: 0 0 0 auto; font-size: var(--fs-xs); color: #8b89a0; }
@media (max-width: 899px) {
  .footer { margin: 0 var(--sp-3) var(--sp-4); padding: var(--sp-4) var(--sp-4) var(--sp-4); }
  .footer-inner { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
  .footer-call { justify-items: start; text-align: left; }
  .footer-mail { justify-items: start; }
  .footer-warn { margin-left: 0; }
}
@media print {
  .footer { display: none; }
}
.service-top { display: flex; gap: var(--sp-4); align-items: center; justify-content: space-between; margin-bottom: var(--sp-4); }
.service-top .close { flex: none; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); min-width: 0; font-size: var(--fs-m); }
.crumbs-root {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding-bottom: var(--sp-1);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--ink);
}
.crumbs-root:hover, .crumbs-root:focus-visible { color: var(--accent); border-bottom-color: var(--accent); }
.crumbs-root svg { flex: none; color: var(--accent); }
.crumbs-sep { color: var(--line-strong); }
.crumbs-group {
  flex: none;
  padding-bottom: var(--sp-1);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--ease), border-color var(--ease);
}
.crumbs-group:hover, .crumbs-group:focus-visible { color: var(--accent); border-bottom-color: var(--accent); }
.crumbs-current { color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.service > .hint { margin-bottom: var(--sp-4); }
.service > .hint.reference {
  margin: var(--sp-1) 0 var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-s);
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
}
.service > .hint.see-also { margin: calc(-1 * var(--sp-2)) 0 var(--sp-4); font-size: var(--fs-s); }
.service form { margin-top: var(--sp-5); }
.service .disclaimer, .service .footnote { margin: var(--sp-5) 0 0; font-size: var(--fs-s); color: var(--muted); }
.printed-on { display: none; }

.prefill {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  margin: 0 0 var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  background: var(--surface-soft);
  border-radius: var(--r-m);
  color: #7a7b8e;
}
.service-col-form .prefill { margin: 0; }
.prefill svg { flex: none; margin-top: 1px; }
.prefill-text { font-size: var(--fs-xs); line-height: 1.45; color: var(--ink-2); }
.prefill form { display: inline; margin: 0; }
.prefill .prefill-forget {
  display: inline;
  min-height: 0;
  padding: 0;
  background: none;
  border: 0;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--accent-dark);
  text-decoration: underline;
}
.prefill .prefill-forget:hover { background: none; filter: none; color: var(--accent-dark); }

.result {
  position: relative;
  margin: var(--sp-2) 0 var(--sp-1);
  padding: var(--sp-5) var(--sp-5);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  overflow: hidden;
}
.result-stamp {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin: var(--sp-4) 0 0;
  padding-top: var(--sp-3);
  font-size: var(--fs-s);
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.result-stamp .orb-mini { --orb-mini-s: 14px; }
.result-stamp:not(:has(> span)) { justify-content: flex-end; padding-top: 0; border-top: 0; }
.go-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2) var(--sp-3); }
.go-head .result-report { margin-left: auto; }
.report-open.result-report { position: relative; width: 36px; height: 36px; min-height: 36px; padding: 0; gap: 0; justify-content: center; background: transparent; box-shadow: none; }
.report-open.result-report svg { width: 36px; height: 36px; padding: 9px; background: rgba(120, 120, 128, 0.12); color: var(--ink-2); }
.report-open.result-report:hover, .report-open.result-report:focus-visible { background: transparent; }
.report-open.result-report:hover svg, .report-open.result-report:focus-visible svg { background: rgba(255, 59, 48, 0.14); color: #ff3b30; }
.report-open.result-report > span { position: absolute; z-index: 30; right: -4px; bottom: calc(100% + 8px); padding: 6px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.97); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 12px 28px -14px rgba(16, 24, 40, 0.4); color: var(--ink); font-size: 13px; font-weight: 600; white-space: nowrap; opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s; pointer-events: none; }
.report-open.result-report:focus-visible > span { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) { .report-open.result-report:hover > span { opacity: 1; visibility: visible; transform: none; transition-delay: 0.3s; } }
.result-report-row { display: flex; justify-content: flex-end; margin-top: var(--sp-4); }
.result::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, #c979ee, #74bcd6);
}
.result > * { margin-left: var(--sp-2); }
.result h2 { margin: 0 0 var(--sp-3); font-weight: 600; font-size: var(--fs-xl); }
.result dl { margin: 0; }
.result-line {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1) var(--sp-4);
  justify-content: space-between;
  padding: var(--sp-2) 0;
}
.result-line dt { flex: 1 1 200px; color: var(--muted); font-size: var(--fs-m); }
.result-line dd { flex: 0 1 auto; margin: 0 0 0 auto; font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }
.result-line.emphasis {
  margin: var(--sp-2) 0 2px;
  padding: var(--sp-4) var(--sp-4);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
}
.result-line.emphasis dt { color: var(--ink); font-size: var(--fs-m); font-weight: 700; align-self: center; }
.result-line.emphasis dd { font-size: var(--fs-2xl); font-weight: 600; line-height: 1.2; color: var(--accent-dark); }
.result > .hint { margin: var(--sp-3) 0 0; font-size: var(--fs-s); }
.result-tools { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.result-tools:empty { display: none; }
.result-tools form { margin: 0; }
.result-tools button { min-height: 36px; padding: 0 var(--sp-4); font-size: var(--fs-s); }
.analysis { margin-top: var(--sp-3); white-space: pre-wrap; font-size: var(--fs-l); line-height: 1.6; font-weight: 400; }
.analysis:empty { display: none; }
.review-notes {
  margin-top: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  background: var(--surface-soft);
  color: var(--muted);
  white-space: pre-wrap;
  line-height: 1.5;
  font-size: var(--fs-s);
}
.review-notes .hint { margin: 0 0 var(--sp-2); font-style: italic; }
.result-table { margin-top: var(--sp-4); overflow-x: auto; }
.result-table h3 { margin: 0 0 var(--sp-2); }
.result-table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  overflow: hidden;
  font-size: var(--fs-m);
}
.result-table th, .result-table td { padding: var(--sp-3) var(--sp-3); text-align: left; vertical-align: top; }
.result-table th { color: var(--muted); font-weight: 600; font-size: var(--fs-s); letter-spacing: 0.02em; background: var(--accent-soft); }
.result-table tbody tr:nth-child(even) td { background: var(--surface-soft); }
.reference-table td:first-child, .reference-table td:nth-child(2) { white-space: nowrap; font-weight: 600; }

body.body-pages { --topbar: 0px; }
.shell-page .page-column { display: flex; flex-direction: column; gap: var(--sp-5); min-width: 0; }
.shell-page .page-column > .page { width: 100%; }
.shell-page .page-column > .footer { margin: 0; }
.service.reference { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
.rb-body { flex: 1 1 auto; min-height: 0; display: flex; overflow: hidden; }
.rb-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-5) var(--sp-5) 0 var(--sp-6); overflow: hidden; }
.rb-search { position: relative; display: flex; align-items: center; flex: none; }
.rb-search > svg { position: absolute; left: 15px; color: var(--muted); pointer-events: none; }
.rb-search input[type="search"] { width: 100%; height: 50px; padding: 0 130px 0 var(--sp-7); border-radius: var(--r-m); border: 1.5px solid var(--line-field); background: var(--panel); font-size: var(--fs-m); }
.rb-search input[type="search"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.rb-found { position: absolute; right: 16px; font-family: var(--font); font-size: var(--fs-xs); color: var(--quiet); }
.rb-filters { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-2); flex: none; }
.rb-filters .spacer { flex: 1 1 auto; }
.rb-filters-label { margin-right: 2px; font-family: var(--font); font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.rb-chip, .rb-export { display: inline-flex; align-items: center; gap: var(--sp-2); height: 30px; min-height: 0; padding: 0 var(--sp-3); border-radius: var(--radius-small); border: 1px solid var(--line); background: var(--panel); color: var(--ink); font-size: var(--fs-xs); font-weight: 500; }
.rb-chip.is-on { border-color: #c5d3ec; background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; }
.rb-chip:hover, .rb-export:hover { border-color: var(--accent); background: var(--panel); color: var(--accent-dark); filter: none; }
.rb-chip.is-on:hover { background: var(--accent-soft); }
.rb-table { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.rb-head { display: flex; gap: var(--sp-4); padding: 0 var(--sp-3) var(--sp-2); border-bottom: 1px solid var(--ink); font-family: var(--font); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.rb-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.rb-row { display: flex; gap: var(--sp-4); align-items: baseline; width: 100%; min-height: 0; padding: var(--sp-3) var(--sp-3); border: 0; border-bottom: 1px solid var(--line-soft); border-radius: 0; background: transparent; color: var(--ink); text-align: left; font-size: var(--fs-s); font-weight: 500; }
.rb-row:hover { background: var(--surface-soft); filter: none; }
.rb-row.is-picked { background: var(--accent-soft); font-weight: 600; }
.rb-head .rb-code, .rb-row .rb-code { flex: none; width: 108px; }
.rb-row .rb-code { font-family: var(--font-mono); font-size: var(--fs-s); font-weight: 700; color: var(--accent-dark); }
.rb-head .rb-name, .rb-row .rb-name { flex: 1 1 auto; min-width: 0; }
.rb-head .rb-group, .rb-row .rb-group { flex: none; width: 190px; }
.rb-row .rb-group { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-xs); font-weight: 400; color: var(--muted); }
.rb-empty { margin: var(--sp-4) 0; color: var(--muted); font-size: var(--fs-s); }
.rb-source { flex: none; margin: 0; padding: var(--sp-3) 0 var(--sp-4); border-top: 1px solid var(--line-soft); font-size: var(--fs-xs); line-height: 1.5; color: var(--quiet); }
.rb-card { flex: none; width: 420px; overflow-y: auto; border-left: 1px solid var(--line-soft); padding: var(--sp-5) var(--sp-6) var(--sp-5) var(--sp-6); }
.rb-card-empty { margin: 0; font-size: var(--fs-s); color: var(--muted); }
.rb-card-body { display: flex; flex-direction: column; gap: var(--sp-4); min-height: 100%; }
.rb-card-body[hidden] { display: none; }
.rb-card-head { display: flex; flex-direction: column; gap: var(--sp-2); }
.rb-card-code { font-family: var(--font-mono); font-size: var(--fs-3xl); font-weight: 600; letter-spacing: -0.02em; line-height: 1; overflow-wrap: anywhere; }
.rb-card-name { font-size: var(--fs-xl); font-weight: 600; line-height: 1.2; letter-spacing: -0.018em; }
.rb-facts { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.rb-fact { display: inline-flex; align-items: baseline; gap: var(--sp-2); min-height: 30px; padding: var(--sp-2) var(--sp-3); border-radius: var(--radius-small); background: var(--surface-soft); font-size: var(--fs-xs); }
.rb-fact span { color: var(--muted); }
.rb-fact b { font-weight: 600; }
.rb-card-text { margin: 0; font-size: var(--fs-s); line-height: 1.6; color: #3f4052; }
.rb-near { display: flex; flex-direction: column; gap: var(--sp-2); padding-top: var(--sp-4); border-top: 1px solid var(--line-soft); }
.rb-near[hidden] { display: none; }
.rb-near-label { font-family: var(--font); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.rb-near-item { display: flex; align-items: baseline; gap: var(--sp-3); min-height: 0; padding: 0; border: 0; background: none; color: var(--ink); font-size: var(--fs-s); font-weight: 400; text-align: left; }
.rb-near-item:hover { color: var(--accent-dark); background: none; filter: none; }
.rb-near-code { flex: none; width: 88px; font-family: var(--font-mono); font-weight: 600; }
.rb-actions { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: auto; padding-top: var(--sp-4); border-top: 1px solid var(--line-soft); }
.rb-copy { display: flex; align-items: center; justify-content: center; gap: var(--sp-2); height: 46px; border-radius: var(--radius-control); font-size: var(--fs-m); font-weight: 600; }
.rb-actions-row { display: flex; gap: var(--sp-2); }
.rb-action { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; height: 42px; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--panel); color: var(--ink); font-size: var(--fs-s); font-weight: 500; text-decoration: none; }
.rb-action:hover { border-color: var(--accent); color: var(--accent-dark); }
.rb-discuss { margin: 0; }
.rb-discuss .discuss-button { min-height: 42px; height: 42px; padding: 0 var(--sp-4); border-radius: var(--r-m); font-size: var(--fs-s); }

.cal-body { --cal-tax: #c93080; --cal-hr: #0b7690; --cal-own: #2f66c4; flex: 1 1 auto; min-height: 0; display: flex; overflow: hidden; }
.service.calendar { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
.cal-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-5) var(--sp-5) var(--sp-5) var(--sp-6); overflow-y: auto; overscroll-behavior: contain; }
.cal-nav { display: flex; align-items: center; gap: var(--sp-3); flex: none; }
.cal-nav .spacer { flex: 1 1 auto; }
.cal-title { margin: 0; min-width: 200px; font-size: var(--fs-xl); font-weight: 600; letter-spacing: -0.015em; }
.cal-arrow { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: var(--r-m); border: 1px solid var(--line); color: #4a4b5e; text-decoration: none; }
.cal-arrow:hover { border-color: var(--accent); color: var(--accent-dark); }
.cal-today-link { display: inline-flex; align-items: center; height: 34px; padding: 0 var(--sp-3); border-radius: var(--r-m); border: 1px solid var(--line); color: var(--ink); font-size: var(--fs-s); font-weight: 500; text-decoration: none; }
.cal-today-link:hover { border-color: var(--accent); color: var(--accent-dark); }
.cal-filter { height: 32px; min-height: 0; padding: 0 var(--sp-3); border-radius: var(--radius-small); border: 1px solid var(--line); background: var(--panel); color: var(--ink); font-size: var(--fs-xs); font-weight: 500; }
.cal-filter.is-on { border-color: #c5d3ec; background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; }
.cal-filter:hover { border-color: var(--accent); background: var(--panel); filter: none; }
.cal-filter.is-on:hover { background: var(--accent-soft); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--sp-2); flex: none; }
.cal-weekday { padding-bottom: var(--sp-1); text-align: center; font-family: var(--font); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.cal-weekday.is-off { color: #a5a6b6; }
.cal-day { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-1); height: 74px; min-height: 0; padding: var(--sp-2) var(--sp-2); border: 0; border-radius: var(--r-m); background: var(--panel); color: var(--ink); text-align: left; }
button.cal-day { cursor: pointer; }
button.cal-day:hover { background: var(--surface-soft); filter: none; }
.cal-day.is-out { background: transparent; }
.cal-num { font-family: var(--font-mono); font-size: var(--fs-s); font-weight: 500; }
.cal-day.is-out .cal-num, .cal-day.is-off .cal-num { color: #c2c3d0; }
.cal-day.is-off .cal-num { color: #a5a6b6; }
.cal-day.is-today { background: var(--surface-soft); }
.cal-day.is-today .cal-num { font-weight: 700; }
.cal-day.is-picked, button.cal-day.is-picked:hover { background: var(--graphite); color: #ffffff; box-shadow: 0 8px 20px -10px rgba(25, 26, 36, 0.6); }
.cal-day.is-picked .cal-num { color: #ffffff; font-weight: 700; }
.cal-day.is-dim { opacity: 0.4; }
.cal-dots { display: flex; gap: 3px; min-height: 5px; }
.cal-dot { display: inline-block; flex: none; width: 5px; height: 5px; border-radius: 50%; }
.cal-item .cal-dot, .cal-legend .cal-dot { width: 7px; height: 7px; }
.cal-dot-tax { background: var(--cal-tax); }
.cal-dot-hr { background: var(--cal-hr); }
.cal-dot-own { background: var(--cal-own); }
.cal-label { font-size: var(--fs-xs); line-height: 1.25; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cal-day.is-picked .cal-label { color: rgba(255, 255, 255, 0.72); }
.cal-legend { display: flex; align-items: center; gap: var(--sp-4); flex: none; padding-top: var(--sp-4); border-top: 1px solid var(--line-soft); }
.cal-legend .spacer { flex: 1 1 auto; }
.cal-legend-item { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-xs); color: var(--ink-2); }
.cal-scope { font-family: var(--font); font-size: var(--fs-xs); color: var(--quiet); text-align: right; }
.cal-scope-link { font-weight: 600; color: var(--accent-dark); text-decoration: underline; text-underline-offset: 2px; }
.cal-scope-link:hover, .cal-scope-link:focus-visible { color: var(--accent); }
.cal-source { margin: 0; font-size: var(--fs-xs); line-height: 1.5; color: var(--quiet); }
.cal-side { flex: none; width: 452px; display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-5) var(--sp-6) var(--sp-5) var(--sp-6); border-left: 1px solid var(--line-soft); overflow-y: auto; overscroll-behavior: contain; }
.cal-side-head { display: flex; align-items: baseline; gap: var(--sp-3); }
.cal-side-title { margin: 0; font-size: var(--fs-xl); font-weight: 600; letter-spacing: -0.015em; }
.cal-side-when { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); }
.cal-panels { display: flex; flex-direction: column; gap: 2px; }
.cal-panel[hidden] { display: none; }
.cal-item { display: flex; align-items: flex-start; gap: var(--sp-3); padding: var(--sp-3) 0; border-bottom: 1px solid var(--line-soft); }
#calendar[data-filter="open"] .cal-item.is-done, #calendar[data-filter="mine"] .cal-item[data-kind="event"] { display: none; }
.cal-check { flex: none; display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; min-height: 0; margin-top: 1px; padding: 0; border-radius: 6px; border: 1.5px solid #c5d3ec; background: transparent; color: transparent; }
.cal-check:hover { border-color: var(--accent); background: var(--accent-soft); filter: none; }
.cal-item.is-done .cal-check { border-color: #2ba06a; background: #2ba06a; color: #ffffff; }
.cal-item-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 auto; }
.cal-item-title { display: inline-flex; align-items: baseline; gap: var(--sp-2); font-size: var(--fs-m); font-weight: 600; line-height: 1.4; }
.cal-item-title .cal-dot { align-self: center; }
.cal-item-text::first-letter { text-transform: uppercase; }
.cal-item-text a { color: var(--accent-dark); }
.cal-item.is-done .cal-item-title { color: var(--quiet); text-decoration: line-through; }
.cal-item-note { font-family: var(--font); font-size: var(--fs-xs); color: #a5a6b6; }
.cal-item-note:empty { display: none; }
.cal-own-tag { padding: 2px var(--sp-2); border-radius: 6px; background: var(--accent-soft); color: var(--accent-dark); font-family: var(--font); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.cal-remove { flex: none; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; min-height: 0; padding: 0; border: 0; border-radius: var(--r-s); background: none; color: #a5a6b6; }
.cal-remove:hover { background: var(--line-soft); color: var(--ink); filter: none; }
.cal-none { margin: var(--sp-3) 0 0; font-size: var(--fs-s); color: var(--muted); }
.cal-add { display: flex; gap: var(--sp-2); margin: 0; }
.cal-add input { flex: 1 1 auto; height: 44px; padding: 0 var(--sp-4); border-radius: var(--r-m); border: 1px solid var(--line-field); background: var(--field); font-size: var(--fs-s); }
.cal-add button { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-height: 0; padding: 0; border-radius: var(--r-m); }
.cal-error { margin: calc(-1 * var(--sp-2)) 0 0; font-size: var(--fs-xs); color: var(--error); }
.cal-error[hidden] { display: none; }
.cal-side-foot { display: flex; align-items: center; gap: var(--sp-2); margin-top: auto; padding-top: var(--sp-4); border-top: 1px solid var(--line-soft); }
.cal-print-button { display: inline-flex; align-items: center; gap: var(--sp-2); height: 36px; min-height: 0; padding: 0 var(--sp-3); border-radius: var(--r-m); border: 1px solid var(--line); background: var(--panel); color: var(--ink); font-size: var(--fs-s); font-weight: 500; }
.cal-print-button:hover { border-color: var(--accent); color: var(--accent-dark); background: var(--panel); filter: none; }
.cal-side-foot .cal-discuss { display: flex; align-items: center; margin: 0; }
.cal-discuss .discuss-button { min-height: 36px; height: 36px; padding: 0 var(--sp-3); border-radius: var(--r-m); font-size: var(--fs-s); }
.cal-discuss .discuss-button:disabled { opacity: 0.45; cursor: default; }
.cal-print { display: none; }
@media print {
  .service.calendar .service-hero, .cal-body { display: none; }
  .cal-print { display: block; }
  .cal-print h2 { font-size: 16pt; margin: 0 0 10pt; }
  .cal-print h3 { font-size: 11pt; margin: 10pt 0 3pt; }
  .cal-print ul { margin: 0; padding-left: 16pt; font-size: 10.5pt; }
}
.catalog-page {
  max-width: none;
  height: calc(100vh - var(--topbar) - 40px);
  min-height: 560px;
  padding: 0;
  overflow: hidden;
}
.catalog { display: flex; flex-direction: column; height: 100%; }
.catalog-bar {
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--sp-3);
  height: 64px;
  padding: 0 var(--sp-6);
  border-bottom: 1px solid var(--line-soft);
}
.catalog-bar-title { margin: 0; font-family: var(--font); font-size: var(--fs-m); font-weight: 600; letter-spacing: -0.012em; }
.catalog-bar-count { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
.catalog-bar .catalog-chips { margin-left: auto; }
.catalog-find { position: relative; flex: none; width: 300px; }
.catalog-find svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.catalog-find input {
  width: 100%;
  height: 36px;
  padding: 0 var(--sp-3) 0 var(--sp-6);
  background: var(--field);
  border: 1px solid #dfe4ee;
  border-radius: var(--r-m);
  color: var(--ink);
  font: 500 var(--fs-s) var(--font);
}
.catalog-chips { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.chips-label { font-family: var(--font); font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.catalog-bar .chip { min-height: 32px; padding: 0 var(--sp-3); border-radius: var(--radius-small); font: 500 var(--fs-xs) var(--font); }
.catalog-bar .chip[aria-pressed="true"] { font-weight: 600; }
.catalog-bar .chip .owner-dot { width: 6px; height: 6px; background: var(--accent); }
.catalog-bar .chip-kadry .owner-dot { background: #26697c; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 38px;
  padding: 0 var(--sp-4);
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--ink);
  font: 600 var(--fs-s) var(--font);
  cursor: pointer;
  transition: border-color var(--ease), background-color var(--ease), color var(--ease);
}
.chip:hover, .chip:focus-visible { color: var(--ink); background: var(--panel); border-color: var(--line-strong); filter: none; }
.chip[aria-pressed="true"], .chip[aria-pressed="true"]:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); }
.chip-kadry[aria-pressed="true"], .chip-kadry[aria-pressed="true"]:hover { border-color: #26697c; background: #f1f7f9; color: #1d5464; }
.catalog-body { flex: 1 1 auto; display: flex; min-height: 0; }
.catalog-toc {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 244px;
  padding: var(--sp-5) var(--sp-4) var(--sp-5) var(--sp-5);
  overflow-y: auto;
}
.toc-label { margin: 0; padding: 0 var(--sp-3) var(--sp-2); font-family: var(--font); font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.toc-list { display: flex; flex-direction: column; gap: 3px; }
.toc-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
  min-height: 40px;
  padding: 0 var(--sp-3);
  background: none;
  border: 0;
  border-radius: var(--radius-small);
  color: var(--ink-2);
  font: 500 var(--fs-s) var(--font);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--ease), color var(--ease);
}
.toc-item:hover, .toc-item:focus-visible { background: var(--surface-soft); color: var(--ink); filter: none; }
.toc-mark { flex: none; width: 9px; height: 9px; border-radius: 3px; background: var(--line-strong); opacity: 0.55; }
.toc-popular { margin-bottom: var(--sp-3); font-weight: 600; color: var(--ink); }
.toc-popular[hidden] { display: none; }
.toc-title { flex: 1 1 auto; min-width: 0; }
.toc-count { flex: none; font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.toc-item[aria-current="location"], .toc-pick[aria-pressed="true"] { background: var(--surface-soft); color: var(--ink); font-weight: 600; }
.toc-item[aria-current="location"] .toc-mark { opacity: 1; }
.toc-pick[aria-pressed="true"] .toc-mark { background: var(--accent); opacity: 1; }
.catalog-sections {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  min-width: 0;
  padding: var(--sp-5) var(--sp-6) var(--sp-6) var(--sp-3);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.catalog-group, .catalog-popular { scroll-margin-top: 24px; }
.catalog-popular[hidden] { display: none; }
.catalog-group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-1) var(--sp-3); margin: 0 0 var(--sp-4); }
.catalog-group-title { margin: 0; font-weight: 600; font-size: var(--fs-xl); letter-spacing: -0.015em; }
.catalog-group-count { font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.catalog-group-sum { margin: 0; font-size: var(--fs-s); color: var(--muted); }
.catalog-empty { margin: 0; padding: var(--sp-5); border: 1px dashed var(--line-strong); border-radius: var(--radius-card); color: var(--muted); text-align: center; }
.catalog-page .card { min-height: 178px; padding: var(--sp-5) var(--sp-5) var(--sp-5); border-radius: var(--r-l); }
.catalog-page .card-owner { font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 600; }
.catalog-page .card-name { font-size: var(--fs-xl); line-height: 1.2; letter-spacing: -0.015em; }
.catalog-page .card-summary { font-size: var(--fs-s); line-height: 1.5; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); }
.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  min-height: 186px;
  padding: var(--sp-4) var(--sp-4) var(--sp-4);
  background: var(--card-bg, var(--panel));
  color: var(--card-ink, var(--ink));
  border: 1px solid var(--card-line, var(--line));
  border-radius: var(--radius-card);
  transition: box-shadow var(--ease), transform var(--ease), filter var(--ease);
}
.tone-1 { --card-bg: linear-gradient(150deg, #7a6bf7 0%, #5546db 58%, #4335c4 100%); --tone-ink: #4335c4; --tone-soft: #ecebfc; }
.tone-2 { --card-bg: linear-gradient(150deg, #f0508c 0%, #d32f75 58%, #b32167 100%); --tone-ink: #b32167; --tone-soft: #fbe8f0; }
.tone-3 { --card-bg: linear-gradient(150deg, #2eb0cd 0%, #0f86a3 58%, #0a6e89 100%); --tone-ink: #0b7690; --tone-soft: #e2eff4; }
.tone-4 { --card-bg: linear-gradient(150deg, #4c8bf7 0%, #2f63dd 58%, #2450c0 100%); --tone-ink: #2450c0; --tone-soft: #e6edfb; }
.tone-5 { --card-bg: linear-gradient(150deg, #a763e8 0%, #8138cc 58%, #6c2bb2 100%); --tone-ink: #6c2bb2; --tone-soft: #f0e8fa; }
.tone-6 { --card-bg: linear-gradient(150deg, #f5705f 0%, #d9463c 58%, #bf3730 100%); --tone-ink: #bf3730; --tone-soft: #fbeae8; }
.tone-7 { --card-bg: linear-gradient(150deg, #34b277 0%, #16875a 58%, #0f7049 100%); --tone-ink: #0f7049; --tone-soft: #e3f3ec; }
.tone-8 { --card-bg: linear-gradient(150deg, #3c3d52 0%, #23242f 58%, #17181f 100%); --tone-ink: #3c3d52; --tone-soft: #eceaf0; }
.tone-9 { --card-bg: linear-gradient(150deg, #ffd166 0%, #f5b23c 58%, #e89f22 100%); --tone-ink: #8a5a00; --tone-soft: #fcf1d8; }
.cards .card {
  --card-ink: #ffffff;
  --card-ink-2: rgba(255, 255, 255, 0.88);
  --card-dot: rgba(255, 255, 255, 0.75);
  --card-line: transparent;
}
.catalog-free .cards { grid-auto-flow: row dense; }
.catalog-free .cards > .card-wide { grid-column: span 2; }
.catalog-free .cards > .card-big { grid-column: span 2; grid-row: span 2; }
.catalog-free .card-big .card-name { font-size: var(--fs-2xl); }
.card-preview { position: relative; z-index: 1; margin-top: auto; }
.card-preview-lead { margin: 0 0 var(--sp-2); font-size: var(--fs-xs); font-weight: 600; color: var(--card-ink-2); }
.card-preview dl { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); margin: 0; }
.card-preview dl > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.card-preview dt { order: 2; font-size: var(--fs-xs); font-weight: 600; color: var(--card-ink-2); }
.card-preview dd { order: 1; display: flex; align-items: baseline; gap: 4px; margin: 0; white-space: nowrap; }
.card-preview dd b { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; color: var(--card-ink); font-variant-numeric: tabular-nums; }
.card-preview dd small { font-size: var(--fs-xs); font-weight: 700; color: var(--card-ink-2); }
.card-preview-rows dl { flex-direction: column; flex-wrap: nowrap; gap: var(--sp-2); }
.card-preview-rows dl > div { display: grid; grid-template-columns: 64px 1fr; align-items: baseline; gap: var(--sp-3); padding-top: var(--sp-2); border-top: 1px solid rgba(255, 255, 255, 0.22); }
.card-preview-rows dt { font-size: var(--fs-s); line-height: 1.35; color: var(--card-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-preview-rows dd b { font-size: 20px; }
.card-preview + .card-foot { margin-top: var(--sp-2); }
.catalog-free .card-big .card-summary { font-size: var(--fs-l); max-width: 48ch; }
.catalog-free .card-big .card-preview-rows dl { gap: var(--sp-3); }
.catalog-free .card-big .card-name { font-size: 32px; letter-spacing: -0.015em; }
.catalog-free .card-big .card-preview-rows dl > div { grid-template-columns: 68px 1fr; padding-top: var(--sp-3); }
.catalog-free .card-big .card-preview-rows dt { font-size: var(--fs-m); font-weight: 500; line-height: 1.4; color: var(--card-ink-2); }
.catalog-free .card-big .card-preview-rows dd b { font-size: var(--fs-xl); }
.catalog-free .card-wide .card-preview dd b { font-size: 28px; }
.catalog-free .card-wide .card-preview dt, .catalog-free .card-wide .card-preview-lead { font-size: var(--fs-s); }
.catalog-free .card-wide .card-preview-rows dt { font-size: 16px; }
.catalog-free .card-wide .card-preview-rows dd b { font-size: 22px; }
.cards .card.tone-9 {
  --card-ink: #241c0d;
  --card-ink-2: rgba(36, 28, 13, 0.78);
  --card-dot: rgba(36, 28, 13, 0.5);
}
.cards .card.status-locked:not(.card-mosaic), .cards .card.status-signin {
  --card-bg: linear-gradient(150deg, #f2f1f5 0%, #e8e7ee 100%);
  --card-ink: #6f7084;
  --card-ink-2: #8a8b9c;
  --card-dot: #b4b5c4;
}
.cards .card.status-planned, .cards .card.status-disabled {
  --card-bg: transparent;
  --card-ink: var(--line-strong);
  --card-ink-2: var(--line-strong);
  --card-dot: var(--line-strong);
  --card-line: var(--line-strong);
}
.card-watermark {
  position: absolute;
  z-index: -1;
  right: 8px;
  bottom: -16px;
  width: 50%;
  aspect-ratio: 1;
  opacity: 0.1;
  transform: rotate(10deg);
  pointer-events: none;
}
.card-watermark svg { width: 100%; height: 100%; stroke: currentColor; stroke-width: 1.1; fill: none; }
.cards .card.status-locked .card-watermark, .cards .card.status-signin .card-watermark { opacity: 0.2; }
.card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2) var(--sp-3); }
.card-top > .card-owner, .card-top > .card-mark { white-space: nowrap; }
.card-owner { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent); }
.card-kadry .card-owner { color: #26697c; }
.owner-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.card-owner-both .owner-dot + .owner-dot { margin-left: -3px; background: #26697c; }
.card-mark { display: inline-flex; align-items: center; gap: var(--sp-1); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.04em; color: var(--muted); }
.card-mark-lock { color: var(--line-strong); }
.card-name { margin: 0; font-weight: 600; font-size: var(--fs-l); line-height: 1.25; color: var(--ink); text-wrap: balance; }
.card-summary { margin: 0; color: var(--muted); font-size: var(--fs-s); line-height: 1.45; }
.cards .card .card-owner, .cards .card-kadry .card-owner { color: var(--card-ink-2); }
.cards .card .card-owner-both .owner-dot + .owner-dot { background: var(--card-dot); }
.cards .card .owner-dot { background: var(--card-dot); }
.cards .card .card-name { color: var(--card-ink); }
.cards .card .card-summary { color: var(--card-ink-2); }
.cards .card .card-mark { color: var(--card-ink-2); }
.cards .card .card-mark-lock { color: var(--card-dot); }
.card-foot {
  opacity: 0;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line-soft);
  font-size: var(--fs-s);
  font-weight: 700;
}
.card-kind { display: inline-flex; align-items: center; gap: var(--sp-2); color: var(--muted); font-weight: 600; font-size: var(--fs-xs); }
.card-kind .group-icon { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.6; }
.card-go {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0;
  background: none;
  border: 0;
  color: var(--accent-dark);
  font: 700 var(--fs-s) var(--font);
  text-decoration: none;
  cursor: pointer;
}
.card-kadry .card-go { color: #1d5464; }
.card-go:hover, .card-go:focus-visible { background: none; color: var(--accent-dark); filter: none; }
.card-kadry .card-go:hover, .card-kadry .card-go:focus-visible { color: #1d5464; }
.card-go svg { transform: translateX(-3px); opacity: 0; transition: transform var(--ease), opacity var(--ease); }
.card-go::after { content: ""; position: absolute; inset: 0; }
.card:hover .card-go svg, .card:focus-within .card-go svg { transform: translateX(0); opacity: 1; }
.card.status-available:hover, .card.status-locked:hover, .card.status-signin:hover,
.card.status-available:focus-within, .card.status-locked:focus-within, .card.status-signin:focus-within {
  box-shadow: 0 2px 6px rgba(25, 26, 36, 0.06), 0 24px 44px -26px rgba(24, 36, 72, 0.55);
  transform: translateY(-3px);
  filter: saturate(1.08) brightness(1.03);
}
.card:has(.card-go:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.card-go:focus-visible { outline: none; }
.card.status-planned, .card.status-disabled { border-style: dashed; }
.card.status-planned .card-foot, .card.status-disabled .card-foot { border-top-color: transparent; }
.card.highlighted { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.gate { width: min(468px, calc(100vw - 32px)); max-width: none; padding: var(--sp-6) var(--sp-6) var(--sp-5); border-radius: var(--r-xl); }
.gate[open] { display: flex; flex-direction: column; align-items: center; gap: var(--sp-4); }
.gate .dialog-close-form { top: 14px; right: 14px; }
.gate .dialog-close { display: grid; place-items: center; color: var(--quiet); }
.gate-face { flex: none; display: grid; place-items: center; width: max-content; margin-inline: auto; }
.gate-face .orb { --orb-s: 64px; margin: 0; }
.is-showcase .service-hero, .is-showcase .service-col-form, .is-showcase .rvs-docs, .is-showcase .rvs-tabs { filter: grayscale(1); }
.is-showcase .service-col-form, .is-showcase .rvs-docs { opacity: 0.8; }
.is-showcase .service-col-form :disabled { cursor: default; }
.showcase-note { display: flex; align-items: center; gap: 20px; margin: 0 0 var(--sp-3); padding: 14px 16px 14px 22px; border-radius: var(--r-l, 16px); background: var(--accent-soft); color: var(--ink); animation: showcase-note-in 0.35s ease-out both; }
@keyframes showcase-note-in { from { opacity: 0; transform: translateY(-6px); } }
.showcase-note-words { display: grid; flex: 1 1 auto; gap: 2px; min-width: 0; }
.showcase-note-words b { font-size: 18px; font-weight: 700; line-height: 1.3; }
.showcase-note-words span { color: var(--muted); font-size: 15px; font-weight: 400; line-height: 1.4; }
.showcase-note .showcase-note-go { flex: none; width: auto; padding: 0 24px; white-space: nowrap; }
.service-hero + .showcase-note { margin: 14px 24px 2px; }
@media (max-width: 640px) {
  .showcase-note { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 16px; }
  .showcase-note .showcase-note-go { width: 100%; }
}
.showcase-window .gate-actions .gate-button { gap: var(--sp-2); }
.gate-title { margin: 0; text-align: center; font-size: var(--fs-xl); font-weight: 600; letter-spacing: -0.02em; }
.gate-what { margin: 0; text-align: center; font-size: var(--fs-m); line-height: 1.55; color: var(--ink-2); }
.gate-actions { display: flex; flex-direction: column; gap: var(--sp-2); width: 100%; margin-top: var(--sp-2); }
.gate-button { display: flex; align-items: center; justify-content: center; gap: var(--sp-2); width: 100%; height: 46px; min-height: 46px; padding: 0; border: 1px solid var(--line-field); border-radius: var(--r-m); background: var(--panel); color: var(--ink); font: inherit; font-size: var(--fs-m); font-weight: 600; text-decoration: none; cursor: pointer; }
.gate-button:hover, .gate-button:focus-visible { background: var(--surface-soft); color: var(--ink); filter: none; }
.gate-button-dark, .gate-button-dark:hover, .gate-button-dark:focus-visible { background: var(--graphite); border-color: var(--graphite); color: var(--graphite-ink); }
.gate-button-dark:hover, .gate-button-dark:focus-visible { opacity: 0.9; }
.gate-foot { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); width: 100%; margin-top: var(--sp-2); padding-top: var(--sp-4); border-top: 1px solid var(--line-soft); }
.gate-note { margin: 0; text-align: center; font-size: var(--fs-xs); color: var(--muted); }
.gate-phone { font-family: var(--font-mono); font-size: var(--fs-m); font-weight: 600; color: var(--ink); text-decoration: none; }
.gate-phone:hover { color: var(--accent-dark); }
.gate-free { margin: 0; font-size: var(--fs-xs); color: var(--quiet); }
.gate::backdrop { background: rgba(222, 227, 238, 0.62); backdrop-filter: blur(3px); }
.badge {
  display: inline-block;
  padding: 1px var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.5;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
}
.card.status-available .badge:first-child { color: var(--accent-dark); background: var(--accent-soft); border-color: var(--accent-soft); }
.card.status-locked .badge:first-child { color: var(--warn); background: var(--warn-soft); border-color: var(--warn-soft); }
.badge.risk-high { color: var(--error); background: var(--error-soft); border-color: var(--error-soft); }
.badge.risk-medium { color: var(--warn); background: var(--warn-soft); border-color: var(--warn-soft); }
.badge.risk-low { color: var(--ok); background: var(--ok-soft); border-color: var(--ok-soft); }

.month-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--sp-2) var(--sp-3); margin: var(--sp-3) 0 var(--sp-4); }
.month-nav h2 { margin: 0; text-align: center; font-weight: 600; font-size: var(--fs-2xl); }
.month-nav a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 var(--sp-1); font-weight: 600; font-size: var(--fs-m); white-space: nowrap; text-decoration: none; }
.month-nav a:hover { text-decoration: underline; }
.month-nav a[rel="next"] { justify-self: end; }
table.month { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; margin: 0 calc(-1 * var(--sp-1)) var(--sp-5); }
table.month th { padding: var(--sp-2) 0; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; text-align: center; color: var(--muted); }
table.month td {
  position: relative;
  height: 64px;
  padding: var(--sp-2) var(--sp-3);
  vertical-align: top;
  font-weight: 600;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
}
table.month td.empty { background: transparent; border-color: transparent; }
table.month td.off { background: transparent; color: var(--muted); font-weight: 500; }
table.month td.today { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
table.month td.has-events { background: var(--panel); }
table.month td.has-events a { font-weight: 700; text-decoration: none; }
table.month td .count {
  position: absolute;
  right: 8px;
  bottom: 8px;
  min-width: 24px;
  padding: 0 var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 24px;
  text-align: center;
  color: var(--primary-ink);
  background: var(--accent);
  border-radius: 50%;
}
.events h3 { margin: var(--sp-5) 0 var(--sp-2); font-weight: 600; font-size: var(--fs-l); }
.events ul { margin: 0; padding-left: var(--sp-5); }
.events li { margin-bottom: var(--sp-2); }

.ledger-form { margin: var(--sp-5) 0 var(--sp-2); padding: var(--sp-4) var(--sp-5) var(--sp-5); background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--radius-control); }
.ledger-form h2 { margin-bottom: var(--sp-4); font-size: var(--fs-l); }
.ledger-form .error { margin-bottom: var(--sp-4); }
.ledger-form .field { margin-bottom: var(--sp-4); }
.ledger-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--sp-4); }
.ledger-grid .ledger-wide { grid-column: 1 / -1; }
.ledger-title { margin: var(--sp-6) 0 var(--sp-3); font-weight: 600; font-size: var(--fs-xl); }
.ledger-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs-m); }
.ledger-table th, .ledger-table td { padding: var(--sp-3) var(--sp-3); text-align: left; vertical-align: top; }
.ledger-table th { color: var(--muted); font-weight: 600; font-size: var(--fs-s); background: var(--accent-soft); }
.ledger-table tbody tr:nth-child(odd) td { background: var(--panel); }
.ledger-table th.num, .ledger-table td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ledger-table td.num { width: 1%; font-weight: 600; }
.ledger-table td .hint { display: block; margin: 2px 0 0; font-size: var(--fs-s); }
.ledger-actions { white-space: nowrap; text-align: right; }
.ledger-actions form { display: inline-block; margin: 0 0 0 var(--sp-2); }
.ledger-actions button { min-height: 32px; padding: 0 var(--sp-3); font-size: var(--fs-s); }
.ledger-overdue td:first-child { color: var(--error); font-weight: 600; }
.ledger-badge { display: inline-block; margin-left: var(--sp-2); padding: 1px var(--sp-2); border-radius: var(--radius-small); background: var(--error-soft); color: var(--error); font-size: var(--fs-xs); font-weight: 700; }
.ledger-paid td { color: var(--muted); }

.profile-page {
  max-width: 760px;
  margin: var(--sp-5) auto;
  padding: var(--sp-6) var(--sp-6) var(--sp-6);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.shell-page .page-column > .profile-page { max-width: none; margin: 0; padding: var(--sp-5) var(--sp-6) var(--sp-6); border: 0; box-shadow: var(--shadow-scene); }
.profile-inner { max-width: var(--w-read); margin: 0 auto; }
.pf-row { display: flex; flex-direction: column; gap: var(--sp-4); }
.profile-solo .pf-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.stage-inn { white-space: nowrap; }
@media (max-width: 640px) {
  .shell-page .page-column > .profile-page { padding: var(--sp-4) var(--sp-3) var(--sp-6); }
}
.profile-page > .hint { margin-bottom: var(--sp-5); }
.profile-page .notice, .profile-page .error { margin-bottom: var(--sp-4); }
.profile-page h2 { margin: var(--sp-7) 0 var(--sp-3); font-weight: 600; font-size: var(--fs-2xl); }
.profile-page h3 { margin: var(--sp-5) 0 var(--sp-2); font-size: var(--fs-m); }
.rail .rail-action-off, .rail .rail-action-off:hover { background: rgba(255, 255, 255, 0.4); border-color: #dce2ec; color: #9b9cae; font-weight: 500; cursor: default; }
.rail .rail-action-off:first-child { font-weight: 600; }
.rail-lock { margin-left: auto; }
.rail-find-off { opacity: 0.55; }
.rail-empty { margin: 0; padding: 0 var(--sp-2); font-size: var(--fs-s); line-height: 1.5; color: #7a7b8e; }
.rail-recent .rail-empty { margin-top: var(--sp-1); }
.rail-login { display: flex; align-items: center; justify-content: center; gap: var(--sp-2); height: 46px; border-radius: var(--r-m); background: var(--graphite); color: var(--graphite-ink); font-size: var(--fs-s); font-weight: 600; text-decoration: none; }
.rail-login:hover, .rail-login:focus-visible { background: var(--graphite); color: var(--graphite-ink); opacity: 0.9; }
.stage-guest { font-family: var(--font); font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.stage-tool-off { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; color: #a5a6b6; cursor: default; }
.stage-login { display: inline-flex; align-items: center; height: 34px; padding: 0 var(--sp-4); border-radius: var(--r-s); background: var(--graphite); color: var(--graphite-ink); font-size: var(--fs-s); font-weight: 600; text-decoration: none; }
.stage-login:hover, .stage-login:focus-visible { background: var(--graphite); color: var(--graphite-ink); opacity: 0.9; }
.hero-guest h1 { font-size: var(--fs-3xl); }
.chat-off { display: flex; flex-direction: column; gap: var(--sp-4); width: min(900px, 100%); min-height: 0; margin: 0 auto; padding: var(--sp-4) var(--sp-4) var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-l); background: #f4f3f8; color: #7a7b8e; font: inherit; text-align: left; opacity: 0.75; cursor: pointer; }
.chat-off:hover, .chat-off:focus-visible { background: #f4f3f8; color: #7a7b8e; filter: none; }
.chat-off-line { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-m); }
.chat-off-tools { display: flex; align-items: center; gap: var(--sp-2); }
.chat-off-tool { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid #dfe4ee; border-radius: var(--r-s); background: var(--field); color: #a5a6b6; }
.chat-off-send { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: #c4c9d6; color: #ffffff; }
.pb { display: flex; flex-direction: column; min-height: calc(100vh - 40px); overflow: hidden; background: var(--panel); border-radius: var(--r-xl); box-shadow: 0 1px 2px rgba(25, 26, 36, 0.05), 0 34px 64px -36px rgba(24, 36, 72, 0.45); }
.pb-bar { display: flex; flex: none; align-items: center; gap: var(--sp-2); padding: var(--sp-5) var(--sp-6); border-bottom: 1px solid var(--line-soft); }
.pb-crumb { font-family: var(--font); font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.pb-crumb-now { font-weight: 600; color: var(--quiet); }
.pb-slash { color: #b4b5c4; }
.pb-body { display: flex; flex: 1 1 auto; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-4); padding: var(--sp-7); text-align: center; }
.pb-icon { display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; background: #eff3fa; color: var(--quiet); }
.pb-icon-login { background: var(--accent-soft); color: var(--accent); }
.pb-icon-lock { color: var(--muted); }
.pb-icon-clock { background: #fbf9f4; color: #a97c2f; }
.pb-code { font-family: var(--font); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--quiet); }
.pb-title { margin: 0; font-size: var(--fs-2xl); font-weight: 600; letter-spacing: -0.02em; }
.pb-text { max-width: 460px; margin: 0; font-size: var(--fs-m); line-height: 1.55; color: var(--ink-2); }
.pb-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); margin-top: var(--sp-2); }
.pb-button { display: inline-flex; align-items: center; gap: var(--sp-2); height: 46px; min-height: 46px; padding: 0 var(--sp-4); border: 1px solid var(--line-field); border-radius: var(--r-m); background: var(--panel); color: var(--ink); font: inherit; font-size: var(--fs-m); font-weight: 600; text-decoration: none; cursor: pointer; }
.pb-button:hover, .pb-button:focus-visible { background: var(--surface-soft); color: var(--ink); filter: none; }
.pb-button-dark, .pb-button-dark:hover, .pb-button-dark:focus-visible { padding: 0 var(--sp-5); background: var(--graphite); border-color: var(--graphite); color: var(--graphite-ink); }
.pb-button-dark:hover, .pb-button-dark:focus-visible { opacity: 0.9; }
.pb-hint { margin: var(--sp-1) 0 0; font-size: var(--fs-xs); color: var(--quiet); }
.profile-window { width: min(600px, calc(100% - 32px)); overflow-y: auto; padding: var(--sp-5) var(--sp-5) var(--sp-5); }
.profile-window .dialog-title { margin: 0 0 var(--sp-4); }
.pw-tabs { display: flex; gap: var(--sp-2); }
.pw-tab { display: inline-flex; align-items: center; gap: var(--sp-2); height: 36px; min-height: 0; padding: 0 var(--sp-4); border: 0; border-radius: var(--r-m); background: transparent; color: var(--ink-2); font-size: var(--fs-s); font-weight: 500; }
.pw-tab:hover, .pw-tab:focus-visible { background: var(--surface-soft); color: var(--ink); filter: none; }
.pw-tab[aria-selected="true"] { background: var(--graphite); color: var(--graphite-ink); font-weight: 600; }
.pw-count { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--quiet); }
.pw-tab[aria-selected="true"] .pw-count { color: rgba(255, 255, 255, 0.6); }
.pw-count:empty { display: none; }
.pw-panel { padding-top: var(--sp-5); }
.pw-panel[hidden] { display: none; }
.pf { display: flex; flex-direction: column; gap: var(--sp-4); }
.pf-field { display: flex; flex-direction: column; gap: var(--sp-2); margin: 0; padding: 0; border: 0; min-width: 0; }
.pf-label { padding: 0; font-size: var(--fs-s); font-weight: 600; }
.pf-note { margin: 0; font-size: var(--fs-xs); line-height: 1.4; color: var(--muted); }
.pf-input { width: 100%; height: 44px; padding: 0 var(--sp-4); border: 1px solid var(--line-field); border-radius: var(--r-m); background: var(--field); color: var(--ink); font: inherit; font-size: var(--fs-s); }
.pf-area { height: auto; padding: var(--sp-3) var(--sp-4); line-height: 1.5; resize: none; }
.pf-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.pf-explain .pf-note { margin-top: 3px; }
.pf-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-2); }
.pf-chip { position: relative; display: inline-flex; align-items: center; height: 34px; padding: 0 var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-m); background: var(--panel); color: var(--ink); font-size: var(--fs-s); font-weight: 500; cursor: pointer; }
.pf-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pf-chip:hover { border-color: var(--line-field); }
.pf-chip:has(input:checked) { border-color: #c5d3ec; background: #eaf0fb; color: var(--accent-dark); font-weight: 600; }
.pf-chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.pf .dialog-foot { margin-top: 0; padding-top: var(--sp-4); }
.pf-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3) var(--sp-4); }
.pf-chip, .pf-label, .pf-set-name { margin: 0; }
.pf-field { gap: 6px; }
.pf-set .pf-input { flex: none; width: 200px; height: 40px; }
.pf-list { display: flex; flex-direction: column; }
.pf-set { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: 54px; border-top: 1px solid var(--line-soft); }
.pf-set-name { display: inline-flex; align-items: center; gap: var(--sp-1); min-width: 0; font-size: var(--fs-s); font-weight: 600; color: var(--ink); }
.pf-set .pf-chips { flex: none; margin: 0; }
@media (max-width: 640px) { .pf-fields { grid-template-columns: minmax(0, 1fr); } }
.profile-window { position: fixed; width: min(580px, calc(100% - 32px)); max-height: calc(100dvh - 48px); margin: auto; }
.pf-done { background: var(--graphite); color: var(--graphite-ink); border: 0; }
.pf-done:hover, .pf-done:focus-visible { background: var(--graphite); color: var(--graphite-ink); }
.skill-list { list-style: none; display: grid; gap: var(--sp-3); padding: 0; margin: 0; }
.skill-item {
  padding: var(--sp-3) var(--sp-4);
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  transition: border-color var(--ease), background-color var(--ease);
}
.skill-item-on { border-left-color: var(--accent); background: var(--accent-soft); }
.skill-form { display: flex; align-items: center; gap: var(--sp-3); margin: 0; }
.skill-pick { display: flex; align-items: flex-start; gap: var(--sp-2); flex: 1 1 auto; min-width: 0; cursor: pointer; }
.skill-pick input[type="checkbox"] { flex: none; width: 17px; height: 17px; margin-top: 2px; accent-color: var(--accent); }
.skill-text { display: grid; gap: 2px; min-width: 0; }
.skill-name { font-size: var(--fs-s); font-weight: 600; line-height: 1.35; }
.skill-note { font-size: var(--fs-xs); font-weight: 500; line-height: 1.4; color: var(--muted); }
.skill-form select { flex: none; width: auto; min-width: 150px; min-height: 36px; font-size: var(--fs-s); }
.skill-form button { min-height: 36px; padding: 0 var(--sp-4); font-size: var(--fs-s); }
.skill-item-box { display: block; padding: var(--sp-4); background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--line); }
.skill-form-custom { display: block; }
.skill-form-custom .field { margin-bottom: var(--sp-3); }
.skill-fields { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.skill-fields .field { flex: 1 1 240px; }
.skill-fields .field-narrow { flex: 0 1 190px; }
.skill-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }
.skill-foot .hint { margin: 0; font-size: var(--fs-s); }
.skill-foot button { min-height: 42px; padding: 0 var(--sp-5); font-size: var(--fs-m); }
.skill-pick-inline { flex: 0 1 auto; align-items: center; }
.skill-pick-inline input[type="checkbox"] { margin-top: 0; }
.skill-remove { margin-top: var(--sp-3); }
.skill-remove button { min-height: 36px; padding: 0 var(--sp-4); font-size: var(--fs-s); }
.skill-list > .hint { padding: var(--sp-3) 0; }

.body-login #main { max-width: none; padding: 0; }
.login-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 100vh; }
.login-about {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--sp-7) 6vw;
  background: var(--panel);
  border-right: 1px solid var(--line);
}
.login-brand { display: flex; gap: var(--sp-4); align-items: center; margin: 0 0 var(--sp-5); font-size: var(--fs-3xl); font-weight: 600; letter-spacing: -0.015em; }
.login-about h1 { max-width: 460px; font-size: var(--fs-2xl); }
.login-about .lead { max-width: 460px; margin: 0 0 var(--sp-6); color: var(--muted); font-size: var(--fs-m); line-height: 1.6; }
.login-points { display: flex; flex-direction: column; gap: var(--sp-3); max-width: 460px; margin: 0; padding: 0; list-style: none; }
.login-points li { display: flex; gap: var(--sp-3); align-items: flex-start; font-size: var(--fs-m); line-height: 1.5; }
.login-tick { flex: none; width: 6px; height: 22px; }
.login-tick-one { background: linear-gradient(180deg, var(--orb-deep), var(--orb-sky)); }
.login-tick-two { background: linear-gradient(180deg, var(--orb-lilac), var(--orb-pink)); }
.login-tick-three { background: linear-gradient(180deg, var(--orb-sky), var(--orb-base)); }
.login-card-wrap { display: flex; align-items: center; justify-content: center; padding: var(--sp-7) 6vw; }
.login-card { width: 100%; max-width: 420px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.login-card-body { padding: var(--sp-6) var(--sp-6) var(--sp-6); }
.login-card h2 { margin: 0 0 var(--sp-2); font-size: var(--fs-xl); font-weight: 600; }
.login-card .hint { margin-bottom: var(--sp-5); }
.login-sso {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  color: var(--graphite-ink);
  font-size: var(--fs-m);
  font-weight: 600;
  text-decoration: none;
  background: var(--graphite);
}
.login-sso:hover, .login-sso:focus-visible {
  color: var(--graphite-ink);
  filter: brightness(1.28);
}
.login-or { display: flex; gap: var(--sp-3); align-items: center; margin: var(--sp-5) 0; color: var(--muted); font-size: var(--fs-xs); }
.login-or::before, .login-or::after { content: ""; flex-grow: 1; height: 1px; background: var(--line); }
.login-token { display: flex; flex-direction: column; gap: var(--sp-2); }
.login-token label { font-weight: 600; font-size: var(--fs-s); }
.login-token .hint { margin: 0 0 var(--sp-1); }
.login-token button { margin-top: var(--sp-2); }
.login-card .error { margin-bottom: var(--sp-4); }

@media (max-width: 899px) {
  .login-split { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .login-about { padding: var(--sp-6) var(--sp-4) var(--sp-6); border-right: 0; border-bottom: 1px solid var(--line); }
  .login-card-wrap { padding: var(--sp-6) var(--sp-4) var(--sp-7); }
}

.login {
  max-width: 520px;
  margin: 8vh auto;
  padding: var(--sp-6) var(--sp-6) var(--sp-6);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.login h1 { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-2); font-size: var(--fs-3xl); }
.login .lead { margin: 0 0 var(--sp-5); color: var(--muted); }
.login .error { margin-bottom: var(--sp-4); }
.login form { margin: 0; }
.login button { width: 100%; margin-top: var(--sp-4); }
.login .manual > summary { padding: var(--sp-3) 0; font-weight: 600; color: var(--accent); cursor: pointer; }
.login .manual[open] > summary { margin-bottom: var(--sp-3); font-weight: 700; }
.login .manual[open] > summary::marker { content: ""; }
.sso { margin-bottom: var(--sp-5); padding: var(--sp-4) var(--sp-4); background: var(--accent-soft); border-radius: var(--radius-control); }
.sso h2 { margin-bottom: var(--sp-2); font-size: var(--fs-l); }
.sso .hint { color: var(--ink); }
#panelcontainer:not(:empty) { margin: var(--sp-3) 0; }

@media (max-width: 899px) {
  .shell .rail { order: 2; }
  .rail-profile { display: none; }
  .shell .side-column { order: 3; }
  .hero h1 { font-size: var(--fs-2xl); }
}
@media (min-width: 900px) {
  .shell { --rail-w: 290px; grid-template-columns: var(--rail-w) minmax(0, 1fr); padding: 0 var(--sp-5) var(--sp-5); gap: var(--sp-5); }
  .shell-main { padding-top: var(--sp-5); }
  .shell-main .stage { height: calc(100vh - 40px); }
  .service-page { height: calc(100vh - var(--topbar) - 40px); display: flex; flex-direction: column; }
  .service-page .service { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
  .service-page .service-hero { flex: none; }
  .service-page .service-cols { flex: 1 1 auto; min-height: 0; align-items: stretch; grid-template-rows: minmax(0, 1fr); }
  .service-page .service-col-form, .service-page .service-col-result { max-height: 100%; overflow-y: auto; overscroll-behavior: contain; }
  .service-page .service-col-form { overflow-x: hidden; }
  .shell-main .stage-body { padding: var(--sp-5) var(--sp-7) 0; }
  .shell-main .stage-foot { padding: var(--sp-4) var(--sp-7) var(--sp-3); }
  .shell .rail { padding-top: var(--sp-4); border: 0; }
  .rail .rail-fold { display: flex; }
  .shell .side-column { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0 var(--sp-5) var(--sp-5); }
  .shell-folded { --left-w: var(--strip-w); grid-template-columns: var(--strip-w) minmax(0, 1fr); }
  .rail-grip { display: block; left: var(--left-w); }
  .shell-folded .rail { display: none; }
  .shell-folded .rail-strip { display: flex; }
  .body-workspace .topbar .profile-menu { display: none; }
  .groups { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
@media (min-width: 1260px) {
  .shell { --rail-w: 290px; grid-template-columns: var(--rail-w) minmax(0, 1fr) 320px; padding: 0 var(--sp-5) var(--sp-5); }
  .shell .side-column { grid-column: auto; grid-template-columns: 1fr; padding: var(--sp-4) var(--sp-5) var(--sp-5); }
  .shell .stage { max-width: var(--stage-w); justify-self: center; width: 100%; margin-inline: 0; }
  .shell-main { grid-template-columns: var(--rail-w) minmax(0, 1fr); }
  .shell-main.shell-folded { grid-template-columns: var(--strip-w) minmax(0, 1fr); }
  .shell-main .stage { max-width: none; }
  .shell-folded { grid-template-columns: var(--strip-w) minmax(0, 1fr) 320px; }
  .shell-side-folded { grid-template-columns: var(--rail-w) minmax(0, 1fr) var(--strip-w); }
  .shell-folded.shell-side-folded { grid-template-columns: var(--strip-w) minmax(0, 1fr) var(--strip-w); }
  .shell-side-folded .side-column { display: none; }
  .shell-side-folded .side-strip { display: flex; overflow-y: auto; }
  body.body-workspace .topbar { position: sticky; top: 0; z-index: 30; }
  body.body-workspace .shell:not(.shell-working) .rail,
  body.body-workspace .shell:not(.shell-working) .side-column {
    position: sticky;
    top: var(--topbar);
    align-self: start;
    min-height: 0;
    max-height: calc(100vh - var(--topbar));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  body.body-workspace .shell:not(.shell-working) .rail { height: calc(100vh - var(--topbar)); }
  body.body-workspace .shell .rail-strip {
    position: sticky;
    top: var(--topbar);
    align-self: start;
    height: calc(100vh - var(--topbar));
    overflow: visible;
  }
  html.is-working, body.body-workspace.is-working { height: 100%; }
  body.body-workspace.is-working { display: flex; flex-direction: column; overflow: hidden; }
  body.body-workspace.is-working .topbar { flex: none; }
  body.body-workspace.is-working #main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  body.body-workspace.is-working .shell { flex: 1; min-height: 0; grid-template-rows: minmax(0, 1fr); align-items: stretch; }
  body.body-workspace.is-working .shell .rail,
  body.body-workspace.is-working .shell .side-column { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-bottom: var(--sp-2); }
  body.body-workspace .shell-working .stage-body > * { flex: none; }
  body.body-workspace .shell-working .chat-window { padding: 2px var(--sp-1) var(--sp-2); }
  body.body-workspace .shell-folded.rail-peeking .rail,
  body.body-workspace .shell-side-folded.side-peeking .side-column {
    display: flex;
    position: fixed;
    top: calc(var(--topbar) + 10px);
    z-index: 40;
    width: 290px;
    height: auto;
    min-height: 0;
    max-height: calc(100vh - var(--topbar) - 24px);
    overflow-y: auto;
    border: 1px solid var(--line-strong);
    box-shadow: 0 30px 70px -30px rgba(25, 26, 36, 0.5);
    animation: panel-in var(--mo-calm-d) var(--mo-calm) both;
  }
  body.body-workspace .shell-folded.rail-peeking .rail { left: 63px; }
  body.body-workspace .shell-side-folded.side-peeking .side-column {
    right: 63px;
    left: auto;
    display: grid;
    gap: var(--sp-4);
    align-content: start;
    padding: var(--sp-4) 0;
    background: var(--panel);
  }
  body.body-workspace .shell-folded.rail-peeking .rail .rail-fold { display: none; }
  body.body-workspace .shell-side-folded.side-peeking .side-column .side-card {
    padding: 0 var(--sp-4);
    background: none;
    border: 0;
    border-radius: 0;
  }
  body.body-workspace .shell-side-folded.side-peeking .side-column .side-group { padding: 0; }
  body.body-workspace .shell-side-folded.side-peeking .side-column .side-card + .side-card {
    padding-top: var(--sp-4);
    border-top: 1px solid var(--line-soft);
  }
  body.body-workspace .shell-side-folded.side-peeking .side-column .side-group + .side-group {
    padding-top: 0;
    border-top: 0;
  }
  body.body-workspace .shell-folded.rail-peeking .rail .chats-current {
    background: var(--accent-soft);
    border-color: transparent;
  }
}
@media (max-width: 640px) {
  .topbar { gap: var(--sp-3) var(--sp-3); padding: var(--sp-2) var(--sp-4); }
  .topbar .brand { font-size: var(--fs-xl); }
  .topbar .segment-item { min-height: 36px; padding: 0 var(--sp-3); font-size: var(--fs-s); }
  .topbar .profile-name { display: none; }
  .topbar .profile-link { padding: 0 var(--sp-1); }
  .topbar .units-bar { width: 56px; }
  .shell { padding: var(--sp-4) var(--sp-3) var(--sp-5); gap: var(--sp-4); }
  .side-card { padding: var(--sp-4); }
  .chat-form { padding: var(--sp-3) var(--sp-3) var(--sp-3); border-radius: var(--radius-card); }
  .chat-controls .depth-option { min-height: 36px; padding: 0 var(--sp-3); font-size: var(--fs-s); }
  .chat-window .bubble { max-width: 100%; }
  .groups-all { width: 100%; justify-content: center; }
  .catalog-page .cards { grid-template-columns: 1fr; }
  .catalog-free .cards > .card-wide, .catalog-free .cards > .card-big { grid-column: auto; grid-row: auto; }
  .catalog-free .card-preview { display: none; }
  .catalog-free .card-big .card-name { font-size: inherit; }
  .doc-head, .doc-foot { padding-left: var(--sp-4); padding-right: var(--sp-4); }
  .doc-body { padding: var(--sp-4) var(--sp-4) var(--sp-2); font-size: var(--fs-l); }
  .page { padding: var(--sp-4) var(--sp-3) var(--sp-6); }
  .service, .profile-page { padding: var(--sp-5) var(--sp-4) var(--sp-5); border-radius: var(--radius-card); }
  .profile-page { margin: var(--sp-4) auto; }
  .login { margin: var(--sp-4) auto; padding: var(--sp-5) var(--sp-5) var(--sp-5); }
  h1 { font-size: var(--fs-2xl); }
  .service-head { flex-direction: column; align-items: flex-start; gap: var(--sp-2); }
  .service-head .close { margin-top: 0; }
  .result { padding: var(--sp-4); }
  .result-line.emphasis dd { font-size: var(--fs-xl); }
  .month-nav { grid-template-columns: 1fr 1fr; }
  .month-nav h2 { grid-column: 1 / -1; grid-row: 1; text-align: left; }
  table.month td { height: 52px; padding: var(--sp-2); font-size: var(--fs-s); }
  .ledger-grid { grid-template-columns: 1fr; }
  .ledger-table th:nth-child(3), .ledger-table td:nth-child(3) { display: none; }
  .ledger-actions form { display: block; margin: 0 0 var(--sp-1); }
  .actions button { width: 100%; }
}

@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .stage-bar { height: auto; flex-wrap: wrap; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); }
  .shell-main .stage-body { padding: var(--sp-4) var(--sp-4) 0; }
  .shell-main .stage-foot { padding: var(--sp-3) var(--sp-4) var(--sp-4); }
}

@media (max-width: 1000px) {
  .catalog-page { height: auto; min-height: 0; padding: 0; overflow: visible; }
  .catalog-bar { flex-wrap: wrap; height: auto; gap: var(--sp-3) var(--sp-3); padding: var(--sp-4) var(--sp-4); }
  .catalog-bar .catalog-chips { margin-left: 0; }
  .catalog-find { width: 100%; }
  .catalog-body { flex-direction: column; }
  .catalog-toc { width: auto; padding: var(--sp-4) var(--sp-4) 0; overflow: visible; }
  .catalog-toc .toc-list { flex-direction: row; flex-wrap: wrap; }
  .catalog-toc .toc-item { width: auto; }
  .catalog-sections { gap: var(--sp-5); padding: var(--sp-4); overflow: visible; }
}

@media (min-width: 900px) {
  .body-onboarding .topbar .profile-menu { display: block; }
  .body-onboarding .shell { grid-template-columns: minmax(0, 1fr); }
  .body-onboarding .shell .stage { max-width: 680px; justify-self: center; width: 100%; }
  .body-onboarding .shell .stage-body { padding-top: 6vh; }
}

@media print {
  :root { --paper: #ffffff; --panel: #ffffff; --shadow: none; }
  body { font-size: 12pt; }
  .topbar, .skip, .prefill, .result-tools, .review-notes, .service-head .close, .service form button, .service .actions { display: none !important; }
  .page, .service { display: block; max-width: none; margin: 0; padding: 0; border: none; box-shadow: none; }
  .printed-on { display: block; color: var(--muted); }
  .result { border: 2px solid var(--line); break-inside: avoid; }
  input[type="text"], input[type="date"], select { border: none; padding: 0; font-weight: 600; background-image: none; }
  .service .field .hint { display: none; }
  .service .field { display: flex; gap: 8px; align-items: baseline; }
  .service .field label { flex: 0 0 auto; margin: 0; }
  .service .field input { flex: 1 1 auto; width: auto; }
  .service .field:has(input[value=""]) { display: none; }
  body.body-workspace { display: block; overflow: visible; height: auto; }
  body.body-workspace .shell { display: block; padding: 0; }
  body.body-workspace .shell .rail,
  body.body-workspace .shell .side-column,
  body.body-workspace .chat-form,
  body.body-workspace .disclaimer,
  body.body-workspace .doc-actions,
  body.body-workspace .doc-time { display: none !important; }
  body.body-workspace .shell .stage { display: block; max-width: none; overflow: visible; }
  body.body-workspace .shell .chat-window { display: block; overflow: visible; }
  body.body-workspace .doc { border: 0; box-shadow: none; margin: 0 0 18pt; break-inside: avoid; }
  body.body-workspace .doc-body { padding: 12pt 0 6pt; font-size: 12pt; }
  body.body-workspace .doc-head, body.body-workspace .doc-foot { padding-left: 0; padding-right: 0; }
  body.body-workspace .said { justify-content: flex-start; }
  body.body-workspace .bubble { background: transparent; border: 0; box-shadow: none; padding: 0; font-weight: 700; }
  body.body-workspace .bubble::after { display: none; }
  body.body-workspace .doc-source::after { content: " — " attr(href); color: var(--muted); font-size: 10pt; }
}
@media screen and (min-width: 900px) {
  .shell-main { --topbar: 0px; padding: 0; gap: 0; }
  .shell-main .stage, .shell-main .page-column { margin: var(--sp-5) var(--sp-5) var(--sp-5) 0; }
  .shell-main .stage { width: auto; justify-self: stretch; }
  .shell-main .rail { padding: var(--sp-5) var(--sp-4) var(--sp-5) var(--sp-5); }
  .shell-main:not(.shell-working) .rail {
    position: sticky;
    top: 0;
    align-self: start;
    min-height: 0;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
  }
  body.body-workspace.is-working .shell-main .rail { overflow: hidden; padding-bottom: var(--sp-5); }
  .shell-main:not(.shell-working) .rail-strip {
    position: sticky;
    top: 0;
    align-self: start;
    height: 100vh;
  }
  .shell-main .rail-grip { position: fixed; top: 20px; bottom: 20px; left: calc(var(--left-w) + 4px); width: 18px; margin-left: 0; background: none; }
  .shell-main .rail-grip::before { display: none; }
  .shell-main :is(.stage, .page-column > :first-child) { box-shadow: inset 4px 0 0 rgba(197, 211, 236, 0), var(--shadow-scene); transition: box-shadow 0.25s ease; }
  .shell-main > .rail-grip:hover ~ .stage,
  .shell-main > .rail-grip:hover ~ * .stage,
  .shell-main > .rail-grip:hover ~ .page-column > :first-child,
  .shell-main > .rail-grip:hover ~ * .page-column > :first-child,
  .shell-main.shell-sizing :is(.stage, .page-column > :first-child) { box-shadow: inset 4px 0 0 #c5d3ec, var(--shadow-scene); }
}
.rail-scroll { flex: 1 1 auto; min-height: 0; margin-right: calc(-1 * var(--sp-2)); padding-right: var(--sp-2); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.rail-foot { display: flex; flex: none; flex-direction: column; gap: var(--sp-4); margin-top: auto; }
.stage-title { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stage-when { flex: none; white-space: nowrap; }
.shell-working .stage-company-more { display: none; }
.think.chat-tool { width: auto; min-width: 34px; padding: 0 var(--sp-2); gap: 0; transition: padding 0.28s ease, border-color var(--ease), color var(--ease), background-color var(--ease); }
.think.chat-tool .think-text {
  position: static;
  display: inline-block;
  width: auto;
  height: auto;
  max-width: 0;
  margin-left: 0;
  overflow: hidden;
  clip: auto;
  opacity: 0;
  color: var(--accent);
  -webkit-text-fill-color: currentColor;
  background: none;
  font-size: var(--fs-s);
  font-weight: 600;
  white-space: nowrap;
  transition: max-width 0.3s ease, margin-left 0.3s ease, opacity 0.22s ease;
}
.think.chat-tool:has(input:checked) { padding: 0 var(--sp-3); }
.think.chat-tool:has(input:checked) .think-text { max-width: 160px; margin-left: var(--sp-2); opacity: 1; transition-delay: 0s, 0s, 0.08s; }
.rail .chats-panel { position: fixed; right: auto; }
.doc-head .spacer { display: none; }
.doc-busy { display: inline-flex; align-items: center; gap: var(--sp-2); }
.doc-busy::before { content: none; }
.doc-dots { display: inline-flex; align-items: center; gap: 3px; }
.doc-dots i { width: 3.5px; height: 3.5px; border-radius: 50%; background: var(--accent); animation: doc-dot 1.2s ease-in-out infinite; }
.doc-dots i:nth-child(2) { animation-delay: 0.2s; }
.doc-dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes doc-dot { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
.doc-body .streaming::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -0.15em; background: var(--accent); animation: doc-caret 1s steps(1) infinite; }
@keyframes doc-caret { 50% { opacity: 0; } }
.doc-stop { display: flex; align-items: center; gap: var(--sp-3); }
.doc-stop-button { display: inline-flex; align-items: center; gap: var(--sp-2); height: 34px; min-height: 34px; padding: 0 var(--sp-3); border: 1px solid var(--line-field); border-radius: var(--r-s); background: var(--panel); color: var(--ink); font: inherit; font-size: var(--fs-s); font-weight: 600; cursor: pointer; }
.doc-stop-button:hover, .doc-stop-button:focus-visible { background: var(--surface-soft); color: var(--ink); filter: none; }
.doc-stop-note { font-family: var(--font); font-size: var(--fs-xs); color: var(--quiet); }
.chat-controls #chat-send.chat-stop { color: var(--graphite-ink); background: var(--graphite); border: 0; }
.chat-controls .chat-stop { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 38px; height: 38px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: var(--graphite); color: var(--graphite-ink); cursor: pointer; }
.chat-controls .chat-stop[hidden] { display: none; }
.chat-window .said-queued .bubble { opacity: 0.6; }
.chat-window .said-queued .said-label::after { content: " · " attr(data-queued); }
.said-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--sp-1) var(--sp-3); font-size: var(--fs-xs); color: var(--quiet); }
.said-tool { min-height: 0; padding: 2px 0; border: 0; background: none; color: var(--accent-dark); font: inherit; font-weight: 600; cursor: pointer; }
.said-tool:hover, .said-tool:focus-visible { color: var(--accent); text-decoration: underline; filter: none; background: none; }
.said-tool-cancel { color: var(--muted); }
.chat-window .said-status { justify-self: end; margin: calc(var(--sp-2) * -1) 0 0; text-align: right; font-size: var(--fs-xs); color: var(--quiet); }
.chat-window .doc-system { display: flex; align-items: center; gap: var(--sp-2); margin: 0; font-size: var(--fs-s); color: var(--muted); }
.chat-window .doc-system svg { flex: none; color: var(--ok); }
.chat-controls .chat-stop, .chat-controls #chat-send { animation: send-pop 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.3); }
.chat-controls #chat-send[hidden] { display: none; }
.chat-controls .chat-stop { position: relative; }
.chat-controls .chat-stop::before { content: ""; position: absolute; inset: -4px; border: 2px solid transparent; border-top-color: var(--accent); border-right-color: var(--accent); border-radius: 50%; animation: stop-ring 0.9s linear infinite; }
@keyframes send-pop { from { opacity: 0; transform: scale(0.55) rotate(-60deg); } to { opacity: 1; transform: none; } }
@keyframes stop-ring { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .chat-controls .chat-stop, .chat-controls #chat-send { animation: none; }
  .chat-controls .chat-stop::before { animation-duration: 3s; }
}
.chat-window { gap: 32px; }
.chat-window .doc { gap: 12px; }
.chat-window .doc-head { gap: var(--sp-2) 10px; }
.chat-window .doc-head .orb-mini { --orb-mini-s: 28px; margin-right: 2px; }
.chat-window .said .bubble { padding: 12px 16px; border-radius: 18px 18px 6px 18px; }
.chat-window .said-status { margin-top: -22px; }
@media (max-width: 700px) {
  .chat-window { gap: 24px; }
  .chat-window .said-status { margin-top: -16px; }
}
.chat-window .doc-body { font-weight: 400; }
.chat-window .doc-body b, .chat-window .doc-body strong, .chat-window .doc-body .tool-row dd { font-weight: 600; }
.chat-window .doc-body > .doc-label:not(:first-child) { margin-top: 6px; }
.chat-window .doc-receipt { display: flex; align-items: center; gap: var(--sp-2); margin: 0; font-size: var(--fs-s); color: var(--muted); }
.chat-window .doc-receipt svg { flex: none; color: var(--ok); }
.chat-window .doc-foot { gap: 2px; padding: 4px 0 0; border-top: 0; }
.doc-foot .doc-tool, .doc-foot .report-open.doc-tool { display: inline-flex; align-items: center; gap: 6px; height: 30px; min-height: 30px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; box-shadow: none; color: var(--quiet); font: inherit; font-size: var(--fs-xs); font-weight: 500; cursor: pointer; transition: color 0.15s ease, background 0.15s ease; }
.doc-foot .report-open.doc-tool svg { width: 15px; height: 15px; padding: 0; border-radius: 0; background: none; color: currentColor; }
.doc-foot .doc-tool:hover, .doc-foot .doc-tool:focus-visible, .doc-foot .report-open.doc-tool:hover, .doc-foot .report-open.doc-tool:focus-visible { background: var(--surface-soft); color: var(--ink); filter: none; }
.doc-foot .report-open.doc-tool:hover svg { background: none; color: #c8170d; }
.doc-foot .doc-useful[aria-pressed="true"] { color: var(--accent-dark); }
.doc-foot .doc-useful[aria-pressed="true"] svg { fill: color-mix(in srgb, var(--accent) 22%, transparent); }
.doc-foot .doc-copy.done { color: var(--ok); }
.doc-foot .report-open.doc-tool { margin-left: auto; }
.doc-foot .doc-tool.doc-copy { width: auto; padding: 0 8px; color: var(--quiet); }
.chat-window .doc-body .doc-lead { font-weight: 500; }
.doc-proof { margin: 0; border: 1px solid var(--line-soft); border-radius: 12px; background: color-mix(in srgb, var(--surface-soft) 55%, transparent); font-size: var(--fs-s); color: var(--ink-2); }
.doc-proof summary { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); padding: 10px 14px; font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; }
.doc-proof summary::-webkit-details-marker { display: none; }
.doc-proof-arrow { color: var(--quiet); transition: transform 0.2s ease; }
.doc-proof[open] .doc-proof-arrow { transform: rotate(180deg); }
.doc-proof ul { display: grid; gap: 8px; margin: 0; padding: 0 14px 4px; list-style: none; }
.doc-proof li { display: flex; align-items: center; gap: var(--sp-2); }
.doc-proof li svg { flex: none; color: var(--ok); }
.doc-proof-time { margin: 0; padding: 6px 14px 12px; font-size: var(--fs-xs); color: var(--quiet); }
.doc-arrive .doc-head, .doc-arrive .doc-body > *, .doc-arrive .doc-proof, .doc-arrive .doc-foot { animation: doc-arrive 0.36s ease both; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes doc-arrive { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.doc-next { display: grid; gap: 8px; margin-top: 14px; }
.doc-next-head { font-size: var(--fs-s); font-weight: 600; color: var(--ink); }
.doc-next-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.doc-chip { display: inline-flex; align-items: center; gap: 4px; min-height: 30px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink-2); font: inherit; font-size: var(--fs-xs); font-weight: 500; text-decoration: none; cursor: pointer; transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease; }
.doc-chip:hover, .doc-chip:focus-visible { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-soft); filter: none; }
.doc-steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.doc-steps > li { position: relative; padding: 0 0 16px 40px; counter-increment: step; }
.doc-steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); font-size: var(--fs-xs); font-weight: 700; }
.doc-steps > li:not(:last-child)::after { content: ""; position: absolute; left: 12.5px; top: 30px; bottom: 4px; width: 1px; background: var(--line); }
.doc-steps > li:last-child { padding-bottom: 0; }
.chat-window .doc-body .doc-more > summary { display: inline-flex; align-items: center; gap: 4px; width: max-content; padding: 2px 0; border: 0; background: none; color: var(--muted); font-size: var(--fs-s); font-weight: 500; list-style: none; cursor: pointer; transition: color 0.15s ease; }
.chat-window .doc-body .doc-more > summary::-webkit-details-marker { display: none; }
.chat-window .doc-body .doc-more > summary:hover, .chat-window .doc-body .doc-more > summary:focus-visible { color: var(--ink); outline: none; }
.doc-more-arrow { flex: none; margin-left: -3px; transition: transform 0.2s ease; }
.chat-window .doc-body .doc-more[open] > summary { margin-bottom: 8px; }
.doc-more[open] .doc-more-arrow { transform: rotate(180deg); }
.doc-journal { padding: 14px 16px; border: 1px solid var(--line-soft); border-radius: 14px; background: var(--panel); overflow-x: auto; }
.doc-journal table { width: 100%; border-collapse: collapse; font-size: var(--fs-s); }
.doc-journal th { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.doc-journal td { padding: 8px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.doc-journal tr:last-child td { border-bottom: 0; }
.doc-journal-code { font-family: var(--font-mono); font-weight: 600; white-space: nowrap; }
.doc-journal-sum { text-align: right; white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.doc-journal th:last-child { text-align: right; }
.doc-calc { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line-soft); border-radius: 14px; background: var(--panel); }
.doc-calc-head { margin: 0 0 2px; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.doc-calc-total { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-4); padding-top: 8px; }
.doc-calc-total span { font-size: var(--fs-s); color: var(--muted); }
.doc-calc-total b { font-size: 22px; font-weight: 650; color: var(--ok); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tool-facts { display: grid; gap: 0; margin: 0; }
.tool-facts > div { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-4); padding: 9px 2px; border-bottom: 1px solid var(--line-soft); }
.tool-facts > div:last-child { border-bottom: 0; }
.tool-facts dt { margin: 0; font-size: var(--fs-s); color: var(--muted); }
.tool-facts dd { margin: 0; font-size: var(--fs-m); font-weight: 600; color: var(--ink); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tool-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.doc-chip.on { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-soft); }
.doc-assume { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 12px 14px; border: 1px solid color-mix(in srgb, #e08a00 30%, transparent); border-radius: 12px; background: color-mix(in srgb, #ffb020 10%, var(--panel)); font-size: var(--fs-m); line-height: 1.5; color: var(--ink); }
.doc-assume svg { flex: none; margin-top: 2px; color: #c26f00; }
.doc-assume b { display: block; margin-bottom: 2px; font-weight: 600; }
.doc-skeleton { display: grid; gap: 10px; max-width: 640px; }
.doc-skeleton i { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-soft) 0%, color-mix(in srgb, var(--accent) 10%, var(--surface-soft)) 50%, var(--surface-soft) 100%); background-size: 200% 100%; animation: doc-shimmer 1.4s ease-in-out infinite; }
.doc-skeleton i:nth-child(2) { width: 82%; }
.doc-skeleton i:nth-child(3) { width: 58%; }
@keyframes doc-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) {
  .doc-arrive .doc-head, .doc-arrive .doc-body > *, .doc-arrive .doc-proof, .doc-arrive .doc-foot { animation: none; }
}
.think-tip { left: -2px; bottom: 44px; width: 268px; max-width: none; padding: var(--sp-2) var(--sp-3); border: 0; border-radius: var(--r-s); background: var(--graphite); color: var(--graphite-ink); font-size: var(--fs-xs); font-weight: 400; line-height: 1.45; box-shadow: 0 12px 26px -14px rgba(25, 26, 36, 0.7); }
.think-tip::after { content: ""; position: absolute; left: 16px; bottom: -4px; width: 9px; height: 9px; background: var(--graphite); transform: rotate(45deg); }
.card-watermark { right: -14px; bottom: -18px; width: 98px; height: 98px; aspect-ratio: auto; }
.cards > .card-main .card-watermark { width: 150px; height: 150px; right: -30px; bottom: -36px; }
.dialog-sub { margin-left: var(--sp-3); font-family: var(--font); font-size: var(--fs-xs); font-weight: 400; letter-spacing: 0; color: var(--quiet); }
.limits-window, .conversation-window { width: min(520px, calc(100% - 32px)); padding: var(--sp-5) var(--sp-5) var(--sp-5); }
.limits-window { position: fixed; max-height: calc(100dvh - 48px); margin: auto; }
.reference-window { width: min(600px, calc(100% - 32px)); padding: var(--sp-5) var(--sp-5) var(--sp-5); }
.limits-window .dialog-title, .conversation-window .dialog-title, .reference-window .dialog-title { margin-bottom: var(--sp-4); }
.lm { display: flex; flex-direction: column; gap: var(--sp-4); }
.lm-now { display: flex; flex-direction: column; gap: var(--sp-2); }
.lm-head { display: flex; align-items: baseline; gap: var(--sp-2); }
.lm-name { font-size: var(--fs-s); font-weight: 500; color: var(--muted); }
.lm-value { font-size: 34px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.lm-of { font-size: var(--fs-s); color: var(--quiet); }
.lm-dates { display: flex; justify-content: space-between; gap: var(--sp-3); font-size: var(--fs-xs); color: var(--quiet); }
.lm-bar { height: 6px; border-radius: 3px; background: var(--line-card); overflow: hidden; }
.lm-bar i { display: block; height: 100%; border-radius: 3px; --fill: hsl(calc(var(--left) * 1.2deg) 58% 42%); background: var(--fill); }
.lm-costs { display: flex; flex-direction: column; gap: var(--sp-2); padding-top: var(--sp-4); border-top: 1px solid var(--line-soft); }
.lm-label { font-size: var(--fs-s); font-weight: 500; color: var(--muted); }
.lm-cost { display: flex; align-items: baseline; gap: var(--sp-3); font-size: var(--fs-s); color: var(--ink-2); }
.lm-cost::after { content: ""; order: 1; flex: 1 1 auto; border-bottom: 1px dotted #d3d9e7; transform: translateY(-4px); }
.lm-cost b { order: 2; font-family: var(--font-mono); font-weight: 600; color: var(--ink); }
.lm-demo, .lm-plan { position: relative; display: flex; flex: none; flex-direction: column; gap: 10px; padding: 20px; border-radius: 20px; overflow: hidden; color: #ffffff; background: radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, 0.09), transparent 55%), #17181f; box-shadow: 0 18px 40px -24px rgba(16, 17, 24, 0.7); isolation: isolate; }
.lm-demo::before, .lm-plan::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.2px); background-size: 14px 14px; -webkit-mask-image: linear-gradient(200deg, #000, transparent 60%); mask-image: linear-gradient(200deg, #000, transparent 60%); pointer-events: none; }
.lm-demo-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.lm-demo-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); transition: color 0.3s ease; }
.lm-demo-tag::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: #ffffff; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5); animation: lm-live 2.4s ease-out infinite; transition: background 0.3s ease; }
@keyframes lm-live { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.45); } 70%, 100% { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); } }
.lm-demo-until { font-size: 13px; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.5); }
.lm-demo-time { font-size: 36px; line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: #ffffff; transition: color 0.3s ease; }
.lm-demo-bar { --seg: 1; height: 6px; margin-top: 4px; background: rgba(255, 255, 255, 0.12); overflow: hidden; -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 calc(100% / var(--seg) - 3px), transparent 0 calc(100% / var(--seg))); mask-image: repeating-linear-gradient(90deg, #000 0 calc(100% / var(--seg) - 3px), transparent 0 calc(100% / var(--seg))); border-radius: 3px; }
.lm-demo-bar i { display: block; height: 100%; background: #ffffff; transition: width 0.6s ease, background 0.3s ease; }
.lm-demo.is-last .lm-demo-time { color: #ff8f86; }
.lm-demo.is-last .lm-demo-bar i, .lm-demo.is-last .lm-demo-tag::before, .lm-demo.is-over .lm-demo-tag::before { background: #ff8f86; }
.lm-demo.is-over .lm-demo-tag { color: #ffffff; font-size: 15px; letter-spacing: 0; text-transform: none; }
.lm-demo.is-over .lm-demo-tag::before { animation: none; }
.lm-demo.is-over .lm-demo-time, .lm-demo.is-over .lm-demo-bar, .lm-demo.is-over .lm-demo-until { display: none; }
.lm-demo-ask { display: flex; flex-direction: column; margin: 10px 0 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.lm-demo-q { margin: 0; font-size: 17px; font-weight: 700; color: #ffffff; }
.lm-demo-fold, .lm-demo-done { display: grid; grid-template-rows: 1fr; opacity: 1; transition: grid-template-rows 0.4s ease, opacity 0.3s ease; }
.lm-demo-fold > div, .lm-demo-done > div { min-height: 0; overflow: hidden; }
.lm-demo-done { grid-template-rows: 0fr; opacity: 0; }
.lm-demo-ask.is-sent .lm-demo-fold { grid-template-rows: 0fr; opacity: 0; }
.lm-demo-ask.is-sent .lm-demo-done { grid-template-rows: 1fr; opacity: 1; }
.lm-demo-text { margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, 0.6); }
.lm-demo-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: 16px; }
.lm-demo-go, .lm-demo-call { display: inline-flex; flex: 1 1 160px; align-items: center; justify-content: center; gap: var(--sp-2); min-height: 46px; padding: 0 18px; border: 0; border-radius: 14px; font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background 0.2s ease, transform 0.15s ease; }
.lm-demo-go:active, .lm-demo-call:active { transform: scale(0.98); }
.lm-demo-go { background: #ffffff; color: #17181f; }
.lm-demo-go:hover, .lm-demo-go:focus-visible { background: #e9ebf0; color: #17181f; }
.lm-demo-call { background: rgba(255, 255, 255, 0.09); color: #ffffff; }
.lm-demo-call:hover, .lm-demo-call:focus-visible { background: rgba(255, 255, 255, 0.15); color: #ffffff; }
.lm-demo-spin { display: none; width: 16px; height: 16px; border: 2px solid rgba(23, 24, 31, 0.2); border-top-color: #17181f; border-radius: 50%; animation: lm-spin 0.8s linear infinite; }
.lm-demo-ask.is-busy .lm-demo-spin { display: block; }
.lm-demo-ask.is-busy .lm-demo-go { pointer-events: none; opacity: 0.8; }
.lm-demo-fail { margin: var(--sp-2) 0 0; font-size: 14px; color: #ff8f86; animation: tab-in 0.22s ease both; }
.lm-demo-done p { display: flex; align-items: center; gap: var(--sp-2); margin: var(--sp-2) 0 0; font-size: 15px; font-weight: 600; color: #7ee2a8; }
.lm-quota { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: #f4f5f8; }
@property --lm-fill { syntax: "<number>"; inherits: true; initial-value: 0; }
@keyframes lm-fill { from { --lm-fill: 0; } }
.lm-ring { --left: 100; --lm-fill: var(--left); width: 40px; height: 40px; border-radius: 50%; background: conic-gradient(var(--ink) calc(var(--lm-fill) * 1%), #dfe2e9 0); animation: lm-fill 0.9s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both; -webkit-mask-image: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4.5px)); mask-image: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4.5px)); }
.lm-quota.is-low .lm-ring { background: conic-gradient(var(--error) calc(var(--lm-fill) * 1%), #dfe2e9 0); }
.lm-plan-main { display: flex; align-items: center; gap: 20px; margin-top: 8px; }
.lm-plan-ring { --left: 100; --lm-fill: var(--left); position: relative; display: grid; flex: none; place-items: center; width: 84px; height: 84px; animation: lm-fill 0.9s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both; }
.lm-plan-ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(#ffffff calc(var(--lm-fill) * 1%), rgba(255, 255, 255, 0.12) 0); -webkit-mask-image: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7.5px)); mask-image: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7.5px)); }
.lm-plan-ring b { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; color: #ffffff; }
.lm-plan.is-low .lm-plan-ring::before { background: conic-gradient(#ff8f86 calc(var(--lm-fill) * 1%), rgba(255, 255, 255, 0.12) 0); }
.lm-plan-words { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lm-plan-name { font-size: 14px; color: rgba(255, 255, 255, 0.6); }
.lm-plan-value { font-size: 36px; line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: #ffffff; white-space: nowrap; }
.lm-plan-value small { margin-left: 6px; font-size: 15px; font-weight: 500; letter-spacing: 0; color: rgba(255, 255, 255, 0.55); }
.lm-plan-date { font-size: 13px; color: rgba(255, 255, 255, 0.5); }
.lm-plan .lm-demo-tag::before { animation: none; }
.lm-demo-head { align-items: flex-start; }
.lm-demo-tag { line-height: 1.35; }
.lm-demo-tag::before { margin-top: -1px; }
.lm-demo-until { flex: none; white-space: nowrap; }
@media (max-width: 480px) {
  .lm-plan-main { gap: 14px; }
  .lm-plan-ring { width: 68px; height: 68px; }
  .lm-plan-ring b { font-size: 15px; }
  .lm-plan-value { font-size: 30px; }
  .lm-plan-value small { font-size: 14px; }
}
.lm-quota-words { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lm-quota-name { font-size: 15px; font-weight: 600; color: var(--ink); }
.lm-quota-date { font-size: 13px; color: var(--muted); }
.lm-quota-value { font-size: 26px; line-height: 1; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.lm-quota-value small { margin-left: 4px; font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.lm-demo-done svg { flex: none; }
@keyframes lm-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .lm-demo-fold, .lm-demo-done, .lm-demo-bar i { transition: none; }
  .lm-demo-tag::before, .lm-ring, .lm-plan-ring { animation: none; }
}
.reference-window .ref-list { margin: 0; }
.reference-window .ref-row { padding: var(--sp-3) 0; }
.reference-window .ref-value { width: 160px; font-size: var(--fs-xl); }
.reference-window .ref-since .mono { font-family: var(--font-mono); }
.ref-foot { align-items: center; margin-top: var(--sp-4); }
.ref-foot svg { flex: none; color: #2ba06a; }
.ref-check { font-size: var(--fs-xs); color: var(--ink-2); }
.cv { display: flex; flex-direction: column; gap: var(--sp-4); padding: 0; background: none; border: 0; }
.cv-lead { margin: calc(-1 * var(--sp-1)) 0 0; font-size: var(--fs-xs); line-height: 1.5; color: var(--muted); }
.cv-block { display: flex; flex-direction: column; gap: var(--sp-2); }
.cv-label { font-family: var(--font); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.cv-services { display: flex; flex-direction: column; gap: var(--sp-2); margin: 0; padding: 0; list-style: none; }
.cv-services a { display: flex; align-items: center; min-height: 36px; padding: 0 var(--sp-3); border-radius: var(--r-s); background: var(--surface-soft); color: var(--ink); font-size: var(--fs-s); font-weight: 600; text-decoration: none; }
.cv-services a:hover { background: var(--accent-soft); color: var(--accent-dark); }
.cv-empty { margin: 0; padding: var(--sp-3) var(--sp-4); border: 1px dashed var(--line-field); border-radius: var(--r-m); font-size: var(--fs-s); line-height: 1.5; color: var(--muted); }
.cv-empty[hidden] { display: none; }
.cv-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2); }
.cv-stat { display: flex; flex-direction: column; gap: 3px; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-m); background: var(--surface-soft); }
.cv-stat b { font-family: var(--font-mono); font-size: var(--fs-xl); font-weight: 600; letter-spacing: -0.01em; }
.cv-stat span { font-size: var(--fs-xs); color: var(--muted); }
.cv-note { margin: 0; font-size: var(--fs-xs); line-height: 1.5; color: #7a7b8e; }
.sk { display: flex; flex-direction: column; gap: var(--sp-4); }
.sk-top { display: flex; align-items: flex-start; gap: var(--sp-4); margin-top: calc(-1 * var(--sp-1)); }
.sk-lead { flex: 1 1 auto; margin: 0; font-size: var(--fs-xs); line-height: 1.5; color: var(--muted); }
.sk-plus { display: flex; flex: none; align-items: center; justify-content: center; width: 34px; height: 34px; min-height: 0; padding: 0; border: 1px dashed #c5d3ec; border-radius: var(--r-m); background: transparent; color: var(--accent-dark); cursor: pointer; }
.sk-plus:hover, .sk-plus[aria-expanded="true"] { border-style: solid; background: var(--accent-soft); color: var(--accent-dark); filter: none; }
.sk-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.sk-item { border-bottom: 1px solid var(--line-soft); }
.sk-item:last-child { border-bottom: 0; }
.sk-row { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) 0; margin: 0; }
.sk-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sk-name { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-s); font-weight: 600; }
.sk-note { font-size: var(--fs-xs); line-height: 1.4; color: var(--muted); }
.sk-own { font-family: var(--font); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-dark); background: var(--accent-soft); border-radius: 6px; padding: 2px var(--sp-2); }
.sk-edit { display: flex; flex: none; align-items: center; justify-content: center; width: 28px; height: 28px; min-height: 0; padding: 0; border: 0; border-radius: var(--r-s); background: transparent; color: var(--quiet); cursor: pointer; }
.sk-edit:hover, .sk-edit:focus-visible { background: var(--surface-soft); color: var(--ink); filter: none; }
.sk-switch { position: relative; display: flex; flex: none; align-items: center; width: 40px; height: 23px; padding: 0 3px; margin: 0; border-radius: var(--r-m); background: var(--line-field); cursor: pointer; transition: background-color 0.2s ease; }
.sk-switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sk-knob { width: 17px; height: 17px; border-radius: 50%; background: #ffffff; box-shadow: 0 1px 2px rgba(25, 26, 36, 0.25); transition: transform var(--mo-settle-d) var(--mo-settle); }
.sk-switch:has(input:checked) { background: var(--accent); }
.sk-switch:has(input:checked) .sk-knob { transform: translateX(17px); }
.sk-switch:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.sk-editor { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-4); margin-bottom: var(--sp-3); border-radius: var(--r-m); background: var(--surface-soft); }
.sk-editor[hidden] { display: none; }
.sk-new { margin-bottom: 0; }
.sk-fields { display: flex; gap: var(--sp-3); }
.sk-fields .pf-field { flex: 1 1 auto; }
.sk-fields .sk-narrow { flex: 0 0 150px; }
.sk-actions { display: flex; gap: var(--sp-2); }
.sk-save, .sk-cancel, .sk-remove { height: 36px; min-height: 36px; padding: 0 var(--sp-4); border-radius: var(--r-m); font-size: var(--fs-s); font-weight: 600; cursor: pointer; }
.sk-save { border: 0; background: var(--graphite); color: var(--graphite-ink); }
.sk-cancel { border: 1px solid var(--line); background: var(--panel); color: var(--ink); }
.sk-remove { margin-left: auto; border: 1px solid var(--line); background: var(--panel); color: #8d3a3a; }
.sk-foot { margin-top: var(--sp-1); }
.doc-time::before { content: "· "; }
.tool-card { gap: var(--sp-3); }
.tool-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-1) var(--sp-3); }
.tool-head .tool-args, .tool-open { white-space: nowrap; }
.tool-card .tool-name { font-size: var(--fs-s); font-weight: 600; color: var(--ink); }
.tool-card .tool-name::before, .tool-card a.tool-name::after { content: none; }
.tool-card a.tool-name:hover { text-decoration: none; color: var(--ink); }
.tool-open { margin-left: auto; font-size: var(--fs-xs); font-weight: 600; color: var(--accent); text-decoration: none; }
.tool-open:hover { text-decoration: underline; }
.tool-rows { display: grid; gap: var(--sp-2); margin: 0; }
.tool-row { display: flex; align-items: baseline; gap: var(--sp-3); }
.tool-row dt { margin: 0; font-size: var(--fs-s); font-weight: 400; color: var(--ink-2); }
.tool-row::after { content: ""; order: 1; flex: 1 1 auto; min-width: 18px; border-bottom: 1px dotted #d3d9e7; transform: translateY(-3px); }
.tool-row dd { order: 2; margin: 0; font-family: var(--font-mono); font-size: var(--fs-s); font-weight: 500; color: var(--ink); white-space: nowrap; }
.tool-total { display: flex; align-items: baseline; gap: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid var(--line); }
.tool-total span { font-size: var(--fs-s); font-weight: 600; }
.tool-total b { margin-left: auto; font-family: var(--font-mono); font-size: var(--fs-l); font-weight: 600; letter-spacing: -0.01em; }
.doc-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); }
.doc-foot .spacer { flex: 1 1 auto; }
.doc-foot .rating { display: inline-flex; align-items: center; gap: var(--sp-2); }
.doc-foot .rate, .doc-foot .doc-action { display: inline-flex; align-items: center; justify-content: center; height: 30px; min-height: 30px; padding: 0 var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-s); background: transparent; color: var(--ink); font: inherit; font-size: var(--fs-xs); font-weight: 500; text-decoration: none; cursor: pointer; }
.doc-foot .rate:hover, .doc-foot .doc-action:hover, .doc-foot .doc-action:focus-visible { border-color: var(--accent); background: transparent; color: var(--accent-dark); text-decoration: none; }
.doc-foot .doc-format { font-family: var(--font-mono); font-size: var(--fs-xs); }
.doc-foot .doc-copy, .doc-foot .rate { width: 30px; padding: 0; color: #4a4b5e; }
.doc-foot .rate:hover { color: var(--accent-dark); }
.doc-foot .doc-copy.said { width: auto; padding: 0 var(--sp-3); font-size: var(--fs-xs); }

.company-dialog .company-card { display: flex; flex-direction: column; gap: var(--sp-4); }
.company-dialog .company-tools { gap: var(--sp-2); }
.company-dialog .company-arrow { width: 30px; min-height: 30px; border-radius: var(--r-s); border-color: #e4e8f1; color: #4a4b5e; }
.company-dialog .company-head { margin: 0; }
.company-dialog .company-mark {
  width: 44px;
  height: 44px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 0;
  border-radius: var(--r-m);
}
.company-dialog .company-name { font-family: var(--font); font-size: var(--fs-l); font-weight: 600; letter-spacing: -0.012em; }
.company-dialog .company-inn { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); }
.company-live {
  display: inline-flex;
  align-items: center;
  height: 28px;
  margin-left: auto;
  padding: 0 var(--sp-3);
  border-radius: var(--r-s);
  background: #eaf4ee;
  color: #17603a;
  font-size: var(--fs-xs);
  font-weight: 700;
}
.company-dialog .company-pills { gap: var(--sp-2); }
.company-dialog .company-pill {
  height: 32px;
  gap: var(--sp-2);
  padding: 0 var(--sp-3);
  font-size: var(--fs-xs);
  background: var(--surface-soft);
  border: 0;
  border-radius: var(--r-s);
}
.company-dialog .pill-label { color: var(--muted); }
.company-dialog .company-pill b { font-weight: 600; }
.company-dialog .company-pill-empty { background: #fbf9f4; border: 1px dashed #e0d9c8; color: #8a6a2a; }
.company-dialog .company-pill-empty:hover, .company-dialog .company-pill-empty:focus-visible { background: #f6f1e4; border-color: #cdbf9d; color: #6f5420; }
.company-foot { margin-top: 0; }
.company-foot form { margin: 0; }
.company-foot .company-activate { min-height: 38px; padding: 0 var(--sp-4); border-radius: var(--r-m); font-size: var(--fs-s); font-weight: 600; }
.company-foot .company-edit-link, .company-foot .company-add-link, .company-foot .company-trash {
  min-height: 38px;
  padding: 0 var(--sp-4);
  gap: var(--sp-2);
  border: 1px solid #e4e8f1;
  border-radius: var(--r-m);
  background: var(--panel);
  color: var(--ink);
  font-size: var(--fs-s);
  font-weight: 500;
}
.company-foot .company-add-link { padding: 0 var(--sp-3); }
.company-foot .company-trash { width: 38px; padding: 0; color: #8d3a3a; }
.company-foot .company-trash.asking { width: auto; padding: 0 var(--sp-3); font-size: var(--fs-xs); font-weight: 600; }
.company-foot .company-edit-link:hover, .company-foot .company-add-link:hover, .company-foot .company-trash:hover { background: var(--surface-soft); color: var(--ink); filter: none; }
.company-foot .company-trash:hover { color: #8d3a3a; }

select[aria-expanded="true"], .pk-date-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pk-list, .pk-date {
  position: absolute;
  z-index: 60;
  box-sizing: border-box;
  border: 1px solid var(--line-card);
  border-radius: var(--r-m);
  background: var(--panel);
  box-shadow: 0 12px 30px -18px rgba(24, 36, 72, 0.5), 0 2px 6px rgba(25, 26, 36, 0.06);
  font-size: var(--fs-s);
  font-weight: 500;
  color: var(--ink);
  text-align: left;
}
.pk-list, .pk-date {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(10px) saturate(1.9);
  backdrop-filter: blur(10px) saturate(1.9);
  box-shadow: inset 1.5px 1.5px 0 rgba(255, 255, 255, 0.95), inset -1px -1px 0 rgba(255, 255, 255, 0.57), inset 0 0 18px rgba(255, 255, 255, 0.43), 0 12px 30px -14px rgba(24, 36, 72, 0.4), 0 2px 6px rgba(25, 26, 36, 0.07);
}
.pk-list { max-height: 300px; overflow-y: auto; padding: var(--sp-2); }
.pk-date .pk-day:hover, .pk-list .pk-opt:hover { background: rgba(255, 255, 255, 0.6); }
.pk-date .pk-modes { background: rgba(116, 122, 140, 0.14); }
.pk-date .pk-mode[aria-pressed="true"] { background: rgba(255, 255, 255, 0.85); }
.pk-date .pk-title-pick { background: rgba(116, 122, 140, 0.14); }
.pk-date .pk-mon { background: rgba(255, 255, 255, 0.45); }
.pk-head { padding: var(--sp-2) var(--sp-3) var(--sp-1); font-family: var(--font); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.pk-row, .pk-day, .pk-nav, .pk-link {
  display: flex;
  align-items: center;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  filter: none;
}
.pk-row { width: 100%; gap: var(--sp-3); min-height: 38px; padding: 0 var(--sp-3); border-radius: var(--r-s); font-size: var(--fs-s); font-weight: 500; text-align: left; }
.pk-row .pk-label { flex: 1 1 auto; min-width: 0; }
.pk-row .pk-mark { flex: none; display: inline-flex; color: var(--accent); }
.pk-row.is-active, .pk-row:hover { background: #eff3fa; color: var(--ink); filter: none; }
.pk-row[aria-selected="true"] { font-weight: 600; }
.pk-row:disabled { opacity: 0.4; cursor: default; }
.pk-date { width: 292px; padding: var(--sp-3); }
.pk-top { display: flex; align-items: center; gap: 2px; margin-bottom: var(--sp-2); }
.pk-title { flex: 1 1 auto; text-align: center; font-size: var(--fs-s); font-weight: 600; }
.pk-nav { justify-content: center; width: 30px; height: 30px; border-radius: var(--r-s); color: #4a4b5e; }
.pk-nav:hover { background: #eff3fa; color: var(--ink); filter: none; }
.pk-week, .pk-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.pk-week { margin-bottom: 2px; }
.pk-week span { padding: var(--sp-1) 0; text-align: center; font-family: var(--font); font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: #8a8b9c; }
.pk-grid { gap: 2px; }
.pk-day { justify-content: center; height: 34px; border-radius: var(--r-s); font-size: var(--fs-s); }
.pk-day:hover { background: #eff3fa; color: var(--ink); filter: none; }
.pk-day.is-out { color: #b4b5c4; }
.pk-day.is-today { box-shadow: inset 0 0 0 1.5px var(--accent); }
.pk-day.is-chosen, .pk-day.is-chosen:hover { background: var(--graphite); color: var(--graphite-ink); font-weight: 600; }
.pk-day:disabled { opacity: 0.35; cursor: default; }
.pk-day:disabled:hover { background: transparent; }
.pk-marks-off:not(:has(.error, .field-error)) { display: none !important; }
.pk-marks { width: 320px; }
.pk-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-bottom: var(--sp-2); padding: 2px; border-radius: var(--r-s); background: var(--surface-soft); }
.pk-mode { min-height: 32px; padding: 0 var(--sp-2); border: 0; border-radius: var(--r-s); background: transparent; color: var(--muted); font: inherit; font-size: var(--fs-s); font-weight: 600; cursor: pointer; filter: none; }
.pk-mode:hover { color: var(--ink); filter: none; }
.pk-mode[aria-pressed="true"] { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(25, 26, 36, 0.12); }
.pk-mode-sick[aria-pressed="true"] { color: #b4235a; }
.pk-hint { margin: 0 0 var(--sp-2); font-size: var(--fs-xs); line-height: 1.35; color: var(--muted); }
.pk-day.is-sun { color: #b4235a; }
.pk-day.is-hol { color: #b4235a; font-weight: 700; box-shadow: inset 0 -2px 0 #e6a3bb; }
.pk-day.is-vac, .pk-day.is-vac:hover { background: #e7f4ec; color: var(--ink); }
.pk-day.is-vac.is-sun, .pk-day.is-vac.is-hol { color: #b4235a; }
.pk-day.is-edge, .pk-day.is-edge:hover { background: var(--graphite); color: var(--graphite-ink); font-weight: 600; }
.pk-day.is-chosen.is-sun, .pk-day.is-chosen.is-hol, .pk-day.is-edge.is-sun, .pk-day.is-edge.is-hol { color: var(--graphite-ink); box-shadow: none; }
.pk-day.is-ext, .pk-day.is-ext:hover { background: repeating-linear-gradient(135deg, #e7f4ec 0 4px, #cfe9d9 4px 8px); color: var(--ink); }
.pk-day.is-sick, .pk-day.is-sick:hover { background: #fbe1ea; color: #8e1a46; font-weight: 700; box-shadow: inset 0 0 0 1.5px #e58aab; }
.pk-legend { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-3); margin-top: var(--sp-2); font-size: var(--fs-xs); color: var(--muted); }
.pk-key { display: inline-flex; align-items: center; gap: 6px; }
.pk-key::before { content: ""; width: 12px; height: 12px; border-radius: 3px; }
.pk-key-vac::before { background: #e7f4ec; box-shadow: inset 0 0 0 1px #b9dcc6; }
.pk-key-sick::before { background: #fbe1ea; box-shadow: inset 0 0 0 1.5px #e58aab; }
.pk-key-ext::before { background: repeating-linear-gradient(135deg, #e7f4ec 0 3px, #cfe9d9 3px 6px); }
.pk-key-hol::before { background: transparent; box-shadow: inset 0 -2px 0 #e6a3bb, inset 0 0 0 1px #ecd3dc; }
.pk-note { font-size: var(--fs-xs); font-weight: 600; color: #8e1a46; }
.pk-mode-unpaid[aria-pressed="true"] { color: #8a5a00; }
.pk-mode-absent[aria-pressed="true"] { color: #b4235a; }
.pk-title-pick { flex: 0 1 auto; margin: 0 auto; min-height: 34px; padding: 0 var(--sp-3); border: 0; border-radius: var(--r-s); background: var(--surface-soft); color: var(--ink); font: inherit; font-size: var(--fs-s); font-weight: 700; cursor: pointer; filter: none; }
.pk-title-pick::after { content: " ▾"; font-size: 0.8em; color: var(--muted); }
.pk-title-pick:hover { background: var(--line-card); filter: none; }
.pk-mon.is-has { box-shadow: inset 0 -3px 0 #f5b23c; }
.pk-mark-btn { display: flex; align-items: center; width: 100%; min-height: 48px; padding: 0 var(--sp-4); border: 1px dashed var(--line-strong); border-radius: var(--radius-control); background: var(--panel); color: var(--ink-2); font: inherit; font-size: var(--fs-m); font-weight: 600; text-align: left; cursor: pointer; filter: none; }
.pk-mark-btn:hover { border-color: var(--ink-2); color: var(--ink); filter: none; }
.pk-mark-btn.is-set { border-style: solid; border-color: #e8c46f; background: #fdf8ea; color: #6e4700; }
.pk-day.is-unpaid, .pk-day.is-unpaid:hover { background: #fdf0d2; color: #6e4700; font-weight: 700; box-shadow: inset 0 0 0 1.5px #e8c46f; }
.pk-day.is-absent, .pk-day.is-absent:hover { background: #fbe1ea; color: #8e1a46; font-weight: 700; box-shadow: inset 0 0 0 1.5px #e58aab; }
.pk-day.is-anchor { outline: 2px solid var(--graphite); outline-offset: -2px; }
.pk-key-unpaid::before { background: #fdf0d2; box-shadow: inset 0 0 0 1.5px #e8c46f; }
.pk-key-absent::before { background: #fbe1ea; box-shadow: inset 0 0 0 1.5px #e58aab; }
.pk-months { grid-template-columns: repeat(3, 1fr); gap: 4px; }
.pk-mon { height: 40px; }
.pk-foot { display: flex; align-items: center; margin-top: var(--sp-2); padding-top: var(--sp-2); border-top: 1px solid var(--line-soft); }
.pk-spacer { flex: 1 1 auto; }
.pk-link { min-height: 30px; padding: 0 var(--sp-2); border-radius: var(--r-s); font-size: var(--fs-s); font-weight: 600; color: var(--accent-dark); }
.pk-link:hover { background: #eff3fa; color: var(--accent-dark); filter: none; }
.pk-link:disabled { opacity: 0.4; cursor: default; }
.pk-date-input {
  cursor: pointer;
  padding-right: var(--sp-7);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236c6d80' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='2.5'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 14px) 50%;
  background-size: 16px 16px;
}
.service-hero { overflow: visible; z-index: 5; }
.service-clip { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.service-hero .service-watermark { z-index: auto; }
.service-tools { position: relative; }
.service-bubble {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 50;
  width: 320px;
  margin: 0;
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-s);
  line-height: 1.5;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line-card);
  border-left: 1px solid var(--line-card);
  border-radius: var(--r-m);
  box-shadow: 0 12px 30px -14px rgba(24, 36, 72, 0.45), 0 2px 6px rgba(25, 26, 36, 0.08);
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font);
  font-weight: 500;
}
.service-bubble::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 50px;
  width: 10px;
  height: 10px;
  background: var(--panel);
  border-top: 1px solid var(--line-card);
  border-left: 1px solid var(--line-card);
  transform: rotate(45deg);
}
.service-bubble.open { display: block; }
.service-bubble::before { right: auto; left: var(--tip-arrow, calc(100% - 55px)); }
.service-bubble.is-above::before { top: auto; bottom: -6px; transform: rotate(225deg); }
.service-bubble[popover], .info-bubble[popover] { position: fixed; inset: auto; right: auto !important; bottom: auto !important; margin: 0; overflow: visible; }
.is-liquid .service-bubble:popover-open { border-color: transparent; background: rgba(255, 255, 255, 0.93); backdrop-filter: url(#glass-tip) blur(4px) saturate(1.7); box-shadow: inset 1.5px 1.5px 0 rgba(255, 255, 255, 0.95), inset -1px -1px 0 rgba(255, 255, 255, 0.55), inset 0 0 18px rgba(255, 255, 255, 0.45), 0 12px 30px -14px rgba(24, 36, 72, 0.45), 0 2px 6px rgba(25, 26, 36, 0.08); }
.is-liquid .service-bubble:popover-open::before { border-color: transparent; background: rgba(255, 255, 255, 0.93); }
.service-tip[aria-expanded="true"], .service-tip:hover { color: currentColor; background: rgba(255, 255, 255, 0.28); border: 0; }
.service-col-result:not(.on-paper) { display: flex; flex-direction: column; }
.service-col-result:not(.on-paper) > * { flex: none; }
.service-col-result:not(.on-paper) > .result { flex: 1 1 auto; grid-template-rows: repeat(19, auto) minmax(0, 1fr) auto; align-content: start; }
.service-col-result:not(.on-paper) .result-stamp { grid-row: 21; margin-top: var(--sp-4); }
.service-col-result .result-line.words { flex-wrap: wrap; row-gap: var(--sp-1); padding-top: var(--sp-3); }
.service-col-result .result-line.words::after { display: none; }
.service-col-result .result-line.words dt { flex: 0 0 100%; }
.service-col-result .result-line.words dd { flex: 0 0 100%; margin: 0; font-family: var(--font); font-size: var(--fs-s); font-weight: 500; line-height: 1.5; color: var(--ink-2); text-align: left; text-transform: none; }
.pk-row.is-active, .pk-row:hover, .pk-row.is-active:hover { background: #e6edfb; }
.pk-row[aria-selected="true"] .pk-label { color: var(--accent-dark); }
.service-col-form .pk-date-input { font-family: var(--font-mono); font-size: var(--fs-s); font-weight: 500; }
.field-row .pk-date-input { padding: 0 var(--sp-2) 0 var(--sp-3); font-size: var(--fs-s); background-image: none; }
.service-col-form .field-row .pk-date-input { font-size: var(--fs-s); }

@media (min-width: 900px) {
  body.body-workspace .shell-folded.rail-peeking .rail {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
    position: fixed;
    top: 16px;
    left: 72px;
    z-index: 60;
    width: 300px;
    height: auto;
    min-height: 0;
    max-height: calc(100vh - 32px);
    padding: var(--sp-4) var(--sp-4) var(--sp-4);
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.62);
    -webkit-backdrop-filter: blur(24px) saturate(1.6);
    backdrop-filter: blur(24px) saturate(1.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--r-xl);
    box-shadow: 0 1px 2px rgba(25, 26, 36, 0.05), 0 30px 70px -28px rgba(24, 36, 72, 0.5);
    animation: panel-in var(--mo-calm-d) var(--mo-calm) both;
  }
  body.body-workspace .shell-folded.rail-peeking .rail .rail-fold { display: none; }
  body.body-workspace .shell-folded.rail-peeking .rail .rail-scroll { flex: none; min-height: 0; overflow: visible; }
  body.body-workspace .shell-folded.rail-peeking .rail .rail-frequent[open] :is(.frequent-list, .frequent-empty) {
    position: static;
    margin-top: var(--sp-2);
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    animation: none;
  }
  body.body-workspace .shell-folded.rail-peeking .rail .rail-frequent .rail-chevron { display: none; }
  body.body-workspace .shell-folded.rail-peeking .rail .rail-frequent[open] > .rail-summary { display: none; }
  body.body-workspace .shell-folded.rail-peeking .rail .rail-frequent[open] :is(.frequent-list, .frequent-empty) { margin-top: 0; }
  body.body-workspace .shell-folded.rail-peeking .rail:has(.rail-frequent[open]) :is(.rail-scroll, .rail-foot) { display: none; }
}
.chats-dots {
  width: 26px;
  min-height: 26px;
  color: var(--ink-2);
  background: var(--panel);
  border: 1px solid #e4e8f1;
  border-radius: var(--r-s);
  box-shadow: 0 1px 2px rgba(25, 26, 36, 0.08);
}
.chats-dots:hover, .chats-menu.open .chats-dots, .chats-dots:focus-visible { color: #ffffff; background: var(--graphite); border-color: var(--graphite); filter: none; }
.chats-panel {
  min-width: 176px;
  padding: var(--sp-2);
  background: var(--panel);
  border: 1px solid #e4e8f1;
  border-radius: var(--r-m);
  box-shadow: 0 2px 6px rgba(25, 26, 36, 0.07), 0 24px 48px -20px rgba(24, 36, 72, 0.5);
}
.chats-panel-item { padding: var(--sp-2) var(--sp-3); border-radius: var(--r-s); font-size: var(--fs-s); font-weight: 500; color: var(--ink); }
.chats-panel-item:hover, .chats-panel-item:focus-visible { background: #eff3fa; color: var(--ink); filter: none; }
.chats-delete, .chats-delete:hover, .chats-delete:focus-visible { color: #8d3a3a; }
.chats-delete:hover, .chats-delete:focus-visible { background: #fbeeee; }
.chats-menu.open { z-index: 30; }
.chats-menu:hover .chats-panel, .chats-menu:focus-within .chats-panel { display: none; }
.chats-menu.open .chats-panel { display: grid; gap: 2px; }
@media print {
  body.body-workspace .rail-strip, .rail-grip, .service-bubble, .service-hero-top, .service-clip, .service-mark, .service-col-form, .service-empty-tools, .result-tools, .footer { display: none !important; }
  body.body-pages, body.body-pages .shell, body.body-pages .shell-main, body.body-pages .stage, body.body-pages .page-column, body.body-pages .service-page, body.body-pages .service:not(.calendar), body.body-pages .service-cols {
    display: block !important;
    position: static !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  .service-hero { position: static; isolation: auto; padding: 0 0 12pt; margin: 0 0 14pt; background: none !important; color: #000 !important; border-bottom: 1px solid #999; }
  .service-hero-main { display: block; }
  .service-hero-name h1 { font-size: 22pt; color: #000; }
  .service-hero-sum { color: #333; font-size: 11pt; }
  .service-hero-foot { margin-top: 6pt; }
  .service-when { color: #555; }
  .service-col-result { display: block !important; max-height: none !important; overflow: visible !important; padding: 0 !important; border: 0 !important; background: none !important; }
  .service-col-result .result { display: block; }
  .service-col-result .result h2 { margin: 0 0 8pt; color: #555; }
}

:focus-visible { outline: 2px solid rgba(47, 102, 196, 0.5); outline-offset: 2px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: none; }
input[type="text"]:focus, input[type="search"]:focus, input[type="date"]:focus, select:focus, textarea:focus,
.catalog-find input:focus, .rail .rail-find input:focus, .rail .rail-find input:focus-visible, .rail-find input:focus-visible {
  outline: none;
  border-color: #2f66c4;
  box-shadow: 0 0 0 3px rgba(47, 102, 196, 0.12);
}
input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  margin: 0 calc(-1 * var(--sp-1)) 0 var(--sp-2);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236c6d80' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / 12px no-repeat;
  border-radius: 50%;
  cursor: pointer;
}
input[type="search"]::-webkit-search-cancel-button:hover { background-color: rgba(25, 26, 36, 0.06); }
.rail .rail-find input::-webkit-search-cancel-button { margin-right: calc(-1 * var(--sp-5)); }

input[type="text"], input[type="search"], input[type="date"], select, textarea, .combo-input {
  transition: border-color 0.2s ease, box-shadow 0.28s ease, background-color 0.2s ease;
}
@keyframes focus-ring {
  from { outline-color: rgba(47, 102, 196, 0); outline-offset: 5px; }
  to { outline-color: rgba(47, 102, 196, 0.5); outline-offset: 2px; }
}
:focus-visible:not(input):not(textarea):not(select) { animation: focus-ring 0.22s ease both; }

.seg .seg-item, .service-col-form .field .seg .seg-item, .service-col-form .field .modes .seg-item, .service-col-form .field .tiles .seg-item { margin: 0; }
.seg-item span { font-weight: 500; }
.range-close { margin: var(--sp-1) 0 0; }
.rail-frequent[open] .frequent-empty { padding: var(--sp-3) var(--sp-4); }
.rail-frequent[open] :is(.frequent-list, .frequent-empty) {
  top: calc(100% + 8px);
  background: var(--panel);
  border: 1px solid #e4e8f1;
  border-radius: var(--r-m);
  box-shadow: 0 2px 6px rgba(25, 26, 36, 0.07), 0 24px 48px -20px rgba(24, 36, 72, 0.5);
}
.rail-frequent[open] .frequent-list { grid-template-columns: minmax(0, 1fr); overflow: hidden; }
.frequent-row, .frequent-list > li { min-width: 0; }
.frequent-item .group-icon { display: none; }
.rail-summary { white-space: nowrap; overflow: hidden; }
.rail-summary-text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.rail-summary .rail-chevron { margin-left: auto; }
.rail .rail-find input { padding-right: var(--sp-7); text-overflow: ellipsis; }
.rail .rail-find input:not(:placeholder-shown), .rail .rail-find input:focus { padding-right: var(--sp-3); }
.frequent-item { min-height: 36px; padding: 0 var(--sp-3); border-radius: var(--r-s); font-size: var(--fs-s); font-weight: 500; }
.frequent-item > span:not(.group-icon) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frequent-item:hover, .frequent-item:focus-visible { background: #eff3fa; color: var(--ink); }
.frequent-item:hover .group-icon, .frequent-item:focus-visible .group-icon { color: var(--ink-2); }
.frequent-pinned .frequent-item { font-weight: 500; }
.cal-day { justify-content: center; }
.cal-day:not(.is-picked):hover, .cal-day:not(.is-picked):focus-visible { background: var(--surface-soft); color: var(--ink); filter: none; }
.cal-day.is-today:not(.is-picked):hover { background: #edf0f7; }
.shell-main .rail, .shell-main .rail-strip { z-index: 15; }
.cal-item-title .cal-dot { display: none; }
.service-col-result { position: relative; }
.busy-veil { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-4); background: rgba(255, 255, 255, 0.82); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); animation: busy-in 0.2s ease both; }
.busy-ring { width: 36px; height: 36px; border-radius: 50%; border: 3px solid #e4e8f1; border-top-color: #2f66c4; animation: busy-spin 0.8s linear infinite; }
.busy-text { font-size: var(--fs-s); font-weight: 600; color: var(--ink-2); }
@keyframes busy-spin { to { transform: rotate(360deg); } }
@keyframes busy-in { from { opacity: 0; } to { opacity: 1; } }
.rb-row:hover, .rb-row.is-picked:hover, .rb-row:focus-visible { color: var(--ink); }
.rb-row.is-picked { color: var(--ink); }
.rb-row:hover .rb-code, .rb-row.is-picked .rb-code { color: var(--accent-dark); }
.rb-row:hover .rb-group { color: var(--muted); }
.discuss-button:hover, .discuss-button:focus-visible { color: var(--accent-dark); }
.rb-actions-row .rb-discuss { flex: 1 1 auto; display: flex; margin: 0; }
.rb-actions-row { align-items: stretch; }
.service-col-form .field .file-pick { display: flex; width: 100%; margin: 0; align-items: center; justify-content: center; }
.service-col-form .field .file-slot:has([data-file-saved]) .file-pick { height: 36px; }
.service-col-result:not(.on-paper) > .service-empty { flex: 1 1 auto; }
.service-col-result .service-empty-line { flex: 1 1 auto; flex-direction: column; justify-content: center; align-items: center; gap: 14px; margin: 0; padding: 0 var(--sp-4) var(--sp-7); text-align: center; }
.service-empty-line .empty-title { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; color: var(--ink); }
.service-empty-line .empty-text { margin: 0; max-width: 360px; font-size: var(--fs-m); line-height: 1.5; color: var(--muted); }
.empty-ghost { width: 100%; max-width: 520px; display: grid; gap: 12px; margin-bottom: 10px; -webkit-mask: linear-gradient(180deg, #000 55%, transparent); mask: linear-gradient(180deg, #000 55%, transparent); }
.empty-ghost i { display: block; height: 12px; border-radius: var(--r-pill); background: rgba(120, 120, 128, 0.14); }
.empty-ghost-card { display: grid; gap: 10px; padding: 20px 22px; border: 1px solid var(--line-card); border-radius: 22px; background: linear-gradient(180deg, color-mix(in srgb, var(--tone-soft, var(--surface-soft)) 80%, var(--panel)) 0%, var(--panel) 75%); text-align: left; }
.empty-ghost-card i { background: linear-gradient(90deg, rgba(120, 120, 128, 0.1) 0%, rgba(120, 120, 128, 0.2) 50%, rgba(120, 120, 128, 0.1) 100%); background-size: 200% 100%; animation: empty-shine 1.8s ease-in-out infinite; }
.empty-ghost-card i:nth-child(1) { width: 84px; height: 22px; }
.empty-ghost-card i:nth-child(2) { width: 58%; height: 40px; border-radius: 12px; }
.empty-ghost-card i:nth-child(3) { width: 40%; }
.empty-ghost-rows { display: grid; border: 1px solid var(--line-card); border-radius: 18px; overflow: hidden; }
.empty-ghost-rows > div { display: flex; justify-content: space-between; padding: 14px 16px; }
.empty-ghost-rows > div + div { box-shadow: inset 0 1px 0 var(--line-card); }
.empty-ghost-rows > div:nth-child(1) i:first-child { width: 38%; }
.empty-ghost-rows > div:nth-child(2) i:first-child { width: 30%; }
.empty-ghost-rows > div:nth-child(3) i:first-child { width: 44%; }
.empty-ghost-rows > div:nth-child(1) i:last-child { width: 22%; }
.empty-ghost-rows > div:nth-child(2) i:last-child { width: 18%; }
.empty-ghost-rows > div:nth-child(3) i:last-child { width: 12%; }
.empty-ghost.is-sheet { max-width: 420px; }
.empty-ghost.is-sheet .empty-ghost-card { gap: 12px; padding: 28px 30px; border-radius: 16px; background: var(--panel); }
.empty-ghost.is-sheet .empty-ghost-card i:nth-child(1) { width: 52%; height: 16px; justify-self: center; }
.empty-ghost.is-sheet .empty-ghost-card i:nth-child(2) { width: 30%; height: 12px; border-radius: var(--r-pill); justify-self: center; margin-bottom: 8px; }
.empty-ghost.is-sheet .empty-ghost-card i:nth-child(3) { width: 100%; }
.empty-ghost.is-sheet .empty-ghost-card i:nth-child(4) { width: 92%; }
.empty-ghost.is-sheet .empty-ghost-card i:nth-child(5) { width: 96%; }
.empty-ghost.is-sheet .empty-ghost-card i:nth-child(6) { width: 64%; }
@keyframes empty-shine { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .empty-ghost-card i { animation: none; } }
@media (max-width: 899px) { .empty-ghost-rows { display: none; } .empty-ghost { -webkit-mask: none; mask: none; } .service-col-result .service-empty-line { padding-bottom: var(--sp-5); } }
.service-col-result .service-empty { display: flex; flex-direction: column; gap: var(--sp-4); }
.rb-action ~ .rb-discuss { flex: none; }
.rb-discuss .discuss-button { width: 100%; justify-content: center; }
.rb-action ~ .rb-discuss .discuss-button { width: auto; }
.lg-pair > .field:nth-child(n) { flex: 1 1 0; }
.lg-stats { display: flex; align-items: stretch; gap: var(--sp-3); }
.lg-stat { flex: 1 1 0; display: flex; flex-direction: column; gap: var(--sp-1); padding: var(--sp-4) var(--sp-4); border-radius: var(--r-m); background: var(--surface-soft); }
.lg-stat b { font-family: var(--font-mono); font-size: var(--fs-xl); font-weight: 600; letter-spacing: -0.015em; }
.lg-stat > span:last-child { font-size: var(--fs-xs); color: var(--ink-2); }
.lg-stat.is-alert { background: #fbeeee; }
.lg-stat.is-alert b { color: #8d3a3a; }
.lg-stat.is-alert .result-label { color: #8d3a3a; }
.lg-today { align-self: flex-start; margin-left: auto; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--quiet); }
.lg-title { display: flex; align-items: baseline; gap: var(--sp-3); margin: var(--sp-2) 0 0; font-family: var(--font); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.lg-title span { font-weight: 500; color: var(--quiet); }
.lg-title.is-alert { color: #8d3a3a; }
.lg-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.lg-row { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-3) 0; border-bottom: 1px solid var(--line-soft); }
.lg-row:last-child { border-bottom: 0; }
.lg-date { flex: none; display: flex; flex-direction: column; width: 52px; }
.lg-date b { font-family: var(--font-mono); font-size: var(--fs-m); font-weight: 600; }
.lg-date span { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--quiet); }
.lg-body { display: flex; flex: 1 1 auto; flex-direction: column; gap: 2px; min-width: 0; }
.lg-name { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin: 0; font-family: var(--font); font-size: var(--fs-s); font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink); }
.lg-meta { font-size: var(--fs-xs); color: var(--ink-2); overflow-wrap: anywhere; }
.lg-badge { padding: 2px var(--sp-2); border-radius: 6px; background: #fbeeee; color: #8d3a3a; font-size: var(--fs-xs); font-weight: 700; }
.lg-amount { flex: none; font-family: var(--font-mono); font-size: var(--fs-s); font-weight: 600; white-space: nowrap; }
.lg-actions { flex: none; display: flex; align-items: center; gap: var(--sp-2); }
.lg-actions form { margin: 0; }
.lg-act { display: inline-flex; align-items: center; gap: var(--sp-2); height: 32px; min-height: 0; padding: 0 var(--sp-3); border: 1px solid #e4e8f1; border-radius: var(--r-s); background: var(--panel); color: var(--ink); font-size: var(--fs-xs); font-weight: 500; }
.lg-act:hover { background: #eff3fa; color: var(--ink); filter: none; }
.lg-act-main { border-color: #c5d3ec; background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; }
.lg-trash { width: 32px; padding: 0; justify-content: center; color: #8d3a3a; }
.lg-trash:hover { background: #fbeeee; color: #8d3a3a; }
.lg-paid .lg-name, .lg-paid .lg-amount, .lg-paid .lg-date b { color: var(--quiet); }
.lg-overdue .lg-date b { color: #8d3a3a; }
@media (max-width: 899px) {
  .lg-stats { flex-wrap: wrap; }
  .lg-row { flex-wrap: wrap; }
  .lg-actions { width: 100%; justify-content: flex-end; }
}

body { font: 500 var(--fs-s)/1.5 var(--font); }
h1 { font-weight: 800; letter-spacing: -0.02em; }
h2, h3 { font-weight: 800; letter-spacing: -0.01em; }
.hint { font-size: var(--fs-s); }
.field .hint, .seg-hint, .field-hint { font-size: var(--fs-xs); }

button, .button-link { min-height: var(--ctl); padding: 0 var(--sp-4); font-size: var(--fs-s); font-weight: 800; border-radius: var(--r-m); white-space: nowrap; }
:where(button:hover) { filter: none; background: var(--graphite-hover); }
button.secondary, .button-link { color: var(--ink-2); background: var(--panel); border-color: var(--line-field); font-weight: 700; }
button.secondary:hover, .button-link:hover { color: var(--ink); background: var(--panel); border-color: var(--line-strong); }
button:disabled, button:disabled:hover { background: var(--line); border-color: var(--line); color: var(--muted); }

:where(input[type="text"], input[type="date"], select):hover, :where(textarea):hover { border-color: var(--line-strong); }
:where(input[type="text"], input[type="date"], input[type="number"], input[type="search"], select, textarea):focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent); }

.rail .segment, .seg, .catalog-chips, .cal-chips, .pf-chips {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  padding: 3px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
}
.rail .segment { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; width: 100%; background: rgba(255, 255, 255, 0.55); }
.service-hero-name h1 { font-size: var(--fs-hero); font-weight: 800; letter-spacing: -0.02em; }
.seg { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; width: 100%; }
.seg:has(.seg-item:nth-child(4)) { display: flex; }
.catalog-chips, .cal-chips, .pf-chips { margin-top: 0; }
.rail .segment .segment-item, .seg-item span, .catalog-chips .chip, .catalog-bar .chip, .cal-chips .cal-filter, .pf-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: auto;
  min-height: var(--seg-item);
  padding: 0 var(--sp-3);
  border: 0;
  border-radius: 9px;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font: 700 var(--fs-s)/1.2 var(--font);
  text-decoration: none;
  white-space: nowrap;
}
.seg-item { flex: 1 1 auto; }
.seg-item span { width: 100%; }
.pf-chip span { pointer-events: none; }
.rail .segment .segment-item:hover, .rail .segment a.segment-item:hover, .seg-item:hover span, .catalog-chips .chip:hover, .catalog-bar .chip:hover, .cal-chips .cal-filter:hover, .pf-chip:hover { color: var(--ink); background: transparent; border-color: transparent; }
.rail .segment .segment-item.segment-active, .rail .segment .segment-item.segment-active:hover,
.seg-item:has(input:checked) span,
.catalog-chips .chip[aria-pressed="true"], .catalog-bar .chip[aria-pressed="true"], .catalog-bar .chip-kadry[aria-pressed="true"],
.cal-chips .cal-filter.is-on, .cal-chips .cal-filter.is-on:hover,
.pf-chip:has(input:checked) {
  background: var(--panel);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(25, 26, 36, 0.1);
}
.seg-item:has(input:focus-visible) span, .pf-chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 2px 10px;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}

.page-head { display: flex; align-items: flex-end; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.page-head h1 { margin: 0; font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -0.02em; }
.page-head p { margin: var(--sp-1) 0 0; color: var(--muted); }
.page-head .right { margin-left: auto; display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-2); }

.rail-head { gap: 2px; }
.rail-head .rail-fold { width: 34px; height: 34px; color: var(--muted); }
.rail-head .rail-search { display: flex; }
.rail-head .rail-fold:hover { background: rgba(255, 255, 255, 0.7); color: var(--ink); }
.rail-label, .rail-recent .rail-label { padding: var(--sp-2) var(--sp-3) 2px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--quiet); }
.rail-recent .rail-day:first-child { padding-top: 0; }
.rail-units { gap: 6px; padding: var(--sp-3); border-radius: var(--r-m); }
.rail-units:hover { background: rgba(255, 255, 255, 0.5); }
.rail-units-label { font-size: var(--fs-s); font-weight: 700; color: var(--ink-2); }
.rail-units-text { font-size: var(--fs-s); font-weight: 800; color: var(--ink); }
.rail-units .units-bar { height: 6px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--accent) 15%, transparent); }
.rail-units .units-fill { border-radius: var(--r-pill); background: var(--grad-neuro); }
.rail-units-of { font-size: var(--fs-xs); color: var(--quiet); }
.rail-units-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-units-text { flex: none; white-space: nowrap; }
.rail-count { font-family: var(--font); font-weight: 700; color: var(--quiet); }

.stage-tool { width: auto; min-width: 36px; height: 36px; gap: var(--sp-2); padding: 0 var(--sp-3); font-size: var(--fs-s); font-weight: 700; border-radius: var(--r-s); }
.stage-tool:hover, .stage-tool:focus-visible { background: var(--soft); }
@media (max-width: 1099px) {
  .stage-tool { width: 36px; padding: 0; }
  .stage-tool-text { display: none; }
}

.undo-toast {
  position: fixed;
  left: 50%;
  bottom: var(--sp-5);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-4);
  border-radius: var(--r-m);
  background: var(--graphite);
  color: var(--graphite-ink);
  font-size: var(--fs-s);
  font-weight: 600;
  box-shadow: var(--shadow-scene);
  transform: translateX(-50%);
  animation: toast-in 0.2s ease both;
}
.undo-toast .undo-toast-back { min-height: 32px; padding: 0 var(--sp-3); border-radius: var(--r-s); background: rgba(255, 255, 255, 0.14); color: var(--graphite-ink); font-weight: 800; }
.undo-toast .undo-toast-back:hover { background: rgba(255, 255, 255, 0.24); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }

.palette { width: min(600px, calc(100% - 32px)); padding: var(--sp-3); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow-scene); }
.palette-field { min-height: 48px; padding: 0 var(--sp-4); font-size: var(--fs-m); border: 1px solid var(--line-field); border-radius: var(--r-m); background: var(--field); }
.palette-field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent); }
.palette { height: min(640px, 84vh); margin: auto; }
.palette[open] { display: flex; flex-direction: column; animation: palette-in var(--mo-calm-d) var(--mo-calm); }
@keyframes palette-in { from { opacity: 0; transform: scale(0.98); } }
.palette-list { display: flex; flex: 1 1 auto; flex-direction: column; gap: 2px; min-height: 0; margin: var(--sp-2) 0 0; overflow: auto; }
.palette-list:empty { display: none; }
.palette-empty { flex: 1 1 auto; }
.palette-ico { display: inline-flex; flex: none; width: 20px; margin-right: var(--sp-2); color: var(--muted); }
.palette-item[class*="tone-"] .palette-ico { color: var(--tone-ink); }
.palette-group { margin: var(--sp-2) 0 2px; padding: 0 var(--sp-3); font-size: var(--fs-xs); font-weight: 700; color: var(--quiet); }
.palette-item { align-items: center; min-height: 40px; padding: 0 var(--sp-3); border-radius: var(--r-s); font-size: var(--fs-s); font-weight: 600; color: var(--ink-2); }
.palette-item:hover { background: transparent; }
.palette-current, .palette-current:hover { background: var(--accent-soft); color: var(--accent-dark); }
.palette-note { font-size: var(--fs-xs); font-weight: 600; color: var(--quiet); }
.palette-keys { margin: var(--sp-2) 0 0; padding: var(--sp-2) var(--sp-3) 0; border-top: 1px solid var(--line-soft); font-size: var(--fs-xs); color: var(--quiet); }
@media (hover: none) { .palette-keys { display: none; } }

.hero h1 { font-size: var(--fs-hello); font-weight: 600; letter-spacing: -0.025em; text-wrap: balance; }
.soon-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: var(--sp-2);
  max-width: var(--w-read);
  padding: 6px 6px 6px var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--soft);
  font-size: var(--fs-s);
  font-weight: 600;
  color: var(--ink-2);
}
.soon-line > span:first-child { padding-right: var(--sp-1); }
.soon-line { flex-wrap: nowrap; }
.soon-line .hero-line-link { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); text-decoration: none; }
.soon-line > :not(.hero-line-link) { flex: none; }
@media (max-width: 640px) {
  .soon-line { flex-wrap: wrap; border-radius: var(--r-l); padding: var(--sp-2) var(--sp-3); }
  .soon-line .hero-line-link { white-space: normal; }
}
.soon-line .hero-line-link:hover { color: var(--ink); }
.soon-line .hero-line-link b { font-family: var(--font-mono); font-weight: 600; color: var(--ink); }
.soon-when, .soon-late { display: inline-flex; align-items: center; padding: 2px var(--sp-2); border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-dark); font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; text-decoration: none; }
.soon-late { border-color: color-mix(in srgb, var(--error) 30%, transparent); background: var(--error-soft); color: var(--error); }
.soon-more { min-height: 30px; padding: 0 var(--sp-3); border: 0; border-radius: var(--r-pill); background: transparent; color: var(--accent); font-size: var(--fs-s); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; }
.soon-more:hover { background: var(--accent-soft); color: var(--accent-dark); }
.soon-list { justify-self: center; width: 100%; max-width: var(--w-read); display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; text-align: left; }
.soon-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: var(--sp-3); align-items: center; padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--line-soft); color: var(--ink-2); font-size: var(--fs-s); text-decoration: none; }
.soon-row:first-child { border-top: 0; }
.soon-row:hover { background: var(--soft); color: var(--ink); }
.soon-row b { font-family: var(--font-mono); font-weight: 600; color: var(--ink); }
.soon-row small { font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; }
.soon-open { padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--line-soft); color: var(--accent); font-size: var(--fs-s); font-weight: 700; text-decoration: none; }
.soon-open:hover { background: var(--accent-soft); }
.soon-wrap { position: relative; justify-self: center; display: grid; max-width: 100%; }
.soon-wrap > .soon-list {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 50%;
  width: min(var(--w-read), calc(100vw - 2 * var(--gutter)));
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--r-l);
  box-shadow: 0 2px 6px rgba(25, 26, 36, 0.06), 0 30px 60px -28px rgba(24, 36, 72, 0.45);
  animation: panel-in var(--mo-calm-d) var(--mo-calm) both;
}
.soon-wrap > .soon-list[hidden] { display: none; }
.soon-wrap .soon-row { border-top-color: rgba(25, 26, 36, 0.06); }
.soon-wrap .soon-row:hover, .soon-wrap .soon-open:hover { background: rgba(255, 255, 255, 0.6); }
.soon-wrap .soon-open { border-top-color: rgba(25, 26, 36, 0.06); }
.desktop .tiles { width: 100%; max-width: var(--w-read); margin-inline: auto; gap: var(--sp-3); }
.desktop .tile { min-height: 76px; border-radius: var(--r-l); }
.stage-foot > .chat-form, .stage-foot > #onboarding-form, .stage-foot > .locked-note, .stage-foot > .disclaimer, .stage-foot > .examples { max-width: var(--w-chat); }
.shell:not(.shell-working) .stage-foot > .disclaimer { display: block; }
.stage-foot > .disclaimer { margin: calc(-1 * var(--sp-1)) auto 0; font-size: var(--fs-xs); color: var(--quiet); text-align: center; }
.examples { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2); width: 100%; margin-inline: auto; }
.example { min-height: 34px; padding: 0 var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--panel); color: var(--ink-2); font-size: var(--fs-s); font-weight: 600; white-space: normal; text-align: center; }
.example:hover { border-color: var(--line-field); background: var(--panel); color: var(--ink); }
.shell-working .examples { display: none; }

.catalog-bar { min-height: 64px; height: auto; padding: var(--sp-3) var(--gutter); }
.catalog-bar-title { font-size: var(--fs-xl); font-weight: 800; letter-spacing: -0.01em; }
.catalog-bar-count { font-size: var(--fs-s); font-weight: 700; color: var(--quiet); }
.catalog-find input { height: var(--ctl); padding-left: 34px; border-radius: var(--r-m); background: var(--soft); border-color: var(--line); font-size: var(--fs-s); }
@media (min-width: 1001px) {
  .catalog-toc { width: 276px; padding: var(--sp-4) var(--sp-3); gap: 2px; border-right: 1px solid var(--line-soft); }
}
.toc-label { padding: var(--sp-3) var(--sp-3) 4px; font-size: 13px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--quiet); }
.toc-item { min-height: 40px; font-weight: 600; font-size: var(--fs-m); border-radius: var(--r-s); }
.toc-item:hover, .toc-item:focus-visible { background: var(--soft); }
.toc-item[aria-current="location"] { background: var(--accent-soft); color: var(--accent-dark); }
.toc-item[aria-current="location"] .toc-mark { background: var(--accent); }
.toc-count { font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--quiet); }
.catalog-room { flex: none; }
.toc-star { display: inline-flex; flex: none; width: 20px; margin: 0 -4px 0 -3px; }
.toc-star .toc-spark { transform-box: fill-box; transform-origin: center; opacity: 0; transform: scale(0.3); transition: opacity 0.35s cubic-bezier(0.45, 0, 0.55, 1), transform 0.35s cubic-bezier(0.45, 0, 0.55, 1); }
.toc-item.toc-popular {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 44px;
  margin-bottom: var(--sp-2);
  background: linear-gradient(110deg, #f8f3e4, #eef3fc 55%, #eaf0fb);
  color: var(--ink);
  font-weight: 700;
}
.toc-item.toc-popular::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.85) 50%, transparent 70%);
  transform: translateX(-130%);
  pointer-events: none;
}
.toc-item.toc-popular .toc-title { white-space: nowrap; }
.toc-item.toc-popular .toc-count { padding: 1px 8px; border-radius: var(--r-pill); background: #fff; color: var(--ink-2); box-shadow: 0 1px 2px rgba(25, 26, 36, 0.06); }
.toc-item.toc-popular:hover, .toc-item.toc-popular:focus-visible { background: linear-gradient(110deg, #f8f3e4, #eef3fc 55%, #eaf0fb); color: var(--ink); }
.toc-item.toc-popular[aria-current="location"] { background: linear-gradient(110deg, #f8f3e4, #eef3fc 55%, #eaf0fb); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(47, 102, 196, 0.28); }
.toc-item.toc-popular[aria-current="location"] .toc-spark { opacity: 1; transform: scale(1); }
.toc-item.toc-popular:hover::after { animation: toc-popular-shine 1.1s cubic-bezier(0.65, 0, 0.35, 1) forwards; }
.toc-item.toc-popular:hover .toc-spark { opacity: 1; transform: scale(1); animation: toc-spark-pop 0.34s cubic-bezier(0.45, 0, 0.55, 1); }
.toc-item.toc-free, .toc-item.toc-free:hover, .toc-item.toc-free:focus-visible { background: linear-gradient(110deg, #eef8f1, #f2faf4 55%, #eef7f5); }
.toc-item.toc-free[aria-current="location"] { background: linear-gradient(110deg, #eef8f1, #f2faf4 55%, #eef7f5); box-shadow: inset 0 0 0 1px rgba(27, 96, 55, 0.25); }@keyframes toc-popular-shine { from { transform: translateX(-130%); } to { transform: translateX(130%); } }
@keyframes toc-spark-pop { 0% { transform: scale(1); } 50% { transform: scale(1.75); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .toc-item.toc-popular:hover::after, .toc-item.toc-popular:hover .toc-spark { animation: none; }
  .toc-star .toc-spark { transition: none; }
}
.catalog-sections { padding: var(--sp-5) var(--gutter) var(--sp-6); gap: var(--sp-5); }
.cards-later { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 2px; min-height: 186px; padding: var(--sp-4); border: 1px dashed var(--line-strong); border-radius: var(--radius-card); color: var(--muted); }
.cards-later-count { font-size: 40px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; color: var(--muted); font-variant-numeric: tabular-nums; }
.cards-later-text { font-size: var(--fs-m); font-weight: 500; }
.catalog-group-title { font-size: var(--fs-l); font-weight: 800; letter-spacing: -0.01em; }
.catalog-group-count { font-family: var(--font); font-weight: 600; color: var(--quiet); }
.catalog-group-sum { font-size: var(--fs-xs); font-weight: 600; color: var(--quiet); }
.catalog-group-head { margin-bottom: var(--sp-3); }
.catalog-end { display: none; }
.footer-grip { display: none; }
.footer-back { display: inline-flex; gap: var(--sp-1); align-items: center; min-height: 40px; margin: 0 0 var(--sp-3); font-size: var(--fs-s); font-weight: 600; color: #dfe4ee; text-decoration: none; }
.footer-back:hover, .footer-back:focus-visible { color: var(--panel); text-decoration: underline; }

@media (min-width: 1001px) {
  .page-column.foot-sheet { position: relative; height: calc(100vh - 2 * var(--sp-5)); overflow: hidden; gap: 0; }
  .page-column.foot-sheet > .catalog-page { height: 100%; min-height: 0; }
  .page-column.foot-sheet > .footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    margin: 0;
    padding-top: var(--sp-6);
    border-radius: var(--r-xl);
    transform: translateY(calc(100% + var(--sp-5)));
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.45s ease;
  }
  .page-column.foot-sheet.foot-up > .footer { transform: none; box-shadow: 0 -24px 50px -20px rgba(25, 26, 36, 0.5); }
  :is(.page-column.foot-sheet, .stage) .footer-grip { display: block; position: absolute; top: var(--sp-2); left: 50%; width: 36px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.25); transform: translateX(-50%); }
  :is(.page-column.foot-sheet, .stage) .footer-back { position: absolute; top: var(--sp-3); left: 0; right: 0; justify-content: center; margin: 0; font-size: var(--fs-xs); color: var(--deep-muted); }
  .page-column.foot-sheet .catalog-end { display: flex; flex-direction: column; align-items: center; gap: var(--sp-1); align-self: center; min-height: 0; margin-top: var(--sp-2); padding: var(--sp-2) var(--sp-3); border: 0; background: transparent; color: var(--quiet); font-size: var(--fs-xs); font-weight: 600; }
  .page-column.foot-sheet .catalog-end:hover { background: var(--soft); color: var(--ink); }
  .page-column.foot-sheet .catalog-end svg { animation: nudge 1.6s ease-in-out 3; }
}
.stage > .footer { display: none; }
.stage-tool[aria-expanded="true"] { background: var(--soft); color: var(--ink); }
@media (max-width: 1000px) {
  .stage-bar .stage-contacts { display: none; }
}
@media (min-width: 1001px) {
  .shell .stage:has(> .footer) { position: relative; }
  .stage > .footer {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    margin: 0;
    padding-top: var(--sp-6);
    border-radius: var(--r-xl);
    visibility: hidden;
    transform: translateY(calc(100% + var(--sp-5)));
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.45s ease, visibility 0s linear 0.45s;
  }
  .stage.foot-up > .footer {
    visibility: visible;
    transform: none;
    box-shadow: 0 -24px 50px -20px rgba(25, 26, 36, 0.5);
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.45s ease, visibility 0s;
  }
}
@keyframes nudge { 50% { transform: translateY(3px); } }

.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-1); padding: 3px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--r-m); }
.modes .seg-item { position: relative; display: block; margin: 0; cursor: pointer; }
.modes .seg-item span { min-height: var(--ctl); height: auto; padding: var(--sp-1) var(--sp-3); line-height: 1.25; text-align: center; white-space: normal; }
.mode-hint { margin: var(--sp-2) 0 0; font-size: var(--fs-xs); color: var(--muted); }
.field-error, .field-error-leaving { margin: var(--sp-1) 0 0; padding: 0; background: none; border: 0; color: var(--error); font-size: var(--fs-xs); font-weight: 600; white-space: pre-line; }
.field-error-leaving { pointer-events: none; }
.date-chip { display: inline-flex; align-items: center; align-self: flex-start; height: 22px; margin-top: var(--sp-1); padding: 0 var(--sp-2); border-radius: var(--r-pill); background: var(--ok-soft); color: var(--ok); font-size: var(--fs-xs); font-weight: 700; }
.service-col-form .field:has(.field-error) :is(input[type="text"], input[type="date"], select, textarea) { border-color: var(--error); }
.service-col-form .field:has(.field-error) .seg, .service-col-form .field:has(.field-error) .modes { border-color: var(--error); }
.form-actions { position: sticky; bottom: 0; z-index: 4; display: flex; align-items: center; gap: var(--sp-2); margin: 0 calc(-1 * var(--sp-5)); padding: var(--sp-3) var(--sp-5); background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--panel) 30%); }
.form-actions button[type="submit"] { flex: 1 1 auto; min-height: 48px; font-size: var(--fs-m); }
.form-actions .form-clear { flex: none; min-height: 48px; }
.service-col-form > form > .form-actions + * { margin-top: 0; }
@media (min-width: 900px) {
  .service-page .service-col-form:has(.form-actions) { padding-bottom: 0; }
  .service-page .service-col-form .form-actions { padding-bottom: var(--sp-2); }
}
.service-col-result .result-main { grid-column: 1 / -1; display: flex; flex-direction: column; gap: var(--sp-1); margin: var(--sp-4) 0 var(--sp-3); padding: var(--sp-4) var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-l); background: var(--soft); }
.result-main-label { font-size: var(--fs-s); font-weight: 700; color: var(--ink-2); }
.result-main-value { font-family: var(--font-mono); font-size: var(--fs-total); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); overflow-wrap: anywhere; }
.result-main.words .result-main-value { font-family: var(--font); font-size: var(--fs-xl); font-weight: 800; letter-spacing: -0.01em; }
.result-main-note { font-size: var(--fs-xs); color: var(--muted); }
.result-stale { grid-column: 1 / -1; margin: var(--sp-3) 0 0; padding: var(--sp-3) var(--sp-4); border: 1px solid var(--warn-line); border-radius: var(--r-l); background: var(--warn-soft); color: var(--warn); font-size: var(--fs-s); font-weight: 600; line-height: 1.45; }
@supports (backdrop-filter: blur(4px)) {
  .result-stale { background: color-mix(in srgb, var(--warn-soft) 72%, transparent); -webkit-backdrop-filter: blur(10px) saturate(1.4); backdrop-filter: blur(10px) saturate(1.4); }
}
.result.is-stale > :not(h2):not(.result-tools):not(.result-stale) { opacity: 0.46; filter: saturate(0.35); transition: opacity 0.2s ease, filter 0.2s ease; }
.recall-chip { display: inline-flex; align-items: center; align-self: flex-start; max-width: 100%; min-height: 22px; margin-top: var(--sp-1); padding: 2px var(--sp-2); border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-dark); font-size: var(--fs-xs); font-weight: 700; line-height: 1.35; }
.seg-pick { margin-bottom: var(--sp-2); }
.seg.seg-wrap { display: flex; flex-wrap: wrap; }
.seg.seg-wrap .seg-item { flex: 1 1 64px; }
.seg.seg-pick { display: flex; flex-wrap: wrap; }
.seg.seg-pick .seg-item { flex: 1 1 auto; }
.seg.seg-pick .seg-item span { white-space: nowrap; }
.result-saved-slot:empty { display: none; }
.result-periods { display: grid; gap: var(--sp-2); margin-top: var(--sp-4); }
.result-periods h3 { margin: 0; }
.periods-scroll { overflow-x: auto; border: 1px solid var(--line-card); border-radius: var(--r-l); background: var(--panel); }
.result-periods table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.result-periods th { padding: var(--sp-2) var(--sp-4); text-align: right; white-space: nowrap; font-size: var(--fs-xs); font-weight: 700; color: var(--muted); background: var(--surface-soft); }
.result-periods td { padding: var(--sp-2) var(--sp-4); text-align: right; white-space: nowrap; border-top: 1px solid var(--line-soft); font-family: var(--font-mono); font-size: var(--fs-s); color: var(--ink); }
.result-periods th:first-child, .result-periods td:first-child { text-align: left; }
.result-periods .hint { margin: 0; }
.result-saved { display: flex; align-items: center; gap: var(--sp-2); margin: var(--sp-3) 0 0; font-size: var(--fs-xs); font-weight: 600; color: var(--ok); }
.result-saved svg { flex: none; }
.result-saved a { margin-left: var(--sp-1); color: var(--accent-dark); font-weight: 600; text-decoration: none; }
.result-saved a:hover, .result-saved a:focus-visible { text-decoration: underline; }
.service-note { margin: var(--sp-2) 0 0; font-size: var(--fs-xs); line-height: 1.45; color: var(--quiet, var(--muted)); }
.date-wrap { position: relative; display: block; }
.date-wrap > input, .date-wrap > .pk-date { width: 100%; }
.date-chip.date-chip-inside { position: absolute; top: 50%; right: 44px; margin: 0; height: auto; padding: 0; background: none; color: var(--quiet, var(--muted)); font-size: var(--fs-xs); font-weight: 500; transform: translateY(-50%); pointer-events: none; }
.service-follow { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); padding: var(--sp-4) var(--sp-6) var(--sp-5); border-top: 1px solid var(--line-soft); }
.service-follow-title { margin-right: var(--sp-2); font-size: var(--fs-xs); font-weight: 700; color: var(--muted); }
.service-follow a { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 40px; padding: 0 var(--sp-3) 0 var(--sp-4); border: 1px solid var(--line); border-radius: 999px; background: var(--surface-soft); color: var(--ink); font-size: var(--fs-s); font-weight: 600; text-decoration: none; box-shadow: 0 1px 2px rgba(25, 26, 36, 0.06); transition: border-color 0.15s ease, background 0.15s ease; }
.service-follow a::after { content: "→"; color: var(--muted); font-weight: 500; }
.service-follow a:hover, .service-follow a:focus-visible { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); }
.service-follow a:hover::after, .service-follow a:focus-visible::after { color: var(--accent-dark); }
.service-follow a.follow-shut { border-style: dashed; background: transparent; color: var(--muted); box-shadow: none; }
.is-showcase .pin-form { display: none; }
.result-dock { display: none; }
@media (max-width: 899px) {
  .service-follow { flex-wrap: nowrap; gap: var(--sp-2); margin: 0 calc(-1 * var(--sp-4)); padding: var(--sp-3) var(--sp-4) calc(var(--sp-4) + 80px); overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
  .service-follow::-webkit-scrollbar { display: none; }
  body.has-tabs .service-follow { padding-bottom: var(--sp-4); }
  .service-follow-title { flex: none; margin-right: var(--sp-1); }
  .service-follow a { flex: none; min-height: 36px; white-space: nowrap; }
  #result:has(> .calc) > #result-tools:has(button) ~ .result-report-row { position: relative; z-index: 41; grid-row: 2; justify-self: end; margin-top: 14px; }
  .service-empty-head, .service-empty-tools { flex-wrap: wrap; }
  .result-periods { grid-template-columns: minmax(0, 1fr); }
  .periods-scroll { min-width: 0; overflow: visible; border: 0; background: none; }
  .result-table.result-periods table { min-width: 0; }
  .result-periods table, .result-periods tbody { display: block; }
  .result-periods thead { display: none; }
  .result-periods tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-1) var(--sp-3); margin-bottom: var(--sp-2); padding: var(--sp-3) var(--sp-4); border: 1px solid var(--line-card); border-radius: var(--r-l); background: var(--panel); }
  .result-table.result-periods tbody tr:nth-child(n) td { display: flex; flex-direction: column; gap: 2px; padding: 0; border: 0; background: none; text-align: left; white-space: nowrap; font-size: var(--fs-s); }
  .result-periods td::before { content: attr(data-label); font-family: var(--font); font-size: var(--fs-xs); font-weight: 700; color: var(--muted); }
  .result-periods td:first-child { grid-column: 1 / -1; }
  .result-dock { position: fixed; left: var(--sp-3); right: var(--sp-3); bottom: calc(var(--sp-3) + var(--tabs-h, env(safe-area-inset-bottom, 0px))); z-index: 55; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: 64px; padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-5); border: 1px solid rgba(255, 255, 255, 0.85); border-radius: var(--r-xl); background: rgba(255, 255, 255, 0.985); color: var(--ink); font-family: var(--font); text-align: left; box-shadow: 0 2px 6px rgba(25, 26, 36, 0.06), 0 26px 54px -22px rgba(24, 36, 72, 0.55); opacity: 0; visibility: hidden; transform: translateY(24px); transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s; cursor: pointer; }
  @supports (backdrop-filter: blur(4px)) {
    .result-dock { background: rgba(255, 255, 255, 0.97); -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6); }
  }
  .result-dock.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .result-dock-figures { display: grid; min-width: 0; gap: 2px; }
  .result-dock-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); }
  .result-dock-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-mono); font-size: var(--fs-l); font-weight: 600; letter-spacing: -0.02em; }
  .result-dock-go { flex: none; display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 48px; padding: 0 var(--sp-4); border-radius: var(--r-l); background: var(--graphite); color: var(--graphite-ink); font-size: var(--fs-s); font-weight: 700; }
  .result-dock.is-stale .result-dock-value { color: var(--muted); }
  .result-dock.is-stale { filter: saturate(0.4); }
  body.has-dock .form-actions { bottom: calc(84px + var(--tabs-h, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .result-dock { transition: none; }
}
.result-line.entered dt { color: var(--muted); }
.service-col-result .result-steps .result-line dd.said { font-family: var(--font); font-size: var(--fs-s); color: var(--ink-2); }
.step-off { display: none !important; }
.form-steps { display: grid; gap: var(--sp-2); }
.form-steps-caption { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); min-width: 0; }
.form-steps-caption b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-m); font-weight: 700; }
.form-steps-caption span { flex: none; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.form-steps-track { display: flex; gap: var(--sp-1); }
.form-steps-track .form-step { position: relative; flex: 1 1 0; min-height: 0; height: 20px; padding: 0; border: 0; border-radius: 0; background: transparent; cursor: pointer; }
.form-steps-track .form-step::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 6px; border-radius: var(--r-pill); background: var(--line); }
.form-steps-track .form-step:hover::before { background: var(--line-strong); }
.form-steps-track .form-step.is-done::before { background: color-mix(in srgb, var(--accent) 45%, transparent); }
.form-steps-track .form-step.is-on::before { background: var(--accent); }
@media (max-width: 640px) {
  .form-steps-track .form-step { min-height: 0; height: 32px; }
  .form-steps-track .form-step::before { top: 13px; }
}
.form-step-check { padding: var(--sp-3) var(--sp-4); border: 1px solid var(--ok-line, #bfe0c9); border-radius: var(--r-m); background: var(--ok-soft); color: var(--ok); font-size: var(--fs-s); font-weight: 600; }
.form-step-check.is-missing { border-color: color-mix(in srgb, var(--error) 30%, transparent); background: var(--error-soft); color: var(--error); }
.form-step-moves { display: flex; justify-content: space-between; gap: var(--sp-2); }
.form-step-moves button:last-child { margin-left: auto; }
.company-fill { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); margin-top: var(--sp-3); font-size: var(--fs-xs); color: var(--muted); }
.company-fill-bar { flex: 1 1 160px; max-width: 260px; height: 6px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--accent) 15%, transparent); overflow: hidden; }
.company-fill-bar i { display: block; height: 100%; border-radius: var(--r-pill); background: var(--accent); }
.card-group { margin-top: var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.card-group-head { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-4); background: var(--soft); border-bottom: 1px solid var(--line); }
.card-group-head h3 { margin: 0; font-size: var(--fs-m); font-weight: 800; }
.card-group-saved { font-size: var(--fs-xs); font-weight: 600; color: var(--ok); }
.card-group-edit { margin-left: auto; min-height: 34px; padding: 0 var(--sp-3); font-size: var(--fs-xs); }
.card-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--sp-5); margin: 0; padding: var(--sp-2) var(--sp-4) var(--sp-3); }
.card-value { display: flex; flex-direction: column; gap: 2px; padding: var(--sp-2) 0; border-bottom: 1px solid var(--line-soft); }
.card-value dt { font-size: var(--fs-xs); font-weight: 600; color: var(--quiet); }
.card-value dd { margin: 0; font-size: var(--fs-s); font-weight: 600; color: var(--ink); }
.card-value dd.unset { font-weight: 500; color: var(--quiet); }
.card-group-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3) var(--sp-4); padding: var(--sp-4); }
.card-group-form .card-field { margin: 0; }
.card-group-form .card-field label { font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); }
.card-group-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--sp-2); padding-top: var(--sp-3); border-top: 1px solid var(--line-soft); }
.card-group-foot .since { display: flex; flex-direction: column; gap: var(--sp-1); margin: 0 auto 0 0; font-size: var(--fs-xs); color: var(--muted); }
.card-group-foot .since input { width: 180px; }
@media (max-width: 640px) {
  .card-values, .card-group-form { grid-template-columns: minmax(0, 1fr); }
}
.filedrop-veil { position: fixed; inset: var(--sp-3); z-index: 95; display: grid; place-items: center; border: 2px dashed var(--accent); border-radius: var(--r-xl); background: color-mix(in srgb, var(--accent-soft) 88%, transparent); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity var(--ease), visibility var(--ease); }
.filedrop-veil.on { opacity: 1; visibility: visible; }
.filedrop-veil-text { font-size: var(--fs-xl); font-weight: 800; color: var(--accent-dark); }
.filedrop { width: min(520px, calc(100% - 32px)); }
.filedrop-name { margin: calc(-1 * var(--sp-2)) 0 var(--sp-3); font-size: var(--fs-s); color: var(--muted); overflow-wrap: anywhere; }
.filedrop-list { display: flex; flex-direction: column; gap: var(--sp-1); margin-bottom: var(--sp-3); }
.filedrop-item { justify-content: space-between; min-height: 44px; padding: 0 var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-m); background: var(--panel); color: var(--ink); font-weight: 700; text-align: left; }
.filedrop-item:hover, .filedrop-item:focus-visible { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); }
.filedrop-item.is-likely { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); }
.filedrop-item-tag { font-size: var(--fs-xs); font-weight: 700; color: var(--accent); }
.filedrop-note { margin: var(--sp-3) 0 0; font-size: var(--fs-xs); }
.attach-file { position: relative; cursor: pointer; }
.report-sum { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: var(--sp-2) 0 var(--sp-3); }
.report-pill { display: inline-flex; padding: 2px 10px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--soft); color: var(--muted); font-size: var(--fs-xs); font-weight: 700; }
.report-pill.error { border-color: color-mix(in srgb, var(--error) 30%, transparent); background: var(--error-soft); color: var(--error); }
.report-pill.risk { border-color: var(--warn-line); background: var(--warn-soft); color: var(--warn); }
.tool-card .tool-main { display: flex; flex-direction: column; gap: 2px; padding: var(--sp-3) var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-m); background: var(--soft); }
.tool-card .tool-main span { font-size: var(--fs-s); font-weight: 700; color: var(--ink-2); }
.tool-card .tool-main b { font-family: var(--font-mono); font-size: var(--fs-2xl); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); overflow-wrap: anywhere; }
@media (max-width: 480px) { .tool-card .tool-main b { font-size: var(--fs-xl); } }
.rail-badge { margin-left: auto; min-width: 22px; padding: 0 var(--sp-2); border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-dark); font-size: var(--fs-xs); font-weight: 600; line-height: 1.6; text-align: center; font-variant-numeric: tabular-nums; }
.strip-button .strip-dot { position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--panel); }
.cal-wrap { display: flex; flex-direction: column; gap: var(--sp-4); }
.cal-head .right { align-self: center; }
.cal-badge { display: inline-flex; align-items: center; padding: 2px 10px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--soft); color: var(--muted); font-size: var(--fs-xs); font-weight: 700; }
.cal-badge-late { border-color: var(--warn-line); background: var(--warn-soft); color: var(--warn); }
.cal-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }
.cal-toolbar .cal-tools { margin: 0 0 0 auto; }
.cal-list { display: flex; flex-direction: column; gap: var(--sp-4); max-width: var(--w-page); }
.cal-late { padding: var(--sp-3) var(--sp-4); border: 1px solid var(--warn-line); border-radius: var(--r-l); background: var(--warn-soft); }
.cal-late-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-1) var(--sp-3); margin-bottom: var(--sp-2); color: var(--warn); font-size: var(--fs-s); }
.cal-late-head span { color: var(--ink-2); font-size: var(--fs-xs); }
.cal-month { border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.cal-month-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); padding: var(--sp-3) var(--sp-4); background: var(--soft); border-bottom: 1px solid var(--line); }
.cal-month-head h2 { margin: 0; font-size: var(--fs-m); font-weight: 800; }
.cal-month-count { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.cal-month-bar { flex: 1 1 120px; max-width: 200px; height: 6px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--accent) 15%, transparent); overflow: hidden; }
.cal-month-bar i { display: block; height: 100%; border-radius: var(--r-pill); background: var(--accent); }
.cal-date { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--line-soft); }
.cal-month-head + .cal-date, .cal-month-head + .cal-none { border-top: 0; }
.cal-date-day { display: flex; flex-direction: column; }
.cal-date-day b { font-family: var(--font-mono); font-size: var(--fs-m); font-weight: 600; }
.cal-date-day small { font-size: var(--fs-xs); color: var(--quiet); }
.cal-date .cal-dues { margin: 0; }
.cal-date-done { display: block; }
.cal-date-done summary { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: var(--sp-3); cursor: pointer; list-style: none; }
.cal-date-done summary::-webkit-details-marker { display: none; }
.cal-date-sum { font-size: var(--fs-s); color: var(--muted); }
.cal-date-tag { padding: 2px 10px; border: 1px solid var(--ok-line, #bfe0c9); border-radius: var(--r-pill); background: var(--ok-soft); color: var(--ok); font-size: var(--fs-xs); font-weight: 700; }
.cal-date-done[open] .cal-dues { margin-top: var(--sp-2); }
.cal-list .cal-none { margin: 0; padding: var(--sp-3) var(--sp-4); color: var(--muted); }
.cal-own-wrap > summary { display: inline-flex; cursor: pointer; list-style: none; }
.cal-own-wrap > summary::-webkit-details-marker { display: none; }
.cal-own-wrap[open] .cal-own-form { margin-top: var(--sp-3); max-width: 460px; }
.cal-day .cal-label { overflow: hidden; text-overflow: clip; white-space: nowrap; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); }
.cal-day .cal-label.is-done { color: var(--ok); }
.cal-remind { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3) var(--sp-4); margin-bottom: var(--sp-4); padding: var(--sp-3) var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-m, 12px); background: var(--soft); }
.cal-remind-text { display: grid; gap: 2px; min-width: 0; flex: 1 1 260px; font-size: var(--fs-s); }
.cal-remind-text span { color: var(--ink-2); font-size: var(--fs-xs); }
.cal-remind-form { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }
.cal-remind-consent { display: flex; align-items: flex-start; gap: var(--sp-2); max-width: 420px; font-size: var(--fs-xs); color: var(--ink-2); }
.cal-remind-do:disabled { opacity: 0.5; cursor: not-allowed; }
.cal-readonly { margin: 0 0 var(--sp-4); font-size: var(--fs-s); color: var(--muted); }
.cal-wrap { container-type: inline-size; }
.cal-head-main { display: grid; gap: var(--sp-1); min-width: 0; }
.cal-head-title { display: flex; align-items: center; gap: var(--sp-1); }
.cal-head-title h1 { margin: 0; }
.cal-about { position: relative; display: inline-flex; }
.info-tip { display: inline-grid; place-items: center; width: 28px; height: 28px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--quiet); cursor: pointer; }
.info-tip:hover, .info-tip:focus-visible, .info-tip[aria-expanded="true"] { background: var(--accent-soft); color: var(--accent); }
.info-bubble { display: none; position: absolute; top: calc(100% + var(--sp-2)); left: 0; z-index: 50; width: 360px; max-width: calc(100vw - 2 * var(--sp-4)); padding: var(--sp-3) var(--sp-4); font-size: var(--fs-s); font-weight: 500; line-height: 1.5; color: var(--ink); background: var(--panel); border: 1px solid var(--line-card); border-radius: var(--r-m); box-shadow: 0 12px 30px -14px rgba(24, 36, 72, 0.45), 0 2px 6px rgba(25, 26, 36, 0.08); }
.info-bubble.open { display: block; }
.info-about { position: relative; display: inline-flex; }
.info-bubble-up { top: auto; bottom: calc(100% + var(--sp-2)); left: auto; right: 0; }
.history-head { display: flex; align-items: center; gap: var(--sp-1); }
.company-titles.company-titles-row { display: flex; align-items: center; gap: var(--sp-1); }
.cal-summary { margin: 0; font-size: var(--fs-s); color: var(--muted); }
.cal-summary-late { color: var(--warn); font-weight: 700; }
.cal-list-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--sp-5); align-items: start; }
.cal-list-wrap .cal-list { max-width: none; }
.cal-list-side { position: sticky; top: var(--sp-4); display: grid; gap: var(--sp-4); min-width: 0; }
.cal-mini, .cal-side-card { padding: var(--sp-3) var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-l); background: var(--panel); }
.cal-mini-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-2); margin-bottom: var(--sp-2); font-size: var(--fs-s); }
.cal-mini-open { font-size: var(--fs-xs); font-weight: 600; color: var(--accent-dark); }
.cal-mini-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.cal-mini-wd { padding-bottom: var(--sp-1); font-size: var(--fs-xs); font-weight: 600; color: var(--quiet); text-align: center; }
.cal-mini-wd.is-off { color: var(--line-strong); }
.cal-mini-day { position: relative; display: grid; place-items: center; height: 32px; border-radius: var(--r-s); font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ink-2); text-decoration: none; }
.cal-mini-day.is-off { color: var(--quiet); }
a.cal-mini-day:hover { background: var(--soft); color: var(--ink); }
.cal-mini-day.is-today { box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent-dark); font-weight: 700; }
.cal-mini-day.has-due::after, .cal-mini-day.has-done::after { content: ""; position: absolute; bottom: 4px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.cal-mini-day.has-done::after { background: var(--ok); }
.cal-side-card .cal-own-form { margin-top: 0; padding-top: 0; border-top: 0; }
.cal-list-side .cal-remind { flex-direction: column; align-items: stretch; margin-bottom: 0; border-radius: var(--r-l); }
.cal-date-near { margin-top: var(--sp-1); font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--accent-dark); white-space: nowrap; }
.cal-date-rows { display: grid; gap: var(--sp-2); justify-items: start; min-width: 0; }
.cal-date-rows .cal-dues { justify-self: stretch; }
.cal-mark-all { min-height: 32px; padding: 0 var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--panel); color: var(--ink-2); font-size: var(--fs-xs); font-weight: 700; }
.cal-mark-all:hover { background: var(--soft); color: var(--ink); }
.cal-month-period { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.cal-month-count { font-variant-numeric: tabular-nums; }
.cal-item-note { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1) var(--sp-2); }
.cal-item-extra { color: var(--muted); }
.cal-due.is-compact .due-state:empty { display: none; }
.cal-late-day { flex: none; width: 44px; padding-top: 2px; font-family: var(--font-mono); font-size: var(--fs-s); font-weight: 600; color: var(--warn); }
.cal-due .due-state.is-late { color: var(--warn); font-weight: 600; white-space: nowrap; }
.cal-late-day small { display: none; }
@container (max-width: 860px) {
  .cal-list-wrap { grid-template-columns: minmax(0, 1fr); }
  .cal-list-side { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 640px) {
  .cal-toolbar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .cal-toolbar .cal-chips { flex-wrap: nowrap; flex: none; }
  .cal-toolbar .cal-tools { display: none; }
  .cal-late-day { display: grid; width: 64px; }
  .cal-late-day small { display: block; font-size: var(--fs-xs); font-weight: 500; }
}
@media (max-width: 899px) {
  .cal-date { grid-template-columns: 52px minmax(0, 1fr); padding: var(--sp-3); }
  .cal-toolbar .cal-tools { margin-left: 0; }
}
.lang-switch { display: inline-flex; flex: none; gap: 2px; margin: 0; padding: 3px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--r-m); }
.lang-switch button { min-height: 28px; padding: 0 var(--sp-2); border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: var(--fs-xs); font-weight: 700; }
.lang-switch button:hover { background: transparent; color: var(--ink); }
.lang-switch button[aria-pressed="true"], .lang-switch button[aria-pressed="true"]:hover { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(25, 26, 36, 0.1); }
.rail-lang { display: none; }
@media (max-width: 899px) {
  .stage-bar .lang-switch { display: none; }
  .rail-lang { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 var(--sp-2) var(--sp-2); }
  .lang-switch button { min-height: 40px; }
}
.page > .stage-bar { height: 56px; margin: calc(-1 * var(--sp-5)) calc(-1 * var(--sp-6)) var(--sp-5); }
@media (max-width: 640px) {
  .page > .stage-bar { margin: calc(-1 * var(--sp-4)) calc(-1 * var(--sp-3)) var(--sp-4); }
}
.service-page > .stage-bar { flex: none; margin: 0; }
.catalog-page { display: flex; flex-direction: column; }
.catalog-page > .stage-bar { flex: none; margin: 0; }
.catalog-page > .catalog { flex: 1 1 auto; height: auto; min-height: 0; }
.stage-asof { flex: none; padding: 0 var(--sp-2); border-radius: var(--r-s); font-size: var(--fs-xs); line-height: 24px; color: var(--muted); white-space: nowrap; }
.stage-asof-warn { background: var(--warn-soft); color: var(--warn); box-shadow: inset 0 0 0 1px var(--warn-line); }
.firm-pop-used { margin: 2px var(--sp-1) var(--sp-1); font-size: var(--fs-xs); line-height: 1.5; color: var(--ink-2); }
.firm-pop-card { justify-self: start; margin: 0 var(--sp-1) var(--sp-1); font-size: var(--fs-xs); font-weight: 700; color: var(--accent); }
.firm-pop-row { display: flex; gap: var(--sp-2); margin: 0 var(--sp-1); }
.firm-pop-row input { flex: 1 1 auto; width: auto; min-width: 0; min-height: 36px; }
.firm-pop-row button { flex: none; min-height: 36px; padding: 0 var(--sp-3); font-size: var(--fs-xs); }
.lm-spent { display: flex; flex-direction: column; gap: var(--sp-2); padding-top: var(--sp-4); border-top: 1px solid var(--line-soft); }
.lm-spent-list { display: flex; flex-direction: column; max-height: 260px; margin: 0 -14px 0 0; padding: 0 14px 0 0; overflow: auto; list-style: none; }
.lm-spent-line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: var(--sp-3); padding: var(--sp-2) 0; border-top: 1px solid var(--line-soft); color: var(--ink-2); text-decoration: none; }
.lm-spent-row:first-child .lm-spent-line { border-top: 0; }
a.lm-spent-line:hover { color: var(--ink); }
.lm-spent-what { overflow: hidden; min-width: 0; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-s); font-weight: 500; color: var(--ink); }
.lm-spent-when { font-size: var(--fs-xs); color: var(--quiet); white-space: nowrap; }
.lm-spent-cost { font-size: var(--fs-xs); font-weight: 600; color: var(--quiet); font-variant-numeric: tabular-nums; }
.lm-spent-none { margin: 0; font-size: var(--fs-s); color: var(--muted); }
.shell-page .page-column > .page { max-width: none; }
.journal { display: flex; flex-direction: column; gap: var(--sp-4); width: 100%; max-width: var(--w-page); margin: 0 auto; }
.journal-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }
.journal-find { flex: 1 1 220px; width: auto; }
.journal-day { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.journal-day-title { margin: 0; padding: var(--sp-2) var(--sp-4); background: var(--soft); border-bottom: 1px solid var(--line); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0; color: var(--muted); }
.journal-list { margin: 0; padding: 0; list-style: none; }
.journal-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--line-soft); }
.journal-row:first-child { border-top: 0; }
.journal-icon { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--panel); color: var(--accent); }
.journal-main { display: flex; flex-direction: column; min-width: 0; }
.journal-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-m); font-weight: 700; color: var(--ink); }
.journal-meta { font-size: var(--fs-xs); color: var(--quiet); }
.journal-figure { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.journal-figure b { font-family: var(--font-mono); font-size: var(--fs-s); font-weight: 600; color: var(--ink); white-space: nowrap; }
.journal-figure small { font-size: var(--fs-xs); color: var(--muted); }
.journal-actions { display: flex; align-items: center; gap: var(--sp-2); }
.journal-actions form { margin: 0; }
.journal-actions .button-link, .journal-actions button { min-height: 34px; padding: 0 var(--sp-3); font-size: var(--fs-xs); }
.journal-actions .journal-share-button { display: inline-grid; place-items: center; width: 34px; padding: 0; color: var(--muted); }
.journal-actions .journal-share-button[aria-pressed="true"] { color: var(--accent-dark); border-color: var(--accent); background: var(--accent-soft); }
.journal-run { border-top: 1px solid var(--line-soft); }
.journal-run:first-child { border-top: 0; }
.journal-run-head { grid-template-columns: 36px minmax(0, 1fr) auto auto; border-top: 0; cursor: pointer; list-style: none; }
.journal-run-head::-webkit-details-marker { display: none; }
.journal-run-head:hover { background: var(--soft); }
.journal-run-count { display: inline-grid; place-items: center; min-width: 32px; height: 28px; padding: 0 var(--sp-2); border-radius: var(--r-pill); background: var(--soft); font-family: var(--font-mono); font-size: var(--fs-s); font-weight: 600; color: var(--ink); }
.journal-run-chevron { color: var(--quiet); transition: transform 200ms ease; }
.journal-run details[open] .journal-run-chevron { transform: rotate(180deg); }
.journal-sublist { margin: 0 0 var(--sp-2) calc(36px + var(--sp-3)); border-left: 2px solid var(--line-soft); }
.journal-sublist .journal-row { padding-left: var(--sp-4); }
.journal-sublist .journal-icon { display: none; }
.journal-sublist .journal-row { grid-template-columns: minmax(0, 1fr) auto auto; }
.journal-empty, .journal-nothing { margin: 0; padding: var(--sp-6) var(--sp-4); border: 1px dashed var(--line-strong); border-radius: var(--r-l); color: var(--muted); text-align: center; }
.journal-nothing p { margin: 0; }
.journal-body { display: flex; flex-direction: column; gap: var(--sp-4); transition: opacity 180ms ease; }
.journal-body.is-loading { opacity: 0.45; pointer-events: none; }
.journal-body.is-arriving { animation: journal-arrive 320ms cubic-bezier(0.32, 0.72, 0, 1); }
@keyframes journal-arrive { from { opacity: 0.45; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.journal-pages { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--sp-2); padding-top: var(--sp-2); }
.journal-pages .chip { min-width: 40px; min-height: 40px; justify-content: center; font-variant-numeric: tabular-nums; text-decoration: none; }
.journal-pages span.chip[aria-hidden="true"] { opacity: 0.35; pointer-events: none; }
.journal-gap { min-width: 20px; color: var(--quiet); text-align: center; }
@media (prefers-reduced-motion: reduce) { .journal-body.is-arriving { animation: none; } }
@media (max-width: 899px) {
  .journal-row { grid-template-columns: 36px minmax(0, 1fr); }
  .journal-figure { grid-column: 2; align-items: flex-start; text-align: left; }
  .journal-actions { grid-column: 2; }
  .journal-actions .button-link, .journal-actions button { min-height: 40px; }
  .journal-actions .journal-share-button { width: 40px; }
  .journal-run-head { grid-template-columns: 36px minmax(0, 1fr) auto auto; }
  .journal-sublist { margin-left: var(--sp-4); }
  .journal-sublist .journal-row { grid-template-columns: minmax(0, 1fr); }
  .journal-sublist .journal-figure, .journal-sublist .journal-actions { grid-column: 1; }
}

@media (max-width: 899px) {
  .form-actions { margin: 0 calc(-1 * var(--sp-4)); padding: var(--sp-3) var(--sp-4); bottom: calc(var(--tabs-h, 0px) + var(--sp-2)); flex-wrap: nowrap; }
  .form-actions .form-clear { white-space: nowrap; }
}

@media (max-width: 899px) {
  :root { --ctl: 44px; --seg-item: 40px; --gutter: var(--sp-4); --fs-hello: 28px; --fs-total: 30px; --fs-hero: var(--fs-xl); }
}

.service-col-form > form.bd-js { grid-template-columns: minmax(0, 1fr); }
.bd-stages { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-2); margin-bottom: var(--sp-4); }
.bd-done { display: flex; align-items: center; gap: var(--sp-3); width: 100%; min-width: 0; min-height: 44px; padding: var(--sp-2) var(--sp-3); border: 1px solid var(--line-card); border-radius: var(--r-m); background: var(--panel); color: var(--ink); font: 600 var(--fs-s) var(--font); text-align: left; white-space: normal; cursor: pointer; }
.bd-done:hover { border-color: var(--accent); }
.bd-done .bd-name { flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; white-space: normal; }
.bd-done .bd-edit { flex: 0 1 auto; min-width: 0; max-width: 55%; overflow-wrap: anywhere; text-align: right; white-space: normal; font-size: var(--fs-xs); font-weight: 700; color: var(--accent); }
.bd-done.is-open { border-color: var(--warn-line); background: var(--warn-soft); }
.bd-mark { flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); background: var(--soft); color: var(--muted); font-size: var(--fs-xs); font-weight: 800; }
.bd-mark.is-ok { border-color: transparent; background: var(--ok-soft); color: var(--ok); }
.bd-mark.is-warn { border-color: var(--warn-line); background: var(--warn-soft); color: var(--warn); }
.bd-mark.is-now { border-color: transparent; background: var(--accent); color: var(--primary-ink); }
.bd-now { display: flex; align-items: center; gap: var(--sp-3); }
.bd-now b { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: var(--fs-l); font-weight: 700; }
.bd-of { flex: none; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.bd-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--sp-1); }
.bd-seg { position: relative; min-height: 0; height: 20px; padding: 0; border: 0; border-radius: 0; background: transparent; cursor: pointer; }
.bd-seg::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 6px; border-radius: var(--r-pill); background: var(--line); }
.bd-seg:hover::before { background: var(--line-strong); }
.bd-seg.is-done::before { background: color-mix(in srgb, var(--accent) 45%, transparent); }
.bd-seg.is-warn::before { background: var(--warn-line); }
.bd-seg.is-on::before { background: var(--accent); }
.bd-moves { display: flex; gap: var(--sp-2); margin-top: var(--sp-4); }
.bd-moves button { min-height: 44px; min-width: 0; padding-block: var(--sp-2); white-space: normal; overflow-wrap: anywhere; }
.bd-moves button:last-child { flex: 1; margin-left: auto; }
.bd-js .bd-check { display: none; }
.bd-js[data-stage="check"] .bd-check { display: grid; }
.bd-check, .bd-company-row, .bd-next { border: 1px solid rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.62); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); box-shadow: var(--shadow); }
@supports not (backdrop-filter: blur(4px)) {
  .bd-check, .bd-company-row, .bd-next { border-color: var(--line-card); background: var(--panel); }
}
.bd-check { display: grid; gap: var(--sp-3); padding: var(--sp-4); border-radius: var(--r-l); }
.bd-check-title { margin: 0; font-size: var(--fs-l); font-weight: 700; }
.bd-todo-title { margin: 0; font-size: var(--fs-s); font-weight: 700; color: var(--warn); }
.bd-list { display: grid; gap: var(--sp-2); margin: 0; padding: 0; list-style: none; }
.bd-list li { display: flex; align-items: flex-start; gap: var(--sp-3); font-size: var(--fs-s); line-height: 1.45; }
.bd-list i { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-style: normal; font-size: var(--fs-xs); font-weight: 800; }
.bd-ok i { background: var(--ok-soft); color: var(--ok); }
.bd-warn i { background: var(--warn-soft); color: var(--warn); box-shadow: inset 0 0 0 1px var(--warn-line); }
.bd-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--sp-2); padding: 0; background: transparent; }
.bd-tiles .seg-item span { display: grid; align-content: start; justify-items: start; gap: var(--sp-1); height: auto; min-height: 96px; padding: var(--sp-3); border: 1px solid var(--line-card); border-radius: var(--r-m); background: var(--panel); color: var(--ink); text-align: left; font-weight: 700; }
.bd-tiles .seg-item span small { color: var(--muted); font-size: var(--fs-xs); font-weight: 500; line-height: 1.4; }
.bd-tiles .seg-item span em { margin-top: auto; color: var(--accent-dark); font-size: var(--fs-xs); font-style: normal; font-weight: 700; }
.bd-tiles .seg-item:has(input:checked) span { border-color: var(--accent); background: var(--accent-soft); box-shadow: none; }
.bd-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.bd-chip { display: inline-flex; align-items: baseline; gap: var(--sp-2); padding: var(--sp-2) var(--sp-3); border: 1px solid rgba(255, 255, 255, 0.7); border-radius: var(--r-m); background: rgba(255, 255, 255, 0.62); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); box-shadow: var(--shadow); }
.bd-chip small { color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }
.bd-chip b { font-family: var(--font-mono); font-size: var(--fs-s); font-weight: 600; }
.bd-more summary { min-height: 44px; display: flex; align-items: center; color: var(--accent-dark); font-size: var(--fs-s); font-weight: 700; cursor: pointer; }
.bd-more .bd-list { margin-top: var(--sp-2); }
.bd-val { display: block; margin-top: 2px; color: var(--muted); font-size: var(--fs-xs); font-family: var(--font-mono); }
.bd-goto { display: block; min-width: 0; white-space: normal; overflow-wrap: anywhere; min-height: 0; padding: 0; border: 0; background: transparent; color: var(--ink); font: inherit; text-align: left; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; cursor: pointer; }
.bd-goto:hover { color: var(--accent-dark); }
.bd-actions { display: grid; gap: var(--sp-2); }
.bd-actions button { min-height: 44px; min-width: 0; padding-block: var(--sp-2); white-space: normal; overflow-wrap: anywhere; }
.bd-actions .doc-download[disabled] { opacity: 0.45; cursor: not-allowed; }
.bd-next { display: grid; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-l); }
.bd-next-link { display: flex; align-items: center; gap: var(--sp-3); min-height: 44px; color: var(--ink); text-decoration: none; }
.bd-next-link > span:first-child { flex: 1; display: grid; gap: 2px; min-width: 0; }
.bd-next-link small { color: var(--muted); font-size: var(--fs-xs); }
.bd-next-go { flex: none; font-weight: 700; color: var(--accent); }
.bd-restart { min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--muted); font: 600 var(--fs-xs) var(--font); text-align: left; cursor: pointer; }
.bd-restart:hover { color: var(--accent-dark); }
.bd-company-row { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3); border-radius: var(--r-m); }
.bd-company-name { flex: 1; min-width: 0; display: grid; gap: 2px; }
.bd-company-name small { color: var(--muted); font-size: var(--fs-xs); }
.bd-company-row a { flex: none; font-size: var(--fs-xs); font-weight: 700; }
.bd-keep-row { display: flex; align-items: center; gap: var(--sp-2); min-height: 44px; font-size: var(--fs-s); font-weight: 600; }
.bd-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); margin-bottom: var(--sp-3); }
.bd-head h2 { margin: 0; }
.bd-head-gap { flex: 1; }
.bd-head button { min-height: 36px; }
.bd-ok-note { font-size: var(--fs-xs); font-weight: 600; color: var(--ok); }
.bd-legend { margin-top: var(--sp-3); }
.bd-hole { padding: 0 4px; border: 1px dashed var(--line-strong); border-radius: 4px; background: var(--panel); color: var(--accent-dark); font-weight: 600; text-decoration: none; }
a.bd-hole:hover { border-color: var(--accent); }
.document-head { flex-wrap: wrap; row-gap: var(--sp-2); }
.bd-lang { flex: none; margin-left: auto; }
.bd-lang button { min-height: 32px; padding: 0 var(--sp-3); border: 0; border-radius: var(--r-s); background: transparent; color: var(--ink-2); font: 600 var(--fs-xs) var(--font); cursor: pointer; }
.bd-lang button[aria-pressed="true"] { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgba(25, 26, 36, 0.08); }
body[data-doc-lang="uz"] .document [lang="ru"], body[data-doc-lang="ru"] .document [lang="uz-Latn"] { display: none; }
body[data-doc-lang="uz"] .document .bilingual-row, body[data-doc-lang="ru"] .document .bilingual-row { grid-template-columns: minmax(0, 1fr); }
body[data-doc-lang="uz"] .document .bilingual-head, body[data-doc-lang="ru"] .document .bilingual-head { display: none; }
@media (max-width: 899px) {
  .bd-head button, .bd-lang button { min-height: 44px; }
}
.field-error { white-space: pre-line; }
[data-instant] .form-actions { display: none; }
.nkz-main { display: grid; gap: var(--sp-2); padding: var(--sp-4); border: 1px solid rgba(255, 255, 255, 0.7); border-radius: var(--r-l); background: rgba(255, 255, 255, 0.62); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); box-shadow: var(--shadow); }
@supports not (backdrop-filter: blur(4px)) {
  .nkz-main { border-color: var(--line-card); background: var(--panel); }
}
.nkz-code { font-family: var(--font-mono); font-size: var(--fs-2xl); font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.nkz-names { display: grid; gap: 2px; }
.nkz-title { font-size: var(--fs-l); font-weight: 700; line-height: 1.3; }
.nkz-second, .nkz-how { color: var(--muted); font-size: var(--fs-xs); }
.nkz-use { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: var(--sp-3) 0; }
.nkz-use .button-link { min-height: 44px; display: inline-flex; align-items: center; }
.nkz-none { display: grid; gap: var(--sp-1); padding: var(--sp-3) var(--sp-4); border: 1px solid var(--warn-line); border-radius: var(--r-m); background: var(--warn-soft); color: var(--warn); }
.nkz-none small { color: var(--ink-2); font-size: var(--fs-s); }
.nkz-similar { display: grid; gap: var(--sp-1); margin-top: var(--sp-4); }
.nkz-similar h3 { margin: 0 0 var(--sp-1); font-size: var(--fs-s); font-weight: 700; color: var(--muted); }
.nkz-near { display: flex; align-items: center; gap: var(--sp-3); min-height: 44px; padding: var(--sp-2) var(--sp-3); border: 1px solid var(--line-card); border-radius: var(--r-m); background: var(--panel); color: var(--ink); text-decoration: none; }
.nkz-near:hover { border-color: var(--accent); }
.nkz-near .nkz-code { flex: none; font-size: var(--fs-m); }
.nkz-near-name { display: grid; gap: 2px; min-width: 0; font-size: var(--fs-s); font-weight: 600; }
.nkz-near-name small { color: var(--muted); font-size: var(--fs-xs); font-weight: 500; }
.bd-grid { display: grid; gap: var(--sp-3); }
.bd-grid-tools { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.bd-grid-tools button { min-height: 36px; }
.bd-grid-paste textarea { width: 100%; }
.bd-grid-table { --bd-cols: minmax(120px, 1.2fr) minmax(150px, 1.6fr) 124px 72px minmax(110px, 1fr) 36px; display: grid; gap: var(--sp-2); overflow-x: auto; padding-bottom: var(--sp-1); }
.bd-grid-table.has-bonus { --bd-cols: minmax(120px, 1.2fr) minmax(150px, 1.6fr) 124px 72px minmax(110px, 1fr) minmax(100px, 0.9fr) 36px; }
.bd-grid-head, .bd-grid-row { display: grid; grid-template-columns: var(--bd-cols); gap: var(--sp-2); min-width: 640px; align-items: center; }
.bd-grid-table.has-bonus .bd-grid-head, .bd-grid-table.has-bonus .bd-grid-row { min-width: 760px; }
.bd-grid-table.bd-grid-vacation.has-bonus { --bd-cols: minmax(120px, 1.2fr) minmax(150px, 1.6fr) 124px 72px minmax(140px, 1.2fr) 36px; }
.bd-grid-head { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); }
.bd-grid-row { padding: 2px 4px; margin: 0 -4px; border-radius: var(--r-m); }
.bd-grid-row.is-bad { background: var(--error-soft); }
.bd-grid-row.is-bad input { border-color: var(--error); }
.bd-cell { position: relative; min-width: 0; }
.bd-cell input { width: 100%; min-width: 0; }
.bd-pick { position: absolute; right: var(--sp-2); top: 50%; transform: translateY(-50%); font-size: var(--fs-xs); font-weight: 700; }
.bd-col-code input { padding-right: 76px; font-family: var(--font-mono); }
.bd-col-units input, .bd-col-salary input, .bd-col-bonus input { font-family: var(--font-mono); text-align: right; }
.bd-drop { min-height: 36px; width: 36px; padding: 0; border: 0; border-radius: var(--r-s); background: transparent; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.bd-drop:hover { background: var(--error-soft); color: var(--error); }
.bd-grid-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.bd-grid-total { font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); }
.bd-grid-foot button { min-height: 36px; }
@media (max-width: 899px) {
  .bd-grid-tools button, .bd-grid-foot button { min-height: 44px; }
  .bd-drop { min-height: 44px; width: 44px; }
}
.print-head { display: none; }
@media print {
  @page { margin: 14mm 12mm; }
  html.printing-result, html.printing-result body {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    background: #fff !important;
  }
  html.printing-result body { display: block !important; padding: 0 !important; margin: 0 !important; }
  html.printing-result [data-print-hide] { display: none !important; }
  html.printing-result [data-print-path], html.printing-result [data-print-target] {
    display: block !important;
    position: static !important;
    inset: auto !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    transform: none !important;
    background: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    break-inside: auto !important;
  }
  html.printing-result [data-print-path]::before, html.printing-result [data-print-path]::after,
  html.printing-result [data-print-target]::before, html.printing-result [data-print-target]::after { display: none !important; }
  html.printing-result .print-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12pt;
    margin: 0 0 12pt;
    padding: 0 0 8pt;
    border-bottom: 1px solid #999;
    color: #000;
  }
  html.printing-result .print-head strong { font-size: 16pt; }
  html.printing-result .print-head span { color: #555; font-size: 10pt; white-space: nowrap; }
  html.printing-result [data-print-target] > h2,
  html.printing-result .result-tools,
  html.printing-result .result-report,
  html.printing-result .rv-example-note,
  html.printing-result .rv-follow,
  html.printing-result [data-print-target] #why,
  html.printing-result [data-print-target] .result-saved-slot,
  html.printing-result [data-print-target] .bd-head,
  html.printing-result [data-print-target] .document-head,
  html.printing-result [data-print-target] .document > .note,
  html.printing-result [data-print-target] .bd-legend,
  html.printing-result [data-print-target] .report > .note { display: none !important; }
  html.printing-result .rv-card, html.printing-result .rv-tile, html.printing-result .result-table tr { break-inside: avoid; }
  html.printing-result .result-stamp { margin-top: 12pt; color: #555; }
}

.pk-list, .pk-date, .field-tip, .card-bubble, .bds-kind-pop {
  --island-fill: rgba(255, 255, 255, 0.85);
  --island-rim: linear-gradient(170deg, rgba(255, 255, 255, 0.9) 0%, rgba(60, 60, 67, 0.011) 45%, rgba(60, 60, 67, 0.02) 100%);
  border: 1px solid transparent;
  background: linear-gradient(var(--island-fill), var(--island-fill)) padding-box, var(--island-rim) border-box;
  -webkit-backdrop-filter: blur(1px) saturate(2.05);
  backdrop-filter: blur(1px) saturate(2.05);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 1px 2px rgba(16, 24, 40, 0.06), 0 16px 36px -18px rgba(16, 24, 40, 0.4);
}
.field-tip::after { width: 16px; height: 16px; bottom: -8px; }
.field.tip-below > .field-tip::after { top: -8px; bottom: auto; }
.card-bubble::before { width: 16px; height: 16px; top: -8px; left: calc(var(--tail, 40px) - 8px); }
.field-tip::after, .card-bubble::before { background: rgba(255, 255, 255, 0.97); border-color: rgba(60, 60, 67, 0.08); }
.field-tip::after { clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.card-bubble::before { clip-path: polygon(0 0, 100% 0, 0 100%); }

.service-col-result { container: result-col / inline-size; }
@media (max-width: 720px) {
  .service-col-result .result-tools { position: relative; z-index: 40; flex-wrap: nowrap; }
  .service-col-result .result-tools button:has(> svg) { position: relative; width: 40px; min-height: 40px; padding: 0; justify-content: center; }
  .service-col-result .result-tools button:has(> svg) > span { position: absolute; z-index: 30; top: calc(100% + 8px); right: -4px; padding: 6px 12px; white-space: nowrap; font-size: var(--fs-s); font-weight: 500; color: var(--ink); border-radius: 14px; background: rgba(255, 255, 255, 0.96); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 12px 28px -14px rgba(16, 24, 40, 0.4); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s; pointer-events: none; }
  .service-col-result .result-tools button.is-said > span { opacity: 1; visibility: visible; transform: none; }
}
@media (min-width: 900px) {
  @container result-col (max-width: 440px) {
    .service-col-result .result-tools { position: relative; z-index: 40; }
    .service-col-result .result-tools button:has(> svg) { position: relative; width: 34px; padding: 0; justify-content: center; }
    .service-col-result .result-tools button:has(> svg) > span {
      position: absolute;
      z-index: 30;
      bottom: calc(100% + 10px);
      right: -6px;
      padding: 7px 14px;
      white-space: nowrap;
      font-size: var(--fs-s);
      font-weight: 500;
      color: var(--ink);
      border: 1px solid transparent;
      border-radius: 14px;
      background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)) padding-box, linear-gradient(170deg, rgba(255, 255, 255, 0.9) 0%, rgba(60, 60, 67, 0.011) 45%, rgba(60, 60, 67, 0.02) 100%) border-box;
      -webkit-backdrop-filter: blur(1px) saturate(2.05);
      backdrop-filter: blur(1px) saturate(2.05);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 1px 2px rgba(16, 24, 40, 0.06), 0 16px 36px -18px rgba(16, 24, 40, 0.4);
      opacity: 0;
      transform: translateY(4px);
      transition: opacity 0.18s ease, transform 0.18s ease;
      pointer-events: none;
    }
    .service-col-result .result-tools button:has(> svg) > span::before { content: ""; position: absolute; bottom: -8px; right: 16px; width: 16px; height: 16px; border-left: 1px solid rgba(60, 60, 67, 0.08); border-top: 1px solid rgba(60, 60, 67, 0.08); background: rgba(255, 255, 255, 0.97); transform: rotate(225deg); clip-path: polygon(0 0, 100% 0, 0 100%); }
    .service-col-result .result-tools button:has(> svg):focus-visible > span, .service-col-result .result-tools button.is-said > span { opacity: 1; visibility: visible; transform: none; }
    @media (hover: hover) { .service-col-result .result-tools button:has(> svg):hover > span { opacity: 1; visibility: visible; transform: none; transition-delay: 0.4s; } }
  }
}

:root {
  --bar-main: #007aff;
  --bar-second: #5ac8fa;
  --bar-base: #aeaeb2;
  --bar-base-2: #d1d1d6;
  --bar-plus: #5aa872;
  --bar-minus: #ff9f0a;
  --bar-track: rgba(120, 120, 128, 0.16);
}

:root {
  --day-blue: #007aff;
  --day-blue-fill: rgba(0, 122, 255, 0.15);
  --day-blue-ink: #0058d0;
  --day-red: #ff3b30;
  --day-red-fill: rgba(255, 59, 48, 0.15);
  --day-red-ink: #c8170d;
  --day-orange: #ff9500;
  --day-orange-fill: rgba(255, 149, 0, 0.17);
  --day-orange-ink: #b25600;
  --day-green: #34c759;
  --day-yellow-fill: rgba(255, 204, 0, 0.3);
  --day-yellow-ink: #7a5d00;
  --day-indigo: #5856d6;
  --day-indigo-fill: rgba(88, 86, 214, 0.15);
  --day-indigo-ink: #3d3bb8;
  --day-gray-fill: rgba(120, 120, 128, 0.12);
}
.pk-date .pk-day:hover, .pk-day:hover, .pk-date .pk-day:focus-visible { background: var(--day-blue-fill); color: var(--day-blue-ink); font-weight: 700; box-shadow: inset 0 0 0 2px var(--day-blue); outline: none; }
.pk-list .pk-opt:hover, .pk-row:hover, .pk-row.is-active, .pk-row.is-active:hover { background: var(--day-blue-fill); color: var(--day-blue-ink); }
.pk-day.is-today { color: var(--day-blue-ink); font-weight: 700; box-shadow: inset 0 0 0 1.5px rgba(0, 122, 255, 0.55); }
.pk-day.is-sun { color: var(--day-red); }
.pk-day.is-vac, .pk-day.is-vac:hover { background: var(--day-blue-fill); color: var(--day-blue-ink); }
.pk-day.is-vac.is-sun { color: var(--day-red); }
.pk-day.is-hol, .pk-day.is-vac.is-hol { background: var(--day-orange-fill); color: var(--day-orange-ink); font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--day-orange); }
.pk-day.is-chosen, .pk-day.is-chosen:hover, .pk-day.is-edge, .pk-day.is-edge:hover { background: var(--day-blue); color: #fff; font-weight: 700; box-shadow: 0 6px 14px -8px rgba(0, 122, 255, 0.9); }
.pk-day.is-chosen.is-sun, .pk-day.is-chosen.is-hol, .pk-day.is-edge.is-sun, .pk-day.is-edge.is-hol { color: #fff; }
.pk-day.is-ext, .pk-day.is-ext:hover { background: repeating-linear-gradient(135deg, rgba(0, 122, 255, 0.2) 0 4px, rgba(0, 122, 255, 0.06) 4px 8px); color: var(--day-blue-ink); box-shadow: none; }
.pk-day.is-sick, .pk-day.is-sick:hover { background: var(--day-red-fill); color: var(--day-red-ink); font-weight: 700; box-shadow: inset 0 0 0 2px var(--day-red); }
.pk-day.is-unpaid, .pk-day.is-unpaid:hover { background: var(--day-yellow-fill); color: var(--day-yellow-ink); font-weight: 700; box-shadow: inset 0 0 0 2px #ffcc00; }
.pk-day.is-absent, .pk-day.is-absent:hover { background: var(--day-indigo-fill); color: var(--day-indigo-ink); font-weight: 700; box-shadow: inset 0 0 0 2px var(--day-indigo); }
.pk-day.is-anchor { outline: 2px solid var(--day-blue); outline-offset: -2px; }
.pk-key-vac::before { background: var(--day-blue-fill); box-shadow: none; }
.pk-key-sick::before { background: var(--day-red-fill); box-shadow: inset 0 0 0 1.5px var(--day-red); }
.pk-key-ext::before { background: repeating-linear-gradient(135deg, rgba(0, 122, 255, 0.22) 0 3px, rgba(0, 122, 255, 0.06) 3px 6px); }
.pk-key-hol::before { background: var(--day-orange-fill); box-shadow: inset 0 0 0 1.5px var(--day-orange); }
.pk-key-unpaid::before { background: var(--day-yellow-fill); box-shadow: inset 0 0 0 1.5px #ffcc00; }
.pk-key-absent::before { background: var(--day-indigo-fill); box-shadow: inset 0 0 0 1.5px var(--day-indigo); }
.pk-legend { font-size: var(--fs-s); color: var(--ink-2); }
.pk-mode-sick[aria-pressed="true"] { color: var(--day-red-ink); }
.pk-mode-vacation[aria-pressed="true"] { color: var(--day-blue-ink); }
.pk-mode-unpaid[aria-pressed="true"] { color: var(--day-yellow-ink); }
.pk-mode-absent[aria-pressed="true"] { color: var(--day-indigo-ink); }
.pk-list.pk-lifted, .pk-date.pk-lifted { position: fixed; inset: auto; margin: 0; color: var(--ink); }
.pk-date.pk-lifted { width: auto; max-width: calc(100vw - 16px); overflow: visible; }
.pk-mark-btn.pk-sick-btn { grid-column: 1 / -1; }
.pk-mark-btn.pk-sick-btn.is-set { border-style: solid; border-color: var(--day-red); background: var(--day-red-fill); color: var(--day-red-ink); font-weight: 600; }
.pk-date { --island-fill: rgba(255, 255, 255, 0.97); }
.pk-date .pk-modes { gap: 4px; padding: 3px; border-radius: 14px; background: rgba(120, 120, 128, 0.12); }
.pk-date .pk-mode { display: flex; align-items: center; gap: var(--sp-2); min-height: 50px; padding: 6px 10px; border-radius: 11px; text-align: left; color: var(--ink-2); }
.pk-date .pk-mode[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 4px rgba(25, 26, 36, 0.14); }
.pk-mode-num { flex: none; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(120, 120, 128, 0.2); color: var(--ink-2); font: 700 13px var(--font-mono); }
.pk-mode-text { display: grid; gap: 1px; min-width: 0; }
.pk-mode-text b { font-size: var(--fs-s); font-weight: 700; color: var(--ink); }
.pk-mode-text small { overflow: hidden; font-size: var(--fs-xs); font-weight: 500; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
.pk-mode.is-filled .pk-mode-text small { font-weight: 700; color: var(--ink-2); }
.pk-mode-vacation.is-filled .pk-mode-num { background: var(--day-blue); color: #fff; }
.pk-mode-sick.is-filled .pk-mode-num { background: var(--day-red); color: #fff; }
.pk-mode-unpaid.is-filled .pk-mode-num { background: #ffcc00; color: #5c4600; }
.pk-mode-absent.is-filled .pk-mode-num { background: var(--day-indigo); color: #fff; }
@keyframes pk-next { 0%, 100% { box-shadow: inset 0 0 0 2px rgba(255, 59, 48, 0.85); } 50% { box-shadow: inset 0 0 0 2px rgba(255, 59, 48, 0.2); } }
.pk-date .pk-mode.is-next { background: rgba(255, 59, 48, 0.07); animation: pk-next 1.6s ease-in-out infinite; }
.pk-date .pk-mode.is-next .pk-mode-num { background: var(--day-red); color: #fff; }
.pk-date .pk-hint { display: flex; align-items: center; box-sizing: border-box; height: 58px; overflow: hidden; margin: var(--sp-2) 0; padding: 6px 10px; border-radius: 10px; font-size: var(--fs-s); line-height: 1.35; color: var(--ink-2); }
.pk-date .pk-hint.is-done { background: rgba(52, 199, 89, 0.14); color: #1d6d32; font-weight: 600; }
.pk-marks .pk-day { height: 38px; font-size: var(--fs-m); font-weight: 600; }
.pk-day.is-before { opacity: 0.3; cursor: not-allowed; }
.pk-date .pk-day.is-before:hover { background: transparent; box-shadow: none; color: inherit; }
.pk-info { display: flex; align-items: center; box-sizing: border-box; height: 52px; overflow: hidden; margin: var(--sp-2) 0 0; padding: 6px 10px; border-radius: 10px; background: var(--day-gray-fill); font-size: var(--fs-s); font-weight: 600; line-height: 1.3; color: var(--ink); }
.pk-info:empty { background: transparent; }
.pk-info.is-day { background: var(--day-blue-fill); color: var(--day-blue-ink); }
.pk-date .pk-legend { margin-top: var(--sp-2); }
.pk-date .pk-done { min-height: 36px; }
.pk-done.is-ready { min-height: 36px; padding: 0 var(--sp-5); border-radius: 999px; background: var(--day-blue); color: #fff; }
.pk-done.is-ready:hover { background: #0062cc; color: #fff; }
.form-actions { background: none; transition: background-color 0.2s ease, box-shadow 0.2s ease; }
.form-actions.is-stuck { background: rgba(255, 255, 255, 0.78); -webkit-backdrop-filter: blur(14px) saturate(1.8); backdrop-filter: blur(14px) saturate(1.8); box-shadow: 0 -1px 0 var(--line-soft); }
@media (min-width: 900px) {
  .service-page .service-col-form:has(> form.ios-form) { display: flex; flex-direction: column; }
  .service-page .service-col-form > form.ios-form { flex: 1 0 auto; display: flex; flex-direction: column; }
  .service-page .service-col-form > form.ios-form > .form-actions { margin-top: auto; }
}
@keyframes pk-pop { from { opacity: 0; transform: translateY(-6px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes pk-slide-next { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes pk-slide-prev { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
@keyframes pk-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pk-tab { from { transform: scale(0.94); } to { transform: none; } }
.pk-date, .pk-list { animation: pk-pop var(--mo-pop-d) var(--mo-pop); transform-origin: top center; }
.pk-date.is-closing, .pk-list.is-closing { animation: none; }
.pk-grid.is-next { animation: pk-slide-next 0.22s cubic-bezier(0.2, 0.8, 0.2, 1); }
.pk-grid.is-prev { animation: pk-slide-prev 0.22s cubic-bezier(0.2, 0.8, 0.2, 1); }
.pk-grid.pk-months { animation: pk-fade 0.18s ease; }
.pk-date .pk-mode.is-just { animation: pk-tab 0.28s cubic-bezier(0.3, 1.3, 0.5, 1); }
.pk-date .pk-hint.is-new { animation: pk-fade 0.28s ease; }
@media (prefers-reduced-motion: reduce) {
  .pk-date .pk-mode.is-next { animation: none; box-shadow: inset 0 0 0 2px var(--day-red); }
  .pk-date, .pk-list, .pk-grid, .pk-date .pk-mode, .pk-date .pk-hint { animation: none !important; }
}
.strip-profile.open .profile-panel { display: grid; z-index: 300; animation: pk-pop var(--mo-calm-d) var(--mo-calm); transform-origin: bottom left; }

.stage-demo { display: none; align-items: center; gap: var(--sp-2); height: 36px; padding: 0 var(--sp-3); border-radius: var(--r-pill); font-size: var(--fs-s); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); background: #eef0f4; text-decoration: none; transition: color 0.4s ease, background-color 0.4s ease; }
.stage-demo { display: inline-flex; flex: none; }
.stage-demo svg { flex: none; }
.stage-take { position: relative; display: inline-flex; flex: none; align-items: center; gap: 12px; height: 48px; box-sizing: border-box; padding: 4px 4px 4px 16px; border: 0; border-radius: var(--r-pill); background: #eef0f4; color: var(--ink); font: inherit; text-decoration: none; cursor: pointer; transition: background-color 0.2s ease, transform 0.2s ease; }
.stage-take-say { display: inline-flex; gap: 0.3em; font-size: 15px; font-weight: 600; line-height: 1.15; color: #4d4e60; white-space: nowrap; }
.stage-take-say b { font-weight: 800; color: var(--ink); }
.stage-take-go { display: inline-flex; flex: none; align-items: center; gap: 10px; height: 40px; box-sizing: border-box; padding: 0 18px 0 6px; border-radius: var(--r-pill); background: #17181f; color: #ffffff; font-size: 15px; font-weight: 800; white-space: nowrap; box-shadow: 0 8px 18px -10px rgba(16, 17, 24, 0.7); transition: transform 0.25s cubic-bezier(0.32, 0.72, 0, 1), background-color 0.2s ease; }
.stage-take-go svg { flex: none; width: 28px; height: 28px; padding: 5px; box-sizing: border-box; border-radius: 50%; background: #ffffff; color: #17181f; }
.stage-take-short, .stage-take-row { display: none; }
.stage-take:hover { background: #e4e7ee; color: var(--ink); }
.stage-take:hover .stage-take-go { transform: translateX(2px); background-color: #2a2b36; }
.stage-take:active { transform: scale(0.98); }
@media (min-width: 900px) {
  .stage-bar > .stage-firm { flex: 0 1 auto; min-width: 150px; max-width: 320px; }
  .stage-bar > .stage-firm > summary.stage-company { max-width: 100%; box-sizing: border-box; }
}
@media (max-width: 1679px) {
  .stage-take-say { flex-direction: column; gap: 0; font-size: 13.5px; }
  .stage-take-say b { font-size: 14px; }
  .stage-title ~ .stage-take, .stage-title ~ .stage-take:hover { height: auto; padding: 0; background: none; }
  .stage-title ~ .stage-take .stage-take-say { display: none; }
}
@media (max-width: 1279px) {
  .stage-take, .stage-take:hover { height: auto; padding: 0; background: none; }
  .stage-take-say { display: none; }
}
@media (max-width: 899px) {
  .stage-bar > .stage-take { display: none; }
  .stage-take.stage-take-row { display: flex; height: auto; min-height: 64px; margin: 4px 0 12px; padding: 8px 8px 8px 16px; border-radius: 20px; }
  .catalog-page > .stage-take-row { margin-inline: 16px; }
  .stage-take-row .stage-take-say { display: flex; flex: 1 1 auto; min-width: 0; flex-direction: column; gap: 0; font-size: 14px; white-space: normal; }
  .stage-take-row .stage-take-say b { font-size: 15px; }
  .stage-take-row .stage-take-go { height: 48px; padding: 0 18px 0 7px; }
  .stage-take-row .stage-take-go svg { width: 34px; height: 34px; padding: 7px; }
  .stage-take-row .stage-take-long { display: none; }
  .stage-take-row .stage-take-short { display: inline; }
}
dialog.demo-sheet { position: fixed; inset: auto 0 0 0; box-sizing: border-box; width: min(560px, 100vw); max-width: 100vw; max-height: 90vh; max-height: 90dvh; margin: 0 auto; padding: 10px 24px calc(24px + env(safe-area-inset-bottom)); overflow: auto; border: 0; border-radius: 28px 28px 0 0; background: var(--panel, #ffffff); color: var(--ink); box-shadow: 0 -24px 60px -24px rgba(16, 24, 40, 0.35); animation: demo-sheet-in 0.42s cubic-bezier(0.32, 0.72, 0, 1) both; }
dialog.demo-sheet::backdrop { background: rgba(20, 22, 30, 0.38); animation: demo-veil-in 0.3s ease both; }
dialog.demo-sheet.is-leaving, dialog.demo-sheet.is-sending { animation: demo-sheet-out 0.28s cubic-bezier(0.4, 0, 1, 1) both; }
dialog.demo-sheet.is-leaving::backdrop, dialog.demo-sheet.is-sending::backdrop { animation: demo-veil-out 0.28s ease-in both; }
@keyframes demo-sheet-in { from { transform: translateY(100%); } to { transform: none; } }
@keyframes demo-sheet-out { from { transform: none; } to { transform: translateY(100%); } }
@keyframes demo-veil-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes demo-veil-out { from { opacity: 1; } to { opacity: 0; } }
.demo-sheet-grip { display: block; width: 40px; height: 5px; margin: 0 auto 16px; border-radius: 3px; background: #d5dae4; }
.demo-sheet-title, .demo-done-title { margin: 0 0 6px; font-size: 22px; line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; }
.demo-sheet-text, .demo-done-text { margin: 0 0 18px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.demo-systems { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 18px; padding: 0; border: 0; }
.demo-system { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; border-radius: 18px; box-shadow: inset 0 0 0 1px #e4e8f1; cursor: pointer; transition: box-shadow 0.2s ease, background 0.2s ease; }
.demo-system input { position: absolute; opacity: 0; pointer-events: none; }
.demo-system:has(input:checked) { background: #f7f8fb; box-shadow: inset 0 0 0 2px #191a24; }
.demo-system:has(input:focus-visible) { outline: 2px solid #191a24; outline-offset: 2px; }
.demo-system img { display: block; width: auto; height: 30px; }
.demo-system span { font-size: 13px; line-height: 1.35; color: var(--ink-2); }
.demo-sheet-foot { display: flex; gap: 10px; }
.demo-sheet-go { flex: 1 1 auto; height: 52px; padding: 0 20px; border: 0; border-radius: 16px; background: #191a24; color: #ffffff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; transition: transform 0.15s ease; }
.demo-sheet-go:active, .demo-sheet-skip:active { transform: scale(0.98); }
.demo-sheet-skip { flex: none; height: 52px; padding: 0 18px; border: 0; border-radius: 16px; background: #f0f3f8; color: #191a24; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.demo-sheet-form[aria-busy="true"] .demo-sheet-go { opacity: 0.7; }
dialog.demo-done { box-sizing: border-box; width: min(400px, calc(100vw - 32px)); padding: 28px 24px 22px; border: 0; border-radius: 26px; background: var(--panel, #ffffff); color: var(--ink); text-align: center; box-shadow: 0 30px 80px -30px rgba(16, 24, 40, 0.45); animation: demo-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
dialog.demo-done::backdrop { background: rgba(20, 22, 30, 0.32); animation: demo-veil-in 0.3s ease both; }
dialog.demo-done.is-leaving { animation: demo-pop-out 0.24s ease-in both; }
dialog.demo-done.is-leaving::backdrop { animation: demo-veil-out 0.24s ease-in both; }
@keyframes demo-pop { from { opacity: 0; transform: scale(0.86) translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes demo-pop-out { to { opacity: 0; transform: scale(0.94); } }
.demo-done-mark { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: #e6f5ec; color: #1b8a4a; animation: demo-mark 0.6s 0.15s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@keyframes demo-mark { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }
.demo-done-until { margin: -8px 0 18px; font-size: 14px; color: var(--ink-3); }
dialog.demo-done .demo-sheet-go { width: 100%; }
@media (prefers-reduced-motion: reduce) { dialog.demo-sheet, dialog.demo-done, .demo-done-mark { animation-duration: 0.01s; } }
.stage-demo-words { display: inline-flex; align-items: baseline; gap: var(--sp-2); }
.stage-demo-label { font-weight: 500; color: var(--ink-3); transition: color 0.4s ease; }
.stage-demo-short, .stage-demo-more:empty, .stage-demo-time:empty { display: none; }
.stage-demo-more { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.stage-demo-time { min-width: 8ch; text-align: right; }
.stage-demo:hover { background: #e5e8ee; color: var(--ink); }
.stage-demo.is-last { color: var(--bar-minus); background: color-mix(in srgb, var(--bar-minus) 12%, transparent); }
.stage-demo.is-last .stage-demo-label { color: inherit; }
.stage-demo.is-over .stage-demo-label { font-weight: 700; color: var(--ink-2); }
.stage-demo.is-over .stage-demo-time { display: none; }
.stage-demo-glass { height: 34px; border-radius: var(--radius-small); color: currentColor; background: rgba(255, 255, 255, 0.16); }
.stage-demo-glass:hover { background: rgba(255, 255, 255, 0.28); }
.stage-demo-glass .stage-demo-label, .stage-demo-glass.is-over .stage-demo-label { color: currentColor; opacity: 0.8; }
.stage-demo-glass.is-over .stage-demo-label { opacity: 1; }
.stage-demo-glass .stage-demo-more { color: currentColor; text-decoration: underline; text-underline-offset: 3px; }
.stage-demo-glass.is-last { color: currentColor; background: color-mix(in srgb, var(--bar-minus) 70%, transparent); }
.doc-items { display: grid; gap: 6px; margin: 8px 0 4px; white-space: normal; font-weight: 400; }
.doc-item { display: block; position: relative; padding-left: 16px; }
.doc-item::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--quiet); }
.doc-item b { font-weight: 600; }
.doc-found { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; font-weight: 400; }
.doc-found > li { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.doc-found > li:first-child { padding-top: 0; }
.doc-found > li:last-child { padding-bottom: 0; border-bottom: 0; }
.chat-window .doc-body .doc-more .doc-found { margin-top: 12px; }

:is(.rail .rail-action:not(.rail-action-dark, .rail-action-off), .strip-button:not(.strip-dark, .strip-plain, .strip-product)) { position: relative; isolation: isolate; }
:is(.rail .rail-action:not(.rail-action-dark, .rail-action-off), .strip-button:not(.strip-dark, .strip-plain, .strip-product))::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--grad-soft); opacity: 0; pointer-events: none; transition: opacity 200ms ease; }
:is(.rail .rail-action:not(.rail-action-dark, .rail-action-off), .strip-button:not(.strip-dark, .strip-plain, .strip-product))::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--grad-ink); mix-blend-mode: lighten; opacity: 0; pointer-events: none; transition: opacity 200ms ease; }
:is(.rail .rail-action:not(.rail-action-dark, .rail-action-off), .strip-button:not(.strip-dark, .strip-plain, .strip-product)).is-active::before, :is(.rail .rail-action:not(.rail-action-dark, .rail-action-off), .strip-button:not(.strip-dark, .strip-plain, .strip-product)):is(.is-active, :hover, :focus-visible)::after { opacity: 1; }
.new-plate { position: fixed; right: 48px; bottom: 40px; z-index: 58; display: flex; flex-direction: column; gap: 14px; width: 430px; max-width: calc(100vw - 24px); box-sizing: border-box; padding: 16px; border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 24px; background: rgba(255, 255, 255, 0.85); -webkit-backdrop-filter: blur(16px) saturate(205%); backdrop-filter: blur(16px) saturate(205%); box-shadow: 0 18px 50px rgba(16, 18, 32, 0.22); color: var(--ink); opacity: 0; transform: translateY(24px); transition: opacity 0.32s ease, transform 0.42s cubic-bezier(0.32, 0.72, 0, 1), bottom 0.3s ease; }
.new-plate.is-in { opacity: 1; transform: none; }
.new-plate.is-leaving { opacity: 0; transform: translateY(16px); transition-duration: 0.24s; }
.new-plate-top { display: flex; align-items: flex-start; gap: 14px; }
.new-plate-shot { position: relative; flex: none; width: 120px; height: 68px; border-radius: 12px; overflow: hidden; background: #0f1016; }
.new-plate-shot img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.new-plate-shot:hover img { transform: scale(1.05); }
.new-plate-play { position: absolute; left: 50%; top: 50%; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: #ffffff; color: #191a24; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); transform: translate(-50%, -50%); }
.new-plate-names { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; }
.new-plate-kind { font-size: 12px; font-weight: 700; color: #5f6074; }
.new-plate-title { font-size: 17px; font-weight: 800; line-height: 1.25; }
.new-plate-text { font-size: 14px; line-height: 1.4; color: #4d4e60; }
.new-plate-close { display: flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; min-height: 0; margin: -10px -10px 0 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #5f6074; cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
.new-plate-close:hover { background: rgba(27, 28, 38, 0.06); color: var(--ink); }
.new-plate-actions { display: flex; gap: 8px; }
.new-plate-open, .new-plate-video { display: flex; align-items: center; justify-content: center; height: 46px; border-radius: 14px; font-size: 15px; font-weight: 700; text-decoration: none; transition: background 0.2s ease; }
.new-plate-open { flex: 1; background: #1b1c26; color: #ffffff; }
.new-plate-open:hover { background: #2c2d3a; color: #ffffff; }
.new-plate-video { gap: 8px; padding: 0 18px 0 14px; background: rgba(27, 28, 38, 0.06); color: #191a24; }
.new-plate-video:hover { background: rgba(27, 28, 38, 0.11); color: #191a24; }
.new-plate-video-short { display: none; }
@media (prefers-reduced-motion: reduce) {
  .new-plate, .new-plate.is-leaving { transform: none; transition: opacity 0.2s ease; }
}
