/* Tasks demo: design tokens, shell, screens and the five themes.
   Tokens follow one naming scheme (--lt-*): colors, radii, density, sidebar chrome. */

@font-face {
  font-family: "Plus Jakarta Sans Variable";
  src: url("plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------------------ */
/* Tokens: Aurora light is the base                                    */
/* ------------------------------------------------------------------ */
:root {
  color-scheme: light;
  --brand: #2b5fd9;
  --brand-fill: #2b5fd9;
  --on-brand-fill: #ffffff;
  --on-brand: #ffffff;
  --brand-text: #2b5fd9;
  --brand-lift: #8aaaf0;
  --on-brand-lift: #0b0d14;
  --brand-nav: #2b5fd9;

  --lt-bg: #f3f5fa;
  --lt-bg-soft: #eceff7;
  --lt-bg-elev: #ffffff;
  --lt-surface: rgba(18, 28, 60, 0.04);
  --lt-surface-2: rgba(18, 28, 60, 0.07);
  --lt-line: rgba(18, 28, 60, 0.09);
  --lt-line-strong: rgba(18, 28, 60, 0.17);
  --lt-control-line: #7b829a;
  --lt-fg: #0f1630;
  --lt-fg-mid: #38405c;
  --lt-fg-dim: #4d5572;
  --lt-fg-faint: #5b6380;
  --lt-positive: #137a38;
  --lt-negative: #c2362b;
  --lt-warning: #a15c07;
  --lt-info: #2563a8;
  --lt-positive-soft: #e3f4ea;
  --lt-negative-soft: #fdeceb;
  --lt-warning-soft: #fcf1de;
  --lt-info-soft: #e8eefb;
  --lt-violet: #6a3bcc;
  --lt-teal: #0a716c;
  --lt-pink: #ad2873;
  --lt-orange: #b4490c;
  --lt-page: var(--lt-bg);
  --lt-card-shadow: 0 1px 2px rgba(18, 28, 60, 0.05), 0 12px 32px -14px rgba(18, 28, 60, 0.18);
  --lt-pop-shadow: 0 16px 40px -10px rgba(18, 28, 60, 0.3), 0 2px 6px rgba(18, 28, 60, 0.08), 0 0 0 1px rgba(18, 28, 60, 0.06);
  --lt-card-border: transparent;
  --lt-table-head: #f6f8fc;
  --lt-row-hover: rgba(18, 28, 60, 0.03);
  --lt-backdrop: rgba(10, 16, 40, 0.4);
  --lt-glow: 13%;

  --lt-sidebar-w: 272px;
  --lt-bar-h: 0px;
  --lt-content-w: 1240px;
  --lt-font-size: 14px;
  --lt-radius-sm: 11px;
  --lt-radius-md: 14px;
  --lt-radius-lg: 22px;
  --lt-radius-control: 13px;
  --lt-radius-field: 12px;
  --lt-row-h: 48px;
  --lt-nav-item-h: 44px;
  --lt-card-pad: 24px;
  --lt-page-title-size: clamp(30px, 4vw, 44px);
  --lt-page-title-size-work: clamp(26px, 3.2vw, 38px);
  --lt-page-title-weight: 700;
  --lt-page-title-tracking: -0.045em;
  --lt-heading-weight: 700;
  --lt-page-action-h: 44px;
  --lt-btn-shadow: 0 10px 22px -10px color-mix(in srgb, var(--lt-accent) 85%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  --lt-btn-shadow-hover: 0 16px 28px -12px color-mix(in srgb, var(--lt-accent) 90%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  --lt-btn-lift: -1px;
  --lt-font-ui: "Plus Jakarta Sans Variable", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --lt-nav-glow: 62%;
  --lt-nav-mix: 70%;
  --lt-nav-base: #05060d;
  --lt-nav-edge: transparent;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --lt-bg: #0a0c13;
  --lt-bg-soft: #0e111a;
  --lt-bg-elev: #131722;
  --lt-surface: rgba(255, 255, 255, 0.04);
  --lt-surface-2: rgba(255, 255, 255, 0.075);
  --lt-line: rgba(255, 255, 255, 0.09);
  --lt-line-strong: rgba(255, 255, 255, 0.17);
  --lt-control-line: #6b738d;
  --lt-fg: #eef0f8;
  --lt-fg-mid: #c3c8da;
  --lt-fg-dim: #9aa2ba;
  --lt-fg-faint: #858da6;
  --lt-positive: #4cc27a;
  --lt-negative: #f0776b;
  --lt-warning: #e0a046;
  --lt-info: #7aa7e0;
  --lt-positive-soft: #12301f;
  --lt-negative-soft: #3a1f1d;
  --lt-warning-soft: #36291a;
  --lt-info-soft: #1b2b45;
  --lt-violet: #b6a4f7;
  --lt-teal: #5fd0c6;
  --lt-pink: #f294c8;
  --lt-orange: #f5a06a;
  --lt-card-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 14px 34px -14px rgba(0, 0, 0, 0.7);
  --lt-pop-shadow: 0 18px 44px -10px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
  --lt-table-head: #161b27;
  --lt-row-hover: rgba(255, 255, 255, 0.035);
  --lt-backdrop: rgba(0, 0, 0, 0.62);
  --lt-glow: 20%;
  --lt-nav-glow: 26%;
  --lt-nav-mix: 22%;
  --lt-nav-base: #03040a;
}
/* The filled-control color: the brand on light, the lifted brand on dark */
:root {
  --lt-accent: var(--brand-fill);
  --lt-accent-strong: var(--brand-text);
  --lt-accent-deep: color-mix(in srgb, var(--brand-fill) 82%, #000);
  --lt-on-accent: var(--on-brand-fill);
}
:root[data-theme="dark"] {
  --lt-accent: var(--brand-lift);
  --lt-accent-strong: color-mix(in srgb, var(--brand-lift) 86%, #fff);
  --lt-accent-deep: color-mix(in srgb, var(--brand-lift) 86%, #000);
  --lt-on-accent: var(--on-brand-lift);
}
:root {
  --lt-accent-10: color-mix(in srgb, var(--lt-accent) 10%, transparent);
  --lt-accent-20: color-mix(in srgb, var(--lt-accent) 24%, transparent);
  --brand-deep: color-mix(in srgb, var(--brand-nav) var(--lt-nav-mix), var(--lt-nav-base));
  /* sidebar chrome (dark sidebar, white text) */
  --lt-nav: var(--brand-deep);
  --lt-nav-hover: rgba(255, 255, 255, 0.09);
  --lt-nav-line: rgba(255, 255, 255, 0.13);
  --lt-nav-fg: rgba(255, 255, 255, 0.86);
  --lt-nav-strong: #ffffff;
  --lt-nav-dim: rgba(255, 255, 255, 0.7);
  --lt-nav-active-bg: rgba(255, 255, 255, 0.17);
  --lt-nav-active-fg: #ffffff;
  --lt-nav-chip-bg: #ffffff;
  --lt-nav-chip-fg: #0f1630;
  --lt-nav-chip-sub: #586080;
  --lt-nav-chip-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.5);
  --lt-nav-field-bg: rgba(255, 255, 255, 0.1);
  --lt-nav-field-hover: rgba(255, 255, 255, 0.15);
  --lt-nav-kbd-bg: rgba(0, 0, 0, 0.25);
  --lt-nav-badge-bg: rgba(0, 0, 0, 0.25);
  --lt-nav-badge-fg: #ffffff;
  --lt-nav-ring: rgba(255, 255, 255, 0.2);
  --lt-nav-focus: rgba(255, 255, 255, 0.6);
  --lt-nav-icon-active: #ffffff;
  --lt-nav-avatar-bg: rgba(255, 255, 255, 0.2);
  --lt-nav-avatar-fg: #ffffff;
  --lt-nav-status-bg: rgba(0, 0, 0, 0.15);
}

/* ---- Default (very dark surfaces, warm white and gold) ---- */
:root[data-look="default"] {
  --lt-radius-sm: 10px; --lt-radius-md: 12px; --lt-radius-lg: 18px; --lt-radius-control: 11px; --lt-radius-field: 10px;
  --lt-btn-shadow: 0 10px 22px -12px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --lt-btn-shadow-hover: 0 14px 28px -12px color-mix(in srgb, var(--brand-lift) 45%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --lt-nav: #070709;
  --lt-nav-glow: 0%;
  --lt-nav-active-bg: color-mix(in srgb, var(--lt-accent) 14%, var(--lt-nav));
  --lt-nav-active-fg: var(--brand-lift);
  --lt-nav-chip-bg: #141417;
  --lt-nav-chip-fg: #ffffff;
  --lt-nav-chip-sub: #b9b5ae;
  --lt-nav-chip-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  --lt-nav-badge-bg: rgba(255, 255, 255, 0.12);
  --lt-nav-focus: var(--brand-lift);
  --lt-nav-icon-active: var(--brand-lift);
}
:root[data-theme="light"][data-look="default"] {
  --lt-bg: #edebe6; --lt-bg-soft: #e5e2db; --lt-bg-elev: #ffffff;
  --lt-fg: #0b0b0d; --lt-fg-mid: #2e2c29; --lt-fg-dim: #4f4c47; --lt-fg-faint: #5f5b55;
  --lt-table-head: #f5f3ef; --lt-control-line: #7d786f;
  --lt-surface: rgba(11, 11, 13, 0.04); --lt-surface-2: rgba(11, 11, 13, 0.07);
  --lt-line: rgba(11, 11, 13, 0.11); --lt-line-strong: rgba(11, 11, 13, 0.22);
  --lt-row-hover: rgba(11, 11, 13, 0.035); --lt-backdrop: rgba(11, 11, 13, 0.45);
  --lt-card-shadow: 0 1px 2px rgba(11, 11, 13, 0.05), 0 12px 32px -16px rgba(11, 11, 13, 0.2);
  --lt-pop-shadow: 0 18px 44px -14px rgba(11, 11, 13, 0.35), 0 0 0 1px rgba(11, 11, 13, 0.06);
  --lt-glow: 0%;
  --lt-nav-hover: rgba(255, 255, 255, 0.07); --lt-nav-line: rgba(255, 255, 255, 0.1);
}
:root[data-theme="dark"][data-look="default"] {
  --lt-bg: #050507; --lt-bg-soft: #0a0a0c; --lt-bg-elev: #101013;
  --lt-fg: #f3f1ec; --lt-fg-mid: #d2cec7; --lt-fg-dim: #a7a39c; --lt-fg-faint: #938f88;
  --lt-table-head: #141417; --lt-control-line: #625e58;
  --lt-row-hover: rgba(255, 255, 255, 0.04);
  --lt-card-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 14px 34px -16px rgba(0, 0, 0, 0.8);
  --lt-pop-shadow: 0 18px 44px -12px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08);
  --lt-card-border: rgba(255, 255, 255, 0.06);
  --lt-glow: 9%;
  --lt-nav: #050507;
  --lt-nav-hover: rgba(255, 255, 255, 0.06); --lt-nav-line: rgba(255, 255, 255, 0.08);
  --lt-nav-edge: rgba(255, 255, 255, 0.06);
}

/* ---- Feels like ClickUp ---- */
:root[data-look="compact"] {
  --lt-sidebar-w: 280px; --lt-content-w: 1400px; --lt-font-size: 13px;
  --lt-radius-sm: 5px; --lt-radius-md: 7px; --lt-radius-lg: 8px; --lt-radius-control: 7px; --lt-radius-field: 7px;
  --lt-row-h: 36px; --lt-nav-item-h: 32px; --lt-card-pad: 18px;
  --lt-page-title-size: clamp(26px, 3.2vw, 34px); --lt-page-title-size-work: clamp(22px, 2.6vw, 28px);
  --lt-page-title-tracking: -0.02em; --lt-page-action-h: 36px;
  --lt-btn-shadow: 0 2px 6px -2px color-mix(in srgb, var(--lt-accent) 60%, transparent);
  --lt-btn-shadow-hover: 0 6px 14px -6px color-mix(in srgb, var(--lt-accent) 70%, transparent);
  --lt-btn-lift: 0px;
}
:root[data-theme="light"][data-look="compact"] {
  --lt-bg: #f6f6fa; --lt-bg-soft: #eeeef5; --lt-bg-elev: #ffffff;
  --lt-fg: #1c1b2e; --lt-fg-mid: #3b3a55; --lt-fg-dim: #4d4c68; --lt-fg-faint: #5d5c78;
  --lt-table-head: #f4f4f9; --lt-control-line: #7c7b9a;
  --lt-surface: rgba(28, 27, 46, 0.04); --lt-surface-2: rgba(28, 27, 46, 0.07);
  --lt-line: rgba(28, 27, 46, 0.11); --lt-line-strong: rgba(28, 27, 46, 0.22);
  --lt-row-hover: rgba(28, 27, 46, 0.035); --lt-backdrop: rgba(28, 27, 46, 0.45);
  --lt-card-shadow: 0 0 0 1px rgba(28, 27, 46, 0.08), 0 1px 2px rgba(28, 27, 46, 0.05), 0 8px 20px -10px color-mix(in srgb, var(--lt-accent) 28%, transparent);
  --lt-pop-shadow: 0 16px 36px -10px rgba(28, 27, 46, 0.3);
  --lt-card-border: rgba(28, 27, 46, 0.08);
  --lt-glow: 6%;
  --lt-nav: #f1f1f8; --lt-nav-hover: rgba(28, 27, 46, 0.06); --lt-nav-line: rgba(28, 27, 46, 0.1);
  --lt-nav-fg: #3b3a55; --lt-nav-strong: #1c1b2e; --lt-nav-dim: #5a5975;
  --lt-nav-active-bg: color-mix(in srgb, var(--lt-accent) 10%, var(--lt-nav)); --lt-nav-active-fg: var(--lt-accent-strong);
  --lt-nav-chip-bg: #ffffff; --lt-nav-chip-fg: #1c1b2e; --lt-nav-chip-sub: #4d4c68; --lt-nav-chip-shadow: 0 1px 2px rgba(28, 27, 46, 0.08);
  --lt-nav-field-bg: #e8e8f1; --lt-nav-field-hover: #dfdfea; --lt-nav-kbd-bg: #d6d6e4;
  --lt-nav-badge-bg: color-mix(in srgb, var(--lt-accent) 12%, #ffffff); --lt-nav-badge-fg: var(--lt-accent-strong);
  --lt-nav-ring: color-mix(in srgb, var(--lt-accent) 28%, transparent); --lt-nav-focus: var(--lt-accent-strong);
  --lt-nav-icon-active: var(--lt-accent-strong);
  --lt-nav-avatar-bg: color-mix(in srgb, var(--lt-accent) 16%, #ffffff); --lt-nav-avatar-fg: var(--lt-accent-strong);
  --lt-nav-status-bg: #e8e8f1; --lt-nav-edge: rgba(28, 27, 46, 0.1);
}
:root[data-theme="dark"][data-look="compact"] {
  --lt-bg: #131221; --lt-bg-soft: #17162a; --lt-bg-elev: #1c1b30;
  --lt-fg: #efeefa; --lt-fg-mid: #c6c4dc; --lt-fg-dim: #a09eb9; --lt-fg-faint: #8c8aa5;
  --lt-table-head: #212036; --lt-control-line: #77759a;
  --lt-card-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 1px 2px rgba(0, 0, 0, 0.45), 0 8px 20px -10px color-mix(in srgb, var(--lt-accent) 30%, transparent);
  --lt-pop-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.75);
  --lt-card-border: rgba(255, 255, 255, 0.07);
  --lt-glow: 10%; --lt-nav: #100f1d;
}

/* ---- Feels like Notion ---- */
:root[data-look="minimal"] {
  --lt-sidebar-w: 232px; --lt-content-w: 880px;
  --lt-radius-sm: 4px; --lt-radius-md: 5px; --lt-radius-lg: 6px; --lt-radius-control: 5px; --lt-radius-field: 5px;
  --lt-row-h: 38px; --lt-nav-item-h: 28px; --lt-card-pad: 0px;
  --lt-page-title-size: clamp(28px, 3.6vw, 40px); --lt-page-title-size-work: clamp(24px, 2.9vw, 31px);
  --lt-page-title-weight: 600; --lt-page-title-tracking: -0.03em; --lt-heading-weight: 600; --lt-page-action-h: 34px;
  --lt-btn-shadow: none; --lt-btn-shadow-hover: none; --lt-btn-lift: 0px;
  --lt-font-ui: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
:root[data-theme="light"][data-look="minimal"] {
  --lt-bg: #ffffff; --lt-bg-soft: #f7f7f5; --lt-bg-elev: #ffffff;
  --lt-fg: #2b2a28; --lt-fg-mid: #47453f; --lt-fg-dim: #5b5952; --lt-fg-faint: #66645d;
  --lt-table-head: #f9f9f7; --lt-control-line: #85837b;
  --lt-surface: rgba(43, 42, 40, 0.04); --lt-surface-2: rgba(43, 42, 40, 0.07);
  --lt-line: rgba(43, 42, 40, 0.11); --lt-line-strong: rgba(43, 42, 40, 0.22);
  --lt-row-hover: rgba(43, 42, 40, 0.035); --lt-backdrop: rgba(43, 42, 40, 0.45);
  --lt-card-shadow: 0 0 0 1px #e8e7e3; --lt-pop-shadow: 0 8px 28px -6px rgba(43, 42, 40, 0.18);
  --lt-card-border: #e8e7e3; --lt-glow: 0%;
  --lt-nav: #ffffff; --lt-nav-hover: rgba(43, 42, 40, 0.06); --lt-nav-line: rgba(43, 42, 40, 0.09);
  --lt-nav-fg: #47453f; --lt-nav-strong: #1f1e1c; --lt-nav-dim: #66645d;
  --lt-nav-active-bg: rgba(43, 42, 40, 0.08); --lt-nav-active-fg: #1f1e1c;
  --lt-nav-chip-bg: transparent; --lt-nav-chip-fg: #2b2a28; --lt-nav-chip-sub: #5b5952; --lt-nav-chip-shadow: none;
  --lt-nav-field-bg: #ececea; --lt-nav-field-hover: #e3e3e0; --lt-nav-kbd-bg: #dcdcd8;
  --lt-nav-badge-bg: rgba(43, 42, 40, 0.1); --lt-nav-badge-fg: #2b2a28;
  --lt-nav-ring: rgba(43, 42, 40, 0.12); --lt-nav-focus: var(--lt-accent-strong); --lt-nav-icon-active: #1f1e1c;
  --lt-nav-avatar-bg: rgba(43, 42, 40, 0.1); --lt-nav-avatar-fg: #2b2a28;
  --lt-nav-status-bg: #ececea; --lt-nav-edge: rgba(43, 42, 40, 0.09);
}
:root[data-theme="dark"][data-look="minimal"] {
  --lt-bg: #191919; --lt-bg-soft: #1f1f1e; --lt-bg-elev: #202020;
  --lt-fg: #ebebe9; --lt-fg-mid: #c9c8c4; --lt-fg-dim: #a3a29d; --lt-fg-faint: #8f8e89;
  --lt-table-head: #252524; --lt-control-line: #7d7c77;
  --lt-card-shadow: 0 0 0 1px rgba(255, 255, 255, 0.09); --lt-pop-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.7);
  --lt-card-border: rgba(255, 255, 255, 0.09); --lt-glow: 0%;
  --lt-nav: #191919; --lt-nav-chip-bg: transparent; --lt-nav-chip-fg: #ebebe9; --lt-nav-chip-sub: #a3a29d; --lt-nav-chip-shadow: none;
  --lt-nav-edge: rgba(255, 255, 255, 0.08);
}

/* ---- Feels like Asana (icon rail and a light top bar) ---- */
:root[data-look="rail"] {
  --lt-sidebar-w: 56px; --lt-bar-h: 60px; --lt-content-w: 1320px;
  --lt-radius-sm: 4px; --lt-radius-md: 5px; --lt-radius-lg: 6px; --lt-radius-control: 5px; --lt-radius-field: 5px;
  --lt-row-h: 46px; --lt-nav-item-h: 52px; --lt-card-pad: 20px;
  --lt-page-title-size: clamp(26px, 3.2vw, 34px); --lt-page-title-size-work: clamp(22px, 2.6vw, 28px);
  --lt-page-title-tracking: -0.028em; --lt-page-action-h: 40px;
  --lt-btn-shadow: 0 1px 2px color-mix(in srgb, var(--lt-accent) 50%, transparent);
  --lt-btn-shadow-hover: 0 4px 10px -4px color-mix(in srgb, var(--lt-accent) 60%, transparent);
  --lt-btn-lift: 0px;
}
:root[data-theme="light"][data-look="rail"] {
  --lt-bg: #f5f6f7; --lt-bg-soft: #ebedef; --lt-bg-elev: #ffffff;
  --lt-fg: #1d2227; --lt-fg-mid: #3a424b; --lt-fg-dim: #4c5560; --lt-fg-faint: #5a6470;
  --lt-table-head: #f1f3f4; --lt-control-line: #78818b;
  --lt-surface: rgba(29, 34, 39, 0.04); --lt-surface-2: rgba(29, 34, 39, 0.07);
  --lt-line: rgba(29, 34, 39, 0.11); --lt-line-strong: rgba(29, 34, 39, 0.22);
  --lt-row-hover: rgba(29, 34, 39, 0.035); --lt-backdrop: rgba(29, 34, 39, 0.45);
  --lt-card-shadow: 0 0 0 1px #dfe2e5, 0 1px 1px rgba(29, 34, 39, 0.04);
  --lt-pop-shadow: 0 12px 32px -8px rgba(29, 34, 39, 0.28), 0 0 0 1px rgba(29, 34, 39, 0.07);
  --lt-card-border: #dfe2e5; --lt-glow: 0%; --lt-nav: #23272d;
}
:root[data-theme="dark"][data-look="rail"] {
  --lt-bg: #121416; --lt-bg-soft: #171a1d; --lt-bg-elev: #1c2024;
  --lt-fg: #eceef0; --lt-fg-mid: #c4c9ce; --lt-fg-dim: #9ea6ae; --lt-fg-faint: #8a929a;
  --lt-table-head: #21262a; --lt-control-line: #6f7780;
  --lt-card-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 1px 1px rgba(0, 0, 0, 0.5);
  --lt-pop-shadow: 0 14px 36px -8px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.1);
  --lt-card-border: rgba(255, 255, 255, 0.08); --lt-glow: 0%; --lt-nav: #181b1f;
}

/* ------------------------------------------------------------------ */
/* Base                                                                */
/* ------------------------------------------------------------------ */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--lt-page);
  color: var(--lt-fg);
  font-family: var(--lt-font-ui);
  font-size: var(--lt-font-size);
  font-weight: 450;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { margin: 0; font-weight: var(--lt-heading-weight); letter-spacing: -0.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.5; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--lt-accent-20); }
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid var(--lt-accent-strong); outline-offset: 2px; }
.ic { flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--lt-fg-dim); }
.tabular { font-variant-numeric: tabular-nums; }
.eyebrow { font-size: 12.5px; font-weight: 600; color: var(--lt-fg-dim); }

html.look-glide *, html.look-glide *::before, html.look-glide *::after {
  transition: background-color .24s ease, color .24s ease, border-color .24s ease, box-shadow .24s ease, fill .24s ease, stroke .24s ease !important;
}
@media (prefers-reduced-motion: reduce) {
  html.look-glide *, html.look-glide *::before, html.look-glide *::after { transition: none !important; }
  * { animation: none !important; }
}

/* demo banner (same pattern as the other demos) */
.demo-banner { flex: none; display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; padding: 9px 16px; background: #1c2227; color: #d4dce5; border-bottom: 1px solid #3a414a; font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; z-index: 70; }
.demo-banner a { color: #83d8e9; text-decoration: underline; text-underline-offset: 3px; }
.demo-banner button { padding: 5px 9px; background: transparent; color: inherit; border: 1px solid #59636e; border-radius: 5px; cursor: pointer; font: inherit; }
.demo-banner-note { opacity: .78; }

/* ------------------------------------------------------------------ */
/* Shell                                                               */
/* ------------------------------------------------------------------ */
.layout { flex: 1; min-height: 0; display: flex; position: relative; }
.shell-nav {
  flex: 0 0 var(--lt-sidebar-w);
  width: var(--lt-sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: radial-gradient(460px 340px at 0% 0%, color-mix(in srgb, var(--brand-nav) var(--lt-nav-glow), transparent), transparent 72%), var(--lt-nav);
  color: var(--lt-nav-fg);
  box-shadow: inset -1px 0 0 var(--lt-nav-edge);
  z-index: 40;
}
.lt-frame {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  position: relative;
  background: radial-gradient(900px 560px at 100% 0%, color-mix(in srgb, var(--lt-accent) var(--lt-glow), transparent), transparent 72%), var(--lt-page);
}
.lt-main { padding: 40px 48px 80px; outline: none; }
.lt-content { max-width: var(--lt-content-w); margin: 0 auto; width: 100%; }
.lt-content[data-wide] { max-width: none; }

.mobile-bar { display: none; align-items: center; gap: 12px; height: 56px; padding: 0 16px; }
.mobile-bar .brand-name { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-bar .icon-btn:last-child { margin-left: auto; }
.shell-scrim { display: none; }
.bar-rail { display: none; }

/* sidebar */
.nv-head { flex: none; padding: 20px 16px 12px; }
.nv-chip { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--lt-nav-chip-bg); box-shadow: var(--lt-nav-chip-shadow); }
.brand-mark { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand-lift); color: var(--on-brand-lift); }
.brand-mark svg { width: 20px; height: 20px; }
.nv-chip-text { min-width: 0; }
.nv-chip-text p:first-child { font-size: 15px; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; color: var(--lt-nav-chip-fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-chip-text p:last-child { font-size: 12px; font-weight: 500; line-height: 1.2; color: var(--lt-nav-chip-sub); }
.nv-close { margin-left: auto; display: none; color: var(--lt-nav-chip-sub); }
.nv-palette { margin-top: 12px; }
.nv-palette button { display: flex; align-items: center; gap: 10px; width: 100%; height: 40px; padding: 0 14px; border-radius: var(--lt-radius-control); background: var(--lt-nav-field-bg); color: var(--lt-nav-fg); font-size: 13.5px; font-weight: 500; text-align: left; transition: background-color .15s; }
.nv-palette button:hover { background: var(--lt-nav-field-hover); color: var(--lt-nav-strong); }
.nv-palette span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-palette .ic { color: var(--lt-nav-dim); }
kbd { font-family: inherit; font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 5px; background: var(--lt-nav-kbd-bg); color: var(--lt-nav-fg); }
.nv-nav { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 4px 14px 12px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; scrollbar-width: thin; }
.nv-group { padding-top: 0; }
.nv-spaces { padding-top: 16px; }
.nv-sec-row { display: flex; align-items: center; padding-right: 8px; }
.nv-sec { padding: 0 14px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--lt-nav-dim); }
.nv-sec-action { margin-left: auto; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; color: var(--lt-nav-dim); }
.nv-sec-action:hover { background: var(--lt-nav-hover); color: var(--lt-nav-strong); }
.nv-list, .nv-bottom, .nv-children { display: flex; flex-direction: column; gap: 2px; }
.nv-item { position: relative; display: flex; align-items: center; gap: 12px; height: var(--lt-nav-item-h); padding: 0 14px; border-radius: var(--lt-radius-control); font-size: 14.5px; font-weight: 600; color: var(--lt-nav-fg); transition: background-color .15s, color .15s; }
.nv-item:hover { background: var(--lt-nav-hover); color: var(--lt-nav-strong); }
.nv-item[aria-current="page"] { background: var(--lt-nav-active-bg); color: var(--lt-nav-active-fg); box-shadow: inset 0 0 0 1px var(--lt-nav-ring); }
.nv-item .ic { color: var(--lt-nav-dim); }
.nv-item[aria-current="page"] .ic { color: var(--lt-nav-icon-active); }
.nv-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-short { display: none; }
.nv-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--lt-nav-badge-bg); color: var(--lt-nav-badge-fg); font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.nv-space-row { display: flex; align-items: center; gap: 2px; }
.nv-space-row .nv-item { flex: 1; min-width: 0; padding-left: 6px; }
.nv-fold { display: inline-grid; place-items: center; flex: none; width: 24px; height: 28px; border-radius: 6px; color: var(--lt-nav-dim); }
.nv-fold:hover { color: var(--lt-nav-strong); background: var(--lt-nav-hover); }
.nv-fold .ic { transition: transform .15s; }
.nv-fold[aria-expanded="true"] .ic { transform: rotate(90deg); }
.nv-children { margin: 2px 0 6px 26px; }
.nv-child { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: var(--lt-radius-control); font-size: 13.5px; font-weight: 500; color: var(--lt-nav-fg); }
.nv-child:hover { background: var(--lt-nav-hover); color: var(--lt-nav-strong); }
.nv-child[aria-current="page"] { background: var(--lt-nav-active-bg); color: var(--lt-nav-active-fg); }
.nv-child .nv-label { font-size: 13.5px; }
.nv-bottom { margin-top: 8px; }
.nv-foot { flex: none; padding: 14px 16px 16px; border-top: 1px solid var(--lt-nav-line); display: flex; flex-direction: column; gap: 10px; }
.nv-foot-row { display: flex; align-items: center; gap: 8px; }
.nv-owner-link { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; padding: 6px 8px; border-radius: var(--lt-radius-field); color: var(--lt-nav-fg); }
.nv-owner-link:hover { background: var(--lt-nav-hover); }
.nv-avatar { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--lt-nav-avatar-bg); color: var(--lt-nav-avatar-fg); font-size: 13px; font-weight: 700; }
.nv-owner { font-size: 13.5px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-theme { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--lt-radius-field); color: var(--lt-nav-fg); }
.nv-theme:hover { background: var(--lt-nav-hover); color: var(--lt-nav-strong); }
.nv-status { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--lt-radius-field); background: var(--lt-nav-status-bg); font-size: 12px; font-weight: 500; color: var(--lt-nav-fg); }
.nv-status i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 0 3px rgba(61, 220, 151, .22); flex: none; }

/* ------------------------------------------------------------------ */
/* Primitives                                                          */
/* ------------------------------------------------------------------ */
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--lt-radius-control); color: var(--lt-fg-dim); transition: background-color .15s, color .15s; }
.icon-btn:hover { background: var(--lt-surface-2); color: var(--lt-fg); }
.icon-btn.sm { width: 30px; height: 30px; }
.bar-icon { background: var(--lt-bg-elev); color: var(--lt-fg); box-shadow: var(--lt-card-shadow); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: var(--lt-radius-control); font-size: 14px; font-weight: 600; white-space: nowrap; transition: transform .2s, box-shadow .2s, background-color .2s, color .2s; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-primary { background: var(--lt-accent); color: var(--lt-on-accent); box-shadow: var(--lt-btn-shadow); }
.btn-primary:not(:disabled):hover { transform: translateY(var(--lt-btn-lift)); box-shadow: var(--lt-btn-shadow-hover); }
.btn-secondary { background: var(--lt-bg-elev); color: var(--lt-fg); box-shadow: inset 0 0 0 1px var(--lt-line-strong); }
.btn-secondary:hover { box-shadow: inset 0 0 0 1px var(--lt-accent-strong); color: var(--lt-accent-strong); }
.btn-ghost { color: var(--lt-fg-mid); }
.btn-ghost:hover { background: var(--lt-surface-2); color: var(--lt-fg); }
.btn-danger-solid { background: var(--lt-negative); color: #fff; }
.page-actions .btn { height: var(--lt-page-action-h); }
.page-actions .btn-sm { height: 36px; }

.input, .select, .textarea {
  width: 100%; height: 38px; padding: 0 12px; border-radius: var(--lt-radius-field);
  border: 1px solid var(--lt-line-strong); background: var(--lt-bg-elev); color: var(--lt-fg); outline: none;
}
.textarea { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--lt-accent); box-shadow: 0 0 0 3px var(--lt-accent-20); }
.input::placeholder, .textarea::placeholder { color: var(--lt-fg-faint); }
.select { width: auto; padding-right: 30px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%239aa2ba' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; }
.select.on { border-color: var(--lt-accent); }
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; color: var(--lt-fg-dim); }

.card { background: var(--lt-bg-elev); border: 1px solid var(--lt-card-border); border-radius: var(--lt-radius-lg); box-shadow: var(--lt-card-shadow); }
.avatars { display: inline-flex; }
.avatars .avatar + .avatar { margin-left: -6px; }
.avatar { display: inline-grid; place-items: center; flex: none; border-radius: 50%; color: #fff; font-weight: 700; box-shadow: 0 0 0 2px var(--lt-bg-elev); }
.avatar-more { background: var(--lt-surface-2); color: var(--lt-fg-mid); font-size: 10px; }
.st-done { display: inline-grid; place-items: center; flex: none; border-radius: 50%; color: #fff; }
.st-done .ic { stroke-width: 3; }
.st-ring { flex: none; }
.flag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--lt-fg-mid); white-space: nowrap; }
.due { font-size: 12px; white-space: nowrap; color: var(--lt-fg-dim); }
.due-late { color: var(--lt-negative); }
.due-today { color: var(--lt-warning); }
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 6px; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.empty { padding: 40px 16px; text-align: center; color: var(--lt-fg-dim); }

/* page header */
.lt-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 24px; }
.lt-head-text { min-width: 0; max-width: 760px; }
.lt-trail { display: none; }
.lt-trail ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; font-size: 12.5px; font-weight: 500; color: var(--lt-fg-dim); }
.lt-trail li + li::before { content: "/"; margin-right: 6px; color: var(--lt-fg-faint); }
.lt-trail a:hover { color: var(--lt-fg); text-decoration: underline; }
.page-title { font-size: var(--lt-page-title-size-work); line-height: 1.08; letter-spacing: var(--lt-page-title-tracking); font-weight: var(--lt-page-title-weight); text-wrap: balance; overflow-wrap: anywhere; }
.page-title--hero { font-size: var(--lt-page-title-size); line-height: 1.04; }
.page-sub { margin-top: 8px; max-width: 640px; font-size: 15px; line-height: 1.45; color: var(--lt-fg-dim); font-weight: 500; }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.crumb { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lt-accent-strong); }
.crumb::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }

/* segmented control */
.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: var(--lt-surface-2); }
.seg > * { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--lt-fg-dim); transition: background-color .2s, color .2s; white-space: nowrap; }
.seg > *:hover { color: var(--lt-fg); }
.seg > [aria-current="true"] { background: var(--lt-bg-elev); color: var(--lt-fg); box-shadow: 0 1px 3px rgba(18, 28, 60, .12); }

/* ------------------------------------------------------------------ */
/* Home                                                                */
/* ------------------------------------------------------------------ */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { display: flex; flex-direction: column; justify-content: space-between; min-height: 92px; padding: 16px var(--lt-card-pad) 12px; }
.stat p:first-child { font-size: 14px; line-height: 1.2; color: var(--lt-fg-mid); }
.stat p:last-child { margin-top: 6px; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.stat .neg { color: var(--lt-negative); }
.home-grid { display: grid; gap: 24px; margin-top: 24px; grid-template-columns: minmax(0, 1fr) 340px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px; border: 1px dashed var(--lt-line-strong); border-radius: var(--lt-radius-lg); background: var(--lt-bg-elev); }
.quick .ic { margin-left: 4px; color: var(--lt-fg-faint); }
.quick input[type="text"] { flex: 1; min-width: 160px; height: 32px; border: 0; background: transparent; outline: none; font-size: 14px; }
.quick .select { height: 32px; font-size: 12px; max-width: 240px; }
.group-h { margin-bottom: 6px; font-size: 13px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.group-h span { font-weight: 400; color: var(--lt-fg-faint); margin-left: 4px; }
.group-h.late { color: var(--lt-negative); }
.rows { overflow: hidden; }
.mini-row { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--lt-line); font-size: 14px; }
.mini-row:last-child { border-bottom: 0; }
.mini-row:hover { background: var(--lt-row-hover); }
.mini-row .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-row .t:hover { text-decoration: underline; }
.mini-row .l { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--lt-fg-faint); }
.done-toggle { display: inline-grid; place-items: center; flex: none; border-radius: 50%; padding: 2px; }
.done-toggle:hover { background: var(--lt-surface-2); }
.panel-h { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--lt-line); }
.panel-h h2 { font-size: 17px; letter-spacing: -0.01em; }
.panel-h a, .link { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--lt-accent-strong); }
.panel-h a:hover, .link:hover { text-decoration: underline; }
.notif { display: flex; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--lt-line); font-size: 13.5px; }
.notif:last-child { border-bottom: 0; }
.notif:hover { background: var(--lt-row-hover); }
.notif.unread { background: color-mix(in srgb, var(--lt-accent) 7%, transparent); }
.notif .ic { margin-top: 2px; }
.notif .n-title { display: block; color: var(--lt-fg); }
.notif.unread .n-title { font-weight: 650; }
.notif .n-time { font-size: 12px; color: var(--lt-fg-faint); }
.k-assigned .ic, .k-mention .ic { color: var(--lt-accent-strong); }
.k-comment .ic { color: var(--lt-fg-dim); }
.k-completed .ic { color: var(--lt-positive); }
.k-due_soon .ic { color: var(--lt-warning); }
.k-overdue .ic { color: var(--lt-negative); }

