@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0400-052F, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --font: "Manrope", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sidebar-rail: 82px;
  --sidebar-expanded: 276px;
  --sidebar-width: var(--sidebar-rail);
  --topbar-height: 0px;
  --bg: #101114;
  --sidebar: #15171c;
  --surface: #17191f;
  --surface-raised: #1d2027;
  --surface-soft: #20232b;
  --surface-hover: #242832;
  --text: #f4f4f6;
  --text-soft: #c4c6ce;
  --muted: #8c909d;
  --muted-2: #686d7a;
  --line: rgba(242, 243, 247, .1);
  --line-strong: rgba(242, 243, 247, .16);
  --purple: #9b87f5;
  --purple-strong: #846cf2;
  --purple-soft: rgba(155, 135, 245, .14);
  --blue: #639bf8;
  --orange: #f0a65a;
  --pink: #db75bd;
  --green: #65c997;
  --red: #ff636b;
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, .16);
  --shadow-lg: 0 28px 80px rgba(0, 0, 0, .42);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; background: var(--bg); }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { color: inherit; font: inherit; }
button { border: 0; cursor: pointer; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
button, select { background: none; }
img { display: block; max-width: 100%; }
.app-icon { display: inline-flex; align-items: center; justify-content: center; line-height: 1; }

/* Shared controls */
.primary-button,
.secondary-button,
.danger-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 750;
  transition: transform .18s var(--ease), background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.primary-button { background: var(--purple-strong); color: #fff; box-shadow: 0 8px 24px rgba(132, 108, 242, .2); }
.primary-button:hover { transform: translateY(-1px); background: #927df6; box-shadow: 0 12px 30px rgba(132, 108, 242, .28); }
.secondary-button { border-color: var(--line-strong); background: var(--surface-raised); color: var(--text); }
.secondary-button:hover { border-color: rgba(155, 135, 245, .42); background: var(--surface-hover); }
.danger-button { border-color: rgba(255, 99, 107, .25); background: rgba(255, 99, 107, .1); color: #ff858b; }
.danger-button:hover { background: rgba(255, 99, 107, .16); }
button:disabled { cursor: not-allowed; opacity: .45; transform: none !important; }
.wide-button { width: 100%; }
.eyebrow { color: var(--purple); font-size: 11px; font-weight: 800; letter-spacing: .14em; }

.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.panel-head h2 { font-size: 17px; line-height: 1.25; letter-spacing: -.025em; }
.panel-head p { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.panel-head > button { color: var(--purple); font-size: 12px; font-weight: 750; }

.avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  background: #6f62df;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.mini-avatar { width: 24px; height: 24px; margin-left: -5px; border: 2px solid var(--surface); font-size: 9px; }
.mini-avatar:first-child { margin-left: 0; }

input, textarea, select { border: 1px solid var(--line-strong); border-radius: 8px; background: #121419; color: var(--text); }
input::placeholder, textarea::placeholder { color: #666b78; }
input:hover, textarea:hover, select:hover { border-color: rgba(155, 135, 245, .35); }
input:focus, textarea:focus, select:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(155, 135, 245, .1); outline: 0; }
textarea { resize: vertical; }
select { appearance: none; padding-right: 34px; background-image: none; }

/* Loading */
.boot-screen, .page-loading { min-height: 100dvh; display: grid; place-items: center; align-content: center; gap: 14px; background: var(--bg); color: var(--muted); }
.boot-screen .brand-emblem { width: 48px; height: 48px; }
.boot-screen p, .page-loading p { font-size: 13px; }
.page-loading span { width: 28px; height: 28px; border: 2px solid var(--line-strong); border-top-color: var(--purple); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Public product site */
.public-shell, .login-page, .auth-shell { min-height: 100dvh; background: var(--bg); color: var(--text); }
.public-header { position: sticky; z-index: 30; top: 0; border-bottom: 1px solid rgba(255, 255, 255, .07); background: rgba(16, 17, 20, .94); backdrop-filter: blur(20px); }
.public-header-inner, .login-header { width: min(1180px, calc(100% - 40px)); min-height: 72px; margin: 0 auto; display: flex; align-items: center; }
.public-brand { display: inline-flex; align-items: center; gap: 11px; background: transparent; color: var(--text); text-align: left; }
.brand-emblem { width: 40px; height: 28px; flex: 0 0 auto; display: inline-grid; place-items: center; }
.brand-emblem img { width: 100%; height: 100%; display: block; object-fit: contain; filter: drop-shadow(0 8px 16px rgba(84, 67, 190, .2)); }
.public-brand-mark { width: 38px; height: 26px; }
.public-brand > span:last-child { display: grid; gap: 1px; }
.public-brand b { font-size: 14px; letter-spacing: .06em; }
.public-brand small { color: var(--muted); font-size: 9px; }
.public-links { display: flex; gap: 32px; margin: 0 auto; }
.public-links a { position: relative; padding: 26px 0; color: var(--muted); font-size: 12px; font-weight: 700; transition: color .18s ease; }
.public-links a::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; transform: scaleX(0); background: var(--purple); transition: transform .22s var(--ease); }
.public-links a:hover, .public-links a.active { color: var(--text); }
.public-links a.active::after { transform: scaleX(1); }
.public-actions { display: flex; align-items: center; gap: 8px; }
.public-login, .public-register, .login-back { min-height: 38px; padding: 0 14px; border-radius: 8px; color: var(--text-soft); font-size: 12px; font-weight: 750; }
.public-login:hover, .login-back:hover { background: var(--surface-raised); color: var(--text); }
.public-register { border: 1px solid rgba(155, 135, 245, .38); color: #c8beff; }
.public-register:hover { background: var(--purple-soft); }

.landing-hero, .landing-workflow, .pricing-band, .documents-section, .public-footer { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.landing-hero { min-height: calc(100dvh - 72px); display: grid; grid-template-columns: minmax(0, .82fr) minmax(500px, 1.18fr); align-items: center; gap: 52px; padding: 72px 0 76px; }
.landing-copy { min-width: 0; }
.landing-copy h1 { max-width: 620px; margin-top: 18px; font-size: clamp(42px, 5vw, 70px); line-height: 1.02; letter-spacing: -.065em; }
.landing-copy > p { max-width: 570px; margin-top: 24px; color: var(--text-soft); font-size: 17px; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 12px; margin-top: 30px; }
.hero-primary { min-height: 46px; }
.hero-secondary { min-height: 46px; display: inline-flex; align-items: center; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 9px; color: var(--text-soft); font-size: 13px; font-weight: 750; }
.hero-secondary:hover { border-color: rgba(155, 135, 245, .4); color: var(--text); }
.hero-proof { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 34px; color: var(--muted); font-size: 11px; }
.hero-proof span { display: grid; gap: 2px; }
.hero-proof b { color: var(--text-soft); font-size: 12px; }
.hero-product { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); box-shadow: 0 34px 90px rgba(0, 0, 0, .34); }
.product-window-head { min-height: 42px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.product-window-head em { font-style: normal; }
.hero-product img { width: 100%; aspect-ratio: 1.5; object-fit: cover; object-position: top left; }

.landing-workflow, .documents-section { padding: 110px 0; border-top: 1px solid var(--line); }
.section-heading { max-width: 760px; }
.section-heading h2 { margin-top: 13px; font-size: clamp(34px, 4vw, 54px); line-height: 1.08; letter-spacing: -.055em; }
.workflow-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 44px; }
.workflow-steps article { min-height: 190px; display: grid; align-content: space-between; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.workflow-steps article > b { color: var(--purple); font: 700 11px ui-monospace, SFMono-Regular, Menlo, monospace; }
.workflow-steps h3 { font-size: 19px; }
.workflow-steps p { margin-top: 9px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.pricing-band { min-height: 190px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 38px; padding: 34px; border: 1px solid rgba(155, 135, 245, .25); border-radius: 14px; background: #191824; }
.pricing-band h2 { margin-top: 10px; font-size: 28px; letter-spacing: -.04em; }
.pricing-band p { margin-top: 8px; color: var(--muted); }
.price { display: grid; text-align: right; }
.price strong { font-size: 34px; letter-spacing: -.05em; }
.price span { color: var(--muted); font-size: 10px; }
.documents-section { padding-bottom: 88px; }
.document-links { margin-top: 38px; border-top: 1px solid var(--line); }
.document-links a { min-height: 74px; display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); transition: padding .2s var(--ease), color .2s ease; }
.document-links a:hover { padding-inline: 10px; color: var(--purple); }
.document-links span { color: var(--muted-2); font: 700 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.document-links b { font-size: 13px; }
.document-links em { color: var(--muted); font-size: 11px; font-style: normal; }
.public-footer { min-height: 100px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
.public-footer p { color: var(--muted); font-size: 10px; }
.public-brand.compact .public-brand-mark { width: 34px; height: 34px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.public-modal-backdrop, .modal-backdrop { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(3, 4, 6, .76); backdrop-filter: blur(8px); animation: fade-in .18s ease both; }
.public-modal { position: relative; width: min(440px, 100%); padding: 34px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface-raised); box-shadow: var(--shadow-lg); }
.public-modal h2 { margin-top: 11px; font-size: 28px; }
.public-modal p { margin: 14px 0 24px; color: var(--muted); line-height: 1.65; }
.public-modal-close { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; color: var(--muted); }
.public-modal-close:hover { background: var(--surface-hover); color: var(--text); }
.public-modal-secondary { width: 100%; margin-top: 8px; padding: 10px; color: var(--muted); font-size: 12px; }

/* Authentication */
.login-header { justify-content: space-between; border-bottom: 1px solid var(--line); }
.login-main { width: min(1160px, calc(100% - 40px)); min-height: calc(100dvh - 73px); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 440px; align-items: center; gap: 88px; padding: 52px 0; }
.login-copy { max-width: 540px; }
.login-copy h1 { margin-top: 16px; font-size: clamp(44px, 4.8vw, 66px); line-height: 1.03; letter-spacing: -.06em; }
.login-copy p { margin-top: 20px; color: var(--text-soft); font-size: 16px; line-height: 1.65; }
.login-panel { padding: 34px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); }
.auth-card h2 { margin-top: 10px; font-size: 27px; letter-spacing: -.035em; }
.auth-card > p { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.login-form, .invite-accept-form { display: grid; gap: 15px; margin-top: 24px; }
.login-form label, .invite-accept-form label { display: grid; gap: 7px; color: var(--text-soft); font-size: 11px; font-weight: 700; }
.login-form input, .invite-accept-form input { width: 100%; height: 50px; padding: 0 14px; font-size: 13px; }
.auth-switch { width: 100%; margin-top: 17px; color: var(--purple); font-size: 11px; }
.form-error, .global-error { padding: 11px 13px; border: 1px solid rgba(255, 99, 107, .25); border-radius: 8px; background: rgba(255, 99, 107, .08); color: #ff858b; font-size: 12px; }
.auth-shell { display: grid; grid-template-columns: 1fr 1fr; }
.auth-promo, .auth-panel { min-height: 100dvh; display: grid; place-items: center; padding: 56px; }
.auth-promo { background: #15161b; }
.auth-copy { max-width: 520px; }
.auth-copy h1 { margin-top: 16px; font-size: 50px; line-height: 1.05; }
.auth-copy p { margin-top: 20px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.auth-brand { position: absolute; top: 40px; left: 40px; display: flex; align-items: center; gap: 10px; }
.auth-panel .auth-card { width: min(420px, 100%); padding: 30px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }

/* Application shell: one navigation surface */
.platform-shell { min-height: 100dvh; background: var(--bg); color: var(--text); }
.platform-shell.light {
  color-scheme: light;
  --bg: #f5f5f7;
  --sidebar: #ffffff;
  --surface: #ffffff;
  --surface-raised: #f0f1f4;
  --surface-soft: #e9eaf0;
  --surface-hover: #e5e6eb;
  --text: #17181c;
  --text-soft: #3f4450;
  --muted: #626876;
  --muted-2: #7f8593;
  --line: rgba(20, 22, 28, .11);
  --line-strong: rgba(20, 22, 28, .16);
  --shadow-sm: 0 8px 24px rgba(20, 22, 28, .08);
  --shadow-lg: 0 28px 80px rgba(20, 22, 28, .18);
}
.platform-shell.light input, .platform-shell.light textarea, .platform-shell.light select { background: #fff; }
.app-sidebar { position: fixed; z-index: 60; inset: 0 auto 0 0; width: var(--sidebar-rail); overflow: hidden; border-right: 1px solid var(--line); background: var(--sidebar); transition: width .42s cubic-bezier(.22, 1, .36, 1) .14s, background-color .2s ease, box-shadow .28s ease .1s; will-change: width; }
.platform-shell.light .app-sidebar { background: var(--sidebar); }
.app-sidebar:hover, .app-sidebar:focus-within { width: var(--sidebar-expanded); box-shadow: 26px 0 60px rgba(0, 0, 0, .28); transition-delay: 0s; }
.sidebar-context { width: var(--sidebar-expanded); height: 100%; display: flex; flex-direction: column; padding: 16px 13px 14px; }
.sidebar-copy { min-width: 0; opacity: 0; transform: translateX(-8px); pointer-events: none; transition: opacity .14s ease, transform .26s var(--ease); white-space: nowrap; }
.app-sidebar:hover .sidebar-copy, .app-sidebar:focus-within .sidebar-copy { opacity: 1; transform: translateX(0); pointer-events: auto; transition-delay: .09s; }
.app-brand { width: 250px; min-height: 48px; display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 10px; padding: 0 6px; color: var(--text); text-align: left; }
.app-brand .brand-emblem { width: 42px; height: 30px; }
.brand-copy { display: grid; gap: 1px; }
.app-brand b { font-size: 14px; letter-spacing: .035em; }
.app-brand small { color: var(--muted); font-size: 9px; }
.company-switcher { width: 250px; min-height: 62px; display: grid; grid-template-columns: 44px minmax(0, 1fr) 18px; align-items: center; gap: 9px; margin-top: 16px; padding: 8px 6px; border: 1px solid transparent; border-radius: 13px; background: rgba(255, 255, 255, .035); color: var(--text); text-align: left; transition: border-color .2s ease, background-color .2s ease, transform .24s var(--ease); }
.company-switcher:hover { border-color: rgba(155, 135, 245, .2); background: rgba(155, 135, 245, .08); }
.entity-emblem { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: #c4bbff; background: #2b2740; }
.entity-emblem.tone-1 { color: #8fc7ff; background: #202d3c; }.entity-emblem.tone-2 { color: #72d8ad; background: #1d332d; }.entity-emblem.tone-3 { color: #f2b46c; background: #392d20; }
.platform-shell.light .company-switcher,
.platform-shell.light .seat-widget { background: rgba(31, 33, 42, .035); }
.platform-shell.light .entity-emblem { color: #7562d9; background: #ece9ff; }
.platform-shell.light .entity-emblem.tone-1 { color: #397cbc; background: #e6f2ff; }
.platform-shell.light .entity-emblem.tone-2 { color: #2f8a68; background: #e3f5ee; }
.platform-shell.light .entity-emblem.tone-3 { color: #a76a28; background: #f8eddf; }
.company-copy { display: grid; gap: 3px; }
.company-switcher b { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.company-switcher small { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.company-chevron { color: var(--muted); }
.sidebar-primary-task { position: relative; width: 250px; min-height: 50px; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 9px; margin-top: 16px; padding: 3px 7px; border: 1px solid rgba(155, 135, 245, .14); border-radius: 13px; background: rgba(155, 135, 245, .075); color: #c8beff; text-align: left; transition: color .2s ease, background-color .22s ease, border-color .22s ease, transform .24s var(--ease), box-shadow .22s ease; }
.sidebar-primary-task:hover { border-color: rgba(155, 135, 245, .32); background: rgba(155, 135, 245, .13); }
.primary-task-emblem { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: #b7a9ff; background: rgba(155, 135, 245, .12); transition: color .2s ease, background-color .22s ease, box-shadow .24s ease; }
.sidebar-primary-task b { overflow: hidden; font-size: 13px; text-overflow: ellipsis; }
.sidebar-primary-task em { min-width: 26px; padding: 4px 7px; border-radius: 8px; background: rgba(155, 135, 245, .13); color: #d8d2ff; font-size: 9px; font-style: normal; text-align: center; }
.sidebar-primary-task.active { border-color: transparent; background: #7864ea; color: #fff; box-shadow: 0 10px 30px rgba(99, 78, 218, .26); }
.sidebar-primary-task.active .primary-task-emblem { color: #fff; background: rgba(255, 255, 255, .14); box-shadow: none; }
.sidebar-primary-task.active em { color: #fff; background: rgba(255, 255, 255, .15); }
.platform-shell.light .sidebar-primary-task { border-color: #ded8ff; background: #f1efff; color: #4d38a8; }
.platform-shell.light .sidebar-primary-task:hover { border-color: #c7bcff; background: #ebe7ff; }
.platform-shell.light .sidebar-primary-task .primary-task-emblem { color: #654dd1; background: #e4dfff; }
.platform-shell.light .sidebar-primary-task em { color: #514990; background: #e2def6; }
.platform-shell.light .sidebar-primary-task.active { border-color: transparent; background: #735ee8; color: #fff; }
.platform-shell.light .sidebar-primary-task.active .primary-task-emblem,
.platform-shell.light .sidebar-primary-task.active em { color: #fff; background: rgba(255, 255, 255, .17); }
.desktop-nav { min-height: 0; display: grid; align-content: start; gap: 10px; margin-top: 16px; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
.desktop-nav::-webkit-scrollbar { display: none; }
.nav-group { position: relative; width: 250px; display: grid; gap: 4px; }
.nav-group::before { content: ""; position: absolute; z-index: 1; top: 7px; left: 10px; width: 34px; height: 1px; border-radius: 999px; background: linear-gradient(90deg, transparent, var(--line-strong) 22%, var(--line-strong) 78%, transparent); opacity: 0; transform: scaleX(.65); transition: opacity .18s ease, transform .28s var(--ease); }
.nav-caption { height: 14px; margin: 0 9px 3px; color: var(--muted-2); font-size: 8px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.nav-button { position: relative; width: 250px; min-height: 44px; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 2px 7px; border-radius: 12px; color: var(--muted); font-size: 13px; text-align: left; transition: color .18s ease, background-color .22s ease, transform .22s var(--ease); }
.nav-emblem, .utility-emblem { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: var(--muted); background: transparent; transition: color .2s ease, background-color .22s ease, transform .24s var(--ease), box-shadow .24s ease; }
.nav-button:hover { background: rgba(255, 255, 255, .04); color: var(--text-soft); }
.nav-button:hover .nav-emblem { transform: scale(1.06); color: #c6bcff; background: rgba(155, 135, 245, .1); }
.nav-button.active { background: rgba(155, 135, 245, .1); color: #d5cfff; }
.nav-button.active .nav-emblem { color: #fff; background: #7864ea; box-shadow: 0 8px 24px rgba(99, 78, 218, .3); }
.platform-shell.light .nav-button { color: #666c79; }
.platform-shell.light .nav-button:hover { color: #353946; background: #f1effb; }
.platform-shell.light .nav-button:hover .nav-emblem { color: #5943bd; background: #e8e3ff; }
.platform-shell.light .nav-button.active { color: #49369f; background: #ebe7ff; }
.platform-shell.light .nav-button.active .nav-emblem { color: #fff; background: #735ee8; box-shadow: 0 8px 22px rgba(82, 62, 181, .22); }
.platform-shell.light .nav-button em { color: #4e5563; background: #e7e9ef; }
.platform-shell.light .sidebar-utility button:hover,
.platform-shell.light .profile-row:hover { color: #353946; background: #f1effb; }
.platform-shell.light .sidebar-utility button:hover .utility-emblem { color: #5943bd; background: #e8e3ff; }
.nav-copy { overflow: hidden; text-overflow: ellipsis; }
.nav-button em { min-width: 25px; padding: 4px 7px; border-radius: 8px; background: rgba(255, 255, 255, .06); color: var(--text-soft); font-size: 9px; font-style: normal; text-align: center; }
.control-button { grid-template-columns: 44px minmax(0, 1fr) 7px auto; }
.control-button.active { background: rgba(155, 135, 245, .08); }
.control-button.active .nav-emblem { color: #cbbfff; background: rgba(155, 135, 245, .13); box-shadow: none; }
.control-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted-2); }
.control-dot.blue { background: var(--blue); }.control-dot.red { background: var(--red); }.control-dot.orange { background: var(--orange); }
.sidebar-picker { width: 250px; max-height: 0; display: grid; grid-template-columns: 68px minmax(0, 1fr); align-items: center; gap: 8px; overflow: hidden; margin: 0; padding: 0 8px; border: 0 solid var(--line); border-radius: 9px; }
.app-sidebar:hover .sidebar-picker, .app-sidebar:focus-within .sidebar-picker { max-height: 48px; margin-top: 6px; padding-block: 6px; border-width: 1px; }
.sidebar-picker > span { color: var(--muted); font-size: 8px; font-weight: 750; }
.sidebar-picker select { min-width: 0; height: 32px; padding: 0 24px 0 8px; font-size: 9px; }
.seat-widget { width: 250px; margin-top: auto; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .025); }
.seat-widget > div { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 9px; }.seat-widget > div b { color: var(--text); font-size: 10px; }
.seat-widget > i { height: 4px; display: block; overflow: hidden; margin: 9px 0 7px; border-radius: 4px; background: var(--surface-soft); }.seat-widget > i b { height: 100%; display: block; border-radius: inherit; background: var(--purple); }.seat-widget small { color: var(--muted); font-size: 8px; }
.sidebar-footer { width: 250px; margin-top: auto; padding-top: 9px; border-top: 1px solid var(--line); }
.seat-widget + .sidebar-footer { margin-top: 10px; }
.sidebar-footer .sidebar-picker { margin-bottom: 5px; }
.sidebar-utility { display: grid; gap: 3px; margin-bottom: 7px; }
.sidebar-utility button { min-height: 43px; display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 9px; padding: 2px 7px; border-radius: 11px; color: var(--muted); font-size: 10px; text-align: left; }
.sidebar-utility button:hover { background: rgba(255, 255, 255, .04); color: var(--text-soft); }.sidebar-utility button:hover .utility-emblem { color: #c6bcff; background: rgba(155, 135, 245, .1); }
.platform-shell.light .sidebar-utility button { color: #666c79; }
.profile-row { position: relative; width: 250px; min-height: 54px; display: grid; grid-template-columns: 44px minmax(0, 1fr) 18px; align-items: center; gap: 9px; padding: 5px 7px; border-radius: 13px; color: var(--text); text-align: left; transition: background-color .2s ease, box-shadow .2s ease; }
.profile-row:hover { background: rgba(255, 255, 255, .04); }.profile-row.active { background: rgba(155, 135, 245, .1); box-shadow: inset 0 0 0 1px rgba(155, 135, 245, .16); }
.profile-row .avatar { width: 38px; height: 38px; }
.profile-copy { display: grid; gap: 2px; }.profile-copy b, .profile-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.profile-copy b { font-size: 11px; }.profile-copy small { color: var(--muted); font-size: 8px; }.profile-chevron { color: var(--muted); }
.platform-shell.light .profile-copy small,
.platform-shell.light .company-switcher small,
.platform-shell.light .nav-caption { color: #747b89; }

/* In compact mode the rail is a complete icon dock, not a clipped wide menu. */
@media (min-width: 941px) {
  .app-sidebar:not(:hover):not(:focus-within) .company-switcher,
  .app-sidebar:not(:hover):not(:focus-within) .sidebar-primary-task,
  .app-sidebar:not(:hover):not(:focus-within) .nav-button.active,
  .app-sidebar:not(:hover):not(:focus-within) .control-button.active,
  .app-sidebar:not(:hover):not(:focus-within) .profile-row.active { border-color: transparent; background: transparent; box-shadow: none; }
  .app-sidebar:not(:hover):not(:focus-within) .nav-group::before { opacity: 1; transform: scaleX(1); }
  .app-sidebar:not(:hover):not(:focus-within) .sidebar-primary-task.active .primary-task-emblem { color: #fff; background: #7864ea; box-shadow: 0 8px 24px rgba(99, 78, 218, .3); }
  .app-sidebar:not(:hover):not(:focus-within) .sidebar-primary-task.active::after,
  .app-sidebar:not(:hover):not(:focus-within) .nav-button.active::after,
  .app-sidebar:not(:hover):not(:focus-within) .profile-row.active::after { content: ""; position: absolute; top: 50%; left: -13px; width: 3px; height: 22px; border-radius: 0 4px 4px 0; background: #8b75f2; box-shadow: 0 0 14px rgba(123, 99, 235, .5); transform: translateY(-50%); }
}

.platform-content { min-height: 100dvh; margin-left: var(--sidebar-width); padding: 18px 22px 38px; background: var(--bg); transition: margin-left .28s var(--ease); }
.platform-content > section { animation: view-enter .42s var(--ease) both; }
@keyframes view-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.mobile-nav { display: none; }
.mobile-drawer-layer { display: none; }
.global-error { position: fixed; z-index: 90; right: 22px; bottom: 22px; max-width: 440px; box-shadow: var(--shadow-lg); }
.toast { position: fixed; z-index: 120; right: 22px; bottom: 22px; min-height: 42px; display: flex; align-items: center; gap: 9px; padding: 0 14px; border: 1px solid rgba(101, 201, 151, .25); border-radius: 9px; background: #18231f; color: #93dfb7; box-shadow: var(--shadow-lg); font-size: 11px; animation: toast-enter .28s var(--ease) both; }
@keyframes toast-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Dashboard */
.dashboard-view, .tasks-view, .team-view, .invitations-view, .organizations-view, .automation-view, .profile-view { max-width: 1440px; margin: 0 auto; }
.dashboard-scope { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 16px; }
.dashboard-scope > div { display: grid; gap: 3px; }
.dashboard-scope > div b { font-size: 12px; }
.dashboard-scope > div span { color: var(--muted); font-size: 9px; }
.dashboard-scope label { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 9px; }
.dashboard-scope select { height: 36px; min-width: 190px; padding: 0 32px 0 10px; }
.dashboard-scope-actions { display: flex !important; align-items: center; gap: 8px !important; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.stat-card { position: relative; min-height: 112px; display: grid; align-content: space-between; overflow: hidden; padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.stat-card::after { content: ""; position: absolute; top: -22px; right: -18px; width: 74px; height: 74px; border: 1px solid currentColor; border-radius: 50%; opacity: .08; }
.stat-card span, .stat-card small { color: var(--muted); font-size: 9px; }
.stat-card b { margin: 9px 0 3px; font-size: 30px; line-height: 1; letter-spacing: -.05em; }
.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-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(250px, .75fr); gap: 10px; margin-top: 12px; }
.task-focus-panel { grid-row: span 2; }
.task-focus-panel, .workflow-panel, .team-load-panel { padding: 18px; }
.compact-task-list, .team-load-list { display: grid; gap: 6px; margin-top: 14px; }
.compact-task { min-height: 58px; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-raised); color: var(--text); text-align: left; transition: transform .18s var(--ease), border-color .18s ease, background-color .18s ease; }
.compact-task:hover { transform: translateX(2px); border-color: rgba(155, 135, 245, .32); background: var(--surface-hover); }
.task-number, .task-id { color: var(--muted); font: 700 9px ui-monospace, SFMono-Regular, Menlo, monospace; }
.task-copy { min-width: 0; display: grid; gap: 4px; }
.task-copy b, .task-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-copy b { font-size: 12px; }
.task-copy small { color: var(--muted); font-size: 9px; }
.workflow-roadmap { display: grid; gap: 0; margin-top: 16px; }
.workflow-roadmap > div { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding-bottom: 14px; }
.workflow-roadmap > div:not(:last-child)::after { content: ""; position: absolute; top: 26px; bottom: 2px; left: 13px; width: 1px; background: var(--line-strong); }
.workflow-roadmap > div > b { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; background: var(--purple-soft); color: var(--purple); font-size: 10px; }
.workflow-roadmap span { display: grid; gap: 2px; padding-top: 2px; }
.workflow-roadmap strong { font-size: 10px; }.workflow-roadmap small { color: var(--muted); font-size: 8px; }
.team-load-person { min-height: 44px; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 9px; padding: 6px; border-radius: 8px; color: var(--text); text-align: left; }
.team-load-person:hover, .team-load-person.active { background: var(--surface-raised); }
.team-load-person .avatar { width: 30px; height: 30px; font-size: 10px; }
.team-load-person span { min-width: 0; display: grid; gap: 2px; }
.team-load-person b, .team-load-person small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-load-person b { font-size: 9px; }.team-load-person small { color: var(--muted); font-size: 7px; }.team-load-person > strong { font-size: 11px; }

/* Task list */
.task-toolbar { display: grid; grid-template-columns: minmax(260px, 1fr) auto minmax(0, auto) auto; align-items: center; gap: 10px; padding: 12px; }
.task-search-form, .member-search-form, .board-search-form { min-width: 0; display: flex; align-items: center; gap: 9px; color: var(--muted); }
.task-search-form { height: 42px; padding: 0 9px 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-raised); }
.task-search-form input, .member-search-form input, .board-search-form input { min-width: 0; flex: 1; height: 100%; padding: 0; border: 0; background: transparent !important; box-shadow: none !important; }
.task-search-form button { min-height: 30px; padding: 0 10px; border-radius: 6px; background: var(--surface-soft); color: var(--text-soft); font-size: 9px; }
.executor-filter { display: grid; gap: 3px; color: var(--muted); font-size: 8px; }
.executor-filter select { height: 40px; min-width: 160px; padding: 0 32px 0 10px; font-size: 10px; }
.filter-pills, .member-filter-pills { display: flex; gap: 3px; }
.filter-pills button, .member-filter-pills button { min-height: 36px; padding: 0 11px; border-radius: 7px; color: var(--muted); font-size: 10px; font-weight: 700; white-space: nowrap; }
.filter-pills button:hover, .member-filter-pills button:hover { background: var(--surface-raised); color: var(--text-soft); }
.filter-pills button.active, .member-filter-pills button.active { background: var(--purple-soft); color: #c7bdff; }
.task-list { display: grid; gap: 7px; margin-top: 10px; }
.task-row-card { position: relative; min-height: 76px; display: grid; grid-template-columns: 50px minmax(220px, 1.5fr) minmax(210px, 1fr) 110px 130px; align-items: center; gap: 14px; overflow: hidden; padding: 10px 16px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--text); text-align: left; transition: transform .18s var(--ease), border-color .18s ease, background-color .18s ease; }
.task-row-card:hover { transform: translateY(-1px); border-color: rgba(155, 135, 245, .32); background: var(--surface-raised); }
.task-status-line { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--purple); }.task-status-line.overdue { background: var(--red); }.task-status-line.done { background: var(--green); }.task-status-line.in_progress { background: var(--blue); }
.task-main { min-width: 0; display: grid; gap: 4px; }.task-main b, .task-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.task-main b { font-size: 12px; }.task-main small { color: var(--muted); font-size: 9px; }
.assignee-stack { min-width: 0; display: flex; align-items: center; }.assignee-stack small { margin-left: 8px; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.task-due { display: grid; gap: 3px; }.task-due small { color: var(--muted); font-size: 7px; }.task-due b { font-size: 9px; }
.workflow-badge { display: inline-flex; align-items: center; justify-content: center; width: max-content; max-width: 100%; padding: 5px 7px; border-radius: 6px; background: var(--surface-soft); color: var(--muted); font-size: 7px; font-style: normal; line-height: 1.25; text-align: center; }.workflow-badge.info { background: rgba(99, 155, 248, .12); color: #83aff8; }.workflow-badge.danger { background: rgba(255, 99, 107, .12); color: #ff7e85; }.workflow-badge.warning { background: rgba(240, 166, 90, .12); color: #f2b575; }.workflow-badge.success { background: rgba(101, 201, 151, .12); color: #83d8ad; }.workflow-badge.purple { background: var(--purple-soft); color: #b9aafd; }
.empty-state { min-height: 120px; display: grid; place-items: center; align-content: center; gap: 9px; color: var(--muted); font-size: 11px; }

/* Selected board system */
.platform-content:has(.board-view) { padding: 14px 18px 18px; }
.board-view { min-height: calc(100dvh - 32px); display: flex; flex-direction: column; gap: 10px; }
.board-overview { min-height: 54px; display: grid; grid-template-columns: minmax(300px, 1fr) auto; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.board-project { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 8px 13px; border-right: 1px solid var(--line); }
.board-project small, .board-project-meta small { color: var(--muted-2); font-size: 8px; font-weight: 800; letter-spacing: .11em; }.board-project b { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.board-project > em { color: var(--muted); font: 700 10px ui-monospace, SFMono-Regular, Menlo, monospace; font-style: normal; }
.board-project-meta { display: flex; align-items: stretch; }.board-project-meta > span { min-width: 118px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 0 14px; border-right: 1px solid var(--line); color: var(--text-soft); font-size: 9px; font-weight: 650; }.board-project-meta label { min-width: 182px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; padding: 0 10px 0 14px; }.board-project-meta select { height: 34px; padding: 0 27px 0 10px; font-size: 9px; }.board-project-meta > button { width: 44px; display: grid; place-items: center; border-left: 1px solid var(--line); color: var(--muted); }.board-project-meta > button:hover { background: var(--surface-raised); color: var(--text); }
.lane-tone { width: 6px; height: 6px; border-radius: 50%; background: var(--purple); }.kanban-lane.blue .lane-tone { background: var(--blue); }.kanban-lane.orange .lane-tone { background: var(--orange); }.kanban-lane.pink .lane-tone { background: var(--pink); }.kanban-lane.green .lane-tone { background: var(--green); }
.board-commandbar { min-height: 48px; display: grid; grid-template-columns: minmax(230px, 1fr) auto auto; align-items: center; gap: 8px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.board-quick-filters { display: flex; align-items: center; gap: 2px; }.board-quick-filters button { min-height: 36px; padding: 0 12px; border-radius: 7px; color: var(--muted); font-size: 10px; font-weight: 700; white-space: nowrap; }.board-quick-filters button:hover { color: var(--text-soft); }.board-quick-filters button.active { background: var(--purple-soft); color: #c7bdff; }
.board-tools { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 6px; }.board-search-form { width: 100%; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-raised); }.board-search-form input { font-size: 10px; }.board-search-form > button { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 6px; color: var(--muted); }
.board-compact-filter { height: 36px; display: flex; align-items: center; gap: 5px; padding-left: 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-raised); color: var(--muted); }.board-compact-filter select { width: 120px; height: 34px; padding: 0 26px 0 3px; border: 0; background: transparent; box-shadow: none; font-size: 8px; }
.board-view-switch { height: 36px; display: flex; align-items: center; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-raised); }.board-view-switch button { min-height: 28px; padding: 0 9px; border-radius: 6px; color: var(--muted); font-size: 8px; }.board-view-switch button.active { background: var(--purple-soft); color: #c7bdff; }
.board-create-inline, .task-create-inline { min-height: 36px; padding-inline: 11px; font-size: 9px; white-space: nowrap; }
.kanban-board { min-height: 0; flex: 1; display: grid; grid-template-columns: repeat(5, minmax(210px, 1fr)); gap: 8px; overflow: auto; scroll-snap-type: x proximity; scrollbar-color: var(--surface-soft) transparent; }
.kanban-lane { min-width: 210px; min-height: 590px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #13151a; scroll-snap-align: start; animation: lane-enter .42s var(--ease) both; animation-delay: calc(var(--lane-index) * 35ms); }.platform-shell.light .kanban-lane { background: #edeef2; }
@keyframes lane-enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.kanban-lane > header { min-height: 66px; padding: 13px 12px 10px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .012); }.kanban-lane > header > div { display: flex; align-items: center; gap: 7px; }.kanban-lane h2 { min-width: 0; flex: 1; font-size: 12px; line-height: 1.25; }.kanban-lane header b { min-width: 22px; padding: 3px 6px; border-radius: 5px; background: var(--surface-soft); font-size: 9px; text-align: center; }.kanban-lane header p { margin-top: 7px; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.kanban-lane-list { min-height: calc(100% - 64px); display: grid; align-content: start; gap: 8px; padding: 8px; transition: background-color .18s ease; }
.kanban-card { position: relative; min-height: 168px; padding: 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 4px 16px rgba(0, 0, 0, .08); animation: card-enter .38s var(--ease) both; animation-delay: calc(55ms + var(--card-index) * 28ms); transition: transform .2s var(--ease), border-color .18s ease, background-color .18s ease, box-shadow .2s ease, opacity .18s ease; }
@keyframes card-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.kanban-card[draggable="true"] { cursor: grab; }.kanban-card:hover { transform: translateY(-2px); border-color: rgba(155, 135, 245, .34); background: var(--surface-raised); box-shadow: var(--shadow-sm); }.kanban-card.overdue { border-left: 2px solid var(--red); }
.kanban-card-top { min-height: 22px; display: flex; align-items: center; gap: 6px; }.kanban-card-top > span { color: var(--muted); font: 700 9px ui-monospace, SFMono-Regular, Menlo, monospace; }.board-priority { padding: 4px 6px; border-radius: 5px; background: var(--surface-soft); color: var(--muted); font-size: 8px; font-style: normal; }.board-priority.high { background: rgba(255, 99, 107, .86); color: #fff; }.board-priority.medium { background: rgba(240, 166, 90, .13); color: var(--orange); }.board-priority.low { color: #9da2af; }
.board-card-handle { width: 26px; height: 26px; display: grid; place-items: center; margin: -3px -4px -3px auto; border-radius: 6px; color: var(--muted); opacity: .7; }.board-card-handle:hover { background: var(--surface-soft); color: var(--purple); opacity: 1; }
.kanban-card h3 { min-height: 50px; margin: 11px 0 7px; display: -webkit-box; overflow: hidden; font-size: 12px; line-height: 1.42; letter-spacing: -.015em; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }.kanban-card > p { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.kanban-card-people { display: flex; align-items: center; gap: 6px; margin-top: 12px; }.kanban-card-people > span { display: flex; }.kanban-card-people small { color: var(--muted); font-size: 9px; }
.kanban-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--line); }.kanban-card-footer time { display: flex; align-items: center; gap: 5px; color: var(--muted); font: 700 9px ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; }.kanban-card-footer time.overdue { color: var(--red); }.kanban-card-footer .workflow-badge { max-width: 102px; font-size: 8px; }
.kanban-card-feedback { display: grid; grid-template-columns: 17px 1fr; gap: 7px; margin-top: 10px; padding: 8px; border: 1px solid rgba(255, 99, 107, .16); border-radius: 7px; background: rgba(255, 99, 107, .06); color: #ff858b; }.kanban-card-feedback b { font-size: 8px; }.kanban-card-feedback p { margin-top: 3px; color: var(--text-soft); font-size: 7px; line-height: 1.45; }.kanban-card.has-feedback { min-height: 210px; }
.kanban-empty { min-height: 112px; display: grid; place-items: center; align-content: center; gap: 6px; border: 1px dashed var(--line-strong); border-radius: 8px; color: var(--muted); }.kanban-empty b { font-size: 9px; }.kanban-empty small { font-size: 7px; }
.kanban-lane.is-drop-target { border-color: rgba(155, 135, 245, .55); background: rgba(155, 135, 245, .045); }.kanban-lane.is-drop-target .kanban-lane-list::before { content: "Переместить сюда"; min-height: 44px; display: grid; place-items: center; border: 1px dashed var(--purple); border-radius: 7px; color: var(--purple); font-size: 8px; }.kanban-card.is-dragging { opacity: .2; transform: scale(.98); }.board-drag-ghost { position: fixed !important; inset: 0 auto auto 0; z-index: 1000; pointer-events: none; border-color: var(--purple); box-shadow: 0 24px 65px rgba(0, 0, 0, .46); opacity: .96; }.board-mobile-hint { display: none; }

/* People, invitations, organizations, automation, profile */
.member-directory-toolbar { display: grid; grid-template-columns: minmax(280px, 1fr) auto; align-items: center; gap: 12px; padding: 12px; }.member-search-form { height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-raised); }.member-filter-row { display: flex; align-items: center; gap: 7px; }.member-filter-pills b { margin-left: 4px; }.member-sort-button { min-height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font-size: 9px; }.member-sort-button.active { color: var(--purple); }
.seat-banner { position: relative; min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 20px; overflow: hidden; margin-top: 10px; padding: 18px; }.seat-copy { display: grid; gap: 3px; }.seat-copy > span, .seat-copy small { color: var(--muted); font-size: 9px; }.seat-copy > b { font-size: 25px; }.seat-copy em { color: var(--purple); font-style: normal; }.seat-actions { display: flex; gap: 7px; }.seat-banner > i { position: absolute; right: 18px; bottom: 14px; left: 18px; height: 4px; overflow: hidden; border-radius: 4px; background: var(--surface-soft); }.seat-banner > i b { height: 100%; display: block; border-radius: inherit; background: var(--purple); }
.member-list-heading { display: flex; align-items: center; justify-content: space-between; margin: 22px 2px 10px; }.member-list-heading h2 { font-size: 16px; }.member-list-heading span { color: var(--muted); font-size: 9px; }
.member-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }.member-card-v2 { min-height: 112px; display: grid; grid-template-columns: 54px minmax(0, 1fr) auto 18px; align-items: center; gap: 14px; padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); text-align: left; transition: transform .18s var(--ease), border-color .18s ease, background-color .18s ease; }.member-card-v2:hover { transform: translateY(-2px); border-color: rgba(155, 135, 245, .32); background: var(--surface-raised); }.member-avatar { width: 52px; height: 52px; font-size: 17px; }.member-primary { min-width: 0; display: grid; gap: 7px; }.member-primary > b { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.member-status { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 8px; }.member-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }.member-status.ready { color: var(--green); }.member-status.ready i { background: var(--green); }.member-metrics { display: flex; align-items: center; gap: 18px; }.member-metrics > span { display: grid; gap: 3px; }.member-metrics b { font-size: 15px; }.member-metrics small { color: var(--muted); font-size: 7px; }.danger-text { color: var(--red) !important; }.member-chevron { color: var(--muted); transform: rotate(90deg); }
.invite-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }.invite-option { min-height: 240px; display: grid; align-content: start; justify-items: start; padding: 22px; }.invite-option h2 { margin-top: 18px; font-size: 18px; }.invite-option p { max-width: 460px; margin: 10px 0 22px; color: var(--muted); font-size: 11px; line-height: 1.6; }.active-invites { margin-top: 10px; padding: 20px; }.active-invites .panel-head { margin-bottom: 12px; }.invite-row { min-height: 58px; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; border-top: 1px solid var(--line); }.invite-row > span { color: var(--muted); }.invite-row > div { display: grid; gap: 3px; }.invite-row b { font-size: 10px; }.invite-row small { color: var(--muted); font-size: 8px; }.invite-row em { color: var(--orange); font-size: 8px; font-style: normal; }
.option-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; background: var(--purple-soft); color: var(--purple); }
.organization-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }.organization-card { padding: 20px; }.organization-head { display: flex; align-items: center; gap: 12px; }.organization-head .entity-emblem { width: 46px; height: 46px; }.organization-head h2 { font-size: 15px; }.organization-head p { margin-top: 4px; color: var(--muted); font-size: 9px; }.organization-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0; }.organization-stats > span { display: grid; gap: 3px; padding: 12px; border-radius: 8px; background: var(--surface-raised); }.organization-stats b { font-size: 18px; }.organization-stats small { color: var(--muted); font-size: 7px; }.limit-form { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }.limit-form label { display: grid; gap: 5px; color: var(--muted); font-size: 8px; }.limit-form input { width: 100px; height: 38px; padding: 0 10px; }
.automation-hero { min-height: 92px; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 18px; }.automation-pulse { width: 34px; height: 34px; border: 9px solid rgba(101, 201, 151, .14); border-radius: 50%; background: var(--green); }.automation-hero h2 { font-size: 16px; }.automation-hero p { margin-top: 4px; color: var(--muted); font-size: 10px; }.automation-hero > b { color: var(--green); font-size: 11px; }.rule-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 10px; }.rule-card { min-height: 170px; padding: 18px; }.rule-card > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; background: var(--purple-soft); color: var(--purple); }.rule-card h3 { margin-top: 18px; font-size: 14px; }.rule-card p { margin-top: 7px; color: var(--text-soft); font-size: 10px; line-height: 1.5; }.rule-card small { display: block; margin-top: 14px; color: var(--muted); font-size: 8px; }
.profile-view { display: grid; grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr); gap: 10px; }.profile-card, .password-card { padding: 24px; }.profile-card { display: grid; grid-template-columns: 150px 1fr; gap: 30px; }.profile-avatar-wrap { display: grid; justify-items: center; align-content: start; gap: 10px; }.profile-avatar { width: 92px; height: 92px; font-size: 28px; }.avatar-upload { min-height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--text-soft); font-size: 9px; cursor: pointer; }.avatar-upload input { display: none; }.profile-avatar-wrap > small { color: var(--muted); font-size: 7px; text-align: center; }.profile-details h2 { margin-top: 10px; font-size: 23px; }.profile-details > p { margin-top: 4px; color: var(--muted); font-size: 10px; }.profile-details dl { display: grid; gap: 8px; margin: 22px 0 0; }.profile-details dl div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }.profile-details dt { color: var(--muted); font-size: 9px; }.profile-details dd { margin: 0; font-size: 10px; }.profile-logout { margin-top: 18px; }.password-card > div h2 { font-size: 18px; }.password-card > div p { margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.5; }.password-form { display: grid; gap: 14px; margin-top: 22px; }.password-form label { display: grid; gap: 6px; color: var(--text-soft); font-size: 9px; }.password-form input { height: 42px; padding: 0 11px; }

/* Modals */
.platform-modal { width: min(520px, 100%); max-height: min(88dvh, 900px); overflow: auto; border: 1px solid var(--line-strong); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow-lg); animation: modal-enter .28s var(--ease) both; }.platform-modal.wide-modal { width: min(960px, 100%); }
@keyframes modal-enter { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } } @keyframes fade-in { from { opacity: 0; } }
.platform-modal > header { position: sticky; z-index: 2; top: 0; min-height: 70px; display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; border-bottom: 1px solid var(--line); background: rgba(23, 25, 31, .96); backdrop-filter: blur(16px); }.platform-shell.light .platform-modal > header { background: rgba(255, 255, 255, .95); }.platform-modal > header span { color: var(--purple); font-size: 9px; font-weight: 800; letter-spacing: .13em; }.platform-modal > header h2 { margin-top: 3px; font-size: 21px; }.modal-close { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 7px; color: var(--muted); }.modal-close:hover { background: var(--surface-raised); color: var(--text); }
.task-create-form, .member-create-form, .share-content { padding: 22px; }.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }.field { display: grid; align-content: start; gap: 7px; color: var(--text-soft); font-size: 11px; font-weight: 700; }.field.full, .assignee-picker.full { grid-column: 1 / -1; }.field input, .field select { height: 44px; padding: 0 12px; font-size: 12px; }.field textarea { padding: 12px; font-size: 12px; line-height: 1.55; }
.assignee-picker { display: grid; gap: 7px; margin: 0; padding: 0; border: 0; }.assignee-picker legend { margin-bottom: 8px; color: var(--text-soft); font-size: 11px; font-weight: 750; }.assignee-picker legend small { color: var(--muted); font-weight: 500; }.assignee-option { min-height: 52px; display: grid; grid-template-columns: 18px 24px 1fr auto; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-raised); }.assignee-option > span { display: grid; gap: 2px; }.assignee-option b { font-size: 10px; }.assignee-option small { color: var(--muted); font-size: 8px; }.assignee-option em { color: var(--muted); font-size: 9px; font-style: normal; }.assignee-option input { accent-color: var(--purple); }
.task-create-form > footer, .member-create-form > footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }.member-create-form { display: grid; gap: 13px; }.password-generator { display: grid; grid-template-columns: 1fr auto; gap: 6px; }.password-generator button { padding: 0 10px; border-radius: 7px; background: var(--surface-soft); color: var(--text-soft); font-size: 9px; }
.task-detail-body { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); }.task-detail-main { padding: 22px; border-right: 1px solid var(--line); }.task-detail-meta { display: flex; align-items: center; gap: 8px; }.task-detail-meta > span { color: var(--muted); font: 700 10px ui-monospace, SFMono-Regular, Menlo, monospace; }.task-detail-main > h3 { margin-top: 15px; font-size: 23px; line-height: 1.35; letter-spacing: -.03em; }.task-detail-main > dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 20px 0 0; }.task-detail-main > dl div { padding: 11px; border-radius: 8px; background: var(--surface-raised); }.task-detail-main dt { color: var(--muted); font-size: 9px; }.task-detail-main dd { margin: 5px 0 0; font-size: 10px; }
.task-review-feedback { display: grid; grid-template-columns: 20px 1fr; gap: 9px; margin-top: 16px; padding: 12px; border: 1px solid rgba(255, 99, 107, .2); border-radius: 8px; background: rgba(255, 99, 107, .07); color: var(--red); }.task-review-feedback b { font-size: 9px; }.task-review-feedback p { margin-top: 4px; color: var(--text-soft); font-size: 9px; line-height: 1.55; }
.assignment-list { margin-top: 22px; }.assignment-list h4 { margin-bottom: 8px; font-size: 12px; }.assignment-item { min-height: 62px; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: start; gap: 9px; padding: 11px 0; border-top: 1px solid var(--line); }.assignment-item > div:nth-child(2) { display: grid; gap: 3px; }.assignment-item b { font-size: 10px; }.assignment-item small { color: var(--muted); font-size: 8px; }.assignment-item p { margin-top: 5px; color: var(--text-soft); font-size: 9px; line-height: 1.5; }.assignment-actions { display: flex; gap: 4px; }.assignment-actions button { min-height: 30px; padding: 0 9px; border-radius: 6px; background: var(--purple-soft); color: var(--purple); font-size: 8px; }.assignment-actions button.danger { background: rgba(255, 99, 107, .1); color: var(--red); }
.task-action-panel { padding: 22px; background: #14161b; }.platform-shell.light .task-action-panel { background: #f3f3f5; }.task-action-panel h4 { margin-bottom: 12px; font-size: 12px; }.report-form, .customer-review-form { display: grid; gap: 12px; }.report-form label, .customer-review-form label { display: grid; gap: 7px; color: var(--text-soft); font-size: 10px; }.report-form textarea, .customer-review-form textarea { padding: 11px; font-size: 11px; line-height: 1.5; }.review-form-heading b { font-size: 11px; }.review-form-heading p { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.5; }.customer-review-form label small { color: var(--muted); }.customer-review-form > div:last-child { display: grid; gap: 6px; }.action-note { padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-raised); color: var(--muted); font-size: 9px; line-height: 1.5; }.action-note.warning { border-color: rgba(240, 166, 90, .18); color: var(--orange); }
.share-content p { color: var(--muted); font-size: 10px; line-height: 1.6; }.share-link { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin: 14px 0 8px; }.share-link input { min-width: 0; height: 42px; padding: 0 10px; }.share-link button { padding: 0 12px; border-radius: 8px; background: var(--purple-soft); color: var(--purple); font-size: 9px; }.share-content > small { display: block; margin-bottom: 16px; color: var(--muted); font-size: 8px; }.credential-box { display: grid; grid-template-columns: 130px 1fr; gap: 8px; margin: 14px 0 18px; padding: 14px; border-radius: 9px; background: var(--surface-raised); }.credential-box span { color: var(--muted); font-size: 8px; }.credential-box b { font: 700 10px ui-monospace, SFMono-Regular, Menlo, monospace; }

@media (max-width: 1180px) {
  .board-project-meta > span { min-width: 104px; }
  .board-project-meta label { min-width: 154px; }
  .board-tools .board-compact-filter:first-of-type { display: none; }
  .task-row-card { grid-template-columns: 44px minmax(220px, 1.5fr) minmax(160px, 1fr) 100px 110px; }
}

@media (min-width: 681px) and (max-width: 1500px) {
  .board-tools .board-compact-filter:first-of-type { display: none; }
  .board-create-inline { width: 36px; padding: 0; }
  .board-create-inline span { display: none; }
}

@media (max-width: 940px) and (min-width: 681px) {
  :root { --sidebar-rail: 76px; --sidebar-expanded: 76px; --sidebar-width: var(--sidebar-rail); }
  .sidebar-context { padding-inline: 9px; }
  .app-sidebar:hover, .app-sidebar:focus-within { width: var(--sidebar-rail); box-shadow: none; }
  .sidebar-copy { opacity: 0 !important; pointer-events: none !important; transform: translateX(-8px) !important; }
  .company-switcher, .sidebar-primary-task, .nav-button.active, .control-button.active, .profile-row.active { border-color: transparent !important; background: transparent !important; box-shadow: none !important; }
  .nav-group::before { opacity: 1; transform: scaleX(1); }
  .sidebar-primary-task.active .primary-task-emblem { color: #fff !important; background: #7864ea !important; box-shadow: 0 8px 24px rgba(99, 78, 218, .3) !important; }
  .sidebar-primary-task.active::after, .nav-button.active::after, .profile-row.active::after { content: ""; position: absolute; top: 50%; left: -9px; width: 3px; height: 22px; border-radius: 0 4px 4px 0; background: #8b75f2; box-shadow: 0 0 14px rgba(123, 99, 235, .5); transform: translateY(-50%); }
  .app-brand, .company-switcher, .sidebar-primary-task, .nav-group, .nav-button, .sidebar-footer, .profile-row { width: 250px; }
  .desktop-nav { gap: 12px; margin-top: 18px; }
  .nav-group + .nav-group { padding-top: 12px; border-top: 1px solid var(--line); }
  .seat-widget { opacity: 0; pointer-events: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }.dashboard-grid { grid-template-columns: 1fr; }.task-focus-panel { grid-row: auto; }
  .task-toolbar { grid-template-columns: 1fr; }.filter-pills { overflow-x: auto; }.task-row-card { grid-template-columns: 44px minmax(0, 1fr) 100px 110px; }.assignee-stack { display: none; }
  .member-directory-toolbar { grid-template-columns: 1fr; }.member-filter-row { justify-content: space-between; }.profile-view { grid-template-columns: 1fr; }
  .board-overview { grid-template-columns: minmax(230px, 1fr) auto; }.board-commandbar { grid-template-columns: minmax(220px, 1fr) auto auto; }.board-tools { justify-content: flex-start; }
}

@media (max-width: 680px) {
  :root { --sidebar-rail: 0px; --sidebar-expanded: 0px; --sidebar-width: 0px; --topbar-height: 0px; }
  .app-sidebar { display: none; }
  .platform-content, .platform-content:has(.board-view) { min-height: 100dvh; margin-left: 0; padding: 10px 10px 86px; }
  .mobile-nav { position: fixed; z-index: 70; right: 10px; bottom: 10px; left: 10px; min-height: 58px; display: flex; align-items: center; justify-content: space-around; gap: 3px; padding: 5px; border: 1px solid var(--line); border-radius: 12px; background: rgba(23, 25, 31, .95); box-shadow: 0 20px 50px rgba(0, 0, 0, .36); backdrop-filter: blur(18px); }
  .platform-shell.light .mobile-nav { background: rgba(255, 255, 255, .94); }
  .mobile-nav > button { min-width: 0; min-height: 46px; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 8px; color: var(--muted); font-size: 9px; }
  .mobile-nav button.active { background: var(--purple-soft); color: #c7bdff; }
  .platform-shell.light .mobile-nav button.active { background: #ebe7ff; color: #49369f; }
  body:has(.mobile-drawer-layer) { overflow: hidden; }
  .mobile-drawer-layer { position: fixed; z-index: 100; inset: 0; display: block; }
  .mobile-drawer-layer.is-closing { pointer-events: none; }
  .mobile-drawer-backdrop { position: absolute; inset: 0; width: 100%; background: rgba(4, 5, 8, .66); backdrop-filter: blur(5px); animation: drawer-fade .22s ease both; }
  .mobile-drawer { position: absolute; inset: 0 auto 0 0; width: min(312px, 88vw); display: flex; flex-direction: column; overflow: hidden; border-right: 1px solid var(--line-strong); background: var(--sidebar); box-shadow: 32px 0 80px rgba(0, 0, 0, .45); animation: drawer-enter .3s var(--ease) both; }
  @keyframes drawer-fade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes drawer-enter { from { transform: translateX(-102%); } to { transform: translateX(0); } }
  @keyframes drawer-fade-out { from { opacity: 1; } to { opacity: 0; } }
  @keyframes drawer-exit { from { transform: translateX(0); opacity: 1; } to { transform: translateX(-102%); opacity: .96; } }
  .mobile-drawer-layer.is-closing .mobile-drawer-backdrop { animation: drawer-fade-out .26s ease both; }
  .mobile-drawer-layer.is-closing .mobile-drawer { animation: drawer-exit .28s cubic-bezier(.4, 0, 1, 1) both; }
  .mobile-drawer > header { min-height: 68px; display: grid; grid-template-columns: 38px minmax(0, 1fr) 36px; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
  .mobile-drawer > header .brand-emblem { width: 38px; height: 38px; border-radius: 11px; }
  .mobile-drawer > header > span:nth-child(2) { min-width: 0; display: grid; gap: 1px; }.mobile-drawer > header b { font-size: 15px; letter-spacing: .08em; }.mobile-drawer > header small { color: var(--muted); font-size: 9px; }
  .mobile-drawer > header > button { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; color: var(--muted); }.mobile-drawer > header > button:hover { background: var(--surface-raised); color: var(--text); }
  .mobile-company { min-height: 66px; display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 10px; margin: 12px 12px 2px; padding: 9px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }.mobile-company > span:last-child { min-width: 0; display: grid; gap: 3px; }.mobile-company b, .mobile-company small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.mobile-company b { font-size: 11px; }.mobile-company small { color: var(--muted); font-size: 8px; }
  .mobile-drawer > nav { min-height: 0; flex: 1; overflow-y: auto; padding: 14px 12px; }.mobile-drawer > nav section { display: grid; gap: 3px; }.mobile-drawer > nav section + section { margin-top: 18px; }.mobile-drawer > nav section > span { margin: 0 10px 7px; color: var(--muted-2); font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
  .mobile-drawer > nav button { min-height: 46px; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 0 12px; border-radius: 8px; color: var(--muted); text-align: left; }.mobile-drawer > nav button b { font-size: 13px; font-weight: 650; }.mobile-drawer > nav button em { min-width: 25px; padding: 3px 7px; border-radius: 6px; background: var(--surface-soft); color: var(--text-soft); font-size: 9px; font-style: normal; text-align: center; }.mobile-drawer > nav button.active { background: var(--purple-soft); color: #c7bdff; }
  .mobile-drawer .control-group button { grid-template-columns: 24px minmax(0, 1fr) 7px auto; }
  .platform-shell.light .mobile-drawer > nav button.active { background: #ebe7ff; color: #49369f; }
  .mobile-company .entity-emblem { width: 38px; height: 38px; border-radius: 11px; }
  .mobile-picker { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: 8px; margin: 8px 12px 0; color: var(--muted); font-size: 8px; }
  .mobile-picker select { min-width: 0; height: 36px; padding: 0 28px 0 9px; font-size: 9px; }
  .mobile-primary-task { min-height: 48px; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 10px; margin: 10px 12px 0; padding: 0 12px; border: 1px solid rgba(155, 135, 245, .18); border-radius: 9px; background: rgba(155, 135, 245, .08); color: #c7bdff; text-align: left; }.mobile-primary-task b { font-size: 13px; }.mobile-primary-task em { min-width: 25px; padding: 3px 7px; border-radius: 6px; background: rgba(155, 135, 245, .13); color: inherit; font-size: 9px; font-style: normal; text-align: center; }.mobile-primary-task.active { border-color: transparent; background: #7864ea; color: #fff; }.mobile-primary-task.active em { background: rgba(255, 255, 255, .16); }.platform-shell.light .mobile-primary-task { border-color: #ded8ff; background: #f1efff; color: #4d38a8; }.platform-shell.light .mobile-primary-task.active { border-color: transparent; background: #735ee8; color: #fff; }
  .mobile-drawer > footer { padding: 10px 12px 14px; border-top: 1px solid var(--line); }.mobile-profile { width: 100%; min-height: 54px; display: grid; grid-template-columns: 38px minmax(0, 1fr) 18px; align-items: center; gap: 10px; padding: 7px; border-radius: 9px; color: var(--text); text-align: left; }.mobile-profile.active { background: var(--surface-raised); }.mobile-profile .avatar { width: 38px; height: 38px; }.mobile-profile > span { min-width: 0; display: grid; gap: 2px; }.mobile-profile b, .mobile-profile small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.mobile-profile b { font-size: 11px; }.mobile-profile small { color: var(--muted); font-size: 8px; }.mobile-profile > .app-icon { color: var(--muted); }
  .mobile-drawer > footer > div { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 7px; }.mobile-drawer > footer > div button { min-height: 38px; display: flex; align-items: center; justify-content: center; gap: 7px; border-radius: 8px; background: var(--surface); color: var(--muted); font-size: 9px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }.stat-card { min-height: 100px; }.dashboard-grid { grid-template-columns: 1fr; }.task-focus-panel { grid-row: auto; }
  .dashboard-scope { align-items: stretch; flex-direction: column; }.dashboard-scope-actions { align-items: stretch !important; flex-direction: column; }.dashboard-scope label { justify-content: space-between; }.dashboard-scope select { min-width: 160px; }
  .task-toolbar { grid-template-columns: 1fr; }.filter-pills { overflow-x: auto; scrollbar-width: none; }.executor-filter { display: none; }.task-row-card { min-height: 92px; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 9px; padding: 11px; }.assignee-stack, .task-due { display: none; }.task-row-card .workflow-badge { justify-self: end; }
  .member-directory-toolbar { grid-template-columns: 1fr; }.member-filter-row { align-items: stretch; flex-direction: column; }.member-filter-pills { overflow-x: auto; }.seat-banner { align-items: flex-start; flex-direction: column; }.member-grid { grid-template-columns: 1fr; }.member-card-v2 { grid-template-columns: 46px minmax(0, 1fr) auto 16px; }.member-avatar { width: 44px; height: 44px; }.member-metrics { gap: 10px; }
  .invite-options, .organization-grid, .rule-grid, .profile-view { grid-template-columns: 1fr; }.profile-card { grid-template-columns: 1fr; }.profile-details { text-align: center; }.profile-details dl div { grid-template-columns: 1fr; gap: 4px; }.auth-shell { grid-template-columns: 1fr; }.auth-promo { display: none; }.auth-panel { min-height: 100dvh; padding: 20px; }
  .board-view { min-height: calc(100dvh - 96px); }.board-overview { min-height: 58px; grid-template-columns: 1fr; }.board-project { border-right: 0; }.board-project-meta { display: none; }.board-commandbar { display: flex; align-items: stretch; flex-direction: column; gap: 6px; }.board-quick-filters { overflow-x: auto; scrollbar-width: none; }.board-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; }.board-create-inline { grid-column: 1 / -1; }.board-search-form { width: 100%; }.board-compact-filter { display: none; }.kanban-board { grid-template-columns: repeat(5, minmax(82vw, 82vw)); }.kanban-lane { min-width: 82vw; min-height: calc(100dvh - 270px); }.kanban-card h3 { font-size: 12px; }.board-mobile-hint { position: fixed; z-index: 20; right: 12px; bottom: 76px; left: 12px; display: block; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(23, 25, 31, .94); color: var(--muted); font-size: 7px; text-align: center; backdrop-filter: blur(14px); }
  .task-detail-body { grid-template-columns: 1fr; }.task-detail-main { border-right: 0; border-bottom: 1px solid var(--line); }.task-detail-main > dl { grid-template-columns: 1fr; }.form-grid { grid-template-columns: 1fr; }.field.full, .assignee-picker.full { grid-column: auto; }.assignee-option { grid-template-columns: 18px 24px 1fr; }.assignee-option em { grid-column: 3; }.modal-backdrop { padding: 10px; }.platform-modal { max-height: 94dvh; }.login-main { min-height: 0; grid-template-columns: 1fr; gap: 28px; padding: 34px 0 46px; }.login-copy h1 { font-size: 36px; }.login-panel { padding: 22px; }
  .public-header-inner { min-height: 64px; }.public-links { display: none; }.public-actions { margin-left: auto; }.public-login, .public-register { min-height: 36px; padding: 0 9px; font-size: 10px; }.landing-hero { min-height: auto; grid-template-columns: 1fr; gap: 36px; padding: 54px 0 64px; }.landing-copy h1 { font-size: 44px; }.landing-copy > p { font-size: 15px; }.hero-proof { gap: 12px; }.landing-workflow, .documents-section { padding: 72px 0; }.workflow-steps { grid-template-columns: 1fr; }.pricing-band { grid-template-columns: 1fr; gap: 22px; padding: 24px; }.price { text-align: left; }.public-footer { min-height: 88px; }.document-links a { grid-template-columns: 30px 1fr auto; gap: 9px; }.login-header { min-height: 64px; }
}

@media (min-width: 681px) and (max-height: 760px) {
  .sidebar-context { padding-block: 10px; }
  .company-switcher { margin-top: 8px; }
  .desktop-nav { gap: 8px; margin-top: 10px; }
  .nav-button { min-height: 46px; }
  .seat-widget { display: none; }
}

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