:root {
  --deep-sea-blue: #163b57;
  --warm-sand: #e9d8b5;
  --soft-sky: #ddeaf3;
  --olive-calm: #7d8b68;
  --warm-white: #faf7f0;
  --action-blue: #2a5b87;
  --action-blue-hover: #214f78;
  --attention-amber: #d99a3d;
  --soft-red: #c46a4a;
  --success-green: #4d7c5b;
  --ink: #1f2f3a;
  --muted: #65727c;
  --line: #d8d3c8;
  --panel: #ffffff;
  --panel-warm: #fffdf8;
  --blue-quiet: #204966;
  --blue-ink: #0f2f47;
}

* {
  box-sizing: border-box;
}

html {
  font-family: "Noto Sans", "Noto Sans Hebrew", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--warm-white);
  letter-spacing: 0;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--warm-white);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(250, 247, 240, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  animation: nav-enter 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--deep-sea-blue);
}

.brand-symbol {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--deep-sea-blue);
  color: var(--warm-white);
  font-weight: 800;
  font-size: 14px;
}

.brand-mark strong,
.brand-mark small {
  display: block;
}

.brand-mark small {
  max-width: 320px;
  color: var(--muted);
  font-size: 12px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}

.top-nav a,
.link-button {
  text-decoration: none;
  color: var(--deep-sea-blue);
}

.link-button {
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-inline-start: 4px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.lang-switch__option {
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.lang-switch__option.is-active {
  background: var(--action-blue);
  color: white;
}

.nav-cta,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease;
}

.nav-cta,
.primary-button {
  background: var(--action-blue);
  color: white;
  box-shadow: 0 10px 24px rgba(42, 91, 135, 0.18);
}

.top-nav a.nav-cta {
  color: white;
}

.secondary-button {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
  color: var(--deep-sea-blue);
}

.primary-button:hover,
.nav-cta:hover {
  transform: translateY(-1px);
  background: var(--action-blue-hover);
  box-shadow: 0 14px 30px rgba(42, 91, 135, 0.24);
}

.secondary-button:hover {
  transform: translateY(-1px);
  border-color: var(--deep-sea-blue);
  background: var(--soft-sky);
}

.primary-button:active,
.secondary-button:active,
.nav-cta:active {
  transform: scale(0.98);
}

.primary-button:focus-visible,
.secondary-button:focus-visible,
.nav-cta:focus-visible,
.focus-hero__cta:focus-visible,
.link-button:focus-visible {
  outline: 2px solid var(--action-blue);
  outline-offset: 3px;
}

.primary-button svg,
.secondary-button svg,
.nav-cta svg,
.panel-title svg,
.icon-box svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.full-width {
  width: 100%;
}

.message-strip {
  padding: 12px clamp(18px, 4vw, 56px);
  background: var(--soft-sky);
}

.flash-message,
.error-message {
  margin: 0;
  font-weight: 700;
}

.error-message {
  color: var(--soft-red);
}

.hero-surface {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 76px);
  padding: clamp(56px, 8vw, 104px) clamp(18px, 5vw, 72px);
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(250, 247, 240, 0.98) 0%, rgba(250, 247, 240, 0.9) 46%, rgba(221, 234, 243, 0.74) 100%),
    var(--warm-white);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.trust-line,
.section-heading p {
  margin: 0 0 10px;
  color: #5c6647;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

h1 {
  margin: 0;
  max-width: 760px;
  color: var(--deep-sea-blue);
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.02;
}

h2 {
  margin: 0;
  color: var(--deep-sea-blue);
  font-size: 32px;
  line-height: 1.16;
}

h3 {
  margin: 0 0 8px;
  color: var(--deep-sea-blue);
  font-size: 20px;
}

.hero-subtitle {
  margin: 22px 0 8px;
  color: var(--deep-sea-blue);
  font-size: 22px;
  font-weight: 700;
}

.hero-slogan {
  margin: 0 0 18px;
  color: var(--attention-amber);
  font-weight: 800;
}

.hero-text,
.wide-copy,
.content-band p,
.dashboard-panel p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.section-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: clamp(22px, 4vw, 34px);
}

.section-cta-row--inline {
  margin-top: 26px;
}

.product-preview {
  position: absolute;
  right: clamp(18px, 5vw, 78px);
  bottom: clamp(28px, 8vw, 96px);
  width: min(470px, 42vw);
  padding: 18px;
  border: 1px solid rgba(22, 59, 87, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 22px 70px rgba(22, 59, 87, 0.18);
}

.preview-topbar,
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.preview-topbar {
  padding-bottom: 14px;
  color: var(--deep-sea-blue);
  border-bottom: 1px solid var(--line);
}

.preview-grid {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.preview-grid article,
.feature-grid article,
.access-grid article,
.dashboard-panel,
.notice-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.preview-grid article {
  padding: 14px;
}

.preview-grid p {
  margin: 6px 0 0;
  color: var(--muted);
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-inline-end: 8px;
  border-radius: 50%;
}

.amber {
  background: var(--attention-amber);
}

.blue {
  background: var(--action-blue);
}

.green {
  background: var(--success-green);
}

.content-band,
.feature-band,
.steps-band,
.access-band,
.auth-shell,
.dashboard-shell {
  padding: clamp(44px, 7vw, 76px) clamp(18px, 5vw, 72px);
}

.content-band,
.steps-band {
  background: var(--warm-white);
}

.feature-band,
.access-band {
  background: var(--soft-sky);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.wide-copy {
  max-width: 980px;
}

.feature-grid,
.access-grid,
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-grid {
  margin-bottom: 26px;
}

.feature-grid article,
.access-grid article,
.dashboard-panel,
.notice-panel {
  padding: 22px;
}

.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: var(--warm-sand);
  color: var(--deep-sea-blue);
}

.steps-list {
  display: grid;
  gap: 12px;
  max-width: 820px;
  padding: 0;
  margin: 0;
  list-style-position: inside;
}

.steps-list li {
  padding: 16px 18px;
  border: 1px solid rgba(217, 154, 61, 0.26);
  background: linear-gradient(90deg, rgba(217, 154, 61, 0.1), rgba(255, 255, 255, 0.84));
  border-radius: 8px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 24px;
  align-items: start;
}

.notice-panel {
  background: #fff8ec;
  border-color: rgba(217, 154, 61, 0.34);
}

.access-grid {
  margin-bottom: 24px;
}

.access-grid strong {
  color: var(--deep-sea-blue);
  font-size: 24px;
}

.auth-shell {
  min-height: calc(100vh - 140px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 28px;
  align-items: center;
}

.auth-shell--gateway {
  position: relative;
  grid-template-columns: minmax(340px, 0.82fr) minmax(420px, 1fr);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(250, 247, 240, 0.98) 0%, rgba(250, 247, 240, 0.96) 48%, rgba(22, 59, 87, 0.08) 48%, rgba(22, 59, 87, 0.08) 100%),
    radial-gradient(circle at 78% 18%, rgba(221, 234, 243, 0.72), transparent 34%);
}

.auth-shell--gateway::before {
  position: absolute;
  inset: 11% 58% auto auto;
  width: 180px;
  height: 180px;
  content: "";
  border: 1px solid rgba(42, 91, 135, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

.auth-copy {
  max-width: 640px;
}

.auth-copy h1 {
  max-width: 620px;
  font-size: 54px;
  line-height: 1.02;
}

.auth-main {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 22px;
  align-content: center;
  min-height: 620px;
  padding: clamp(18px, 4vw, 44px);
  border: 1px solid rgba(22, 59, 87, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(250, 247, 240, 0.84)),
    var(--panel-warm);
  box-shadow: 0 24px 70px rgba(22, 59, 87, 0.1);
}

.auth-form {
  display: grid;
  gap: 14px;
  padding: 26px;
  border: 1px solid rgba(42, 91, 135, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

label {
  font-weight: 800;
  color: var(--deep-sea-blue);
}

input:not([type=radio]):not([type=checkbox]):not([type=hidden]):not([type=submit]):not([type=button]):not([type=image]):not([type=reset]):not([type=range]):not([type=color]) {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

input:not([type=radio]):not([type=checkbox]):not([type=hidden]):not([type=submit]):not([type=button]):not([type=image]):not([type=reset]):not([type=range]):not([type=color]):focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--action-blue);
  box-shadow: 0 0 0 3px rgba(42, 91, 135, 0.12);
}

input[type=radio],
input[type=checkbox] {
  width: auto;
  min-height: auto;
  padding: 0;
  border: none;
  border-radius: 0;
}

select,
textarea {
  font: inherit;
}

.form-note,
.empty-state {
  color: var(--muted);
  font-size: 14px;
}

.empty-state--action {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.dashboard-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.dashboard-heading--visual,
.page-context-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 24px;
  align-items: center;
}

.dashboard-heading--office {
  position: relative;
  min-height: 320px;
  padding: clamp(20px, 4vw, 34px);
  overflow: hidden;
  border: 1px solid rgba(22, 59, 87, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(110deg, rgba(250, 247, 240, 0.98) 0%, rgba(250, 247, 240, 0.9) 43%, rgba(221, 234, 243, 0.54) 100%),
    var(--warm-white);
}

.dashboard-heading--assistant,
.page-context-hero--assistant {
  align-items: stretch;
}

.dashboard-heading--assistant h1,
.page-context-hero--assistant h1 {
  max-width: 680px;
  font-size: 48px;
  line-height: 1.08;
}

.dashboard-heading--compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.dashboard-heading--compact h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--deep-sea-blue);
}

.dashboard-disclaimer {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.dashboard-heading--assistant .wide-copy,
.page-context-hero--assistant .wide-copy {
  max-width: 680px;
}

.dashboard-heading--office::before {
  display: none;
}

.dashboard-heading__copy {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: start;
  gap: 12px;
}

.page-context-hero {
  margin-bottom: 22px;
}

.page-context-hero--case,
.page-context-hero--document {
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-warm);
}

.page-context-hero--case {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
}

.page-context-hero--document {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 470px);
}

.page-context-hero .section-heading {
  margin-bottom: 0;
}

.context-visual {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  margin: 0;
  border: 1px solid rgba(22, 59, 87, 0.14);
  border-radius: 8px;
  background: var(--warm-sand);
}

.context-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.context-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(22, 59, 87, 0) 42%, rgba(22, 59, 87, 0.5) 100%),
    linear-gradient(90deg, rgba(250, 247, 240, 0.24), rgba(250, 247, 240, 0));
  pointer-events: none;
}

.context-visual figcaption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 1;
  display: grid;
  gap: 4px;
  max-width: 82%;
  padding: 10px 12px;
  border: 1px solid rgba(250, 247, 240, 0.38);
  border-radius: 8px;
  background: rgba(22, 59, 87, 0.86);
  color: white;
}