/* inbox */
.inbox-wrap { max-width: 860px; margin: 0 auto; }
.inbox-row { position: relative; display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--lt-line); }
.inbox-row:last-child { border-bottom: 0; }
.inbox-row.unread { background: color-mix(in srgb, var(--lt-accent) 7%, transparent); }
.inbox-row .main { flex: 1; min-width: 0; text-align: left; }
.inbox-row .main:hover .n-title { text-decoration: underline; }
.inbox-row .body { display: block; margin-top: 2px; font-size: 13.5px; color: var(--lt-fg-dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.inbox-row .meta { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 12px; color: var(--lt-fg-faint); }
.inbox-row .mark { align-self: flex-start; padding: 4px 8px; border-radius: 6px; font-size: 12px; color: var(--lt-fg-faint); opacity: 0; }
.inbox-row:hover .mark, .inbox-row .mark:focus-visible { opacity: 1; }
.inbox-row .mark:hover { background: var(--lt-surface-2); color: var(--lt-fg); }

/* spaces */
.space-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.space-h { display: flex; align-items: center; gap: 12px; padding: 16px var(--lt-card-pad); border-bottom: 1px solid var(--lt-line); }
.space-h h2 { font-size: 17px; letter-spacing: -0.01em; }
.space-h h2 a:hover { text-decoration: underline; }
.space-h .meta { font-size: 13px; color: var(--lt-fg-dim); }
.space-icon { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; color: #fff; }
.space-lists { padding: 6px 8px; }
.space-list-row { display: flex; align-items: center; gap: 4px; }
.space-list-row a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 10px; border-radius: var(--lt-radius-control); color: var(--lt-fg-mid); }
.space-list-row a:hover { background: var(--lt-surface-2); color: var(--lt-fg); }
.space-list-row a span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.space-list-row a span:last-child { font-size: 13px; color: var(--lt-fg-dim); }
.add-list { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 40px; padding: 0 10px; border-radius: var(--lt-radius-control); font-size: 13px; color: var(--lt-fg-dim); }
.add-list:hover { background: var(--lt-surface-2); color: var(--lt-fg); }

/* ------------------------------------------------------------------ */
/* List view, filters, board                                           */
/* ------------------------------------------------------------------ */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.search-field { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 1px solid var(--lt-line-strong); border-radius: var(--lt-radius-control); background: var(--lt-bg-elev); color: var(--lt-fg-dim); }
.search-field:focus-within { border-color: var(--lt-accent); box-shadow: 0 0 0 3px var(--lt-accent-20); }
.search-field input { width: 170px; border: 0; background: transparent; outline: none; color: var(--lt-fg); }
.filters .select { height: 36px; border-radius: var(--lt-radius-control); }
.check-inline { display: flex; align-items: center; gap: 6px; height: 36px; color: var(--lt-fg-mid); }
.check-inline input { accent-color: var(--lt-accent); }
.filters .count { margin-left: auto; font-size: 12px; color: var(--lt-fg-faint); }
.view-body { margin-top: 16px; }
.status-section { margin-bottom: 20px; }
.status-h { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.status-h .fold { padding: 2px; border-radius: 4px; color: var(--lt-fg-faint); }
.status-h .fold:hover { color: var(--lt-fg); }
.status-h .fold .ic { transition: transform .15s; }
.status-h .fold[aria-expanded="true"] .ic { transform: rotate(90deg); }
.status-h .n { font-size: 12px; color: var(--lt-fg-faint); }
.tbl { overflow: hidden; }
.tbl-head, .tbl-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px 110px 100px; gap: 8px; align-items: center; padding: 0 12px; }
.tbl-head { padding-top: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--lt-line); background: var(--lt-table-head); font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--lt-fg-mid); }
.tbl-row { min-height: var(--lt-row-h); padding-top: 4px; padding-bottom: 4px; border-bottom: 1px solid color-mix(in srgb, var(--lt-line) 70%, transparent); font-size: 14px; transition: background-color .12s; }
.tbl-row:hover { background: var(--lt-row-hover); }
.tbl-row .name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tbl-row .name .title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.tbl-row .name .title:hover { text-decoration: underline; }
.tbl-row .name .tm { flex: none; display: inline-flex; align-items: center; gap: 2px; font-size: 12px; color: var(--lt-fg-faint); }
.tbl-row .name .list-tag { flex: none; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--lt-fg-faint); }
.tbl-row.done .title { color: var(--lt-fg-dim); text-decoration: line-through; }
.cell-btn { display: inline-flex; align-items: center; height: 28px; padding: 0 4px; border-radius: 6px; font-size: 12px; text-align: left; color: var(--lt-fg-faint); }
.cell-btn:hover { background: var(--lt-surface-2); }
.cell-btn .ic { color: var(--lt-fg-faint); }
.cells { display: contents; }
.qa-btn { display: flex; align-items: center; gap: 6px; width: 100%; height: 34px; padding: 0 12px; font-size: 13px; color: var(--lt-fg-faint); text-align: left; }
.qa-btn:hover { background: var(--lt-row-hover); color: var(--lt-fg); }
.qa-form { display: flex; align-items: center; gap: 8px; padding: 6px 12px; }
.qa-form input { flex: 1; height: 28px; border: 0; background: transparent; outline: none; font-size: 14px; }

