@font-face { font-family: "Atkinson"; font-weight: 400; src: url(/ui/fonts/atkinson-hyperlegible-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122; font-display: swap; }
@font-face { font-family: "Atkinson"; font-weight: 700; src: url(/ui/fonts/atkinson-hyperlegible-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122; font-display: swap; }
@font-face { font-family: "Atkinson"; font-weight: 400; src: url(/ui/fonts/atkinson-hyperlegible-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; font-display: swap; }
@font-face { font-family: "Atkinson"; font-weight: 700; src: url(/ui/fonts/atkinson-hyperlegible-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; font-display: swap; }
@font-face { font-family: "Fraunces"; font-weight: 100 900; src: url(/ui/fonts/fraunces-latin-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122; font-display: swap; }
@font-face { font-family: "Fraunces"; font-weight: 100 900; src: url(/ui/fonts/fraunces-latin-ext-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; font-display: swap; }

:root {
  --paper: #F3F5F2; --surface: #FFFFFF; --ink: #1B2326; --muted: #5C696C; --line: #D8DFDB; --line-soft: #E8EDEA;
  --pine: #17463F; --pine-deep: #0F332E; --pine-soft: #E2EEEA; --on-pine: #E9F1EE; --on-pine-muted: #9DBBB3;
  --saffron: #B87A00; --saffron-soft: #FBEFD0; --saffron-mark: #E3A82B;
  --madder: #A3302F; --madder-soft: #F6E0DE; --ok: #2F6F4C; --ok-soft: #DDEEE4;
  --ui: "Atkinson", "Segoe UI", system-ui, sans-serif; --serif: "Fraunces", Georgia, serif;
  --focus: 0 0 0 3px #fff, 0 0 0 5px #2B6CB0;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #11191A; --surface: #182224; --ink: #E6EDEA; --muted: #98A8A9; --line: #2C3A3C; --line-soft: #243032;
    --pine: #1E5A51; --pine-deep: #0B1617; --pine-soft: #1B3A35; --saffron: #E3A82B; --saffron-soft: #3A2E10; --madder: #E26A68; --madder-soft: #3C2220; --ok: #6FC293; --ok-soft: #1B3527; }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 var(--ui); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; font-weight: 600; }
h1 { font-family: var(--serif); font-size: 2rem; line-height: 1.15; letter-spacing: -0.01em; font-variation-settings: "SOFT" 50, "opsz" 72; }
h2 { font-size: 1.05rem; }
a { color: var(--pine); text-underline-offset: 3px; } @media (prefers-color-scheme: dark) { a { color: #8FD0C2; } }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* shell */
.shell { display: grid; grid-template-columns: 17rem minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--pine-deep); color: var(--on-pine); padding: 1.25rem 0 1.5rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: .6rem; padding: 0 1.25rem 1.25rem; font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: #fff; text-decoration: none; }
.brand svg { width: 1.7rem; height: 1.7rem; }
.nav h3 { font-size: .8rem; font-weight: 700; color: var(--on-pine-muted); padding: 1.1rem 1.25rem .35rem; letter-spacing: .01em; }
.nav a { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .45rem 1.25rem; color: var(--on-pine); text-decoration: none; border-left: 3px solid transparent; }
.nav a:hover { background: rgba(255,255,255,.06); }
.nav a[aria-current="page"] { background: rgba(255,255,255,.1); border-left-color: var(--saffron-mark); font-weight: 700; }
.nav .badge { background: var(--saffron-mark); color: #2A1C00; border-radius: 99px; font-size: .78rem; font-weight: 700; padding: 0 .5rem; min-width: 1.4rem; text-align: center; }
.main { min-width: 0; }
.top { display: flex; gap: 1rem; align-items: center; padding: .75rem 2rem; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 5; }
.jump { flex: 1; max-width: 32rem; display: flex; align-items: center; gap: .6rem; border: 1px solid var(--line); background: var(--paper); border-radius: 8px; padding: .45rem .8rem; color: var(--muted); cursor: pointer; text-align: left; }
.jump kbd { margin-left: auto; font: inherit; font-size: .8rem; border: 1px solid var(--line); border-radius: 4px; padding: 0 .35rem; background: var(--surface); }
.who { margin-left: auto; display: flex; gap: .8rem; align-items: center; font-size: .95rem; }
.who button { background: none; border: 0; color: var(--pine); text-decoration: underline; cursor: pointer; padding: 0; } @media (prefers-color-scheme: dark) { .who button { color: #8FD0C2; } }
.testbar { background: var(--saffron-soft); color: var(--saffron); text-align: center; padding: .25rem; font-weight: 700; font-size: .9rem; }
.menu-btn { display: none; }
.page { padding: 1.75rem 2rem 4rem; max-width: 78rem; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.page-head p { margin: .35rem 0 0; color: var(--muted); max-width: 60ch; }
.crumb { font-size: .95rem; margin-bottom: .35rem; }

/* controls */
.btn { display: inline-flex; align-items: center; gap: .4rem; background: var(--pine); color: #fff; border: 1px solid var(--pine); border-radius: 7px; padding: .5rem .95rem; cursor: pointer; text-decoration: none; font-weight: 700; }
.btn:hover { background: var(--pine-deep); } .btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.quiet { background: transparent; color: var(--pine); } .btn.quiet:hover { background: var(--pine-soft); }
@media (prefers-color-scheme: dark) { .btn.quiet { color: #8FD0C2; } .btn { color: #fff; } }
.btn.danger { background: var(--madder); border-color: var(--madder); }
.field { display: grid; gap: .3rem; margin-bottom: .9rem; } .field label { font-weight: 700; font-size: .95rem; }
.field input, .field select, .field textarea { border: 1px solid var(--line); background: var(--surface); border-radius: 7px; padding: .55rem .7rem; width: 100%; }
.filters { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.filters input, .filters select { border: 1px solid var(--line); background: var(--surface); border-radius: 7px; padding: .45rem .7rem; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: none; padding: .4rem .9rem; cursor: pointer; } .seg button[aria-pressed="true"] { background: var(--pine); color: #fff; font-weight: 700; }

/* tables */
.tablewrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; }
th { text-align: left; font-weight: 700; font-size: .92rem; color: var(--muted); padding: .65rem .9rem; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface); position: sticky; top: 0; }
td { padding: .6rem .9rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tbody tr[data-href] { cursor: pointer; } tbody tr[data-href]:hover { background: var(--pine-soft); }
td.r, th.r { text-align: right; }
.empty { padding: 2.2rem 1.2rem; color: var(--muted); }
.empty strong { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: .2rem; }

/* status */
.tag { display: inline-block; border-radius: 5px; padding: 0 .5rem; font-size: .88rem; font-weight: 700; background: var(--line-soft); color: var(--muted); }
.tag.ok { background: var(--ok-soft); color: var(--ok); } .tag.warn { background: var(--saffron-soft); color: var(--saffron); } .tag.bad { background: var(--madder-soft); color: var(--madder); }

/* Today: ruled worklists instead of cards */
.today { display: grid; grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); gap: 2.2rem 3rem; }
.work h2 { display: flex; align-items: baseline; gap: .6rem; padding-bottom: .5rem; border-bottom: 2px solid var(--ink); }
.work h2 .n { font-family: var(--serif); font-size: 1.7rem; line-height: 1; font-weight: 600; }
.work ul { list-style: none; margin: 0; padding: 0; }
.work li a { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.work li a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.work .none { padding: .8rem 0; color: var(--muted); }

/* detail */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.1rem 2rem; margin: 0 0 2rem; }
.facts dt { font-size: .9rem; color: var(--muted); } .facts dd { margin: 0; font-weight: 700; font-size: 1.05rem; }
.section { margin-top: 2.2rem; } .section > h2 { margin-bottom: .7rem; }
.totals { margin-left: auto; width: min(22rem, 100%); margin-top: 1rem; } .totals div { display: flex; justify-content: space-between; padding: .3rem 0; } .totals .grand { border-top: 2px solid var(--ink); font-weight: 700; font-family: var(--serif); font-size: 1.25rem; margin-top: .3rem; padding-top: .5rem; }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; }

/* the lot chain: where this lot came from and where it went */
.chain { display: flex; align-items: stretch; gap: 0; overflow-x: auto; padding: .4rem 0 1rem; }
.chain .link { display: flex; align-items: center; color: var(--muted); padding: 0 .35rem; }
.chain .link svg { width: 2.2rem; height: 1rem; }
.tagnode { position: relative; min-width: 11.5rem; background: var(--surface); border: 1.5px solid var(--ink); border-radius: 4px 12px 12px 4px; padding: .65rem .9rem .65rem 1.7rem; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.tagnode::before { content: ""; position: absolute; left: .6rem; top: 50%; width: .55rem; height: .55rem; margin-top: -.275rem; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); }
.tagnode.here { background: var(--pine); color: #fff; border-color: var(--pine); } .tagnode.here::before { background: var(--saffron-mark); border-color: var(--saffron-mark); }
.tagnode small { display: block; color: var(--muted); } .tagnode.here small { color: var(--on-pine-muted); }
.tagnode b { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; }
.chain-col { display: grid; gap: .5rem; align-content: center; }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: var(--pine-deep); }
.login form { background: var(--surface); border-radius: 12px; padding: 2rem; width: min(26rem, 100%); }
.login h1 { margin-bottom: .3rem; } .login p { margin: 0 0 1.4rem; color: var(--muted); }
.err { background: var(--madder-soft); color: var(--madder); border-radius: 7px; padding: .6rem .8rem; margin-bottom: 1rem; font-weight: 700; }
.toast { position: fixed; bottom: 1.2rem; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: .6rem 1rem; border-radius: 8px; z-index: 30; }

/* quick jump */
dialog.palette { border: 1px solid var(--line); border-radius: 12px; padding: 0; width: min(34rem, 92vw); margin-top: 10vh; background: var(--surface); color: var(--ink); box-shadow: 0 24px 60px rgba(0,0,0,.28); }
dialog.palette::backdrop { background: rgba(10,22,20,.45); }
.palette input { width: 100%; border: 0; border-bottom: 1px solid var(--line); padding: 1rem 1.1rem; font-size: 1.1rem; background: transparent; }
.palette ul { list-style: none; margin: 0; padding: .4rem; max-height: 22rem; overflow-y: auto; }
.palette li a { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem .7rem; border-radius: 6px; text-decoration: none; color: inherit; }
.palette li a[aria-selected="true"], .palette li a:hover { background: var(--pine-soft); }

@media (max-width: 52rem) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; inset: 0 auto 0 0; width: 17rem; transform: translateX(-100%); z-index: 20; transition: transform .18s; } .side.open { transform: none; }
  .menu-btn { display: inline-flex; background: none; border: 1px solid var(--line); border-radius: 7px; padding: .4rem .7rem; cursor: pointer; }
  .top, .page { padding-left: 1rem; padding-right: 1rem; } .who span { display: none; } .jump kbd { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* inbox */
.tabs { display: flex; gap: .25rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.tabs button { border: 0; background: none; padding: .55rem .9rem; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; display: inline-flex; gap: .45rem; align-items: center; }
.tabs button[aria-selected="true"] { border-bottom-color: var(--saffron-mark); font-weight: 700; }
.tabs .n { background: var(--pine-soft); border-radius: 99px; padding: 0 .5rem; font-size: .82rem; font-weight: 700; }
.tabs button[aria-selected="true"] .n { background: var(--pine); color: #fff; }
.mlist { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.mrow { display: grid; grid-template-columns: 13rem minmax(0, 1fr) auto; gap: .9rem; align-items: baseline; padding: .6rem .9rem; border-bottom: 1px solid var(--line-soft); color: inherit; text-decoration: none; }
.mrow:last-child { border-bottom: 0; } .mrow:hover { background: var(--pine-soft); }
.mrow.unread { font-weight: 700; background: color-mix(in srgb, var(--saffron-soft) 45%, var(--surface)); }
.mfrom, .msubj { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mmain { display: flex; gap: .3rem; align-items: baseline; min-width: 0; overflow: hidden; white-space: nowrap; }
.msubj { flex: 0 1 auto; } .msnip { font-weight: 400; color: var(--muted); overflow: hidden; text-overflow: ellipsis; flex: 1 1 0; min-width: 0; }
.mmeta { display: flex; gap: .4rem; align-items: baseline; justify-content: flex-end; font-weight: 400; }
.mdate { color: var(--muted); font-size: .9rem; min-width: 3.4rem; text-align: right; }
.chip { display: inline-flex; align-items: center; gap: .25rem; border-radius: 5px; padding: 0 .45rem; font-size: .8rem; font-weight: 700; line-height: 1.5; white-space: nowrap; flex: none; }
.chip-x { border: 0; background: none; color: inherit; cursor: pointer; padding: 0 .1rem; font-size: 1rem; line-height: 1; opacity: .75; } .chip-x:hover { opacity: 1; }
.statusrow { display: flex; gap: .4rem; margin-bottom: .8rem; }
.panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 1.2rem 2.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.2rem; margin: 1.1rem 0; }
.panel h2 { margin-bottom: .5rem; }
.labelrow { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.inline { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.inline input, .inline select, .plain { border: 1px solid var(--line); background: var(--surface); border-radius: 7px; padding: .4rem .6rem; }
input.plain { border-color: transparent; background: transparent; width: 100%; } input.plain:hover, input.plain:focus { border-color: var(--line); background: var(--surface); }
.check { display: block; margin-top: .7rem; }
.msg { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem; margin-bottom: .8rem; }
.msg.out { background: var(--pine-soft); border-color: transparent; }
.msg header { display: flex; gap: .3rem; flex-wrap: wrap; align-items: baseline; margin-bottom: .5rem; } .msg header .mdate { margin-left: auto; }
.body { white-space: pre-wrap; overflow-wrap: anywhere; }
.draft { background: var(--surface); border: 1px dashed var(--line); border-radius: 10px; padding: .8rem 1rem; margin-bottom: .8rem; display: grid; gap: .5rem; }
.draftform { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1rem; max-width: 46rem; }
.row2 { display: grid; grid-template-columns: 1fr 10rem; gap: 1rem; }
tr.dim td { opacity: .6; }
@media (max-width: 52rem) { .mrow { grid-template-columns: 1fr auto; } .mmain { grid-column: 1 / -1; grid-row: 2; } .row2 { grid-template-columns: 1fr; } }

.filters input[type=search] { min-width: 18rem; }

/* mail settings */
.mailcard { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .2rem 2rem; }
.mailcard .fullrow { grid-column: 1 / -1; }
.mailcard .field small { font-size: .85rem; }
.folders { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.folders p { flex-basis: 100%; margin: .2rem 0; }
.btn.small { padding: .15rem .6rem; font-weight: 400; }
.ok { color: var(--ok); font-weight: 700; } .bad { color: var(--madder); font-weight: 700; }
.guide { padding-left: 1.3rem; display: grid; gap: .9rem; max-width: 52rem; }
.guide pre, pre.cmd, .cmd { background: var(--ink); color: var(--paper); border-radius: 7px; padding: .5rem .8rem; overflow-x: auto; margin: .4rem 0; font-size: .92rem; }
.syncline { margin: -.6rem 0 1rem; font-size: .92rem; display: flex; gap: .8rem; flex-wrap: wrap; }
.statusrow { flex-wrap: wrap; }
@media (max-width: 52rem) { .mailcard { grid-template-columns: 1fr; } }
details.guide{margin:12px 0;padding:10px 16px;background:#fff;border:1px solid var(--line,#dcdfd9);border-radius:10px}
details.guide>summary{cursor:pointer;font-weight:700;padding:4px 0}
.who .syncbtn{background:var(--pine,#1a4a40);color:#fff;border:0;border-radius:8px;padding:.35rem .8rem;text-decoration:none;cursor:pointer;font:inherit;font-weight:600}
.who .syncbtn:disabled{opacity:.75;cursor:progress}

/* ---- CRM (stage 2): leads, board, tasks, import ---- */
dialog.modal { border: 1px solid var(--line); border-radius: 10px; padding: 1.2rem 1.4rem; max-width: min(680px, 94vw); width: 100%; background: var(--surface); color: var(--ink); }
dialog.modal::backdrop { background: rgba(15, 51, 46, .5); }
dialog.modal h2 { margin-top: 0; }
dialog.modal .actions { margin-top: 1rem; display: flex; gap: .5rem; justify-content: flex-end; }
.btn.small { padding: .2rem .6rem; font-size: .85rem; }
.bulkbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; padding: .55rem .8rem; margin: .5rem 0; background: var(--pine-soft); border-radius: 8px; position: sticky; top: 0; z-index: 5; }
.bulkbar[hidden] { display: none; }
.notice { background: var(--saffron-soft); border: 1px solid var(--saffron-mark); border-radius: 8px; padding: .55rem .8rem; margin: .5rem 0; }
.pick { position: relative; display: inline-block; }
.pick > summary { cursor: pointer; padding: .35rem .7rem; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); list-style: none; }
.pickbody { position: absolute; z-index: 20; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: .6rem; max-height: 20rem; overflow: auto; min-width: 15rem; box-shadow: 0 6px 18px rgba(0, 0, 0, .15); display: flex; flex-direction: column; gap: .3rem; }
.pager { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; margin: .6rem 0; }
table.leads tr.sel { background: var(--pine-soft); }
tr.dim { opacity: .5; }
th.sortable button { all: unset; cursor: pointer; font-weight: inherit; }
.chip.flt { background: var(--line-soft); color: var(--ink); }
.chip-x { all: unset; cursor: pointer; margin-left: .35rem; font-weight: 700; }
.labelrow.inl { display: inline-flex; }
.statusrow { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin: .3rem 0 .8rem; }
ul.tasks { list-style: none; padding: 0; margin: .4rem 0; }
ul.tasks li { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .3rem 0; border-bottom: 1px solid var(--line-soft); }
ul.tasks.wide li { display: grid; grid-template-columns: minmax(12rem, 3fr) 2fr 1fr 6rem 2rem; }
ul.tasks li.done span { text-decoration: line-through; color: var(--muted); }
ul.tl { list-style: none; padding: 0; }
ul.tl li { padding: .4rem 0; border-bottom: 1px solid var(--line-soft); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
td.clip { max-width: 22rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.multi { display: flex; flex-wrap: wrap; gap: .4rem .9rem; }
.mwrap { display: flex; align-items: stretch; }
.mwrap .mrow { flex: 1; }
.msel { margin: 0 .3rem 0 .6rem; align-self: center; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: .8rem; overflow-x: auto; padding-bottom: .8rem; }
.col { background: var(--line-soft); border-radius: 10px; padding: .6rem; min-height: 12rem; }
.col.over { outline: 2px dashed var(--pine); }
.col > header { display: flex; justify-content: space-between; text-transform: capitalize; margin-bottom: .5rem; }
.cards { display: flex; flex-direction: column; gap: .5rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: .55rem .65rem; display: flex; flex-direction: column; gap: .3rem; cursor: grab; }
.card.drag { opacity: .4; }
.card .ctitle { font-weight: 600; }
.card .cmeta { display: flex; justify-content: space-between; gap: .5rem; }
.card select { font-size: .8rem; }
.overdue { color: var(--madder); font-weight: 600; }
.cols2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; }
table.bars td { padding: .2rem .4rem; }
td.barcell { width: 50%; }
.bar { display: block; height: .7rem; background: var(--pine); border-radius: 3px; }
ul.notes { margin: .4rem 0; padding-left: 1.2rem; color: var(--saffron); }
.err { background: var(--madder-soft); border: 1px solid var(--madder); border-radius: 8px; padding: .6rem .8rem; }
@media (max-width: 700px) { ul.tasks.wide li { grid-template-columns: 1fr auto; } .board { grid-auto-columns: 85%; } }
.main-col { min-width: 0; }
table.leads td { vertical-align: top; }
table.leads td a { overflow-wrap: anywhere; }
