/* Smilee HQ — Linen + lagoon (brand guide, Oct 25 2026) */
:root {
  --white: #FCFAF6;
  --cream: #F2EBDD;
  --cream-2: #F7F2E9;
  --sand: #D9C7B0;
  --sand-2: #E8DCCB;
  --lagoon: #4DCAE6;
  --lagoon-soft: #DDF3F8;
  --lagoon-ink: #13708A;
  --cocoa: #49362C;
  --ink: #302D29;
  --muted: #8B7B6D;
  --line: #E9E0D2;
  --card: #FFFFFF;
  --ok: #5C8F6A;
  --warn: #B7742E;
  --shadow: 0 1px 2px rgba(73, 54, 44, .05), 0 6px 24px rgba(73, 54, 44, .06);
  --shadow-lg: 0 20px 60px rgba(73, 54, 44, .18);
  --r: 16px;
  --r-lg: 24px;
  --head: "Outfit", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--white);
  color: var(--ink);
  font: 15px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; color: var(--cocoa); letter-spacing: -.01em; margin: 0; }
a { color: var(--lagoon-ink); }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hide { display: none !important; }

/* ---------- wordmark ---------- */
.wordmark { font-family: var(--head); font-weight: 600; color: var(--cocoa); letter-spacing: -.017em; line-height: .9; position: relative; display: inline-block; }
.wordmark .loc { position: absolute; right: .02em; top: 100%; font: 500 .26em/1 var(--body); letter-spacing: .08em; margin-top: .28em; color: var(--cocoa); }