.board { display: flex; gap: 12px; align-items: flex-start; overflow-x: auto; padding-bottom: 16px; }
.col { --col-c: var(--lt-info); flex: 0 0 288px; width: 288px; display: flex; flex-direction: column; min-height: 220px; border-radius: var(--lt-radius-lg); background: var(--lt-surface-2); border-top: 3px solid var(--col-c); transition: background-color .15s; }
.col.over { background: var(--lt-accent-10); outline: 2px dashed var(--lt-accent); outline-offset: -2px; }
.col-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.col-head h2 { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--lt-fg-mid); }
.col-head .n { font-size: 12px; color: var(--lt-fg-faint); }
.col-body { flex: 1; display: flex; flex-direction: column; gap: 8px; min-height: 60px; padding: 0 8px 8px; }
.deal { position: relative; display: block; width: 100%; padding: 12px; border: 1px solid var(--lt-card-border); border-radius: var(--lt-radius-control); background: var(--lt-bg-elev); box-shadow: var(--lt-card-shadow); text-align: left; cursor: grab; }
.deal:hover { border-color: var(--lt-accent); }
.deal.dragging { opacity: .4; }
.deal .d-list { padding-right: 28px; font-size: 11px; color: var(--lt-fg-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deal .d-title { padding-right: 28px; font-weight: 600; font-size: 14px; }
.deal.done .d-title { color: var(--lt-fg-dim); text-decoration: line-through; }
.deal .d-foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.deal .d-meta { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--lt-fg-faint); }
.deal .d-meta span { display: inline-flex; align-items: center; gap: 2px; }
.deal .d-menu { position: absolute; top: 6px; right: 6px; }
.col-add { display: flex; align-items: center; gap: 6px; margin: 0 8px 8px; height: 34px; padding: 0 8px; border-radius: 8px; font-size: 13px; color: var(--lt-fg-dim); text-align: left; }
.col-add:hover { background: var(--lt-surface-2); color: var(--lt-fg); }
.col-add-form { margin: 0 8px 8px; }
.col-add-form input { width: 100%; height: 36px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--lt-accent); background: var(--lt-bg-elev); outline: none; }

