.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { flex: none; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.eyebrow { font-family: var(--font); font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.eyebrow.strong { font-size: var(--fs-xs); font-weight: 600; }
.note { margin: 0; font-size: var(--fs-xs); line-height: 1.5; color: var(--muted); }
.note.warn { color: var(--warn); }
.callout { display: flex; gap: var(--sp-3); align-items: flex-start; margin: 0; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-m); background: var(--surface-soft); font-size: var(--fs-s); line-height: 1.5; color: var(--ink-2); }
.callout p { margin: 0; }
.callout .icon { width: 16px; height: 16px; margin-top: 2px; }
.callout.warn { background: var(--warn-soft); color: var(--warn); }
.sandbox-note { margin: 0 0 var(--sp-3); font-weight: 600; }
.soft-card { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-4) var(--sp-4); border-radius: var(--r-m); background: var(--surface-soft); }
.scroll { overflow-x: auto; }
.checks { display: grid; gap: var(--sp-2); margin: 0; padding: 0; list-style: none; font-size: var(--fs-s); line-height: 1.45; color: var(--ink-2); }
.checks li { display: flex; align-items: flex-start; gap: var(--sp-2); }
.checks .icon { width: 15px; height: 15px; margin-top: 2px; color: var(--ok); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); min-height: 34px; 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-size: var(--fs-s); font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover, .btn:focus-visible { border-color: var(--accent); background: var(--panel); color: var(--accent-dark); filter: none; }
button.btn.small { min-height: 34px; 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-size: var(--fs-s); }
button.btn.ghost { border-color: transparent; color: var(--muted); }

.rail .segment .segment-form { display: contents; }
.rail .segment button.segment-item { border: 0; line-height: 1.55; cursor: pointer; filter: none; }
.rail-head a.brand { justify-content: center; border-radius: var(--radius-control); }
.rail a.rail-action-dark { justify-content: center; }
@media screen and (min-width: 900px) {
  .shell-main .rail-grip { left: calc(var(--left-w) - 2px); width: 26px; }
  .shell-main .rail-grip::before { display: none; }
  .shell-main > .rail-grip:is(:hover, :focus-visible) ~ .stage,
  .shell-main > .rail-grip:is(:hover, :focus-visible) ~ * .stage,
  .shell-main > .rail-grip:is(:hover, :focus-visible) ~ .page-column > :first-child,
  .shell-main > .rail-grip:is(:hover, :focus-visible) ~ * .page-column > :first-child,
  .shell-main.shell-sizing :is(.stage, .page-column > :first-child) { box-shadow: inset 4px 0 0 #d3d1db, var(--shadow-scene); }
}
.stage-firm > summary.stage-company { display: flex; justify-content: center; }
.attach-pick > summary.chat-tool { display: flex; font-weight: 600; }
.rail .segment button.segment-item:hover, .rail .segment button.segment-item:focus-visible { color: var(--ink); background: rgba(255, 255, 255, 0.6); filter: none; }
.rail-head .brand[aria-current="page"] { color: var(--ink); }
.rail a.chats-title { color: #3f4052; }
.rail a.chats-title:hover { color: var(--ink); }
.strip-form .strip-button { font-family: var(--font); }
.rail-units { cursor: pointer; }

.stage-firm { position: relative; flex: none; }
.stage-firm > summary { list-style: none; }
.stage-firm > summary::-webkit-details-marker { display: none; }
.stage-company-more { flex: none; color: var(--quiet); transition: transform 0.2s ease; }
.stage-firm[open] .stage-company { background: var(--accent-soft); }
.stage-firm[open] .stage-company-more { transform: rotate(180deg); }
.firm-pop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 30;
  display: grid;
  gap: 2px;
  width: 300px;
  padding: var(--sp-3);
  background: var(--panel);
  border: 1px solid 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);
  animation: panel-in var(--mo-calm-d) var(--mo-calm) both;
}
.firm-pop form { margin: 0; }
.stage-firm:not([open]) .firm-pop { display: none; }
.firm-pop-hint { margin: 2px var(--sp-1) var(--sp-2); font-size: var(--fs-xs); line-height: 1.45; color: var(--muted); }
.firm-pop-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
  height: 38px;
  min-height: 0;
  padding: 0 var(--sp-3);
  border: 0;
  border-radius: var(--r-m);
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-s);
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  justify-content: flex-start;
  box-shadow: none;
  cursor: pointer;
}
.firm-pop form { margin: 0; }
.firm-pop-item span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.firm-pop-item svg { flex: none; color: var(--ink-2); }
.firm-pop-item:hover, .firm-pop-item:focus-visible { background: #eff3fa; color: var(--ink); filter: none; }
.firm-pop-current { font-weight: 600; }
.firm-pop-current svg { color: var(--accent); }
.firm-pop-sep { height: 1px; margin: var(--sp-2) var(--sp-1); background: var(--line-soft); }

.attach-pick { position: relative; }
.attach-pick > summary { list-style: none; }
.attach-pick[open] .chat-tool { border-color: var(--accent); color: var(--accent-dark); }
.attach-pop {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 30;
  display: grid;
  gap: 2px;
  width: 320px;
  padding: var(--sp-3);
  background: var(--panel);
  border: 1px solid 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);
  animation: panel-in var(--mo-calm-d) var(--mo-calm) both;
}
.attach-pop-note { margin: 2px var(--sp-1) var(--sp-2); font-size: var(--fs-xs); line-height: 1.45; color: var(--muted); }
.attach-pop-item { display: flex; align-items: center; gap: var(--sp-3); min-height: 36px; padding: 0 var(--sp-3); border-radius: var(--r-s); color: var(--ink); font-size: var(--fs-s); font-weight: 500; text-decoration: none; }
.attach-pop-item .group-icon { flex: none; color: var(--ink-2); }
.attach-pop-item:hover, .attach-pop-item:focus-visible { background: #eff3fa; color: var(--ink); }

.ref { display: inline-flex; align-items: center; max-width: 100%; margin-left: var(--sp-1); padding: 0 var(--sp-2); border-radius: 6px; background: var(--accent-soft); font-family: var(--font); font-size: var(--fs-xs); font-weight: 700; line-height: 1.6; color: var(--accent-dark); text-decoration: none; white-space: normal; overflow-wrap: anywhere; vertical-align: baseline; }
a.ref:hover { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-dark); }
a.ref:hover { text-decoration: underline; }
.doc-body .doc-label { margin: var(--sp-1) 0 calc(-1 * var(--sp-2)); font-family: var(--font); }
.doc-body .doc-lead { font-size: var(--fs-l); font-weight: 650; line-height: 1.55; color: var(--ink); }
.doc-body .doc-more > summary { width: max-content; font-family: var(--font); font-size: var(--fs-s); font-weight: 600; color: var(--accent-dark); cursor: pointer; }
.doc-body .doc-more[open] > summary { margin-bottom: var(--sp-2); }
.doc-body h3.doc-part { margin: var(--sp-2) 0 calc(-1 * var(--sp-1)); font-family: var(--font); font-size: var(--fs-m); font-weight: 700; line-height: 1.4; letter-spacing: -0.01em; color: var(--ink); }
.doc-body .doc-branch { font-family: var(--font); font-size: var(--fs-s); font-weight: 600; color: var(--accent-dark); }
.doc-body .doc-note { font-family: var(--font); font-size: var(--fs-s); line-height: 1.5; color: var(--muted); }
.doc-body .doc-warn { color: var(--warn); }
.tool-card .tool-company { margin: 0; font-family: var(--font); font-size: var(--fs-s); line-height: 1.5; color: var(--muted); }
.tool-card .tool-company a { color: var(--accent-dark); }
.doc-checks { display: grid; gap: var(--sp-2); margin: 0; padding: 0; list-style: none; font-family: var(--font); font-size: var(--fs-s); line-height: 1.45; color: var(--ink-2); }
.doc-checks li { display: flex; align-items: flex-start; gap: var(--sp-2); }
.doc-checks svg { flex: none; margin-top: 2px; color: var(--ok); }
.doc-system-logo { flex: none; display: block; width: auto; height: 22px; }
.doc-system { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin: 0; font-family: var(--font); font-size: var(--fs-s); line-height: 1.45; color: var(--quiet); }
.doc-system-mark { flex: none; padding: 0 var(--sp-2); border: 1px solid var(--line); border-radius: var(--radius-small); font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); }
.id2-link-box { display: grid; gap: var(--sp-3); justify-items: start; margin: 0 0 var(--sp-5); padding: var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-m); background: var(--panel); }
.id2-link-box .id2-link-title { margin: 0; font-size: var(--fs-m); font-weight: 600; color: var(--ink); }
.id2-link-box form { margin: 0; }
.id2-found { border-color: var(--accent); background: var(--accent-soft); }
.linked-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--sp-2) var(--sp-4); margin: 0; font-size: var(--fs-s); }
.linked-list dt { color: var(--quiet); font-weight: 600; }
.linked-list dd { margin: 0; overflow-wrap: anywhere; color: var(--ink); }
.id2-linked { margin: 0 0 var(--sp-4); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-m); background: var(--accent-soft); color: var(--ink); font-size: var(--fs-s); }
.report-open { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 16px 0 6px; border: 0; border-radius: 999px; background: rgba(118, 118, 128, 0.1); box-shadow: inset 0 0 0 1px rgba(60, 60, 67, 0.06); color: var(--ink-2); font-family: var(--font); font-size: 13px; font-weight: 600; line-height: 1; cursor: pointer; filter: none; transition: background 0.2s ease, color 0.2s ease, transform 0.12s ease; }
.report-open svg { flex: none; box-sizing: border-box; width: 26px; height: 26px; padding: 6px; border-radius: 50%; background: rgba(255, 59, 48, 0.14); color: #ff3b30; transition: background 0.2s ease, color 0.2s ease; }
.report-open:hover, .report-open:focus-visible { background: rgba(255, 59, 48, 0.1); color: #c8170d; filter: none; }
.report-open:hover svg, .report-open:focus-visible svg { background: #ff3b30; color: #fff; }
.report-open:active { transform: scale(0.97); }
.result-stamp:has(.result-report) { flex-wrap: wrap; }
.result-stamp:has(.result-report) > span:not(.orb-mini) { flex: 1 1 220px; }
.result-stamp .result-report { margin-left: auto; }
button.pm-item { width: 100%; min-height: 0; margin: 0; padding: 0 var(--sp-3); border: 0; background: transparent; box-shadow: none; font-family: inherit; font-size: var(--fs-s); font-weight: 500; color: var(--ink); text-align: left; justify-content: flex-start; letter-spacing: normal; cursor: pointer; }
.report-window { width: min(580px, calc(100vw - 32px)); }
.report-form { display: grid; gap: var(--sp-4); }
.report-form[hidden], .report-done[hidden] { display: none; }
.report-lead { margin: 0; font-size: var(--fs-s); line-height: 1.5; color: var(--quiet); }
.report-reasons { display: flex; flex-wrap: wrap; gap: var(--sp-2); min-width: 0; margin: 0; padding: 0; border: 0; }
.report-reasons legend { margin: 0 0 var(--sp-2); padding: 0; font-size: var(--fs-s); font-weight: 600; color: var(--ink); }
.report-reason { position: relative; }
.report-reason input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.report-reason span { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); font-size: var(--fs-s); color: var(--ink); }
.report-reason input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; }
.report-reason input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.report-field { display: grid; gap: var(--sp-2); }
.report-label { font-size: var(--fs-s); font-weight: 600; color: var(--ink); }
.report-field textarea { width: 100%; min-height: 120px; padding: 10px 12px; border: 1px solid var(--line-field); border-radius: var(--r-m); background: var(--field); font-family: var(--font); font-size: var(--fs-s); line-height: 1.5; color: var(--ink); resize: vertical; }
.report-drop { display: grid; gap: var(--sp-2); padding: var(--sp-3); border: 1px dashed var(--line-strong); border-radius: var(--r-m); background: var(--surface-soft); }
.report-drop.over { border-color: var(--accent); background: var(--accent-soft); }
.report-hint { font-size: var(--fs-xs); line-height: 1.45; color: var(--quiet); }
.report-choose { position: relative; justify-self: start; display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--panel); font-size: var(--fs-s); font-weight: 600; color: var(--ink); cursor: pointer; }
.report-choose:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.report-choose input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.report-thumbs { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin: 0; padding: 0; list-style: none; }
.report-thumbs:empty { display: none; }
.report-thumb { position: relative; display: grid; gap: 4px; width: 96px; }
.report-thumb img, .report-video { display: grid; place-items: center; width: 96px; height: 72px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--panel); object-fit: cover; font-size: 22px; color: var(--ink-2); }
.report-thumb-name { overflow: hidden; font-size: var(--fs-xs); color: var(--quiet); white-space: nowrap; text-overflow: ellipsis; }
.report-thumb-remove { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; min-height: 0; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--panel); font-size: 15px; line-height: 1; color: var(--ink); cursor: pointer; }
.report-error { margin: 0; font-size: var(--fs-s); color: var(--error); }
.report-done-text { margin: 0 0 var(--sp-4); font-size: var(--fs-m); line-height: 1.5; color: var(--ink); }
.tool-card .tool-args { font-family: var(--font); font-size: var(--fs-xs); color: var(--muted); }
.tool-row-open dt { color: var(--muted); font-style: italic; }
.tool-total-minor { padding-top: 0; border-top: 0; }
.tool-total-minor span { font-weight: 500; color: var(--ink-2); }
.tool-total-minor b { font-size: var(--fs-s); }
.tool-warn { display: grid; gap: var(--sp-1); margin: 0; padding: var(--sp-3) var(--sp-3) var(--sp-3) var(--sp-6); border-radius: var(--radius-small); background: var(--warn-soft); color: var(--warn); font-size: var(--fs-s); line-height: 1.45; }
.tool-form { display: grid; gap: var(--sp-3); margin: 0; font-family: var(--font); }
.tool-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--sp-3); }
.tool-fields .field { margin: 0; }
.tool-run { min-height: 36px; padding: 0 var(--sp-4); border-radius: var(--r-s); font-size: var(--fs-s); }
.doc-hood { font-family: var(--font); font-size: var(--fs-xs); color: var(--muted); }
.doc-hood summary { cursor: pointer; }
.doc-hood-scroll { overflow-x: auto; margin-top: var(--sp-2); }
.doc-hood table { border-collapse: collapse; font-size: var(--fs-xs); }
.doc-hood th, .doc-hood td { padding: var(--sp-1) var(--sp-2); border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.starter-form { margin: 0; }
.help-window { width: min(680px, calc(100% - 32px)); padding: var(--sp-5) var(--sp-5) var(--sp-5); overflow-y: auto; }
.help-window .dialog-title { margin-bottom: var(--sp-4); }
.help-groups { display: grid; gap: var(--sp-4); margin: var(--sp-4) 0 0; }
.help-group-title { display: flex; align-items: center; gap: var(--sp-2); margin: 0 0 var(--sp-2); font-size: var(--fs-s); font-weight: 600; }
.help-group-title svg { flex: none; color: var(--accent); }
.help-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

.profile-visit { margin: 0 0 var(--sp-4); }
.profile-links { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: var(--sp-4) 0 var(--sp-3); }
.profile-page .pf select.pf-input { padding-right: var(--sp-7); }
.company-list { display: grid; gap: var(--sp-3); margin: var(--sp-4) 0 var(--sp-5); padding: 0; list-style: none; }
.company-list .company-card, .company-page-wide .company-card { padding: var(--sp-4) var(--sp-4); border: 1px solid var(--line-card); border-radius: var(--radius-card); background: var(--panel); }
.company-list .company-page-current, .company-page-wide .company-page-current { border-color: #c5d3ec; box-shadow: 0 1px 2px rgba(25, 26, 36, 0.06); }
.company-list .company-foot { margin-top: var(--sp-3); }
.company-name { text-decoration: none; }
.company-crumbs { margin: 0 0 var(--sp-4); }
.company-lead { white-space: normal; }
.company-add { margin-top: var(--sp-2); }
.company-page-wide .company-pills { margin-top: var(--sp-4); }
.page.company-page-wide { max-width: 1040px; }
.confirm .prefill-text { display: grid; gap: var(--sp-2); margin: 0; }
.confirm-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.fieldlist { display: flex; flex-direction: column; margin: var(--sp-4) 0 0; padding: 0; border-top: 1px solid var(--line-soft); list-style: none; }
.fieldrow { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: var(--sp-4); padding: var(--sp-4) 0; border-bottom: 1px solid var(--line-soft); scroll-margin-top: 20px; }
.fieldrow:target { background: linear-gradient(90deg, var(--accent-soft), rgba(255, 255, 255, 0)); }
.fieldrow .now { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fieldrow .now b { font-size: var(--fs-s); font-weight: 600; }
.fieldrow .now b::first-letter { text-transform: uppercase; }
.fieldrow .value { font-size: var(--fs-s); color: var(--ink-2); }
.fieldrow .now small { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--quiet); }
.fieldrow .unset { font-size: var(--fs-xs); color: var(--warn); }
.fieldrow form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--sp-2); margin: 0; }
.fieldrow form > input, .fieldrow form > select { flex: 1 1 200px; min-width: 0; min-height: 38px; height: 38px; padding: 0 var(--sp-3); font-size: var(--fs-s); border-color: var(--line-field); border-radius: var(--r-m); }
.fieldrow form > select { padding-right: var(--sp-7); }
.fieldrow .since { display: flex; flex-direction: column; gap: 3px; margin: 0; font-size: var(--fs-xs); font-weight: 500; color: var(--muted); }
.fieldrow .since input { min-height: 38px; height: 38px; padding: 0 var(--sp-3); font-family: var(--font-mono); font-size: var(--fs-xs); border-color: var(--line-field); border-radius: var(--r-m); }
.fieldrow .lg-act { height: 38px; }
.fieldrow .error { flex-basis: 100%; padding: var(--sp-2) var(--sp-3); font-size: var(--fs-xs); }
.fieldrow .multi { flex: 1 1 100%; }