.context-visual figcaption strong {
  font-size: 15px;
}

.context-visual figcaption span {
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  line-height: 1.45;
}

.auth-visual {
  min-height: 500px;
}

.auth-visual--gateway {
  align-self: stretch;
  min-height: min(70vh, 720px);
  border: 10px solid rgba(22, 59, 87, 0.88);
  border-radius: 8px;
  background: #f8efe1;
  box-shadow: 0 28px 84px rgba(15, 47, 71, 0.28);
}

.auth-visual--gateway img {
  object-position: center bottom;
}

.auth-visual--gateway::before {
  position: absolute;
  inset: 18px;
  z-index: 1;
  height: auto;
  content: "";
  border: 1px solid rgba(250, 247, 240, 0.42);
  border-radius: 8px;
  pointer-events: none;
}

.auth-visual--gateway::after {
  background:
    linear-gradient(180deg, rgba(250, 247, 240, 0) 30%, rgba(22, 59, 87, 0.3) 100%),
    radial-gradient(circle at 50% 47%, rgba(250, 247, 240, 0), rgba(22, 59, 87, 0.22) 72%);
}

.auth-visual--gateway figcaption {
  display: none;
}

.gateway-plate,
.visual-token,
.office-focus-strip,
.case-room-marker,
.document-route,
.case-hero-facts {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(250, 247, 240, 0.58);
  border-radius: 8px;
  background: rgba(250, 247, 240, 0.84);
  color: var(--deep-sea-blue);
  box-shadow: 0 14px 32px rgba(22, 59, 87, 0.14);
  backdrop-filter: blur(14px);
}

.gateway-plate {
  right: 24px;
  bottom: 24px;
  display: grid;
  gap: 2px;
  min-width: 150px;
  padding: 14px 16px;
  border-color: rgba(233, 216, 181, 0.52);
  background: rgba(15, 47, 71, 0.86);
  color: var(--warm-white);
}

.gateway-plate span,
.visual-token span,
.office-focus-strip span,
.case-room-marker span,
.document-route span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.gateway-plate span {
  color: rgba(250, 247, 240, 0.78);
}

.gateway-plate strong {
  font-size: 18px;
}

.visual-token {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
}

.visual-token svg,
.office-focus-strip svg,
.case-room-marker svg,
.document-route svg {
  width: 16px;
  height: 16px;
  color: var(--action-blue);
}

.visual-token--lock {
  top: 22px;
  left: 22px;
}

.dashboard-visual {
  min-height: 280px;
}

.dashboard-visual--office {
  min-height: 300px;
  transform: rotate(0.2deg);
}

.dashboard-visual--office img {
  object-position: center center;
}

.dashboard-visual--office::after {
  background:
    linear-gradient(90deg, rgba(22, 59, 87, 0.5), rgba(22, 59, 87, 0.02) 55%),
    linear-gradient(180deg, rgba(22, 59, 87, 0), rgba(22, 59, 87, 0.35));
}

.office-focus-strip {
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
}

.office-focus-strip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  color: var(--deep-sea-blue);
  background: rgba(255, 255, 255, 0.54);
  border-radius: 8px;
}

.dashboard-visual--office figcaption {
  top: 14px;
  right: auto;
  bottom: auto;
  left: 14px;
  max-width: 260px;
}

.visual-token--deadline {
  top: 16px;
  right: 14px;
  background: rgba(255, 248, 236, 0.9);
}

.case-visual,
.document-visual {
  min-height: 240px;
}

.case-hero-facts {
  position: static;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: fit-content;
  margin-top: 18px;
  padding: 8px;
  box-shadow: none;
  backdrop-filter: none;
}

.case-hero-facts span {
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--deep-sea-blue);
  font-size: 13px;
  font-weight: 800;
}

.case-visual--room {
  min-height: 220px;
  box-shadow: 0 14px 32px rgba(66, 43, 20, 0.12);
}

.case-visual--room img {
  object-position: center 52%;
}

.case-visual--room::after {
  background:
    linear-gradient(90deg, rgba(28, 24, 20, 0.34), rgba(28, 24, 20, 0.03) 60%),
    linear-gradient(180deg, rgba(22, 59, 87, 0), rgba(22, 59, 87, 0.4));
}

.case-room-marker {
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
}

.document-visual--desk {
  min-height: 260px;
  background: #f2dfbd;
}

.document-visual--desk img {
  object-position: center center;
}

.document-visual--desk::after {
  background:
    linear-gradient(90deg, rgba(250, 247, 240, 0.5), rgba(250, 247, 240, 0.02) 48%),
    linear-gradient(180deg, rgba(22, 59, 87, 0), rgba(22, 59, 87, 0.28));
}

.document-visual--desk figcaption {
  top: 14px;
  right: auto;
  bottom: auto;
  left: 14px;
  max-width: 280px;
  background: rgba(250, 247, 240, 0.86);
  color: var(--deep-sea-blue);
}

.document-visual--desk figcaption span {
  color: var(--muted);
}

.document-route {
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 10px;
}

.document-route span {
  color: var(--deep-sea-blue);
}

.document-visual--analysis .document-route {
  background: rgba(221, 234, 243, 0.88);
}

.quiet-visual-rail {
  align-self: stretch;
  min-height: 220px;
  opacity: 0.94;
  box-shadow: 0 18px 46px rgba(22, 59, 87, 0.16);
}

.quiet-visual-rail img {
  filter: saturate(0.94) contrast(0.98);
}

.assistant-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  max-width: 620px;
  padding: 14px 16px;
  border: 1px solid rgba(42, 91, 135, 0.16);
  border-radius: 8px;
  background: rgba(221, 234, 243, 0.38);
  color: var(--deep-sea-blue);
}

.assistant-note svg {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--action-blue);
}

.assistant-note strong,
.assistant-note span {
  display: block;
}

.assistant-note span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.onboarding-shell {
  padding: clamp(34px, 6vw, 70px) clamp(18px, 5vw, 72px);
}

.onboarding-hero,
.onboarding-entry-panel,
.route-created-panel,
.route-preview-panel {
  border: 1px solid rgba(22, 59, 87, 0.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 94% 8%, rgba(221, 234, 243, 0.54), transparent 26%),
    linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(250, 247, 240, 0.9));
  box-shadow: 0 18px 48px rgba(22, 59, 87, 0.1);
}

.onboarding-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: clamp(18px, 4vw, 38px);
  align-items: stretch;
  padding: clamp(22px, 4vw, 38px);
  margin-bottom: 18px;
}

.onboarding-hero h1 {
  max-width: 780px;
  font-size: clamp(42px, 6vw, 68px);
}