/* ------------------------------------------------------------------ */
/* Task page                                                           */
/* ------------------------------------------------------------------ */
.task-page { max-width: 880px; margin: 0 auto; }
.task-top { display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-bottom: 1px solid var(--lt-line); font-size: 12.5px; color: var(--lt-fg-dim); }
.task-top a:hover { color: var(--lt-fg); text-decoration: underline; }
.task-top .num { margin-left: 4px; padding: 1px 6px; border-radius: 4px; background: var(--lt-surface-2); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11px; }
.task-top .sp { margin-left: auto; display: flex; gap: 4px; }
.task-body { padding: 18px 20px 28px; }
.task-title { width: 100%; resize: none; border: 0; background: transparent; outline: none; font-size: 22px; font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; overflow: hidden; }
.props { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 24px; margin-top: 12px; }
.prop { display: flex; align-items: center; gap: 12px; min-height: 38px; }
.prop dt { display: flex; align-items: center; gap: 8px; width: 112px; flex: none; color: var(--lt-fg-dim); }
.prop dd { margin: 0; min-width: 0; flex: 1; }
.prop .cell-btn { height: 30px; font-size: 14px; color: var(--lt-fg); padding: 0 6px; }
.prop .cell-btn.empty-v { color: var(--lt-fg-faint); }
.section { margin-top: 26px; }
.section > h3 { margin-bottom: 8px; font-size: 12.5px; font-weight: 600; color: var(--lt-fg-dim); letter-spacing: 0; }
.desc { min-height: 96px; }
.sub-row { display: flex; align-items: center; gap: 8px; padding: 5px 4px; border-radius: 6px; }
.sub-row:hover { background: var(--lt-row-hover); }
.sub-row .t { flex: 1; min-width: 0; }
.sub-row.done .t { color: var(--lt-fg-faint); text-decoration: line-through; }
.sub-row .x { opacity: 0; color: var(--lt-fg-faint); }
.sub-row:hover .x, .sub-row .x:focus-visible { opacity: 1; }
.sub-add { display: flex; align-items: center; gap: 8px; padding: 4px; }
.sub-add input { flex: 1; height: 30px; border: 0; background: transparent; outline: none; }
.cmt { display: flex; gap: 10px; margin-bottom: 12px; }
.cmt .bubble { flex: 1; min-width: 0; padding: 8px 12px; border-radius: 12px; background: var(--lt-surface); }
.cmt .who { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.cmt .who b { font-weight: 700; }
.cmt .who span { color: var(--lt-fg-faint); }
.cmt .who button { margin-left: auto; opacity: 0; color: var(--lt-fg-faint); }
.cmt:hover .who button, .cmt .who button:focus-visible { opacity: 1; }
.cmt p { margin-top: 2px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.mention { padding: 0 3px; border-radius: 4px; background: var(--lt-accent-10); color: var(--lt-accent-strong); font-weight: 600; }
.cmt-new { position: relative; display: flex; gap: 10px; }
.cmt-new .box { flex: 1; min-width: 0; }
.cmt-new .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.cmt-new .hint { font-size: 11px; color: var(--lt-fg-faint); }
#frame-bars { display: contents; }
.pop-wide { min-width: 260px; }
.doc-space { display: inline-flex; align-items: center; gap: 6px; }
.doc-space .select { height: 30px; font-size: 12.5px; }
.mention-pop { position: absolute; left: 38px; bottom: calc(100% + 4px); z-index: 20; width: 240px; padding: 4px; border-radius: var(--lt-radius-md); background: var(--lt-bg-elev); box-shadow: var(--lt-pop-shadow); }
.mention-pop button { display: flex; align-items: center; gap: 8px; width: 100%; height: 34px; padding: 0 8px; border-radius: 8px; text-align: left; }
.mention-pop button:hover, .mention-pop button.on { background: var(--lt-surface-2); }

/* ------------------------------------------------------------------ */
/* Docs                                                                */
/* ------------------------------------------------------------------ */
.docs-split { display: grid; gap: 24px; grid-template-columns: 256px minmax(0, 1fr); align-items: start; }
.docs-tree { position: sticky; top: 0; padding: 8px; max-height: calc(100dvh - 160px); overflow-y: auto; }
.docs-tree h3 { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 4px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--lt-fg-dim); }
.doc-link { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 8px; border-radius: 8px; font-size: 14px; color: var(--lt-fg-mid); }
.doc-link:hover { background: var(--lt-surface-2); }
.doc-link[aria-current="page"] { background: var(--lt-accent-10); color: var(--lt-fg); font-weight: 600; }
.doc-link .ic { color: var(--lt-fg-faint); }
.doc-link span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-grid { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.doc-card { display: block; padding: 18px; transition: border-color .15s; }
.doc-card:hover { border-color: var(--lt-accent); }
.doc-card .ic { color: var(--lt-fg-faint); margin-bottom: 8px; }
.doc-card .t { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-card .m { margin-top: 4px; font-size: 12px; color: var(--lt-fg-faint); }
.doc-card .tag { display: inline-block; margin-top: 8px; padding: 1px 8px; border-radius: 999px; background: var(--lt-surface-2); font-size: 11.5px; color: var(--lt-fg-mid); }
.doc-edit { max-width: 760px; }
.doc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 12.5px; color: var(--lt-fg-dim); }
.doc-meta .saved { margin-left: auto; color: var(--lt-fg-faint); }
.doc-title { width: 100%; margin-bottom: 14px; padding: 0; border: 0; background: transparent; outline: none; font-size: 34px; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.doc-body { width: 100%; min-height: 380px; padding: 0; border: 0; background: transparent; outline: none; resize: none; font-size: 16px; line-height: 1.65; overflow: hidden; }
.doc-title::placeholder, .doc-body::placeholder { color: var(--lt-fg-faint); }

/* ------------------------------------------------------------------ */
/* Settings and the theme picker                                       */
/* ------------------------------------------------------------------ */
.set-tabs { display: flex; gap: 4px; margin-bottom: 24px; border-bottom: 1px solid var(--lt-line); }
.set-tabs a { padding: 10px 14px; margin-bottom: -1px; border-bottom: 2px solid transparent; font-weight: 600; color: var(--lt-fg-dim); }
.set-tabs a:hover { color: var(--lt-fg); }
.set-tabs a[aria-current="page"] { border-bottom-color: var(--lt-accent); color: var(--lt-fg); }
.set-section { padding: var(--lt-card-pad); margin-bottom: 20px; }
.set-section h2 { font-size: 15px; }
.set-section .hint { margin: 4px 0 16px; font-size: 13px; color: var(--lt-fg-dim); max-width: 640px; }
.tp { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 14px; }
.tp-opt { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 8px 8px 12px; border-radius: 16px; background: var(--lt-bg-elev); box-shadow: inset 0 0 0 1.5px var(--lt-control-line); text-align: left; transition: box-shadow .18s; }
.tp-opt:hover { box-shadow: inset 0 0 0 1.5px var(--lt-fg-dim); }
.tp-opt.on { box-shadow: inset 0 0 0 2.5px var(--lt-accent-strong); }
.tp-frame { position: relative; display: block; margin-bottom: 8px; }
.tp-check { position: absolute; right: 6px; top: 6px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--lt-accent-strong); color: var(--lt-bg-elev); }
.tp-check .ic { stroke-width: 3; }
.tp-name { padding: 0 6px; font-size: 14.5px; font-weight: 700; letter-spacing: -0.01em; }
.tp-line { padding: 0 6px; font-size: 12.5px; line-height: 1.35; color: var(--lt-fg-mid); }
.tp-thumb { display: flex; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 9px; background: var(--tp-page); box-shadow: 0 0 0 1px rgba(120, 130, 160, .35); }
.tp-side { flex: none; display: flex; flex-direction: column; gap: 4px; width: 26%; padding: 8px 5px; background: var(--tp-side); }
.tp-side i { display: block; height: 5px; border-radius: 2px; background: var(--tp-ink); opacity: .34; }
.tp-side.dark-ink i { background: #fff; }
.tp-side i.on { opacity: 1; background: var(--tp-accent); }
.tp-rail .tp-side { width: 11%; align-items: center; padding: 7px 0; }
.tp-rail .tp-side i { width: 5px; height: 5px; border-radius: 50%; }
.tp-tree .tp-side { width: 29%; border-right: 1px solid rgba(120, 130, 160, .3); }
.tp-thin .tp-side { width: 20%; border-right: 1px solid rgba(120, 130, 160, .3); }
.tp-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tp-top { flex: none; display: flex; align-items: center; gap: 5px; height: 14%; padding: 0 7px; background: var(--tp-card); border-bottom: 1px solid rgba(120, 130, 160, .28); }
.tp-top u { display: block; flex: 1; max-width: 62%; margin-inline: auto; height: 5px; border-radius: 3px; background: rgba(120, 130, 160, .3); }
.tp-top s { display: block; width: 7px; height: 7px; border-radius: 2px; background: var(--tp-accent); }
.tp-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; padding: 8px 8px 6px; }
.tp-main b { display: block; width: 42%; height: 5px; border-radius: 2px; background: var(--tp-ink); }
.tp-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.tp-head s { display: block; width: 16%; height: 6px; border-radius: var(--tp-r); background: var(--tp-accent); }
.tp-rows { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--tp-r); background: var(--tp-card); box-shadow: 0 0 0 1px rgba(120, 130, 160, .3); }
.tp-thin .tp-rows { border-radius: 0; background: transparent; box-shadow: none; }
.tp-thin .tp-main { padding-inline: 14%; }
.tp-rows i { display: flex; align-items: center; gap: 5px; height: 10px; padding: 0 6px; border-bottom: 1px solid rgba(120, 130, 160, .28); }
.tp-rows i:last-child { border-bottom: 0; }
.tp-rows u { display: block; height: 3px; border-radius: 2px; background: var(--tp-dim); opacity: .8; width: 22%; }
.tp-rows u:first-child { width: 38%; background: var(--tp-ink); opacity: .7; }
.tp-cols { flex: 1; display: flex; gap: 4px; min-height: 0; }
.tp-col { flex: 1; display: flex; flex-direction: column; gap: 3px; padding-bottom: 3px; border-radius: var(--tp-r); background: rgba(120, 130, 160, .14); overflow: hidden; }
.tp-col b { width: auto; height: 6px; border-radius: 0; background: var(--tp-card); border-bottom: 2px solid var(--tp-accent); box-sizing: content-box; }
.tp-col i { display: block; height: 9px; margin-inline: 3px; border-radius: 2px; background: var(--tp-card); box-shadow: 0 0 0 1px rgba(120, 130, 160, .3); }
.brand-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.swatch { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; transition: transform .15s; }
.swatch:hover { transform: scale(1.1); }
.swatch.on { box-shadow: 0 0 0 2px var(--lt-bg-elev), 0 0 0 4px var(--lt-fg); }
.swatch .ic { stroke-width: 3; }
.swatch-custom { position: relative; display: inline-block; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; background: conic-gradient(#f43f5e, #f59e0b, #22c55e, #06b6d4, #6366f1, #d946ef, #f43f5e); }
.swatch-custom.on { box-shadow: 0 0 0 2px var(--lt-bg-elev), 0 0 0 4px var(--lt-fg); }
.swatch-custom input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.brand-hex { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--lt-fg-dim); }
.mode-seg { margin-top: 4px; }
.people-list { display: grid; gap: 4px; }
.person-row { display: flex; align-items: center; gap: 12px; padding: 10px var(--lt-card-pad); border-bottom: 1px solid var(--lt-line); }
.person-row:last-child { border-bottom: 0; }
.person-row .nm { font-weight: 650; }
.person-row .rl { font-size: 13px; color: var(--lt-fg-dim); }

/* ------------------------------------------------------------------ */
/* Popover, dialog, toast, search palette                              */
/* ------------------------------------------------------------------ */
.pop-backdrop { display: none; }
.pop { position: fixed; z-index: 80; min-width: 200px; max-width: 320px; max-height: 70dvh; overflow-y: auto; padding: 4px; border-radius: var(--lt-radius-md); background: var(--lt-bg-elev); color: var(--lt-fg); box-shadow: var(--lt-pop-shadow); }
.pop-item { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 34px; padding: 0 10px; border-radius: 8px; font-size: 14px; text-align: left; color: var(--lt-fg); }
.pop-item:hover, .pop-item:focus-visible { background: var(--lt-surface-2); outline: none; }
.pop-item.on { font-weight: 600; }
.pop-item.danger { color: var(--lt-negative); }
.pop-item .ic { color: var(--lt-fg-dim); }
.pop-item.danger .ic { color: var(--lt-negative); }
.pop-label { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop-check { margin-left: auto; color: var(--lt-accent-strong) !important; }
.pop-sep { height: 1px; margin: 4px -4px; background: var(--lt-line); }
.pop-head { padding: 8px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--lt-fg-faint); }
.pop-date { padding: 6px 8px; }
.pop-date input { width: 100%; height: 34px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--lt-line-strong); background: var(--lt-bg-elev); color: var(--lt-fg); color-scheme: inherit; }

.dlg-wrap { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; }
.dlg-scrim { position: absolute; inset: 0; background: var(--lt-backdrop); }
.dlg { position: relative; width: min(480px, 100%); max-height: 90dvh; overflow-y: auto; padding: var(--lt-card-pad); border-radius: var(--lt-radius-lg); background: var(--lt-bg-elev); box-shadow: var(--lt-pop-shadow); }
:root[data-look="minimal"] .dlg { padding: 24px; }
.dlg-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.dlg-head h2 { font-size: 17px; letter-spacing: -0.01em; }
.dlg-msg { margin-bottom: 14px; color: var(--lt-fg-mid); }
.dlg-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

#toasts { position: fixed; z-index: 100; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { padding: 10px 16px; border-radius: var(--lt-radius-control); background: var(--lt-fg); color: var(--lt-bg); font-size: 13.5px; font-weight: 600; box-shadow: var(--lt-pop-shadow); animation: toast-in .25s ease both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.pal-wrap { position: fixed; inset: 0; z-index: 95; display: flex; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; }
.pal-scrim { position: absolute; inset: 0; background: var(--lt-backdrop); }
.pal { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 600px; max-height: min(560px, 76dvh); overflow: hidden; border-radius: var(--lt-radius-lg); background: var(--lt-bg-elev); box-shadow: var(--lt-pop-shadow); }
.pal-input { display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 2px solid var(--lt-line); }
.pal-input:focus-within { border-bottom-color: var(--lt-accent); }
.pal-input input { flex: 1; min-width: 0; height: 56px; border: 0; background: transparent; outline: none; font-size: 16px; }
.pal-input kbd { background: transparent; border: 1px solid var(--lt-line-strong); color: var(--lt-fg-dim); }
.pal-list { flex: 1; min-height: 0; overflow-y: auto; padding: 8px; }
.pal-group { padding: 8px 12px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lt-fg-dim); }
.pal-item { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 6px 12px; border-radius: 8px; color: var(--lt-fg-mid); cursor: pointer; }
.pal-item.on { background: var(--lt-accent-10); color: var(--lt-fg); }
.pal-item .ic { color: var(--lt-fg-dim); }
.pal-item .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--lt-fg); }
.pal-item .d { font-size: 12px; color: var(--lt-fg-dim); }
.pal-foot { padding: 8px 16px; border-top: 1px solid var(--lt-line); font-size: 12px; color: var(--lt-fg-dim); }
.pal-foot kbd { background: var(--lt-surface-2); color: var(--lt-fg-mid); }
.pal-empty { padding: 28px 12px; text-align: center; color: var(--lt-fg-dim); }

