/* Krishva Hub — design system (helper E). Original Krishva design; Basecamp-like structure.
   Tokens → base → layout (topbar, mobile tabbar, sheet) → components → tools. LIGHT default (Basecamp-like, client steer 06:43Z); [data-theme=dark] optional. NO gradients: --grad/--grad-soft are kept only as solid aliases of the accent. */
@font-face{font-family:"Inter";src:url("../fonts/inter-var.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap}

:root,[data-theme=light]{
  color-scheme:light;
  --bg:#f7f6f3;--bg-2:#efede8;--surface:#ffffff;--surface-2:#f5f4f1;--surface-3:#ebe9e4;--sheet:#ffffff;
  --line:#e3e0da;--line-2:#d2cec6;
  --text:#1d1b24;--text-2:#3a3744;--muted:#5d5967;--faint:#706c79;
  --accent:#7b00ff;--accent-ink:#6200cc;--accent-bg:#f3ecff;--accent-line:#cdb2ff;--accent-fill:#7b00ff;--accent-fill-hover:#6a00dd;--on-accent:#ffffff;
  --violet:#7b00ff;--pink:#7b00ff;--magenta:#ff00c8;--blue:#3f43d9;--blue-ink:#3436c4;
  --grad:#7b00ff;--grad-soft:#f3ecff;
  --ok:#137a4b;--ok-bg:#e7f5ee;--warn:#8a5300;--warn-bg:#fdf1dc;--bad:#c4183f;--bad-bg:#fcebef;
  --shadow:0 1px 2px rgba(29,27,36,.06);
  --shadow-lg:0 12px 32px -10px rgba(29,27,36,.22);
  --focus:0 0 0 3px rgba(123,0,255,.30);
  --page-glow:none;
}
[data-theme=dark]{
  color-scheme:dark;
  --bg:#17161c;--bg-2:#1d1c23;--surface:#222129;--surface-2:#2a2932;--surface-3:#33323c;--sheet:#1f1e25;
  --line:#34333d;--line-2:#45444f;
  --text:#ecebf1;--text-2:#cfcdd8;--muted:#aeabba;--faint:#9d9aa9;
  --accent:#b48cff;--accent-ink:#c3a3ff;--accent-bg:#2d2440;--accent-line:#5e4594;--accent-fill:#7b00ff;--accent-fill-hover:#8a1aff;--on-accent:#ffffff;
  --violet:#7b00ff;--pink:#b48cff;--magenta:#ff00c8;--blue:#7d80ff;--blue-ink:#a4a6ff;
  --grad:#7b00ff;--grad-soft:#2d2440;
  --ok:#4fd19a;--ok-bg:#1f3a2e;--warn:#f0b75a;--warn-bg:#3d3220;--bad:#ff7d98;--bad-bg:#43232c;
  --shadow:0 1px 2px rgba(0,0,0,.35);
  --shadow-lg:0 14px 36px -10px rgba(0,0,0,.6);
  --focus:0 0 0 3px rgba(180,140,255,.45);
  --page-glow:none;
}
:root{--r-sm:6px;--r:10px;--r-lg:14px;--r-xl:18px;--font:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;--font-head:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;--font-logo:"Inter",system-ui,sans-serif;--top-h:60px;--tab-h:64px;--maxw:1180px}

/* ---------- base ---------- */
*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;font:15px/1.55 var(--font);color:var(--text);background:var(--bg);min-height:100vh;-webkit-font-smoothing:antialiased;overflow-x:hidden}
h1,h2,h3,h4{font-family:var(--font-head);font-weight:650;letter-spacing:-.015em;line-height:1.2;margin:0 0 .5em;color:var(--text)}
h1{font-size:clamp(1.45rem,1.1rem + 1.2vw,2rem)}h2{font-size:1.2rem}h3{font-size:1rem}h4{font-size:.9rem}
p{margin:0 0 .8em}a{color:var(--accent-ink);text-decoration:none}a:hover{text-decoration:underline;text-underline-offset:2px}
img,svg{max-width:100%}
small,.small{font-size:.82rem}.muted{color:var(--muted)}.faint{color:var(--faint)}
hr{border:0;border-top:1px solid var(--line);margin:1.25rem 0}
code,kbd,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.88em}
kbd{display:inline-block;padding:.05em .45em;border:1px solid var(--line-2);border-bottom-width:2px;border-radius:6px;background:var(--surface-2)}
:focus{outline:none}:focus-visible{outline:none;box-shadow:var(--focus);border-radius:8px}
::selection{background:rgba(123,0,255,.35)}
.skip-link{position:absolute;left:12px;top:-60px;z-index:200;background:var(--surface);color:var(--text);padding:10px 14px;border-radius:10px;box-shadow:var(--shadow)}
.skip-link:focus{top:10px}
.sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.grad-text{color:var(--accent-ink)}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* ---------- topbar ---------- */
.topbar{position:sticky;top:0;z-index:50;height:var(--top-h);display:flex;align-items:center;gap:12px;padding:0 20px;background:var(--surface);border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:10px;color:var(--text);font-family:var(--font-logo);font-weight:600;font-size:15px;white-space:nowrap;flex:1 1 0;min-width:max-content}
.brand:hover{text-decoration:none}
.brand img,.brand .brand-mark{width:26px;height:32px;object-fit:contain}
.brand b{font-weight:600}.brand span{color:var(--muted);font-weight:400}
.mainnav{display:flex;align-items:center;justify-content:center;gap:2px;flex:1 1 auto;min-width:0}
.mainnav>a,.mainnav>.dd>button,.mainnav>.dd>a{position:relative;display:flex;align-items:center;gap:7px;height:40px;padding:0 12px;border-radius:10px;color:var(--text-2);font-weight:500;font-size:14px;background:none;border:0;font-family:inherit;cursor:pointer;white-space:nowrap}
.mainnav>a:hover,.mainnav>.dd>button:hover,.mainnav>.dd>a:hover{background:var(--surface-2);color:var(--text);text-decoration:none}
.mainnav>a[aria-current=page],.mainnav>.dd>a[aria-current=page]{color:var(--text);background:var(--accent-bg)}
.mainnav>a[aria-current=page]::after,.mainnav>.dd>a[aria-current=page]::after{content:"";position:absolute;left:14px;right:14px;bottom:-11px;height:2px;border-radius:2px;background:var(--accent-fill)}
.mainnav .ico{width:18px;height:18px;opacity:.9}
.nav-badge{min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--accent-fill);color:var(--on-accent);font-size:11px;font-weight:700;display:inline-grid;place-items:center;line-height:1}
.topbar-right{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:1 1 0}
@media (max-width:1180px) and (min-width:901px){.mainnav>a,.mainnav>.dd>button,.mainnav>.dd>a{padding:0 8px;gap:5px;font-size:13.5px}.brand span{display:none}}
.search-btn{display:flex;align-items:center;gap:8px;height:38px;padding:0 10px 0 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--muted);font:inherit;font-size:13.5px;cursor:pointer;min-width:200px}
.search-btn:hover{border-color:var(--line-2);color:var(--text-2);text-decoration:none}
.search-btn kbd{margin-left:auto;font-size:11px}
.avatar-btn{border:0;background:none;padding:2px;border-radius:50%;cursor:pointer}
.mobile-only{display:none!important}