/* ---------- layout ---------- */
.app { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.side {
  background: var(--cream); border-right: 1px solid var(--line);
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 26px 16px 16px;
}
.side .brand { padding: 0 12px 30px; display: block; text-decoration: none; }
.side .brand .wordmark { font-size: 40px; }
.side-search {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; margin-bottom: 18px;
  border: 1px solid var(--sand-2); border-radius: 12px; background: var(--cream-2); color: var(--muted); text-align: left;
}
.side-search kbd { margin-left: auto; font: 500 11px var(--body); background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.nav-label { font: 600 11px var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 14px 12px 6px; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 8px 12px; border-radius: 11px; text-decoration: none;
  color: var(--ink); font-weight: 500; font-size: 14.5px;
}
.nav a:hover { background: rgba(255, 255, 255, .55); }
.nav a.on { background: var(--white); box-shadow: var(--shadow); color: var(--cocoa); }
.nav a .ic { color: var(--cocoa); opacity: .8; }
.nav a .count { margin-left: auto; font-size: 12px; color: var(--muted); }
.side-foot { margin-top: auto; border-top: 1px solid var(--sand-2); padding-top: 12px; display: flex; align-items: center; gap: 10px; }
.side-foot .who { flex: 1; min-width: 0; padding: 6px; border-radius: 10px; display: flex; gap: 10px; align-items: center; background: none; border: 0; text-align: left; }
.side-foot .who:hover { background: rgba(255, 255, 255, .55); }
.icon-btn { border: 0; background: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--cocoa); }
.icon-btn:hover { background: rgba(73, 54, 44, .07); }
.main { min-width: 0; padding: 34px 48px 80px; max-width: 1320px; width: 100%; }
.topbar { display: none; }

.ic { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- avatars, pills ---------- */
.av { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font: 600 12px var(--head); color: #fff; background: var(--sand); flex: none; }
.av.lg { width: 34px; height: 34px; font-size: 14px; }
.av.Nina { background: var(--cocoa); }
.av.Yoav { background: var(--lagoon); color: var(--cocoa); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; background: var(--cream); color: var(--cocoa); white-space: nowrap; }
.pill.blue { background: var(--lagoon-soft); color: var(--lagoon-ink); }
.pill.sand { background: var(--sand-2); }
.pill.ok { background: #E3EFE5; color: #3D6B4A; }
.pill.warn { background: #F6E7D3; color: #8A5520; }
.pill.ghost { background: transparent; border: 1px solid var(--line); color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--sand-2); background: var(--card);
  padding: 8px 14px; border-radius: 12px; font-weight: 500; font-size: 14px; color: var(--cocoa); white-space: nowrap;
}
.btn:hover { border-color: var(--sand); background: var(--cream-2); }
.btn.primary { background: var(--cocoa); color: var(--white); border-color: var(--cocoa); }
.btn.primary:hover { background: #3a2a22; }
.btn.blue { background: var(--lagoon); border-color: var(--lagoon); color: var(--cocoa); }
.btn.sm { padding: 5px 10px; font-size: 13px; border-radius: 10px; }
.btn.danger { color: #9b3b2b; }
.btn .ic { width: 16px; height: 16px; }

.field { width: 100%; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 9px 12px; outline: none; }
.field:focus { border-color: var(--lagoon); box-shadow: 0 0 0 3px var(--lagoon-soft); }
textarea.field { resize: vertical; min-height: 80px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 40px 0 14px; }
.section-head h2 { font-size: 22px; }
.section-head .link { font-size: 14px; color: var(--muted); text-decoration: none; }
.section-head .link:hover { color: var(--cocoa); }
.empty { padding: 26px; text-align: center; color: var(--muted); border: 1px dashed var(--sand-2); border-radius: var(--r); background: var(--cream-2); }

/* ---------- dashboard ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); border-radius: var(--r-lg); overflow: hidden; background: var(--cream); min-height: 300px; box-shadow: var(--shadow); }
.hero .txt { padding: 40px 42px; display: flex; flex-direction: column; }
.hero .eyebrow { font: 600 11.5px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hero h1 { font-size: 46px; line-height: 1.05; margin: 14px 0 12px; }
.hero p { margin: 0; max-width: 34ch; color: var(--ink); }
.hero .tagline { margin-top: auto; padding-top: 24px; font-family: var(--head); font-weight: 500; color: var(--cocoa); }
.hero .img { background: center/cover no-repeat; min-height: 260px; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.kpi { padding: 18px 20px; }
.kpi .lbl { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.kpi .val { font: 600 30px/1.1 var(--head); color: var(--cocoa); margin: 8px 0 4px; letter-spacing: -.02em; }
.kpi .sub { font-size: 12.5px; color: var(--muted); }
.bar { height: 6px; border-radius: 6px; background: var(--cream); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--lagoon); border-radius: 6px; }

.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cat-card { text-decoration: none; color: inherit; overflow: hidden; display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cat-card .cover { aspect-ratio: 16 / 8.5; background: center/cover no-repeat var(--cream); position: relative; }
.cat-card .cover .ico { position: absolute; left: 16px; bottom: -18px; width: 42px; height: 42px; border-radius: 13px; background: var(--white); display: grid; place-items: center; box-shadow: var(--shadow); color: var(--cocoa); }
.cat-card .body { padding: 26px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cat-card h3 { font-size: 19px; }
.cat-card .tag { font-size: 13.5px; color: var(--muted); }
.cat-card .stats { margin-top: auto; padding-top: 12px; display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); align-items: center; }
.cat-card .stats .bar { flex: 1; }

.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.list-card { padding: 6px; }
.row { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; text-decoration: none; color: inherit; }
.row:hover { background: var(--cream-2); }
.row .grow { flex: 1; min-width: 0; }
.row .title { font-weight: 500; color: var(--ink); }
.row .meta { font-size: 12.5px; color: var(--muted); }
.row + .row { border-top: 1px solid var(--cream); }
.dot-q { width: 30px; height: 30px; border-radius: 10px; background: var(--lagoon-soft); color: var(--lagoon-ink); display: grid; place-items: center; flex: none; }

.check { width: 20px; height: 20px; border-radius: 7px; border: 1.6px solid var(--sand); background: var(--card); display: grid; place-items: center; flex: none; padding: 0; }
.check:hover { border-color: var(--lagoon); }
.check.on { background: var(--lagoon); border-color: var(--lagoon); }
.check.on::after { content: ""; width: 9px; height: 5px; border: 2px solid var(--cocoa); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.done-title { text-decoration: line-through; color: var(--muted); }

.capture { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.capture .bar-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.capture select { border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; background: var(--white); }
.activity .row { align-items: flex-start; }
.activity .what { font-size: 14px; }
.activity .what b { font-weight: 600; color: var(--cocoa); }

/* ---------- category ---------- */
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--cocoa); }
.cover-banner { height: 230px; border-radius: var(--r-lg); background: center 55%/cover no-repeat var(--cream); position: relative; box-shadow: var(--shadow); }
.cover-banner.slim { height: 120px; }
.dq-row { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; }
.item-acts { display: flex; gap: 2px; opacity: .45; transition: opacity .15s; flex: none; margin-top: -4px; }
.dec:hover .item-acts, .item-acts:focus-within { opacity: 1; }
.item-acts .icon-btn { width: 30px; height: 30px; }
.page-card { position: relative; }
.page-card .x { position: absolute; top: 10px; right: 10px; opacity: 0; background: rgba(252, 250, 246, .92); }
.page-card:hover .x { opacity: 1; }
.th-btn { border: 0; background: none; padding: 0; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; display: inline-flex; gap: 4px; align-items: center; }
.th-btn span { opacity: 0; font-size: 10px; }
.th-btn:hover { color: var(--cocoa); }
.th-btn:hover span { opacity: 1; }
@media (hover: none) { .item-acts, .page-card .x, .fcard .x, .th-btn span { opacity: 1; } }
.cat-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.cat-title-row .btn { margin-bottom: 8px; }
.nav a.add-area { color: var(--muted); font-weight: 500; }
.nav a.add-area .ic { opacity: .6; }
.cat-card.new-area { border: 1.5px dashed var(--sand); background: var(--cream-2); box-shadow: none; align-items: center; justify-content: center; text-align: center; padding: 30px 24px; gap: 8px; min-height: 260px; }
.cat-card.new-area .na-ic { width: 52px; height: 52px; border-radius: 16px; background: var(--white); display: grid; place-items: center; color: var(--cocoa); box-shadow: var(--shadow); margin-bottom: 6px; }
.cat-card.new-area .tag { font-size: 13.5px; color: var(--muted); max-width: 26ch; }
.icon-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.icon-pick button { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line); background: var(--card); color: var(--cocoa); display: grid; place-items: center; }
.icon-pick button.on { border-color: var(--cocoa); background: var(--cream); box-shadow: 0 0 0 2px rgba(73, 54, 44, .12); }
.cover-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.cover-pick button { aspect-ratio: 16 / 10; border-radius: 11px; border: 2px solid transparent; background: center/cover no-repeat; padding: 0; display: grid; place-items: center; font-size: 12px; color: var(--cocoa); font-weight: 500; }
.cover-pick button.on { border-color: var(--cocoa); box-shadow: 0 0 0 3px rgba(73, 54, 44, .12); }
.cat-head { display: flex; gap: 18px; align-items: flex-end; margin: -34px 0 0 28px; position: relative; }
.cat-head .ico-big { width: 68px; height: 68px; border-radius: 20px; background: var(--white); box-shadow: var(--shadow); display: grid; place-items: center; color: var(--cocoa); flex: none; }
.cat-head .ico-big .ic { width: 30px; height: 30px; stroke-width: 1.5; }
.cat-title { margin: 18px 0 4px; font-size: 40px; line-height: 1.1; }
.cat-desc { color: var(--muted); max-width: 70ch; margin: 0; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 26px 0 24px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: 14.5px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: flex; align-items: center; gap: 7px; }
.tabs a:hover { color: var(--cocoa); }
.tabs a.on { color: var(--cocoa); border-color: var(--lagoon); }
.tabs a .n { font-size: 12px; background: var(--cream); border-radius: 999px; padding: 0 7px; }
.tabs .sep { width: 1px; background: var(--line); margin: 8px 6px; flex: none; }

.overview { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.pinned { padding: 30px 34px; }
.pinned-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.pinned-head h2 { font-size: 26px; display: flex; align-items: center; gap: 10px; }
.side-stack { display: flex; flex-direction: column; gap: 18px; }
.mini { padding: 16px 16px 8px; }
.mini h4 { font-size: 15px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.mini h4 a { font: 500 13px var(--body); color: var(--muted); text-decoration: none; }
.mini .row { padding: 9px 6px; }

/* ---------- pages ---------- */
.page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.page-card { padding: 18px 20px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 8px; min-height: 150px; transition: box-shadow .15s, transform .15s; }
.page-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.page-card .pc-ic { width: 36px; height: 36px; border-radius: 11px; background: var(--cream); display: grid; place-items: center; color: var(--cocoa); }
.page-card h3 { font-size: 17px; }
.page-card .snip { font-size: 13.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.page-card .meta { margin-top: auto; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.page-card.new { align-items: center; justify-content: center; border-style: dashed; color: var(--muted); box-shadow: none; background: var(--cream-2); cursor: pointer; }

.doc-wrap { max-width: 820px; margin: 0 auto; }
.doc-top { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.doc-title { font: 600 40px/1.15 var(--head); color: var(--cocoa); outline: none; margin: 26px 0 6px; letter-spacing: -.015em; }
.doc-title:empty::before { content: "Untitled"; color: var(--sand); }
.doc-meta { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; margin-bottom: 18px; }
.toolbar { position: sticky; top: 10px; z-index: 5; display: flex; gap: 2px; padding: 5px; background: rgba(252, 250, 246, .92); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); width: max-content; max-width: 100%; overflow-x: auto; margin-bottom: 20px; }
.toolbar button { border: 0; background: none; min-width: 34px; height: 32px; border-radius: 9px; font-weight: 600; color: var(--cocoa); padding: 0 8px; font-size: 13.5px; display: grid; place-items: center; }
.toolbar button:hover { background: var(--cream); }
.toolbar .div { width: 1px; background: var(--line); margin: 5px 4px; }

.prose { font-size: 16px; line-height: 1.7; color: var(--ink); }
.prose:focus { outline: none; }
.prose[contenteditable="true"]:empty::before { content: "Start writing… type # for a heading, - for a list, [] for a checklist"; color: var(--sand); }
.prose h1 { font-size: 30px; margin: 1.2em 0 .3em; }
.prose h2 { font-size: 22px; margin: 1.3em 0 .35em; }
.prose h3 { font-size: 18px; margin: 1.1em 0 .3em; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: .45em 0; }
.prose ul, .prose ol { padding-left: 1.4em; margin: .4em 0; }
.prose li { margin: .2em 0; }
.prose li::marker { color: var(--lagoon-ink); }
.prose .lead { font-size: 18px; color: var(--cocoa); }
.prose blockquote { margin: .8em 0; padding: 2px 0 2px 16px; border-left: 3px solid var(--lagoon); color: var(--cocoa); }
.prose .callout { background: var(--lagoon-soft); border-radius: 14px; padding: 14px 18px; margin: 1em 0; color: #0f4f61; }
.prose .callout.warn { background: #F6E7D3; color: #6d4318; }
.prose ul.checks { list-style: none; padding-left: 4px; }
.prose ul.checks li { position: relative; padding-left: 30px; }
.prose ul.checks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 6px; border: 1.6px solid var(--sand); background: var(--card); cursor: pointer; }
.prose ul.checks li.done { color: var(--muted); text-decoration: line-through; }
.prose ul.checks li.done::before { background: var(--lagoon) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4.5 9.5l3 3 6-7' fill='none' stroke='%2349362C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; border-color: var(--lagoon); }
.prose .swatches { display: flex; flex-wrap: wrap; gap: 10px; margin: .6em 0 1em; }
.prose .sw { width: 128px; height: 92px; border-radius: 14px; border: 1px solid var(--line); padding: 10px 12px; display: flex; align-items: flex-end; font-size: 12px; line-height: 1.35; color: var(--cocoa); font-weight: 500; }
.prose .sw.dark { color: var(--white); }
.prose a { color: var(--lagoon-ink); }
.save-state { font-size: 12.5px; color: var(--muted); }

/* ---------- tasks ---------- */
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.col { background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; min-height: 160px; }
.col.drop { background: var(--lagoon-soft); border-color: var(--lagoon); }
.col-head { display: flex; align-items: center; gap: 8px; padding: 2px 4px 10px; font: 600 14px var(--head); color: var(--cocoa); }
.col-head .n { font: 500 12px var(--body); color: var(--muted); }
.col-head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sand); }
.col-head .dot.doing { background: var(--lagoon); }
.col-head .dot.done { background: var(--ok); }
.tcard { background: var(--card); border: 1px solid var(--line); border-radius: 13px; padding: 11px 12px; margin-bottom: 8px; cursor: grab; box-shadow: 0 1px 2px rgba(73, 54, 44, .04); display: flex; gap: 10px; align-items: flex-start; }
.tcard:hover { border-color: var(--sand); }
.tcard.dragging { opacity: .4; }
.tcard .t { font-size: 14px; font-weight: 500; line-height: 1.4; }
.tcard .tm { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; align-items: center; }
.tcard .tm .pill { font-size: 11.5px; padding: 1px 8px; }
.tcard .grow { flex: 1; min-width: 0; cursor: pointer; }
.quick-add { display: flex; gap: 8px; margin-bottom: 10px; }
.quick-add input { flex: 1; border: 1px dashed var(--sand); background: var(--card); border-radius: 11px; padding: 8px 11px; outline: none; font-size: 14px; }
.quick-add input:focus { border-style: solid; border-color: var(--lagoon); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.chip { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 5px 13px; font-size: 13.5px; font-weight: 500; color: var(--ink); display: inline-flex; gap: 6px; align-items: center; }
.chip.on { background: var(--cocoa); color: var(--white); border-color: var(--cocoa); }
.chip .av { width: 18px; height: 18px; font-size: 10px; }

/* ---------- decisions ---------- */
.dec-list { display: grid; gap: 14px; }
.dec { padding: 20px 22px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; }
.dec .dq { font: 600 18px/1.35 var(--head); color: var(--cocoa); }
.dec .ctx { color: var(--ink); margin: 6px 0 0; font-size: 14.5px; }
.dec .opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.dec .opts .chip { cursor: pointer; }
.dec .answer { margin-top: 14px; display: flex; gap: 8px; align-items: flex-start; }
.dec .answer textarea { min-height: 44px; }
.dec.decided { background: linear-gradient(180deg, #F3FBFD, #fff 60%); border-color: #CBEAF2; }
.dec .verdict { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--lagoon-soft); color: #0f4f61; font-weight: 500; }
.dec .vmeta { font-size: 12.5px; color: var(--muted); margin-top: 8px; display: flex; gap: 10px; align-items: center; }
.dec-new { padding: 18px; display: grid; gap: 10px; }

/* ---------- files ---------- */
.dropzone { border: 1.5px dashed var(--sand); border-radius: var(--r); padding: 22px; text-align: center; color: var(--muted); background: var(--cream-2); margin-bottom: 18px; transition: background .15s, border-color .15s; }
.dropzone.over { background: var(--lagoon-soft); border-color: var(--lagoon); color: var(--lagoon-ink); }
.dropzone .acts { display: flex; gap: 8px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.fcard { overflow: hidden; display: flex; flex-direction: column; cursor: pointer; transition: box-shadow .15s, transform .15s; position: relative; }
.fcard:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.fcard .thumb { aspect-ratio: 4 / 3; background: center/cover no-repeat var(--cream); display: grid; place-items: center; }
.fcard .ftype { width: 64px; height: 76px; border-radius: 10px; background: var(--white); box-shadow: var(--shadow); display: grid; place-items: center; font: 700 13px var(--head); letter-spacing: .04em; color: var(--cocoa); position: relative; }
.fcard .ftype::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 12px; height: 5px; border-radius: 3px; background: var(--c, var(--sand)); }
.fcard .fbody { padding: 12px 14px 14px; }
.fcard .fname { font-weight: 500; font-size: 14px; word-break: break-word; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fcard .fnote { font-size: 12.5px; color: var(--muted); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fcard .fmeta { font-size: 11.5px; color: var(--muted); margin-top: 8px; }
.fcard .x { position: absolute; top: 8px; right: 8px; opacity: 0; background: rgba(252, 250, 246, .92); }
.fcard:hover .x { opacity: 1; }
.subhead { font: 600 15px var(--head); color: var(--cocoa); margin: 26px 0 12px; display: flex; gap: 8px; align-items: center; }

/* ---------- trackers ---------- */
.tbl-tools { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.tbl-tools .field { max-width: 280px; padding: 7px 12px; }
.tbl-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); max-height: 72vh; }
table.tbl { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13.5px; }
.tbl th { position: sticky; top: 0; background: var(--cream-2); text-align: left; font: 600 12px var(--body); letter-spacing: .03em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; z-index: 1; }
.tbl td { border-bottom: 1px solid var(--cream); padding: 0; vertical-align: top; }
.tbl tr:hover td { background: #FFFDF9; }
.tbl .cell { padding: 9px 12px; min-width: 150px; max-width: 340px; outline: none; min-height: 38px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tbl .cell.long { min-width: 260px; }
.tbl .cell:focus { display: block; background: var(--lagoon-soft); box-shadow: inset 0 0 0 1.5px var(--lagoon); border-radius: 4px; }
.tbl .cell.money { text-align: right; font-variant-numeric: tabular-nums; min-width: 100px; white-space: nowrap; }
.tbl td.first .cell { font-weight: 500; color: var(--cocoa); min-width: 180px; }
.tbl select.pillsel { appearance: none; -webkit-appearance: none; border: 0; border-radius: 999px; padding: 3px 12px; font-size: 12.5px; font-weight: 500; margin: 8px 10px; cursor: pointer; background: var(--cream); color: var(--cocoa); }
.tbl .urlcell { display: flex; align-items: center; gap: 6px; padding: 9px 12px; max-width: 240px; }
.tbl .urlcell a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl .rowx { opacity: 0; border: 0; background: none; color: var(--muted); padding: 9px 8px; }
.tbl tr:hover .rowx { opacity: 1; }
.tbl tfoot td { position: sticky; bottom: 0; background: var(--cream-2); font-weight: 600; color: var(--cocoa); padding: 10px 12px; border-top: 1px solid var(--line); white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.tbl tfoot td.lbl { text-align: left; }
.ps-0 { background: var(--cream) !important; color: var(--cocoa) !important; }
.ps-1 { background: var(--lagoon-soft) !important; color: var(--lagoon-ink) !important; }
.ps-2 { background: #F6E7D3 !important; color: #8A5520 !important; }
.ps-3 { background: #E3EFE5 !important; color: #3D6B4A !important; }
.ps-4 { background: #EDE3F3 !important; color: #6A4A80 !important; }
.ps-5 { background: #EFE9E3 !important; color: #8B7B6D !important; }

/* ---------- modal, palette, toast ---------- */
.backdrop { position: fixed; inset: 0; background: rgba(48, 45, 41, .38); backdrop-filter: blur(3px); z-index: 50; display: grid; place-items: center; padding: 20px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); width: min(560px, 100%); max-height: 90vh; overflow: auto; padding: 26px 28px; animation: pop .18s; }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }
.modal.wide { width: min(1100px, 100%); height: 88vh; padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.modal .mh { display: flex; align-items: center; gap: 10px; justify-content: space-between; margin-bottom: 16px; }
.modal.wide .mh { padding: 14px 18px; margin: 0; border-bottom: 1px solid var(--line); }
.modal.wide .mh h3 { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal.wide iframe, .modal.wide .pv { flex: 1; border: 0; width: 100%; background: var(--cream-2); }
.modal.wide .pv { display: grid; place-items: center; padding: 18px; overflow: auto; }
.modal.wide .pv img { max-height: 100%; border-radius: 12px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid label, .form-col label { display: grid; gap: 5px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.form-col { display: grid; gap: 12px; }
.title-input { font: 600 22px var(--head); color: var(--cocoa); border: 0; background: none; outline: none; width: 100%; padding: 0; }
.palette { width: min(640px, 100%); padding: 0; align-self: start; margin-top: 10vh; }
.palette input { width: 100%; border: 0; border-bottom: 1px solid var(--line); padding: 18px 22px; font-size: 17px; outline: none; background: none; }
.palette .res { max-height: 56vh; overflow: auto; padding: 8px; }
.palette .grp { font: 600 11px var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 10px 12px 4px; }
.palette .row.sel { background: var(--lagoon-soft); }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--cocoa); color: var(--white); padding: 10px 18px; border-radius: 12px; font-size: 14px; z-index: 60; box-shadow: var(--shadow-lg); animation: pop .2s; }
.menu { position: fixed; z-index: 55; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; min-width: 200px; }
.menu button { display: flex; width: 100%; gap: 10px; align-items: center; border: 0; background: none; padding: 9px 12px; border-radius: 9px; text-align: left; font-size: 14px; }
.menu button:hover { background: var(--cream); }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
.login .lp { background: var(--cream); padding: 56px; display: flex; flex-direction: column; }
.login .lp .wordmark { font-size: 72px; }
.login .lp h2 { font-size: 30px; margin: auto 0 8px; }
.login .lp p { color: var(--muted); margin: 0 0 22px; }
.login .who-pick { display: flex; gap: 12px; margin-bottom: 16px; }
.login .who-pick button { flex: 1; border: 1.5px solid var(--sand-2); background: var(--white); border-radius: 16px; padding: 16px; display: flex; align-items: center; gap: 12px; font: 600 17px var(--head); color: var(--cocoa); }
.login .who-pick button.on { border-color: var(--cocoa); box-shadow: 0 0 0 3px rgba(73, 54, 44, .08); }
.login .err { color: #9b3b2b; font-size: 14px; min-height: 20px; margin-top: 8px; }
.login .lf { margin-top: auto; padding-top: 32px; font: 500 15px var(--head); color: var(--cocoa); }
.login .li { background: url(img/cover-hero.jpg) center/cover; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; z-index: 40; left: 0; top: 0; width: 280px; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  body.nav-open .side { transform: none; }
  .topbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--cream); position: sticky; top: 0; z-index: 30; }
  .topbar .wordmark { font-size: 28px; }
  .main { padding: 20px 16px 60px; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero .img { min-height: 190px; order: -1; }
  .hero .txt { padding: 26px 22px; }
  .hero h1 { font-size: 34px; }
  .two, .board, .cat-grid, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .cat-head { margin-left: 14px; }
  .cat-title { font-size: 30px; }
  .cover-banner { height: 160px; }
  .pinned { padding: 22px 18px; }
  .pinned-head { flex-direction: column; align-items: flex-start; }
  .pinned-head h2 { font-size: 22px; }
  .login { grid-template-columns: minmax(0, 1fr); }
  .login .li { display: none; }
  .login .lp { padding: 34px 22px; min-height: 100vh; }
  .dec { grid-template-columns: minmax(0, 1fr); }
  .dec .dot-q { display: none; }
}

/* ---------- previews, google embeds, drag to move ---------- */
.mh-acts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.pv-note { padding: 8px 18px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); background: var(--white); }
.modal.wide .pv.pv-doc, .modal.wide .pv.pv-sheet { display: block; padding: 24px; }
.doc-sheet { max-width: 820px; margin: 0 auto; background: var(--card); border-radius: 14px; box-shadow: var(--shadow); padding: 44px 52px; }
.doc-sheet img { max-width: 100%; height: auto; }
.doc-sheet table { border-collapse: collapse; margin: 1em 0; }
.doc-sheet td, .doc-sheet th { border: 1px solid var(--line); padding: 6px 10px; }
.sheet-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.sheet-wrap { overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); max-height: calc(88vh - 150px); }
.sheet-wrap table { border-collapse: collapse; font-size: 13px; }
.sheet-wrap td { border: 1px solid var(--cream); padding: 6px 10px; white-space: nowrap; max-width: 360px; overflow: hidden; text-overflow: ellipsis; }
.sheet-wrap tr:first-child td { background: var(--cream-2); font-weight: 600; color: var(--cocoa); position: sticky; top: 0; }
.fcard .ftype.g { font-size: 11px; color: #fff; background: var(--c); }
.fcard .ftype.g::after { background: rgba(255, 255, 255, .55); }
.fcard .thumb { position: relative; }
.gbadge { position: absolute; left: 10px; bottom: 10px; font-size: 11px; font-weight: 600; background: var(--white); color: var(--cocoa); padding: 2px 8px; border-radius: 999px; box-shadow: var(--shadow); }
body.dragging-item .nav a[data-drop-cat] { outline: 1.5px dashed var(--sand); outline-offset: -2px; }
.nav a.drop-hover { background: var(--lagoon-soft) !important; outline: 2px solid var(--lagoon) !important; color: var(--lagoon-ink); }
@media (max-width: 860px) { .doc-sheet { padding: 24px 18px; } .modal.wide .pv.pv-doc, .modal.wide .pv.pv-sheet { padding: 12px; } }
.prose table { border-collapse: collapse; margin: 1em 0; width: 100%; font-size: 14.5px; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 12px; vertical-align: top; }
.prose tr:first-child td, .prose th { background: var(--cream-2); font-weight: 600; color: var(--cocoa); }
.prose td p, .prose th p { margin: 0; }
.modal.wide .pv.pv-sheet { overflow: hidden; display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.pv-sheet .sheet-wrap { width: 100%; min-width: 0; flex: 1; max-height: none; }
.avs { display: inline-flex; flex: none; }
.avs .av + .av { margin-left: -8px; box-shadow: 0 0 0 2px var(--card); }
.owner-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.owner-pick .chip { padding: 6px 14px 6px 6px; color: var(--ink); }
.owner-pick .chip.on { background: var(--cocoa); color: var(--white); border-color: var(--cocoa); }
.field-group { display: grid; gap: 5px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