/* ------------------------------------------------------------------ */
/* Theme structure (same hooks as the real app, one attribute per axis) */
/* ------------------------------------------------------------------ */

/* nav: wide tree (ClickUp) */
html[data-nav-kind="tree"] .nv-item { font-size: 13px; padding-inline: 9px; gap: 9px; }
html[data-nav-kind="tree"] .nv-item[aria-current="page"] { box-shadow: inset 3px 0 0 var(--lt-accent); }
html[data-nav-kind="tree"] .nv-children { margin-left: 15px; padding-left: 6px; border-left: 1px solid var(--lt-nav-line); }
html[data-nav-kind="tree"] .nv-child { height: 30px; font-size: 13px; padding: 0 9px; }
html[data-nav-kind="tree"] .nv-count { height: 18px; min-width: 18px; font-size: 10.5px; padding-inline: 6px; }
html[data-nav-kind="tree"] .nv-sec { font-size: 11px; letter-spacing: .1em; }

/* nav: thin column (Notion) */
html[data-nav-kind="thin"] .shell-nav { background: var(--lt-nav); }
html[data-nav-kind="thin"] .nv-head { padding: 12px 10px 4px; }
html[data-nav-kind="thin"] .nv-chip { gap: 8px; padding: 5px 6px; border-radius: var(--lt-radius-sm); }
html[data-nav-kind="thin"] .brand-mark { width: 24px; height: 24px; border-radius: 6px; }
html[data-nav-kind="thin"] .brand-mark svg { width: 15px; height: 15px; }
html[data-nav-kind="thin"] .nv-chip-text p:first-child { font-size: 13.5px; font-weight: 600; letter-spacing: 0; }
html[data-nav-kind="thin"] .nv-chip-text p:last-child, html[data-nav-kind="thin"] .nv-status { display: none; }
html[data-nav-kind="thin"] .nv-palette { margin-top: 6px; }
html[data-nav-kind="thin"] .nv-palette button { height: 28px; padding-inline: 8px; font-size: 13px; background: transparent; }
html[data-nav-kind="thin"] .nv-palette button:hover { background: var(--lt-nav-hover); }
html[data-nav-kind="thin"] .nv-nav { padding-inline: 10px; }
html[data-nav-kind="thin"] .nv-spaces { padding-top: 14px; }
html[data-nav-kind="thin"] .nv-sec { padding: 0 8px 4px; font-size: 11.5px; font-weight: 600; letter-spacing: 0; text-transform: none; }
html[data-nav-kind="thin"] .nv-item { gap: 8px; padding-inline: 8px; font-size: 13.5px; font-weight: 500; border-radius: var(--lt-radius-sm); }
html[data-nav-kind="thin"] .nv-item[aria-current="page"] { box-shadow: none; font-weight: 600; }
html[data-nav-kind="thin"] .nv-item .ic { width: 16px; height: 16px; }
html[data-nav-kind="thin"] .nv-count { height: 18px; min-width: 18px; font-size: 10.5px; padding-inline: 5px; }
html[data-nav-kind="thin"] .nv-child { height: 28px; font-size: 13px; }
html[data-nav-kind="thin"] .nv-foot { border-top: 0; padding: 8px 10px 12px; }
html[data-nav-kind="thin"] .lt-main { padding-top: 56px; }