.onboarding-hero p,
.route-question-panel > p,
.route-command-panel p,
.route-created-panel p {
  max-width: 780px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.onboarding-status-card {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 20px;
  border: 1px solid rgba(42, 91, 135, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.onboarding-status-card span,
.route-preview-count,
.route-suggestion-type {
  color: var(--olive-calm);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.onboarding-status-card strong {
  color: var(--deep-sea-blue);
  font-size: 28px;
}

.onboarding-entry-panel,
.route-created-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
  padding: clamp(18px, 3vw, 26px);
}

.onboarding-entry-panel--complete {
  background:
    linear-gradient(135deg, rgba(221, 234, 243, 0.38), rgba(255, 253, 248, 0.96)),
    var(--panel);
}

.onboarding-entry-panel--primary {
  border-color: rgba(42, 91, 135, 0.24);
  background:
    radial-gradient(circle at 92% 20%, rgba(233, 216, 181, 0.42), transparent 28%),
    linear-gradient(135deg, rgba(255, 253, 248, 0.99), rgba(221, 234, 243, 0.46));
}

.onboarding-entry-panel h2 {
  font-size: 26px;
}

.onboarding-entry-panel p {
  max-width: 860px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.onboarding-entry-panel__meta {
  display: grid;
  gap: 8px;
  justify-items: end;
  min-width: 220px;
}

.onboarding-entry-panel__meta span {
  color: var(--olive-calm);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.onboarding-entry-panel__meta strong {
  color: var(--deep-sea-blue);
}

.first-run-command {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: clamp(18px, 4vw, 40px);
  align-items: stretch;
  min-height: min(680px, calc(100vh - 190px));
  padding: clamp(24px, 5vw, 52px);
  border: 1px solid rgba(22, 59, 87, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 12%, rgba(221, 234, 243, 0.78), transparent 30%),
    linear-gradient(135deg, rgba(255, 253, 248, 0.99), rgba(250, 247, 240, 0.92));
  box-shadow: 0 26px 68px rgba(22, 59, 87, 0.14);
}

/* When the cabinet already has work, the invitation is a prominent banner,
   not a full-viewport takeover that buries the user's existing cases. */
.first-run-command--compact {
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  padding: clamp(20px, 3vw, 32px);
  box-shadow: 0 16px 44px rgba(22, 59, 87, 0.1);
}

.first-run-command__copy {
  display: grid;
  align-content: center;
  gap: 18px;
}

.first-run-command h1 {
  max-width: 780px;
  font-size: clamp(42px, 6vw, 72px);
}

.first-run-command__copy > p {
  max-width: 760px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

.first-run-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 860px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.first-run-steps li {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(22, 59, 87, 0.12);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.78);
}

.first-run-steps strong,
.first-run-command__surface strong {
  color: var(--deep-sea-blue);
}

.first-run-steps span,
.first-run-command__surface p,
.route-preview-command span {
  color: var(--muted);
  line-height: 1.45;
}

.first-run-actions {
  align-items: center;
  margin-top: 8px;
}

.first-run-actions form {
  margin: 0;
}

.first-run-command__surface {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(42, 91, 135, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(221, 234, 243, 0.56), rgba(255, 253, 248, 0.78)),
    var(--panel);
}

.first-run-command__badge {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(125, 139, 104, 0.14);
  color: var(--olive-calm);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.route-preview-mini {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(22, 59, 87, 0.12);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.78);
}

.route-preview-mini span {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(221, 234, 243, 0.34);
  color: var(--muted);
}

.first-run-access {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(22, 59, 87, 0.12);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
}

.first-run-access p {
  margin: 0;
}

.route-wizard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 16px;
  align-items: start;
}

.route-question-panel,
.route-command-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: clamp(18px, 3vw, 26px);
}

.route-command-panel {
  position: sticky;
  top: 92px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(221, 234, 243, 0.32)),
    var(--panel-warm);
}

.route-question-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.route-question-card {
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(22, 59, 87, 0.12);
  border-radius: 8px;
  background: rgba(250, 247, 240, 0.52);
}

.route-question-card legend {
  padding: 0 6px;
  color: var(--deep-sea-blue);
  font-weight: 800;
}

.route-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.route-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid rgba(22, 59, 87, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--deep-sea-blue);
  cursor: pointer;
}

.route-choice:has(input:checked) {
  border-color: rgba(42, 91, 135, 0.42);
  background: rgba(221, 234, 243, 0.58);
}

.route-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 22px;
}

.route-actions--split {
  justify-content: space-between;
}

.route-secondary-form {
  margin-top: 12px;
}

.route-muted-action {
  color: var(--muted);
  text-decoration: underline;
}

.route-mini-steps {
  display: grid;
  gap: 12px;
  margin: 16px 0 20px;
  padding: 0;
  list-style: none;
}

.route-mini-steps li {
  display: grid;
  gap: 3px;
  padding: 12px;
  border-radius: 6px;
  background: rgba(233, 216, 181, 0.18);
}

.route-mini-steps strong {
  color: var(--deep-sea-blue);
}

.route-mini-steps span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.route-preview-panel {
  margin-top: 16px;
  padding: clamp(18px, 3vw, 26px);
}

.route-preview-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.route-preview-command {
  position: sticky;
  top: 76px;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid rgba(42, 91, 135, 0.18);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 16px 34px rgba(22, 59, 87, 0.1);
}

.route-preview-command div {
  display: grid;
  gap: 3px;
}

.route-preview-command strong {
  color: var(--deep-sea-blue);
}

.route-suggestion-list {
  display: grid;
  gap: 10px;
}

