@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  font-family: "Manrope", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light dark;
  font-synthesis: none;
  --purple: #a997ff;
  --purple-strong: #806df0;
  --green: #38c88a;
  --red: #ff6969;
  --orange: #ffad58;
  --blue: #54a7ff;
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: #202124; }
button, input, textarea, select { font: inherit; }
button { border: 0; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--purple, #a997ff); outline-offset: 3px; }
input, textarea, select { outline: none; }
textarea { resize: vertical; }

.platform-shell,
.auth-shell,
.public-shell,
.login-page,
.document-page,
.boot-screen {
  --bg: #f4f5f8;
  --surface: #fff;
  --surface-2: #f7f7fa;
  --surface-3: #ececf1;
  --text: #1f2026;
  --muted: #767984;
  --line: #e4e5ea;
  --sidebar: #fff;
  --shadow: 0 12px 34px rgba(24, 25, 31, .08);
  background: var(--bg);
  color: var(--text);
}

.platform-shell.dark,
.auth-shell.dark,
.public-shell.dark,
.login-page.dark,
.document-page.dark,
.boot-screen.dark {
  --bg: #242526;
  --surface: #2d2e30;
  --surface-2: #292a2c;
  --surface-3: #36373a;
  --text: #f7f7f8;
  --muted: #9b9da5;
  --line: rgba(255, 255, 255, .09);
  --sidebar: #292a2c;
  --shadow: 0 14px 40px rgba(0, 0, 0, .22);
}

.platform-shell.palette-lime:not(.dark) {
  --bg: #f7f8f3;
  --surface: #ffffff;
  --surface-2: #f3f5ee;
  --surface-3: #e8ece1;
  --text: #182019;
  --muted: #697168;
  --line: #e2e7dd;
  --sidebar: #fbfcf8;
  --shadow: 0 12px 34px rgba(45, 58, 35, .07);
  --purple: #83bc19;
  --purple-strong: #6da80b;
}

.platform-shell.palette-lime:not(.dark) .logo-mark::before {
  background: #aee73f;
}

.platform-shell.palette-lime:not(.dark) .primary-button {
  background: #b8ed4b;
  color: #172016;
  box-shadow: 0 7px 18px rgba(121, 174, 27, .17);
}

.platform-shell.palette-lime:not(.dark) .nav-button.active,
.platform-shell.palette-lime:not(.dark) .mobile-nav button.active {
  background: #eef4e5;
  color: #568c08;
}

.platform-shell.design-system:not(.dark) {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f8f8f9;
  --surface-3: #f3f2f8;
  --text: #242533;
  --muted: #808192;
  --line: #f0eff5;
  --sidebar: #f8f8f9;
  --shadow: 0 4px 8px rgba(9, 11, 33, .035);
  --purple: #6361d9;
  --purple-strong: #4f4cc7;
  font-family: "Avenir Next", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.platform-shell.design-system:not(.dark) .app-brand { color: #484964; }
.platform-shell.design-system:not(.dark) .logo-mark::before { background: #6361d9; }
.platform-shell.design-system:not(.dark) .company-switcher { border-color: transparent; border-radius: 8px; background: transparent; }
.platform-shell.design-system:not(.dark) .company-icon { border-radius: 6px; background: #e2e0ee; color: #6361d9; }
.platform-shell.design-system:not(.dark) .nav-button { border-radius: 7px 24px 24px 7px; }
.platform-shell.design-system:not(.dark) .nav-button.active { background: #f3f2f8; color: #242533; }
.platform-shell.design-system:not(.dark) .nav-button.active em { background: #6361d9; color: #fff; }
.platform-shell.design-system:not(.dark) .topbar { border-bottom-color: #f0eff5; background: #fff; }
.platform-shell.design-system:not(.dark) .platform-content { background: #fff; }
.platform-shell.design-system:not(.dark) .panel { border-color: #f3f2f8; border-radius: 12px; box-shadow: 0 4px 4px rgba(9, 11, 33, .025); }
.platform-shell.design-system:not(.dark) .primary-button { background: #242533; color: #fff; box-shadow: none; }
.platform-shell.design-system:not(.dark) .eyebrow { color: #6361d9; }

.boot-screen { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 16px; }
.boot-screen p { margin: 0; font-weight: 700; letter-spacing: .02em; }
.logo-mark { position: relative; width: 26px; height: 22px; display: inline-block; }
.logo-mark::before { content: ""; position: absolute; inset: 2px 1px 7px 2px; border-radius: 3px 10px 3px 3px; background: linear-gradient(135deg, #d0c8ff, #806df0); transform: skewX(-18deg); }
.logo-mark::after { content: ""; position: absolute; left: 2px; bottom: 1px; width: 11px; height: 11px; background: inherit; border-left: 5px solid var(--sidebar, #292a2c); transform: rotate(45deg); }

.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.15fr) minmax(390px, .85fr); }
.auth-promo { position: relative; min-height: 100vh; padding: 42px clamp(36px, 6vw, 96px); overflow: hidden; background: radial-gradient(circle at 20% 10%, rgba(169, 151, 255, .28), transparent 35%), linear-gradient(145deg, #1d1e21, #292a2d 58%, #25232d); color: #fff; }
.auth-promo::after { content: ""; position: absolute; width: 520px; height: 520px; right: -210px; bottom: -210px; border: 1px solid rgba(169,151,255,.2); border-radius: 50%; box-shadow: 0 0 0 70px rgba(169,151,255,.035), 0 0 0 140px rgba(169,151,255,.025); }
.auth-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; color: #d8d1ff; }
.auth-copy { position: relative; z-index: 1; max-width: 670px; margin-top: clamp(110px, 20vh, 210px); }
.eyebrow { display: block; color: var(--purple); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.auth-copy h1 { max-width: 680px; margin: 20px 0; font-size: clamp(38px, 5vw, 68px); line-height: 1.02; letter-spacing: -.045em; }
.auth-copy p { max-width: 610px; margin: 0; color: #b9bac2; font-size: 17px; line-height: 1.65; }
.role-preview { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.role-preview span { padding: 10px 14px; border: 1px solid rgba(255,255,255,.13); border-radius: 999px; background: rgba(255,255,255,.045); color: #e6e6ea; font-size: 12px; }
.auth-panel { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 44px; background: var(--bg); }
.auth-card { width: min(430px, 100%); }
.auth-card h2 { margin: 10px 0 8px; color: var(--text); font-size: 32px; letter-spacing: -.03em; }
.auth-card > p { margin: 0 0 28px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.auth-card form { display: grid; gap: 16px; }
.auth-card label, .field, .password-form label, .report-form label, .customer-review-form label { display: grid; gap: 8px; }
.auth-card label span, .field > span, .password-form label span, .report-form label span, .customer-review-form label span { color: var(--muted); font-size: 12px; font-weight: 650; }
.auth-card input, .field input, .field select, .field textarea, .password-form input, .report-form textarea, .customer-review-form textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--text); }
.auth-card input:focus, .field input:focus, .field select:focus, .field textarea:focus, .password-form input:focus, .report-form textarea:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(169,151,255,.12); }
.auth-theme { position: absolute; top: 28px; right: 28px; }
.theme-button { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--surface); color: var(--muted); }
.auth-switch { width: 100%; margin-top: 18px; background: transparent; color: var(--purple-strong); font-size: 13px; }
.form-error, .global-error { padding: 12px 14px; border: 1px solid rgba(255,105,105,.28); border-radius: 10px; background: rgba(255,105,105,.09); color: var(--red); font-size: 13px; }

.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.public-shell {
  min-height: 100vh;
  overflow-x: clip;
  background: #0d1117;
  color: #f0f6fc;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --landing-accent: #a98bff;
  --landing-accent-bright: #c8b7ff;
  --landing-line: rgba(240,246,252,.12);
  --landing-muted: #8b949e;
}
.public-shell .eyebrow { color: var(--landing-accent-bright); font-size: 11px; font-weight: 600; letter-spacing: .12em; }
.public-shell .primary-button { font-weight: 600; }
.public-shell a:focus-visible,
.public-shell button:focus-visible,
.public-shell input:focus-visible { outline-color: #d8ceff; outline-offset: 4px; }
.public-header { position: sticky; z-index: 100; top: 0; width: 100%; border-bottom: 1px solid rgba(240,246,252,.08); background: #010409; transition: border-color .3s ease, background-color .3s ease, box-shadow .3s ease; }
.public-header.scrolled { border-color: rgba(240,246,252,.14); background: rgba(1,4,9,.92); box-shadow: 0 16px 36px rgba(0,0,0,.32); backdrop-filter: blur(18px); }
.public-header-inner { width: min(1280px, calc(100% - 48px)); min-height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; margin: 0 auto; }
.public-brand { width: max-content; display: inline-flex; align-items: center; gap: 11px; border: 0; background: transparent; color: #f8f7fb; text-decoration: none; text-align: left; }
.public-brand-mark { position: relative; width: 36px; height: 36px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 9px; background: linear-gradient(145deg, #c8b9ff, #8165ed); color: #100d18; font-size: 15px; font-weight: 800; letter-spacing: -.08em; box-shadow: 0 9px 28px rgba(107,75,220,.22); }
.public-brand-mark::after { content: ""; position: absolute; width: 26px; height: 1px; right: -7px; bottom: 6px; background: rgba(255,255,255,.48); transform: rotate(-45deg); }
.public-brand > span:last-child b, .public-brand > span:last-child small { display: block; }
.public-brand > span:last-child b { font-size: 13px; font-weight: 600; letter-spacing: .08em; }
.public-brand > span:last-child small { margin-top: 3px; color: #777580; font-size: 9px; }
.public-brand.compact > span:last-child small { display: none; }
.public-links { display: flex; align-items: center; gap: 26px; }
.public-links a { position: relative; min-height: 40px; display: inline-flex; align-items: center; color: #b1bac4; font-size: 14px; font-weight: 400; text-decoration: none; transition: color .2s ease; }
.public-links a::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 1px; background: var(--landing-accent-bright); transform: scaleX(0); transform-origin: right; transition: transform .25s ease; }
.public-links a:hover, .public-links a.active { color: #fff; }
.public-links a.active::after { transform: scaleX(1); transform-origin: left; }
.public-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.public-login, .public-register { min-height: 40px; padding: 0 16px; border-radius: 7px; font-size: 14px; font-weight: 600; transition: transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease; }
.public-login { background: transparent; color: #bbb9c2; }
.public-login:hover { color: #fff; background: rgba(255,255,255,.06); }
.public-register { border: 1px solid rgba(255,255,255,.74); background: #f6f3ff; color: #121016; }
.public-register:hover { transform: translateY(-1px); border-color: #fff; background: #fff; }

.landing-product-scene { position: relative; isolation: isolate; background: linear-gradient(180deg, #0b0d2a 0%, #0d1028 46%, #0d1117 100%); }
.landing-hero { position: relative; width: 100%; min-height: calc(100svh - 72px); display: grid; place-items: start center; isolation: isolate; overflow: hidden; padding: 144px 0 190px; scroll-margin-top: 72px; background: radial-gradient(circle at 50% 37%, rgba(111,76,224,.27), transparent 31%), radial-gradient(ellipse at 50% 106%, rgba(130,89,238,.2), transparent 46%), linear-gradient(180deg, #080a20 0%, #0d1028 66%, #11112a 100%); }
.landing-hero::before { content: ""; position: absolute; z-index: -2; inset: 0; opacity: .3; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 72px 72px; -webkit-mask-image: radial-gradient(circle at 50% 44%, #000 0, transparent 67%); mask-image: radial-gradient(circle at 50% 44%, #000 0, transparent 67%); }
.landing-hero::after { content: ""; position: absolute; z-index: -1; width: min(970px,86vw); height: min(970px,86vw); top: 50%; left: 50%; border: 1px solid rgba(175,149,255,.1); border-radius: 50%; box-shadow: 0 0 0 110px rgba(166,140,255,.025), 0 0 0 220px rgba(166,140,255,.018); transform: translate(-50%,-48%); }
.hero-atmosphere { position: absolute; z-index: -1; inset: 0; pointer-events: none; }
.hero-atmosphere span { position: absolute; display: block; border-radius: 999px; background: linear-gradient(90deg, transparent, rgba(201,184,255,.5), transparent); filter: blur(.2px); }
.hero-atmosphere span:nth-child(1) { width: 38vw; height: 1px; top: 24%; left: -10%; transform: rotate(20deg); }
.hero-atmosphere span:nth-child(2) { width: 32vw; height: 1px; right: -8%; bottom: 27%; transform: rotate(-18deg); }
.hero-atmosphere span:nth-child(3) { width: 1px; height: 36vh; top: 8%; right: 16%; background: linear-gradient(transparent, rgba(201,184,255,.22), transparent); transform: rotate(12deg); }
.landing-hero-inner { width: min(920px, calc(100% - 48px)); display: grid; justify-items: center; margin: 0 auto; text-align: center; }
.landing-kicker { color: #b9a9eb; font-size: 11px; font-weight: 600; letter-spacing: .16em; }
.landing-title { max-width: 900px; display: flex; flex-wrap: wrap; justify-content: center; gap: .2em; margin: 22px 0 24px; font-size: clamp(58px,6.2vw,86px); font-weight: 500; line-height: 1.02; letter-spacing: -.045em; text-wrap: balance; }
.landing-title span:first-child { color: #fff; }
.landing-title span:last-child { color: #f0f6fc; }
.landing-lede { max-width: 690px; margin: 0; color: #b1bac4; font-size: clamp(18px,1.55vw,21px); line-height: 1.5; text-wrap: balance; }
.hero-question { width: min(720px,100%); min-height: 66px; display: grid; grid-template-columns: 34px minmax(0,1fr) 48px; align-items: center; gap: 8px; margin-top: 75px; padding: 7px 8px 7px 18px; border: 1px solid rgba(216,202,255,.38); border-radius: 10px; background: rgba(13,17,23,.8); box-shadow: 0 18px 56px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.05); backdrop-filter: blur(18px); transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease; }
.hero-question:focus-within { border-color: rgba(216,202,255,.78); background: rgba(22,19,30,.93); box-shadow: 0 22px 80px rgba(0,0,0,.42), 0 0 0 4px rgba(164,132,255,.09); }
.question-mark { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(190,169,255,.28); border-radius: 50%; color: #baa6ff; font-size: 14px; font-weight: 600; }
.hero-question input { width: 100%; min-width: 0; height: 48px; border: 0; background: transparent; color: #fff; font-size: 17px; }
.hero-question input::placeholder { color: #777480; opacity: 1; }
.hero-question input[aria-invalid="true"]::placeholder { color: #ff9898; }
.hero-question button { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 7px; background: #f2edff; color: #17131e; transition: transform .2s ease, background-color .2s ease; }
.hero-question button:hover { transform: translateY(-1px); background: #fff; }
.question-note { margin: 11px 0 0; color: #6e6b75; font-size: 10px; }
.question-answer { width: min(730px,100%); display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 14px; margin-top: 10px; padding: 13px 16px; border: 1px solid rgba(169,151,255,.18); border-radius: 11px; background: rgba(169,151,255,.075); text-align: left; animation: answerIn .28s ease both; }
.question-answer[hidden] { display: none; }
.question-answer > span { color: #a995ef; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.question-answer p { margin: 0; color: #bebac8; font-size: 11px; line-height: 1.5; }
.question-answer a { color: #d7ccff; font-size: 10px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.hero-actions { display: flex; align-items: center; gap: 12px; margin-top: 28px; animation: heroEntrance .78s .62s cubic-bezier(.2,.75,.2,1) both; }
.hero-primary { min-height: 50px; padding: 0 24px; }
.public-shell .hero-primary, .public-shell .pricing-band .primary-button, .public-shell .closing-cta .primary-button { background: #f3efff; color: #15111d; box-shadow: 0 12px 34px rgba(92,62,177,.18); }
.public-shell .hero-primary:hover, .public-shell .pricing-band .primary-button:hover, .public-shell .closing-cta .primary-button:hover { background: #fff; transform: translateY(-1px); }
.hero-secondary { min-height: 50px; display: inline-flex; align-items: center; gap: 12px; padding: 0 20px; border: 1px solid rgba(255,255,255,.16); border-radius: 7px; color: #d0d7de; font-size: 14px; font-weight: 600; text-decoration: none; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.hero-secondary span { color: #a894ed; }
.hero-secondary:hover { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.055); color: #fff; }
.hero-scroll { position: absolute; bottom: 28px; left: 50%; display: grid; justify-items: center; gap: 10px; color: #66636d; font-size: 9px; font-weight: 750; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; transform: translateX(-50%); animation: heroEntrance .78s .8s cubic-bezier(.2,.75,.2,1) both; }
.hero-scroll i { position: relative; width: 1px; height: 26px; overflow: hidden; background: rgba(255,255,255,.13); }
.hero-scroll i::after { content: ""; position: absolute; inset: -100% 0 auto; height: 100%; background: #bba8ff; animation: scrollTrace 2.2s 1.3s ease-in-out infinite; }

.hero-sequence { animation: heroEntrance .78s cubic-bezier(.2,.75,.2,1) both; }
.landing-kicker.hero-sequence { animation-delay: .06s; }
.landing-title.hero-sequence { animation-delay: .15s; }
.landing-lede.hero-sequence { animation-delay: .29s; }
.hero-question.hero-sequence { animation-delay: .41s; }
.question-note.hero-sequence { animation-delay: .52s; }
@keyframes heroEntrance { from { opacity: 0; transform: translateY(22px); filter: blur(8px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }
@keyframes scrollTrace { 0% { transform: translateY(0); } 70%,100% { transform: translateY(200%); } }
@keyframes answerIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

.product-stage { position: relative; z-index: 2; width: 100%; margin-top: clamp(-150px,-15vh,-118px); padding: 0 0 clamp(96px,10vw,140px); scroll-margin-top: 72px; }
.product-stage::before { content: ""; position: absolute; z-index: -1; width: min(1100px,88vw); height: 480px; top: 36px; left: 50%; border-radius: 50%; background: radial-gradient(ellipse, rgba(117,78,227,.22), transparent 68%); opacity: .55; transform: translateX(-50%); pointer-events: none; }
.product-scroll-track { position: relative; min-height: clamp(900px,128svh,1180px); }
.product-preview-depth { position: sticky; z-index: 2; top: clamp(76px,8vh,96px); width: min(1180px, calc(100% - 48px), 116svh); margin: 0 auto; perspective: 1600px; isolation: isolate; }
.product-preview-depth::before { content: ""; position: absolute; z-index: -1; inset: -10% -7%; border-radius: 34%; background: radial-gradient(ellipse at 50% 65%, rgba(138,94,246,.46), rgba(94,55,190,.13) 48%, transparent 72%); opacity: .58; pointer-events: none; }
.product-window-shell { overflow: hidden; border: 1px solid rgba(240,246,252,.2); border-radius: 16px; background: #161b22; box-shadow: 0 42px 104px rgba(0,0,0,.68), 0 0 68px rgba(132,90,236,.24); opacity: var(--preview-opacity,1); transform: translate3d(0,var(--preview-lift,0),0) scale(var(--preview-scale,1)) rotateX(var(--preview-tilt,0)); transform-origin: 50% 0; will-change: transform, opacity; }
.product-preview-frame { margin: 0; overflow: hidden; border: 0; border-radius: 0; background: #161b22; box-shadow: none; }
.product-window-head { min-height: 44px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 0 16px; border-bottom: 1px solid rgba(240,246,252,.1); background: #161b22; color: #8b949e; font-size: 10px; }
.product-window-head > span { display: flex; gap: 6px; }
.product-window-head > span i { width: 7px; height: 7px; border-radius: 50%; background: #4b4950; }
.product-window-head b { color: #cbc9d0; font-size: 10px; font-weight: 700; }
.product-window-head em { justify-self: end; color: #77757d; font-style: normal; }
.product-preview-media { position: relative; overflow: hidden; background: #242526; }
.product-preview-media img { width: 100%; height: auto; display: block; }
.preview-focus { position: absolute; z-index: 2; left: 22.2%; top: 40%; width: 49.7%; height: 47%; border: 2px solid rgba(184,157,255,.82); border-radius: 11px; box-shadow: 0 0 0 1px rgba(255,255,255,.16), 0 0 34px rgba(137,95,255,.32), 0 0 0 9999px rgba(5,4,8,.05); pointer-events: none; transition: left .5s cubic-bezier(.2,.75,.2,1), top .5s cubic-bezier(.2,.75,.2,1), width .5s cubic-bezier(.2,.75,.2,1), height .5s cubic-bezier(.2,.75,.2,1), border-color .3s ease; }
.product-preview-frame[data-mode="planning"] .preview-focus { left: 21.8%; top: 16.2%; width: 75.3%; height: 21.4%; border-color: rgba(112,178,255,.88); }
.product-preview-frame[data-mode="team"] .preview-focus { left: 73.1%; top: 53.3%; width: 24%; height: 43.7%; border-color: rgba(117,222,183,.88); }
.product-preview-frame[data-mode="automation"] .preview-focus { left: 73.1%; top: 39.2%; width: 24%; height: 23.5%; border-color: rgba(244,180,97,.9); }
.product-preview-frame[data-mode="control"] .preview-focus { left: 21.7%; top: 16.1%; width: 75.5%; height: 80.4%; border-color: rgba(201,177,255,.88); }
.product-preview-frame figcaption { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 18px; border-top: 1px solid rgba(240,246,252,.09); background: #161b22; }
.product-preview-frame figcaption span { color: #c2b3f8; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.product-preview-frame figcaption strong { color: #8f8c96; font-size: 10px; font-weight: 600; }

.product-stage-heading { position: relative; z-index: 1; width: min(760px, calc(100% - 48px)); margin: 0 auto; text-align: center; }
.product-stage-heading h2 { max-width: 740px; margin: 14px auto 16px; font-size: clamp(36px,4.1vw,54px); font-weight: 500; line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
.product-stage-heading p { max-width: 620px; margin: 0 auto; color: var(--landing-muted); font-size: 17px; line-height: 1.55; }
.mode-tabs-wrap { width: 100%; padding: 9px; border-top: 1px solid rgba(240,246,252,.1); background: rgba(13,17,23,.96); }
.mode-tabs { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 7px; }
.mode-tabs button { position: relative; min-width: 0; min-height: 56px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 10px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #8b949e; font-size: 13px; font-weight: 500; transition: color .22s ease, background-color .22s ease, border-color .22s ease, box-shadow .22s ease; }
.mode-tabs button span { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid rgba(240,246,252,.1); border-radius: 50%; color: #6e7681; font-size: 9px; transition: color .22s ease, border-color .22s ease, background-color .22s ease; }
.mode-tabs button:hover { color: #d0d7de; background: rgba(240,246,252,.045); }
.mode-tabs button.active { border-color: rgba(194,174,255,.28); background: linear-gradient(180deg, rgba(173,148,255,.16), rgba(173,148,255,.07)); color: #f0f6fc; box-shadow: 0 9px 28px rgba(62,35,126,.2), inset 0 1px 0 rgba(255,255,255,.06); }
.mode-tabs button.active span { border-color: rgba(200,183,255,.42); background: rgba(173,148,255,.14); color: var(--landing-accent-bright); }
.mode-story { width: 100%; padding: 0 0 clamp(110px,12vw,164px); scroll-margin-top: 72px; background: #0d1117; }
.mode-panel { width: min(1080px, calc(100% - 48px)); display: grid; grid-template-columns: 40px minmax(0,1.25fr) minmax(280px,.75fr); align-items: start; gap: clamp(28px,4vw,52px); margin: 0 auto; padding: clamp(76px,9vw,112px) 0 0; border-top: 1px solid var(--landing-line); }
.mode-index { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(200,183,255,.28); border-radius: 50%; color: var(--landing-accent-bright); font-size: 10px; font-weight: 600; line-height: 1; letter-spacing: .02em; }
.mode-copy, .mode-facts, .product-preview-frame figcaption { transition: opacity .22s ease, transform .22s ease; }
.mode-copy h2 { max-width: 660px; margin: 13px 0 18px; font-size: clamp(32px,3.5vw,46px); font-weight: 500; line-height: 1.12; letter-spacing: -.03em; text-wrap: balance; }
.mode-copy > p { max-width: 620px; margin: 0; color: var(--landing-muted); font-size: 16px; line-height: 1.6; }
.mode-facts { margin: 0; border-top: 1px solid var(--landing-line); }
.mode-facts > div { display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--landing-line); }
.mode-facts dt { color: #65626d; font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.mode-facts dd { margin: 0; color: #c4c1ca; font-size: 11px; line-height: 1.55; }
.mode-panel.is-switching .mode-copy, .mode-panel.is-switching .mode-facts { opacity: .18; transform: translateY(9px); }

.workflow-chapters { width: min(1080px, calc(100% - 48px)); margin: 0 auto; padding: clamp(104px,11vw,152px) 0; border-top: 1px solid var(--landing-line); }
.chapter-heading { max-width: 780px; margin: 0 auto; text-align: center; }
.chapter-heading h2 { margin: 14px auto 0; font-size: clamp(36px,4.4vw,58px); font-weight: 500; line-height: 1.1; letter-spacing: -.035em; text-wrap: balance; }
.workflow-sequence { margin: 64px auto 0; padding: 0; list-style: none; border-bottom: 1px solid var(--landing-line); }
.workflow-sequence li { min-height: 132px; display: grid; grid-template-columns: 72px minmax(0,1fr) minmax(180px,auto); align-items: center; gap: 28px; border-top: 1px solid var(--landing-line); }
.workflow-sequence li > span { color: #706b7a; font-size: 11px; font-weight: 800; }
.workflow-sequence h3 { margin: 0 0 8px; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.workflow-sequence p { max-width: 620px; margin: 0; color: var(--landing-muted); font-size: 15px; line-height: 1.6; }
.workflow-sequence em { justify-self: end; padding: 8px 10px; border: 1px solid rgba(177,152,255,.17); border-radius: 999px; color: #a994ee; font-size: 9px; font-style: normal; font-weight: 750; white-space: nowrap; }

.pricing-band { position: relative; width: min(1080px, calc(100% - 48px)); min-height: 250px; display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: clamp(28px,5vw,64px); margin: 0 auto; padding: 46px 48px; overflow: hidden; border: 1px solid rgba(196,175,255,.2); border-radius: 16px; background: linear-gradient(105deg, rgba(112,76,206,.24), rgba(84,57,156,.08) 54%, rgba(255,255,255,.02)); scroll-margin-top: 92px; }
.pricing-index { position: absolute; right: -12px; bottom: -43px; color: rgba(202,182,255,.055); font-size: clamp(100px,14vw,196px); font-weight: 800; letter-spacing: -.08em; pointer-events: none; }
.pricing-copy { position: relative; z-index: 1; }
.pricing-band h2 { max-width: 590px; margin: 12px 0 10px; font-size: clamp(30px,3vw,40px); font-weight: 500; line-height: 1.12; letter-spacing: -.03em; }
.pricing-band p { margin: 0; color: #9e9ba7; font-size: 15px; }
.price { position: relative; z-index: 1; }
.price strong, .price span { display: block; text-align: right; }
.price strong { font-size: clamp(44px,4.5vw,64px); line-height: 1; letter-spacing: -.06em; white-space: nowrap; }
.price span { margin-top: 8px; color: #8e8b96; font-size: 10px; }
.pricing-band > button { position: relative; z-index: 1; min-height: 50px; padding: 0 22px; }
.documents-section { width: min(1080px, calc(100% - 48px)); margin: 0 auto; padding: clamp(104px,11vw,152px) 0; scroll-margin-top: 72px; }
.section-heading { max-width: 760px; margin: 0 auto; text-align: center; }
.section-heading h2 { margin: 14px auto 0; font-size: clamp(36px,4.4vw,56px); font-weight: 500; line-height: 1.1; letter-spacing: -.035em; text-wrap: balance; }
.document-links { margin-top: 58px; border-top: 1px solid var(--landing-line); }
.document-links a { min-height: 84px; display: grid; grid-template-columns: 66px minmax(0,1fr) auto; align-items: center; gap: 20px; border-bottom: 1px solid var(--landing-line); color: #eeecf2; text-decoration: none; transition: padding .25s ease, color .25s ease, background-color .25s ease; }
.document-links a > span { color: #64616b; font-size: 10px; }
.document-links a > b { font-size: 14px; }
.document-links a > em { color: #a993ee; font-size: 10px; font-style: normal; }
.document-links a:hover { padding: 0 12px; background: rgba(255,255,255,.022); color: #cfc2ff; }
.closing-cta { width: min(1080px, calc(100% - 48px)); margin: 0 auto; padding: clamp(88px,9vw,128px) 0; border-top: 1px solid var(--landing-line); text-align: center; }
.closing-cta h2 { max-width: 800px; margin: 16px auto 32px; font-size: clamp(38px,4.8vw,62px); font-weight: 500; line-height: 1.08; letter-spacing: -.04em; text-wrap: balance; }
.closing-cta > div { display: flex; justify-content: center; gap: 10px; }
.closing-cta .primary-button { min-height: 50px; padding: 0 24px; }
.closing-login { min-height: 50px; padding: 0 20px; border: 1px solid var(--landing-line); border-radius: 10px; background: transparent; color: #c3c0c9; font-size: 12px; font-weight: 750; }
.closing-login:hover { border-color: rgba(255,255,255,.26); color: #fff; background: rgba(255,255,255,.04); }
.public-footer { width: min(1080px, calc(100% - 48px)); min-height: 112px; display: flex; align-items: center; justify-content: space-between; margin: 0 auto; border-top: 1px solid var(--landing-line); }
.public-footer p { color: #68656e; font-size: 10px; }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .82s cubic-bezier(.2,.68,.2,1), transform .82s cubic-bezier(.2,.68,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.public-modal-backdrop { position: fixed; z-index: 200; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(14,14,16,.76); backdrop-filter: blur(12px); }
.public-modal { position: relative; width: min(420px,100%); padding: 34px; border: 1px solid rgba(255,255,255,.11); border-radius: 20px; background: #27282c; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.public-modal h2 { margin: 13px 0 12px; font-size: 28px; letter-spacing: -.04em; }
.public-modal p { margin: 0 0 24px; color: #a8aab2; font-size: 15px; line-height: 1.6; }
.public-modal-close { position: absolute; top: 15px; right: 15px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,.05); color: #a8aab2; }
.public-modal-secondary { width: 100%; margin-top: 12px; padding: 10px; background: transparent; color: #a7a9b2; font-size: 13px; }

.login-page { min-height: 100vh; background: #191a1e; color: #f7f7f8; }
.login-header { width: min(1080px,calc(100% - 48px)); min-height: 76px; display: flex; align-items: center; justify-content: space-between; margin: 0 auto; border-bottom: 1px solid rgba(255,255,255,.08); }
.login-back { min-height: 42px; padding: 0 15px; border-radius: 9px; background: rgba(255,255,255,.045); color: #c2c3ca; font-size: 13px; }
.login-main { width: min(1120px,calc(100% - 48px)); display: grid; grid-template-columns: minmax(0,1fr) minmax(420px,.76fr); align-items: start; gap: 86px; margin: 0 auto; padding: clamp(64px,8vh,94px) 0 72px; }
.login-copy h1 { max-width: 560px; margin: 16px 0 18px; font-size: clamp(42px,4.5vw,58px); line-height: 1.04; letter-spacing: -.05em; text-wrap: balance; }
.login-copy > p { max-width: 560px; margin: 0; color: #aaacb4; font-size: 16px; line-height: 1.7; }
.login-panel { padding: 38px; border: 1px solid rgba(255,255,255,.1); border-radius: 20px; background: #25262a; box-shadow: 0 28px 70px rgba(0,0,0,.3); }
.login-panel .auth-card { width: 100%; }
.login-panel .auth-card h2 { color: #f7f7f8; }
.login-panel .auth-card > p { color: #a9abb3; font-size: 15px; }
.login-panel .auth-card label span { color: #a9abb3; font-size: 13px; }
.login-panel .auth-card input { min-height: 52px; border-color: rgba(255,255,255,.1); background: #242527; color: #f7f7f8; font-size: 14px; }

.document-page { min-height: 100vh; padding: 54px 24px 90px; }
.document-wrap { width: min(760px,100%); margin: 0 auto; }
.document-wrap > header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.document-wrap > header a:last-child { color: var(--purple); font-size: 12px; text-decoration: none; }
.document-content { padding-top: 54px; }
.document-content h1 { margin: 0 0 14px; font-size: clamp(34px,6vw,58px); line-height: 1.04; letter-spacing: -.045em; }
.document-content > p { color: var(--muted); line-height: 1.7; }
.document-content h2 { margin: 42px 0 12px; font-size: 20px; }
.document-content section p, .document-content li { color: var(--muted); font-size: 14px; line-height: 1.75; }
.document-content ul { padding-left: 20px; }

.primary-button, .secondary-button, .danger-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 17px; border-radius: 10px; font-size: 14px; font-weight: 750; }
.primary-button { background: linear-gradient(135deg, #b9adff, #9988ff); color: #25222f; box-shadow: 0 6px 18px rgba(128,109,240,.18); }
.secondary-button { border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.danger-button { background: rgba(255,105,105,.12); color: var(--red); }
.wide-button { width: 100%; }

.platform-shell { min-height: 100dvh; }
.app-sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; width: 270px; display: flex; flex-direction: column; padding: 27px 16px 18px; border-right: 1px solid var(--line); background: var(--sidebar); }
.app-brand { width: max-content; height: 30px; margin: 0 12px 24px; display: flex; align-items: center; gap: 8px; background: transparent; color: var(--purple); font-size: 14px; }
.company-switcher { min-height: 62px; display: grid; grid-template-columns: 34px minmax(0,1fr) 18px; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.company-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(169,151,255,.15); color: var(--purple); }
.company-icon.large { width: 46px; height: 46px; }
.company-switcher span:nth-child(2) { min-width: 0; }
.company-switcher b, .company-switcher small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.company-switcher b { font-size: 13px; }
.company-switcher small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.company-switcher > svg { color: var(--muted); }
.desktop-nav { min-height: 0; flex: 1; margin-top: 25px; overflow: auto; scrollbar-width: none; }
.desktop-nav::-webkit-scrollbar { display: none; }
.nav-caption { display: block; margin: 0 12px 9px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.nav-button { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 12px; margin: 3px 0; padding: 0 12px; border-radius: 10px; background: transparent; color: var(--muted); font-size: 14px; text-align: left; }
.nav-button span { flex: 1; }
.nav-button em { min-width: 30px; padding: 3px 7px; border-radius: 7px; background: var(--surface-3); color: var(--muted); font-size: 10px; font-style: normal; text-align: center; }
.nav-button:hover { background: var(--surface-2); color: var(--text); }
.nav-button.active { background: rgba(169,151,255,.14); color: var(--purple); font-weight: 750; }
.nav-button.active em { background: var(--purple); color: #27242f; }
.seat-widget { margin: 12px 4px 14px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); }
.seat-widget > div { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; }
.seat-widget > div b { color: var(--text); }
.seat-widget > i, .seat-banner > i { height: 5px; display: block; margin: 10px 0 8px; overflow: hidden; border-radius: 20px; background: var(--surface-3); }
.seat-widget > i b, .seat-banner > i b { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, var(--purple-strong), var(--purple)); }
.seat-widget small { color: var(--muted); font-size: 10px; }
.sidebar-footer { position: relative; padding-top: 13px; border-top: 1px solid var(--line); }
.sidebar-design-switcher { display: grid; gap: 7px; padding: 0 4px 12px; }
.sidebar-design-switcher > span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.sidebar-design-switcher > div { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.sidebar-design-switcher button { min-width: 0; height: 29px; padding: 0 3px; border-radius: 7px; background: transparent; color: var(--muted); font-size: 9px; font-weight: 750; white-space: nowrap; }
.sidebar-design-switcher button:hover { color: var(--text); }
.sidebar-design-switcher button.active { background: var(--surface); color: var(--text); box-shadow: 0 2px 7px rgba(8,10,28,.12); }
.platform-shell.palette-lime:not(.dark) .sidebar-design-switcher button.active { background: #b8ed4b; color: #172016; box-shadow: none; }
.platform-shell.design-system:not(.dark) .sidebar-design-switcher button.active { background: #6361d9; color: #fff; box-shadow: none; }
.platform-shell.design-yandex:not(.dark) .sidebar-design-switcher button.active { background: #4f7df3; color: #fff; box-shadow: none; }
.theme-row { width: 100%; min-height: 38px; display: flex; align-items: center; gap: 10px; padding: 0 8px; background: transparent; color: var(--muted); font-size: 12px; }
.theme-row span { flex: 1; text-align: left; }
.toggle { position: relative; width: 32px; height: 18px; border-radius: 20px; background: var(--surface-3); }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--muted); transition: .2s; }
.toggle.on { background: rgba(169,151,255,.25); }
.toggle.on::after { left: 17px; background: var(--purple); }
.profile-row { width: calc(100% - 34px); min-height: 48px; display: grid; grid-template-columns: 32px minmax(0,1fr); align-items: center; gap: 9px; margin-top: 6px; padding: 6px 8px; border-radius: 10px; background: transparent; color: var(--text); text-align: left; }
.profile-row:hover { background: var(--surface-2); }
.profile-row span:nth-child(2) { min-width: 0; }
.profile-row b, .profile-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-row b { font-size: 12px; }
.profile-row small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.logout-button { position: absolute; right: 4px; bottom: 12px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: transparent; color: var(--muted); }
.logout-button:hover { background: rgba(255,105,105,.1); color: var(--red); }
.avatar { flex: 0 0 auto; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 50%; background: linear-gradient(135deg, #54a7ff, #806df0); color: #fff; font-size: 12px; font-weight: 800; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.topbar { position: fixed; z-index: 20; top: 0; right: 0; left: 270px; height: 104px; display: flex; align-items: center; gap: 22px; padding: 0 clamp(22px,3vw,44px); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg), transparent 3%); backdrop-filter: blur(16px); }
.page-heading { min-width: 0; flex: 1; }
.page-heading h1 { margin: 0; font-size: 25px; letter-spacing: -.025em; }
.page-heading p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.role-switcher { min-height: 42px; display: flex; align-items: center; gap: 7px; padding: 4px 5px 4px 10px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.role-switch-caption { color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.role-switch-options { display: flex; align-items: center; gap: 3px; }
.role-switch-button { min-height: 32px; padding: 0 10px; border-radius: 8px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 700; }
.role-switch-button:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
.role-switch-button.active { background: rgba(169,151,255,.16); color: var(--purple); box-shadow: inset 0 0 0 1px rgba(169,151,255,.18); }
.role-switch-button:disabled { cursor: default; opacity: 1; }
.role-switch-select { display: none; min-width: 112px; height: 32px; padding: 0 26px 0 9px; border: 0; border-radius: 8px; background: var(--surface-2); color: var(--text); font-size: 10px; font-weight: 700; }
.company-select { display: grid; gap: 3px; }
.company-select span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.company-select select { min-width: 170px; height: 40px; padding: 0 34px 0 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--text); font-size: 12px; }
.top-avatar { width: 38px; height: 38px; }
.mobile-brand { display: none; }
.mobile-nav { display: none; }
.platform-content { min-height: 100dvh; margin-left: 270px; padding: 128px clamp(22px,3vw,44px) 42px; background: var(--bg); }
.panel { border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow); }
.page-loading { min-height: 50vh; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--muted); }
.page-loading span { width: 32px; height: 32px; border: 3px solid var(--line); border-top-color: var(--purple); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.stat-card { min-width: 0; min-height: 78px; display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-rows: auto auto; align-content: center; column-gap: 14px; padding: 12px 16px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; }
.stat-card:last-child { border-right: 0; }
.stat-card span, .stat-card small, .stat-card b { display: block; }
.stat-card span { grid-column: 1; color: var(--muted); font-size: 12px; }
.stat-card b { grid-column: 2; grid-row: 1 / 3; align-self: center; margin: 0; color: var(--text); font-size: 27px; line-height: 1; }
.stat-card small { grid-column: 1; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.stat-card.purple { color: var(--purple); } .stat-card.red { color: var(--red); } .stat-card.orange { color: var(--orange); } .stat-card.green { color: var(--green); }
.dashboard-scope { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 14px; padding: 11px 14px; }
.dashboard-scope > div b, .dashboard-scope > div span { display: block; }
.dashboard-scope > div b { font-size: 13px; }
.dashboard-scope > div span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.dashboard-scope label, .executor-filter { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 10px; }
.dashboard-scope select, .executor-filter select { min-width: 190px; height: 40px; padding: 0 30px 0 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); color: var(--text); font-size: 11px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(280px,.65fr); gap: 16px; margin-top: 16px; }
.task-focus-panel { grid-row: span 2; padding: 18px; }
.workflow-panel, .team-load-panel { padding: 18px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.panel-head h2 { margin: 0; font-size: 16px; }
.panel-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.panel-head button { background: transparent; color: var(--purple); font-size: 12px; }
.compact-task-list { display: grid; gap: 8px; }
.compact-task { width: 100%; min-height: 62px; display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); color: var(--text); text-align: left; }
.compact-task:hover { border-color: rgba(169,151,255,.55); }
.task-number { color: var(--muted); font-size: 10px; }
.task-copy { min-width: 0; }
.task-copy b, .task-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-copy b { font-size: 13px; }
.task-copy small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.workflow-badge { max-width: 180px; padding: 6px 9px; overflow: hidden; border-radius: 7px; background: var(--surface-3); color: var(--muted); font-size: 10px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.workflow-badge.purple { background: rgba(169,151,255,.15); color: var(--purple); }
.workflow-badge.danger { background: rgba(255,105,105,.12); color: var(--red); }
.workflow-badge.warning { background: rgba(255,173,88,.12); color: var(--orange); }
.workflow-badge.success { background: rgba(56,200,138,.12); color: var(--green); }
.workflow-badge.info { background: rgba(84,167,255,.12); color: var(--blue); }
.workflow-roadmap { display: grid; gap: 17px; }
.workflow-roadmap > div { position: relative; display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 10px; }
.workflow-roadmap > div:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 31px; width: 1px; height: 18px; background: var(--line); }
.workflow-roadmap > div > b { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: rgba(169,151,255,.14); color: var(--purple); font-size: 10px; }
.workflow-roadmap strong, .workflow-roadmap small { display: block; }
.workflow-roadmap strong { font-size: 12px; }
.workflow-roadmap small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.team-load-list { display: grid; gap: 10px; }
.team-load-person { width: 100%; display: grid; grid-template-columns: 30px minmax(0,1fr) 30px; align-items: center; gap: 9px; padding: 5px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--text); text-align: left; }
.team-load-person:hover, .team-load-person.active { border-color: rgba(169,151,255,.35); background: rgba(169,151,255,.08); }
.team-load-list .avatar { width: 30px; height: 30px; }
.team-load-list span b, .team-load-list span small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-load-list span b { font-size: 11px; }
.team-load-list span small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.team-load-person > strong { color: var(--purple); font-size: 14px; text-align: right; }

.task-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px; }
.task-search-form { min-width: 260px; flex: 1; display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.task-search-form span { color: var(--muted); }
.task-search-form input { min-width: 0; flex: 1; height: 44px; border: 0; background: transparent; color: var(--text); font-size: 13px; }
.task-search-form button { background: transparent; color: var(--purple); font-size: 12px; }
.executor-filter { flex: 0 0 auto; }
.executor-filter select { min-width: 165px; height: 42px; }
.filter-pills { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.filter-pills button { min-height: 36px; padding: 0 12px; border-radius: 8px; background: transparent; color: var(--muted); font-size: 11px; white-space: nowrap; }
.filter-pills button.active { background: rgba(169,151,255,.14); color: var(--purple); }
.task-list { display: grid; gap: 9px; margin-top: 14px; }
.task-row-card { position: relative; min-height: 90px; display: grid; grid-template-columns: 50px minmax(250px,1fr) minmax(180px,.65fr) 98px 138px; align-items: center; gap: 16px; overflow: hidden; padding: 14px 17px 14px 20px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: var(--text); text-align: left; }
.task-row-card:hover { border-color: rgba(169,151,255,.5); transform: translateY(-1px); }
.task-status-line { position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--purple); }
.task-status-line.overdue { background: var(--red); } .task-status-line.done { background: var(--green); } .task-status-line.in_progress { background: var(--orange); }
.task-id { color: var(--muted); font-size: 10px; }
.task-main, .assignee-stack { min-width: 0; }
.task-main b, .task-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-main b { font-size: 13px; }
.task-main small { margin-top: 6px; color: var(--muted); font-size: 10px; }
.assignee-stack { display: flex; align-items: center; }
.mini-avatar { width: 26px; height: 26px; margin-left: -5px; border: 2px solid var(--surface); font-size: 9px; }
.assignee-stack .mini-avatar:first-child { margin-left: 0; }
.assignee-stack small { min-width: 0; margin-left: 8px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.task-due small, .task-due b { display: block; white-space: nowrap; }
.task-due small { color: var(--muted); font-size: 9px; }
.task-due b { margin-top: 4px; font-size: 11px; }

.board-view { min-width: 0; }
.platform-shell.dark:has(.board-view) {
  --bg: #333;
  --surface: #2c2c2c;
  --surface-2: #292929;
  --surface-3: #3a3a3a;
  --text: #fff;
  --muted: #9e9e9e;
  --line: rgba(158,158,158,.38);
  --sidebar: #2c2c2c;
  --shadow: none;
}
.board-toolbar { display: grid; grid-template-columns: auto minmax(250px,1fr) auto auto auto; align-items: center; gap: 12px; min-height: 96px; margin-bottom: 20px; padding: 24px 18px; border-radius: 6px; }
.board-view-switch { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-2); }
.board-view-switch button { min-height: 40px; padding: 0 15px; border-radius: 5px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 750; }
.board-view-switch button:hover { color: var(--text); }
.board-view-switch button.active { background: #403d49; color: #bfb2ff; box-shadow: none; }
.board-search-form { min-width: 0; height: 44px; display: flex; align-items: center; gap: 9px; padding: 0 13px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); }
.board-search-form > span { color: var(--muted); }
.board-search-form input { min-width: 0; flex: 1; height: 100%; border: 0; background: transparent; color: var(--text); font-size: 12px; }
.board-search-form button { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 7px; background: transparent; color: var(--muted); }
.board-search-form button:hover { background: var(--surface-3); color: var(--text); }
.board-executor-filter, .board-stage-filter { display: grid; gap: 4px; }
.board-executor-filter > span, .board-stage-filter > span { color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.board-executor-filter select, .board-stage-filter select { min-width: 158px; height: 40px; padding: 0 30px 0 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); color: var(--text); font-size: 11px; }
.board-summary { min-width: 148px; display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 6px; padding-left: 3px; }
.board-summary b { color: var(--text); font-size: 21px; }
.board-summary span { color: var(--muted); font-size: 10px; }
.board-summary small { grid-column: 1 / -1; margin-top: 3px; color: var(--muted); font-size: 9px; white-space: nowrap; }
.kanban-board { width: 100%; max-width: 100%; min-height: calc(100dvh - 275px); display: grid; grid-template-columns: repeat(4,minmax(230px,1fr)); gap: 30px; overflow-x: auto; padding: 34px; border-radius: 6px; background: var(--surface); overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
.kanban-lane { position: relative; min-width: 230px; min-height: calc(100dvh - 343px); overflow: visible; border: 0; border-radius: 0; background: transparent; scroll-snap-align: start; transition: background-color .18s ease, box-shadow .18s ease; }
.kanban-lane > header { min-height: 38px; padding: 0 0 14px; border-bottom: 0; background: transparent; }
.kanban-lane > header > div { display: flex; align-items: center; gap: 8px; }
.lane-tone { display: none; }
.kanban-lane h2 { min-width: 0; margin: 0; overflow: hidden; color: var(--text); font-size: 12px; letter-spacing: 0; text-overflow: ellipsis; white-space: nowrap; }
.kanban-lane header b { min-width: 0; height: auto; display: block; margin-left: auto; border-radius: 0; background: transparent; color: var(--text); font-size: 11px; }
.kanban-lane header p { display: none; }
.kanban-lane-list { min-height: calc(100% - 38px); display: grid; align-content: start; gap: 16px; padding: 0; }
.kanban-card { position: relative; min-width: 0; min-height: 220px; padding: 15px; border: 1px dashed rgba(158,158,158,.48); border-radius: 6px; background: transparent; color: var(--text); box-shadow: none; cursor: pointer; transition: transform .18s ease, border-color .18s ease, background-color .18s ease, opacity .18s ease; }
.kanban-card[draggable="true"] { cursor: grab; }
.kanban-card[draggable="true"]:active { cursor: grabbing; }
.kanban-card:hover { border-color: #bfb2ff; background: rgba(191,178,255,.035); transform: translateY(-2px); box-shadow: none; }
.kanban-card.overdue { border-left: 1px dashed rgba(158,158,158,.48); }
.kanban-card-top { min-height: 25px; display: flex; align-items: center; gap: 7px; }
.kanban-card-top > span { color: var(--muted); font-size: 10px; font-weight: 700; }
.board-priority { padding: 4px 7px; border-radius: 3px; background: var(--surface-3); color: var(--muted); font-size: 9px; font-style: normal; font-weight: 750; }
.board-priority.high { background: #ff5f64; color: #fff; }
.board-priority.medium { background: #ff9f50; color: #2c2c2c; }
.board-card-handle { width: 30px; height: 30px; display: grid; place-items: center; margin: -3px -4px -3px auto; border-radius: 8px; background: transparent; color: var(--muted); touch-action: none; cursor: grab; }
.board-card-handle:hover { background: rgba(169,151,255,.12); color: var(--purple); }
.kanban-card h3 { min-height: 48px; margin: 14px 0 7px; display: -webkit-box; overflow: hidden; font-size: 12px; line-height: 1.45; letter-spacing: 0; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.kanban-card > p { margin: 0; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.kanban-card.has-feedback { min-height: 236px; }
.kanban-card-feedback { min-width: 0; display: grid; grid-template-columns: 18px minmax(0,1fr); gap: 8px; margin-top: 11px; padding: 9px; border: 1px solid rgba(255,105,105,.2); border-radius: 9px; background: rgba(255,105,105,.08); color: var(--red); }
.kanban-card-feedback > span { padding-top: 1px; }
.kanban-card-feedback b { display: block; font-size: 9px; }
.kanban-card-feedback p { margin: 4px 0 0; display: -webkit-box; overflow: hidden; color: color-mix(in srgb, var(--red), var(--text) 35%); font-size: 9px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.kanban-card-people { min-width: 0; display: flex; align-items: center; gap: 7px; margin-top: 17px; }
.kanban-card-people > span { display: flex; align-items: center; }
.kanban-card-people .mini-avatar { width: 24px; height: 24px; border-color: var(--surface); }
.kanban-card-people small { min-width: 0; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.kanban-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 15px; padding-top: 12px; border-top: 1px solid rgba(158,158,158,.28); }
.kanban-card-footer time { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 9px; font-weight: 700; white-space: nowrap; }
.kanban-card-footer time.overdue { color: var(--red); }
.kanban-card-footer .workflow-badge { max-width: 112px; padding: 5px 7px; font-size: 8px; }
.kanban-empty { min-height: 116px; display: grid; place-content: center; justify-items: center; gap: 7px; border: 1px dashed var(--line); border-radius: 6px; color: var(--muted); text-align: center; }
.kanban-empty span { opacity: .65; }
.kanban-empty b { font-size: 11px; }
.kanban-empty small { font-size: 9px; }
.kanban-lane.is-drop-target { background: rgba(169,151,255,.07); box-shadow: inset 0 0 0 1px rgba(169,151,255,.55); }
.kanban-lane.is-drop-target .kanban-lane-list { background: rgba(169,151,255,.035); }
.kanban-card.is-dragging { opacity: .24; transform: scale(.98); }
.kanban-drag-active, .kanban-drag-active * { cursor: grabbing !important; }
.board-drag-ghost { position: fixed; z-index: 1000; top: 0; left: 0; pointer-events: none; opacity: .94; box-shadow: 0 22px 54px rgba(0,0,0,.38); transform-origin: top left; }
.board-drag-ghost .board-card-handle { display: none; }
.board-mobile-hint { display: none; }

.member-directory-toolbar { display: grid; grid-template-columns: minmax(280px,1fr) auto; gap: 12px; margin-bottom: 14px; padding: 13px; }
.member-search-form { min-width: 0; height: 46px; display: flex; align-items: center; gap: 12px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.member-search-form > span { flex: 0 0 auto; color: var(--muted); }
.member-search-form input { min-width: 0; width: 100%; height: 100%; border: 0; background: transparent; color: var(--text); font-size: 13px; }
.member-search-form input::placeholder { color: var(--muted); opacity: .85; }
.member-filter-row { display: flex; align-items: stretch; gap: 8px; }
.member-filter-pills { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.member-filter-pills::-webkit-scrollbar { display: none; }
.member-filter-pills button, .member-sort-button { min-height: 46px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--muted); white-space: nowrap; }
.member-filter-pills button { padding: 0 14px; font-size: 12px; }
.member-filter-pills button b { margin-left: 5px; color: var(--muted); font-size: inherit; font-weight: 750; }
.member-filter-pills button.active { border-color: rgba(169,151,255,.18); background: rgba(169,151,255,.14); color: var(--purple); }
.member-filter-pills button.active b { color: var(--purple); }
.member-filter-pills .danger-text { color: var(--red); }
.member-sort-button { width: auto; min-width: 104px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; padding: 0 13px; color: var(--muted); font-size: 12px; font-weight: 700; }
.member-sort-button.active { border-color: rgba(169,151,255,.48); background: rgba(169,151,255,.14); color: var(--purple); }
.seat-banner { display: grid; grid-template-columns: minmax(160px,1fr) auto; align-items: center; gap: 16px 22px; padding: 18px; }
.seat-copy span, .seat-copy b, .seat-copy small { display: block; }
.seat-copy span { color: var(--muted); font-size: 12px; }
.seat-copy b { margin-top: 7px; font-size: 28px; line-height: 1; }
.seat-copy b em { color: var(--purple); font-size: .72em; font-style: normal; }
.seat-copy small { margin-top: 8px; color: var(--muted); font-size: 11px; }
.seat-banner > i { grid-column: 1 / -1; width: 100%; margin: 0; }
.seat-actions { display: flex; gap: 9px; }
.member-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 22px 2px 12px; }
.member-list-heading h2 { margin: 0; font-size: 20px; letter-spacing: -.025em; }
.member-list-heading span { color: var(--muted); font-size: 12px; }
.member-grid, .organization-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; margin-top: 15px; }
.team-view .member-grid { grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 0; }
.member-card-v2 { min-width: 0; min-height: 112px; display: grid; grid-template-columns: 48px minmax(0,1fr) auto 24px; align-items: center; gap: 14px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: var(--text); text-align: left; }
.member-card-v2:hover { border-color: rgba(169,151,255,.46); transform: translateY(-1px); }
.member-avatar { width: 48px; height: 48px; font-size: 17px; }
.member-primary { min-width: 0; }
.member-primary > b, .member-primary > small { display: flex; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-primary > b { font-size: 14px; }
.member-status { align-items: center; gap: 7px; margin-top: 7px; font-size: 11px; }
.member-status i { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.member-status.ready { color: var(--green); }
.member-status.pending { color: var(--purple); }
.member-metrics { display: flex; align-items: center; gap: 18px; }
.member-metrics > span { min-width: 54px; }
.member-metrics > span + span { padding-left: 18px; border-left: 1px solid var(--line); }
.member-metrics span b, .member-metrics span small { display: block; }
.member-metrics span b { font-size: 18px; }
.member-metrics span small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.member-chevron { display: grid; place-items: center; color: var(--text); transform: rotate(-90deg); }
.danger-text b { color: var(--red); }

.invite-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.invite-option { padding: 24px; }
.option-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; background: rgba(169,151,255,.14); color: var(--purple); }
.invite-option h2 { margin: 18px 0 9px; font-size: 16px; }
.invite-option p { min-height: 56px; margin: 0 0 18px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.active-invites { margin-top: 15px; padding: 20px; }
.invite-row { min-height: 56px; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 10px; border-top: 1px solid var(--line); }
.invite-row > span { color: var(--muted); }
.invite-row b, .invite-row small { display: block; }
.invite-row b { font-size: 10px; }
.invite-row small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.invite-row em { color: var(--orange); font-size: 8px; font-style: normal; }

.organization-card { padding: 18px; }
.organization-head { display: grid; grid-template-columns: 46px minmax(0,1fr); align-items: center; gap: 12px; }
.organization-head h2 { margin: 0; font-size: 13px; }
.organization-head p { margin: 5px 0 0; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.organization-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin: 17px 0; }
.organization-stats span { padding: 9px; border-radius: 9px; background: var(--surface-2); }
.organization-stats b, .organization-stats small { display: block; }
.organization-stats b { font-size: 14px; }
.organization-stats small { margin-top: 3px; color: var(--muted); font-size: 7px; }
.limit-form { display: flex; align-items: end; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.limit-form label { min-width: 0; flex: 1; display: grid; gap: 5px; }
.limit-form label span { color: var(--muted); font-size: 8px; }
.limit-form input { width: 100%; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--text); }

.automation-hero { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 15px; padding: 20px; }
.automation-pulse { width: 48px; height: 48px; border-radius: 50%; background: rgba(56,200,138,.13); box-shadow: inset 0 0 0 14px rgba(56,200,138,.08); }
.automation-hero h2 { margin: 0; font-size: 15px; }
.automation-hero p { margin: 5px 0 0; color: var(--muted); font-size: 9px; }
.automation-hero > b { padding: 7px 11px; border-radius: 8px; background: rgba(56,200,138,.13); color: var(--green); font-size: 10px; }
.rule-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; margin-top: 15px; }
.rule-card { min-height: 190px; padding: 18px; }
.rule-card > span { color: var(--purple); }
.rule-card h3 { margin: 22px 0 9px; font-size: 12px; }
.rule-card p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.rule-card small { display: block; margin-top: 18px; color: var(--green); font-size: 8px; }

.profile-view { display: grid; grid-template-columns: minmax(360px,1fr) minmax(320px,.8fr); gap: 15px; }
.profile-card { display: grid; grid-template-columns: 180px minmax(0,1fr); gap: 25px; padding: 28px; }
.profile-avatar-wrap { display: grid; justify-items: center; align-content: start; gap: 10px; }
.profile-avatar { width: 112px; height: 112px; font-size: 36px; }
.avatar-upload { position: relative; min-height: 36px; display: inline-flex; align-items: center; gap: 7px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); font-size: 9px; cursor: pointer; }
.avatar-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.profile-avatar-wrap > small { color: var(--muted); font-size: 8px; }
.profile-details h2 { margin: 10px 0 4px; font-size: 23px; }
.profile-details > p { margin: 0; color: var(--muted); font-size: 11px; }
.profile-details dl { margin: 28px 0 0; }
.profile-details dl div { display: grid; grid-template-columns: 110px minmax(0,1fr); padding: 11px 0; border-top: 1px solid var(--line); }
.profile-details dt { color: var(--muted); font-size: 9px; }
.profile-details dd { margin: 0; font-size: 10px; }
.password-card { padding: 25px; }
.password-card h2 { margin: 0; font-size: 15px; }
.password-card p { margin: 7px 0 21px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.password-form { display: grid; gap: 14px; }
.appearance-card { grid-column: 1 / -1; padding: 25px; }
.appearance-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.appearance-heading h2 { margin: 8px 0 0; font-size: 18px; letter-spacing: -.025em; }
.appearance-heading p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.appearance-mode { flex: 0 0 auto; padding: 7px 10px; border-radius: 8px; background: var(--surface-2); color: var(--muted); font-size: 10px; font-weight: 700; }
.palette-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 20px; }
.palette-option { min-height: 76px; display: grid; grid-template-columns: 72px minmax(0,1fr) 28px; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--text); text-align: left; transition: border-color .18s ease, background-color .18s ease, transform .18s ease; }
.palette-option:hover { border-color: var(--purple); transform: translateY(-1px); }
.palette-option.active { border-color: var(--purple); background: color-mix(in srgb, var(--purple), var(--surface) 91%); }
.palette-preview { height: 42px; display: grid; grid-template-columns: repeat(3,1fr); overflow: hidden; border: 1px solid color-mix(in srgb, var(--line), #000 8%); border-radius: 9px; }
.palette-preview i { display: block; background: var(--swatch); }
.palette-copy b, .palette-copy small { display: block; }
.palette-copy b { font-size: 13px; }
.palette-copy small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.palette-check { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-3); color: transparent; }
.palette-option.active .palette-check { background: var(--purple); color: #fff; }

.platform-shell.palette-lime:not(.dark) .palette-option.active .palette-check { color: #172016; }
.platform-shell.design-system:not(.dark) .palette-option.active { border-color: #6361d9; background: #f8f6ff; }
.platform-shell.design-system:not(.dark) .palette-option.active .palette-check { background: #6361d9; color: #fff; }
.platform-shell.design-yandex:not(.dark) .palette-option.active { border-color: #4f7df3; background: #f3f7ff; }
.platform-shell.design-yandex:not(.dark) .palette-option.active .palette-check { background: #4f7df3; color: #fff; }

.modal-backdrop { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(10,10,12,.7); backdrop-filter: blur(6px); }
.platform-modal { width: min(520px,100%); max-height: calc(100dvh - 40px); overflow: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--text); box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.platform-modal.wide-modal { width: min(930px,100%); }
.platform-modal > header { position: sticky; z-index: 2; top: 0; min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--surface); }
.platform-modal > header span { color: var(--purple); font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.platform-modal > header h2 { margin: 5px 0 0; font-size: 17px; }
.modal-close { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; background: var(--surface-2); color: var(--muted); }
.task-create-form, .member-create-form { padding: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.field.full, .assignee-picker.full { grid-column: 1 / -1; }
.field textarea { min-height: 96px; }
.assignee-picker { min-width: 0; margin: 0; padding: 0; border: 0; }
.assignee-picker legend { margin-bottom: 10px; font-size: 11px; font-weight: 750; }
.assignee-picker legend small { margin-left: 5px; color: var(--muted); font-size: 8px; font-weight: 400; }
.assignee-option { min-height: 49px; display: grid; grid-template-columns: 18px 28px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 8px 10px; border-top: 1px solid var(--line); }
.assignee-option > input { accent-color: var(--purple-strong); }
.assignee-option span b, .assignee-option span small { display: block; }
.assignee-option span b { font-size: 10px; }
.assignee-option span small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.assignee-option em { color: var(--muted); font-size: 8px; font-style: normal; }
.assignee-option em input { accent-color: var(--purple-strong); }
.task-create-form footer, .member-create-form footer { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); }
.member-create-form { display: grid; gap: 14px; }
.password-generator { display: flex; gap: 7px; }
.password-generator input { flex: 1; }
.password-generator button { padding: 0 12px; border-radius: 9px; background: var(--surface-3); color: var(--purple); font-size: 9px; }
.share-content { display: grid; gap: 15px; padding: 22px; }
.share-content p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.share-content > small { color: var(--muted); font-size: 8px; }
.share-link { display: flex; gap: 7px; }
.share-link input { min-width: 0; flex: 1; height: 44px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); color: var(--text); font-size: 9px; }
.share-link button { padding: 0 12px; border-radius: 9px; background: rgba(169,151,255,.14); color: var(--purple); font-size: 9px; }
.credential-box { display: grid; gap: 5px; padding: 15px; border-radius: 11px; background: var(--surface-2); }
.credential-box span { margin-top: 7px; color: var(--muted); font-size: 8px; }
.credential-box b { font-size: 12px; }

.task-detail-body { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(270px,.65fr); }
.task-detail-main { padding: 22px; }
.task-detail-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.task-detail-meta > span { color: var(--muted); font-size: 9px; }
.task-detail-main > h3 { margin: 17px 0; font-size: 17px; line-height: 1.35; }
.task-detail-main > dl { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin: 0; }
.task-detail-main > dl div { padding: 10px; border-radius: 9px; background: var(--surface-2); }
.task-detail-main dt { color: var(--muted); font-size: 7px; }
.task-detail-main dd { margin: 4px 0 0; font-size: 9px; }
.task-review-feedback { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 11px; margin-top: 14px; padding: 13px; border: 1px solid rgba(255,105,105,.22); border-radius: 11px; background: rgba(255,105,105,.08); }
.task-review-feedback > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: rgba(255,105,105,.12); color: var(--red); }
.task-review-feedback b { color: var(--red); font-size: 10px; }
.task-review-feedback p { margin: 5px 0 0; color: var(--text); font-size: 10px; line-height: 1.55; }
.assignment-list { margin-top: 22px; }
.assignment-list > h4, .task-action-panel > h4 { margin: 0 0 10px; font-size: 11px; }
.assignment-item { min-height: 52px; display: grid; grid-template-columns: 28px minmax(0,1fr) auto; align-items: start; gap: 9px; padding: 10px 0; border-top: 1px solid var(--line); }
.assignment-item > div:nth-child(2) b, .assignment-item > div:nth-child(2) small { display: block; }
.assignment-item > div:nth-child(2) b { font-size: 9px; }
.assignment-item > div:nth-child(2) small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.assignment-item p { margin: 8px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.assignment-actions { display: flex; gap: 5px; }
.assignment-actions button { min-height: 28px; padding: 0 8px; border-radius: 7px; background: rgba(56,200,138,.12); color: var(--green); font-size: 7px; }
.assignment-actions button.danger { background: rgba(255,105,105,.1); color: var(--red); }
.task-action-panel { padding: 22px; border-left: 1px solid var(--line); background: var(--surface-2); }
.task-action-panel > * + * { margin-top: 12px; }
.report-form, .customer-review-form { display: grid; gap: 11px; }
.customer-review-form > div { display: flex; gap: 7px; }
.review-form-heading { display: block !important; padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.review-form-heading b { font-size: 12px; }
.review-form-heading p { margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.customer-review-form label small { color: var(--muted); font-size: 8px; line-height: 1.4; }
.customer-review-form > div:last-child { align-items: stretch; }
.customer-review-form > div:last-child button { min-height: 40px; flex: 1; justify-content: center; padding: 0 10px; font-size: 9px; }
.action-note { padding: 12px; border-radius: 9px; background: var(--surface-3); color: var(--muted); font-size: 9px; line-height: 1.5; }
.action-note.warning { background: rgba(255,173,88,.1); color: var(--orange); }
.empty-state { min-height: 120px; display: grid; place-content: center; justify-items: center; gap: 9px; color: var(--muted); font-size: 10px; }
.toast { position: fixed; z-index: 200; right: 24px; bottom: 24px; min-height: 44px; display: flex; align-items: center; gap: 9px; padding: 0 15px; border: 1px solid rgba(56,200,138,.25); border-radius: 11px; background: #24342d; color: #bff5d7; box-shadow: 0 12px 34px rgba(0,0,0,.24); font-size: 10px; }

/* Task details: full-height work drawer */
.task-drawer-backdrop { place-items: stretch end; padding: 0; background: rgba(8,9,11,.57); backdrop-filter: none; }
.task-detail-drawer { width: min(800px,calc(100vw - 250px)); height: 100dvh; max-height: none; display: grid; grid-template-rows: auto minmax(0,1fr) auto; overflow: hidden; border: 0; border-left: 1px solid var(--line); border-radius: 0; background: color-mix(in srgb,var(--surface),#202124 24%); box-shadow: -30px 0 90px rgba(0,0,0,.34); animation: task-drawer-enter .24s cubic-bezier(.2,.7,.2,1); }
@keyframes task-drawer-enter { from { opacity: .72; transform: translateX(28px); } to { opacity: 1; transform: translateX(0); } }
.platform-modal.task-detail-drawer > .task-drawer-header { position: relative; min-height: 172px; display: grid; grid-template-columns: minmax(0,1fr) 40px; align-items: start; gap: 24px; padding: 28px 36px 24px; border-bottom: 1px solid var(--line); background: transparent; }
.task-drawer-header > div { min-width: 0; }
.task-drawer-kicker { min-height: 32px; display: flex; align-items: center; gap: 16px; }
.task-drawer-kicker > span { color: var(--muted); font-size: 13px; font-weight: 650; letter-spacing: 0; }
.task-drawer-kicker .workflow-badge { min-height: 31px; display: inline-flex; align-items: center; padding: 0 10px; border: 1px solid currentColor; border-radius: 6px; background: transparent; font-size: 11px; font-style: normal; }
.platform-modal.task-detail-drawer > .task-drawer-header h2 { max-width: 680px; margin: 16px 0 0; font-size: clamp(21px,2vw,26px); font-weight: 760; line-height: 1.16; letter-spacing: -.025em; text-wrap: balance; }
.task-drawer-header p { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.task-drawer-header .modal-close { margin-top: -4px; background: transparent; color: var(--muted); }
.task-drawer-header .modal-close:hover { background: var(--surface-2); color: var(--text); }
.task-drawer-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
.task-drawer-overview { display: grid; grid-template-columns: minmax(0,1fr) 222px; min-height: 100%; padding: 14px 36px 30px; }
.task-drawer-primary { min-width: 0; padding-right: 32px; }
.task-drawer-section { padding: 25px 0; border-bottom: 1px solid var(--line); }
.task-drawer-section:last-child { border-bottom: 0; }
.task-drawer-section > h3, .task-drawer-action > h3 { margin: 0 0 15px; font-size: 14px; font-weight: 760; letter-spacing: -.01em; }
.task-description-section p { max-width: 560px; margin: 0; color: color-mix(in srgb,var(--text),var(--muted) 38%); font-size: 13px; line-height: 1.62; }
.task-description-section p + p { margin-top: 11px; }
.task-drawer-facts { min-width: 0; margin-top: 0; padding: 25px 0 0 30px; border-left: 1px solid var(--line); }
.task-drawer-facts dl { margin: 0; }
.task-drawer-facts dl > div { min-height: 95px; padding: 0 0 22px; border-bottom: 1px solid var(--line); }
.task-drawer-facts dl > div + div { padding-top: 22px; }
.task-drawer-facts dt { color: var(--muted); font-size: 11px; }
.task-drawer-facts dd { margin: 9px 0 0; color: var(--text); font-size: 13px; font-weight: 680; line-height: 1.4; }
.task-drawer-facts small { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; }
.task-drawer-facts .danger dd, .task-drawer-facts .danger small { color: var(--red); }
.task-drawer-facts .workflow-badge { display: inline-flex; align-items: center; min-height: 29px; padding: 0 9px; font-size: 10px; font-style: normal; }
.task-drawer-assignees.assignment-list { margin-top: 0; }
.task-drawer-assignees .assignment-item { min-height: 64px; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 0; }
.task-drawer-assignees .assignment-item + .assignment-item { border-top: 1px solid color-mix(in srgb,var(--line),transparent 36%); }
.task-drawer-assignees .mini-avatar { width: 36px; height: 36px; font-size: 14px; }
.task-drawer-assignees .assignment-item > div:nth-child(2) b { font-size: 12px; }
.task-drawer-assignees .assignment-item > div:nth-child(2) small { margin-top: 4px; font-size: 10px; }
.lead-assignee-label { align-self: center; color: var(--purple); font-size: 10px; font-style: normal; white-space: nowrap; }
.task-drawer-empty { margin: 0; color: var(--muted); font-size: 12px; }
.task-history-section ol { position: relative; margin: 0; padding: 0 0 0 26px; list-style: none; }
.task-history-section ol::before { content: ""; position: absolute; top: 8px; bottom: 8px; left: 5px; width: 1px; background: color-mix(in srgb,var(--purple),transparent 38%); }
.task-history-section li { position: relative; display: grid; gap: 5px; padding: 0 0 22px; }
.task-history-section li:last-child { padding-bottom: 0; }
.task-history-section li::before { content: ""; position: absolute; top: 4px; left: -26px; width: 11px; height: 11px; border: 2px solid color-mix(in srgb,var(--purple),var(--surface) 12%); border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 3px color-mix(in srgb,var(--surface),transparent 4%); }
.task-history-section time { color: var(--muted); font-size: 10px; }
.task-history-section b { font-size: 11px; font-weight: 650; line-height: 1.45; }
.task-history-section small { color: var(--muted); font-size: 10px; }
.task-drawer-action { padding: 22px 36px 24px; border-top: 1px solid var(--line); background: color-mix(in srgb,var(--surface),#202124 24%); box-shadow: 0 -16px 34px rgba(0,0,0,.08); }
.task-drawer-action > h3 { margin-bottom: 12px; }
.task-drawer-report-form { display: grid; gap: 13px; }
.task-drawer-report-field { display: block; }
.task-drawer-report-field textarea { width: 100%; min-height: 82px; max-height: 160px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 6px; background: color-mix(in srgb,var(--surface-2),transparent 20%); color: var(--text); font-size: 12px; line-height: 1.5; resize: vertical; }
.task-drawer-report-field textarea:focus { border-color: var(--purple); outline: 2px solid color-mix(in srgb,var(--purple),transparent 82%); outline-offset: 1px; }
.task-drawer-action-buttons { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.task-drawer-action-buttons button { min-height: 43px; padding: 0 16px; border-radius: 6px; font-size: 11px; }
.task-drawer-action-buttons .primary-button { min-width: 152px; }
.task-drawer-single-action { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.task-drawer-single-action p { max-width: 480px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.task-drawer-single-action button { min-height: 43px; padding: 0 18px; }
.task-drawer-review-form { grid-template-columns: minmax(0,1fr) auto; align-items: end; }
.task-drawer-review-form .review-form-heading { grid-column: 1 / -1; }
.task-drawer-review-form > div:last-child { min-width: 265px; }

@media (max-width: 960px) {
  .task-detail-drawer { width: min(760px,calc(100vw - 92px)); }
  .task-drawer-overview { grid-template-columns: minmax(0,1fr) 190px; padding-right: 24px; padding-left: 24px; }
  .task-drawer-primary { padding-right: 24px; }
  .task-drawer-facts { padding-left: 22px; }
  .platform-modal.task-detail-drawer > .task-drawer-header, .task-drawer-action { padding-right: 24px; padding-left: 24px; }
}

@media (max-width: 700px) {
  .task-detail-drawer { width: 100vw; }
  .platform-modal.task-detail-drawer > .task-drawer-header { min-height: 0; padding: 20px 18px; }
  .platform-modal.task-detail-drawer > .task-drawer-header h2 { margin-top: 12px; font-size: 20px; }
  .task-drawer-overview { grid-template-columns: 1fr; padding: 0 18px 24px; }
  .task-drawer-primary { padding-right: 0; }
  .task-drawer-facts { grid-row: 1; padding: 18px 0; border-bottom: 1px solid var(--line); border-left: 0; }
  .task-drawer-facts dl { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
  .task-drawer-facts dl > div, .task-drawer-facts dl > div + div { min-height: 0; padding: 0; border: 0; }
  .task-drawer-assignees .assignment-item { grid-template-columns: 36px minmax(0,1fr); }
  .lead-assignee-label, .assignment-actions { grid-column: 2; justify-self: start; white-space: normal; }
  .task-drawer-action { padding: 17px 18px calc(18px + env(safe-area-inset-bottom)); }
  .task-drawer-action-buttons, .task-drawer-single-action { align-items: stretch; flex-direction: column; }
  .task-drawer-action-buttons button, .task-drawer-single-action button { width: 100%; }
  .task-drawer-review-form { grid-template-columns: 1fr; }
  .task-drawer-review-form > div:last-child { min-width: 0; }
}

@media (max-width: 1100px) {
  .app-sidebar { width: 230px; }
  .topbar { left: 230px; }
  .platform-content { margin-left: 230px; }
  .role-switch-caption { display: none; }
  .role-switcher { padding-left: 5px; }
  .role-switch-button { padding: 0 7px; }
  .member-grid, .organization-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .rule-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .task-row-card { grid-template-columns: 42px minmax(190px,1fr) minmax(130px,.55fr) 90px; }
  .task-row-card > .workflow-badge { display: none; }
  .board-toolbar { grid-template-columns: auto minmax(240px,1fr) auto; }
  .board-summary { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 6px; padding: 0 3px; }
  .board-summary small { grid-column: auto; margin: 0 0 0 auto; }
}

@media (max-width: 960px) and (min-width: 821px) {
  .member-directory-toolbar { display: block; }
  .member-filter-row { margin-top: 10px; }
  .member-filter-pills { min-width: 0; flex: 1; }
}

@media (max-width: 820px) {
  .login-main { grid-template-columns: 1fr; gap: 46px; }
  .login-copy { max-width: 620px; }
  .login-panel { width: min(520px,100%); }
  .page-heading p, .top-avatar { display: none; }
  .role-switch-options { display: none; }
  .role-switch-select { display: block; }
  .topbar-actions .primary-button span { display: none; }
  .topbar-actions .primary-button { width: 38px; min-height: 38px; padding: 0; }
  .company-select select { min-width: 138px; }
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stat-card:nth-child(2n) { border-right: 0; }
  .stat-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .task-focus-panel { grid-row: auto; }
  .task-toolbar { align-items: stretch; flex-direction: column; }
  .task-row-card { grid-template-columns: 40px minmax(0,1fr) 90px; }
  .assignee-stack { display: none; }
  .board-toolbar { grid-template-columns: auto minmax(0,1fr); }
  .board-executor-filter { grid-column: 1 / 2; }
  .board-summary { grid-column: 2; }
  .kanban-lane { min-height: calc(100dvh - 232px); }
  .profile-view { grid-template-columns: 1fr; }
  .team-view .member-grid { grid-template-columns: 1fr; }
  .seat-banner { grid-template-columns: minmax(140px,1fr) auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 680px) {
  html { scroll-padding-top: 68px; }
  .public-modal { padding: 28px 22px; border-radius: 15px; }
  .public-modal h2 { padding-right: 24px; font-size: 25px; }
  .login-header, .login-main { width: calc(100% - 28px); }
  .login-header { min-height: 68px; }
  .login-main { min-height: 0; gap: 34px; padding: 38px 0 52px; }
  .login-copy h1 { margin: 14px 0 16px; font-size: 38px; }
  .login-copy > p { font-size: 14px; }
  .login-panel { padding: 26px 18px; border-radius: 14px; }
  .login-panel .auth-card h2 { font-size: 28px; }
  .document-page { padding: 24px 16px 70px; }
  .document-wrap > header { padding-bottom: 24px; }
  .document-content { padding-top: 42px; }
  .auth-shell { display: block; }
  .auth-promo { min-height: 280px; padding: 28px 24px; }
  .auth-copy { margin-top: 54px; }
  .auth-copy h1 { margin: 14px 0; font-size: 31px; }
  .auth-copy p { font-size: 13px; line-height: 1.5; }
  .role-preview { margin-top: 18px; }
  .auth-panel { min-height: auto; padding: 36px 20px 48px; }
  .auth-theme { top: 16px; right: 16px; }
  .app-sidebar { display: none; }
  .topbar { position: sticky; left: 0; height: 64px; gap: 10px; padding: 0 10px; }
  .mobile-brand { display: flex; align-items: center; gap: 4px; color: var(--purple); }
  .mobile-brand .logo-mark { width: 18px; }
  .page-heading h1 { font-size: 17px; }
  .page-heading p { display: none; }
  .topbar-actions { gap: 6px; }
  .topbar-actions .primary-button span, .company-select, .top-avatar { display: none; }
  .topbar-actions .primary-button { width: 34px; min-height: 34px; padding: 0; border-radius: 10px; }
  .role-switcher { min-height: 36px; padding: 2px; border-radius: 9px; }
  .role-switch-select { min-width: 100px; height: 30px; font-size: 11px; }
  .platform-content { min-height: calc(100dvh - 112px); margin-left: 0; padding: 10px 10px 32px; }
  .appearance-heading { align-items: stretch; flex-direction: column; gap: 12px; }
  .appearance-mode { width: max-content; }
  .palette-options { grid-template-columns: 1fr; }
  .mobile-nav { position: sticky; z-index: 19; top: 64px; min-height: 48px; display: flex; gap: 5px; overflow-x: auto; padding: 6px 10px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg), transparent 3%); backdrop-filter: blur(16px); scrollbar-width: none; }
  .mobile-nav::-webkit-scrollbar { display: none; }
  .mobile-nav button { min-width: max-content; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 11px; border-radius: 9px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 700; }
  .mobile-nav svg { width: 16px; height: 16px; }
  .mobile-nav button.active { background: rgba(169,151,255,.14); color: var(--purple); }
  .stats-grid { gap: 0; border-radius: 11px; }
  .dashboard-scope { min-height: 52px; display: grid; grid-template-columns: minmax(0,1fr) minmax(140px,.9fr); align-items: center; gap: 8px; margin-bottom: 8px; padding: 8px 10px; }
  .dashboard-scope > div { min-width: 0; }
  .dashboard-scope > div b { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
  .dashboard-scope > div span, .dashboard-scope label > span { display: none; }
  .dashboard-scope label { width: 100%; }
  .dashboard-scope select { width: 100%; min-width: 0; height: 34px; padding-left: 8px; font-size: 10px; }
  .executor-filter { width: 100%; height: 34px; align-items: stretch; gap: 0; }
  .executor-filter > span { display: none; }
  .executor-filter select { width: 100%; min-width: 0; height: 34px; }
  .stat-card { min-height: 66px; column-gap: 8px; padding: 9px 10px; border-radius: 0; }
  .stat-card span { font-size: 10px; }
  .stat-card b { margin: 0; font-size: 23px; }
  .stat-card small { margin-top: 3px; font-size: 8px; }
  .dashboard-grid { margin-top: 8px; gap: 8px; }
  .task-focus-panel, .workflow-panel, .team-load-panel { padding: 12px; }
  .panel-head { gap: 8px; margin-bottom: 10px; }
  .panel-head h2 { font-size: 14px; }
  .panel-head p { margin-top: 3px; font-size: 10px; }
  .panel-head button { font-size: 10px; }
  .compact-task-list { gap: 6px; }
  .compact-task-list .compact-task:nth-child(n+4) { display: none; }
  .compact-task { min-height: 50px; grid-template-columns: 34px minmax(0,1fr); gap: 7px; padding: 7px 8px; border-radius: 9px; }
  .compact-task .workflow-badge { display: none; }
  .task-copy b { font-size: 11px; }
  .task-copy small { margin-top: 3px; font-size: 9px; }
  .workflow-roadmap { gap: 8px; }
  .workflow-roadmap > div { grid-template-columns: 24px minmax(0,1fr); gap: 8px; }
  .workflow-roadmap > div:not(:last-child)::after { left: 11px; top: 25px; height: 13px; }
  .workflow-roadmap > div > b { width: 24px; height: 24px; border-radius: 7px; font-size: 8px; }
  .workflow-roadmap small { margin-top: 2px; }
  .team-load-list { gap: 5px; }
  .team-load-list .team-load-person:nth-child(n+5) { display: none; }
  .team-load-person { grid-template-columns: 26px minmax(0,1fr) 26px; gap: 7px; padding: 3px; }
  .team-load-list .avatar { width: 26px; height: 26px; }
  .team-load-person > strong { font-size: 12px; }
  .task-toolbar { gap: 8px; padding: 8px; }
  .task-search-form { min-width: 0; }
  .task-search-form input { height: 36px; }
  .filter-pills button { min-height: 30px; padding: 0 9px; }
  .task-list { gap: 7px; margin-top: 8px; }
  .task-row-card { min-height: 76px; grid-template-columns: 32px minmax(0,1fr); gap: 6px; padding: 9px 10px 9px 13px; border-radius: 10px; }
  .task-row-card .task-due { grid-column: 2; }
  .filter-pills { width: 100%; }
  .board-toolbar { display: block; margin-bottom: 10px; padding: 9px; border-radius: 13px; }
  .board-view-switch { width: 100%; }
  .board-view-switch button { flex: 1; min-height: 38px; font-size: 11px; }
  .board-search-form { height: 46px; margin-top: 8px; }
  .board-executor-filter { margin-top: 8px; }
  .board-executor-filter > span { display: none; }
  .board-executor-filter select { width: 100%; min-width: 0; height: 42px; }
  .board-summary { display: flex; margin-top: 9px; padding: 0 3px; }
  .board-summary small { margin-left: auto; font-size: 8px; }
  .kanban-board { grid-template-columns: repeat(4, minmax(282px,282px)); gap: 9px; margin-right: -10px; padding-bottom: 10px; scroll-padding-left: 1px; }
  .kanban-lane { min-width: 282px; min-height: calc(100dvh - 280px); border-radius: 13px; }
  .kanban-lane > header { min-height: 82px; padding: 13px 13px 11px; }
  .kanban-lane-list { min-height: calc(100% - 82px); padding: 8px; }
  .kanban-card { min-height: 164px; padding: 12px; border-radius: 11px; }
  .kanban-card h3 { font-size: 13px; }
  .board-mobile-hint { display: block; margin: 8px 4px 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
  .member-directory-toolbar { display: block; margin-bottom: 10px; }
  .member-search-form { height: 48px; gap: 10px; padding: 0 13px; border-radius: 12px; box-shadow: none; }
  .member-search-form svg { width: 20px; height: 20px; }
  .member-search-form input { font-size: 13px; }
  .member-filter-row { margin-top: 9px; gap: 6px; }
  .member-filter-pills { min-width: 0; flex: 1; gap: 6px; }
  .member-filter-pills button { min-height: 38px; flex: 0 0 auto; padding: 0 11px; border-radius: 10px; font-size: 11px; }
  .member-filter-pills button b { margin-left: 3px; }
  .member-sort-button { width: auto; min-width: max-content; min-height: 38px; flex-basis: auto; padding: 0 11px; border-radius: 10px; font-size: 11px; }
  .seat-banner { grid-template-columns: minmax(96px,1fr) auto; gap: 12px; padding: 13px; border-radius: 13px; box-shadow: none; }
  .seat-copy span { font-size: 10px; }
  .seat-copy b { margin-top: 5px; font-size: 22px; }
  .seat-copy small { margin-top: 5px; font-size: 10px; }
  .seat-banner > i { height: 4px; }
  .seat-actions { flex-direction: row; gap: 6px; }
  .seat-actions button { min-height: 38px; flex: 1; padding: 0 10px; font-size: 11px; }
  .seat-actions svg { width: 16px; height: 16px; }
  .member-list-heading { margin: 15px 2px 9px; }
  .member-list-heading h2 { font-size: 16px; }
  .member-list-heading span { font-size: 10px; }
  .member-grid, .organization-grid { grid-template-columns: 1fr; gap: 7px; margin-top: 8px; }
  .team-view .member-grid { gap: 7px; margin-top: 0; }
  .member-card-v2 { min-height: 104px; grid-template-columns: 52px minmax(0,1fr) 18px; grid-template-rows: auto auto; gap: 5px 11px; padding: 11px 13px; border-radius: 12px; box-shadow: none; }
  .member-avatar { grid-row: 1 / 3; width: 52px; height: 52px; font-size: 18px; }
  .member-primary { grid-column: 2; grid-row: 1; align-self: end; }
  .member-primary > b { font-size: 13px; }
  .member-status { gap: 5px; margin-top: 5px; font-size: 10px; }
  .member-status i { width: 7px; height: 7px; flex-basis: 7px; }
  .member-metrics { grid-column: 2; grid-row: 2; align-self: start; gap: 16px; }
  .member-metrics > span { min-width: 38px; }
  .member-metrics > span + span { padding-left: 16px; }
  .member-metrics span b { font-size: 15px; }
  .member-metrics span small { margin-top: 3px; font-size: 9px; }
  .member-chevron { grid-column: 3; grid-row: 1 / 3; }
  .member-chevron svg { width: 20px; height: 20px; }
  .invite-options { grid-template-columns: 1fr; gap: 8px; }
  .invite-option { padding: 14px; }
  .invite-option h2 { margin: 12px 0 7px; font-size: 14px; }
  .invite-option p { min-height: 0; margin-bottom: 12px; font-size: 9px; }
  .rule-grid { grid-template-columns: 1fr; gap: 7px; }
  .rule-card { min-height: 112px; padding: 14px; }
  .rule-card h3 { margin: 12px 0 7px; }
  .rule-card small { margin-top: 10px; }
  .profile-card { grid-template-columns: 1fr; gap: 16px; padding: 14px; }
  .profile-details { text-align: center; }
  .profile-details dl div { grid-template-columns: 1fr; gap: 4px; text-align: left; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full, .assignee-picker.full { grid-column: 1; }
  .platform-modal { max-height: 94dvh; border-radius: 14px; }
  .platform-modal > header { min-height: 62px; padding: 10px 14px; }
  .platform-modal > header h2 { font-size: 15px; }
  .modal-backdrop { align-items: end; padding: 8px; }
  .task-detail-body { grid-template-columns: 1fr; }
  .task-detail-main, .task-action-panel { padding: 14px; }
  .task-detail-main > h3 { margin: 12px 0; font-size: 15px; }
  .task-action-panel { border-top: 1px solid var(--line); border-left: 0; }
  .task-detail-main > dl { grid-template-columns: 1fr; }
  .assignment-item { grid-template-columns: 28px minmax(0,1fr); }
  .assignment-actions { grid-column: 2; }
  .toast { right: 10px; bottom: 72px; left: 10px; justify-content: center; }
}

@media (max-width: 1180px) {
  .public-header-inner,
  .landing-hero-inner,
  .product-stage-heading,
  .mode-panel,
  .workflow-chapters,
  .pricing-band,
  .documents-section,
  .closing-cta,
  .public-footer { width: min(1080px, calc(100% - 40px)); }
  .public-header-inner { gap: 22px; }
  .public-links { gap: 18px; }
  .landing-title { font-size: clamp(56px,6.2vw,69px); }
  .product-preview-depth { width: min(calc(100% - 32px),116svh); }
  .mode-panel { grid-template-columns: 38px minmax(360px,1.15fr) minmax(260px,.75fr); gap: 32px; }
  .workflow-sequence li { grid-template-columns: 64px minmax(0,1fr) auto; }
  .pricing-band { padding: 42px 38px; }
}

@media (max-width: 960px) {
  .public-header-inner { grid-template-columns: minmax(0,1fr) auto; }
  .public-links { display: none; }
  .landing-hero { padding: 118px 0 170px; }
  .hero-question { margin-top: 48px; }
  .landing-title { font-size: clamp(52px,6.2vw,60px); }
  .product-stage { margin-top: clamp(-196px,-18vh,-160px); }
  .product-scroll-track { min-height: clamp(820px,120svh,1080px); }
  .product-preview-depth { top: 76px; width: min(calc(100% - 28px),112svh); }
  .product-window-head { grid-template-columns: 1fr auto; }
  .product-window-head > b { justify-self: end; }
  .product-window-head > em { display: none; }
  .mode-tabs button { min-height: 54px; gap: 6px; padding: 0 7px; font-size: 11px; }
  .mode-tabs button span { width: 22px; height: 22px; font-size: 8px; }
  .mode-panel { grid-template-columns: 36px minmax(0,1fr); gap: 28px; }
  .mode-facts { grid-column: 2; }
  .workflow-sequence { margin-top: 54px; }
  .workflow-sequence li { grid-template-columns: 54px minmax(0,1fr); gap: 20px; padding: 26px 0; }
  .workflow-sequence em { grid-column: 2; justify-self: start; }
  .pricing-band { grid-template-columns: minmax(0,1fr) auto; gap: 28px; }
  .pricing-band > button { grid-column: 1 / -1; width: 100%; }
}

@media (max-width: 680px) {
  .public-header-inner,
  .landing-hero-inner,
  .product-stage-heading,
  .mode-panel,
  .workflow-chapters,
  .pricing-band,
  .documents-section,
  .closing-cta,
  .public-footer { width: calc(100% - 28px); }
  .public-header-inner { min-height: 68px; gap: 8px; }
  .public-brand { gap: 7px; }
  .public-brand-mark { width: 30px; height: 30px; border-radius: 8px; font-size: 13px; }
  .public-brand > span:last-child b { font-size: 11px; }
  .public-brand > span:last-child small { display: none; }
  .public-actions { gap: 2px; }
  .public-login, .public-register { min-height: 36px; padding: 0 9px; font-size: 10px; }
  .landing-hero { min-height: calc(100svh - 68px); padding: 64px 0 158px; scroll-margin-top: 68px; }
  .landing-hero::before { background-size: 48px 48px; }
  .landing-hero::after { width: 125vw; height: 125vw; }
  .hero-atmosphere span:nth-child(1), .hero-atmosphere span:nth-child(2) { width: 64vw; }
  .landing-kicker { font-size: 9px; letter-spacing: .13em; }
  .landing-title { display: grid; gap: 3px; margin: 18px 0 20px; font-size: clamp(44px,12vw,52px); font-weight: 500; line-height: 1.02; }
  .landing-lede { max-width: 420px; font-size: 16px; line-height: 1.5; }
  .hero-question { min-height: 58px; grid-template-columns: 27px minmax(0,1fr) 40px; gap: 6px; margin-top: 28px; padding: 5px 6px 5px 12px; border-radius: 9px; }
  .question-mark { width: 25px; height: 25px; font-size: 12px; }
  .hero-question input { height: 44px; font-size: 15px; }
  .hero-question button { width: 40px; height: 40px; border-radius: 6px; }
  .question-note { max-width: 320px; line-height: 1.45; }
  .question-answer { grid-template-columns: 1fr; gap: 7px; padding: 12px 13px; }
  .question-answer a { width: max-content; }
  .hero-actions { width: min(420px,100%); align-items: stretch; flex-direction: column; margin-top: 22px; }
  .hero-primary, .hero-secondary { width: 100%; min-height: 46px; justify-content: center; }
  .hero-scroll { display: none; }
  .product-stage { margin-top: -112px; padding-bottom: 84px; scroll-margin-top: 68px; }
  .product-stage::before { width: 94vw; height: 260px; top: 80px; }
  .product-scroll-track { min-height: 900px; }
  .product-preview-depth { top: 76px; width: calc(100% - 16px); }
  .product-window-shell { border-radius: 11px; }
  .product-stage-heading h2 { margin: 12px auto 13px; font-size: 34px; line-height: 1.12; }
  .product-stage-heading p { font-size: 15px; line-height: 1.55; }
  .product-window-head { min-height: 36px; padding: 0 9px; }
  .product-window-head > span { gap: 4px; }
  .product-window-head > span i { width: 5px; height: 5px; }
  .product-window-head b { max-width: 210px; overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
  .preview-focus { border-width: 1px; border-radius: 5px; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 0 16px rgba(137,95,255,.28); }
  .product-preview-frame figcaption { min-height: 42px; gap: 8px; padding: 0 10px; }
  .product-preview-frame figcaption span, .product-preview-frame figcaption strong { font-size: 8px; }
  .product-preview-frame figcaption strong { overflow: hidden; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
  .mode-tabs-wrap { overflow-x: auto; padding: 7px; scrollbar-width: none; }
  .mode-tabs-wrap::-webkit-scrollbar { display: none; }
  .mode-tabs { width: max-content; min-width: 100%; display: flex; gap: 5px; }
  .mode-tabs button { min-width: max-content; min-height: 50px; flex: 1 0 auto; justify-content: flex-start; padding: 0 12px; font-size: 10px; }
  .mode-story { padding-bottom: 96px; scroll-margin-top: 68px; }
  .mode-panel { grid-template-columns: 1fr; gap: 22px; padding-top: 58px; }
  .mode-index { width: 36px; height: 36px; font-size: 9px; }
  .mode-copy h2 { margin: 12px 0 15px; font-size: 30px; line-height: 1.14; }
  .mode-copy > p { font-size: 15px; line-height: 1.6; }
  .mode-facts { grid-column: 1; }
  .mode-facts > div { grid-template-columns: 80px minmax(0,1fr); gap: 12px; padding: 15px 0; }
  .workflow-chapters { padding: 88px 0; }
  .chapter-heading h2 { font-size: 34px; }
  .workflow-sequence { margin-top: 40px; }
  .workflow-sequence li { min-height: 0; grid-template-columns: 34px minmax(0,1fr); gap: 12px; padding: 24px 0; }
  .workflow-sequence h3 { margin-bottom: 7px; font-size: 19px; }
  .workflow-sequence p { font-size: 14px; line-height: 1.55; }
  .workflow-sequence em { grid-column: 2; justify-self: start; white-space: normal; }
  .pricing-band { min-height: 0; grid-template-columns: 1fr; gap: 24px; padding: 32px 21px; border-radius: 12px; scroll-margin-top: 78px; }
  .pricing-band h2 { margin-top: 10px; font-size: 29px; }
  .price strong, .price span { text-align: left; }
  .price strong { font-size: 46px; }
  .pricing-band > button { grid-column: auto; min-height: 46px; }
  .documents-section { padding: 92px 0; scroll-margin-top: 68px; }
  .section-heading h2 { font-size: 34px; }
  .document-links { margin-top: 38px; }
  .document-links a { min-height: 70px; grid-template-columns: 28px minmax(0,1fr) auto; gap: 8px; }
  .document-links a > b { font-size: 12px; }
  .document-links a > em { font-size: 9px; }
  .closing-cta { padding: 82px 0; }
  .closing-cta h2 { margin: 14px auto 26px; font-size: 36px; }
  .closing-cta > div { align-items: stretch; flex-direction: column; }
  .closing-cta .primary-button, .closing-login { width: 100%; }
  .public-footer { min-height: 120px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 18px; }
  .public-footer p { margin: 0; line-height: 1.5; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-sequence,
  .hero-actions,
  .hero-scroll,
  .question-answer { opacity: 1; transform: none; filter: none; animation: none !important; }
  .hero-scroll i::after { display: none; }
  .product-scroll-track { min-height: auto; }
  .product-preview-depth { position: relative; top: auto; }
  .product-window-shell { opacity: 1 !important; filter: none !important; transform: none !important; transition: none !important; }
  .product-stage-heading { margin-top: 72px; }
  .preview-focus, .mode-copy, .mode-facts { transition: none !important; }
}
