:root {
  color-scheme: light;
  --ink: #111323;
  --ink-2: #404459;
  --muted: #777b90;
  --soft: #a4a7b7;
  --line: #e8e9f0;
  --wash: #f6f6fa;
  --surface: #ffffff;
  --violet: #7559f2;
  --violet-2: #5b3ed6;
  --violet-soft: #eeeafd;
  --mint: #22e3a2;
  --mint-dark: #078c67;
  --sky: #e7f5ff;
  --orange: #ff9e65;
  --red: #ef5c68;
  --red-soft: #fff0f1;
  --yellow: #f5b942;
  --shadow-sm: 0 1px 3px rgba(21, 20, 43, .04), 0 6px 16px rgba(36, 30, 76, .05);
  --shadow-lg: 0 24px 70px rgba(24, 18, 68, .17);
  --radius: 18px;
  --sidebar: 254px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f6f4ff;
  --ink-2: #c2bfd1;
  --muted: #918da5;
  --soft: #777289;
  --line: #302d42;
  --wash: #181723;
  --surface: #22202e;
  --violet-soft: #302a53;
  --sky: #1c3547;
  --red-soft: #40232a;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .18), 0 8px 18px rgba(0, 0, 0, .14);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100vh; margin: 0; color: var(--ink); background: var(--wash); -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
::selection { color: #141222; background: var(--mint); }

#particle-field { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #090b17 radial-gradient(circle at 15% 10%, #362778 0, transparent 36%); }
#particle-field::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(125deg, rgba(9, 11, 23, .15), rgba(9, 11, 23, .7)); }
#particle-field canvas { opacity: .8; }

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-size: 14px; font-weight: 900; letter-spacing: .14em; text-decoration: none; }
.brand-light { color: #fff; }
.brand-mark { position: relative; display: inline-flex; align-items: flex-end; gap: 3px; width: 31px; height: 25px; transform: skew(-8deg); }
.brand-mark span { display: block; width: 8px; border-radius: 2px; }
.brand-mark span:nth-child(1) { height: 17px; background: var(--mint); }
.brand-mark span:nth-child(2) { height: 25px; background: var(--violet); }
.brand-mark span:nth-child(3) { height: 13px; background: var(--orange); }

.auth-shell { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(420px, 1.15fr) minmax(420px, .85fr); min-height: 100vh; }
.auth-story { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; padding: clamp(32px, 5vw, 72px); color: #fff; overflow: hidden; }
.auth-story::before { content: ""; position: absolute; width: 460px; height: 460px; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; right: -140px; bottom: -160px; box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.018); }
.story-copy { position: relative; max-width: 690px; margin: 12vh 0 8vh; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: rgba(255,255,255,.69); font-size: 12px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow i { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--mint); }
.eyebrow.dark { color: rgba(255,255,255,.72); }
.story-copy h1 { margin: 24px 0; font-size: clamp(52px, 6vw, 92px); line-height: .97; letter-spacing: -.06em; }
.story-copy h1 em { color: var(--mint); font-style: normal; }
.story-copy > p { max-width: 600px; margin: 0; color: rgba(255,255,255,.66); font-size: clamp(16px, 1.6vw, 20px); line-height: 1.65; }
.story-proof { position: relative; display: flex; align-items: center; gap: 17px; }
.story-proof p { margin: 0; color: rgba(255,255,255,.58); font-size: 13px; line-height: 1.45; }
.story-proof strong { color: #fff; font-size: 14px; }
.avatar-stack { display: flex; padding-left: 9px; }
.avatar-stack span { display: grid; place-items: center; width: 38px; height: 38px; margin-left: -9px; border: 3px solid #171529; border-radius: 50%; color: #fff; background: #7559f2; font-size: 10px; font-weight: 800; }
.avatar-stack span:nth-child(2) { background: #08a87b; }.avatar-stack span:nth-child(3) { background: #ec6c65; }.avatar-stack span:nth-child(4) { color: #172019; background: var(--mint); }
.auth-panel { --ink: #111323; --ink-2: #404459; --muted: #777b90; --soft: #a4a7b7; --line: #e8e9f0; --surface: #fff; display: grid; place-items: center; min-height: 100vh; padding: 36px; color: var(--ink); background: rgba(249,249,252,.96); backdrop-filter: blur(18px); }
.auth-card { width: min(460px, 100%); }
.mobile-brand { display: none; align-items: center; gap: 10px; margin-bottom: 48px; font-size: 14px; font-weight: 900; letter-spacing: .14em; }
.auth-form { animation: enter .45s ease both; }
.form-kicker, .section-kicker { color: var(--violet); font-size: 11px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.auth-form h2 { margin: 11px 0 10px; color: #111323; font-size: clamp(30px, 4vw, 40px); line-height: 1.1; letter-spacing: -.04em; }
.form-lead { margin: 0 0 32px; color: #777b90; font-size: 14px; line-height: 1.55; }
.field { display: grid; gap: 8px; margin-bottom: 18px; color: var(--ink-2); font-size: 12px; font-weight: 750; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; outline: none; color: var(--ink); background: var(--surface); transition: border-color .15s, box-shadow .15s, background .15s; }
.field input, .field select { height: 46px; padding: 0 13px; }
.field textarea { padding: 13px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(117,89,242,.12); }
.field input::placeholder, .field textarea::placeholder { color: var(--soft); font-weight: 450; }
.input-wrap { position: relative; display: block; }
.input-wrap > svg { position: absolute; z-index: 1; top: 13px; left: 14px; width: 19px; height: 19px; color: #9295a5; }
.input-wrap input { height: 50px; padding: 0 48px 0 44px; border-color: #dddde7; color: #171829; background: #fff; }
.reveal-btn { position: absolute; top: 7px; right: 7px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 9px; color: #8f92a2; background: transparent; cursor: pointer; }
.reveal-btn:hover { color: var(--violet); background: #f4f1ff; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; padding: 0 16px; border: 1px solid transparent; border-radius: 11px; font-size: 13px; font-weight: 750; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s, border .15s; }
.button:hover { transform: translateY(-1px); }.button:active { transform: translateY(0); }.button:disabled { opacity: .6; pointer-events: none; }
.button svg { width: 17px; height: 17px; }
.button-primary { color: #fff; background: var(--violet); box-shadow: 0 8px 22px rgba(117,89,242,.24); }
.button-primary:hover { background: var(--violet-2); box-shadow: 0 10px 28px rgba(117,89,242,.33); }
.button-secondary { color: var(--violet); border-color: #dcd5fb; background: var(--violet-soft); }
.button-ghost { color: var(--ink-2); border-color: var(--line); background: transparent; }
.button-danger { color: var(--red); border-color: #f5c7cb; background: var(--red-soft); }
.button-full { width: 100%; min-height: 52px; margin-top: 4px; }
.security-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 24px; padding: 14px; border: 1px solid #e7e5ef; border-radius: 12px; color: #818495; background: rgba(255,255,255,.5); font-size: 11px; line-height: 1.5; }
.security-note svg { flex: 0 0 auto; width: 17px; height: 17px; color: #13a678; }
.form-error { margin: -6px 0 15px; padding: 10px 12px; border-radius: 9px; color: #b73140; background: #fff0f1; font-size: 12px; font-weight: 650; }
.field-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.field-grid > *, .field input, .field select, .field textarea { min-width: 0; }

.app-shell { position: relative; z-index: 2; min-height: 100vh; background: var(--wash); }
.app-shell::before { content: ""; position: fixed; inset: 0; z-index: -1; background: radial-gradient(circle at 90% 0%, rgba(117,89,242,.08), transparent 24%), radial-gradient(circle at 40% 100%, rgba(34,227,162,.05), transparent 24%); pointer-events: none; }
.app-shell + #particle-field, body:has(.app-shell:not([hidden])) #particle-field { display: none; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; display: flex; flex-direction: column; width: var(--sidebar); padding: 26px 18px 18px; border-right: 1px solid var(--line); background: var(--surface); }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; min-height: 40px; padding: 0 8px; }
.sidebar-close { display: none !important; }
.main-nav { display: grid; gap: 5px; margin-top: 50px; }
.nav-caption { margin: 0 11px 9px; color: var(--soft); font-size: 9px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.nav-item { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 45px; padding: 0 13px; border: 0; border-radius: 11px; color: var(--muted); background: transparent; font-size: 13px; font-weight: 680; text-align: left; cursor: pointer; transition: .15s; }
.nav-item::before { content: ""; position: absolute; left: -18px; width: 3px; height: 20px; border-radius: 0 3px 3px 0; background: transparent; }
.nav-item:hover { color: var(--ink); background: var(--wash); }
.nav-item.active { color: var(--violet); background: var(--violet-soft); }
.nav-item.active::before { background: var(--violet); }
.nav-item svg { width: 18px; height: 18px; }
.nav-item b { min-width: 22px; margin-left: auto; padding: 3px 6px; border-radius: 20px; color: var(--violet); background: rgba(117,89,242,.12); font-size: 10px; text-align: center; }
.sidebar-insight { margin-top: auto; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg, var(--violet-soft), var(--surface)); overflow: hidden; }
.insight-orb { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 13px; border-radius: 10px; color: #fff; background: var(--violet); box-shadow: 0 9px 20px rgba(117,89,242,.24); }
.insight-orb svg { width: 17px; height: 17px; }
.sidebar-insight strong { font-size: 12px; }.sidebar-insight p { margin: 6px 0 13px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.mini-progress { height: 4px; border-radius: 9px; background: rgba(117,89,242,.13); overflow: hidden; }.mini-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--violet); transition: width .5s; }
.profile-menu { position: relative; margin-top: 12px; }
.profile-button { display: flex; align-items: center; width: 100%; gap: 10px; padding: 10px 7px; border: 0; border-radius: 12px; color: var(--ink); background: transparent; text-align: left; cursor: pointer; }
.profile-button:hover { background: var(--wash); }.profile-button > svg { width: 17px; margin-left: auto; color: var(--soft); }
.avatar { display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 11px; color: #fff; background: var(--violet); font-size: 11px; font-weight: 850; letter-spacing: .03em; }
.profile-copy { min-width: 0; }.profile-copy strong, .profile-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.profile-copy strong { font-size: 12px; }.profile-copy small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.profile-popover { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-lg); }
.profile-popover button { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 38px; padding: 0 9px; border: 0; border-radius: 8px; color: var(--ink-2); background: transparent; font-size: 11px; font-weight: 650; cursor: pointer; }.profile-popover button:hover { background: var(--wash); }.profile-popover svg { width: 15px; }.danger-text { color: var(--red) !important; }
.workspace { min-height: 100vh; margin-left: var(--sidebar); }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 88px; padding: 0 clamp(24px, 4vw, 52px); border-bottom: 1px solid rgba(228,228,237,.8); background: color-mix(in srgb, var(--wash) 88%, transparent); backdrop-filter: blur(18px); }
.topbar-left, .topbar-actions { display: flex; align-items: center; gap: 13px; }.topbar-left p { margin: 0 0 3px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }.topbar-left h1 { margin: 0; font-size: 21px; letter-spacing: -.035em; }
.icon-button { display: grid; place-items: center; width: 39px; height: 39px; padding: 0; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: var(--surface); cursor: pointer; transition: .15s; }.icon-button:hover { color: var(--violet); border-color: #d8d0fa; transform: translateY(-1px); }.icon-button svg { width: 18px; height: 18px; }
.menu-button { display: none; }
.global-search { display: flex; align-items: center; gap: 9px; width: min(290px, 25vw); height: 42px; padding: 0 10px 0 13px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: var(--surface); }.global-search svg { flex: 0 0 auto; width: 17px; }.global-search input { min-width: 0; width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 11px; }.global-search input::placeholder { color: var(--soft); }.global-search:focus-within { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(117,89,242,.1); }.global-search kbd { padding: 3px 5px; border: 1px solid var(--line); border-radius: 5px; color: var(--soft); background: var(--wash); font: 9px inherit; white-space: nowrap; }
.workspace-content { max-width: 1500px; margin: 0 auto; padding: 30px clamp(24px, 4vw, 52px) 64px; }
.view { animation: enter .3s ease both; }

.hero-card { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 190px; padding: 34px 40px; border-radius: 22px; color: #fff; background: linear-gradient(115deg, #19152f 0%, #31266e 54%, #7559f2 120%); box-shadow: 0 16px 42px rgba(53,41,118,.2); overflow: hidden; }
.hero-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 65% 0%, rgba(34,227,162,.14), transparent 27%), linear-gradient(90deg, transparent, rgba(255,255,255,.025)); }
.hero-content { position: relative; z-index: 2; }.hero-content h2 { margin: 15px 0 8px; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.045em; }.hero-content p { margin: 0; color: rgba(255,255,255,.62); font-size: 14px; }
.hero-visual { position: relative; flex: 0 0 220px; height: 150px; }.orbit { position: absolute; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; }.orbit-a { inset: -35px -20px -35px 30px; }.orbit-b { inset: 5px 20px 5px 70px; border-color: rgba(34,227,162,.24); }
.hero-check { position: absolute; top: 41px; left: 105px; display: grid; place-items: center; width: 70px; height: 70px; border: 1px solid rgba(255,255,255,.22); border-radius: 23px; color: #12172a; background: var(--mint); box-shadow: 0 18px 40px rgba(34,227,162,.24); transform: rotate(-8deg); }.hero-check svg { width: 32px; height: 32px; stroke-width: 2.6; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 20px 0; }
.stat-card { position: relative; min-height: 119px; padding: 21px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }.stat-card::after { content: ""; position: absolute; width: 76px; height: 76px; right: -28px; bottom: -30px; border-radius: 50%; background: var(--stat-soft); }.stat-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }.stat-icon { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; color: var(--stat-color); background: var(--stat-soft); }.stat-icon svg { width: 15px; height: 15px; }.stat-value { display: flex; align-items: baseline; gap: 7px; margin-top: 13px; }.stat-value strong { font-size: 28px; letter-spacing: -.04em; }.stat-value span { color: var(--muted); font-size: 10px; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .65fr); gap: 20px; }
.panel { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 20px; }.panel-head h3 { margin: 5px 0 0; font-size: 17px; letter-spacing: -.025em; }.text-button { display: inline-flex; align-items: center; gap: 5px; padding: 7px 0; border: 0; color: var(--violet); background: transparent; font-size: 10px; font-weight: 750; cursor: pointer; }.text-button svg { width: 13px; height: 13px; }
.upcoming-list { display: grid; }.upcoming-item { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto auto; align-items: center; gap: 13px; min-height: 59px; border-top: 1px solid var(--line); }.upcoming-item:first-child { border-top: 0; }.priority-bar { width: 4px; height: 25px; border-radius: 4px; background: var(--priority); }.upcoming-copy { min-width: 0; }.upcoming-copy strong, .upcoming-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.upcoming-copy strong { font-size: 12px; }.upcoming-copy small { margin-top: 4px; color: var(--muted); font-size: 9px; }.date-chip { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 9px; white-space: nowrap; }.date-chip svg { width: 13px; height: 13px; }.date-chip.overdue { color: var(--red); font-weight: 750; }.mini-avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: #fff; font-size: 8px; font-weight: 850; }
.empty-message { display: grid; place-items: center; min-height: 130px; padding: 20px; border: 1px dashed var(--line); border-radius: 13px; color: var(--muted); font-size: 11px; text-align: center; }
.progress-panel { display: flex; flex-direction: column; }.progress-ring { --pct: 0; position: relative; display: grid; place-items: center; width: 150px; height: 150px; margin: 3px auto 22px; border-radius: 50%; background: conic-gradient(var(--violet) calc(var(--pct) * 1%), var(--violet-soft) 0); }.progress-ring::before { content: ""; position: absolute; inset: 13px; border-radius: 50%; background: var(--surface); }.progress-ring > div { position: relative; z-index: 1; text-align: center; }.progress-ring strong, .progress-ring span { display: block; }.progress-ring strong { font-size: 28px; letter-spacing: -.05em; }.progress-ring span { margin-top: 2px; color: var(--muted); font-size: 9px; }
.progress-legend { display: grid; gap: 9px; margin-top: auto; }.progress-legend span { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; }.progress-legend b { margin-left: auto; color: var(--ink); }.dot { width: 7px; height: 7px; border-radius: 50%; }.dot.done { background: var(--mint-dark); }.dot.doing { background: var(--violet); }.dot.todo { background: var(--soft); }
.project-strip-panel { margin-top: 20px; }.project-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }.project-mini { padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: var(--wash); cursor: pointer; transition: .15s; }.project-mini:hover { border-color: #cfc5fa; transform: translateY(-2px); }.project-mini > span { color: var(--violet); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }.project-mini h4 { margin: 7px 0 13px; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.project-mini-foot { display: flex; align-items: center; gap: 8px; }.line-progress { flex: 1; height: 4px; border-radius: 5px; background: var(--line); overflow: hidden; }.line-progress i { display: block; height: 100%; border-radius: inherit; background: var(--mint-dark); }.project-mini-foot b { color: var(--muted); font-size: 9px; }

.view-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }.view-description { max-width: 650px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }.segmented { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }.segmented button { min-height: 32px; padding: 0 13px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: 10px; font-weight: 750; cursor: pointer; }.segmented button.active { color: var(--violet); background: var(--violet-soft); }.filter-row { display: flex; gap: 9px; }.filter-row select { min-height: 40px; padding: 0 34px 0 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink-2); background: var(--surface); outline: 0; font-size: 10px; }
.kanban { display: grid; grid-template-columns: repeat(3, minmax(250px, 1fr)); gap: 16px; align-items: start; overflow-x: auto; padding-bottom: 10px; }.kanban-column { min-height: 260px; padding: 13px; border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--surface) 55%, var(--wash)); }.kanban-head { display: flex; align-items: center; gap: 8px; min-height: 37px; padding: 0 4px 9px; }.kanban-head h3 { margin: 0; font-size: 11px; }.kanban-head b { display: grid; place-items: center; min-width: 20px; height: 20px; margin-left: auto; border-radius: 7px; color: var(--muted); background: var(--surface); font-size: 9px; }.kanban-list { display: grid; gap: 10px; }.task-card { padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow-sm); transition: .15s; }.task-card:hover { border-color: #d4ccf8; transform: translateY(-2px); box-shadow: 0 10px 25px rgba(44,35,94,.09); }.task-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }.priority-pill { padding: 4px 8px; border-radius: 7px; color: var(--priority-ink); background: var(--priority-soft); font-size: 8px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }.task-project { min-width: 0; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }.task-card h4 { margin: 13px 0 16px; font-size: 12px; line-height: 1.45; }.task-card-meta { display: flex; align-items: center; gap: 8px; }.task-card-meta .date-chip { margin-left: auto; }.task-card-actions { display: flex; gap: 6px; margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--line); }.status-select { flex: 1; min-width: 0; height: 31px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink-2); background: var(--wash); outline: 0; font-size: 9px; font-weight: 650; }.tiny-button { display: grid; place-items: center; width: 31px; height: 31px; padding: 0; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--surface); cursor: pointer; }.tiny-button:hover { color: var(--violet); border-color: #d3c9fa; }.tiny-button svg { width: 14px; height: 14px; }.kanban-empty { display: grid; place-items: center; min-height: 150px; padding: 20px; border: 1px dashed var(--line); border-radius: 11px; color: var(--soft); font-size: 10px; text-align: center; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(250px, 1fr)); gap: 16px; }.project-card { position: relative; padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); box-shadow: var(--shadow-sm); transition: .18s; overflow: hidden; }.project-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(45,36,94,.09); }.project-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--project-accent); }.project-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }.folder-badge { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: var(--project-accent); background: var(--project-soft); }.folder-badge svg { width: 18px; height: 18px; }.project-card h3 { margin: 15px 0 5px; font-size: 14px; }.project-card .group { color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }.project-notes { display: -webkit-box; min-height: 39px; margin: 14px 0 18px; overflow: hidden; color: var(--muted); font-size: 10px; line-height: 1.5; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }.project-stats { display: flex; justify-content: space-between; margin-bottom: 9px; color: var(--muted); font-size: 9px; }.project-stats strong { color: var(--ink); }.project-card .line-progress { height: 5px; }.project-actions { display: flex; justify-content: flex-end; margin-top: 14px; }
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(240px, 1fr)); gap: 16px; }.member-card { padding: 19px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-sm); }.member-head { display: flex; align-items: center; gap: 12px; }.member-head .avatar { width: 42px; height: 42px; border-radius: 13px; }.member-copy { min-width: 0; }.member-copy strong, .member-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.member-copy strong { font-size: 12px; }.member-copy small { margin-top: 4px; color: var(--muted); font-size: 9px; }.role-pill { margin-left: auto; padding: 4px 8px; border-radius: 7px; color: var(--violet); background: var(--violet-soft); font-size: 8px; font-weight: 850; text-transform: uppercase; }.role-pill.member { color: var(--mint-dark); background: rgba(34,227,162,.12); }.member-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 17px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }.member-status { display: inline-flex; align-items: center; gap: 5px; }.member-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint-dark); }.member-status.inactive i { background: var(--soft); }.member-status.inactive { color: var(--soft); }

.modal-layer { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 22px; }.modal-scrim { position: absolute; inset: 0; background: rgba(13,12,28,.62); backdrop-filter: blur(5px); animation: fade .18s ease both; }.modal { position: relative; z-index: 1; width: min(600px, 100%); max-height: calc(100vh - 44px); padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-lg); overflow-x: hidden; overflow-y: auto; animation: modal-in .25s ease both; }.modal-small { width: min(470px, 100%); }.modal-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 25px; }.modal-head h2 { margin: 6px 0 0; font-size: 21px; letter-spacing: -.035em; }.modal .field { margin-bottom: 16px; }.modal-actions { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 9px; margin-top: 25px; padding-top: 19px; border-top: 1px solid var(--line); }.status-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }.status-picker input { position: absolute; opacity: 0; pointer-events: none; }.status-picker label { min-width: 0; cursor: pointer; }.status-picker span { display: grid; place-items: center; min-height: 39px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: var(--surface); font-size: 10px; }.status-picker input:checked + span { color: var(--violet); border-color: #cfc3fa; background: var(--violet-soft); font-weight: 750; }.toggle-field { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 8px 0 16px; color: var(--ink); }.toggle-field span strong, .toggle-field span small { display: block; }.toggle-field span strong { font-size: 12px; }.toggle-field span small { margin-top: 4px; color: var(--muted); font-size: 9px; }.toggle-field input { position: absolute; opacity: 0; }.toggle-field i { position: relative; flex: 0 0 auto; width: 42px; height: 24px; border-radius: 30px; background: var(--line); cursor: pointer; transition: .15s; }.toggle-field i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.16); transition: .15s; }.toggle-field input:checked + i { background: var(--violet); }.toggle-field input:checked + i::after { transform: translateX(18px); }
.toast-region { position: fixed; z-index: 200; right: 22px; bottom: 22px; display: grid; gap: 9px; pointer-events: none; }.toast { display: flex; align-items: center; gap: 9px; min-width: 250px; max-width: 360px; padding: 13px 15px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; color: #fff; background: #171526; box-shadow: 0 15px 40px rgba(0,0,0,.23); font-size: 11px; font-weight: 650; animation: toast-in .25s ease both; }.toast::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }.toast.error::before { background: var(--red); }

@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes toast-in { from { opacity: 0; transform: translateX(15px); } to { opacity: 1; transform: none; } }

@media (max-width: 1100px) {
  .auth-shell { grid-template-columns: 1fr 1fr; }
  .story-copy h1 { font-size: 58px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }.auth-story { display: none; }.auth-panel { padding: 28px; }.mobile-brand { display: flex; }
  .sidebar { transform: translateX(-105%); transition: transform .22s ease; box-shadow: var(--shadow-lg); }.sidebar.open { transform: translateX(0); }.sidebar-close { display: grid !important; }.sidebar-scrim:not([hidden]) { position: fixed; inset: 0; z-index: 35; display: block; background: rgba(10,9,22,.5); backdrop-filter: blur(2px); }.workspace { margin-left: 0; }.menu-button { display: grid; }
  .overview-grid { grid-template-columns: 1fr; }.progress-panel { min-height: 340px; }.project-strip { grid-template-columns: repeat(2, 1fr); }.kanban { grid-template-columns: repeat(3, minmax(280px, 1fr)); }
}

@media (max-width: 650px) {
  .auth-panel { align-items: start; padding: 28px 20px; }.mobile-brand { margin: 10px 0 55px; }.auth-form h2 { font-size: 31px; }.field-grid { grid-template-columns: 1fr; gap: 0; }
  .topbar { height: 75px; padding: 0 16px; }.topbar-left p { display: none; }.topbar-left h1 { font-size: 18px; }.global-search { display: none; }.topbar-actions .button span { display: none; }.topbar-actions .button { width: 40px; padding: 0; }.workspace-content { padding: 18px 14px 50px; }
  .hero-card { min-height: 184px; padding: 28px 24px; }.hero-content { max-width: 80%; }.hero-content h2 { font-size: 28px; }.hero-content p { font-size: 12px; line-height: 1.5; }.hero-visual { position: absolute; right: -55px; width: 180px; opacity: .65; }.hero-check { left: 75px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }.stat-card { min-height: 108px; padding: 15px; }.stat-value strong { font-size: 24px; }.project-strip { grid-template-columns: 1fr; }.panel { padding: 18px; }
  .view-toolbar { align-items: stretch; flex-direction: column; }.filter-row { overflow-x: auto; }.filter-row select { flex: 1; min-width: 145px; }.segmented { align-self: flex-start; }.project-grid, .team-grid { grid-template-columns: 1fr; }.modal-layer { align-items: end; padding: 0; }.modal { width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); }.modal-actions { grid-template-columns: 1fr 1fr; }.modal-actions > span { display: none; }.modal-actions .button-danger { grid-column: 1 / -1; order: 3; }.upcoming-item { grid-template-columns: 7px minmax(0,1fr) auto; }.upcoming-item .mini-avatar { display: none; }.toast-region { right: 12px; bottom: 12px; left: 12px; }.toast { min-width: 0; max-width: 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; }
  #particle-field canvas { display: none; }
}
