:root {
  --bg: #f7f9fb;
  --surface: #ffffff;
  --surface-muted: #f2f6f8;
  --line: #dce4e8;
  --line-strong: #c6d1d8;
  --text: #17242b;
  --muted: #687983;
  --accent: #006b83;
  --accent-strong: #00566a;
  --accent-soft: #e3f4f7;
  --pink: #ec2f8f;
  --pink-strong: #c91f75;
  --pink-soft: #ffe6f3;
  --red: #e02222;
  --amber: #ef7b13;
  --blue: #1f66c2;
  --green: #168a3a;
  --gray: #7b8790;
  --shadow: 0 14px 34px rgba(20, 39, 49, 0.08);
  --radius: 8px;
  --sidebar: 272px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  letter-spacing: 0;
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.public-home {
  --surface: #ffffff;
  --surface-muted: #fff4f8;
  --line: #eadfe7;
  --line-strong: #d8bfcc;
  --muted: #5e6f7a;
  --accent: #007c91;
  --accent-strong: #005e72;
  --accent-soft: #dff8f7;
  --pink: #f2268c;
  --pink-strong: #c91368;
  --pink-soft: #ffe4f2;
  --coral: #ff765e;
  --sun: #ffba43;
  --mint: #14b884;
  --violet: #6657ff;
  --warm-bg: #fff8fb;
  min-height: 100vh;
  background:
    radial-gradient(circle at 88% 18%, rgba(0, 124, 145, 0.09) 0 18%, transparent 19%),
    radial-gradient(circle at 10% 52%, rgba(242, 38, 140, 0.07) 0 16%, transparent 17%),
    linear-gradient(135deg, #fffafd 0%, #fbfeff 46%, #f8fff8 100%),
    #ffffff;
  color: var(--text);
}

.home-nav {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 5;
}

.home-nav .brand {
  min-height: auto;
  padding: 0;
  border: 0;
}

.home-nav nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.home-nav a {
  color: #52636d;
  text-decoration: none;
  font-weight: 720;
  font-size: 13px;
}

.home-nav a:hover {
  color: var(--pink-strong);
}

.home-login svg,
.home-actions svg {
  width: 17px;
  height: 17px;
}

.home-hero {
  max-width: 1220px;
  margin: 0 auto;
  padding: 44px 24px 68px;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
  gap: 58px;
  align-items: center;
  position: relative;
}

.home-hero-copy {
  display: grid;
  gap: 22px;
  position: relative;
  z-index: 2;
}

.home-hero h1 {
  margin: 0;
  font-size: clamp(40px, 4.7vw, 64px);
  line-height: 1;
  letter-spacing: 0;
  max-width: 760px;
}

.home-hero-copy p {
  margin: 0;
  color: #52636d;
  font-size: 18px;
  line-height: 1.65;
  max-width: 620px;
}

.home-actions,
.home-proof,
.security-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.home-actions {
  margin-top: 6px;
}

.home-proof span,
.security-points span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 11px;
  color: #52636d;
  background: #fbfcfd;
  font-size: 13px;
  font-weight: 720;
}

.home-proof i,
.feature-list i,
.security-points i {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  flex: 0 0 auto;
}

.home-proof svg,
.feature-list svg,
.security-points svg,
.workflow-steps svg,
.floating-note svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.9;
}

.hero-visual {
  min-height: 530px;
  position: relative;
  display: grid;
  align-items: center;
}

.visual-layer {
  position: absolute;
  border: 1px solid #d7e5ea;
  border-radius: 8px;
  background: #f8fcfd;
  box-shadow: 0 18px 55px rgba(20, 39, 49, 0.08);
}

.layer-back {
  inset: 42px 22px 78px 70px;
  transform: rotate(2.5deg);
}

.layer-mid {
  inset: 20px 54px 48px 30px;
  transform: rotate(-2deg);
  background: #ffffff;
}

.product-preview {
  position: relative;
  z-index: 2;
  border: 1px solid #d4e0e5;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(227, 244, 247, 0.8), rgba(255, 255, 255, 0) 42%),
    #ffffff;
  box-shadow: 0 24px 70px rgba(20, 39, 49, 0.14);
  overflow: hidden;
}

.preview-window {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
}

.preview-window span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cbd7dd;
}

.preview-window span:first-child {
  background: #ef7b13;
}

.preview-window span:nth-child(2) {
  background: #e0b919;
}

.preview-window span:nth-child(3) {
  background: #168a3a;
}

.preview-search {
  min-width: 0;
  width: min(310px, 54%);
  height: 28px;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 9px;
  background: #fff;
  color: #7d8b94;
}

.preview-search svg {
  width: 13px;
  height: 13px;
}

.preview-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  color: #80909a;
  font: 600 11px/1 var(--font);
  outline: 0;
}

.preview-bell {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: #435660;
  position: relative;
}

.preview-bell svg {
  width: 15px;
  height: 15px;
}

.preview-bell::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid #fff;
}

.preview-avatar {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #edf4f7;
  color: #253841;
  font-size: 11px;
}

.preview-shell {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
}

.preview-sidebar {
  border-right: 1px solid var(--line);
  background: #f5f9fb;
  padding: 16px 12px;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 14px;
}

.preview-sidebar strong {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 2px solid var(--accent);
  border-radius: 7px;
  color: var(--accent);
  font-size: 11px;
}

.preview-sidebar span {
  width: 26px;
  height: 8px;
  border-radius: 99px;
  background: #dbe7ec;
}

.preview-sidebar span:nth-child(2) {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--accent-soft);
  box-shadow: inset 3px 0 0 var(--accent);
}

.preview-main {
  min-width: 0;
  padding: 16px;
}

.preview-topbar {
  min-height: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: #52636d;
}

.preview-topbar span,
.preview-topbar strong {
  font-size: 13px;
}

.preview-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin: 16px 0;
}

.preview-metrics div {
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 14px;
  border-right: 1px solid var(--line);
}

.preview-metrics div:last-child {
  border-right: 0;
}

.preview-metrics strong {
  font-size: 30px;
}

.preview-metrics span,
.preview-panel p,
.preview-row em {
  color: #687983;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 12px;
}

.preview-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(251, 252, 253, 0.92);
  padding: 16px;
}

.preview-panel.wide {
  grid-row: span 2;
}

.preview-panel h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.preview-panel p {
  margin: 0;
  line-height: 1.55;
}

.preview-row {
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px 54px;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.preview-row b {
  font-size: 12px;
}

.preview-row .amber { color: var(--amber); }
.preview-row .red { color: var(--red); }
.preview-row .blue { color: var(--blue); }

.floating-note,
.floating-status {
  position: absolute;
  z-index: 3;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(20, 39, 49, 0.14);
}

.floating-note {
  min-width: 238px;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
}

.floating-note > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  flex: 0 0 auto;
}

.floating-note strong,
.floating-status strong {
  display: block;
  font-size: 13px;
}

.floating-note small,
.floating-status small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 650;
}

.floating-top {
  top: 4px;
  right: 0;
}

.floating-bottom {
  left: 0;
  bottom: 16px;
}

.floating-bottom > span {
  background: #168a3a;
}

.floating-status {
  right: 18px;
  bottom: -18px;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
}

.floating-status > span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #168a3a;
  box-shadow: 0 0 0 5px rgba(22, 138, 58, 0.12);
}

.public-home {
  background:
    linear-gradient(135deg, #fff8fb 0%, #f8fdff 46%, #f8fff8 100%);
}

.landing-nav {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  border-bottom: 1px solid rgba(236, 206, 221, 0.82);
  background: rgba(255, 250, 253, 0.82);
}

.beta-notice,
.app-beta-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-bottom: 1px solid rgba(242, 38, 140, 0.14);
  background:
    linear-gradient(90deg, rgba(242, 38, 140, 0.09), rgba(7, 124, 145, 0.08)),
    #fff;
  color: #475b66;
  padding: 9px 18px;
  font-size: 13px;
}

.beta-notice strong,
.app-beta-notice strong {
  color: var(--pink-strong);
  font-size: 11px;
  text-transform: uppercase;
}

.landing-brand.brand {
  min-height: auto;
  padding: 0;
  border: 0;
  min-width: 214px;
}

.brand-logo {
  display: block;
  width: 198px;
  height: auto;
  object-fit: contain;
}

.brand-icon {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 8px;
  background: #fff;
}

.landing-brand strong {
  font-size: 18px;
  line-height: 1.08;
  white-space: nowrap;
}

.landing-brand span {
  font-size: 13px;
}