/* ---------- mobile tab bar ---------- */
.tabbar{display:none}
@media (max-width:900px){
  .mainnav,.search-btn{display:none!important}
  .mobile-only{display:flex!important}
  .topbar{padding:0 14px;justify-content:space-between;background:var(--surface)}
  .tabbar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:60;height:calc(var(--tab-h) + env(safe-area-inset-bottom));padding:0 4px env(safe-area-inset-bottom);background:var(--surface);border-top:1px solid var(--line)}
  .tabbar a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:var(--muted);font-size:11px;font-weight:600;position:relative;min-height:44px}
  .tabbar a:hover{text-decoration:none}
  .tabbar a[aria-current=page]{color:var(--accent-ink)}
  .tabbar .ico{width:22px;height:22px}
  .tabbar .nav-badge{position:absolute;top:8px;left:calc(50% + 4px);height:16px;min-width:16px;font-size:10px}
  body.has-tabbar{padding-bottom:calc(var(--tab-h) + env(safe-area-inset-bottom))}
}
.icon-btn{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:10px;border:0;background:none;color:var(--text-2);cursor:pointer;position:relative}
.icon-btn:hover{background:var(--surface-2);color:var(--text)}
.icon-btn .ico{width:20px;height:20px}
.icon-btn .nav-badge{position:absolute;top:4px;right:2px;height:16px;min-width:16px;font-size:10px}
.ico{display:inline-block;width:18px;height:18px;flex:0 0 auto;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}

/* ---------- page frames ---------- */
.main{max-width:var(--maxw);margin:0 auto;padding:28px 24px 64px}
.main.wide{max-width:none}
.sheet{background:var(--sheet);border:1px solid var(--line);border-radius:var(--r-xl);box-shadow:var(--shadow);padding:32px clamp(18px,4vw,48px) 40px;position:relative}
.sheet-narrow{max-width:900px;margin:0 auto}
.page-head{display:flex;align-items:center;justify-content:space-between;gap:12px 16px;flex-wrap:wrap;margin-bottom:22px}
.page-head h1{margin:0}
.page-head.center{flex-direction:column;text-align:center;justify-content:center}
.page-head .actions,.actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:13px;color:var(--muted);margin:0 0 14px}
.crumbs a{color:var(--muted)}.crumbs a:hover{color:var(--text)}
.crumbs .sep{opacity:.5}
.section-title{display:flex;align-items:center;gap:12px;font-family:var(--font);font-size:12.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);margin:36px 0 14px}
.section-title::after{content:"";flex:1;height:1px;background:var(--line)}
.stack>*+*{margin-top:12px}
.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.grid{display:grid;gap:16px;grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}
.split{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:24px}
@media (max-width:900px){.split{grid-template-columns:1fr}.main{padding:18px 14px 40px}.sheet{border-radius:var(--r-lg);padding:22px 16px 28px}}