/* nav: icon rail (Asana-like) */
html[data-nav-kind="rail"] .nv-chip { padding: 0; background: transparent; box-shadow: none; justify-content: center; }
html[data-nav-kind="rail"] .nv-head { padding: 0; height: var(--lt-bar-h); display: flex; align-items: center; justify-content: center; }
html[data-nav-kind="rail"] .nv-chip-text, html[data-nav-kind="rail"] .nv-palette, html[data-nav-kind="rail"] .nv-spaces, html[data-nav-kind="rail"] .nv-owner, html[data-nav-kind="rail"] .nv-status, html[data-nav-kind="rail"] .nv-label { display: none; }
html[data-nav-kind="rail"] .nv-count { position: absolute; right: 5px; top: 5px; height: 16px; min-width: 16px; padding: 0 4px; font-size: 10px; }
html[data-nav-kind="rail"] .nv-nav { padding: 6px 3px; overflow: visible; }
html[data-nav-kind="rail"] .nv-item { flex-direction: column; justify-content: center; gap: 3px; padding: 0; }
html[data-nav-kind="rail"] .nv-item[aria-current="page"] { box-shadow: inset 3px 0 0 var(--brand-lift); }
html[data-nav-kind="rail"] .nv-item[aria-current="page"] .nv-short { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-size: 9px; line-height: 1; font-weight: 700; }
html[data-nav-kind="rail"] .nv-item::after { content: attr(data-tip); position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%); z-index: 60; padding: 6px 10px; border-radius: var(--lt-radius-sm); background: #14171b; color: #fff; font-size: 12.5px; font-weight: 600; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .1s; }
html[data-nav-kind="rail"] .nv-item:hover::after, html[data-nav-kind="rail"] .nv-item:focus-visible::after { opacity: 1; }
html[data-nav-kind="rail"] .nv-foot { padding: 10px 6px; }
html[data-nav-kind="rail"] .nv-foot-row { flex-direction: column; }
html[data-nav-kind="rail"] .nv-owner-link { padding: 4px; justify-content: center; flex: none; }
html[data-nav-kind="rail"] .nv-nav, html[data-nav-kind="rail"] .shell-nav { overflow: visible; }
html[data-nav-kind="rail"] .nv-nav { justify-content: flex-start; }
html[data-nav-kind="rail"] .nv-bottom { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--lt-nav-line); }
html[data-nav-kind="rail"] .lt-main { padding-top: 24px; }

.bar-rail { position: sticky; top: 0; z-index: 30; height: var(--lt-bar-h); align-items: center; gap: 20px; padding: 0 24px; border-bottom: 1px solid var(--lt-line); background: var(--lt-bg-elev); }
.bar-rail .here { width: 180px; flex: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.bar-rail .big-search { flex: 1; min-width: 200px; max-width: 580px; margin: 0 auto; display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 16px; border-radius: var(--lt-radius-control); border: 1px solid var(--lt-line-strong); background: var(--lt-surface); color: var(--lt-fg-dim); text-align: left; }
.bar-rail .big-search:hover { border-color: var(--lt-fg-faint); background: var(--lt-surface-2); color: var(--lt-fg); }
.bar-rail .big-search span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-rail .big-search kbd { background: var(--lt-surface-2); color: var(--lt-fg-mid); }
.bar-rail .right { width: 180px; flex: none; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.bar-rail .create { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--lt-radius-control); background: var(--lt-accent); color: var(--lt-on-accent); }
.bar-rail .create:hover { background: var(--lt-accent-deep); }
.bar-rail .me { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--lt-accent-10); color: var(--lt-accent-strong); font-size: 13px; font-weight: 700; }