.landing-nav nav,
.landing-footer nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.landing-nav a,
.landing-footer a {
  color: #21323b;
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.landing-nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.landing-nav-actions .text-button {
  color: #21323b;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.landing-nav-actions .primary-button.small {
  min-height: 42px;
  padding-inline: 20px;
  border-color: var(--pink);
  background: linear-gradient(135deg, var(--pink) 0%, var(--coral) 100%);
  box-shadow: 0 16px 34px rgba(242, 38, 140, 0.24);
}

.landing-nav a:hover,
.landing-footer a:hover,
.landing-nav-actions .text-button:hover {
  color: var(--pink-strong);
}

.landing-nav-actions .primary-button.small:hover {
  background: linear-gradient(135deg, var(--pink-strong) 0%, #ec5e4d 100%);
}

.landing-hero {
  max-width: 1320px;
  margin: 0 auto;
  padding: 34px 24px 24px;
  display: grid;
  grid-template-columns: minmax(340px, 0.78fr) minmax(540px, 1.22fr);
  gap: clamp(44px, 5vw, 84px);
  align-items: start;
}

.landing-hero-copy {
  padding-top: 50px;
}

.landing-hero-copy h1 {
  margin: 0;
  color: #10212a;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.01;
  letter-spacing: 0;
}

.landing-hero-copy h1 span,
.landing-hero-copy h1 strong {
  display: block;
}

.landing-hero-copy h1 strong {
  color: var(--pink);
  background: linear-gradient(90deg, var(--pink) 0%, var(--accent) 82%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-hero-copy p {
  max-width: 500px;
  margin: 26px 0 0;
  color: #4d6270;
  font-size: 18px;
  line-height: 1.58;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.landing-actions .primary-button {
  min-width: 166px;
  justify-content: center;
  border-color: var(--pink);
  background: linear-gradient(135deg, var(--pink) 0%, var(--coral) 100%);
  box-shadow: 0 16px 34px rgba(242, 38, 140, 0.25);
}

.landing-actions .primary-button:hover {
  background: linear-gradient(135deg, var(--pink-strong) 0%, #ec5e4d 100%);
}

.landing-actions .secondary-button {
  min-width: 252px;
  justify-content: center;
  color: var(--accent);
  border-color: rgba(0, 124, 145, 0.64);
  background: linear-gradient(135deg, #ffffff 0%, #f0fffd 100%);
}

.landing-actions .secondary-button:hover {
  color: var(--accent-strong);
  border-color: var(--accent);
  background: linear-gradient(135deg, #e5fffc 0%, #fff4fb 100%);
}

.landing-actions svg {
  width: 17px;
  height: 17px;
}

.hero-flow {
  width: min(100%, 510px);
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid #eadbe4;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 20px 54px rgba(113, 28, 75, 0.07);
}

.hero-flow article {
  min-height: 92px;
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 10px;
  padding: 18px 16px;
  border-right: 1px solid #eadbe4;
}

.hero-flow article:last-child {
  border-right: 0;
}

.hero-flow article::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-top: 1px solid #eadbe4;
  border-right: 1px solid #eadbe4;
  background: #fff;
  transform: translateY(-50%) rotate(45deg);
  z-index: 1;
}

.hero-flow article:last-child::after {
  display: none;
}

.hero-flow i {
  grid-row: 1 / span 2;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--accent);
  background: #e4fbf9;
}

.hero-flow article:first-child i {
  color: var(--pink);
  background: #ffe6f3;
}

.hero-flow article:last-child i {
  color: var(--mint);
  background: #e3fbf2;
}

.hero-flow svg {
  width: 17px;
  height: 17px;
}

.hero-flow b {
  color: var(--pink-strong);
  font-size: 11px;
  line-height: 1;
}

.hero-flow span {
  margin-top: 4px;
  color: #10212a;
  font-size: 12px;
  font-weight: 820;
  line-height: 1.2;
}

.landing-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 26px;
}

.landing-proof span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #526773;
  font-size: 12px;
  font-weight: 650;
}

.landing-proof i,
.landing-cta footer i {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  color: var(--accent);
}

.landing-proof svg,
.landing-cta footer svg {
  width: 16px;
  height: 16px;
}

.landing-product {
  position: relative;
  min-width: 0;
  padding: 22px 0 22px 28px;
}

.landing-product::before {
  content: "";
  position: absolute;
  inset: 0 12px 12px 0;
  border-radius: 8px;
  background:
    linear-gradient(rgba(0, 124, 145, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 124, 145, 0.055) 1px, transparent 1px),
    linear-gradient(135deg, rgba(255, 241, 248, 0.58) 0%, rgba(235, 251, 250, 0.78) 58%, rgba(255, 249, 239, 0.5) 100%);
  background-size: 42px 42px, 42px 42px, auto;
  opacity: 0.92;
}

.portal-positioning {
  min-height: 492px;
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  gap: 18px;
  border: 1px solid #eadce5;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: 0 28px 72px rgba(113, 28, 75, 0.08), 0 18px 48px rgba(0, 124, 145, 0.06);
}

.portal-positioning-head {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(234, 217, 227, 0.9);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff 0%, #fff7fb 100%);
  padding: 16px;
}

.portal-positioning-head .brand-icon {
  width: 44px;
  height: 44px;
}

.portal-positioning-head span {
  display: block;
  color: var(--pink-strong);
  font-size: 12px;
  font-weight: 820;
}

.portal-positioning-head strong {
  display: block;
  margin-top: 3px;
  color: #10212a;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.1;
}

.portal-audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.portal-audience-grid article {
  min-height: 180px;
  border: 1px solid rgba(234, 217, 227, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  padding: 18px 16px;
}

.portal-audience-grid article:nth-child(2) {
  background: rgba(241, 255, 253, 0.88);
}

.portal-audience-grid article:nth-child(3) {
  background: rgba(255, 248, 239, 0.88);
}

.portal-audience-grid i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--accent);
  background: #e4fbf9;
}

.portal-audience-grid svg {
  width: 22px;
  height: 22px;
}

.portal-audience-grid h3 {
  margin: 18px 0 0;
  color: #10212a;
  font-size: 18px;
  line-height: 1.12;
}

.portal-audience-grid p {
  margin: 9px 0 0;
  color: #5c707b;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 650;
}

.portal-service-link {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(242, 38, 140, 0.28);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff4fb 0%, #f0fffd 100%);
  color: #10212a;
  text-decoration: none;
  padding: 16px 18px;
}

.portal-service-link span {
  color: var(--pink-strong);
  font-size: 11px;
  font-weight: 820;
  text-transform: uppercase;
}

.portal-service-link strong {
  color: var(--accent);
  font-size: 15px;
}

.landing-app {
  min-height: 492px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(116px, 144px) minmax(0, 1fr);
  border: 1px solid #eadce5;
  border-radius: 8px;
  background: linear-gradient(180deg, #fffafb 0%, #ffffff 44%);
  overflow: hidden;
  box-shadow: 0 28px 72px rgba(113, 28, 75, 0.09), 0 18px 48px rgba(0, 124, 145, 0.07);
}

.hero-status-card,
.hero-client-card {
  position: absolute;
  z-index: 4;
  display: grid;
  border: 1px solid #eadce5;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 58px rgba(113, 28, 75, 0.13), 0 14px 36px rgba(0, 124, 145, 0.1);
}

.hero-status-card {
  top: 0;
  right: -6px;
  min-width: 176px;
  padding: 16px 18px;
  animation: floatSoft 7s ease-in-out infinite;
}

.hero-status-card span,
.hero-status-card small,
.hero-client-card span {
  color: #5f727c;
  font-size: 11px;
  font-weight: 720;
}

.hero-status-card strong {
  margin-top: 5px;
  color: var(--pink);
  font-size: 28px;
  line-height: 1;
}

.hero-status-card small {
  margin-top: 5px;
}

.hero-client-card {
  left: 0;
  bottom: 0;
  width: min(330px, 50%);
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 15px 16px;
  animation: floatSoft 8s ease-in-out infinite reverse;
}

.hero-client-card i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--pink);
  background: linear-gradient(135deg, #ffe6f3 0%, #e9fffc 100%);
}

.hero-client-card svg {
  width: 21px;
  height: 21px;
}

.hero-client-card strong {
  display: block;
  color: #10212a;
  font-size: 14px;
  line-height: 1.2;
}

@keyframes floatSoft {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -8px, 0);
  }
}

.landing-app-sidebar {
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #fff1f8 0%, #f1fffd 100%);
  padding: 18px 14px;
  display: grid;
  align-content: start;
  gap: 8px;
}

.mini-brand.brand {
  min-height: auto;
  padding: 0 0 14px;
  border: 0;
  gap: 8px;
}

.mini-brand .brand-icon {
  width: 28px;
  height: 28px;
}

.mini-brand strong {
  font-size: 11px;
}

.mini-brand span {
  font-size: 9px;
}

.landing-app-sidebar > span {
  min-height: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
  color: #465b66;
  font-size: clamp(9px, 0.78vw, 11px);
  font-weight: 650;
  padding: 0 8px;
}

.landing-app-sidebar > span.active {
  background: linear-gradient(135deg, #ffe1f1 0%, #dff8f7 100%);
  color: var(--pink-strong);
}

.landing-app-sidebar svg {
  width: 13px;
  height: 13px;
}

.landing-app-main {
  min-width: 0;
  padding: 18px 18px 22px;
  position: relative;
}

.landing-app-topbar {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.landing-app-topbar label {
  height: 34px;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #ead9e3;
  border-radius: 6px;
  padding: 0 12px;
  color: #8a9aa3;
}

.landing-app-topbar input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: 0;
  color: #738690;
  font: 600 12px/1 var(--font);
}

.landing-app-topbar svg {
  width: 15px;
  height: 15px;
}

.landing-app-topbar b {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffe6f3 0%, #dff8f7 100%);
  font-size: 12px;
}

.landing-app-topbar strong {
  font-size: 12px;
}

.landing-dashboard-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
  margin-top: 16px;
}

.landing-dashboard-head h2 {
  margin: 0;
  font-size: 23px;
  white-space: nowrap;
}

.landing-dashboard-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.landing-dashboard-head .secondary-button {
  min-height: 34px;
  padding-inline: 14px;
  font-size: 12px;
  color: var(--accent);
  border-color: rgba(0, 124, 145, 0.36);
  background: #ffffff;
}

.landing-metrics {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid #ead9e3;
  border-radius: 8px;
  overflow: hidden;
}

.landing-metrics div {
  min-height: 70px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  border-right: 1px solid #ead9e3;
  background: linear-gradient(180deg, #ffffff 0%, #fffafd 100%);
}

.landing-metrics div:last-child {
  border-right: 0;
}

.landing-metrics strong {
  font-size: 26px;
}

.landing-metrics span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.red { color: #e6224d; }
.amber { color: #f07a18; }
.blue { color: #3366d6; }
.green { color: #0f9f6e; }

.landing-work-card {
  margin-top: 20px;
  border: 1px solid #ead9e3;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.landing-card-head {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #ead9e3;
  background: linear-gradient(90deg, #fff8fb 0%, #f4fffd 100%);
  padding: 0 18px;
}

.landing-card-head h3 {
  margin-right: auto;
  font-size: 18px;
}

.landing-card-head button {
  min-height: 34px;
  border: 1px solid #ead9e3;
  border-radius: 6px;
  background: #fff;
  color: #253841;
  padding: 0 12px;
  font-weight: 700;
  font-size: 11px;
}

.landing-work-card table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 12px;
}

.landing-work-card th,
.landing-work-card td {
  padding: 10px 16px;
  text-align: left;
  border-bottom: 1px solid #f1e6ec;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-work-card th:nth-child(1),
.landing-work-card td:nth-child(1) { width: 31%; }
.landing-work-card th:nth-child(2),
.landing-work-card td:nth-child(2) { width: 17%; }
.landing-work-card th:nth-child(3),
.landing-work-card td:nth-child(3) { width: 18%; }
.landing-work-card th:nth-child(4),
.landing-work-card td:nth-child(4) { width: 20%; }
.landing-work-card th:nth-child(5),
.landing-work-card td:nth-child(5) { width: 14%; }

.landing-work-card th {
  color: #536873;
  font-size: 11px;
}

.landing-work-card tr:last-child td {
  border-bottom: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  border-radius: 5px;
  padding: 0 8px;
  font-size: 10px;
  font-weight: 800;
  background: #eef5f7;
}

.pill.red { background: #ffe6eb; color: #d81947; }
.pill.amber { background: #fff1dc; color: #bd6200; }
.pill.blue { background: #ecefff; color: #3366d6; }
.pill.green { background: #dcf8ec; color: #0f8e64; }

.landing-open-points {
  width: 266px;
  position: absolute;
  right: 18px;
  bottom: 22px;
  margin: 0;
  border: 1px solid #ead9e3;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #fff8fb 100%);
  padding: 14px;
}

.landing-open-points div,
.landing-open-points span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.landing-open-points h3 {
  margin: 0;
  font-size: 16px;
}

.landing-open-points a {
  color: var(--pink-strong);
  font-size: 11px;
  font-weight: 800;
}

.landing-open-points span {
  min-height: 36px;
  color: var(--accent);
  border-bottom: 1px solid #f1e6ec;
  font-size: 12px;
  font-weight: 750;
}

.landing-open-points span:last-child {
  border-bottom: 0;
}

.landing-open-points b {
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #e0521f;
  background: #fff0e4;
  font-size: 11px;
}

.landing-benefits {
  max-width: 1320px;
  margin: 2px auto 0;
  padding: 0 24px 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.landing-benefits article {
  min-height: 132px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 18px;
  align-content: center;
  text-align: left;
  padding: 24px 26px;
  border: 1px solid #eadbe4;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 38px rgba(113, 28, 75, 0.055);
}

.landing-benefits span,
.process-line i {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid #d7eeed;
  background: linear-gradient(135deg, #ffffff 0%, #e9fffc 100%);
  color: var(--accent);
  box-shadow: 0 12px 32px rgba(0, 124, 145, 0.09);
}

.landing-benefits article:first-child span {
  border-color: #f4cfe0;
  background: linear-gradient(135deg, #ffffff 0%, #ffe8f4 100%);
  color: var(--pink);
}

.landing-benefits article:last-child span {
  border-color: #cfeee2;
  background: linear-gradient(135deg, #ffffff 0%, #e6fff4 100%);
  color: var(--mint);
}

.landing-benefits article > span {
  grid-row: 1 / span 2;
}

.landing-benefits svg,
.process-line svg {
  width: 25px;
  height: 25px;
}

.landing-benefits h3 {
  margin: 0 0 6px;
  font-size: 19px;
  line-height: 1.12;
}

.landing-benefits p,
.process-line p,
.landing-feature-grid li,
.landing-cta p {
  color: #526773;
  line-height: 1.6;
}

.landing-benefits p {
  max-width: 300px;
  margin: 0;
  font-size: 13px;
  font-weight: 660;
}

.landing-fit {
  max-width: 1320px;
  margin: 18px auto 30px;
  padding: 38px 34px;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  border: 1px solid rgba(236, 206, 221, 0.82);
  border-radius: 8px;
  background:
    radial-gradient(circle at 14% 18%, rgba(242, 38, 140, 0.12) 0 22%, transparent 23%),
    linear-gradient(135deg, rgba(255, 244, 251, 0.95) 0%, rgba(239, 255, 253, 0.96) 58%, rgba(255, 249, 237, 0.88) 100%);
  box-shadow: 0 22px 60px rgba(113, 28, 75, 0.07);
}

.accounting-services {
  max-width: 1320px;
  margin: 0 auto 38px;
  padding: 34px;
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(420px, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  border: 1px solid rgba(234, 217, 227, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 244, 251, 0.86) 48%, rgba(239, 255, 253, 0.94) 100%);
  box-shadow: 0 24px 66px rgba(113, 28, 75, 0.07);
}

.services-illustration {
  min-height: 380px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 22%, rgba(242, 38, 140, 0.12) 0 18%, transparent 19%),
    linear-gradient(180deg, #fff 0%, #fff7fb 100%);
  overflow: hidden;
}

.services-illustration img {
  width: min(100%, 460px);
  display: block;
  filter: drop-shadow(0 24px 44px rgba(88, 38, 72, 0.14));
}

.services-copy h2 {
  max-width: 680px;
  margin: 18px 0 0;
  color: #10212a;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.04;
}

.services-copy > p {
  max-width: 620px;
  margin: 20px 0 0;
  color: #4d6270;
  font-size: 17px;
  line-height: 1.62;
}

.client-fit-list {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.client-fit-list article {
  min-height: 92px;
  display: grid;
  align-content: center;
  border: 1px solid rgba(234, 217, 227, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  padding: 16px 18px;
}

.client-fit-list strong {
  color: #10212a;
  font-size: 15px;
}

.client-fit-list span {
  margin-top: 7px;
  color: #5c707b;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 650;
}

.fit-copy h2 {
  max-width: 640px;
  margin: 18px 0 0;
  color: #10212a;
  font-size: clamp(34px, 4.1vw, 58px);
  line-height: 1.04;
}

.fit-copy p {
  max-width: 600px;
  margin: 18px 0 0;
  color: #4d6270;
  font-size: 16px;
  line-height: 1.64;
}

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

.fit-tags article {
  min-height: 86px;
  display: grid;
  align-content: center;
  border: 1px solid rgba(0, 124, 145, 0.2);
  border-radius: 8px;
  padding: 15px 16px;
  color: var(--accent);
  background: rgba(240, 255, 253, 0.88);
  box-shadow: 0 12px 32px rgba(0, 124, 145, 0.045);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.fit-tags article:hover,
.fit-tags article:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(242, 38, 140, 0.3);
  box-shadow: 0 20px 44px rgba(113, 28, 75, 0.08);
  outline: 0;
}

.fit-tags strong {
  color: #10212a;
  font-size: 14px;
  font-weight: 780;
}

.fit-tags span {
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
  color: #5c707b;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(8px);
  transition: max-height 180ms ease, margin-top 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.fit-tags article:hover span,
.fit-tags article:focus-visible span {
  max-height: 70px;
  margin-top: 7px;
  opacity: 1;
  transform: translateY(0);
}

.fit-visual {
  position: relative;
  display: grid;
  gap: 16px;
}

.fit-chart {
  border: 1px solid #ead9e3;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 248, 252, 0.92) 100%);
  padding: 26px;
  box-shadow: 0 22px 58px rgba(113, 28, 75, 0.1), 0 16px 42px rgba(0, 124, 145, 0.07);
}

.fit-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.fit-chart-head strong {
  color: #10212a;
  font-size: 18px;
}

.fit-chart-head span {
  color: var(--pink-strong);
  font-size: 12px;
  font-weight: 800;
}

.fit-bar {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.fit-bar span {
  color: #526773;
  font-size: 13px;
  font-weight: 760;
}

.fit-bar b {
  height: 18px;
  display: block;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--pink) 0%, var(--coral) 38%, var(--accent) var(--value), #eaf2f4 var(--value), #eaf2f4 100%);
  box-shadow: inset 0 0 0 1px rgba(16, 33, 42, 0.05);
}

.fit-mini-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.fit-mini-cards article {
  min-height: 104px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-content: center;
  border: 1px solid #dcebef;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f0fffd 100%);
  padding: 16px;
}

.fit-mini-cards i {
  grid-row: 1 / span 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--accent);
  background: #e3f9f7;
}

.fit-mini-cards svg {
  width: 22px;
  height: 22px;
}

.fit-mini-cards strong {
  color: #10212a;
  font-size: 15px;
}

.fit-mini-cards span {
  margin-top: 4px;
  color: #526773;
  font-size: 12px;
  font-weight: 650;
}

.section-title {
  text-align: center;
}

.section-title h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
}

.section-title p {
  margin: 8px 0 0;
  color: #526773;
  font-size: 15px;
}

.landing-process {
  padding: 46px 24px 44px;
  background:
    linear-gradient(135deg, #fff3fa 0%, #effffd 54%, #fff9ed 100%);
  border-top: 1px solid rgba(236, 206, 221, 0.64);
  border-bottom: 1px solid rgba(236, 206, 221, 0.64);
}

.process-line {
  max-width: 1240px;
  margin: 30px auto 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.process-line article {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  border: 1px solid rgba(234, 217, 227, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 22px 14px 20px;
  box-shadow: 0 14px 38px rgba(113, 28, 75, 0.045);
}

.process-line article:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -17px;
  width: 14px;
  border-top: 2px dashed #d2a9bd;
}

.process-line b {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink) 0%, var(--accent) 100%);
  color: #fff;
  font-size: 11px;
  margin-top: 14px;
  margin-bottom: 6px;
}

.process-line h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.process-line p {
  margin: 0;
  max-width: 180px;
  font-size: 12px;
  font-weight: 620;
}

.landing-features {
  max-width: 1320px;
  margin: 0 auto;
  padding: 42px 24px 44px;
}

.landing-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 22px;
}

.landing-feature-grid article {
  min-height: 260px;
  position: relative;
  border: 1px solid #ead9e3;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #fffafd 100%);
  padding: 22px 20px;
  overflow: hidden;
  cursor: default;
  box-shadow: 0 16px 42px rgba(113, 28, 75, 0.055);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.landing-feature-grid article:hover,
.landing-feature-grid article:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(242, 38, 140, 0.34);
  box-shadow: 0 26px 58px rgba(113, 28, 75, 0.1);
  outline: 0;
}

.landing-feature-grid article:nth-child(2) {
  background: linear-gradient(180deg, #ffffff 0%, #f2fffc 100%);
}

.landing-feature-grid article:nth-child(3) {
  background: linear-gradient(180deg, #ffffff 0%, #fff6ea 100%);
}

.landing-feature-grid article:nth-child(4) {
  background: linear-gradient(180deg, #ffffff 0%, #f5f3ff 100%);
}

.landing-feature-grid i {
  width: 52px;
  height: 52px;
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 14px;
  background: #e4fbf9;
}

.landing-feature-grid svg {
  width: 25px;
  height: 25px;
}

.landing-feature-grid em {
  position: absolute;
  top: 16px;
  right: 16px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--pink) 0%, var(--coral) 100%);
  color: #fff;
  padding: 5px 8px;
  font-size: 10px;
  font-style: normal;
  font-weight: 820;
}

.landing-feature-grid h3 {
  margin: 0;
  color: #10212a;
  font-size: 22px;
  line-height: 1.08;
}

.landing-feature-grid p {
  margin: 10px 0 0;
  color: #5c707b;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 680;
}

.landing-feature-grid ul {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 8px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.landing-feature-grid article:hover ul,
.landing-feature-grid article:focus-visible ul {
  opacity: 1;
  transform: translateY(0);
}

.landing-feature-grid li {
  position: relative;
  padding-left: 18px;
  color: #526773;
  font-size: 12px;
  line-height: 1.38;
  font-weight: 650;
}

.landing-feature-grid li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

.landing-cta {
  padding: 32px 24px 24px;
  text-align: center;
  background:
    linear-gradient(135deg, #fff0f7 0%, #ecfffb 50%, #fff8ed 100%);
}

.landing-cta h2 {
  margin: 0;
  color: var(--pink-strong);
  font-size: 28px;
}

.landing-cta p {
  margin: 8px 0 0;
  font-size: 15px;
}

.landing-cta > div {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.landing-cta .primary-button,
.landing-cta .secondary-button {
  min-width: 236px;
  justify-content: center;
}

.landing-cta .primary-button {
  border-color: var(--pink);
  background: linear-gradient(135deg, var(--pink) 0%, var(--coral) 100%);
  box-shadow: 0 16px 34px rgba(242, 38, 140, 0.22);
}

.landing-cta .secondary-button {
  color: var(--accent);
  border-color: rgba(0, 124, 145, 0.64);
  background: #ffffff;
}

.landing-cta footer {
  display: flex;
  justify-content: center;
  gap: 72px;
  margin-top: 24px;
  color: #526773;
  font-weight: 650;
}

.landing-cta footer span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.landing-contact {
  max-width: 1320px;
  margin: 0 auto;
  padding: 56px 24px;
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(420px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  border-top: 1px solid rgba(236, 206, 221, 0.82);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(242, 38, 140, 0.22);
  border-radius: 999px;
  color: var(--pink-strong);
  background: #fff4fb;
  font-size: 12px;
  font-weight: 780;
}

.contact-copy h2 {
  max-width: 560px;
  margin: 18px 0 0;
  color: #10212a;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.04;
}

.contact-copy > p {
  max-width: 560px;
  margin: 20px 0 0;
  color: #4d6270;
  font-size: 17px;
  line-height: 1.65;
}

.operator-card {
  max-width: 500px;
  margin-top: 28px;
  padding: 22px;
  border: 1px solid #eadce5;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f4fffe 100%);
  box-shadow: 0 18px 44px rgba(113, 28, 75, 0.07);
}

.operator-card strong {
  display: block;
  margin-bottom: 10px;
  color: #10212a;
  font-size: 16px;
}

.operator-card p {
  margin: 4px 0;
  color: #526773;
  font-weight: 650;
}

.operator-card a {
  display: inline-flex;
  margin-top: 12px;
  color: var(--accent);
  font-weight: 780;
  text-decoration: none;
}

.demo-request-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
  border: 1px solid #eadce5;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 28px 72px rgba(113, 28, 75, 0.1), 0 18px 48px rgba(0, 124, 145, 0.08);
}

.demo-request-form label {
  display: grid;
  gap: 8px;
  color: #526773;
  font-size: 13px;
  font-weight: 760;
}

.demo-request-form .full-field,
.demo-request-form button,
.demo-request-form .form-note {
  grid-column: 1 / -1;
}

.demo-request-form input,
.demo-request-form textarea {
  width: 100%;
  border: 1px solid #d7e2e8;
  border-radius: 8px;
  background: #ffffff;
  color: #10212a;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  padding: 13px 14px;
}

.demo-request-form textarea {
  min-height: 118px;
  resize: vertical;
}

.demo-request-form input:focus,
.demo-request-form textarea:focus {
  outline: 3px solid rgba(242, 38, 140, 0.14);
  border-color: var(--pink);
}

.demo-request-form button {
  justify-content: center;
  min-height: 50px;
  margin-top: 4px;
  border-color: var(--pink);
  background: linear-gradient(135deg, var(--pink) 0%, var(--coral) 100%);
  box-shadow: 0 16px 34px rgba(242, 38, 140, 0.22);
}

.form-note {
  margin: 0;
  color: #526773;
  font-size: 13px;
  font-weight: 650;
  text-align: center;
}

.landing-footer {
  min-height: 74px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--line);
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.landing-footer p {
  margin: 0;
  color: #526773;
  text-align: right;
  line-height: 1.45;
}

.home-nav {
  max-width: 1406px;
  padding-left: 0;
  padding-right: 0;
}

.home-login {
  box-shadow: 0 10px 22px rgba(20, 39, 49, 0.06);
}

.home-login svg {
  width: 18px;
  height: 18px;
}

.home-hero {
  max-width: 1406px;
  min-height: auto;
  padding: 52px 0 36px;
  grid-template-columns: minmax(520px, 0.62fr) minmax(720px, 1.38fr);
  gap: 46px;
  align-items: start;
  overflow: hidden;
}

.home-hero h1 {
  font-size: clamp(46px, 3.45vw, 54px);
  line-height: 1.08;
  max-width: 560px;
}

.home-hero h1 span {
  display: block;
}

.home-hero-copy {
  gap: 22px;
  min-width: 0;
  padding-top: 58px;
}

.home-proof {
  grid-column: 1 / -1;
  width: min(820px, 100%);
  margin-top: 6px;
  margin-bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 15px 38px rgba(20, 39, 49, 0.05);
  transform: translateY(27px);
}

.home-proof span {
  height: 72px;
  min-height: 72px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  gap: 3px 10px;
  padding: 8px 16px;
}

.home-proof span:last-child {
  border-right: 0;
}

.home-proof i {
  grid-row: 1 / 3;
  width: 34px;
  height: 34px;
}

.home-proof strong {
  color: var(--text);
  font-size: 13px;
}

.home-proof small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.15;
}

.hero-visual {
  min-height: 562px;
  margin-top: -52px;
}

.hero-stage {
  width: 100%;
  min-height: 562px;
  position: relative;
  display: grid;
  align-items: center;
  min-width: 0;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 4px 0 0 48px;
  border: 1px solid #e1e9ed;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(0, 107, 131, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0, 107, 131, 0.06) 1px, transparent 1px),
    #ffffff;
  background-size: 42px 42px;
  transform: rotate(-1.4deg);
  box-shadow: 0 30px 90px rgba(20, 39, 49, 0.08);
}

.main-preview {
  width: min(734px, 92%);
  margin-left: auto;
  margin-right: 74px;
  margin-top: -4px;
  z-index: 3;
  animation: float-main 7s ease-in-out infinite;
}

.main-preview .preview-window {
  justify-content: flex-start;
}

.preview-window strong {
  margin-left: 8px;
  color: #42545e;
  font-size: 12px;
}

.main-preview .preview-shell {
  grid-template-columns: 62px minmax(0, 1fr);
}

.main-preview .preview-main {
  padding: 14px 18px 18px;
}

.preview-section-title {
  margin: 14px 0 12px;
  color: var(--text);
  font-size: 16px;
}

.preview-section-title small {
  display: inline-grid;
  place-items: center;
  min-width: 50px;
  height: 20px;
  margin-left: 8px;
  border-radius: 99px;
  background: #eef4f7;
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
}

.preview-kanban {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.preview-kanban > div {
  min-height: 244px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(251, 252, 253, 0.94);
  padding: 12px;
}

.preview-kanban h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #263942;
  font-size: 12px;
  margin-bottom: 10px;
}

.preview-kanban h3 small {
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef4f7;
  color: var(--muted);
  font-size: 10px;
}

.preview-kanban article {
  min-height: 62px;
  border: 1px solid #e1e8ec;
  border-radius: 7px;
  background: #fff;
  padding: 10px;
  display: grid;
  gap: 4px;
  box-shadow: 0 8px 20px rgba(20, 39, 49, 0.05);
}

.preview-kanban article + article {
  margin-top: 8px;
}

.preview-kanban b {
  font-size: 12px;
}

.preview-kanban span {
  color: var(--muted);
  font-size: 12px;
}

.preview-kanban em {
  width: max-content;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 2px 6px;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.preview-kanban > div:first-child em {
  background: #ffe8ef;
  color: var(--pink-strong);
}

.preview-kanban > div:nth-child(2) em {
  background: #fff0df;
  color: #bd6200;
}

.scan-line {
  position: absolute;
  left: 62px;
  right: 0;
  top: 94px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(236, 47, 143, 0.88), transparent);
  opacity: 0.7;
  animation: scan-line 4.8s ease-in-out infinite;
}

.mini-window,
.command-palette {
  position: absolute;
  z-index: 4;
  border: 1px solid #d8e3e8;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 60px rgba(20, 39, 49, 0.14);
  backdrop-filter: blur(18px);
}

.mini-window-head {
  min-height: 42px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 13px;
}

.mini-window-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.mini-window-head strong {
  font-size: 12px;
}

.client-portal-window {
  width: 222px;
  right: 0;
  left: auto;
  top: 98px;
  padding-bottom: 10px;
  animation: float-left 6.8s ease-in-out infinite;
}

.client-portal-window p,
.client-portal-window h3,
.client-portal-window h4 {
  margin: 0 12px;
}

.client-portal-window p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
}

.client-portal-window h3 {
  margin-top: 3px;
  font-size: 13px;
}

.client-portal-window h4 {
  margin-top: 14px;
  color: var(--text);
  font-size: 12px;
}

.client-portal-window button {
  width: calc(100% - 20px);
  min-height: 50px;
  margin: 8px 10px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #263942;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  font-weight: 760;
  text-align: left;
}

.client-portal-window button:first-of-type {
  background: linear-gradient(135deg, var(--accent), #009fb0);
  border-color: var(--accent);
  color: #fff;
}

.client-portal-window button:nth-of-type(2) {
  background: linear-gradient(135deg, #06905f, #0ebd84);
  border-color: #0aa36d;
  color: #fff;
}

.client-portal-window i,
.home-proof i {
  font-style: normal;
}

.client-portal-window svg {
  width: 17px;
  height: 17px;
}

.portal-activity {
  margin: 8px 10px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.portal-activity span {
  min-height: 48px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  gap: 2px 8px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line);
}

.portal-activity span:last-child {
  border-bottom: 0;
}

.portal-activity i {
  grid-row: 1 / 3;
  color: var(--accent);
}

.portal-activity b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}

.portal-activity small {
  color: var(--muted);
  font-size: 10px;
}

.portal-nav {
  min-height: 52px;
  margin-top: 10px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
}

.portal-nav span {
  display: grid;
  justify-items: center;
  gap: 3px;
  color: #40525c;
}

.portal-nav svg {
  width: 14px;
  height: 14px;
}

.portal-nav small {
  font-size: 8px;
  font-weight: 760;
}

.deadline-window {
  width: 410px;
  right: 232px;
  bottom: -47px;
  animation: float-right 7.4s ease-in-out infinite;
}

.deadline-row {
  min-height: 43px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px 74px;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.deadline-row:last-child {
  border-bottom: 0;
}

.deadline-row span {
  font-weight: 760;
}

.deadline-row em {
  font-style: normal;
  color: var(--muted);
}

.deadline-row.red b { color: var(--red); }
.deadline-row.amber b { color: var(--amber); }
.deadline-row.green b { color: var(--green); }

.command-palette {
  width: 230px;
  left: -120px;
  bottom: -6px;
  padding: 12px;
  display: grid;
  gap: 8px;
  animation: float-command 8s ease-in-out infinite;
}

.command-palette strong {
  font-size: 12px;
  color: #42545e;
}

.command-palette span {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-weight: 720;
}

.hero-stage .floating-status {
  right: 244px;
  top: auto;
  bottom: -138px;
  z-index: 5;
  animation: pulse-status 2.6s ease-in-out infinite;
}

.workflow-shell {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(20, 39, 49, 0.06);
  padding: 20px 28px 26px;
}

.workflow-shell h2 {
  max-width: none;
  text-align: center;
  font-size: 24px;
  margin-bottom: 18px;
}

.workflow-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  position: relative;
}

.workflow-rail article {
  min-height: 114px;
  padding: 22px 22px 22px 126px;
  display: grid;
  align-content: start;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  position: relative;
  background: #fff;
}

.workflow-rail article:last-child {
  border-right: 1px solid var(--line);
}

.workflow-rail article span {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  position: absolute;
  left: 20px;
  top: 24px;
}

.workflow-rail article:nth-child(2) span {
  background: var(--pink-soft);
  color: var(--pink-strong);
}

.workflow-rail svg {
  width: 18px;
  height: 18px;
}

.workflow-rail h3 {
  font-size: 18px;
}

.workflow-rail p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 13px;
}

.workflow-rail em {
  position: absolute;
  left: 92px;
  top: 24px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: #53656f;
  font-style: normal;
  font-weight: 760;
}

@keyframes float-main {
  0%, 100% { transform: translateY(0) rotate(0.2deg); }
  50% { transform: translateY(-10px) rotate(-0.2deg); }
}

@keyframes float-left {
  0%, 100% { transform: translateY(0) rotate(-1.2deg); }
  50% { transform: translateY(9px) rotate(-0.4deg); }
}

@keyframes float-right {
  0%, 100% { transform: translateY(0) rotate(1deg); }
  50% { transform: translateY(-8px) rotate(0.3deg); }
}

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

@keyframes scan-line {
  0%, 100% { transform: translateY(0); opacity: 0; }
  20%, 70% { opacity: 0.7; }
  50% { transform: translateY(300px); opacity: 0.2; }
}

@keyframes pulse-status {
  0%, 100% { box-shadow: 0 18px 45px rgba(20, 39, 49, 0.14); }
  50% { box-shadow: 0 18px 45px rgba(0, 107, 131, 0.2); }
}

@media (prefers-reduced-motion: reduce) {
  .main-preview,
  .client-portal-window,
  .deadline-window,
  .command-palette,
  .hero-stage .floating-status,
  .scan-line {
    animation: none;
  }
}

.home-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 76px 24px;
}

.home-section h2,
.home-final h2 {
  margin: 0;
  font-size: clamp(30px, 3.5vw, 48px);
  line-height: 1.06;
  max-width: 760px;
}

.home-section p,
.home-final p {
  color: #52636d;
  font-size: 17px;
  line-height: 1.65;
}

.workflow-section {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 34px;
  max-width: 1406px;
  padding: 31px 0 76px;
}

.workflow-section .workflow-shell h2 {
  max-width: none;
  text-align: center;
  font-size: 24px;
  line-height: 1.15;
  margin-bottom: 18px;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.workflow-steps article,
.feature-list div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 20px;
}

.workflow-steps article span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 850;
}

.workflow-steps h3,
.feature-list strong {
  display: block;
  margin: 16px 0 8px;
  font-size: 18px;
}

.workflow-steps p,
.feature-list span {
  color: #52636d;
  line-height: 1.55;
}

.feature-band {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.feature-list strong {
  margin-top: 0;
}

.feature-list div {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  column-gap: 13px;
  align-items: start;
}

.feature-list div > span {
  grid-column: 2;
}

.security-section {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 48px;
  align-items: center;
}

.security-points {
  align-content: start;
}

.home-final {
  max-width: 1180px;
  margin: 0 auto 48px;
  padding: 48px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbfc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.auth-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(227, 244, 247, 0.62), rgba(247, 249, 251, 0) 42%),
    var(--bg);
}

.auth-panel {
  width: min(440px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.auth-brand {
  min-height: auto;
  border-bottom: 0;
  padding: 0;
}

.auth-copy {
  margin: 28px 0 20px;
}

.auth-copy h1 {
  font-size: 28px;
}

.auth-copy p {
  margin-top: 8px;
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label {
  display: grid;
  gap: 7px;
}

.auth-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.mode-button {
  min-height: 34px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-weight: 720;
}

.mode-button.active {
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 1px 3px rgba(20, 39, 49, 0.12);
}

.auth-helper-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.auth-reset-button {
  justify-self: start;
  min-height: 28px;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 720;
  padding: 0;
}

.auth-reset-button:hover {
  color: var(--accent-strong);
}

.credential-save-option {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 10px !important;
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
}

.credential-save-option input {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
}

.credential-help {
  margin: -5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.auth-message {
  min-height: 18px;
  color: var(--muted);
  font-size: 13px;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #fbfcfd;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.brand {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}

.auth-brand .brand-logo {
  width: 230px;
}

.app-brand-logo {
  width: 168px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 2px solid var(--accent);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 12px;
  border-radius: 7px;
}

.brand strong {
  display: block;
  font-size: 17px;
  line-height: 1.1;
}

.brand span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.nav-list {
  padding: 14px 8px;
  display: grid;
  gap: 2px;
}

.nav-item,
.nav-action {
  width: 100%;
  border: 0;
  background: transparent;
  color: #33444d;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 6px;
  text-align: left;
}

.nav-item svg,
.nav-action svg,
button svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
  flex: 0 0 auto;
}

.nav-item.active {
  background: var(--accent-soft);
  color: var(--accent-strong);
  box-shadow: inset 3px 0 0 var(--accent);
  font-weight: 700;
}

.nav-item:hover,
.nav-action:hover,
.icon-button:hover,
.secondary-button:hover {
  background: #edf4f6;
}

.sidebar-actions {
  margin-top: auto;
  padding: 12px 8px 18px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 3px;
}

.workspace {
  min-width: 0;
}

.topbar {
  min-height: 76px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 10px 24px;
  position: sticky;
  top: 0;
  z-index: 5;
}

.app-beta-notice {
  justify-content: flex-start;
  border-top: 1px solid rgba(242, 38, 140, 0.08);
}

.icon-button {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #25343c;
}

.search {
  height: 46px;
  flex: 1 1 260px;
  max-width: 680px;
  min-width: 180px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
}

.search input {
  border: 0;
  outline: 0;
  width: 100%;
  min-width: 0;
  color: var(--text);
}

.topbar-controls {
  margin-left: auto;
  display: flex;
  flex: 0 1 auto;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

select,
input,
textarea {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 6px;
  color: var(--text);
  min-height: 38px;
  padding: 0 11px;
}

.topbar-controls label,
.period-row label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notification-button {
  position: relative;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  border-radius: 6px;
  display: grid;
  place-items: center;
}

.notification-button strong {
  position: absolute;
  top: 3px;
  right: 2px;
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 10px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 650;
  max-width: 190px;
  min-width: 0;
}

.user-chip > span:first-child {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #dce5ea;
  display: grid;
  place-items: center;
  color: #42525b;
  font-size: 12px;
}

#userDisplayName {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(340px, 2fr);
  gap: 0;
  min-height: calc(100vh - 76px);
}

.content-grid.single-column {
  grid-template-columns: minmax(0, 1fr);
}

.content-grid.detail-hidden {
  grid-template-columns: minmax(0, 1fr);
}

.content-grid.single-column .main-column {
  border-right: 0;
}

.content-grid.detail-hidden .main-column {
  border-right: 0;
}

.content-grid.detail-hidden .detail-panel {
  display: none;
}

.doklady-workspace {
  display: grid;
  gap: 16px;
}

.doklady-summary-panel {
  padding: 18px;
}

.doklady-workspace-overview {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(232, 235, 241, 0.92);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 70px rgba(7, 7, 53, 0.08);
  padding: 18px;
}

.doklady-workspace-command-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.doklady-workspace-command-head span {
  display: block;
  color: #8d5cff;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.doklady-workspace-command-head h2 {
  margin: 4px 0 0;
  color: #070735;
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1.05;
  letter-spacing: 0;
}

.doklady-workspace-command-head p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.45;
}

.doklady-workspace-command-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.doklady-klik-button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, #2337ff, #8d5cff);
  color: #fff;
  box-shadow: 0 18px 36px rgba(35, 55, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.doklady-klik-button.secondary {
  border-color: #e1e8f5;
  background: #fff;
  color: #070735;
  box-shadow: none;
}

.doklady-workspace-status-strip {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(2, minmax(170px, 0.8fr));
  gap: 10px;
  align-items: stretch;
}

.doklady-workspace-status-card {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 6px;
  border: 1px solid #e1e8f5;
  border-radius: 16px;
  background: #fff;
  padding: 14px 16px;
  color: #070735;
  text-decoration: none;
}

.doklady-workspace-status-card span,
.doklady-credit-compact span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.doklady-workspace-status-card strong {
  overflow: hidden;
  color: #070735;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.04;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.doklady-workspace-status-card em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.doklady-workspace-status-card.needs-attention {
  border-color: rgba(245, 158, 11, 0.28);
  background: #fffaf0;
}

.doklady-credit-compact {
  gap: 8px;
}

.doklady-credit-status-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #eef2ff;
}

.doklady-credit-status-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2337ff, #8d5cff);
}

.doklady-command,
.doklady-native-grid,
.doklady-ingest-grid {
  display: grid;
  gap: 16px;
}

.doklady-command {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.doklady-command span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.doklady-command h2 {
  margin: 4px 0 6px;
  font-size: 24px;
}

.doklady-command p,
.doklady-upload-card p,
.doklady-detail-panel p,
.doklady-empty {
  color: var(--muted);
}

.doklady-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.doklady-stat-grid article,
.doklady-kv-grid div,
.doklady-bank-result {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px 16px;
}

.doklady-stat-grid span,
.doklady-kv-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.doklady-stat-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 28px;
  line-height: 1;
}

.doklady-stat-grid em {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-style: normal;
}

.doklady-message {
  margin: 14px 0 0;
  border: 1px solid var(--accent-soft);
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  padding: 10px 12px;
  font-weight: 700;
}

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

.doklady-upload-card {
  padding: 18px;
}

.doklady-dropzone {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: #f7f9fb;
  padding: 18px;
  color: var(--text);
}

.doklady-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.doklady-dropzone strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.doklady-dropzone svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.9;
  flex: 0 0 auto;
}

.doklady-dropzone span,
.doklady-bank-result span,
.doklady-preview {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.full-width {
  width: 100%;
}

.doklady-native-grid {
  grid-template-columns: minmax(520px, 1fr) minmax(520px, 0.9fr);
  align-items: start;
}

.doklady-list-panel,
.doklady-detail-panel {
  padding: 18px;
  overflow: hidden;
}

.doklady-detail-panel .panel-heading {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
}

.doklady-detail-panel .row-controls {
  flex-wrap: wrap;
  justify-content: flex-start;
  min-width: 0;
}

.doklady-detail-panel .row-controls .small {
  max-width: 250px;
  min-height: 38px;
  white-space: normal;
  line-height: 1.15;
}

.doklady-table table {
  min-width: 900px;
}

.doklady-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.doklady-filter-row label {
  display: grid;
  gap: 6px;
  min-width: 220px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.doklady-filter-row select {
  min-height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  padding: 6px 10px;
  color: var(--text);
  font: inherit;
  font-weight: 700;
}

.doklady-filter-row .secondary-button {
  white-space: normal;
  line-height: 1.2;
}

.doklady-table td strong,
.doklady-table td span {
  display: block;
}

.doklady-table td span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

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

.doklady-kv-grid strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
}

.doklady-items {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.doklady-items h4 {
  margin: 0 0 10px;
}

.doklady-items div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}

.doklady-preview {
  margin-top: 14px;
  line-height: 1.45;
}

.doklady-empty {
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  padding: 18px;
  background: #f7f9fb;
}

.doklady-empty.compact {
  padding: 12px;
}

.doklady-upload-success {
  display: grid;
  gap: 5px;
  margin: 14px 0;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  background: #ecfdf5;
  color: #14532d;
  padding: 12px 14px;
}

.doklady-upload-success span {
  color: #527064;
  font-weight: 650;
}

.doklady-last-batch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #fff7ed;
  padding: 12px 14px;
}

.doklady-last-batch span {
  display: block;
  color: #9a3412;
  font-size: 12px;
  font-weight: 700;
}

.doklady-filter-summary {
  align-self: center;
  color: var(--muted);
  font-weight: 760;
}

.doklady-filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto;
  gap: 10px;
  width: 100%;
}

.doklady-filter-panel input,
.doklady-filter-panel select,
.doklady-edit-form input,
.doklady-edit-form select {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
  color: var(--text);
  font: inherit;
  font-weight: 700;
}

.doklady-card-list {
  display: grid;
  gap: 10px;
}

.doklady-group-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f8ff;
  padding: 12px 14px;
  color: #1f235b;
}

.doklady-group-row span {
  color: var(--muted);
  font-weight: 760;
}

.doklady-card-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px 16px;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.doklady-card-row:hover,
.doklady-card-row.selected {
  border-color: #7c3aed;
  background: #f5f3ff;
}

.doklady-card-row.just-loaded {
  border-color: #86efac;
  background: #f0fdf4;
}

.doklady-card-main,
.doklady-card-side {
  display: grid;
  gap: 4px;
}

.doklady-card-main strong {
  color: #1f235b;
  font-size: 17px;
}

.doklady-card-main span,
.doklady-card-main em,
.doklady-card-main small,
.doklady-card-side small {
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}

.doklady-card-side {
  justify-items: end;
  align-content: start;
}

.doklady-status,
.doklady-ready-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.doklady-status.ready,
.doklady-ready-badge {
  background: #dcfce7;
  color: #15803d;
}

.doklady-status.amber {
  background: #fef3c7;
  color: #b45309;
}

.doklady-status.done {
  background: #e0f2fe;
  color: #0369a1;
}

.doklady-status.red {
  background: #fee2e2;
  color: #b91c1c;
}

.doklady-loaded-now {
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d !important;
  padding: 5px 8px;
}

.doklady-ready-card {
  display: grid;
  gap: 4px;
  margin: 16px 0;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  background: #fffbeb;
  padding: 14px 16px;
}

.doklady-ready-card.is-ready {
  border-left-color: #10b981;
  background: #ecfdf5;
}

.doklady-ready-card span {
  color: var(--muted);
  font-weight: 700;
}

.doklady-detail-body {
  display: grid;
  grid-template-columns: minmax(180px, 230px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.doklady-original-preview {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 260px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  padding: 18px;
  text-align: center;
}

.doklady-original-preview strong {
  color: var(--text);
}

.doklady-edit-form {
  margin-top: 16px;
}

.doklady-edit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.doklady-edit-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.doklady-edit-actions {
  margin-top: 16px;
}

.danger-soft {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fff7f7;
}

@media (max-width: 1180px) {
  .doklady-workspace-command-head {
    flex-direction: column;
  }

  .doklady-workspace-command-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .doklady-workspace-command-actions .doklady-klik-button {
    flex: 1;
  }

  .doklady-workspace-status-strip {
    grid-template-columns: 1fr;
  }

  .doklady-native-grid,
  .doklady-ingest-grid,
  .doklady-stat-grid,
  .doklady-command,
  .doklady-detail-body,
  .doklady-edit-grid,
  .doklady-filter-panel {
    grid-template-columns: 1fr;
  }
}

.main-column {
  padding: 28px 36px 42px;
  border-right: 1px solid var(--line);
  min-width: 0;
}

.detail-panel {
  background: var(--surface);
  padding: 28px 28px 42px;
  min-width: 0;
}

.section-heading,
.panel-heading,
.detail-top,
.period-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 26px;
  line-height: 1.15;
  font-weight: 760;
}

h2 {
  font-size: 18px;
  line-height: 1.25;
}

h3 {
  font-size: 15px;
  line-height: 1.25;
}

.section-heading p,
.detail-top p,
.muted {
  color: var(--muted);
}

.secondary-button,
.primary-button,
.danger-button,
.text-button {
  min-height: 38px;
  border-radius: 6px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: #22343d;
  font-weight: 680;
}

.primary-button {
  border-color: var(--pink);
  background: var(--pink);
  color: #fff;
}

.primary-button:hover {
  background: var(--pink-strong);
}

.secondary-button:disabled,
.primary-button:disabled,
.danger-button:disabled,
.text-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  box-shadow: none;
}

.primary-button:disabled:hover {
  background: var(--pink);
}

.secondary-button.active {
  border-color: var(--pink);
  color: var(--pink-strong);
  background: var(--pink-soft);
}

.danger-button {
  border-color: #f2bbbb;
  color: var(--red);
}

.text-button {
  border: 0;
  color: var(--accent);
  background: transparent;
  padding: 0 2px;
  min-height: 28px;
}

.small {
  min-height: 34px;
  padding: 0 11px;
  font-size: 13px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(100px, 1fr));
  margin: 22px 0 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.metric {
  padding: 18px 20px;
  min-height: 88px;
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  display: block;
  font-size: 27px;
  line-height: 1;
  margin-bottom: 11px;
}

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

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(20, 39, 49, 0.03);
}

.panel + .panel {
  margin-top: 18px;
}

.panel-heading {
  min-height: 58px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
}

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

.secondary-button.danger {
  color: var(--red);
  border-color: rgba(217, 45, 32, 0.32);
  background: #fff8f8;
}

.secondary-button.danger:hover {
  border-color: rgba(217, 45, 32, 0.62);
  background: #fff0f0;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  text-align: left;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

th {
  color: #41515a;
  font-size: 12px;
  font-weight: 760;
}

td {
  color: #2e3c43;
}

tbody tr {
  transition: background 0.16s ease;
}

tbody tr:hover,
tbody tr.selected {
  background: #f3f8fa;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 720;
}

.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.status.red,
.metric.red strong {
  color: var(--red);
}

.status.amber,
.metric.amber strong {
  color: var(--amber);
}

.status.blue,
.metric.blue strong {
  color: var(--blue);
}

.status.green,
.metric.green strong {
  color: var(--green);
}

.status.gray {
  color: var(--gray);
}

.lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: 18px;
  margin-top: 18px;
}

.admin-panel {
  overflow: hidden;
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.admin-summary article {
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 18px 24px;
  border-right: 1px solid var(--line);
  background: linear-gradient(135deg, #fffafd 0%, #f4fffe 100%);
}

.admin-summary article:last-child {
  border-right: 0;
}

.admin-summary strong {
  color: var(--accent);
  font-size: 28px;
  line-height: 1;
}

.admin-summary span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
}

.admin-table table {
  min-width: 1040px;
}

.admin-table td:first-child strong,
.admin-table td:first-child span {
  display: block;
}

.admin-table td:first-child span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.work-stack,
.office-workspace {
  display: grid;
  gap: 18px;
}

.onboarding-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 12% 0%, rgba(242, 38, 140, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(227, 244, 247, 0.88), rgba(255, 255, 255, 0) 62%),
    var(--surface);
  box-shadow: 0 12px 30px rgba(20, 39, 49, 0.06);
  overflow: hidden;
}

.onboarding-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 18px 4px;
}

.onboarding-hero h2 {
  margin-top: 5px;
}

.onboarding-hero p {
  max-width: 760px;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.onboarding-progress {
  height: 7px;
  margin: 12px 18px 0;
  border-radius: 999px;
  background: rgba(7, 124, 145, 0.1);
  overflow: hidden;
}

.onboarding-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), var(--accent), var(--green));
}

.onboarding-grid,
.office-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.onboarding-grid article {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  padding: 16px;
  display: grid;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.onboarding-grid article:hover {
  border-color: rgba(7, 124, 145, 0.38);
  box-shadow: 0 14px 28px rgba(20, 39, 49, 0.08);
  transform: translateY(-1px);
}

.onboarding-grid article.done {
  border-color: rgba(22, 138, 58, 0.28);
  background: linear-gradient(135deg, #f3fff8 0%, #ffffff 100%);
}

.onboarding-grid article.todo {
  border-color: rgba(242, 38, 140, 0.2);
}

.onboarding-grid article em {
  position: absolute;
  top: 14px;
  right: 14px;
  border-radius: 999px;
  padding: 4px 8px;
  background: #fff5fb;
  color: var(--pink-strong);
  font-size: 10px;
  font-style: normal;
  font-weight: 820;
}

.onboarding-grid article.done em {
  background: #e9f9ef;
  color: var(--green);
}

.onboarding-grid article.done > span {
  color: var(--green);
  background: #e9f9ef;
}

.onboarding-grid article > span,
.field-label,
.readonly-field > span,
.office-profile span {
  color: var(--muted);
  font-weight: 720;
}

.onboarding-grid article > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent);
}

.onboarding-grid svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.9;
}

.onboarding-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.onboarding-grid small {
  display: block;
  color: #49616c;
  font-size: 12px;
  line-height: 1.45;
}

.office-profile {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.office-profile div,
.readonly-field {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 13px;
}

.office-profile strong,
.readonly-field strong {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 5px;
}

.setup-state {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 820;
}

.setup-state.done {
  color: var(--green);
  background: #e9f9ef;
}

.setup-state.todo {
  color: var(--amber);
  background: #fff7e8;
}

.setup-state svg {
  width: 15px;
  height: 15px;
}

.office-logo-preview img {
  display: block;
  max-width: 180px;
  max-height: 80px;
  margin-top: 10px;
  object-fit: contain;
}

.panel-footer-actions {
  display: flex;
  justify-content: flex-end;
  padding: 0 16px 16px;
}

.first-steps-panel {
  overflow: hidden;
}

.first-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
}

.first-steps-grid article {
  display: grid;
  align-content: start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 16px;
}

.first-steps-grid article > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff2fa;
  color: var(--pink);
}

.first-steps-grid article p {
  color: var(--muted);
  line-height: 1.5;
}

.guide-workflow {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 16px;
}

.guide-story,
.guide-map {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.guide-story {
  display: grid;
  gap: 14px;
  padding: 22px;
  background:
    radial-gradient(circle at 0% 0%, rgba(242, 38, 140, 0.13), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #eefafe 100%);
}

.guide-badge {
  width: fit-content;
  border-radius: 999px;
  background: #fff2fa;
  color: var(--pink-strong);
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 820;
  text-transform: uppercase;
}

.guide-story h3 {
  max-width: 540px;
  font-size: 28px;
  line-height: 1.08;
}

.guide-story p {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.55;
}

.guide-next {
  display: grid;
  gap: 8px;
  margin-top: 4px;
  border: 1px solid rgba(7, 124, 145, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 14px;
}

.guide-next span {
  color: var(--muted);
  line-height: 1.45;
}

.guide-next .primary-button {
  width: fit-content;
}

.guide-map {
  display: grid;
  gap: 10px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(227, 244, 247, 0.55), rgba(255, 255, 255, 0.86)),
    #fff;
}

.guide-map div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 2px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.guide-map b {
  grid-row: span 2;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff2fa;
  color: var(--pink-strong);
}

.guide-map .done b {
  background: #e9f9ef;
  color: var(--green);
}

.guide-map span {
  color: var(--muted);
  font-size: 12px;
}

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

.guide-role-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 14px;
}

.guide-role-grid-wide article {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 3px;
  background: #fff;
}

.guide-role-grid-wide article > span {
  grid-row: span 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
}

.guide-role-grid-wide svg {
  width: 18px;
  height: 18px;
}

.guide-role-grid small {
  display: block;
  color: var(--muted);
  line-height: 1.45;
}

.email-preview {
  margin: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 16px;
}

.email-preview p {
  margin: 10px 0 0;
  color: #43545d;
  line-height: 1.6;
}

.compact-list {
  display: grid;
}

.list-row,
.issue-row,
.document-row,
.employee-row,
.check-row {
  min-height: 48px;
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.list-row > *,
.issue-row > *,
.document-row > *,
.employee-row > *,
.check-row > * {
  min-width: 0;
}

.list-row {
  grid-template-columns: 20px minmax(120px, 1fr) minmax(88px, 0.58fr) 88px minmax(78px, auto);
  font-size: 12px;
}

.list-row > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-row input {
  min-height: auto;
  width: 16px;
  height: 16px;
}

.issue-buckets,
.document-list,
.employee-list {
  display: grid;
}

.issue-row {
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
}

.issue-row strong {
  min-width: 28px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  background: #fff0e6;
  color: var(--amber);
}

.detail-top {
  align-items: flex-start;
}

.detail-top h2 {
  font-size: 24px;
}

.period-row {
  margin-top: 20px;
  justify-content: flex-end;
}

.tabs {
  display: flex;
  gap: 18px;
  margin-top: 22px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.tab {
  min-height: 42px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #41515a;
  padding: 0;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 720;
}

.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.detail-content {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.status-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
}

.status-summary .actions {
  display: grid;
  gap: 10px;
}

.summary-line {
  margin-top: 12px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.check-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.check-head,
.check-row {
  grid-template-columns: minmax(130px, 1fr) 145px 150px 72px;
}

.check-head {
  min-height: 42px;
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line-strong);
  color: #41515a;
  font-size: 12px;
  font-weight: 760;
}

.row-menu {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.empty-state {
  min-height: 160px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  padding: 22px;
}

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

.form-grid label,
.full-field {
  display: grid;
  gap: 7px;
}

.full-field {
  grid-column: 1 / -1;
}

.form-section-title {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  color: #10212a;
  font-size: 15px;
  font-weight: 860;
}

.form-helper {
  border: 1px solid rgba(0, 124, 145, 0.16);
  border-radius: 8px;
  background: rgba(229, 249, 251, 0.55);
  padding: 12px 14px;
  color: var(--muted);
  line-height: 1.45;
}

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

.check-option {
  min-height: 38px;
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 9px !important;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  padding: 0 10px;
  color: #33444d;
  font-weight: 680;
}

.check-option input {
  width: 16px;
  height: 16px;
}

.ares-lookup-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.ares-preview,
.ares-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 14px;
}

.ares-card {
  margin-top: 16px;
  display: grid;
  gap: 14px;
}

.ares-card p,
.ares-preview p {
  margin: 5px 0 0;
  color: var(--muted);
}

.ares-grid {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 8px 12px;
}

.ares-grid.compact {
  grid-template-columns: 110px minmax(0, 1fr);
  margin-top: 10px;
}

.ares-grid span {
  color: var(--muted);
}

textarea {
  resize: vertical;
  padding: 10px 11px;
  min-height: 92px;
}

.modal-root {
  position: fixed;
  inset: 0;
  background: rgba(16, 29, 36, 0.36);
  display: grid;
  place-items: center;
  z-index: 20;
  padding: 20px;
}

.notice-root {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(16, 29, 36, 0.24);
}

.notice-card {
  position: relative;
  width: min(520px, 100%);
  display: grid;
  justify-items: center;
  gap: 14px;
  border: 1px solid rgba(234, 217, 227, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(135deg, #fff8fc 0%, #f1fffd 100%);
  box-shadow: 0 28px 80px rgba(20, 39, 49, 0.22);
  padding: 34px 30px 28px;
  text-align: center;
}

.notice-card.warning {
  border-color: rgba(242, 38, 140, 0.28);
}

.notice-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.notice-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #fff0f8;
  color: var(--pink);
}

.notice-card.success .notice-icon {
  background: #e9f9ef;
  color: var(--green);
}

.notice-icon svg {
  width: 24px;
  height: 24px;
}

.notice-card h2 {
  max-width: 420px;
  color: #10212a;
  font-size: 28px;
  line-height: 1.1;
}

.notice-card p {
  max-width: 440px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.58;
}

.notice-card footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
}

.modal {
  width: min(680px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  background: var(--surface);
  border-radius: 8px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.modal header,
.modal footer {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
}

.modal footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  justify-content: flex-end;
}

.modal-body {
  padding: 22px;
}

.doklady-email-modal-copy {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.doklady-email-modal-copy span {
  width: fit-content;
  border-radius: 999px;
  background: #fff0f8;
  color: var(--pink);
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.doklady-email-modal-copy p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
}

.doklady-email-field {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 800;
}

.doklady-email-field input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  outline: none;
}

.doklady-email-field input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 107, 131, 0.12);
}

.doklady-email-help {
  margin-top: 14px;
  border: 1px solid #cfe6ec;
  border-radius: 8px;
  background: #f3fbfd;
  color: #244b57;
  padding: 12px 14px;
  font-weight: 750;
  line-height: 1.45;
}

.doklady-credit-modal {
  width: min(920px, 100%);
}

.doklady-credit-modal header h2 {
  margin: 2px 0 0;
  color: #070735;
  font-size: 28px;
  line-height: 1.1;
}

.doklady-modal-eyebrow {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: #f2edff;
  color: #8d5cff;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.doklady-credit-modal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.doklady-credit-modal-grid article {
  min-width: 0;
  display: grid;
  gap: 6px;
  border: 1px solid #e1e8f5;
  border-radius: 14px;
  background: #fff;
  padding: 14px;
}

.doklady-credit-modal-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.doklady-credit-modal-grid strong {
  overflow: hidden;
  color: #070735;
  font-size: 24px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.doklady-credit-modal-grid em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
  line-height: 1.35;
}

.doklady-credit-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.doklady-credit-actions > div {
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid #e1e8f5;
  border-radius: 14px;
  background: #f8fbff;
  padding: 16px;
}

.doklady-credit-actions h3 {
  margin: 0;
  color: #070735;
  font-size: 18px;
}

.doklady-credit-actions p {
  margin: 0;
  color: var(--muted);
  font-weight: 720;
  line-height: 1.45;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(24px);
  background: #112a34;
  color: #fff;
  border-radius: 7px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: min(720px, calc(100vw - 28px));
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast button {
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 0 10px;
  font-weight: 760;
}

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

.client-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  min-height: 84px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
}

.client-card:hover {
  border-color: var(--accent);
}

.client-card p {
  color: var(--muted);
  margin-top: 5px;
}

.client-card .meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tag {
  min-height: 24px;
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--surface-muted);
  color: #43545d;
  font-size: 12px;
  font-weight: 720;
}

.triage-workspace {
  display: grid;
  gap: 16px;
}

.triage-summary {
  padding: 18px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.62fr);
  gap: 20px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 230, 243, 0.9), rgba(255, 255, 255, 0) 62%),
    var(--surface);
}

.portal-kicker {
  color: var(--pink-strong);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.triage-summary h2,
.client-portal-copy h2 {
  margin-top: 5px;
  font-size: 22px;
}

.triage-summary p,
.client-portal-copy p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.triage-mini-stats,
.client-portal-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
}

.triage-mini-stats div,
.client-portal-stats div {
  padding: 14px;
  border-right: 1px solid var(--line);
}

.triage-mini-stats div:last-child,
.client-portal-stats div:last-child {
  border-right: 0;
}

.triage-mini-stats strong,
.client-portal-stats strong {
  display: block;
  font-size: 26px;
}

.triage-mini-stats span,
.client-portal-stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.triage-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 12px;
}

.triage-column {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfc;
  min-width: 0;
}

.triage-column header {
  min-height: 48px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.triage-column header span {
  min-width: 28px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--pink-soft);
  color: var(--pink-strong);
  font-weight: 820;
}

.triage-cards {
  padding: 12px;
  display: grid;
  gap: 10px;
}

.triage-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
  display: grid;
  gap: 10px;
}

.triage-source,
.triage-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.triage-source > span:first-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.triage-card p,
.triage-card small {
  color: var(--muted);
  line-height: 1.45;
}

.triage-empty {
  min-height: 86px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
}

.shortcut-grid,
.semaphore-grid {
  padding: 16px;
  display: grid;
  gap: 10px;
}

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

.shortcut-grid div,
.semaphore-grid div {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

kbd {
  min-width: 32px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--pink-strong);
  font-weight: 820;
  box-shadow: inset 0 -2px 0 rgba(20, 39, 49, 0.08);
}

.semaphore-grid span:last-child,
.shortcut-grid span {
  color: var(--muted);
  font-weight: 650;
}

.modal-shortcuts {
  padding: 0;
}

.client-portal-hero {
  padding: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.75fr);
  gap: 20px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(227, 244, 247, 0.8), rgba(255, 230, 243, 0.56)),
    var(--surface);
}

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

.client-action {
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  text-align: left;
  box-shadow: 0 1px 0 rgba(20, 39, 49, 0.03);
}

.client-action:hover {
  border-color: var(--pink);
  box-shadow: 0 12px 26px rgba(20, 39, 49, 0.08);
}

.client-action > span {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}

.client-action.primary > span {
  background: var(--pink);
  color: #fff;
}

.client-action strong {
  display: block;
  font-size: 18px;
}

.client-action small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.4;
}

.app-shell.compact-mode .topbar {
  height: 62px;
}

.app-shell.compact-mode .brand {
  min-height: 62px;
  padding-block: 12px;
}

.app-shell.compact-mode .nav-item,
.app-shell.compact-mode .nav-action {
  min-height: 34px;
}

.app-shell.compact-mode .main-column,
.app-shell.compact-mode .detail-panel {
  padding-top: 20px;
}

.app-shell.compact-mode .metric {
  min-height: 64px;
  padding: 12px 16px;
}

.app-shell.compact-mode .panel-heading {
  min-height: 46px;
}

.app-shell.compact-mode th,
.app-shell.compact-mode td {
  padding: 9px 14px;
}

.app-shell.compact-mode .list-row,
.app-shell.compact-mode .issue-row,
.app-shell.compact-mode .document-row,
.app-shell.compact-mode .employee-row,
.app-shell.compact-mode .check-row {
  min-height: 38px;
  padding-inline: 14px;
}

.app-shell.compact-mode .client-card {
  min-height: 64px;
  padding: 10px 12px;
}

.app-shell.collapsed {
  --sidebar: 78px;
}

.app-shell.collapsed .brand .brand-logo {
  width: 42px;
  height: 42px;
  object-fit: cover;
  object-position: left center;
  border-radius: 10px;
}

.app-shell.collapsed .brand div:not(.brand-mark),
.app-shell.collapsed .nav-item span.label,
.app-shell.collapsed .nav-action {
  display: none;
}

.app-shell.collapsed .brand {
  justify-content: center;
  padding-inline: 10px;
}

.app-shell.collapsed .nav-item {
  justify-content: center;
  padding-inline: 0;
}

@media (max-width: 860px) {
  .doklady-credit-modal-grid,
  .doklady-credit-actions {
    grid-template-columns: 1fr;
  }

  .doklady-credit-modal-grid strong {
    white-space: normal;
  }

  .home-hero {
    grid-template-columns: 1fr;
    padding-top: 28px;
    padding-bottom: 44px;
  }

  .hero-visual {
    width: min(900px, 100%);
    margin: 0 auto;
  }

  .product-preview {
    max-width: 760px;
  }

  .hero-stage {
    min-height: 680px;
  }

  .home-hero-copy {
    padding-top: 20px;
  }

  .home-proof {
    width: 100%;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .main-column {
    border-right: 0;
  }

  .detail-panel {
    border-top: 1px solid var(--line);
  }
}

@media (min-width: 861px) and (max-width: 1000px) {
  .landing-nav {
    gap: 16px;
  }

  .landing-nav nav {
    gap: 18px;
  }

  .landing-nav-actions {
    gap: 12px;
  }

  .landing-nav-actions .primary-button.small {
    min-height: 40px;
    padding-inline: 16px;
  }

  .landing-hero {
    gap: 28px;
  }

  .landing-app {
    height: 568px;
    min-height: 0;
    grid-template-columns: 116px minmax(0, 1fr);
  }

  .landing-app-sidebar {
    padding: 14px 10px;
    gap: 4px;
  }

  .mini-brand.brand {
    padding-bottom: 10px;
  }

  .landing-app-sidebar > span {
    min-height: 23px;
    gap: 6px;
    padding-inline: 6px;
    font-size: 8px;
  }

  .landing-app-sidebar svg {
    width: 11px;
    height: 11px;
  }

  .landing-app-main {
    padding: 12px;
  }

  .landing-app-topbar {
    min-height: 30px;
    gap: 8px;
  }

  .landing-app-topbar label {
    height: 30px;
    padding-inline: 8px;
  }

  .landing-app-topbar input {
    font-size: 10px;
  }

  .landing-app-topbar strong {
    font-size: 10px;
  }

  .landing-dashboard-head {
    margin-top: 14px;
  }

  .landing-dashboard-head h2 {
    font-size: 23px;
  }

  .landing-dashboard-head p {
    font-size: 11px;
  }

  .landing-dashboard-head .secondary-button {
    min-height: 30px;
    padding-inline: 10px;
    font-size: 10px;
  }

  .landing-metrics {
    margin-top: 14px;
  }

  .landing-metrics div {
    min-height: 62px;
  }

  .landing-metrics strong {
    font-size: 22px;
  }

  .landing-metrics span {
    font-size: 9px;
  }

  .landing-work-card {
    margin-top: 16px;
  }

  .landing-card-head {
    min-height: 44px;
    padding-inline: 12px;
  }

  .landing-card-head h3 {
    font-size: 17px;
  }

  .landing-card-head button {
    min-height: 30px;
    padding-inline: 9px;
    font-size: 9px;
  }

  .landing-work-card table {
    font-size: 10px;
  }

  .landing-work-card th,
  .landing-work-card td {
    padding: 9px 8px;
  }

  .pill {
    min-height: 18px;
    padding-inline: 6px;
    font-size: 8px;
  }

  .landing-open-points {
    width: 214px;
    right: 12px;
    bottom: 12px;
    margin-top: 14px;
    padding: 10px;
  }

  .landing-open-points h3 {
    font-size: 14px;
  }

  .landing-open-points a,
  .landing-open-points span {
    font-size: 10px;
  }

  .landing-open-points span {
    min-height: 28px;
  }
}

@media (max-width: 860px) {
  .home-nav {
    grid-template-columns: 1fr auto;
    padding: 14px 18px;
  }

  .home-nav nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    gap: 18px;
  }

  .home-hero {
    padding: 24px 18px 42px;
    gap: 34px;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
  }

  .home-hero h1 {
    max-width: min(330px, calc(100vw - 56px));
    font-size: 29px;
    line-height: 1.06;
    overflow-wrap: normal;
  }

  .home-hero-copy p {
    font-size: 16px;
    max-width: min(330px, calc(100vw - 56px));
  }

  .home-actions,
  .home-proof {
    max-width: min(330px, calc(100vw - 56px));
  }

  .home-proof {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: start;
    width: min(330px, calc(100vw - 36px));
    border-radius: 8px;
    margin-bottom: 0;
    transform: none;
  }

  .home-proof span {
    height: auto;
    width: 100%;
    max-width: 100%;
    white-space: normal;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .home-proof span:last-child {
    border-bottom: 0;
  }

  .product-preview {
    max-width: none;
  }

  .hero-visual {
    min-height: auto;
    width: 100%;
    max-width: calc(100vw - 36px);
    overflow: hidden;
    gap: 12px;
    align-items: start;
  }

  .visual-layer {
    display: none;
  }

  .preview-shell {
    grid-template-columns: 1fr;
  }

  .preview-sidebar {
    display: none;
  }

  .preview-main {
    padding: 12px;
  }

  .floating-note,
  .floating-status {
    position: static;
    width: 100%;
    min-width: 0;
    box-shadow: 0 12px 32px rgba(20, 39, 49, 0.09);
  }

  .hero-stage {
    min-height: auto;
    display: grid;
    gap: 12px;
    width: 100%;
    max-width: calc(100vw - 36px);
    overflow: hidden;
  }

  .hero-stage::before,
  .scan-line {
    display: none;
  }

  .main-preview,
  .client-portal-window,
  .deadline-window,
  .command-palette,
  .hero-stage .floating-status {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: none;
    margin: 0;
    transform: none;
    animation: none;
    min-width: 0;
    max-width: calc(100vw - 36px);
    overflow: hidden;
  }

  .main-preview {
    display: none;
  }

  .client-portal-window button {
    width: calc(100% - 24px);
    margin-inline: 12px;
  }

  .portal-activity {
    margin-inline: 12px;
  }

  .client-portal-window,
  .deadline-window,
  .command-palette,
  .hero-stage .floating-status {
    box-shadow: 0 12px 32px rgba(20, 39, 49, 0.09);
  }

  .mini-window-head strong {
    display: none;
  }

  .preview-topbar {
    align-items: flex-start;
    gap: 8px;
    flex-direction: column;
    padding-block: 12px;
  }

  .preview-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .preview-metrics div {
    min-height: 72px;
    padding: 10px;
  }

  .preview-metrics strong {
    font-size: 22px;
  }

  .preview-shell,
  .preview-main,
  .preview-kanban,
  .preview-kanban > div {
    min-width: 0;
    max-width: 100%;
  }

  .preview-grid,
  .preview-kanban,
  .workflow-rail,
  .workflow-steps,
  .feature-band,
  .feature-list,
  .security-section {
    grid-template-columns: 1fr;
  }

  .preview-metrics div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .preview-metrics div:last-child {
    border-bottom: 0;
  }

  .preview-panel.wide {
    grid-row: auto;
  }

  .workflow-rail article {
    min-height: auto;
    padding: 22px 22px 22px 96px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .workflow-rail article:last-child {
    border-bottom: 0;
  }

  .workflow-shell {
    padding: 18px;
  }

  .workflow-shell h2 {
    text-align: left;
    font-size: 23px;
  }

  .home-section {
    padding: 52px 18px;
  }

  .home-final {
    margin-inline: 18px;
    flex-direction: column;
    align-items: flex-start;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

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

  .topbar {
    height: auto;
    flex-wrap: wrap;
    padding: 14px;
  }

  .topbar-controls {
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
  }

  .main-column,
  .detail-panel {
    padding: 20px 14px 30px;
  }

  .metric-grid,
  .lower-grid {
    grid-template-columns: 1fr;
  }

  .metric {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .status-summary,
  .form-grid,
  .onboarding-grid,
  .first-steps-grid,
  .guide-workflow,
  .guide-role-grid,
  .office-action-grid,
  .office-profile,
  .checkbox-grid,
  .triage-summary,
  .triage-columns,
  .shortcut-grid,
  .client-portal-hero,
  .client-action-grid {
    grid-template-columns: 1fr;
  }

  .onboarding-hero {
    flex-direction: column;
  }

  .onboarding-hero .row-controls,
  .guide-next .primary-button {
    width: 100%;
  }

  .onboarding-hero .row-controls button,
  .guide-next .primary-button {
    justify-content: center;
  }

  .check-head,
  .check-row {
    grid-template-columns: minmax(120px, 1fr) minmax(120px, 0.8fr);
  }

  .check-head span:nth-child(3),
  .check-head span:nth-child(4),
  .check-row > span:nth-child(3),
  .check-row .row-menu {
    display: none;
  }
}

@media (max-width: 860px) {
  .landing-nav,
  .landing-footer {
    max-width: 100%;
  }

  .landing-nav {
    grid-template-columns: 1fr auto;
    padding-block: 14px;
  }

  .landing-nav nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    flex-wrap: wrap;
    overflow: visible;
    row-gap: 8px;
    padding-bottom: 2px;
  }

  .landing-hero {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 34px;
  }

  .landing-hero-copy {
    max-width: 760px;
    padding-top: 10px;
  }

  .landing-product {
    padding-left: 0;
  }

  .landing-app {
    min-height: auto;
  }

  .portal-positioning {
    min-height: auto;
  }

  .portal-audience-grid,
  .fit-tags {
    grid-template-columns: 1fr;
  }

  .fit-tags span {
    max-height: none;
    margin-top: 7px;
    opacity: 1;
    transform: none;
  }

  .landing-benefits,
  .landing-fit,
  .accounting-services,
  .landing-contact,
  .process-line,
  .landing-feature-grid {
    grid-template-columns: 1fr;
  }

  .landing-fit {
    margin-top: 4px;
    padding: 30px 22px;
  }

  .fit-mini-cards {
    grid-template-columns: 1fr;
  }

  .accounting-services {
    margin-inline: 24px;
    padding: 24px;
  }

  .services-illustration {
    min-height: 300px;
  }

  .client-fit-list {
    grid-template-columns: 1fr;
  }

  .landing-benefits {
    gap: 14px;
  }

  .landing-benefits article {
    border-right: 1px solid #eadbe4;
    border-bottom: 1px solid #eadbe4;
    padding: 22px;
  }

  .process-line article:not(:last-child)::after {
    display: none;
  }

  .process-line article {
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }

  .landing-feature-grid {
    max-width: 560px;
    margin-inline: auto;
  }

  .landing-feature-grid ul {
    opacity: 1;
    transform: none;
  }

  .demo-request-form {
    grid-template-columns: 1fr;
  }

  .landing-footer {
    grid-template-columns: 1fr;
    justify-items: start;
    padding-block: 24px;
  }

  .landing-footer nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .landing-footer p {
    text-align: left;
  }
}

@media (max-width: 760px) {
  .landing-nav {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px 18px;
    overflow: hidden;
  }

  .landing-nav-actions {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .landing-nav-actions .primary-button,
  .landing-nav-actions .text-button {
    width: 100%;
    justify-content: center;
    min-width: 0;
    padding-inline: 10px;
    font-size: 12px;
    white-space: nowrap;
    line-height: 1.15;
  }

  .landing-nav nav {
    gap: 18px;
    max-width: 100%;
    flex-wrap: wrap;
    overflow: visible;
    row-gap: 8px;
  }

  .landing-hero {
    padding: 28px 18px 48px;
    max-width: 100vw;
    overflow: hidden;
  }

  .landing-hero-copy {
    width: 100%;
    min-width: 0;
    max-width: min(354px, calc(100vw - 36px));
  }

  .landing-hero-copy h1 {
    max-width: min(354px, calc(100vw - 36px));
    font-size: 40px;
    line-height: 1.02;
    overflow-wrap: anywhere;
  }

  .landing-hero-copy p {
    width: 100%;
    max-width: min(354px, calc(100vw - 36px));
    font-size: 15px;
    overflow-wrap: break-word;
  }

  .landing-product {
    max-width: 100%;
    overflow: hidden;
    padding: 28px 0 0;
  }

  .landing-product::before {
    inset: 0;
  }

  .portal-positioning {
    padding: 18px;
  }

  .portal-positioning-head {
    align-items: flex-start;
  }

  .portal-positioning-head strong {
    font-size: 22px;
  }

  .portal-service-link {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-actions,
  .landing-cta > div,
  .landing-cta footer {
    flex-direction: column;
  }

  .landing-actions .primary-button,
  .landing-actions .secondary-button,
  .landing-cta .primary-button,
  .landing-cta .secondary-button {
    width: 100%;
    min-width: 0;
  }

  .hero-flow {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-flow article {
    min-height: 72px;
    border-right: 0;
    border-bottom: 1px solid #eadbe4;
  }

  .hero-flow article:last-child {
    border-bottom: 0;
  }

  .hero-flow article::after,
  .hero-status-card,
  .hero-client-card {
    display: none;
  }

  .landing-app {
    grid-template-columns: 1fr;
  }

  .landing-app-sidebar {
    display: none;
  }

  .landing-app-main {
    padding: 14px;
  }

  .landing-app-topbar strong,
  .landing-dashboard-head .secondary-button {
    display: none;
  }

  .landing-dashboard-head {
    display: grid;
  }

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

  .landing-metrics div {
    border-bottom: 1px solid var(--line);
  }

  .landing-work-card {
    overflow-x: auto;
  }

  .landing-card-head {
    flex-wrap: wrap;
    padding-block: 12px;
  }

  .landing-open-points {
    position: static;
    width: 100%;
    margin-top: 16px;
  }

  .landing-benefits,
  .landing-process,
  .landing-features,
  .accounting-services,
  .landing-cta {
    padding-inline: 18px;
  }

  .accounting-services {
    margin-inline: 18px;
    padding: 22px;
  }

  .services-copy h2 {
    font-size: 32px;
  }

  .services-copy > p {
    font-size: 15px;
  }

  .services-illustration {
    min-height: 240px;
  }

  .landing-benefits article {
    grid-template-columns: 48px minmax(0, 1fr);
    min-height: 116px;
  }

  .landing-benefits span,
  .process-line i {
    width: 48px;
    height: 48px;
  }

  .section-title h2,
  .landing-cta h2 {
    font-size: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-status-card,
  .hero-client-card {
    animation: none;
  }
}