.route-suggestion-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(22, 59, 87, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.route-suggestion-card--existing {
  opacity: 0.78;
}

.route-suggestion-body {
  display: grid;
  gap: 5px;
}

.route-suggestion-body strong {
  color: var(--deep-sea-blue);
  font-size: 18px;
}

.route-suggestion-body span,
.route-suggestion-body em {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.route-suggestion-body em {
  color: var(--success-green);
  font-style: normal;
  font-weight: 800;
}

.route-empty-state {
  padding: 18px;
  border: 1px dashed rgba(22, 59, 87, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
}

.route-created-links {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.route-created-links a {
  display: grid;
  gap: 4px;
  min-width: 260px;
  padding: 12px;
  border: 1px solid rgba(42, 91, 135, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.route-created-links strong {
  color: var(--deep-sea-blue);
}

.route-created-links span {
  color: var(--muted);
  font-size: 13px;
}

/* Tinted region inside the Documents panel — one level of nesting, no inner
   cards. Items below are separated by hairlines, not borders. */
.service-advice-panel {
  display: grid;
  gap: 14px;
  margin: 14px 0 18px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(221, 234, 243, 0.26);
}

.service-advice-panel__heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.service-advice-panel__heading svg {
  width: 22px;
  height: 22px;
  margin-top: 3px;
  color: var(--action-blue);
}

.service-advice-panel__heading h3,
.service-advice-panel__heading p {
  margin: 0;
}

.service-advice-panel__heading p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.service-advice-list {
  display: grid;
  gap: 10px;
}

.service-advice-item {
  display: grid;
  gap: 10px;
  padding: 14px 0 0;
  border-top: 1px solid rgba(22, 59, 87, 0.12);
}

.service-advice-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.service-advice-item h4 {
  margin: 0;
  color: var(--deep-sea-blue);
  font-size: 18px;
}

.service-advice-item p {
  margin: 0;
}

.service-advice-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.service-advice-columns strong {
  color: var(--deep-sea-blue);
}

.service-advice-columns ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.case-task-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-task-item {
  display: grid;
  /* Right column: use auto so the form only takes the space it needs and
     never overflows into the text column on mid-width containers. */
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(22, 59, 87, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.case-task-item--done {
  background: rgba(77, 124, 91, 0.08);
}

.case-task-main {
  display: grid;
  gap: 4px;
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}

.case-task-main strong {
  color: var(--deep-sea-blue);
}

.case-task-main span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.case-task-status-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.case-task-status-form label {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.focus-board {
  margin-bottom: 16px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid rgba(22, 59, 87, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 8%, rgba(233, 216, 181, 0.24), transparent 28%),
    linear-gradient(135deg, var(--blue-ink), var(--blue-quiet));
  box-shadow: 0 22px 58px rgba(22, 59, 87, 0.2);
}

.focus-board__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.focus-board__header h2 {
  color: var(--warm-white);
  font-size: 26px;
}

/* Focus hero — главная карточка, один ответ на первом экране */
.focus-hero {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid rgba(250, 247, 240, 0.16);
  border-radius: 8px;
  background: rgba(250, 247, 240, 0.94);
  box-shadow: 0 14px 30px rgba(15, 47, 71, 0.14);
}

.focus-hero__kicker {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.focus-hero h3 {
  margin: 0;
  color: var(--deep-sea-blue);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.18;
  max-width: 680px;
  overflow-wrap: anywhere;
}

.focus-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  max-width: 560px;
}

.focus-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: start;
  margin-top: 4px;
  padding: 10px 20px;
  border-radius: 8px;
  background: var(--action-blue);
  color: white;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.focus-hero__cta:hover {
  background: var(--action-blue-hover);
  transform: translateY(-1px);
}

.focus-hero--deadline {
  background: rgba(255, 248, 236, 0.94);
  border-color: rgba(217, 154, 61, 0.32);
}

.focus-hero--warning {
  background: rgba(255, 244, 238, 0.94);
  border-color: rgba(196, 106, 74, 0.24);
}

/* Компактные карточки для второстепенных приоритетов */
.focus-rest {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.focus-item {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(250, 247, 240, 0.16);
  border-radius: 8px;
  background: rgba(250, 247, 240, 0.92);
}

.focus-item--deadline {
  background: rgba(255, 248, 236, 0.92);
  border-color: rgba(217, 154, 61, 0.28);
}

.focus-item--warning {
  background: rgba(255, 244, 238, 0.88);
  border-color: rgba(196, 106, 74, 0.20);
}

.focus-item__kicker {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.focus-item h3 {
  margin: 0;
  color: var(--deep-sea-blue);
  font-size: 16px;
  line-height: 1.3;
}

.focus-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.focus-item a {
  margin-top: 4px;
  color: var(--action-blue);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}

/* Пустое состояние и "всё в порядке" */
.focus-board__empty,
.focus-board__clear {
  display: grid;
  gap: 12px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px dashed rgba(250, 247, 240, 0.28);
  border-radius: 8px;
}

.focus-board__empty h3,
.focus-board__clear h3 {
  margin: 0;
  color: var(--warm-white);
  font-size: 26px;
}

.focus-board__empty p,
.focus-board__clear p {
  margin: 0;
  color: rgba(250, 247, 240, 0.72);
  font-size: 16px;
  line-height: 1.6;
  max-width: 480px;
}

.focus-board__empty-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* Рабочий уровень: основной поток документов сверху, пара очередей под ним */
.dashboard-work {
  display: grid;
  gap: 16px;
}

.dashboard-work__pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.dashboard-panel--primary {
  background: var(--panel-warm);
  border-color: rgba(22, 59, 87, 0.2);
}

/* Справочный уровень: платежи и активность, тише рабочих панелей */
.dashboard-reference {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.dashboard-reference > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 2px;
  list-style: none;
  cursor: pointer;
  color: var(--deep-sea-blue);
  font-size: 15px;
  font-weight: 700;
}

.dashboard-reference > summary::-webkit-details-marker {
  display: none;
}

.dashboard-reference > summary::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg);
  transition: transform 0.18s ease;
}

.dashboard-reference[open] > summary::before {
  transform: rotate(45deg);
}

.dashboard-reference__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  padding-bottom: 4px;
}

.dashboard-panel--quiet {
  background: rgba(255, 253, 248, 0.55);
  border-color: rgba(216, 211, 200, 0.6);
}

.dashboard-panel--quiet .panel-title h2 {
  font-size: 18px;
}

/* Тихая строка статуса пакета, когда лимит не исчерпан */
.dashboard-quota-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.dashboard-quota-line svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--success-green);
}

.dashboard-quota-line strong {
  color: var(--deep-sea-blue);
}

.work-queue-group {
  padding: 14px 0;
  border-bottom: 1px solid rgba(216, 211, 200, 0.72);
}

.work-queue-group:last-child {
  border-bottom: 0;
}

.work-queue-group__heading {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
}

.work-queue-group__heading h3 {
  margin: 0;
  font-size: 17px;
}

.work-queue-group__heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.document-command-header {
  margin-bottom: 16px;
}

.document-primary-grid {
  margin-bottom: 16px;
}

.page-context-hero--quiet {
  margin-top: 16px;
}

.command-panel {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid rgba(42, 91, 135, 0.22);
  border-radius: 8px;
  background: var(--soft-sky);
}

.command-panel__label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.command-panel h2 {
  font-size: 22px;
}

/* Reset the .section-heading p eyebrow bleed: this is body copy, not a kicker. */
.command-panel p {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.context-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
}

.context-breadcrumb a {
  color: var(--action-blue);
  font-weight: 800;
  text-decoration: none;
}

.context-breadcrumb a:hover {
  text-decoration: underline;
}

.case-workspace {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.case-archive-zone {
  margin-top: 24px;
}

.case-workspace .case-history-panel {
  grid-column: 1 / -1;
}

.status-summary-panel {
  background: rgba(221, 234, 243, 0.32);
}

.assistant-brief {
  display: grid;
  gap: 20px;
  margin-bottom: 16px;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid rgba(22, 59, 87, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(221, 234, 243, 0.68)),
    var(--panel-warm);
  box-shadow: 0 22px 58px rgba(22, 59, 87, 0.13);
}

.assistant-brief__heading h2 {
  font-size: 34px;
}

.assistant-brief__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.assistant-brief__grid section {
  min-height: 126px;
  padding: 16px;
  border: 1px solid rgba(22, 59, 87, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.assistant-brief__grid section:first-child,
.assistant-brief__grid section:nth-child(2) {
  background: rgba(22, 59, 87, 0.92);
}

.assistant-brief__grid section:first-child span,
.assistant-brief__grid section:nth-child(2) span {
  color: rgba(233, 216, 181, 0.84);
}

.assistant-brief__grid section:first-child strong,
.assistant-brief__grid section:nth-child(2) strong {
  color: var(--warm-white);
}

.assistant-brief__grid span,
.metadata-list dt {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.assistant-brief__grid strong {
  color: var(--deep-sea-blue);
  font-size: 18px;
}

.assistant-brief__grid p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.assistant-brief__wide {
  grid-column: 1 / -1;
}

.metadata-list dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.metadata-list dl div {
  display: grid;
  grid-template-columns: minmax(120px, 0.42fr) minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(216, 211, 200, 0.72);
}

.metadata-list dl div:last-child {
  border-bottom: 0;
}

.metadata-list dd {
  margin: 0;
  color: var(--deep-sea-blue);
  font-weight: 700;
}

.assistant-summary-panel {
  background: rgba(255, 253, 248, 0.82);
}

.upload-form--assistant {
  border-color: rgba(42, 91, 135, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(250, 247, 240, 0.72)),
    var(--panel);
}

.dashboard-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-kpi-grid,
.admin-action-grid,
.admin-data-grid {
  margin-bottom: 16px;
}

.admin-users-preview {
  grid-column: 1 / -1;
}

.danger-panel {
  border-color: rgba(165, 76, 61, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 246, 242, 0.62)),
    var(--panel);
}

.danger-button {
  border-color: rgba(165, 76, 61, 0.34);
  color: var(--soft-red);
}

.danger-button:hover {
  border-color: var(--soft-red);
  background: rgba(165, 76, 61, 0.08);
}

.admin-filter-bar {
  display: grid;
  grid-template-columns:
    auto minmax(220px, 1fr)
    auto minmax(180px, 260px)
    auto minmax(90px, 120px)
    auto auto;
  align-items: center;
  gap: 10px;
}

.admin-table-meta,
.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0;
  color: var(--muted);
  font-weight: 800;
}

.admin-pagination {
  justify-content: flex-end;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(42, 91, 135, 0.14);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.74);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(216, 211, 200, 0.72);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-table td small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(221, 234, 243, 0.72);
  color: var(--deep-sea-blue);
  font-size: 11px;
  font-weight: 900;
}

.secondary-button.disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.dashboard-access {
  margin-bottom: 16px;
}

.access-state-panel {
  background: rgba(221, 234, 243, 0.45);
}

.access-alert {
  color: var(--soft-red);
  font-weight: 800;
}

.access-ok {
  color: var(--deep-sea-blue);
  font-weight: 800;
}

.quota-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.quota-summary div,
.quota-mini {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid rgba(42, 91, 135, 0.14);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
}

.quota-summary span,
.quota-mini span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.quota-summary strong,
.quota-mini strong {
  color: var(--deep-sea-blue);
}

.quota-mini {
  margin: 12px 0;
}

.quota-mini em {
  color: var(--muted);
  font-style: normal;
  font-size: 14px;
}

.quota-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
}

.quota-list li {
  padding: 7px 10px;
  border: 1px solid rgba(22, 59, 87, 0.12);
  border-radius: 8px;
  color: var(--deep-sea-blue);
  background: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 750;
}

.quota-warning,
.quota-blocked-state {
  border: 1px solid rgba(217, 154, 61, 0.32);
  border-radius: 8px;
  background: rgba(255, 248, 236, 0.78);
}

.quota-warning {
  padding: 10px 12px;
  color: var(--deep-sea-blue);
  font-weight: 750;
}

.quota-blocked-state {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  padding: 14px;
}

.quota-blocked-state span {
  color: var(--olive-calm);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.quota-blocked-state strong {
  max-width: 72ch;
  color: var(--deep-sea-blue);
  font-size: 17px;
  line-height: 1.45;
}

.quota-blocked-state p {
  max-width: 72ch;
  margin: 0;
  color: var(--muted);
}

.redeem-form {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.inline-form-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.inline-form-row input {
  flex: 1;
}

.dashboard-panel h2 {
  font-size: 22px;
}

.dashboard-panel h3 {
  margin: 10px 0 8px;
  font-size: 16px;
  color: var(--deep-sea-blue);
}

.panel-title {
  justify-content: flex-start;
  margin-bottom: 10px;
  color: var(--deep-sea-blue);
}

.u-scroll-panel {
  overflow-y: auto;
  padding-right: 4px;
}

.u-scroll-panel--compact {
  max-height: 220px;
}

.u-scroll-panel--case-events {
  max-height: 280px;
}

.u-scroll-panel::-webkit-scrollbar {
  width: 10px;
}

.u-scroll-panel::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(42, 91, 135, 0.32);
  background-clip: content-box;
}

.help-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: auto;
}

.help-tooltip__trigger {
  position: relative;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(22, 59, 87, 0.28);
  border-radius: 999px;
  background: #fff;
  color: var(--deep-sea-blue);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  cursor: help;
}

/* Расширенная зона нажатия (44px) без увеличения визуального размера */
.help-tooltip__trigger::before {
  content: "";
  position: absolute;
  inset: -10px;
}

.help-tooltip__trigger:focus-visible {
  outline: 2px solid var(--action-blue);
  outline-offset: 2px;
}

.help-tooltip__content {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 15;
  width: min(320px, calc(100vw - 48px));
  padding: 10px 12px;
  border: 1px solid rgba(22, 59, 87, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 28px rgba(22, 59, 87, 0.16);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.help-tooltip:hover .help-tooltip__content,
.help-tooltip:focus-within .help-tooltip__content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.help-tooltip__content strong {
  color: var(--deep-sea-blue);
}

.attention-panel {
  background: #fff8ec;
}

.warning-panel {
  border-color: rgba(196, 106, 74, 0.35);
  background: #fff7f3;
}

.dashboard-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.dashboard-list li {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
}

.dashboard-list.compact li {
  padding: 8px 10px;
}

.dashboard-list strong {
  color: var(--deep-sea-blue);
  overflow-wrap: anywhere;
  min-width: 0;
}

.dashboard-list span:not([class]) {
  color: var(--muted);
  font-size: 14px;
  overflow-wrap: anywhere;
}

/* Reminder item: title + status chip + when, edit folded under a disclosure */
.reminder-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reminder-row {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
}

.reminder-row__head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.reminder-row__head strong {
  color: var(--deep-sea-blue);
  overflow-wrap: anywhere;
  min-width: 0;
}

/* Status chip is the shared .c-status component (see _status.html); in a
   reminder row it sits flush to the trailing edge. */
.reminder-row__head .c-status {
  margin-inline-start: auto;
  white-space: nowrap;
}

.reminder-row__when {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

.reminder-row__when svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.reminder-edit > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  list-style: none;
  cursor: pointer;
  color: var(--action-blue);
  font-size: 14px;
  font-weight: 700;
}

.reminder-edit > summary::-webkit-details-marker {
  display: none;
}

.reminder-edit > summary svg {
  width: 14px;
  height: 14px;
}

.reminder-edit__body {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.reminder-edit__form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
}

.reminder-edit__body label {
  display: grid;
  gap: 4px;
  color: var(--deep-sea-blue);
  font-size: 13px;
  font-weight: 700;
}

.case-tree,
.case-tree__workstreams {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.case-tree__case {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.case-tree__row,
.case-tree__workstreams li {
  display: grid;
  gap: 4px;
}

.case-tree__row strong,
.case-tree__workstreams strong {
  color: var(--deep-sea-blue);
  overflow-wrap: anywhere;
}

.case-tree__row span,
.case-tree__workstreams span {
  color: var(--muted);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.case-tree__see-all {
  display: block;
  margin-top: 10px;
  color: var(--action-blue);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.case-tree__see-all:hover {
  text-decoration: underline;
}

.case-tree__workstreams {
  margin-inline-start: 18px;
  padding-inline-start: 14px;
  border-inline-start: 1px solid rgba(42, 91, 135, 0.18);
}

.case-tree__workstreams li {
  padding: 9px 10px;
  border: 1px solid rgba(22, 59, 87, 0.1);
  border-radius: 8px;
  background: rgba(221, 234, 243, 0.25);
}

.time-queue__subhead {
  margin: 14px 0 8px;
  font-size: 15px;
  color: var(--deep-sea-blue);
}

.time-queue__subhead:first-child {
  margin-top: 0;
}

.dashboard-empty {
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-warm);
}

.upload-shell,
.analysis-shell {
  padding: clamp(44px, 7vw, 76px) clamp(18px, 5vw, 72px);
  background: var(--warm-white);
}

.upload-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

/* Save-case form: radio-based progressive disclosure */
.save-case-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.save-field {
  display: grid;
  gap: 6px;
}

.save-field[hidden] {
  display: none;
}

.save-field label {
  font-weight: 800;
  color: var(--deep-sea-blue);
  font-size: 14px;
}

.save-field select,
.save-field input[type=text] {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.18s ease;
}

.save-field select:focus,
.save-field input[type=text]:focus {
  outline: none;
  border-color: var(--action-blue);
  box-shadow: 0 0 0 3px rgba(42, 91, 135, 0.12);
}

.save-input-hint {
  font-size: 12px;
  color: var(--muted);
  margin: 2px 0 0;
}

.save-case-submit {
  margin-top: 8px;
}

.save-case-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.form-section {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-warm);
}

.form-section strong {
  color: var(--deep-sea-blue);
}

.form-section .form-note {
  margin: 0;
}

.form-row-two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 180px);
  gap: 12px;
  align-items: end;
}

.form-row-two label {
  display: grid;
  gap: 6px;
  font-weight: 800;
  color: var(--deep-sea-blue);
}

.reminder-command-form {
  margin-top: 12px;
}

.reminder-list .inline-form-row {
  margin-top: 8px;
}

.decision-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.text-button {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-warm);
  color: var(--deep-sea-blue);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.text-button:hover,
.text-button:focus-visible {
  border-color: var(--action-blue);
}

.text-button--danger {
  color: var(--soft-red);
}

.archive-action-panel {
  display: grid;
  gap: 10px;
  max-width: 620px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-warm) 72%, var(--soft-sky));
}

.archive-action-panel h2,
.archive-action-panel p {
  margin: 0;
}

.archive-action-panel__label {
  color: #5c6647;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.confirm-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  color: var(--deep-sea-blue);
}

.confirm-row input {
  width: 18px;
  min-height: 18px;
  padding: 0;
}

.secondary-button--quiet {
  background: var(--panel);
}

textarea,
select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: #fff;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-brandline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--deep-sea-blue);
  font-weight: 800;
}

.footer-copyright {
  color: var(--muted);
  font-weight: 600;
}

.site-footer a {
  color: var(--action-blue);
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-disclaimer {
  max-width: 720px;
  text-align: right;
}

.med-hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(120deg, rgba(250, 247, 240, 0.98), rgba(221, 234, 243, 0.7)),
    var(--warm-white);
}

/* Full-bleed photo hero — image as background, copy overlaid (accepted live variant 4b9b7721, overlay: 0.22) */
.med-hero--fullbleed {
  display: block;
  position: relative;
  background: transparent;
  padding: clamp(80px, 11vw, 140px) clamp(32px, 5vw, 80px);
  overflow: hidden;
  min-height: 540px;
}

.med-hero--fullbleed .sea-lines { display: none; }

.med-hero--fullbleed .med-visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.med-hero--fullbleed .med-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(15,47,71,0.82) 0%, rgba(15,47,71,0.62) 55%, rgba(15,47,71,0.18) 100%);
  z-index: 1;
}

.med-hero--fullbleed .hero-image-frame {
  position: absolute;
  inset: 0;
  margin: 0;
  border-radius: 0;
  width: 100%;
  height: 100%;
}

.med-hero--fullbleed .hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.med-hero--fullbleed .hero-image-frame figcaption { display: none; }
.med-hero--fullbleed .floating-case { display: none; }

.med-hero--fullbleed .med-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 580px;
}

.med-hero--fullbleed .hero-label { color: rgba(255,255,255,0.6); }

.med-hero--fullbleed .stacked-hero-title span { color: rgba(255,255,255,0.96); }

.med-hero--fullbleed .hero-text--supporting {
  color: rgba(255,255,255,0.65);
  opacity: 1;
}

.med-hero--fullbleed .trust-badges--hero span {
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.88);
}

.med-hero--fullbleed .primary-button { background: white; color: var(--blue-ink); }

.med-hero--fullbleed .secondary-button {
  background: transparent;
  border-color: rgba(255,255,255,0.38);
  color: white;
}

.sea-lines {
  position: absolute;
  inset: auto -6% 0 auto;
  width: min(700px, 56vw);
  height: 76%;
  opacity: 0.55;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(250, 247, 240, 0.18)),
    repeating-linear-gradient(
      175deg,
      rgba(42, 91, 135, 0.12) 0 2px,
      transparent 2px 28px
    );
  transform: skewX(-8deg);
  animation: sea-drift 22s ease-in-out infinite;
}