.state-hero { padding: var(--sp-7) 0; }
.state-code { margin: 0; font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.09em; color: var(--muted); }
.state-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); }
.state-actions .state-main { color: var(--graphite-ink); background: var(--graphite); border-color: var(--graphite); }
.pair { max-width: 640px; margin: 0 auto; text-align: center; }
.pair-cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); margin: var(--sp-5) 0; text-align: left; }
.pair-card { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-2); width: 100%; padding: var(--sp-4); border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--panel); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.pair-card:hover, .pair-card:focus-visible { border-color: var(--graphite); box-shadow: 0 6px 20px rgba(27, 28, 38, .08); }
.pair-card.is-current { border-color: var(--graphite); }
.pair-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); width: 100%; }
.pair-via { font-size: var(--fs-s); font-weight: 600; color: var(--muted); }
.pair-here { padding: 2px var(--sp-2); border-radius: 999px; background: var(--graphite); color: var(--graphite-ink); font-size: var(--fs-xs); font-weight: 600; }
.pair-name { font-size: var(--fs-l); }
.pair-contact, .pair-counts { color: var(--muted); }
.pair-access { font-weight: 600; }
.pair-access-paid, .pair-access-demo { color: var(--ok); }
.pair-access-none { color: var(--muted); }
.pair-go { margin-top: auto; padding: var(--sp-2) var(--sp-4); border-radius: 999px; background: var(--graphite); color: var(--graphite-ink); font-weight: 600; }
.pair-merge { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--sp-3); color: var(--muted); }
.pair-merge .pair-merge-go { border: 1px solid var(--graphite); color: var(--graphite); background: transparent; }
.pair .link-button { margin-top: var(--sp-3); }
@media (max-width: 560px) { .pair-cards { grid-template-columns: 1fr; } }
.tg-code { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }
.tg-code input { flex: 1 1 180px; min-height: 44px; font-family: var(--font-mono); font-size: var(--fs-l); letter-spacing: 0.12em; text-transform: uppercase; }
.state-alone { min-height: 100vh; }
.gate-page { max-width: 520px; margin: var(--sp-7) auto; text-align: left; }
.chat-form .welcome-input { min-height: 0; padding: var(--sp-1) 2px; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-size: var(--fs-m); line-height: 1.5; }
.chat-form .welcome-input:hover { border: 0; }
.chat-form .welcome-input:focus, .chat-form .welcome-input:focus-visible { outline: none; box-shadow: none; }
.welcome-skip { min-height: 38px; padding: 0 var(--sp-4); font-size: var(--fs-s); }
.welcome-form .starters { justify-content: center; }
button.tile { justify-content: flex-start; width: 100%; font: inherit; font-weight: 500; color: var(--ink); text-align: left; filter: none; }
button.tile .tile-count { font-family: var(--font); font-size: var(--fs-xs); line-height: 1.35; }
button.tile, button.tile .tile-body { white-space: normal; overflow-wrap: break-word; }
button.rail-login { display: flex; align-items: center; gap: var(--sp-3); width: 100%; 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-size: var(--fs-s); font-weight: 600; filter: none; }
button.rail-login:hover { background: rgba(255, 255, 255, 0.86); color: var(--ink); filter: none; }
button.stage-login { border: 0; min-height: 34px; }
.login-id2-wait { align-self: center; font-size: var(--fs-s); color: var(--muted); animation: login-wait 1.4s ease-in-out infinite alternate; }
@keyframes login-wait { from { opacity: 0.45; } to { opacity: 1; } }
.login-id2 { align-items: center; }
.login-tg[hidden] { display: none; }
.login-tg { display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); width: 100%; }
.login-tg-lead { margin: 0; text-align: center; font-size: var(--fs-m); color: var(--ink-2); }
.login-tg-qr { display: flex; flex-direction: column; align-items: center; gap: var(--sp-1); margin: 0; }
.login-tg-qr svg { display: block; width: 168px; height: 168px; border-radius: var(--r-s); background: #fff; }
.login-tg-qr figcaption { font-size: var(--fs-xs); color: var(--muted); }
@media (max-width: 600px), (pointer: coarse) { .login-tg-qr { display: none; } }
.login-tg-state { margin: 0; text-align: center; }
.login-tg-back { border: 0; background: none; padding: var(--sp-1) var(--sp-2); color: var(--muted); font: inherit; font-size: var(--fs-s); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; filter: none; }
.login-tg-back:hover { color: var(--ink); background: none; }
@keyframes login-qr-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes login-qr-swap { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes login-qr-dot { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .login-id2-wait { animation: none; }
}
.dev-login { max-width: 560px; margin: var(--sp-7) auto; padding: 0 var(--gutter); }
.dev-people { display: grid; gap: var(--sp-2); margin: var(--sp-4) 0 0; padding: 0; list-style: none; }
.dev-people a { display: flex; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-m); background: var(--panel); color: var(--ink); text-decoration: none; }
.dev-people a:hover { border-color: var(--accent); }
.dev-people span { color: var(--muted); font-size: var(--fs-xs); }
.stage-id2 { display: flex; align-items: center; flex: none; margin-left: var(--sp-1); }
.stage-id2:empty { display: none !important; }
.shell-page .page-column > :first-child { min-height: calc(100vh - 40px); min-height: calc(100dvh - 40px); }
.stage-id2, .stage-id2 > div, .stage-id2 [class*="authButtonStyles__login"], .stage-id2 [class*="authButtonStyles__user"] { display: flex !important; align-items: center !important; height: 36px; line-height: 0; }
.stage-id2 [class*="authButtonStyles__login"], .stage-id2 [class*="authButtonStyles__user"] { margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; }
.stage-id2 button {
  display: inline-flex !important;
  align-items: center !important;
  gap: var(--sp-2) !important;
  height: 36px !important;
  min-height: 36px !important;
  max-width: 220px;
  margin: 0 !important;
  padding: 0 var(--sp-4) 0 3px !important;
  border: 0 !important;
  border-radius: var(--r-pill) !important;
  background: radial-gradient(70% 130% at 22% -30%, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 70%), radial-gradient(70% 150% at 96% 125%, #5b8bf2 0%, rgba(91, 139, 242, 0) 70%), linear-gradient(110deg, #7d4fe6 0%, #4f58d8 48%, #234a9c 100%) !important;
  background-size: 160% 100% !important;
  background-position: 0 0 !important;
  box-shadow: 0 3px 12px rgba(91, 79, 214, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.42) !important;
  color: #ffffff !important;
  font-family: var(--font) !important;
  font-size: var(--fs-s) !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  white-space: nowrap;
  cursor: pointer;
  transition: background-position 0.5s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.stage-id2 button:hover, .stage-id2 button:focus-visible {
  background-position: 100% 0 !important;
  box-shadow: 0 5px 18px rgba(91, 79, 214, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
  transform: translateY(-1px);
}
.stage-id2 button > * { color: inherit !important; }
.stage-id2 button span { overflow: hidden; text-overflow: ellipsis; color: #ffffff !important; }
.stage-id2 button [class*="buttonIcon"] {
  position: static !important;
  display: inline-flex !important;
  flex: none !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  height: 30px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border: 0 !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.2) !important;
  box-shadow: none !important;
  transform: none !important;
}
.stage-id2 button [class*="buttonIcon"] svg { flex: none; width: 31px !important; height: 31px !important; margin: 0 !important; transform: translate(-3.1px, -0.4px); }
.stage-id2 button img { flex: none; width: 28px !important; height: 28px !important; margin: 0 !important; border-radius: 50%; object-fit: cover; }
.stage-id2 button svg path { fill: #ffffff !important; }
body.has-stage-id2 [class*="AuthModal__authModalOverlay"] { display: none !important; }
.stage-bar { container-type: inline-size; }
@container (max-width: 1000px) {
  .stage-id2 button { gap: 0 !important; padding: 0 3px !important; }
  .stage-id2 button [class*="buttonText"] { display: none !important; }
  .stage-demo .stage-demo-label { display: none; }
  .stage-demo .stage-demo-short { display: inline; font-weight: 500; color: var(--ink-3); }
}
@media (max-width: 640px) {
  .stage-id2 button { padding: 0 var(--sp-2) !important; }
  .stage-id2 button span { display: none; }
  :is(.stage-bar, .m-bar) .stage-id2, :is(.stage-bar, .m-bar) .stage-id2 > div, :is(.stage-bar, .m-bar) .stage-id2 [class*="authButtonStyles__login"], :is(.stage-bar, .m-bar) .stage-id2 [class*="authButtonStyles__user"] { height: 42px; }
  :is(.stage-bar, .m-bar) .stage-id2 button { justify-content: center !important; width: 42px !important; height: 42px !important; min-height: 42px !important; padding: 0 !important; border-radius: 50% !important; }
  :is(.stage-bar, .m-bar) .stage-id2 button [class*="buttonIcon"] { width: 34px !important; height: 34px !important; background: none !important; }
  :is(.stage-bar, .m-bar) .stage-id2 button [class*="buttonIcon"] svg { width: 35px !important; height: 35px !important; transform: translate(-3.5px, -0.5px); }
}
.login-id2 { min-height: 46px; display: flex; justify-content: center; }
.login-points li span b { font-weight: 700; }

.result-tools .result-state { margin-right: auto; font-family: var(--font); font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ok); }
.result-tools .result-state-partial, .result-tools .result-state-no_fact { color: var(--warn); }
.result-tools .result-state-invalid, .result-tools .result-state-refused { color: var(--error); }
.result-tools .result-state-ask { color: var(--accent-dark); }
.result-note { display: block; font-style: normal; font-size: var(--fs-xs); font-weight: 500; color: var(--muted); }
.result-flag { display: block; margin-top: 2px; font-size: var(--fs-xs); font-weight: 500; color: var(--warn); }
.result-line.open dt { color: var(--muted); }
.result-steps dl { margin: 0; }
.result-steps .result-line dd { flex: none; white-space: nowrap; }
.result-origins { margin: var(--sp-1) 0 0; font-size: var(--fs-s); color: var(--ink-2); }
.result-origins summary { font-family: var(--font); font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); cursor: pointer; }
.result-origins ul { display: grid; gap: var(--sp-2); margin: var(--sp-3) 0 0; padding: 0; list-style: none; }
.result-origins li { display: flex; align-items: flex-start; gap: var(--sp-2); line-height: 1.45; }
.result-origins svg { flex: none; margin-top: 3px; color: var(--ok); }
.result-warnings { font-size: var(--fs-s); }
.result-warnings ul { margin: var(--sp-2) 0 0; padding-left: var(--sp-4); }
.service-limits { margin-top: var(--sp-4); font-size: var(--fs-s); line-height: 1.5; color: var(--muted); }
.service-limits .result-label { margin: 0 0 var(--sp-2); }
.service-limits ul { margin: 0; padding-left: var(--sp-4); }
.service-reference { margin: var(--sp-1) 0 var(--sp-3); }
.field .starters { margin-top: 2px; }
.service-col-form .field > label::first-letter, .service-col-form .field-label::first-letter,
.service-hero-sum::first-letter, .card-summary::first-letter, .service-bubble p::first-letter,
.result-line dt::first-letter, .ref-name::first-letter { text-transform: uppercase; }

.score { display: flex; align-items: center; gap: var(--sp-4); margin: var(--sp-2) 0 var(--sp-4); }
.score-ring { flex: none; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--value) * 1%), var(--line-card) 0); }
.score-ring span { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; background: var(--panel); font-family: var(--font-mono); font-size: var(--fs-xl); font-weight: 600; }
.score b { display: block; font-size: var(--fs-s); }
.score small { display: block; font-size: var(--fs-xs); color: var(--muted); }
.dues { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.due { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) 0; border-bottom: 1px solid var(--line-soft); }
.due form { display: contents; }
.tick { flex: none; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; min-height: 0; padding: 0; border: 1.5px solid var(--line-field); border-radius: var(--r-s); background: var(--panel); color: transparent; }
.tick:hover { border-color: var(--accent); background: var(--panel); filter: none; }
.due.done .tick { border-color: var(--accent); background: var(--accent); color: #fff; }
.due-day { flex: none; width: 54px; font-family: var(--font-mono); font-size: var(--fs-s); font-weight: 600; }
.due-title { min-width: 0; font-size: var(--fs-s); color: var(--ink-2); }
.due-title::first-letter { text-transform: uppercase; }
.due.done .due-title { color: var(--quiet); text-decoration: line-through; }
.due-state { margin-left: auto; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--accent); white-space: nowrap; }