/* header: compact (Asana-like) */
html[data-header="compact"] .lt-head { align-items: center; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--lt-line); }
html[data-header="compact"] .lt-head-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; max-width: none; }
html[data-header="compact"] .lt-head .crumb { display: none; }
html[data-header="compact"] .lt-head .page-title { margin: 0; font-size: clamp(20px, 1.9vw, 24px); line-height: 1.2; }
html[data-header="compact"] .lt-head .page-sub { margin: 0; font-size: 13.5px; font-weight: 400; }
html[data-header="compact"] .lt-head .page-actions .btn { height: 34px; padding-inline: 14px; font-size: 13.5px; }
/* header: breadcrumb and view tabs (ClickUp) */
html[data-header="crumbs"] .lt-trail { display: block; margin-bottom: 4px; }
html[data-header="crumbs"] .lt-head .crumb { display: none; }
html[data-header="crumbs"] .lt-head { align-items: flex-end; margin-bottom: 14px; gap: 6px 16px; }
html[data-header="crumbs"] .lt-head .page-title { font-size: clamp(21px, 1.9vw, 26px); line-height: 1.15; }
html[data-header="crumbs"] .lt-head .page-sub { margin-top: 4px; font-size: 13px; font-weight: 400; }
html[data-header="crumbs"] .lt-head .page-actions .btn { height: 32px; padding-inline: 12px; font-size: 13px; }
html[data-header="crumbs"] .seg { padding: 0; gap: 4px; border-radius: 0; background: transparent; box-shadow: inset 0 -1px 0 var(--lt-line); }
html[data-header="crumbs"] .seg > * { height: 36px; padding-inline: 12px; border-radius: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: 13px; }
html[data-header="crumbs"] .seg > [aria-current="true"] { background: transparent; box-shadow: none; border-bottom-color: var(--lt-accent); color: var(--lt-fg); }
/* header: document (Notion) */
html[data-header="document"] .lt-head { margin-bottom: 28px; }
html[data-header="document"] .lt-head .crumb { display: none; }
html[data-header="document"] .lt-head .page-sub { margin-top: 6px; font-weight: 400; }
html[data-header="document"] .lt-head .page-actions .btn { height: 30px; padding-inline: 12px; font-size: 13px; }
html[data-header="document"] .seg { padding: 0; gap: 2px; border-radius: 0; background: transparent; }
html[data-header="document"] .seg > * { height: 28px; padding-inline: 10px; border-radius: var(--lt-radius-sm); font-size: 13px; font-weight: 500; }
html[data-header="document"] .seg > [aria-current="true"] { background: var(--lt-surface-2); box-shadow: none; }

/* surface: lines only (Notion) */
html[data-surface="lines"] .card { padding-inline: 0; border: 0; border-top: 1px solid var(--lt-line); border-radius: 0; background: transparent; box-shadow: none; }
html[data-surface="lines"] .stat { padding-top: 14px; padding-bottom: 6px; }
html[data-surface="lines"] .panel-h, html[data-surface="lines"] .space-h { padding-inline: 0; }
html[data-surface="lines"] .mini-row, html[data-surface="lines"] .notif, html[data-surface="lines"] .inbox-row, html[data-surface="lines"] .tbl-row, html[data-surface="lines"] .tbl-head, html[data-surface="lines"] .space-lists, html[data-surface="lines"] .person-row { padding-left: 0; padding-right: 0; }
html[data-surface="lines"] .space-lists { padding-inline: 0; }
html[data-surface="lines"] .task-top, html[data-surface="lines"] .task-body { padding-inline: 0; }
html[data-surface="lines"] .docs-split, html[data-surface="lines"] .home-grid { grid-template-columns: minmax(0, 1fr); }
html[data-surface="lines"] .space-grid { grid-template-columns: minmax(0, 1fr); }
html[data-surface="lines"] .doc-card { padding-inline: 0; }
html[data-surface="lines"] .set-section { padding: 18px 0 0; }
html[data-surface="lines"] .docs-tree { position: static; max-height: none; }
html[data-surface="lines"] .stats { gap: 0 24px; }
html[data-surface="bordered"] .page-title { font-weight: 700; }

/* list: low rows with solid status labels (ClickUp) */
html[data-list="colored"] .tbl-head { font-size: 11.5px; letter-spacing: .03em; color: var(--lt-fg-dim); }
html[data-list="colored"] .status-h .pill { border-radius: var(--lt-radius-sm); font-size: 11px; }
/* list: horizontal rules only (Notion) */
html[data-list="clean"] .tbl-head { background: transparent; border-bottom-color: var(--lt-line-strong); font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--lt-fg-dim); }
html[data-list="clean"] .status-h .pill { background: var(--lt-surface-2) !important; color: var(--lt-fg) !important; }

/* board: colored lanes (ClickUp) */
html[data-board="lanes"] .col { width: 292px; flex-basis: 292px; border: 0; box-shadow: inset 0 3px 0 var(--col-c); background: var(--lt-surface); }
html[data-board="lanes"] .col-head h2 { display: inline-block; padding: 2px 9px; border-radius: var(--lt-radius-sm); background: var(--col-c); color: #fff; font-size: 11.5px; }
html[data-board="lanes"] .deal { border-color: transparent; box-shadow: 0 1px 2px rgba(18, 28, 60, .12); }
/* board: bare columns with rules (Notion) */
html[data-board="plain"] .col { width: 268px; flex-basis: 268px; border: 0; border-radius: 0; background: transparent; border-left: 1px solid var(--lt-line); }
html[data-board="plain"] .col:first-child { border-left: 0; }
html[data-board="plain"] .col-head h2 { font-size: 13px; font-weight: 600; text-transform: none; letter-spacing: 0; }
html[data-board="plain"] .deal { box-shadow: none; border-color: var(--lt-line); }
/* board: columns share the width (Asana-like) */
html[data-board="columns"] .board { width: 100%; }
html[data-board="columns"] .col { flex: 1 0 216px; width: 216px; min-width: 0; border-top: 0; border-radius: var(--lt-radius-md); }
html[data-board="columns"] .col-head { padding: 12px 14px 10px; margin-bottom: 8px; background: var(--lt-bg-elev); border-radius: var(--lt-radius-md) var(--lt-radius-md) 0 0; box-shadow: inset 0 -2px 0 var(--lt-accent), 0 1px 0 var(--lt-line); }
html[data-board="columns"] .col-head h2 { font-size: 15px; text-transform: none; letter-spacing: 0; color: var(--lt-fg); }
html[data-board="columns"] .deal { border-radius: var(--lt-radius-md); }

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */
@media (min-width: 1024px) {
  html[data-nav-kind="rail"] .bar-rail { display: flex; }
}
@media (max-width: 1023px) {
  .mobile-bar { display: flex; }
  .shell-nav, html[data-nav-kind] .shell-nav { position: fixed; inset: 0 auto 0 0; width: min(288px, 86vw); flex-basis: auto; transform: translateX(-100%); visibility: hidden; transition: transform .18s ease, visibility 0s linear .18s; z-index: 85; overflow: hidden; }
  html[data-nav="open"] .shell-nav { transform: none; visibility: visible; transition: transform .18s ease, visibility 0s; box-shadow: var(--lt-pop-shadow); }
  html[data-nav="open"] .shell-scrim { display: block; position: fixed; inset: 0; z-index: 84; background: var(--lt-backdrop); }
  .nv-close { display: inline-grid; }
  /* the drawer always shows the full menu, whatever the theme */
  html[data-nav-kind] .nv-chip-text, html[data-nav-kind] .nv-palette, html[data-nav-kind] .nv-spaces, html[data-nav-kind] .nv-owner, html[data-nav-kind] .nv-label { display: block; }
  html[data-nav-kind] .nv-count { display: inline-grid; position: static; height: 22px; min-width: 22px; padding: 0 8px; font-size: 11.5px; }
  html[data-nav-kind] .nv-status { display: flex; }
  html[data-nav-kind] .nv-item { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 0 14px; height: 44px; }
  html[data-nav-kind] .nv-item::after, html[data-nav-kind] .nv-short { display: none !important; }
  html[data-nav-kind] .nv-chip { padding: 10px 12px; background: var(--lt-nav-chip-bg); box-shadow: var(--lt-nav-chip-shadow); justify-content: flex-start; }
  html[data-nav-kind] .nv-head { height: auto; display: block; padding: 20px 16px 12px; }
  html[data-nav-kind] .nv-nav { padding: 4px 14px 12px; overflow-y: auto; justify-content: space-between; }
  html[data-nav-kind] .nv-foot-row { flex-direction: row; }
  html[data-nav-kind] .nv-owner-link { flex: 1; justify-content: flex-start; padding: 6px 8px; }
  html[data-nav-kind] .nv-foot { padding: 14px 16px 16px; }
  .lt-main, html[data-surface="lines"] .lt-main, html[data-nav-kind] .lt-main { padding: 12px 16px 72px; }
}
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-grid, .space-grid, .docs-split { grid-template-columns: minmax(0, 1fr); }
  .doc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs-tree { position: static; max-height: none; }
}
@media (max-width: 767px) {
  .tbl-head { display: none; }
  .tbl-row { grid-template-columns: minmax(0, 1fr) auto; }
  .cells { display: flex; align-items: center; gap: 6px; }
  .props { grid-template-columns: minmax(0, 1fr); }
  .doc-grid { grid-template-columns: minmax(0, 1fr); }
  .tbl-row .name .list-tag { display: none; }
  .search-field input { width: 120px; }
  .col, html[data-board="lanes"] .col, html[data-board="plain"] .col { flex-basis: 260px; width: 260px; }
  html[data-board="columns"] .col { flex-basis: 240px; width: 240px; }
  /* popovers become bottom sheets */
  .pop-backdrop { display: block; position: fixed; inset: 0; z-index: 79; background: rgba(0, 0, 0, .4); }
  .pop { left: 0 !important; right: 0 !important; top: auto !important; bottom: 0; max-width: none; max-height: 75dvh; border-radius: 16px 16px 0 0; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); }
  .pop-item { min-height: 44px; font-size: 15px; }
  .dlg-wrap { place-items: end center; padding: 0; }
  .dlg { border-radius: 16px 16px 0 0; width: 100%; }
  .bar-rail .here { width: auto; }
}
@media (max-width: 560px) {
  .page-actions { width: 100%; }
  .btn, .seg > * { height: 40px; }
  .stat p:last-child { font-size: 22px; }
  .mini-row .l { display: none; }
}