.med-hero-copy {
  max-width: 660px;
}

.hero-label {
  animation: rise-in 0.55s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.stacked-hero-title {
  display: grid;
  gap: 6px;
  font-size: clamp(42px, 6.2vw, 72px);
  letter-spacing: -0.03em;
}

.stacked-hero-title span {
  display: block;
  animation: rise-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.stacked-hero-title span:nth-child(1) {
  animation-delay: 0.16s;
}

.stacked-hero-title span:nth-child(2) {
  animation-delay: 0.24s;
}

.stacked-hero-title span:nth-child(3) {
  animation-delay: 0.32s;
}

/* Hero action-first layout: supporting body text (muted, smaller) below CTA */
.hero-text--supporting {
  font-size: 15px;
  color: var(--muted);
  opacity: 0.85;
  margin-top: 4px;
}

.trust-badges--hero {
  margin-top: 8px;
}

.med-hero .hero-subtitle {
  animation: rise-in 0.55s 0.44s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.med-hero .hero-text {
  animation: rise-in 0.55s 0.52s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.med-hero .hero-actions,
.trust-badges {
  animation: rise-in 0.55s 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.trust-badges span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(22, 59, 87, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--deep-sea-blue);
  font-size: 13px;
  font-weight: 800;
}

.trust-badges svg {
  width: 15px;
  height: 15px;
}

.med-visual {
  position: relative;
  min-height: 520px;
  animation: visual-enter 0.75s 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.plain-language-band {
  padding: clamp(34px, 5vw, 58px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(180deg, rgba(250, 247, 240, 0.96), rgba(221, 234, 243, 0.52)),
    var(--warm-white);
}

.plain-language-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(18px, 4vw, 44px);
  align-items: center;
  max-width: 1180px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid rgba(22, 59, 87, 0.12);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(233, 216, 181, 0.48), transparent 34%),
    rgba(255, 253, 248, 0.86);
  box-shadow: 0 18px 52px rgba(22, 59, 87, 0.1);
}

.plain-language-copy {
  max-width: 700px;
}

.plain-language-copy h2 {
  margin-bottom: 12px;
}

.plain-language-copy p:last-child {
  margin-bottom: 0;
  color: var(--deep-sea-blue);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.6;
}

.plain-language-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plain-language-steps li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid rgba(22, 59, 87, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--deep-sea-blue);
  font-weight: 800;
}

.plain-language-steps span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--warm-sand);
  color: var(--deep-sea-blue);
  font-size: 14px;
}

.hero-image-frame,
.story-image-frame,
.route-visual-frame,
.product-proof-frame,
.island-image-frame,
.access-visual-frame {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(22, 59, 87, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.hero-image-frame {
  height: min(520px, 64vw);
}

.hero-image-frame::before,
.story-image-frame::before,
.product-proof-frame::before,
.island-image-frame::before,
.access-visual-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(250, 247, 240, 0.14)),
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.45), transparent 30%);
}