.paper { padding: var(--sp-5) var(--sp-6); border: 1px solid var(--line-card); background: var(--panel); box-shadow: 0 1px 2px rgba(25, 26, 36, 0.04), 0 18px 40px -28px rgba(24, 36, 72, 0.4); }
.document { display: flex; flex-direction: column; gap: var(--sp-4); }
.document-head { display: flex; align-items: center; gap: var(--sp-3); padding-bottom: var(--sp-4); border-bottom: 1px solid var(--line-card); }
.document-head .badge { display: inline-flex; align-items: center; height: 22px; padding: 0 var(--sp-2); border: 0; 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.06em; text-transform: uppercase; }
.bilingual { display: flex; flex-direction: column; }
.bilingual-head, .bilingual-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
.bilingual-head { padding-bottom: 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(--quiet); }
.bilingual-row { padding: var(--sp-2) 0; border-bottom: 1px solid var(--line-soft); font-size: var(--fs-s); line-height: 1.55; }
.bilingual-row > div { min-width: 0; overflow-wrap: anywhere; }
.bilingual-row.title { padding: var(--sp-4) 0 var(--sp-3); font-size: var(--fs-l); font-weight: 600; letter-spacing: -0.012em; }
.bilingual-row.head { font-size: var(--fs-s); color: var(--ink-2); }
.bilingual-row.section { padding-top: var(--sp-4); font-weight: 600; }
.bilingual-row.quote { font-size: var(--fs-s); color: var(--ink-2); }
.bilingual-row .grid-wrap { grid-column: 1 / -1; overflow-x: auto; }
.grid { width: 100%; border-collapse: collapse; font-size: var(--fs-xs); }
.grid th, .grid td { padding: var(--sp-2) var(--sp-2); border: 1px solid var(--line-card); text-align: left; vertical-align: top; }
.grid th { background: var(--surface-soft); font-weight: 600; }
.grid .cell-line { display: block; }
.stamp { max-width: 22rem; margin: 0 0 var(--sp-2) auto; padding: var(--sp-1) 0 var(--sp-3); font-size: var(--fs-s); line-height: 1.5; text-align: right; color: var(--ink-2); }
.stamp .party-line, .parties .party-line { display: block; }
.stamp b { font-family: var(--font); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.parties-title { margin-top: var(--sp-2); }
.parties { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--sp-3); font-size: var(--fs-s); }
.parties > div { padding: var(--sp-3) var(--sp-4); border-radius: var(--r-m); background: var(--surface-soft); }
.report { display: flex; flex-direction: column; gap: var(--sp-4); }
.report-title { margin: 0; font-size: var(--fs-xl); font-weight: 600; }
.findings { display: flex; flex-direction: column; gap: var(--sp-4); margin: 0; padding: 0; list-style: none; }
.finding-group { display: flex; flex-direction: column; gap: var(--sp-3); }
.finding-group > ol { display: flex; flex-direction: column; gap: var(--sp-4); margin: 0; padding: 0; list-style: none; }
.finding-group.error > .eyebrow { color: var(--error); }
.finding-group.risk > .eyebrow { color: var(--warn); }
.finding { display: flex; flex-direction: column; gap: var(--sp-1); padding-bottom: var(--sp-4); border-bottom: 1px solid var(--line-soft); }
.finding-title { font-size: var(--fs-l); font-weight: 600; line-height: 1.3; }
.finding-title::first-letter { text-transform: uppercase; }
.finding .where { font-size: var(--fs-xs); color: var(--muted); }
.finding p { margin: 0; font-size: var(--fs-s); line-height: 1.5; color: var(--ink-2); }
.finding .todo { color: var(--ink); }
.supports { display: grid; grid-template-columns: 1fr auto; gap: var(--sp-3); margin: var(--sp-1) 0; }
.support { display: flex; flex-direction: column; gap: var(--sp-1); padding: var(--sp-3) var(--sp-3); border-radius: var(--r-m); background: var(--surface-soft); font-size: var(--fs-xs); }
.support blockquote { margin: 0; font-size: var(--fs-s); color: var(--ink-2); }
.support small { color: var(--muted); }
.summary { width: 100%; border-collapse: collapse; font-size: var(--fs-xs); }
.summary th, .summary td { padding: var(--sp-2) var(--sp-2); border-bottom: 1px solid var(--line-card); text-align: left; vertical-align: top; }
.summary th { font-family: var(--font); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.checked-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.checked-pair > div { display: flex; flex-direction: column; gap: var(--sp-2); }
.plain-list { display: flex; flex-direction: column; gap: var(--sp-1); margin: 0; padding-left: var(--sp-4); font-size: var(--fs-xs); color: var(--ink-2); }
.history { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-4); font-size: var(--fs-xs); line-height: 1.5; color: var(--muted); }
.history ul { display: flex; flex-direction: column; gap: var(--sp-2); margin: 0; padding: 0; list-style: none; }
.history li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }

.progress { display: none; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin-top: var(--sp-4); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-m); background: var(--surface-soft); }
.progress.on { display: flex; }
.progress .orb-mini { --orb-mini-s: 16px; animation: orb-mini-breathe 1.6s ease-in-out infinite; }
.progress b { font-family: var(--font-brand); font-size: var(--fs-s); font-weight: 500; }
.progress ol { margin: 0; padding: 0; list-style: none; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); }
.progress ol li { display: none; }
.progress ol li.now { display: inline; }
.progress .dots { display: inline-flex; gap: 3px; height: auto; }
.progress .dots i { width: 3.5px; height: 3.5px; border-radius: 50%; background: var(--accent); opacity: 1; animation: doc-dot 1.2s ease-in-out infinite; }
.progress .dots i:nth-child(2) { animation-delay: 0.15s; }
.progress .dots i:nth-child(3) { animation-delay: 0.3s; }
.progress .elapsed { margin-left: auto; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--quiet); }

.profile-window .dialog-sub, .company-window .dialog-sub { margin-left: var(--sp-3); }
.profile-window .panel-body { padding: 0; }
.profile-window .pf select.pf-input, .profile-page .pf select.pf-input { padding-right: var(--sp-7); }
.company-window { padding: var(--sp-5) var(--sp-5) var(--sp-5); }
.company-window .dialog-title { margin: 0 0 var(--sp-4); }
.company-window .company-options li { display: flex; align-items: stretch; gap: var(--sp-2); }
.company-window .company-choose { flex: 1 1 auto; min-width: 0; }
.company-window .company-edit-button { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; min-height: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--panel); color: var(--muted); }
.company-window .company-edit-button:hover, .company-window .company-edit-button:focus-visible { border-color: var(--accent); background: var(--panel); color: var(--accent-dark); filter: none; }
.company-window .company-form .field input { width: 100%; }
.company-window .company-form .dialog-foot { margin-top: var(--sp-2); }
.company-window .company-back { min-height: 0; padding: 0; border: 0; background: none; color: var(--accent-dark); font: inherit; font-size: var(--fs-s); font-weight: 600; cursor: pointer; }
.company-window .company-back:hover, .company-window .company-back:focus-visible { background: none; color: var(--accent-dark); text-decoration: underline; filter: none; }
.company-window .company-edit-back { margin: 0 0 var(--sp-3); }
.company-window .company-edit-panel > [data-company-panel] .company-card { padding: 0; background: none; border: 0; box-shadow: none; }
.company-window .fieldrow { grid-template-columns: minmax(0, 1fr); gap: var(--sp-2); }
.company-window .company-lead { max-width: 52ch; }
.company-window [data-company-panel][aria-busy="true"] { opacity: 0.55; pointer-events: none; }
.inn-row { display: flex; gap: var(--sp-2); align-items: center; }
.inn-row input { flex: 1; min-width: 0; }
.inn-find { white-space: nowrap; }
.inn-found { margin: var(--sp-2) 0 0; padding: var(--sp-2) var(--sp-3); border-radius: var(--r-m); background: var(--surface-2, rgba(0, 0, 0, 0.04)); font-size: var(--fs-s); }
.inn-found[data-state="found"] { border-left: 3px solid var(--accent, #2f7d5a); }
.company-delete { margin: var(--sp-5) 0 0; padding-top: var(--sp-3); border-top: 1px solid var(--line, rgba(0, 0, 0, 0.1)); }
.company-delete summary { cursor: pointer; color: var(--muted); font-size: var(--fs-s); }
.company-delete form { margin: var(--sp-2) 0 0; }
.company-removed { display: flex; gap: var(--sp-3); align-items: center; flex-wrap: wrap; margin: 0 0 var(--sp-4); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-m); background: var(--surface-2, rgba(0, 0, 0, 0.04)); }
.company-removed form { margin: 0; }
.cards .card.status-planned {
  --card-ink: #4a4b5c;
  --card-ink-2: var(--muted);
  --card-dot: var(--line-strong);
}
.cards .card.status-planned .card-name { font-weight: 500; }
.cards .card.status-planned .card-mark { padding: 2px var(--sp-2); border: 1px dashed var(--line-strong); border-radius: var(--r-pill); }
.cards .card .card-new { position: relative; overflow: hidden; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: -0.005em; line-height: 1; color: #fff; background: rgba(255, 255, 255, 0.2); box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.42), 0 2px 10px rgba(0, 0, 0, 0.1); -webkit-backdrop-filter: blur(8px) saturate(180%); backdrop-filter: blur(8px) saturate(180%); animation: card-new-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.cards .card.tone-9 .card-new { color: #241c0d; background: rgba(255, 255, 255, 0.42); box-shadow: inset 0 0 0 0.5px rgba(36, 28, 13, 0.2); }
.cards .card.status-locked .card-new, .cards .card.status-signin .card-new { color: var(--ink); background: rgba(255, 255, 255, 0.7); box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.12); }
.cards .card .card-new::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.7) 50%, transparent 65%); transform: translateX(-120%); }
.cards .card:hover .card-new::after { transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); transform: translateX(120%); }
@keyframes card-new-in { from { opacity: 0; transform: translateY(4px) scale(0.9); } }
@media (prefers-reduced-motion: reduce) {
  .cards .card .card-new { animation: none; }
  .cards .card:hover .card-new::after { transition: none; transform: translateX(-120%); }
}
a.desk-date { color: inherit; text-decoration: none; }
a.desk-date:hover .desk-date-text, a.desk-date:focus-visible .desk-date-text { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 2px; }
.hero-line-link { color: inherit; text-decoration: none; }
.hero-line-link:hover, .hero-line-link:focus-visible { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.page.cal-page { max-width: 1280px; }
.cal-page .cal-body { align-items: flex-start; overflow: visible; }
.cal-page .cal-main { overflow: visible; padding: 0 var(--sp-6) 0 0; }
.cal-page .cal-side { width: 380px; overflow: visible; padding: 0 0 0 var(--sp-6); }
.cal-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.cal-tools { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); margin: 0; }
.cal-tool { font-size: var(--fs-s); font-weight: 500; color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.cal-to { margin: var(--sp-4) 0 0; }
.cal-filter { display: inline-flex; align-items: center; gap: var(--sp-2); text-decoration: none; }
.cal-filter .cal-dot { width: 7px; height: 7px; }
a.cal-day { min-width: 0; text-decoration: none; overflow: hidden; }
a.cal-day:hover { background: var(--surface-soft); }
a.cal-day.is-picked, a.cal-day.is-picked:hover { background: var(--graphite); color: #ffffff; }
.cal-legend { flex-wrap: wrap; row-gap: var(--sp-2); }
.cal-due { align-items: flex-start; }
.cal-due .tick { margin-top: 1px; }
.cal-due .cal-item-body { flex: 1 1 auto; }
.cal-due .due-title { font-size: var(--fs-m); font-weight: 600; color: var(--ink); }
.cal-due .due-state { margin-left: 0; }
.cal-add-head { margin: 0; font-size: var(--fs-s); font-weight: 600; }
.cal-own-form { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--line-soft); }
.cal-own-form input[type="text"], .cal-own-form input[type="date"] { 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-own-form .cal-error { margin: 0; }
.cal-add-do { align-self: flex-start; }
@media (max-width: 899px) {
  .cal-page .cal-body { flex-direction: column; align-items: stretch; }
  .cal-page .cal-main { padding: 0; }
  .cal-page .cal-side { width: auto; margin-top: var(--sp-5); padding: var(--sp-5) 0 0; border-left: 0; border-top: 1px solid var(--line-soft); }
}
@media (max-width: 640px) {
  .cal-nav { flex-wrap: wrap; gap: var(--sp-2); }
  .cal-title { min-width: 0; font-size: var(--fs-xl); }
  .cal-grid { gap: 3px; }
  .cal-day, a.cal-day { height: 50px; padding: var(--sp-2) var(--sp-1); align-items: center; border-radius: var(--r-s); }
  .cal-label { display: none; }
  .cal-weekday { font-size: var(--fs-xs); letter-spacing: 0.02em; }
  .cal-legend { gap: var(--sp-3) var(--sp-4); }
  .cal-legend .spacer { flex: 1 1 100%; }
  .cal-scope { text-align: left; }
  .cal-due .due-state { display: none; }
  .cal-remove { width: 36px; height: 36px; }
}

.service-col-result.on-paper:has(> .result):has(> .history) { grid-template-rows: auto auto; align-content: start; }

.cal-wrap { transition: opacity 0.15s ease-out; }
.cal-wrap[aria-busy="true"] { opacity: 0.55; pointer-events: none; }

@view-transition { navigation: auto; }
.shell .rail { view-transition-name: rail; }
.rail-strip { view-transition-name: rail-strip; }
.stage-bar { view-transition-name: stage-bar; position: relative; z-index: 40; min-width: 0; }
.stage-bar .stage-asof, .stage-bar .stage-inn { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1320px) { .stage-bar .stage-tool-text { display: none; } }
::view-transition-group(*) { animation-duration: 160ms; }
::view-transition-old(root) { animation: 90ms ease-out both view-out; }
::view-transition-new(root) { animation: 160ms ease-out both view-in; }
::view-transition-old(rail), ::view-transition-new(rail), ::view-transition-old(rail-strip), ::view-transition-new(rail-strip), ::view-transition-old(stage-bar), ::view-transition-new(stage-bar) { animation-duration: 120ms; }
@keyframes view-out { to { opacity: 0; } }
@keyframes view-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none; }
}