/* ---------- buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:0 18px;border-radius:999px;border:1px solid var(--line-2);background:var(--surface);color:var(--text);font:600 14px/1 var(--font);cursor:pointer;white-space:nowrap;transition:background .15s,border-color .15s,transform .05s}
.btn:hover{background:var(--surface-3);text-decoration:none}
.btn:active{transform:translateY(1px)}
.btn-primary{background:var(--accent-fill);border-color:var(--accent-fill);color:var(--on-accent)}
.btn-primary:hover{background:var(--accent-fill-hover);border-color:var(--accent-fill-hover)}
.btn-ghost{background:transparent;border-color:transparent;color:var(--text-2)}
.btn-ghost:hover{background:var(--surface-2)}
.btn-outline{background:transparent}
.btn-danger{background:var(--bad-bg);border-color:transparent;color:var(--bad)}
.btn-sm{min-height:32px;padding:0 11px;font-size:13px;border-radius:9px}
.btn-icon{width:40px;padding:0}.btn-sm.btn-icon{width:32px}
.btn[disabled],.btn.is-disabled{opacity:.5;cursor:not-allowed}
@media (max-width:900px){.btn{min-height:44px}.btn-sm{min-height:36px}}

/* ---------- pills / badges / chips ---------- */
.pill{display:inline-flex;align-items:center;gap:5px;height:24px;padding:0 9px;border-radius:999px;font-size:12px;font-weight:600;background:var(--surface-2);color:var(--text-2);border:1px solid var(--line);white-space:nowrap;font-family:var(--font)}
button.pill{cursor:pointer}
.pill-client{background:rgba(74,76,255,.16);color:var(--blue-ink);border-color:rgba(74,76,255,.35)}
.pill-team{background:var(--surface-2);color:var(--muted)}
.pill-demo{background:var(--warn-bg);color:var(--warn);border-color:transparent}
.pill-ok{background:var(--ok-bg);color:var(--ok);border-color:transparent}
.pill-accent{background:var(--accent-bg);color:var(--accent-ink);border-color:var(--accent-line)}
.badge{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:10px;font-size:11.5px;font-weight:700;background:var(--accent-fill);color:#fff}
.due{display:inline-flex;align-items:center;gap:5px;height:24px;padding:0 9px;border-radius:7px;font-size:12px;font-weight:600;background:var(--surface-2);color:var(--text-2);border:1px solid var(--line);white-space:nowrap}
.due::before{content:"";width:12px;height:12px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E") center/contain no-repeat;opacity:.8}
.due-over{background:var(--bad-bg);color:var(--bad);border-color:transparent}
.due-today{background:var(--warn-bg);color:var(--warn);border-color:transparent}
.due-done{color:var(--muted);text-decoration:line-through}

/* ---------- avatars ---------- */
.avatar{--s:28px;display:inline-grid;place-items:center;width:var(--s);height:var(--s);border-radius:50%;flex:0 0 auto;color:#fff;font:700 calc(var(--s) * .38)/1 var(--font);letter-spacing:.02em;overflow:hidden;background:#5e35b1;box-shadow:0 0 0 2px var(--sheet);user-select:none}
.avatar img{width:100%;height:100%;object-fit:cover}
.avatars{display:inline-flex;align-items:center}
.avatars .avatar+.avatar{margin-left:-4px}
.avatars .more{margin-left:6px;font-size:12px;color:var(--muted);font-weight:600}

/* ---------- cards / panels ---------- */
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:18px;box-shadow:var(--shadow)}
.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:16px}
a.card{color:inherit;display:block;transition:border-color .15s,transform .15s}
a.card:hover{text-decoration:none;border-color:var(--accent-line);transform:translateY(-2px)}

/* ---------- forms ---------- */
.form{display:grid;gap:16px}
.form label,.field{display:grid;gap:6px;font-weight:600;font-size:13.5px;color:var(--text-2)}
.form .hint,.hint{font-weight:400;font-size:12.5px;color:var(--muted)}
input:not([type]),input[type=text],input[type=email],input[type=password],input[type=search],input[type=url],input[type=tel],input[type=number],input[type=date],input[type=time],input[type=datetime-local],select,textarea{width:100%;min-height:42px;padding:9px 12px;border-radius:10px;border:1px solid var(--line-2);background:var(--surface-2);color:var(--text);font:400 15px/1.4 var(--font)}
textarea{min-height:110px;resize:vertical}
input:focus,select:focus,textarea:focus{border-color:var(--accent);box-shadow:var(--focus);outline:none}
input::placeholder,textarea::placeholder{color:var(--faint)}
input[type=checkbox],input[type=radio]{accent-color:var(--violet);width:18px;height:18px}
.field-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px}
.form label.check,.client-check{display:flex;align-items:center;gap:9px;font-weight:500}
.client-check{padding:10px 12px;border-radius:10px;background:rgba(74,76,255,.09);border:1px dashed rgba(74,76,255,.4);color:var(--text-2);font-size:14px}

/* ---------- flash / toast / empty ---------- */
.flash{margin:0 0 16px;padding:12px 16px;border-radius:12px;border:1px solid var(--line);background:var(--surface);font-weight:500}
.flash-success{border-color:transparent;background:var(--ok-bg);color:var(--ok)}
.flash-error{border-color:transparent;background:var(--bad-bg);color:var(--bad)}
.flash-info{background:var(--accent-bg);border-color:var(--accent-line)}
.toasts{position:fixed;z-index:300;left:50%;bottom:24px;transform:translateX(-50%);display:grid;gap:8px;width:min(420px,calc(100vw - 24px))}
.toast{padding:12px 16px;border-radius:12px;background:var(--surface-3);color:var(--text);box-shadow:var(--shadow-lg);border:1px solid var(--line-2);font-weight:500}
.toast-error{border-color:var(--bad)}
@media (max-width:900px){.toasts{bottom:calc(var(--tab-h) + 16px)}}
.empty{text-align:center;padding:44px 20px;border:1px dashed var(--line-2);border-radius:var(--r-lg);color:var(--muted)}
.empty h2{font-size:1.05rem;color:var(--text)}
.empty p{max-width:440px;margin:0 auto 16px}

/* ---------- menus, dropdowns, modals, tabs ---------- */
.dd{position:relative}
.menu{position:absolute;right:0;top:calc(100% + 8px);z-index:80;min-width:230px;padding:6px;background:var(--surface);border:1px solid var(--line-2);border-radius:14px;box-shadow:var(--shadow-lg)}
.menu[hidden]{display:none}
.menu a,.menu button{display:flex;align-items:center;gap:10px;width:100%;padding:9px 10px;border-radius:9px;color:var(--text-2);background:none;border:0;font:500 14px var(--font);text-align:left;cursor:pointer}
.menu a:hover,.menu button:hover{background:var(--surface-2);color:var(--text);text-decoration:none}
.menu .menu-sep{height:1px;background:var(--line);margin:6px 4px}
.menu .menu-head{padding:8px 10px 6px;font-size:12px;color:var(--muted)}
.modal-backdrop{position:fixed;inset:0;z-index:200;background:rgba(20,18,28,.45);display:grid;place-items:center;padding:16px}
.modal{width:min(560px,100%);max-height:calc(100vh - 32px);overflow:auto;background:var(--sheet);border:1px solid var(--line-2);border-radius:var(--r-xl);box-shadow:var(--shadow-lg);padding:24px}
.tabs{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;border-bottom:1px solid var(--line);margin-bottom:18px}
.tabs::-webkit-scrollbar{display:none}
.tabs a{padding:10px 14px;color:var(--muted);font-weight:600;font-size:14px;border-bottom:2px solid transparent;white-space:nowrap}
.tabs a[aria-current=page],.tabs a.active{color:var(--text);border-bottom-color:var(--accent-fill)}
.tabs a:hover{color:var(--text);text-decoration:none}