.hero-image-frame img,
.story-image-frame img,
.route-visual-frame img,
.product-proof-frame img,
.island-image-frame img,
.access-visual-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-frame img {
  object-position: 72% 50%;
  transform: scale(1.04);
  transform-origin: 72% 50%;
}

.story-image-frame img,
.route-visual-frame img,
.product-proof-frame img,
.island-image-frame img,
.access-visual-frame img {
  height: auto;
}

.hero-image-frame figcaption,
.story-image-frame figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  max-width: min(420px, calc(100% - 36px));
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: rgba(22, 59, 87, 0.86);
  color: white;
  font-size: 13px;
  font-weight: 800;
}

.story-image-frame,
.island-image-frame {
  min-height: 300px;
}

.route-visual-frame,
.product-proof-frame {
  margin-top: 26px;
}

.product-proof-frame {
  max-width: 980px;
}

.dashboard-proof-frame img {
  height: 430px;
  object-fit: cover;
  object-position: 72% 54%;
}

.product-proof-frame img {
  aspect-ratio: auto;
}

.case-proof-frame {
  margin-left: auto;
  margin-right: auto;
}

.island-image-frame {
  animation: float-soft 7s ease-in-out infinite;
}

.access-visual-frame {
  margin: 26px 0;
}

.coast-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(22, 59, 87, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #dcecf4 0%, #f8efe1 56%, #e6d4aa 100%);
}

.sun-disc {
  position: absolute;
  top: 42px;
  right: 76px;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: rgba(217, 154, 61, 0.55);
}

.stone-city {
  position: absolute;
  right: 42px;
  bottom: 190px;
  display: flex;
  align-items: end;
  gap: 8px;
}

.stone-city span {
  display: block;
  width: 54px;
  border: 1px solid rgba(22, 59, 87, 0.08);
  border-radius: 5px 5px 0 0;
  background: rgba(233, 216, 181, 0.92);
}

.stone-city span:nth-child(1) {
  height: 72px;
}

.stone-city span:nth-child(2) {
  height: 112px;
}

.stone-city span:nth-child(3) {
  height: 88px;
}

.stone-city span:nth-child(4) {
  height: 132px;
}

.sea-band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 96px;
  height: 150px;
  background:
    repeating-linear-gradient(
      178deg,
      rgba(255, 255, 255, 0.36) 0 2px,
      transparent 2px 22px
    ),
    linear-gradient(180deg, rgba(42, 91, 135, 0.2), rgba(42, 91, 135, 0.44));
}

.shore-band {
  position: absolute;
  left: -20px;
  right: -20px;
  bottom: 0;
  height: 128px;
  background: linear-gradient(180deg, #dec996, #caa970);
  clip-path: polygon(0 35%, 28% 12%, 52% 28%, 76% 6%, 100% 18%, 100% 100%, 0 100%);
}

.olive-sprig {
  position: absolute;
  left: 42px;
  bottom: 158px;
  width: 68px;
  height: 110px;
  transform: rotate(-12deg);
}

.olive-sprig::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  content: "";
  border-radius: 999px;
  background: rgba(125, 139, 104, 0.75);
}

.olive-sprig span {
  position: absolute;
  width: 26px;
  height: 14px;
  border-radius: 50%;
  background: rgba(125, 139, 104, 0.8);
}

.olive-sprig span:nth-child(1) {
  top: 18px;
  left: 5px;
}

.olive-sprig span:nth-child(2) {
  top: 46px;
  left: -24px;
}

.olive-sprig span:nth-child(3) {
  top: 72px;
  left: 5px;
}

.device-stage {
  position: absolute;
  left: 52px;
  right: 42px;
  bottom: 64px;
  min-height: 390px;
}

.laptop-mockup {
  position: absolute;
  left: 20px;
  right: 76px;
  bottom: 48px;
  min-height: 320px;
  overflow: hidden;
  border: 10px solid #17364f;
  border-radius: 12px;
  background: #fefdf9;
  box-shadow: 0 28px 60px rgba(22, 59, 87, 0.32);
}

.mockup-bar {
  display: flex;
  gap: 6px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: var(--deep-sea-blue);
}

.mockup-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--warm-sand);
}

.mockup-layout {
  display: grid;
  grid-template-columns: 128px 1fr;
  min-height: 268px;
}

.mockup-layout aside {
  padding: 18px 14px;
  background: var(--soft-sky);
  color: var(--deep-sea-blue);
}

.mockup-layout aside strong,
.mockup-layout aside small {
  display: block;
}

.mockup-layout section {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.mini-kpi,
.mini-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.mini-kpi {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  color: var(--deep-sea-blue);
}

.mini-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  color: var(--ink);
  font-size: 14px;
}

.mini-card span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.mini-card.urgent span {
  background: var(--attention-amber);
  animation: subtle-pulse 2.5s ease-in-out infinite;
}

.mini-card.wait span {
  background: var(--action-blue);
}

.mini-card.done span {
  background: var(--success-green);
}

.phone-mockup {
  position: absolute;
  right: 8px;
  bottom: 26px;
  display: grid;
  gap: 8px;
  width: 142px;
  min-height: 220px;
  padding: 28px 14px 14px;
  border: 8px solid #17364f;
  border-radius: 28px;
  background: #fffaf0;
  color: var(--deep-sea-blue);
  box-shadow: 0 22px 52px rgba(22, 59, 87, 0.28);
}

.phone-speaker {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 42px;
  height: 5px;
  border-radius: 999px;
  background: rgba(22, 59, 87, 0.26);
  transform: translateX(-50%);
}

.abstract-document {
  position: absolute;
  top: 4px;
  left: 0;
  width: 150px;
  padding: 18px;
  border-radius: 8px;
  background: white;
  box-shadow: 0 14px 34px rgba(22, 59, 87, 0.16);
  transform: rotate(-7deg);
}

.abstract-document span {
  display: block;
  height: 8px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: rgba(22, 59, 87, 0.18);
}

.abstract-document span:nth-child(2),
.abstract-document span:nth-child(4) {
  width: 72%;
}