.reg-done { display: flex; align-items: center; gap: var(--sp-3); margin: var(--sp-4) 0 0; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-m); background: var(--ok-soft); color: var(--ok); font-size: var(--fs-s); font-weight: 600; }
.reg-done svg { flex: none; }
.reg-start { display: grid; gap: var(--sp-3); margin-top: var(--sp-4); padding: var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-l); background: var(--panel); }
.reg-start.is-first { border-color: #cfdcf2; background: var(--accent-soft); }
.reg-start h2 { margin: 0; font-size: var(--fs-l); font-weight: 800; }
.reg-start h3 { margin: 0; font-size: var(--fs-m); font-weight: 800; }
.reg-start .reg-lead { margin: 0; font-size: var(--fs-s); color: var(--ink-2); }
.reg-form { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: 0; }
.reg-form input { flex: 1 1 200px; min-width: 0; height: 44px; font-size: var(--fs-l); font-weight: 600; letter-spacing: 0.06em; }
.reg-form button { height: 44px; }
.reg-inn-label { position: absolute; left: -9999px; }
.reg-preview { display: grid; gap: var(--sp-3); margin: 0; padding-top: var(--sp-3); border-top: 1px solid var(--line); }
.reg-preview .hint { margin: 0; }
.reg-lines { display: grid; gap: var(--sp-2); margin: 0; padding: 0; list-style: none; }
.reg-line { position: relative; display: flex; align-items: flex-start; gap: var(--sp-3); padding: var(--sp-3); border: 1px solid var(--line-card); border-radius: var(--r-m); background: var(--panel); }
.reg-line input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.reg-line.is-same { background: var(--surface-soft); color: var(--muted); }
.reg-line.is-differs { border-color: var(--warn-line); background: var(--warn-soft); }
.reg-tick { flex: none; display: inline-flex; width: 18px; height: 18px; align-items: center; justify-content: center; color: var(--ok); }
.reg-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; cursor: pointer; overflow-wrap: anywhere; }
.reg-line.is-same .reg-body { cursor: default; }
.reg-label { font-size: var(--fs-xs); font-weight: 600; color: var(--quiet); }
.reg-body b { font-size: var(--fs-s); font-weight: 700; color: var(--ink); }
.reg-note { font-size: var(--fs-xs); color: var(--muted); }
.reg-line.is-differs .reg-note { color: var(--warn); }
.reg-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.reg-same-all { margin: 0; font-size: var(--fs-s); color: var(--ink-2); }
.card-src { display: inline-flex; align-items: center; height: 20px; margin-left: var(--sp-2); 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: 700; vertical-align: 1px; }
.card-group-count { font-size: var(--fs-xs); font-weight: 600; color: var(--quiet); }
.key-answers { display: grid; gap: var(--sp-3); margin-top: var(--sp-4); }
.key-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-1) var(--sp-3); }
.key-head h2 { margin: 0; font-size: var(--fs-l); font-weight: 800; }
.key-head span { font-size: var(--fs-xs); color: var(--muted); }
.key-ask { display: grid; gap: var(--sp-2); padding: var(--sp-4); border: 1px solid var(--line-card); border-radius: var(--r-l); background: var(--panel); }
.key-ask form { display: flex; flex-direction: column; gap: var(--sp-2); margin: 0; }
.key-name { font-size: var(--fs-m); font-weight: 700; color: var(--ink); }
.key-seg { display: inline-flex; flex-wrap: wrap; align-self: flex-start; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--soft); }
.key-seg button { height: 34px; padding: 0 var(--sp-4); border: 0; border-radius: var(--r-s); background: transparent; color: var(--ink-2); font-size: var(--fs-s); font-weight: 600; cursor: pointer; }
.key-seg button:hover { background: var(--panel); color: var(--ink); filter: none; }
.key-seg button[aria-pressed="true"] { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(25, 26, 36, 0.1); }
.key-count { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.key-count input { width: 180px; max-width: 100%; }
.key-why { font-size: var(--fs-xs); line-height: 1.5; color: var(--muted); }
@media (max-width: 640px) {
  .key-seg button { height: 40px; }
  .reg-form input, .reg-form button { height: 44px; }
}
.pm-id2 { display: none; }
.pm-id2 .stage-id2 { margin: 0; min-width: 0; }
.pm-id2 .stage-id2, .pm-id2 .stage-id2 > div, .pm-id2 .stage-id2 [class*="authButtonStyles__login"], .pm-id2 .stage-id2 [class*="authButtonStyles__user"] { width: 100%; min-width: 0; }
.pm-id2 .stage-id2 button { width: 100% !important; max-width: 100% !important; min-width: 0 !important; justify-content: flex-start !important; }
.pm-id2 .stage-id2 button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.service-hero-top .service-tools { align-items: center; }
.stage-firm-glass > summary.stage-company { height: 34px; max-width: 440px; padding: 0 var(--sp-3); border: 0; border-radius: var(--radius-small); background: rgba(255, 255, 255, 0.16); color: inherit; gap: var(--sp-2); }
.stage-firm-glass > summary.stage-company:hover, .stage-firm-glass > summary.stage-company:focus-visible, .stage-firm-glass[open] > summary.stage-company { background: rgba(255, 255, 255, 0.28); color: inherit; }
.stage-firm-glass > summary.stage-company svg { color: inherit; opacity: 0.85; }
.stage-firm-glass .stage-company-name { flex: 0 1 auto; min-width: 0; font-size: var(--fs-s); font-weight: 600; }
.stage-firm-glass .stage-company-asof { font-family: var(--font); font-size: var(--fs-xs); color: currentColor; opacity: 0.75; white-space: nowrap; }
.stage-firm-glass .firm-pop { left: auto; right: 0; color: var(--ink); }
@media (max-width: 900px) { .stage-firm-glass .stage-company-asof { display: none; } }
@media (max-width: 640px) {
  .service-hero-top .service-tools { flex: 1 1 auto; min-width: 0; justify-content: flex-end; }
  .stage-firm-glass { flex: 0 1 auto; min-width: 0; }
  .stage-firm-glass > summary.stage-company { max-width: 100%; }
  .stage-firm-glass .firm-pop { right: auto; left: 0; }
}

.tool-card[class*="tone-"] { --tool-on: #ffffff; --tool-on-soft: rgba(255, 255, 255, 0.78); --tool-glass: rgba(255, 255, 255, 0.18); --tool-glass-hover: rgba(255, 255, 255, 0.28); display: block; padding: 0; overflow: hidden; border-radius: 20px; background: var(--panel); border: 1px solid var(--line-soft); box-shadow: 0 1px 2px rgba(25, 26, 36, 0.04), 0 18px 40px -28px color-mix(in srgb, var(--tone-ink, #191a24) 55%, transparent); }
.tool-card.tone-9 { --tool-on: #241c0d; --tool-on-soft: rgba(36, 28, 13, 0.72); --tool-glass: rgba(36, 28, 13, 0.08); --tool-glass-hover: rgba(36, 28, 13, 0.14); }
.tool-card .tool-hero { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); background: var(--card-bg, var(--brand-soft)); color: var(--tool-on); }
.tool-card .tool-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, 0.22), transparent 55%); pointer-events: none; }
.tool-card .tool-mark { position: absolute; z-index: -1; right: 18px; bottom: -34px; width: 132px; height: 132px; opacity: 0.12; transform: rotate(10deg); pointer-events: none; }
.tool-card .tool-mark svg { width: 100%; height: 100%; stroke-width: 1.2; }
.tool-card .tool-head { display: flex; align-items: center; gap: var(--sp-3); }
.tool-card .tool-icon { display: grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--tool-glass); color: var(--tool-on); backdrop-filter: blur(6px); }
.tool-card .tool-titles { display: grid; flex: 1 1 auto; min-width: 0; gap: 1px; }
.tool-card .tool-group { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--tool-on-soft); }
.tool-card .tool-name, .tool-card a.tool-name:hover { font-size: var(--fs-m); font-weight: 700; line-height: 1.3; color: var(--tool-on); text-decoration: none; overflow-wrap: anywhere; }
.tool-card .tool-args { flex: none; padding: 3px 10px; border-radius: 999px; background: var(--tool-glass); font-family: var(--font); font-size: var(--fs-xs); font-weight: 600; color: var(--tool-on); white-space: nowrap; }
.tool-card .tool-open { display: inline-flex; flex: none; align-items: center; gap: 4px; margin-left: 0; padding: 7px 12px 7px 14px; border-radius: 999px; background: var(--tool-glass); font-size: var(--fs-s); font-weight: 600; color: var(--tool-on); text-decoration: none; white-space: nowrap; transition: background 0.15s ease, transform 0.15s ease; }
.tool-card .tool-open:hover, .tool-card .tool-open:focus-visible { background: var(--tool-glass-hover); text-decoration: none; transform: translateX(2px); }
.tool-card .tool-main { display: grid; gap: 2px; padding: 0; border: 0; border-radius: 0; background: none; }
.tool-card .tool-main span { font-size: var(--fs-s); font-weight: 600; color: var(--tool-on-soft); }
.tool-card .tool-main b { font-family: var(--font-mono); font-size: var(--fs-3xl); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; color: var(--tool-on); }
.tool-card .tool-body { display: grid; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5) var(--sp-5); }
.tool-card .tool-body:empty { display: none; }
.tool-card .tool-body .tool-row dt { color: var(--ink-2); }
.tool-card .tool-body .tool-row dd { color: var(--ink); }
.tool-card .tool-body .ref { background: var(--tone-soft, var(--accent-soft)); color: var(--tone-ink, var(--accent-dark)); }
.tool-card .tool-total-minor { padding-top: var(--sp-2); border-top: 1px solid var(--line-soft); }
.tool-card .tool-run { background: var(--card-bg, var(--accent)); color: var(--tool-on); border: 0; box-shadow: 0 8px 20px -12px color-mix(in srgb, var(--tone-ink, #191a24) 60%, transparent); }
.tool-card .tool-run:hover, .tool-card .tool-run:focus-visible { filter: brightness(1.06); }
.tool-card-compact .tool-hero { padding: var(--sp-3) var(--sp-4); }
.tool-card-compact .tool-mark { width: 84px; height: 84px; bottom: -26px; }
.tool-card-compact > :not(.tool-hero) { margin: var(--sp-3) var(--sp-4); }
@media (max-width: 560px) {
  .tool-card .tool-hero { padding: var(--sp-4); }
  .tool-card .tool-head { flex-wrap: wrap; }
  .tool-card .tool-titles { flex-basis: calc(100% - 48px); }
  .tool-card .tool-args { order: 3; }
  .tool-card .tool-open { order: 4; margin-left: auto; }
  .tool-card .tool-main b { font-size: var(--fs-2xl); }
  .tool-card .tool-body { padding: var(--sp-4); }
}
.tool-card .tool-hero { gap: var(--sp-4); padding: 18px 20px 20px; }
.tool-card-compact .tool-hero { padding: 12px 16px; }
.tool-card .tool-main b { font-family: var(--font); font-size: 34px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tool-card .tool-body { gap: 14px; padding: 16px 20px 20px; }
.tool-card .tool-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.tool-card .tool-tile { display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px; background: var(--tone-soft, var(--surface-soft)); }
.tool-card .tool-tile span { font-size: 12.5px; font-weight: 500; line-height: 1.3; color: var(--muted); }
.tool-card .tool-tile b { font-size: 17px; font-weight: 650; line-height: 1.25; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; color: var(--ink); overflow-wrap: anywhere; }
.tool-card .tool-more > summary { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; margin-left: -12px; border-radius: 999px; list-style: none; font-size: var(--fs-s); font-weight: 600; color: var(--tone-ink, var(--accent-dark)); cursor: pointer; user-select: none; transition: background 0.15s ease; }
.tool-card .tool-more > summary::-webkit-details-marker { display: none; }
.tool-card .tool-more > summary:hover, .tool-card .tool-more > summary:focus-visible { background: var(--tone-soft, var(--accent-soft)); }
.tool-card .tool-more > summary svg { transition: transform 0.2s ease; }
.tool-card .tool-more[open] > summary svg { transform: rotate(180deg); }
.tool-card .tool-more [data-open], .tool-card .tool-more[open] [data-closed] { display: none; }
.tool-card .tool-more[open] [data-open] { display: inline; }
.tool-card .tool-more-body { display: grid; gap: 14px; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.tool-card .tool-list { display: grid; margin: 0; }
.tool-card .tool-list > div { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.tool-card .tool-list > div:last-child { border-bottom: 0; }
.tool-card .tool-list dt { margin: 0; font-size: var(--fs-s); color: var(--ink-2); }
.tool-card .tool-list dd { margin: 0; font-size: var(--fs-s); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.tool-card .tool-more .tool-rows { gap: 10px; }
.tool-card .tool-more .tool-row dt, .tool-card .tool-more .tool-row dd { font-size: 13px; }
.tool-card .tool-company { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.tool-card .tool-form { display: grid; gap: 12px; }
.tool-card .tool-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; overflow: hidden; border-radius: 16px; background: var(--surface-soft); }
.tool-card .tool-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--sp-3); min-height: 56px; padding: 10px 16px; transition: background 0.15s ease; }
.tool-card .tool-field + .tool-field { border-top: 1px solid var(--line-soft); }
.tool-card .tool-field:focus-within { background: var(--tone-soft, var(--accent-soft)); }
.tool-card .tool-field label { display: grid; gap: 2px; margin: 0; cursor: text; }
.tool-card .tool-field label span { font-size: 15px; font-weight: 600; color: var(--ink); }
.tool-card .tool-field label span::first-letter { text-transform: uppercase; }
.tool-card .tool-field label small { font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.tool-card .tool-input { display: inline-flex; align-items: baseline; gap: 6px; }
.tool-card .tool-field input, .tool-card .tool-field select, .tool-card .tool-field textarea { min-height: 0; width: auto; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; font: inherit; font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; color: var(--ink); caret-color: var(--tone-ink, var(--accent)); outline: none; }
.tool-card .tool-field .tool-input input { width: 9ch; }
.tool-card .tool-field input::placeholder { color: color-mix(in srgb, var(--muted) 55%, transparent); }
.tool-card .tool-field select { font-size: 15px; font-weight: 600; color: var(--tone-ink, var(--accent-dark)); cursor: pointer; }
.tool-card .tool-input em { font-style: normal; font-size: 15px; font-weight: 500; color: var(--muted); }
.tool-card .tool-field-wide { grid-template-columns: minmax(0, 1fr); }
.tool-card .tool-field-wide textarea { width: 100%; font-size: 15px; font-weight: 500; text-align: left; }
.tool-card .tool-run { width: 100%; min-height: 48px; border-radius: 14px; font-size: 16px; font-weight: 650; letter-spacing: -0.01em; transition: transform 0.15s ease, filter 0.15s ease; }
.tool-card .tool-run:active { transform: scale(0.985); }
@media (max-width: 560px) {
  .tool-card .tool-main b { font-size: 28px; }
  .tool-card .tool-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-card .tool-field .tool-input input { width: 7ch; }
}
.tool-card .tool-more .tool-row dd { font-family: var(--font); font-weight: 600; font-variant-numeric: tabular-nums; }
.tool-card .tool-more .tool-row::after { border-bottom-style: solid; border-bottom-color: var(--line-soft); }
.tool-card .tool-tile { grid-template-rows: auto 1fr; gap: 6px; } .tool-card .tool-tile b { align-self: end; }
.tool-card .tool-field .tool-input input { width: 13ch; min-width: 3ch; max-width: 18ch; field-sizing: content; }
.tool-card .tool-fields { overflow: visible; }
.tool-card .tool-field { position: relative; }
.tool-card .tool-field:first-child { border-radius: 16px 16px 0 0; }
.tool-card .tool-field:last-child { border-radius: 0 0 16px 16px; }
.tool-card .tool-field:only-child { border-radius: 16px; }
.tool-card .tool-tip { position: absolute; z-index: 5; top: calc(100% - 6px); left: 12px; max-width: min(340px, calc(100% - 24px)); padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(14px) saturate(1.8); box-shadow: 0 1px 1px rgba(25, 26, 36, 0.04), 0 14px 32px -14px rgba(25, 26, 36, 0.35); font-size: 13px; line-height: 1.45; color: var(--ink-2); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s; pointer-events: none; }
.tool-card .tool-field:hover .tool-tip, .tool-card .tool-field:focus-within .tool-tip { opacity: 1; visibility: visible; transform: none; transition: opacity 0.2s ease 1s, transform 0.2s ease 1s, visibility 0s linear 1s; }
.tool-card .tool-field:focus-within .tool-tip { transition-delay: 0.3s; }
.tool-card[class*="tone-"] { overflow: visible; }
.tool-card .tool-hero { border-radius: 19px 19px 0 0; }
.tool-card .tool-hero:last-child { border-radius: 19px; }
.tool-card-compact .tool-hero { border-radius: 19px; }
.tool-card .tool-field select { width: auto; max-width: min(280px, 55vw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-card .tool-about { max-width: 60ch; margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--tool-on-soft); }
.tool-card .tool-about::first-letter { text-transform: uppercase; }
.tool-card .tool-file { display: inline-flex; align-items: center; gap: 6px; width: max-content; max-width: 100%; padding: 4px 10px; border-radius: 999px; background: var(--tool-glass); font-size: 13px; font-weight: 600; color: var(--tool-on); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-card .tool-headline { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.3; letter-spacing: -0.015em; color: var(--tool-on); }
.tool-card .tool-tile-error { background: color-mix(in srgb, var(--error, #d9463c) 12%, transparent); }
.tool-card .tool-tile-error b { color: var(--error, #c0362c); }
.tool-card .tool-tile-risk { background: color-mix(in srgb, #f5b23c 18%, transparent); }
.tool-card .tool-tile-risk b { color: #8a5a00; }
.tool-card .tool-findings { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.tool-card .tool-finding { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.tool-card .tool-finding:last-child { border-bottom: 0; }
.tool-card .tool-dot { width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--muted); }
.tool-card .tool-finding.is-error .tool-dot { background: var(--error, #d9463c); }
.tool-card .tool-finding.is-risk .tool-dot { background: #f5b23c; }
.tool-card .tool-finding b { display: block; font-size: 15px; font-weight: 650; line-height: 1.35; color: var(--ink); }
.tool-card .tool-finding b em { font-style: normal; font-weight: 600; color: var(--muted); }
.tool-card .tool-finding p { margin: 3px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.tool-card .tool-finding .ref { display: inline-flex; margin: 6px 0 0; background: var(--tone-soft, var(--accent-soft)); color: var(--tone-ink, var(--accent-dark)); }
.tool-card .tool-finding b::first-letter, .tool-card .tool-finding p::first-letter { text-transform: uppercase; }

.catalog-find input { padding-right: 68px; }
.catalog-find-keys { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); min-height: 0; padding: 0; border: 0; background: none; cursor: pointer; filter: none; }
.catalog-find-keys kbd { display: block; padding: 3px 7px; border: 1px solid var(--line-field); border-radius: 7px; background: rgba(255, 255, 255, 0.7); color: var(--muted); font: 600 11.5px/1.3 inherit; transition: color var(--ease), border-color var(--ease), background-color var(--ease); }
.catalog-find-keys:hover, .catalog-find-keys:focus-visible { background: none; filter: none; }
.catalog-find-keys:hover kbd, .catalog-find-keys:focus-visible kbd { color: var(--ink); border-color: var(--accent); background: var(--panel); }
@media (hover: none), (max-width: 899px) { .catalog-find-keys { display: none; } .catalog-find input { padding-right: 12px; } }
.rail .segment a.segment-on { color: var(--ink); }
.rail .segment:has(> a.segment-item) { container-type: inline-size; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.rail .segment a.segment-item { position: relative; justify-content: center; gap: 5px; height: 38px; min-height: 38px; padding: 0 6px; font-size: 13px; font-weight: 600; transition: color var(--ease), background-color var(--ease); }
.rail .segment a.segment-item + a.segment-item::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 1px; height: auto; border-radius: 0; background: var(--line-field); }
.rail .segment a.segment-locked { font-weight: 500; }
.seg-out { flex: 0 1 auto; min-width: 0; overflow: visible; color: var(--quiet); transition: color var(--ease), transform var(--ease); }
.rail .segment a.segment-item:hover .seg-out, .rail .segment a.segment-item:focus-visible .seg-out { color: var(--ink-2); transform: translate(1px, -1px); }
@container (max-width: 207px) {
  .seg-out { display: none; }
  .rail .segment a.segment-item { gap: 4px; padding: 0 5px; font-size: 12.5px; }
}
.rail .segment .seg-logo, .strip-product .seg-logo { transition: filter var(--ease), opacity var(--ease); }
.rail .segment .segment-locked, .strip-product.is-locked { cursor: pointer; }
.strip-product.is-locked:hover .seg-logo, .strip-product.is-locked:focus-visible .seg-logo { filter: none; opacity: 1; }

.profile-link { min-width: 0; }
.rail-profile .profile-menu { min-width: 0; }
.profile-who { flex: 1 1 auto; }
.profile-name { max-width: 100%; }

@media (min-width: 900px) {
  .shell-main .rail-grip { transition: left 0.32s cubic-bezier(0.32, 0.72, 0, 1); }
  .shell-main.shell-sizing:not(.rail-moving) .rail-grip { transition: none; }
  .shell-main.rail-moving { overflow-x: clip; }
  .shell-main.rail-moving > .rail, .shell-main.rail-moving > .rail-strip { grid-column: 1; grid-row: 1; }
  .shell-main.rail-moving > :is(.stage, .page-column) { position: relative; z-index: 20; grid-column: 2; grid-row: 1; will-change: transform; }
  .shell-main.rail-moving > .rail { display: flex; width: var(--rail-w); pointer-events: none; animation: rail-in 0.26s ease-out both; }
  .shell-main.rail-moving > .rail-strip { display: flex; pointer-events: none; animation: rail-out 0.14s ease-out both; }
  .shell-main.rail-moving.shell-folded > .rail { animation: rail-out 0.18s ease-out both; }
  .shell-main.rail-moving.shell-folded > .rail-strip { animation: rail-in 0.26s ease-out 0.06s both; }
}
@keyframes rail-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rail-out { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .shell-main .rail-grip { transition: none; }
}

.profile-window, .limits-window, .company-window { position: fixed; width: min(580px, calc(100% - 32px)); height: min(520px, calc(100dvh - 48px)); max-height: calc(100dvh - 48px); margin: auto; }
.limits-window[open], .company-window[open] { display: flex; flex-direction: column; }
.limits-window .panel-body { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }
.limits-window .lm { flex: 1 1 auto; min-height: 0; }
.limits-window .lm-spent { flex: 1 1 auto; min-height: 0; }
.limits-window .lm-spent-list { flex: 1 1 auto; min-height: 0; max-height: none; }
.company-window .tab-panel:not([hidden]) { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; padding-right: 0; }
.company-window .company-options { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; max-height: none; margin: 0; }
.company-window .company-options li { align-items: center; padding: 2px 0; border-top: 1px solid var(--line-soft); }
.company-window .company-options li:first-child { border-top: 0; }
.company-window .company-option { min-height: 58px; padding: var(--sp-2); border: 0; border-radius: var(--r-m); background: none; }
.company-window .company-option:hover { background: var(--soft); }
.company-window .company-option-current, .company-window .company-option-current:hover { background: none; }
.company-window .company-option-name { font-size: var(--fs-m); line-height: 1.25; }
.company-window .company-option-mine { padding: 3px 10px; border: 0; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-dark); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0; text-transform: none; }
.company-window .company-edit-button { width: 36px; height: 36px; min-height: 0; border: 0; background: none; color: var(--muted); }
.company-window .company-edit-button:hover, .company-window .company-edit-button:focus-visible { border: 0; background: var(--soft); color: var(--ink); }
.company-window #cw-mine > .hint:last-child { margin: var(--sp-3) 0 0; }
.company-window .company-form { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }
.company-window .company-form .dialog-foot { margin-top: auto; }
.company-window .company-form .field { margin-bottom: var(--sp-4); }
.company-window .company-form .field label { margin-bottom: 6px; }
.company-window .inn-found { margin: var(--sp-2) 0 0; padding: var(--sp-3); border-radius: var(--r-m); background: var(--soft); font-size: var(--fs-s); line-height: 1.45; }
.company-window #cw-edit:not([hidden]) { position: relative; display: block; overflow-x: hidden; overflow-y: auto; }
.company-window .company-edit-back { margin: 0 0 var(--sp-2); }
.company-window .company-edit-back .company-back { min-height: 32px; padding: 0; border: 0; background: none; color: var(--muted); font-size: var(--fs-s); font-weight: 500; }
.company-window .company-edit-back .company-back::before { content: "‹ "; }
.company-window .company-edit-back .company-back:hover { color: var(--ink); }
.company-window #cw-edit .company-card { position: static; }
.company-window #cw-edit .company-head { position: absolute; top: 0; right: 0; margin: 0; }
.company-window #cw-edit .company-mark, .company-window #cw-edit .company-name { display: none; }
.company-window #cw-edit .company-pick button { min-height: 32px; padding: 0 var(--sp-3); border: 0; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-dark); font-size: var(--fs-xs); font-weight: 600; }
.company-window #cw-edit .company-fill { margin: 0; font-size: var(--fs-xs); color: var(--quiet); }
.company-window #cw-edit .reg-start:not(.is-first) { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2) var(--sp-3); margin: var(--sp-3) 0 0; padding: 0; border: 0; background: none; box-shadow: none; }
.company-window #cw-edit .reg-start:not(.is-first) h2 { margin: 0; font-size: var(--fs-s); font-weight: 600; }
.company-window #cw-edit .reg-start:not(.is-first) .reg-lead, .company-window #cw-edit .reg-start:not(.is-first) .reg-inn-label, .company-window #cw-edit .reg-start:not(.is-first) .reg-form input { display: none; }
.company-window #cw-edit .reg-start:not(.is-first) .reg-form { display: block; margin: 0; }
.company-window #cw-edit .reg-start:not(.is-first) .reg-form button { min-height: 32px; padding: 0 var(--sp-3); border: 1px solid var(--line-field); border-radius: var(--r-pill); background: none; color: var(--ink); font-size: var(--fs-xs); font-weight: 600; }
.company-window #cw-edit .reg-start .reg-preview { flex: 1 1 100%; }
.company-window .card-tabs { margin: var(--sp-3) 0 0; overflow-x: auto; scrollbar-width: none; }
.company-window .card-tabs .tab { flex: none; padding-right: var(--sp-2); padding-left: var(--sp-2); }
.card-tab-count { margin-left: 4px; font-size: var(--fs-xs); font-weight: 500; color: var(--quiet); }
.company-window #cw-edit .card-group { position: relative; margin: 0; border: 0; border-radius: 0; overflow: visible; }
.company-window #cw-edit .card-group:not([hidden]) { animation: tab-in 0.22s ease both; }
.company-window #cw-edit .card-group-head { justify-content: flex-end; padding: var(--sp-2) 0 0; border: 0; background: none; }
.company-window #cw-edit .card-group-head h3, .company-window #cw-edit .card-group-count { display: none; }
.company-window #cw-edit .card-group-edit { min-height: 30px; }
.company-window #cw-edit .card-values { padding: var(--sp-2) 0 0; }
.company-window #cw-edit .card-group-form { padding: var(--sp-3) 0 0; }
.company-delete { margin-top: var(--sp-3); }
.company-delete > summary { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 34px; padding: 0 var(--sp-2); border-radius: var(--r-s); color: var(--error); font-size: var(--fs-s); font-weight: 600; cursor: pointer; list-style: none; transition: background 0.2s ease; }
.company-delete > summary::-webkit-details-marker { display: none; }
.company-delete > summary:hover { background: var(--error-soft); }
.company-delete-ask { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-2); padding: var(--sp-3); border-radius: var(--r-m); background: var(--error-soft); animation: tab-in 0.22s ease both; }
.company-delete-ask .hint { margin: 0; color: var(--ink-2); }
.company-delete-do { flex: none; min-height: 34px; padding: 0 var(--sp-3); border: 0; border-radius: var(--r-s); background: var(--error); color: #ffffff; font-size: var(--fs-s); font-weight: 600; }
.profile-window, .limits-window, .company-window { width: min(640px, calc(100% - 32px)); height: min(640px, calc(100dvh - 48px)); font-size: 15px; }
.profile-window .dialog-title, .limits-window .dialog-title, .company-window .dialog-title { font-size: 24px; }
.pf .pf-label, .pf .pf-set-name { font-size: 15px; }
.pf .pf-input { height: 48px; font-size: 16px; }
.pf .pf-set { min-height: 64px; }
.pf .pf-chip, .pf .pf-chip span { font-size: 15px; }
.pf .pf-note, .pf .dialog-foot .hint { font-size: 14px; }
.pf .pf-set .pf-input { width: 220px; }
.limits-window .lm-name, .limits-window .lm-label, .limits-window .lm-spent-what { font-size: 15px; }
.limits-window .lm-value { font-size: 40px; }
.limits-window .lm-of { font-size: 15px; }
.limits-window .lm-dates, .limits-window .lm-spent-when, .limits-window .lm-spent-cost { font-size: 14px; }
.limits-window .lm-spent-line { padding: 10px 0; }
.company-window .tab { font-size: 15px; }
.company-window .company-option { min-height: 66px; }
.company-window .company-option-name { font-size: 17px; }
.company-window .company-option-life, .company-window .company-option-mine, .company-window #cw-mine > .hint:last-child { font-size: 14px; }
.company-window .company-form .field label { font-size: 15px; }
.company-window .company-form .field input { height: 48px; font-size: 16px; }
.company-window .inn-found { font-size: 15px; }
.company-window .dialog-foot .hint { font-size: 14px; }
.company-window #cw-edit:not([hidden]) { margin-right: -14px; padding-right: 14px; }
.company-window .company-edit-back .company-back { font-size: 15px; }
.company-window #cw-edit .company-pick button, .company-window #cw-edit .company-live { min-height: 36px; font-size: 14px; }
.company-window #cw-edit .company-head { right: 14px; }
.company-window #cw-edit .company-fill { font-size: 14px; }
.company-window #cw-edit .reg-start:not(.is-first) h2 { font-size: 16px; }
.company-window #cw-edit .reg-start:not(.is-first) .reg-form button { min-height: 36px; font-size: 14px; }
.company-window #cw-edit .prefill-text, .company-window #cw-edit .prefill .prefill-forget { font-size: 14px; }
.card-tab-count { font-size: 13px; }
.company-window #cw-edit .card-value dt { font-size: 14px; }
.company-window #cw-edit .card-value dd { font-size: 16px; }
.company-window #cw-edit .card-group-edit { min-height: 36px; font-size: 14px; }
.company-window #cw-edit .card-group-form label { font-size: 14px; }
.company-window #cw-edit .card-group-form input, .company-window #cw-edit .card-group-form select { font-size: 15px; }
.company-delete > summary { font-size: 15px; }
.company-delete-ask .hint { font-size: 14px; }
.company-delete-do { font-size: 15px; }
.profile-window[open] { display: flex; flex-direction: column; }
.profile-window .panel-body { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }
.profile-window .pf { flex: 1 1 auto; }
.profile-window .pf .dialog-foot { margin-top: auto; }
@media (max-width: 640px) { .pf .pf-set .pf-input { width: 150px; } }
.install-guide { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.install-step { display: grid; gap: 10px; padding: 12px; border-radius: var(--r-l, 16px); background: var(--surface-soft); counter-increment: step; }
.install-step p { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: start; margin: 0; font-size: 18px; font-weight: 600; line-height: 1.3; }
.install-step p::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--graphite); color: var(--graphite-ink); font-size: 15px; font-weight: 700; }
.install-only-new { display: none; }
.install-window.is-new .install-only-new { display: grid; }
.install-window.is-new .install-only-old { display: none; }
.install-mock { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 7px 10px; border-radius: 14px; background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(25, 26, 36, 0.08); }
.install-mock-list { flex-direction: column; align-items: stretch; gap: 2px; padding: 5px; }
.install-mock-bar { justify-content: space-between; }
.im-icon { position: relative; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; }
.im-url { flex: 1 1 auto; min-width: 0; padding: 8px 12px; border-radius: 999px; background: var(--surface-soft); color: var(--muted); font-size: 15px; text-align: center; }
.im-row { position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 10px; font-size: 16px; font-weight: 500; }
.install-mock-top { justify-content: space-between; font-size: 16px; }
.im-cancel { padding: 8px 4px; color: var(--muted); }
.install-mock-top img { border-radius: 9px; }
.im-add { position: relative; padding: 8px 12px; border-radius: 10px; color: #0a6cff; font-weight: 700; }
.im-hit { z-index: 0; color: #0a6cff; animation: im-hit 5.6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 1.4s); }
.im-hit::after { content: ""; position: absolute; top: 50%; left: 50%; z-index: -1; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: rgba(10, 108, 255, 0.34); opacity: 0; animation: im-tap 5.6s ease-out infinite; animation-delay: calc(var(--i, 0) * 1.4s); pointer-events: none; }
@keyframes im-hit { 0%, 26%, 100% { background: transparent; } 6%, 18% { background: rgba(10, 108, 255, 0.12); } }
@keyframes im-tap { 0% { opacity: 0; transform: scale(0.45); } 6% { opacity: 1; transform: scale(1); } 12% { opacity: 1; transform: scale(0.84); } 24%, 100% { opacity: 0; transform: scale(1.3); } }
@media (prefers-reduced-motion: reduce) { .im-hit, .im-hit::after { animation: none; } .im-hit { background: rgba(10, 108, 255, 0.12); } }
.install-window { width: min(420px, calc(100% - 32px)); }
.news-window { width: min(1180px, calc(100% - 48px)); padding: 28px 30px 30px; overflow-y: auto; }
.news-window.is-leaving { animation: news-out 0.2s ease-in both; }
.news-window.is-leaving::backdrop { animation: news-veil-out 0.2s ease-in both; }
@keyframes news-out { to { opacity: 0; transform: translateY(8px) scale(0.985); } }
@keyframes news-veil-out { to { opacity: 0; } }
.news-title { margin: 0 44px 22px 0; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.news-body { display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); gap: 26px; align-items: stretch; }
.news-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.news-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 0; padding: 0; list-style: none; }
.news-item { display: grid; justify-content: stretch; justify-items: start; gap: 0; width: 100%; height: auto; min-height: 0; padding: 12px 14px; white-space: normal; border: 0; border-radius: var(--r-m); background: var(--surface-soft); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: background 0.25s ease, box-shadow 0.25s ease; }
.news-item:hover { background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(35, 74, 156, 0.18); filter: none; }
.news-item[aria-pressed="true"] { background: var(--accent-soft); }
.news-item-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; width: 100%; font-size: 17px; font-weight: 700; letter-spacing: -0.012em; line-height: 1.25; }
.news-item-arrow { flex: none; margin-top: 2px; color: var(--muted); transition: transform 0.35s var(--glide, ease), color 0.2s ease; }
.news-item:hover .news-item-arrow { color: var(--ink); }
.news-item[aria-pressed="true"] .news-item-arrow { transform: rotate(180deg); }
.news-item-text { display: grid; grid-template-rows: 0fr; width: 100%; color: var(--muted); font-size: 15px; font-weight: 400; line-height: 1.4; opacity: 0; transition: grid-template-rows 0.4s var(--glide, ease), opacity 0.3s ease; }
.news-item-more { display: block; min-height: 0; overflow: hidden; }
.news-item-more::before { content: ""; display: block; height: 4px; }
.news-item[aria-pressed="true"] .news-item-text { grid-template-rows: 1fr; opacity: 1; }
.news-done { margin-top: auto; }
.news-done:focus, .news-done:focus-visible { outline: none; box-shadow: none; }
.news-stage { position: relative; align-self: center; width: 100%; aspect-ratio: 16 / 9; min-width: 0; overflow: hidden; border: 1px solid var(--line-card); border-radius: var(--r-l); background: var(--surface-soft); }
.news-clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.35s ease; }
.news-clip.is-on { opacity: 1; }
.news-clip-phone { object-fit: contain; -webkit-mask-image: linear-gradient(90deg, transparent 22%, #000 34%, #000 66%, transparent 78%); mask-image: linear-gradient(90deg, transparent 22%, #000 34%, #000 66%, transparent 78%); }
.news-tag { display: inline-block; min-height: 0; margin-left: 10px; padding: 0; border: 0; background: none; color: var(--muted); font-family: var(--font-mono); font-size: 16px; font-weight: 600; letter-spacing: 0; vertical-align: super; opacity: 0; pointer-events: none; cursor: pointer; transition: opacity 0.4s ease, color 0.2s ease; }
.catalog-hello.is-brand .news-tag { opacity: 1; pointer-events: auto; }
.news-tag:hover, .news-tag:focus-visible { background: none; color: var(--accent); filter: none; }
@media (max-width: 900px) {
  .news-window { width: calc(100% - 24px); padding: 20px 18px; }
  .news-title { margin-bottom: 14px; font-size: 22px; }
  .news-body { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .news-stage { order: -1; }
  .news-item-title { font-size: 16px; }
  .news-item-text { font-size: 14px; }
}
.news-set-narrow { display: none; }
@media (max-width: 899px) {
  .news-set-wide { display: none; }
  .news-set-narrow { display: grid; }
  .news-set-narrow .news-stage { width: min(100%, 420px); justify-self: center; aspect-ratio: 1 / 1; }
}
.service-bubble.is-about { width: 440px; padding: 16px 18px; }
.service-bubble.is-sticky { animation: bubble-in 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.service-bubble.is-leaving { animation: bubble-out 0.18s ease-in both; }
@keyframes bubble-in { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }
@keyframes bubble-out { to { opacity: 0; transform: translateY(-4px) scale(0.98); } }
.bubble-close { display: none; position: absolute; top: 8px; right: 8px; z-index: 1; width: 28px; height: 28px; min-height: 0; padding: 0; place-items: center; border: 0; border-radius: 50%; background: rgba(120, 120, 128, 0.12); color: var(--ink-2); box-shadow: none; cursor: pointer; transition: background 0.2s ease; }
.bubble-close:hover, .bubble-close:focus-visible { background: rgba(120, 120, 128, 0.22); filter: none; }
.service-bubble.is-sticky .bubble-close { display: grid; }
.service-bubble.is-about.is-sticky { padding-right: 44px; }
.service-bubble.is-offer { width: 300px; padding: 14px 16px; }
.service-bubble.is-offer p { margin: 0; font-size: 15px; line-height: 1.4; }
.offer-actions { display: flex; gap: 8px; margin-top: 12px; }
.offer-actions button { min-height: 38px; padding: 0 16px; border: 0; border-radius: 999px; font-size: 14px; font-weight: 600; box-shadow: none; cursor: pointer; transition: background 0.2s ease, filter 0.2s ease; }
.offer-yes { background: var(--graphite); color: #fff; }
.offer-no { background: rgba(120, 120, 128, 0.12); color: var(--ink); }
.offer-yes:hover, .offer-yes:focus-visible { filter: brightness(1.15); }
.offer-no:hover, .offer-no:focus-visible { background: rgba(120, 120, 128, 0.22); filter: none; }
@media (prefers-reduced-motion: reduce) { .service-bubble.is-sticky, .service-bubble.is-leaving { animation: none; } }
.svc-about-body { display: grid; gap: 12px; margin: 0; }
.svc-about-body dt { margin: 0 0 2px; color: var(--muted); font-size: 13px; font-weight: 600; }
.svc-about-body dd { margin: 0; color: var(--ink); font-size: 15px; line-height: 1.45; }

.pf-head { display: flex; align-items: center; gap: 16px; }
.pf .pf-face { position: relative; flex: none; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.pf .pf-face:hover, .pf .pf-face:focus-visible { background: none; filter: none; }
.pf .pf-face .avatar { width: 84px; height: 84px; }
.pf-edit { position: absolute; right: -2px; bottom: -2px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #ffffff; color: var(--ink); box-shadow: 0 2px 8px rgba(16, 24, 40, 0.18); transition: transform 160ms ease; }
.pf-face:hover .pf-edit, .pf-face:focus-visible .pf-edit { transform: scale(1.1); }
.pf-who { display: grid; flex: 1 1 auto; gap: 2px; min-width: 0; }
.pf input.pf-name, .pf input.pf-post { width: 100%; height: auto; min-height: 0; min-width: 0; margin-left: -8px; padding: 4px 8px; border: 0; border-radius: 8px; background: transparent; box-shadow: none; transition: background-color 160ms ease; }
.pf input.pf-name { color: var(--ink); font-size: 24px; font-weight: 700; }
.pf input.pf-post { color: var(--ink-2); font-size: 16px; }
.pf input.pf-name:hover, .pf input.pf-post:hover, .pf input.pf-name:focus, .pf input.pf-post:focus { background: rgba(118, 118, 128, 0.1); outline: none; box-shadow: none; }
.pf-who .pf-note { padding-left: 0; }
.pf-post-wrap { position: relative; display: block; }
.pf-post-wrap > .pf-post-tip { top: calc(100% + 8px); bottom: auto; left: -8px; right: auto; width: max-content; max-width: min(320px, 100%); transform: translateY(-4px); }
.pf-post-wrap > .pf-post-tip::after { top: -7px; bottom: auto; left: 22px; transform: rotate(225deg); }
.pf-post-wrap > .pf-post-tip .hint { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink); }
.pf-post-wrap[data-post-id2]:is(:hover, :focus-within) > .pf-post-tip { opacity: 1; visibility: visible; transform: none; }
@media (max-width: 640px) {
  .pf-head { gap: 12px; }
  .pf .pf-face .avatar { width: 72px; height: 72px; }
  .pf input.pf-name { font-size: 22px; }
}
.avatar-window { gap: 16px; }
@media (min-width: 900px) { .limits-window.avatar-window { width: min(740px, calc(100% - 32px)); } }
.avatar-body { display: flex; flex: 1 1 auto; gap: 24px; min-height: 0; }
.avatar-side { display: flex; flex: none; flex-direction: column; gap: 10px; width: 208px; }
.avatar-look { position: relative; flex: none; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 50%; background: #f2f3f7; }
.avatar-look img { position: absolute; inset: 0; width: 100%; height: 100%; animation: avatar-look-in 220ms ease both; }
.avatar-dice { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin-top: 6px; padding: 0 12px; border: 0; border-radius: 12px; background: rgba(118, 118, 128, 0.1); color: var(--ink); font-size: 15px; font-weight: 600; cursor: pointer; transition: background 160ms ease; }
.avatar-dice:hover, .avatar-dice:focus-visible { background: var(--day-blue-fill); color: var(--day-blue-ink); filter: none; }
.avatar-dice:active svg { transform: rotate(90deg); }
.avatar-dice svg { transition: transform 200ms ease; }
.avatar-save { width: 100%; margin-top: auto; }
.avatar-main { display: flex; flex: 1 1 auto; flex-direction: column; gap: 12px; min-width: 0; min-height: 0; }
.avatar-groups { display: flex; flex: none; gap: 20px; overflow-x: auto; border-bottom: 1px solid rgba(60, 60, 67, 0.12); scrollbar-width: none; }
.avatar-group { flex: none; min-height: 40px; margin-bottom: -1px; padding: 0; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; color: var(--ink-2); font-size: 15px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: color 160ms ease, border-color 160ms ease; }
.avatar-group:hover, .avatar-group:focus-visible { background: none; color: var(--ink); filter: none; }
.avatar-group.is-on { border-bottom-color: var(--accent); color: var(--ink); }
.avatar-slots { flex: none; overflow: hidden; transition: height 200ms ease; }
.avatar-slots-row { display: flex; flex-wrap: wrap; gap: 6px; }
.avatar-slot { min-height: 36px; padding: 0 12px; border: 0; border-radius: 12px; background: rgba(118, 118, 128, 0.1); color: var(--ink-2); font-size: 14px; font-weight: 700; cursor: pointer; transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease; }
.avatar-slot:hover, .avatar-slot:focus-visible { background: var(--day-blue-fill); color: var(--day-blue-ink); filter: none; }
.avatar-slot.is-on { background: #fff; color: #000; box-shadow: inset 0 0 0 2px var(--day-blue), 0 3px 8px rgba(0, 0, 0, 0.08); }
.avatar-pick { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 8px; overscroll-behavior: contain; }
.avatar-pick.is-fresh { animation: avatar-pick-in 220ms ease both; }
.avatar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 14px; }
.avatar-cell { aspect-ratio: 1; width: 100%; min-height: 0; padding: 0; overflow: hidden; border: 0; border-radius: 50%; background: none; cursor: pointer; transition: transform 160ms ease, box-shadow 160ms ease; }
.avatar-cell img { display: block; width: 100%; height: 100%; object-fit: cover; }
.avatar-cell.is-none { background: #f2f3f7; }
.avatar-cell:hover, .avatar-cell:focus-visible { background: none; filter: none; transform: scale(1.06); }
.avatar-cell.is-none:hover, .avatar-cell.is-none:focus-visible { background: #f2f3f7; }
.avatar-cell.is-on { box-shadow: 0 0 0 3px #ffffff, 0 0 0 6px var(--accent); }
.avatar-colors { display: grid; gap: 18px; }
.avatar-row { display: grid; gap: 8px; }
.avatar-row-name { color: var(--muted); font-size: 13px; font-weight: 600; }
.avatar-colors .avatar-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.avatar-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.avatar-swatch { flex: none; width: 32px; height: 32px; min-height: 0; padding: 0; border: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1); cursor: pointer; transition: transform 160ms ease, box-shadow 160ms ease; }
.avatar-swatch:hover, .avatar-swatch:focus-visible { filter: none; transform: scale(1.1); }
.avatar-swatch.is-on { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1), 0 0 0 3px #ffffff, 0 0 0 5px var(--accent); }
@keyframes avatar-look-in { from { opacity: 0; } }
@keyframes avatar-pick-in { from { opacity: 0; transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) {
  .avatar-look img, .avatar-pick.is-fresh { animation-duration: 1ms; }
  .avatar-slots { transition: none; }
}
@media (max-width: 640px) {
  .avatar-body { flex-direction: column; gap: 12px; }
  .avatar-side { display: grid; grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: 1fr 1fr; gap: 10px 14px; width: 100%; }
  .avatar-look { grid-row: 1 / 3; }
  .avatar-dice, .avatar-save { align-self: stretch; min-height: 44px; margin: 0; }
  .avatar-groups { gap: 18px; margin: 0 -16px; padding: 0 16px; }
  .avatar-slots { height: auto !important; }
  .avatar-slots-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .avatar-slot { flex: none; min-height: 40px; }
  .avatar-pick { padding: 8px 6px; }
  .avatar-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.pm-head { margin: -6px -8px 0; padding: 6px 8px; border-radius: 12px; color: inherit; text-decoration: none; transition: background-color 160ms ease; }
.pm-head:hover, .pm-head:focus-visible { background: var(--surface-soft); color: inherit; filter: none; }
.sk-switch { width: 51px; height: 31px; padding: 0; border-radius: 999px; background: rgba(120, 120, 128, 0.16); transition: background-color 0.25s ease; }
.sk-knob { position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15), 0 3px 1px rgba(0, 0, 0, 0.06); pointer-events: none; transition: transform var(--mo-settle-d) var(--mo-settle), width 0.18s ease; }
.sk-switch:has(input:checked) { background: #34c759; }
.sk-switch:has(input:checked) .sk-knob { transform: translateX(20px); }
.sk-switch:active .sk-knob { width: 33px; }
.sk-switch:has(input:checked):active .sk-knob { transform: translateX(14px); }
.pf { --pf-group: #f4f4f7; gap: 14px; }
.profile-window { background: #f2f3f7; }
.profile-window .pf { --pf-group: #ffffff; }
.pf .pf-fields { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0 14px; border-radius: 14px; background: var(--pf-group); }
.pf .pf-field { flex-flow: row wrap; align-items: center; justify-content: space-between; gap: 0 12px; min-height: 46px; }
.pf .pf-field + .pf-field { border-top: 1px solid rgba(60, 60, 67, 0.1); }
.pf .pf-field .pf-label { font-weight: 500; }
.pf .pf-field .pf-input { flex: 1 1 0; width: auto; min-width: 0; height: 44px; padding: 0; border: 0; border-radius: 0; background: none; text-align: right; font-size: 15px; }
.pf .pf-field .pf-input:focus-visible { outline: none; }
.pf .pf-field .pf-note { flex: 1 1 100%; padding-bottom: 8px; }
.pf .pf-list { padding: 0 14px; border-radius: 14px; background: var(--pf-group); }
.pf .pf-set { min-height: 46px; padding-block: 7px; border-top: 1px solid rgba(60, 60, 67, 0.1); }
.pf .pf-set:first-child { border-top: 0; }
.pf .pf-set-name { font-weight: 500; }
.pf .pf-set .pf-input { width: 180px; height: 36px; border: 0; background-color: rgba(118, 118, 128, 0.12); font-size: 15px; }
.pf .dialog-foot { padding-top: 2px; }
@media (max-width: 640px) { .pf .pf-set .pf-input { width: 150px; } }
.pf-group-title { margin: 0 0 6px 14px; font-size: 13px; font-weight: 600; color: var(--muted); }
.pf-account { min-height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: rgba(118, 118, 128, 0.12); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color 160ms ease; }
.pf-account:hover, .pf-account:focus-visible { background: rgba(118, 118, 128, 0.2); color: var(--ink); filter: none; }
dialog.dialog.account-window { height: fit-content; max-height: min(640px, calc(100dvh - 48px)); }
.account-code { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.account-out { min-height: 44px; padding: 0 16px; border: 0; border-radius: 12px; background: #fdecef; color: #c2334d; font: inherit; font-weight: 600; cursor: pointer; }
.account-out:hover, .account-out:focus-visible { background: #fbdbe1; color: #c2334d; filter: none; }
@media (max-width: 640px) { dialog.dialog.account-window { top: auto; bottom: 0; margin: 0; border-radius: 22px 22px 0 0; } }
.pf-with-logo { gap: 10px; }
.account-logo { display: block; flex: none; }
.account-logo-id2 { display: inline-grid; place-items: center; border-radius: 50%; background: var(--grad-id2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.account-logo-id2 svg { width: 86%; height: 86%; transform: translate(-6%, -1%); }
.account-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding-right: 36px; }
.account-head .dialog-title { margin: 0; }
.account-text { margin: 0 0 12px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.account-note { margin: 10px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.link-steps { display: grid; gap: 0; margin: 0; padding: 14px 16px; border-radius: 16px; background: #f2f3f7; list-style: none; counter-reset: link-step; }
.link-steps > li { position: relative; display: grid; gap: 8px; padding: 0 0 18px 38px; counter-increment: link-step; }
.link-steps > li:last-child { padding-bottom: 0; }
.link-steps > li::before { content: counter(link-step); position: absolute; top: 0; left: 0; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #ffffff; font-size: 13px; font-weight: 700; }
.link-steps > li:not(:last-child)::after { content: ""; position: absolute; top: 30px; bottom: 4px; left: 12px; width: 2px; border-radius: 2px; background: rgba(35, 74, 156, 0.2); }
.link-step-title { min-height: 26px; font-size: 15px; font-weight: 600; line-height: 26px; color: var(--ink); }
.account-bot { display: inline-flex; align-self: flex-start; justify-self: start; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 12px; background: #2aabee; color: #ffffff; font-size: 15px; font-weight: 600; text-decoration: none; transition: background-color 160ms ease; }
.account-bot:hover, .account-bot:focus-visible { background: #1f97d6; color: #ffffff; filter: none; }
.account-code .pf-input { height: 44px; background: #ffffff; letter-spacing: 0.08em; text-transform: uppercase; }
.account-id2-box { justify-self: start; margin-left: 0; }
.account-id2-box:not(:empty) + .account-signin { display: none; }
.pf-account-who { display: inline-flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.pf-account-who small { font-size: 13px; font-weight: 400; color: var(--muted); }
.pf-account.is-tg { min-height: 34px; padding: 0 14px; background: #2aabee; color: #ffffff; }
.pf-account.is-tg:hover, .pf-account.is-tg:focus-visible { background: #1f97d6; color: #ffffff; }
.pf-account.is-id2 { min-height: 34px; padding: 0 14px; background: var(--grad-id2); color: #ffffff; }
.pf-account.is-id2:hover, .pf-account.is-id2:focus-visible { background: var(--grad-id2); color: #ffffff; filter: brightness(1.08); }
.pf-linked { display: inline-flex; align-items: center; gap: 5px; min-height: 0; padding: 0; border: 0; background: none; color: #1f8f4e; font: inherit; font-size: 14px; font-weight: 600; transition: opacity 160ms ease; }
button.pf-linked { cursor: pointer; }
button.pf-linked:hover, button.pf-linked:focus-visible { background: none; color: #1f8f4e; filter: none; opacity: 0.72; }
.account-signin { margin: 0; }
.account-id2 { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px 0 10px; border: 0; border-radius: 12px; background: var(--grad-id2); color: #ffffff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: filter 160ms ease; }
.account-id2:hover, .account-id2:focus-visible { background: var(--grad-id2); color: #ffffff; filter: brightness(1.08); }
.account-id2 .account-logo-id2 { background: none; box-shadow: none; }

.avatar-spot { position: relative; display: inline-flex; flex: none; }
.avatar-frame { position: absolute; top: -15%; left: -15%; width: 130%; max-width: none; height: 130%; pointer-events: none; animation: avatar-frame-in 320ms ease both; }
.avatar-frame.is-tall { top: -31%; left: -31%; width: 162%; height: 162%; }
.avatar-spot.has-new::after { content: ""; position: absolute; top: -1px; right: -1px; width: 10px; height: 10px; border-radius: 50%; background: #e5484d; box-shadow: 0 0 0 2px #ffffff; }
.profile-link:has(.avatar-frame) { gap: 16px; }
.pf-head:has(.avatar-frame) { gap: 28px; padding: 10px 0 10px 10px; }
.pf-head:has(.is-tall) { gap: 38px; padding: 26px 0 26px 26px; }
.pf-title-now { justify-self: start; margin-top: 2px; color: var(--accent); font-size: 14px; font-weight: 600; text-decoration: none; }
.pf-title-now:hover { text-decoration: underline; }
.title-toast { position: fixed; left: 50%; bottom: calc(56px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 12px; border-radius: 16px; background: #ffffff; color: var(--ink); box-shadow: 0 12px 36px rgba(16, 24, 40, 0.18), 0 0 0 1px rgba(16, 24, 40, 0.06); pointer-events: none; transform: translateX(-50%); animation: title-toast 5.5s ease both; }
.title-toast span { display: grid; gap: 1px; }
.title-toast small { color: var(--muted); font-size: 12px; }
.title-toast b { font-size: 15px; font-weight: 600; }
@keyframes avatar-frame-in { from { opacity: 0; transform: scale(0.92); } }
@keyframes title-toast { 0% { opacity: 0; transform: translate(-50%, 12px); } 6%, 90% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 8px); } }
@media (max-width: 899px) { .title-toast { bottom: calc(var(--tabs-h, 78px) + 12px); } }
@media (prefers-reduced-motion: reduce) { .avatar-frame { animation: none; } .title-toast { animation-duration: 5.5s; animation-timing-function: step-end; } }

.pf-face-wrap { position: relative; flex: none; }
.pf-face-menu { position: absolute; top: calc(100% + 10px); left: 0; z-index: 20; display: grid; gap: 2px; min-width: 200px; padding: 6px; border-radius: 14px; background: #ffffff; box-shadow: 0 12px 36px rgba(16, 24, 40, 0.16), 0 0 0 1px rgba(16, 24, 40, 0.06); animation: pf-menu-in 160ms ease both; }
.pf-face-menu[hidden] { display: none; }
.pf-face-menu button { display: flex; justify-content: flex-start; min-height: 40px; align-items: center; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: inherit; font-size: 14px; font-weight: 500; text-align: left; cursor: pointer; }
.pf-face-menu button:hover, .pf-face-menu button:focus-visible { background: rgba(118, 118, 128, 0.1); filter: none; }
.pf-title-now { justify-self: start; min-height: 0; margin: 2px 0 0; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.pf-title-now:hover, .pf-title-now:focus-visible { background: none; filter: none; text-decoration: underline; }
.pf-access-off { color: var(--muted); font-size: 14px; }
.avatar-tabs { display: flex; flex: none; gap: 4px; padding: 3px; border-radius: 12px; background: #f2f3f7; }
.avatar-tabs[hidden] { display: none; }
.avatar-tabs button { flex: 1 1 0; min-height: 36px; padding: 0 12px; border: 0; border-radius: 9px; background: none; color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease; }
.avatar-tabs button:hover, .avatar-tabs button:focus-visible { background: none; color: var(--ink); filter: none; }
.avatar-tabs button.is-on { background: #ffffff; color: var(--ink); box-shadow: 0 1px 3px rgba(16, 24, 40, 0.12); }
.avatar-stage { position: relative; width: 150px; height: 150px; margin: 32px auto 24px; }
.avatar-stage .avatar-look { width: 100%; }
.avatar-title-now { min-height: 20px; margin: 0; color: var(--accent); font-size: 15px; font-weight: 600; text-align: center; }
.avatar-frames { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 16px 12px; align-items: center; }
.avatar-frame-cell { display: grid; place-items: center; min-height: 92px; padding: 0; border: 0; border-radius: 14px; background: none; cursor: pointer; transition: background 160ms ease, box-shadow 160ms ease; }
.avatar-frame-cell:hover, .avatar-frame-cell:focus-visible { background: #f2f3f7; filter: none; }
.avatar-frame-cell.is-on, .avatar-text-cell.is-on, .avatar-title-cell.is-on { box-shadow: inset 0 0 0 2px var(--accent); }
.avatar-frame-face { display: block; width: 54px; height: 54px; border-radius: 50%; }
.avatar-text-cell { min-height: 44px; padding: 0 14px; border: 0; border-radius: 12px; background: #f2f3f7; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: box-shadow 160ms ease; }
.avatar-text-cell:hover, .avatar-text-cell:focus-visible { background: #f2f3f7; filter: none; }
.avatar-titles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.avatar-title-cell { display: grid; justify-items: start; gap: 2px; min-height: 60px; padding: 8px 14px; border: 0; border-radius: 12px; background: #f2f3f7; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: box-shadow 160ms ease; }
.avatar-title-cell:hover, .avatar-title-cell:focus-visible { background: #f2f3f7; filter: none; }
.avatar-title-cell b { font-size: 15px; font-weight: 600; }
.avatar-title-cell small { color: var(--muted); font-size: 13px; line-height: 1.3; }
@keyframes pf-menu-in { from { opacity: 0; transform: translateY(-4px); } }
@media (max-width: 640px) {
  .avatar-stage { width: 84px; height: 84px; margin: 14px auto; grid-row: 1 / 3; }
  .avatar-title-now { display: none; }
}
.pf-places { margin-top: 18px; }
.places-item { animation: login-qr-in 0.3s ease-out both; }
.places-what { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.places-what span { font-size: var(--fs-s); font-weight: 500; color: var(--ink-2); }
.places-item form { margin: 0; }
.places-all { margin: 0; }
.places-end-all { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: #a1371c; cursor: pointer; }
.places-end-all:hover { background: none; text-decoration: underline; text-underline-offset: 3px; }
.phone-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; background: linear-gradient(135deg, #eef1ff, #f6f2ff); }
.phone-hero-icon { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(25, 26, 36, 0.08); }
.phone-hero-text { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.phone-hero-text b { font-size: 16px; }
.phone-hero-text span { font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
.phone-show.gate-button { width: auto; padding: 0 18px; }
.phone-panel { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; padding: 14px 4px; animation: login-qr-in 0.3s ease-out both; }
.phone-panel[hidden], .phone-ask[hidden], .phone-code[hidden], .phone-left[hidden] { display: none; }
.phone-code { flex: none; width: 168px; height: 168px; padding: 10px; box-sizing: border-box; border: 1px solid var(--line-soft); border-radius: 14px; background: #fff; }
.phone-code svg { display: block; width: 100%; height: 100%; }
.phone-side { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.phone-warn { margin: 0; padding: 10px 12px; border-radius: 12px; background: #fff1ec; border: 1px solid #f3c7b8; color: #7a2510; font-size: 13.5px; font-weight: 700; line-height: 1.45; }
.phone-left { margin: 0; font-size: var(--fs-s); font-weight: 600; color: var(--ink-2); }
.phone-ask { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 12px; background: var(--surface-soft); animation: login-qr-in 0.3s ease-out both; }
.phone-ask span { font-size: var(--fs-s); color: var(--ink-2); }
.phone-buttons { display: flex; gap: 8px; }
.phone-hide { align-self: flex-start; color: var(--muted); }
.phone-status { margin: 0; padding: 0 0 8px; font-size: var(--fs-s); color: var(--ink-2); }
.phone-status:empty { display: none; }
@media (pointer: coarse) { .phone-login { display: none; } }
.tg-link { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin: 4px 0 14px; }
.tg-link-code { flex: none; width: 196px; height: 196px; margin-inline: auto; padding: 12px; box-sizing: border-box; border: 1px solid var(--line-soft); border-radius: 18px; background: #fff; box-shadow: 0 12px 32px -20px rgba(24, 36, 72, 0.35); }
.tg-link-code svg { display: block; width: 100%; height: 100%; animation: login-qr-swap 0.35s ease-out both; }
.tg-link-side { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.tg-link-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.tg-link-steps li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 600; line-height: 1.4; }
.tg-link-steps span { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--graphite); color: var(--graphite-ink); font-size: 12px; font-weight: 700; }
.tg-link-code-way { margin: 0 0 10px; }
.tg-link-code-way summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--muted); }
.tg-link-code-way[open] summary { margin-bottom: 10px; }
@media (pointer: coarse) { .tg-link-code { display: none; } }
.tg-card { width: fit-content; max-width: 100%; box-sizing: border-box; margin: 0 0 var(--sp-3); border: 1px solid var(--line-soft); border-radius: 12px; background: var(--panel); animation: login-qr-in 0.35s ease-out both; transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease; }
.tg-card-gone { opacity: 0; transform: translateY(-8px); }
.tg-card-open { box-shadow: 0 18px 36px -28px rgba(24, 36, 72, 0.45); }
.tg-card-row { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 4px 4px 12px; box-sizing: border-box; }
.tg-card-icon { flex: none; display: flex; }
.tg-card-icon svg { width: 20px; height: 20px; }
.tg-card-line { flex: 1 1 auto; min-width: 0; margin: 0; display: flex; align-items: baseline; gap: 8px; font-size: 13px; line-height: 1.35; overflow: hidden; white-space: nowrap; }
.tg-card-line b { font-weight: 600; color: var(--ink); }
.tg-card-line span { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
button.tg-card-go { flex: none; min-height: 30px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease; }
button.tg-card-go:hover { background: var(--soft); border-color: var(--line); color: var(--ink); filter: none; }
.tg-card-open button.tg-card-go { background: var(--soft); }
button.tg-card-x { flex: none; display: grid; place-items: center; width: 30px; min-height: 30px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
button.tg-card-x:hover { background: var(--soft); color: var(--ink); filter: none; }
button.tg-card-x svg { width: 14px; height: 14px; }
.tg-card-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s cubic-bezier(0.22, 0.8, 0.3, 1); }
.tg-card-open .tg-card-more { grid-template-rows: 1fr; }
.tg-card-body { width: 0; min-width: 100%; box-sizing: border-box; min-height: 0; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 0 16px; opacity: 0; transition: opacity 0.25s ease, padding 0.35s ease; }
.tg-card-open .tg-card-body { padding: 4px 16px 16px; opacity: 1; }
.tg-card-qr { position: relative; flex: none; }
.tg-card-mark { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 32px; height: 32px; margin: -16px 0 0 -16px; pointer-events: none; transition: opacity 0.3s ease; }
.tg-card-mark svg { display: block; }
.tg-card-stale .tg-card-mark { opacity: 0.35; }
.tg-card-code { flex: none; display: block; width: 132px; height: 132px; padding: 10px; box-sizing: border-box; border: 1px solid var(--line-soft); border-radius: 14px; background: #fff; transition: opacity 0.25s ease, filter 0.25s ease; }
.tg-card-code svg { display: block; width: 100%; height: 100%; }
.tg-card-stale .tg-card-code { opacity: 0.35; filter: blur(2px); cursor: pointer; }
.tg-card-text { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.tg-card-text p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.tg-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tg-card-actions .gate-button { width: auto; min-height: 40px; padding: 0 16px; font-size: 14px; }
@media (max-width: 700px) { .tg-card-line { white-space: normal; } .tg-card-line span { display: none; } }
@media (pointer: coarse) { .tg-card-qr { display: none; } }
.pc-camera { position: relative; margin-top: 12px; border-radius: 18px; overflow: hidden; background: #111; aspect-ratio: 1 / 1; animation: login-qr-in 0.3s ease-out both; }
.pc-camera[hidden] { display: none; }
.pc-camera video { display: block; width: 100%; height: 100%; object-fit: cover; }
.pc-frame { position: absolute; inset: 18%; border: 3px solid rgba(255, 255, 255, 0.9); border-radius: 22px; box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.35); }
.pc-stop { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); height: 40px; padding: 0 18px; border: 0; border-radius: 20px; background: rgba(255, 255, 255, 0.92); color: #191a24; font: inherit; font-weight: 700; }

@media (max-width: 560px) { .phone-hero .phone-show.gate-button { flex: 1 1 100%; width: 100%; } }
.pc-login { display: flex; flex-direction: column; gap: 14px; margin: 6px 0 4px; }
.pc-head { display: flex; align-items: center; gap: 12px; }
.pc-steps li { font-size: 15px; font-weight: 500; line-height: 1.45; }
.pc-steps[hidden], .pc-scan[hidden] { display: none; }
.pc-scan.gate-button { height: 52px; min-height: 52px; font-size: 16px; border-radius: 14px; }
.pc-login .phone-status { padding: 0; font-size: 13.5px; line-height: 1.45; }