/* ---------- lists / tables ---------- */
.list{list-style:none;margin:0;padding:0}
.list-item{display:flex;align-items:center;gap:12px;padding:12px 4px;border-bottom:1px solid var(--line)}
.list-item:last-child{border-bottom:0}
.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:var(--r)}
.table{width:100%;border-collapse:collapse;font-size:14px}
.table th,.table td{padding:11px 14px;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}
.table th{font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);background:var(--surface-2)}
.toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:16px}

/* ---------- home ---------- */
.home-head{text-align:center;padding:20px 0 6px}
.home-logo{display:inline-grid;place-items:center;width:64px;height:64px;border-radius:18px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);margin-bottom:14px}
.home-logo img{width:30px;height:38px;object-fit:contain}
.home-head h1{font-size:clamp(1.6rem,1.2rem + 1.5vw,2.3rem);margin-bottom:6px}
.home-head p{color:var(--muted);margin:0}
.home-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin:20px 0 4px}
.project-grid{display:grid;gap:18px;grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}
.project-card{position:relative;display:flex;flex-direction:column;gap:10px;min-height:178px;padding:20px 20px 16px;border-radius:var(--r-lg);background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);color:inherit;overflow:hidden;transition:border-color .15s,transform .15s}
.project-card::before{content:"";position:absolute;left:0;top:0;right:0;height:3px;background:var(--pc,var(--accent-fill));opacity:.9}
.project-card:hover{text-decoration:none;border-color:var(--accent-line);transform:translateY(-2px)}
.project-card h3{font-size:1.02rem;margin:2px 0 0;line-height:1.3}
.project-card .pc-client{font-size:12.5px;font-weight:600;color:var(--muted)}
.project-card p{font-size:13.5px;color:var(--text-2);margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.project-card .pc-foot{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:8px}
.project-card .pc-meta{font-size:12px;color:var(--muted)}
.project-card .pc-pin{position:absolute;top:14px;right:14px;color:var(--accent-ink)}
.project-card .pc-tags{display:flex;gap:6px;flex-wrap:wrap}
.project-card.new{border-style:dashed;align-items:center;justify-content:center;text-align:center;color:var(--muted);box-shadow:none;background:transparent}
.project-card.new::before{display:none}
.project-card.new .plus{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--accent-bg);color:var(--accent-ink);font-size:24px}
.glimpse-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}
@media (max-width:900px){.glimpse-grid{grid-template-columns:minmax(0,1fr)}}
.glimpse{min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:20px;box-shadow:var(--shadow)}
.glimpse h2{font-size:1rem;display:flex;align-items:center;justify-content:space-between;gap:8px}
.glimpse h2 a{font-family:var(--font);font-size:13px;font-weight:600}
.sched-day{display:grid;grid-template-columns:54px 1fr;gap:12px;padding:10px 0;border-top:1px solid var(--line)}
.sched-day:first-of-type{border-top:0}
.sched-date{text-align:center;border-radius:10px;background:var(--surface-2);padding:6px 0;height:max-content}
.sched-date b{display:block;font:600 18px/1.1 var(--font-head)}
.sched-date span{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:600}
.sched-date.today{background:var(--accent-fill);color:#fff}.sched-date.today span{color:rgba(255,255,255,.85)}
.sched-items{display:grid;gap:6px;align-content:center}
.sched-item{display:flex;align-items:center;gap:8px;font-size:14px;min-width:0}
.sched-item .dot{width:8px;height:8px;border-radius:50%;flex:0 0 auto;background:var(--blue)}
.sched-item .dot.dot-todo{background:var(--accent-fill);border-radius:2px}
.sched-item .t{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sched-item .where{color:var(--muted);font-size:12.5px;white-space:nowrap;margin-left:auto}
.assign{display:flex;align-items:center;gap:10px;padding:10px 0;border-top:1px solid var(--line);min-width:0}
.assign:first-of-type{border-top:0}
.assign .ck{width:20px;height:20px;border-radius:50%;border:2px solid var(--line-2);flex:0 0 auto}
.assign .t{flex:1;min-width:0;font-size:14px}
.assign .t small{display:block;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ---------- project home ---------- */
.project-hero{text-align:center;margin:4px 0 26px}
.project-hero .ph-client{display:inline-flex;gap:8px;align-items:center;justify-content:center;flex-wrap:wrap;margin-bottom:10px}
.project-hero h1{margin-bottom:8px}
.project-hero p{color:var(--muted);max-width:640px;margin:0 auto 14px}
.project-hero .ph-people{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap}
.access-chip{display:inline-flex;align-items:center;gap:8px;padding:6px 12px;border-radius:999px;font-size:13px;font-weight:600;background:var(--accent-bg);color:var(--accent-ink);border:1px solid var(--accent-line)}
.access-chip.off{background:var(--surface-2);color:var(--muted);border-color:var(--line)}
.access-chip .ico{width:16px;height:16px}
.tool-grid{display:grid;gap:18px;grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:1100px){.tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.tool-grid{grid-template-columns:1fr}}
.tool-card{display:flex;flex-direction:column;min-height:270px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--shadow);color:inherit;overflow:hidden;transition:border-color .15s,transform .15s}
.tool-card:hover{text-decoration:none;border-color:var(--accent-line);transform:translateY(-2px)}
.tool-card .tc-head{display:flex;flex-direction:column;align-items:center;gap:8px;padding:18px 16px 12px;border-bottom:1px solid var(--line)}
.tool-card .tc-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:var(--accent-bg);color:var(--accent-ink);border:1px solid var(--accent-line)}
.tool-card .tc-icon .ico{width:22px;height:22px}
.tool-card h2{font-size:1rem;margin:0}
.tool-card .tc-body{flex:1;padding:12px 16px 16px;font-size:13.5px;color:var(--text-2);display:grid;gap:9px;align-content:start;min-width:0}
.tool-card .tc-line{display:flex;align-items:flex-start;gap:9px;min-width:0}
.tool-card .tc-line .t{min-width:0;flex:1}
.tool-card .tc-line b{display:block;color:var(--text);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tool-card .tc-line small{color:var(--muted);display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tool-card .tc-foot{padding:10px 16px;border-top:1px solid var(--line);font-size:12.5px;color:var(--muted);display:flex;justify-content:space-between;gap:8px}
.mini-progress{height:6px;border-radius:3px;background:var(--surface-3);overflow:hidden}
.mini-progress i{display:block;height:100%;background:var(--accent-fill);border-radius:3px}
.mini-cols{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.mini-col{background:var(--surface-2);border-radius:8px;padding:6px;display:grid;gap:4px;align-content:start;min-height:84px}
.mini-col small{font-size:10.5px;color:var(--muted);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mini-col i{display:block;height:14px;border-radius:4px;background:var(--surface);border:1px solid var(--line)}
.mini-col i.hot{background:var(--accent-bg);border-color:var(--accent-line)}
.file-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.file-tile{aspect-ratio:1/1.05;border-radius:10px;background:var(--surface-2);border:1px solid var(--line);display:grid;place-items:center;align-content:center;gap:4px;font-size:10.5px;color:var(--muted);text-align:center;padding:4px;overflow:hidden}
.file-tile .ext{font:700 11px var(--font);color:#fff;padding:3px 6px;border-radius:5px;background:var(--blue)}
.file-tile .ext.pdf{background:#d1345b}.file-tile .ext.doc{background:var(--violet)}.file-tile .ext.img{background:#0b7358}
.file-tile span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* project tool tabs (inside project pages) */
.project-head{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:-6px 0 18px}
.project-head .ph-name{font-family:var(--font-head);font-weight:600;font-size:14px;color:var(--text)}
.tooltabs{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;max-width:100%;-webkit-overflow-scrolling:touch}
.tooltabs::-webkit-scrollbar{display:none}
.tooltabs a{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 12px;border-radius:9px;font-size:13px;font-weight:600;color:var(--muted);white-space:nowrap}
.tooltabs a:hover{background:var(--surface-2);color:var(--text);text-decoration:none}
.tooltabs a[aria-current=page]{background:var(--accent-bg);color:var(--accent-ink)}
.tooltabs .ico{width:16px;height:16px}

/* ---------- to-dos + hill ---------- */
.todo-summary{display:flex;align-items:center;gap:16px;flex-wrap:wrap;color:var(--muted);font-size:14px;margin:-6px 0 22px}
.todolist{padding:22px 0;border-top:1px solid var(--line)}
.todolist:first-of-type{border-top:0;padding-top:4px}
.todolist-head{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:8px}
.todolist-head h2{margin:0;font-size:1.12rem}
.todolist-head h2 a{color:var(--text)}
.ring{--p:0;width:34px;height:34px;border-radius:50%;flex:0 0 auto;background:conic-gradient(var(--accent-fill) calc(var(--p)*1%),var(--surface-3) 0);display:grid;place-items:center}
.ring::after{content:"";width:24px;height:24px;border-radius:50%;background:var(--sheet)}
.todolist-meta{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--muted)}
.todolist-desc{color:var(--text-2);font-size:14px;margin:0 0 6px 48px}
.todos{list-style:none;margin:0;padding:0 0 0 48px}
.todo{display:flex;align-items:flex-start;gap:12px;padding:9px 0;min-width:0}
.todo+.todo{border-top:1px dashed var(--line)}
.todo .ck{width:22px;height:22px;margin-top:1px;border-radius:50%;border:2px solid var(--line-2);flex:0 0 auto;display:grid;place-items:center;background:transparent;cursor:pointer;padding:0;color:#fff}
.todo .ck:hover{border-color:var(--accent)}
.todo.done .ck{background:var(--accent-fill);border-color:transparent}
.todo .ck svg{width:14px;height:14px;stroke:#fff;fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.todo .body{flex:1;min-width:0;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.todo .title{color:var(--text);font-size:15px}
.todo.done .title{color:var(--muted);text-decoration:line-through;text-decoration-color:var(--faint)}
.todo .note-ico{color:var(--faint)}
.todo .meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.todo .who{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--text-2)}
.todo-group{margin:10px 0 4px;padding:10px 0 0;font-weight:700;font-size:13px;color:var(--accent-ink);display:flex;align-items:center;gap:8px}
.todo-group::after{content:"";flex:1;height:1px;background:var(--accent-line);opacity:.5}
.completed-link{display:block;width:max-content;margin:6px 0 0 48px;font-size:13px;color:var(--muted)}
.add-todo{display:flex;width:max-content;align-items:center;gap:8px;margin:8px 0 0 48px;color:var(--accent-ink);font-weight:600;font-size:14px}
@media (max-width:640px){.todos,.todolist-desc,.completed-link,.add-todo{padding-left:0;margin-left:0}}
.hill{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:18px 20px 14px;margin-bottom:26px}
.hill-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:6px}
.hill-head h2{margin:0;font-size:1rem}
.hill svg{display:block;width:100%;height:auto;overflow:visible}
.hill .hill-axis{stroke:var(--line-2);stroke-width:1;stroke-dasharray:4 5}
.hill .hill-curve,.hill-svg .hill-curve{fill:none;stroke:var(--accent-fill);stroke-width:3}
.hill .hill-fill,.hill-svg .hill-fill{fill:var(--accent-bg)}
.hill .hill-label{fill:var(--muted);font:600 12px var(--font);letter-spacing:.05em;text-transform:uppercase}
.hill .hill-dot{stroke:var(--sheet);stroke-width:3}
.hill .hill-name{fill:var(--text);font:600 12.5px var(--font)}
.hill-legend{display:flex;gap:16px;flex-wrap:wrap;font-size:13px;color:var(--text-2);margin-top:8px}
.hill-legend span{display:inline-flex;align-items:center;gap:7px}
.hill-legend i{width:11px;height:11px;border-radius:50%}

/* ---------- card table / kanban ---------- */
.kanban-wrap{position:relative;margin:0 -24px;padding:0 24px}
.kanban{display:flex;gap:14px;overflow-x:auto;overscroll-behavior-x:contain;padding:4px 2px 18px;scroll-snap-type:x proximity;align-items:flex-start;max-width:100%}
.kanban::-webkit-scrollbar{height:10px}.kanban::-webkit-scrollbar-thumb{background:var(--surface-3);border-radius:6px}
.kanban-col{flex:0 0 286px;scroll-snap-align:start;background:var(--surface-2);border:1px solid var(--line);border-radius:var(--r-lg);display:flex;flex-direction:column;max-height:calc(100vh - 220px);min-height:200px}
.kanban-col.triage{background:transparent;border-style:dashed}
.kanban-col.done-col{background:var(--ok-bg);border-color:transparent}
.kanban-col.on-hold{flex-basis:220px;background:var(--surface-2)}
.kc-head{display:flex;align-items:center;gap:8px;padding:12px 14px 10px}
.kc-head h2{font-size:.9rem;margin:0;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kc-head .count{font-size:12px;font-weight:700;color:var(--muted);background:var(--surface);border-radius:8px;padding:2px 8px;border:1px solid var(--line)}
.kc-color{width:10px;height:10px;border-radius:3px;flex:0 0 auto}
.kc-cards{display:grid;gap:10px;padding:0 10px 10px;overflow-y:auto;min-height:40px}
.kanban-card{display:grid;gap:9px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:12px 12px 10px;box-shadow:var(--shadow);cursor:grab;color:inherit}
.kanban-card:hover{border-color:var(--accent-line);text-decoration:none}
.kanban-card .kt{font-weight:600;font-size:14px;color:var(--text);line-height:1.35}
.kanban-card .kmeta{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.kanban-card .steps{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:600;color:var(--muted)}
.kanban-card .kfoot{display:flex;align-items:center;justify-content:space-between;gap:8px}
.kanban-card .kicons{display:flex;gap:10px;font-size:12px;color:var(--muted);align-items:center}
.kanban-card .kicons span{display:inline-flex;align-items:center;gap:4px}
.kanban-card .kicons .ico{width:14px;height:14px}
.kanban-card.is-dragging{opacity:.5}
.kc-add{margin:0 10px 12px;padding:9px;border-radius:10px;border:1px dashed var(--line-2);color:var(--muted);font-weight:600;font-size:13px;text-align:center;background:none;cursor:pointer;font-family:inherit}
.kc-add:hover{color:var(--text);border-color:var(--accent-line)}
.kanban-col.add-col{flex-basis:220px;background:transparent;border-style:dashed;align-items:center;justify-content:center;color:var(--muted);font-weight:600;min-height:120px}

/* ---------- campfire / chat ---------- */
.chat{display:flex;flex-direction:column;gap:2px}
.chat-day{text-align:center;margin:14px 0 8px;font-size:12px;font-weight:600;color:var(--muted)}
.chat-day span{background:var(--surface-2);padding:4px 12px;border-radius:999px}
.chat-line{display:grid;grid-template-columns:36px minmax(0,1fr);gap:10px;padding:7px 4px;border-radius:12px}
.chat-line.cont{padding-top:0}
.chat-line.cont .avatar{visibility:hidden;height:0}
.chat-line .cl-head{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.chat-line .cl-name{font-weight:700;font-size:14px;color:var(--text)}
.chat-line .cl-time{font-size:12px;color:var(--muted)}
.chat-line .cl-body{font-size:15px;color:var(--text-2);overflow-wrap:anywhere}
.chat-line.me .cl-body{color:var(--text)}
.chat-line .mention{background:var(--accent-bg);color:var(--accent-ink);border-radius:6px;padding:0 4px;font-weight:600}
.chat-file{display:flex;align-items:center;gap:10px;margin-top:6px;padding:10px 12px;border-radius:12px;background:var(--surface-2);border:1px solid var(--line);max-width:320px}
.chat-file .ext{font:700 11px var(--font);color:#fff;padding:5px 7px;border-radius:6px;background:#d1345b}
.chat-file b{display:block;font-size:13.5px;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-file small{color:var(--muted)}
.chat-file .t{min-width:0}
.boosts{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}
.boost{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 10px 0 4px;border-radius:999px;background:var(--surface-2);border:1px solid var(--line);font-size:13px;color:var(--text-2)}
.boost .avatar{--s:20px;box-shadow:none}
.boost-add{width:28px;padding:0;justify-content:center;color:var(--muted);background:transparent;cursor:pointer}
.chat-composer{position:sticky;bottom:0;z-index:5;display:flex;align-items:flex-end;gap:8px;padding:10px;background:var(--sheet);border-top:1px solid var(--line)}
.chat-composer .input{flex:1;min-height:44px;border-radius:22px;border:1px solid var(--line-2);background:var(--surface-2);color:var(--faint);padding:11px 16px;font-size:15px}
.chat-composer .send{width:44px;height:44px;border-radius:50%;border:0;background:var(--accent-fill);color:#fff;display:grid;place-items:center;flex:0 0 auto}
.chat-composer .attach{width:44px;height:44px;border-radius:50%;border:1px solid var(--line-2);background:var(--surface-2);color:var(--text-2);display:grid;place-items:center;flex:0 0 auto}

/* ---------- comments / misc ---------- */
.comments{display:grid;gap:4px;margin-top:24px}
.comment{display:grid;grid-template-columns:36px minmax(0,1fr);gap:12px;padding:14px 0;border-top:1px solid var(--line)}
.comment .c-head{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap}
.comment .c-name{font-weight:700}.comment .c-time{color:var(--muted);font-size:12.5px}
.mention{background:var(--accent-bg);color:var(--accent-ink);border-radius:6px;padding:0 4px;font-weight:600}
.editor{border:1px solid var(--line-2);border-radius:12px;background:var(--surface-2);overflow:hidden}
.editor:focus-within{border-color:var(--accent);box-shadow:var(--focus)}
.editor-toolbar{display:flex;gap:2px;flex-wrap:wrap;padding:6px;border-bottom:1px solid var(--line);background:var(--surface)}
.editor-toolbar button{width:34px;height:32px;border:0;border-radius:8px;background:none;color:var(--text-2);cursor:pointer;font:600 13px var(--font)}
.editor-toolbar button:hover,.editor-toolbar button[aria-pressed=true]{background:var(--surface-3);color:var(--text)}
.editor-area{min-height:140px;padding:12px 14px;outline:none;color:var(--text)}
.editor-area:empty::before{content:attr(data-placeholder);color:var(--faint)}
.demo-ribbon{display:flex;align-items:center;justify-content:center;gap:10px;padding:8px 14px;font-size:13px;font-weight:600;background:var(--warn-bg);color:var(--warn);border-bottom:1px solid var(--line)}

/* ---------- auth ---------- */
body.auth{display:grid;place-items:center;padding:24px 16px}
.auth-card{width:min(420px,100%);background:var(--sheet);border:1px solid var(--line);border-radius:var(--r-xl);padding:32px 28px;box-shadow:var(--shadow-lg)}
.auth-card h1{font-size:1.35rem;text-align:center}
.auth-brand{display:flex;flex-direction:column;align-items:center;gap:10px;margin-bottom:18px}
.auth-brand img{width:36px;height:44px}

/* ---------- utilities ---------- */
.hide{display:none!important}.nowrap{white-space:nowrap}.ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.mt-0{margin-top:0}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mb-0{margin-bottom:0}.mb-2{margin-bottom:16px}
.center{text-align:center}.w-full{width:100%}
.tool-card.tool-add{border-style:dashed;box-shadow:none;background:transparent;align-items:center;justify-content:center;gap:8px;color:var(--muted);text-align:center;min-height:120px;padding:20px}
.tool-card.tool-add b{color:var(--text-2)}
@media (min-width:1101px){.tool-grid>.tool-card:nth-child(3n+1):last-child{grid-column:span 3;min-height:120px}.tool-grid>.tool-card:nth-child(3n+2):last-child{grid-column:span 2}}

/* campfire page frame */
.campfire{display:flex;flex-direction:column;background:var(--sheet);border:1px solid var(--line);border-radius:var(--r-xl);overflow:clip;box-shadow:var(--shadow)}
.campfire-head{display:flex;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid var(--line)}
.campfire-head h1{font-size:1rem;margin:0;flex:1;min-width:0}
.campfire-head small{display:block;color:var(--muted);font-family:var(--font);font-weight:500;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.campfire .chat{padding:6px 10px 10px}
@media (max-width:900px){
  body.page-chat .main{padding:0}
  body.page-chat .campfire{border-radius:0;border:0;box-shadow:none;min-height:calc(100vh - var(--top-h) - var(--tab-h))}
  body.page-chat .chat-composer{bottom:calc(var(--tab-h) + env(safe-area-inset-bottom))}
}
.mobile-title{font-family:var(--font-head);font-weight:600;font-size:14px;flex:1;min-width:0;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ---------- shell additions (real app) ---------- */
.ico-sm{width:14px;height:14px}
.mainnav>.dd>button.is-current{color:var(--text);background:var(--accent-bg)}
.menu-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.menu-head a{width:auto;padding:4px 8px;font-size:13px;color:var(--accent-ink)}
.menu-user{justify-content:flex-start;padding:10px;border-bottom:1px solid var(--line);margin-bottom:6px}
.menu-user span{display:grid;min-width:0}.menu-user b{color:var(--text);font-size:14px}.menu-user small{color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:180px}
.menu-form{margin:0}
.mobile-menu-extra{display:none}
@media (max-width:900px){.mobile-menu-extra{display:block}.menu{position:fixed;left:8px;right:8px;top:calc(var(--top-h) + 6px);bottom:auto;max-height:calc(100dvh - var(--top-h) - var(--tab-h) - 24px);overflow:auto;min-width:0}.menu a,.menu button{min-height:44px}}
[data-theme=light] .theme-ico-light,[data-theme=dark] .theme-ico-dark{display:none}
[data-theme=dark] .theme-label-dark,[data-theme=light] .theme-label-light{display:none}
.menu-hey{width:min(380px,calc(100vw - 16px));padding:8px}
.hey-mini{list-style:none;margin:0;padding:0;max-height:420px;overflow:auto}
.hey-mini li a{display:grid;grid-template-columns:32px minmax(0,1fr);gap:10px;align-items:start;padding:9px 8px;white-space:normal}
.hey-mini li a.unread{background:var(--accent-bg)}
.hey-mini .hm-sum{color:var(--text);font-size:13.5px;line-height:1.35}
.hey-mini .hm-meta{display:block;color:var(--muted);font-size:12px;margin-top:2px}
.hey-mini-empty{padding:16px 10px;text-align:center;font-size:13.5px}
.linkish{background:none;border:0;padding:0;font:inherit;color:var(--accent-ink);cursor:pointer;text-decoration:underline;text-underline-offset:2px}
.auth-app{font-family:var(--font-logo);font-weight:600;font-size:15px;color:var(--muted)}
.auth-foot{text-align:center;color:var(--muted);font-size:13px;margin-top:18px}
body.auth{flex-direction:column}
.error-page{max-width:560px;margin:40px auto;text-align:center}
.error-icon,.empty-icon{display:inline-grid;place-items:center;width:64px;height:64px;border-radius:20px;background:var(--accent-bg);border:1px solid var(--accent-line);color:var(--accent-ink);margin-bottom:12px}
.error-icon .ico,.empty-icon .ico{width:28px;height:28px}
.empty-icon{width:52px;height:52px;border-radius:16px}.empty-icon .ico{width:24px;height:24px}
.error-code{font-weight:700;font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin-bottom:6px}
.center-actions{justify-content:center}
.person{display:inline-flex;align-items:center;gap:9px;min-width:0}
.person-text{display:grid;min-width:0;line-height:1.25}.person-text b{font-weight:600;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.person-text small{color:var(--muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.inline-form{display:inline-flex;margin:0}
.ph-title{min-width:0}.ph-sub{margin:4px 0 0}
.tb-sep{width:1px;background:var(--line);margin:4px 4px}
.client-check{align-items:flex-start}
.client-check .ico{color:var(--blue-ink);margin-top:1px}
.client-check span{display:grid;gap:2px}.client-check small{font-weight:400;color:var(--muted);font-size:12.5px}
.client-toggle{display:inline-flex;margin:0}
.project-head .ph-name{color:var(--text);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.project-head .ph-name:hover{color:var(--accent-ink)}
@media (max-width:900px){.project-head{flex-direction:column;align-items:stretch;gap:8px;margin-bottom:14px}.tooltabs{margin:0 -14px;padding:0 14px}}
.shortcuts td{border-bottom:1px solid var(--line)}
.people-chips{display:flex;flex-wrap:wrap;gap:6px;padding:6px;border:1px solid var(--line-2);border-radius:10px;background:var(--surface-2);min-height:44px;align-items:center;position:relative}
.people-chips .chip{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 4px 0 4px;border-radius:999px;background:var(--surface);border:1px solid var(--line);font-size:13px;font-weight:600;color:var(--text)}
.people-chips .chip button{border:0;background:none;color:var(--muted);cursor:pointer;width:22px;height:22px;border-radius:50%;font-size:15px;line-height:1}
.people-chips .chip button:hover{background:var(--surface-3);color:var(--text)}
.people-chips input{flex:1;min-width:120px;border:0!important;background:transparent!important;box-shadow:none!important;min-height:30px;padding:4px}
.suggest{position:absolute;z-index:120;min-width:220px;max-width:320px;max-height:260px;overflow:auto;padding:6px;background:var(--surface);border:1px solid var(--line-2);border-radius:12px;box-shadow:var(--shadow-lg)}
.suggest button{display:flex;align-items:center;gap:9px;width:100%;padding:7px 8px;border:0;background:none;border-radius:8px;color:var(--text-2);font:500 14px var(--font);cursor:pointer;text-align:left}
.suggest button[aria-selected=true],.suggest button:hover{background:var(--accent-bg);color:var(--text)}
.suggest small{color:var(--muted);margin-left:auto;font-size:11.5px}
.is-drag-ghost{opacity:.45}
.drop-placeholder{border:2px dashed var(--accent-line);border-radius:12px;background:var(--accent-bg)}
.sortable-handle{cursor:grab;touch-action:none}
.editor-area h2{font-size:1.1rem}.editor-area blockquote,.rich blockquote{margin:.5em 0;padding:.2em 0 .2em 14px;border-left:3px solid var(--accent-line);color:var(--text-2)}
.editor-area pre,.rich pre{background:var(--surface-3);padding:10px 12px;border-radius:10px;overflow:auto;white-space:pre-wrap}
.rich{overflow-wrap:anywhere}.rich p{margin:0 0 .7em}.rich img{border-radius:10px}
.loading{opacity:.6;pointer-events:none}
a.sched-item,a.assign{color:inherit}a.sched-item:hover,a.assign:hover{text-decoration:none}a.sched-item:hover .t,a.assign:hover .t{color:var(--accent-ink)}
.mainnav .menu{left:0;right:auto}

/* integrator: absolutely-positioned .sr-only cells must not escape the horizontal scroller */
.table-wrap{position:relative}

/* ---------- helper P: Basecamp-parity additions ---------- */
.home-filters{display:flex;justify-content:center;align-items:center;gap:12px;flex-wrap:wrap;margin:6px 0 -6px}
.team-filter select{min-height:36px;border-radius:999px;padding:0 34px 0 14px}
.seg{display:inline-flex;padding:3px;border:1px solid var(--line-2);border-radius:999px;background:var(--surface)}
.seg a{padding:6px 14px;border-radius:999px;color:var(--text-2);font-size:13.5px;font-weight:600}
.seg a:hover{text-decoration:none;background:var(--surface-2)}
.seg a[aria-current]{background:var(--accent-fill);color:var(--on-accent)}
.hq-grid{display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}
.hq-card{display:flex;align-items:center;gap:12px;padding:14px 16px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);color:inherit;min-width:0}
.hq-card:hover{border-color:var(--line-2);text-decoration:none}
.hq-card .hq-icon{width:38px;height:38px;flex:0 0 38px;border-radius:10px;display:grid;place-items:center;background:var(--accent-bg);color:var(--accent-ink)}
.hq-card .hq-icon .ico{width:20px;height:20px}
.hq-card .hq-text{display:flex;flex-direction:column;min-width:0;flex:1}
.hq-card .hq-text b{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hq-card .hq-text small{color:var(--muted);font-size:12.5px}
.recent-strip{display:flex;gap:8px;flex-wrap:wrap}
.recent-strip a{display:inline-flex;align-items:center;gap:8px;padding:7px 14px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--text-2);font-size:13.5px;font-weight:500;max-width:100%}
.recent-strip a:hover{border-color:var(--line-2);color:var(--text);text-decoration:none}
.rv-dot{width:9px;height:9px;border-radius:50%;flex:0 0 9px}
.page-home .glimpse-grid{margin-top:40px}
.hey-mini .hm-group{display:flex;align-items:center;justify-content:space-between;padding:10px 8px 4px;font-size:11.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}
.hey-mini .hm-group .linkish{font-size:12px;text-transform:none;letter-spacing:0;font-weight:600;color:var(--accent-ink);width:auto;padding:2px 4px}
.hey-pings{display:flex;align-items:center;gap:12px;padding:12px 16px;margin:0 0 22px;border:1px solid var(--line);border-radius:var(--r);background:var(--surface);color:var(--text)}
.hey-pings:hover{border-color:var(--line-2);text-decoration:none}
.hey-pings>.ico{width:22px;height:22px;color:var(--accent-ink)}
.hey-pings>span{display:flex;flex-direction:column;flex:1;min-width:0}
.hey-pings small{color:var(--muted)}