.paper-folder {
  position: absolute;
  top: 84px;
  left: 118px;
  width: 116px;
  height: 72px;
  border-radius: 8px;
  background: var(--warm-sand);
  box-shadow: 0 12px 30px rgba(22, 59, 87, 0.14);
}

.paper-folder::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 12px;
  width: 54px;
  height: 24px;
  border-radius: 7px 7px 0 0;
  background: #d9c492;
}

.floating-case {
  position: absolute;
  z-index: 4;
  max-width: 210px;
  padding: 11px 13px;
  border: 1px solid rgba(22, 59, 87, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--deep-sea-blue);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 14px 34px rgba(22, 59, 87, 0.16);
  animation: float-soft 6s ease-in-out infinite;
}

.card-one {
  top: 34px;
  right: 18px;
}

.card-two {
  top: 142px;
  left: -16px;
  animation-delay: 0.7s;
}

.card-three {
  right: -10px;
  bottom: 126px;
  animation-delay: 1.4s;
}

.card-four {
  left: 54px;
  bottom: 30px;
  animation-delay: 2.1s;
}

.chaos-band,
.comparison-band {
  padding: clamp(44px, 7vw, 76px) clamp(18px, 5vw, 72px);
  background: var(--warm-white);
}

.chaos-grid,
.comparison-grid,
.island-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 28px;
  align-items: center;
}

/* Security section: copy + scannable encryption points, image on the side. */
.security-band {
  padding: clamp(44px, 7vw, 76px) clamp(18px, 5vw, 72px);
  background: var(--warm-white);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
}
.security-copy > p {
  margin: 0 0 22px;
  max-width: 52ch;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}
.security-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.security-points li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.security-points svg {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--action-blue);
}
.security-points strong {
  display: block;
  color: var(--deep-sea-blue);
  font-size: 17px;
}
.security-points span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.security-image-frame {
  min-height: 340px;
}
@media (max-width: 900px) {
  .security-band {
    grid-template-columns: 1fr;
  }
}

.chaos-to-order {
  position: relative;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(140deg, rgba(221, 234, 243, 0.6), rgba(250, 247, 240, 0.9));
}

.chaos-paper {
  position: absolute;
  display: grid;
  place-items: center;
  width: 96px;
  height: 122px;
  border-radius: 8px;
  background: white;
  color: var(--muted);
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(22, 59, 87, 0.12);
  animation: gather-paper 1.05s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.paper-a {
  left: 38px;
  top: 38px;
  transform: rotate(-14deg);
}

.paper-b {
  left: 126px;
  top: 92px;
  transform: rotate(9deg);
  animation-delay: 0.08s;
}

.paper-c {
  left: 70px;
  bottom: 22px;
  transform: rotate(18deg);
  animation-delay: 0.16s;
}

.order-folder {
  position: absolute;
  right: 36px;
  top: 54px;
  display: grid;
  gap: 8px;
  width: 220px;
  min-height: 150px;
  padding: 22px;
  border-radius: 8px;
  background: var(--deep-sea-blue);
  color: white;
  box-shadow: 0 18px 40px rgba(22, 59, 87, 0.2);
  animation: rise-in 0.75s 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.order-folder svg {
  width: 28px;
  height: 28px;
  color: var(--warm-sand);
}

.order-folder span {
  color: rgba(255, 255, 255, 0.78);
}

.illustrated-grid article {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.illustrated-grid article:hover,
.route-steps li:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(22, 59, 87, 0.13);
}

.route-band {
  padding: clamp(44px, 7vw, 76px) clamp(18px, 5vw, 72px);
  background: var(--soft-sky);
}

.route-map {
  position: relative;
  min-height: 300px;
}

.route-line {
  position: absolute;
  inset: 50px 0 auto;
  width: 100%;
  height: 170px;
}

.route-line path {
  fill: none;
  stroke: var(--attention-amber);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 12 18;
  animation: route-draw 1.4s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.route-steps {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.route-steps li {
  display: grid;
  gap: 8px;
  min-height: 160px;
  padding: 16px;
  border: 1px solid rgba(22, 59, 87, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: rise-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.route-steps li:nth-child(2) {
  animation-delay: 0.08s;
}

.route-steps li:nth-child(3) {
  animation-delay: 0.16s;
}

.route-steps li:nth-child(4) {
  animation-delay: 0.24s;
}

.route-steps li:nth-child(5) {
  animation-delay: 0.32s;
}

.route-steps li:nth-child(6) {
  animation-delay: 0.4s;
}

.route-steps svg {
  width: 26px;
  height: 26px;
  color: var(--deep-sea-blue);
}

.route-steps strong {
  color: var(--deep-sea-blue);
}

.route-steps span {
  color: var(--muted);
  font-size: 14px;
}

.comparison-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.comparison-grid article {
  min-height: 280px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.compare-muted {
  background: #f4f1ea;
}

.compare-strong {
  background: var(--deep-sea-blue);
  color: white;
}

.compare-strong h3 {
  color: white;
}

.comparison-grid li {
  margin-bottom: 10px;
  line-height: 1.5;
}

.island-band {
  padding: clamp(44px, 7vw, 76px) clamp(18px, 5vw, 72px);
  background: linear-gradient(180deg, var(--soft-sky), var(--warm-white));
}

.island-illustration {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border: 1px solid rgba(22, 59, 87, 0.12);
  border-radius: 8px;
  background: linear-gradient(180deg, #d7edf5, #f6eddb);
}

.island-sea {
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background:
    repeating-linear-gradient(
      178deg,
      rgba(255, 255, 255, 0.28) 0 2px,
      transparent 2px 24px
    ),
    rgba(42, 91, 135, 0.35);
}

.island-shape {
  position: absolute;
  left: 50%;
  bottom: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 260px;
  height: 112px;
  border-radius: 55% 45% 48% 52%;
  background: var(--warm-sand);
  transform: translateX(-50%);
  box-shadow: 0 18px 44px rgba(22, 59, 87, 0.16);
}

.island-shape svg {
  width: 28px;
  height: 28px;
  color: var(--deep-sea-blue);
}

.lighthouse {
  position: relative;
  width: 28px;
  height: 82px;
  border-radius: 10px 10px 4px 4px;
  background: var(--deep-sea-blue);
}

.lighthouse::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 44px;
  height: 18px;
  border-radius: 12px 12px 4px 4px;
  background: var(--attention-amber);
  transform: translateX(-50%);
}

.floating-question {
  position: absolute;
  color: rgba(22, 59, 87, 0.22);
  font-size: 60px;
  font-weight: 900;
  animation: fade-away 4s ease-in-out infinite;
}

.q-one {
  top: 60px;
  left: 70px;
}

.q-two {
  right: 92px;
  bottom: 134px;
  animation-delay: 1.2s;
}

.pilot-note {
  max-width: 850px;
  margin: 0 0 24px;
  padding: 22px;
  border: 1px solid rgba(217, 154, 61, 0.34);
  border-radius: 8px;
  background: #fff8ec;
}

@keyframes nav-enter {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes visual-enter {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes float-soft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes sea-drift {
  0%,
  100% {
    transform: translateX(0) skewX(-8deg);
  }
  50% {
    transform: translateX(12px) skewX(-8deg);
  }
}

@keyframes subtle-pulse {
  0%,
  100% {
    opacity: 0.62;
  }
  50% {
    opacity: 1;
  }
}

@keyframes gather-paper {
  from {
    opacity: 0;
    transform: translate(-26px, 18px) rotate(-18deg);
  }
}

@keyframes route-draw {
  from {
    stroke-dashoffset: 260;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fade-away {
  0%,
  100% {
    opacity: 0.14;
    transform: translateY(0);
  }
  50% {
    opacity: 0.28;
    transform: translateY(-10px);
  }
}

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

@media (max-width: 900px) {
  .content-band,
  .feature-band,
  .steps-band,
  .access-band,
  .auth-shell,
  .dashboard-shell,
  .route-band,
  .plain-language-band,
  .island-band,
  .upload-shell,
  .analysis-shell {
    padding-right: clamp(14px, 4vw, 24px);
    padding-left: clamp(14px, 4vw, 24px);
  }

  .site-header,
  .dashboard-heading,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-disclaimer {
    text-align: left;
  }

  .top-nav {
    flex-wrap: wrap;
    width: 100%;
    gap: 8px;
  }

  .top-nav a,
  .top-nav button,
  .link-button,
  .text-button {
    min-height: 44px;
  }

  .top-nav a:not(.nav-cta) {
    padding: 8px 0;
  }

  .admin-filter-bar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .hero-surface {
    min-height: auto;
    padding-bottom: 360px;
  }

  .med-hero,
  .plain-language-panel,
  .chaos-grid,
  .comparison-grid,
  .island-band {
    grid-template-columns: 1fr;
  }

  .med-hero {
    align-items: start;
    min-height: auto;
  }

  .med-visual {
    min-height: 440px;
  }

  .route-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .route-line {
    display: none;
  }

  .product-preview {
    left: 18px;
    right: 18px;
    bottom: 28px;
    width: auto;
  }

  .feature-grid,
  .access-grid,
  .dashboard-grid,
  .dashboard-work__pair,
  .focus-rest,
  .case-workspace,
  .assistant-brief__grid,
  .auth-shell,
  .dashboard-heading--visual,
  .page-context-hero,
  .two-column {
    grid-template-columns: 1fr;
  }

  .auth-shell {
    align-items: start;
    gap: 18px;
  }

  .auth-shell--gateway {
    min-height: auto;
    background:
      linear-gradient(180deg, var(--warm-white), rgba(221, 234, 243, 0.5));
  }

  .auth-main {
    min-height: auto;
    padding: 22px;
  }

  .auth-shell--gateway::before {
    display: none;
  }

  .dashboard-heading--office,
  .page-context-hero--case,
  .page-context-hero--document {
    padding: 18px;
  }

  .auth-visual {
    min-height: 300px;
  }

  .auth-visual--gateway {
    order: 0;
    min-height: 260px;
    border-width: 8px;
    border-radius: 8px;
  }

  .focus-board__header {
    flex-direction: column;
  }

  .onboarding-hero,
  .route-wizard-grid,
  .onboarding-entry-panel,
  .route-created-panel,
  .first-run-command {
    grid-template-columns: 1fr;
  }

  .route-command-panel {
    position: static;
  }

  .onboarding-entry-panel__meta {
    justify-items: start;
  }

  .route-preview-heading {
    flex-direction: column;
  }

  .route-preview-command {
    position: static;
    flex-direction: column;
    align-items: stretch;
  }

  .first-run-steps {
    grid-template-columns: 1fr;
  }

  .service-advice-columns,
  .case-task-item {
    grid-template-columns: 1fr;
  }

  .focus-board__empty-actions {
    flex-direction: column;
  }

  .focus-board__empty-actions .primary-button,
  .focus-board__empty-actions .secondary-button {
    width: 100%;
    justify-content: center;
  }

  .assistant-note {
    max-width: none;
  }

  .assistant-brief__wide,
  .case-workspace .case-history-panel {
    grid-column: auto;
  }

  /* Декоративное фото дела не нужно на мобильных: рабочие данные первыми */
  .page-context-hero--case .context-visual {
    display: none;
  }

  .dashboard-visual,
  .case-visual,
  .document-visual {
    min-height: 220px;
  }

  .dashboard-visual--office {
    transform: none;
  }

  .dashboard-visual--office figcaption,
  .document-visual--desk figcaption {
    max-width: min(320px, calc(100% - 28px));
  }

  .help-tooltip__content {
    right: auto;
    left: 0;
    width: min(320px, calc(100vw - 40px));
  }
}

@media (max-width: 520px) {
  .site-header {
    position: static;
    padding: 12px 14px;
    gap: 12px;
  }

  .brand-symbol {
    width: 38px;
    height: 38px;
  }

  .brand-mark small {
    display: none;
  }

  .top-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    font-size: 13px;
  }

  .top-nav a,
  .top-nav button {
    justify-content: center;
    min-height: 44px;
    padding: 0 10px;
    border: 1px solid rgba(22, 59, 87, 0.12);
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.72);
    text-align: center;
  }

  .top-nav .nav-cta {
    grid-column: 1 / -1;
    border-color: transparent;
    background: var(--action-blue);
  }

  .hero-actions,
  .section-cta-row,
  .inline-form-row,
  .quota-summary,
  .route-actions,
  .route-choice-grid,
  .case-task-status-form {
    display: grid;
    grid-template-columns: 1fr;
  }

  .primary-button,
  .secondary-button,
  .nav-cta,
  input,
  select,
  textarea,
  button {
    min-height: 46px;
  }

  .auth-shell,
  .dashboard-shell,
  .upload-shell,
  .analysis-shell,
  .onboarding-shell {
    padding: 18px 14px;
  }

  .auth-main {
    padding: 18px;
  }

  .auth-copy h1,
  h1 {
    font-size: 34px;
    line-height: 1.06;
  }

  .hero-surface {
    padding-bottom: 430px;
  }

  .med-hero {
    padding-top: 42px;
  }

  .plain-language-panel {
    padding: 16px;
  }

  .plain-language-copy p:last-child {
    font-size: 17px;
  }

  .med-visual {
    min-height: 520px;
  }

  .context-visual {
    min-height: 150px;
    box-shadow: 0 12px 28px rgba(22, 59, 87, 0.12);
  }

  .dashboard-heading--assistant h1,
  .page-context-hero--assistant h1 {
    font-size: 30px;
  }

  .dashboard-heading--office,
  .page-context-hero--case,
  .page-context-hero--document,
  .focus-board,
  .onboarding-hero,
  .onboarding-entry-panel,
  .first-run-command,
  .route-question-panel,
  .route-command-panel,
  .route-preview-panel,
  .assistant-brief,
  .dashboard-panel,
  .auth-form,
  .command-panel {
    padding: 14px;
  }

  .dashboard-heading--office {
    min-height: auto;
  }

  .focus-item {
    min-height: auto;
    padding: 14px;
  }

  .focus-board__header h2,
  .assistant-brief__heading h2 {
    font-size: 24px;
  }

  .assistant-brief__grid section {
    min-height: auto;
    padding: 14px;
  }

  .metadata-list dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .auth-visual {
    min-height: 170px;
  }

  .auth-visual--gateway {
    min-height: 170px;
    border-width: 6px;
  }

  .auth-visual--gateway::before,
  .gateway-plate,
  .visual-token--lock,
  .case-room-marker,
  .visual-token--deadline {
    display: none;
  }

  .context-visual figcaption {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    border: 0;
    border-radius: 0;
    background: var(--deep-sea-blue);
    backdrop-filter: none;
  }

  .context-visual img {
    min-height: 150px;
    max-height: 190px;
  }

  .auth-visual--gateway figcaption {
    display: none;
  }

  .dashboard-visual--office figcaption,
  .document-visual--desk figcaption {
    position: relative;
    inset: auto;
    border: 0;
    border-radius: 0;
    background: var(--deep-sea-blue);
    color: white;
    backdrop-filter: none;
  }

  .document-visual--desk figcaption {
    background: var(--deep-sea-blue);
    color: white;
  }

  .dashboard-visual--office figcaption span,
  .document-visual--desk figcaption span {
    color: rgba(255, 255, 255, 0.84);
  }

  .office-focus-strip,
  .document-route,
  .visual-token,
  .case-room-marker,
  .gateway-plate {
    display: none;
  }

  .dashboard-list li {
    gap: 6px;
    overflow-wrap: anywhere;
  }

  .help-tooltip {
    display: none;
  }

  .document-route,
  .office-focus-strip {
    display: none;
  }

  .device-stage {
    left: 16px;
    right: 16px;
  }

  .laptop-mockup {
    left: 0;
    right: 0;
  }

  .mockup-layout {
    grid-template-columns: 1fr;
  }

  .mockup-layout aside {
    display: none;
  }

  .phone-mockup {
    right: 0;
    bottom: -92px;
  }

  .floating-case {
    max-width: 170px;
  }

  .card-one {
    top: 74px;
  }

  .card-two {
    top: 154px;
  }

  .card-three {
    bottom: 250px;
  }

  .card-four {
    left: 20px;
    bottom: 16px;
  }

  .route-steps {
    grid-template-columns: 1fr;
  }

  .help-tooltip {
    display: grid;
    margin-left: 0;
    margin-top: 2px;
  }

  .help-tooltip__content {
    position: static;
    width: 100%;
    margin-top: 8px;
    transform: none;
  }

  .help-tooltip:not(:hover):not(:focus-within) .help-tooltip__content {
    display: none;
  }

  h1 {
    font-size: 40px;
  }
}

/* ── Case deadline panel ──────────────────────────────────────────────────── */

.case-deadline-set {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  padding: 10px 12px;
  border-radius: 6px;
  background: rgba(22, 100, 61, 0.07);
  color: var(--deep-sea-blue);
  font-size: 14px;
}

.case-deadline-set strong {
  color: var(--deep-sea-blue);
}

.case-deadline-set .case-deadline-auto-note {
  color: var(--muted);
  font-size: 13px;
}

.case-deadline-form-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.case-deadline-form-row label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}

.case-deadline-form-row input[type="date"] {
  min-width: 150px;
}

/* Custom file picker: the native <input type=file> button text follows the
   browser locale (e.g. shows Russian on an EN page), so we hide it and render a
   translatable label + filename ourselves. */
.file-field {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.file-field__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.file-field__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--deep-sea-blue);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--deep-sea-blue);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.file-field__btn:hover {
  background: var(--soft-sky);
}
.file-field__input:focus-visible + .file-field__btn {
  outline: 2px solid var(--action-blue);
  outline-offset: 2px;
}
.file-field__btn svg {
  width: 16px;
  height: 16px;
}
.file-field__name {
  color: var(--muted);
  font-size: 14px;
}
