:root {
  --bg: #fafafa; --panel: #ffffff; --ink: #18181b; --ink-2: #27272a; --muted: #52525b; --faint: #a1a1aa; --line: #e4e4e7; --line-2: #d4d4d8;
  --side: #f4f4f5; --side-2: #e4e4e7; --side-ink: #3f3f46; --side-muted: #71717a; --gold: #18181b; --gold-2: #27272a;
  --accent: #18181b; --accent-ink: #fff; --danger: #dc2626; --ok: #16a34a; --warn: #d97706; --soft: #f4f4f5; --soft-2: #e4e4e7; --blue: #2563eb;
  --radius: 10px; --shadow: 0 1px 2px rgba(0,0,0,.04); --shadow-lg: 0 10px 40px -10px rgba(0,0,0,.25);
  --todo: #8A8D93; --in_progress: #2F6FD6; --in_review: #7C3AED; --done: #2E7D4F;
  --st-tentative: #D4D2CC; --st-confirmed: #F2C94C; --st-in_progress: #5B8DEF; --st-completed: #4CAF70; --st-cancelled: #E08A82;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); font: 13.5px/1.45 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.012em; }
.hidden { display: none !important; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 12px; } .nowrap { white-space: nowrap; }
.row { display: flex; align-items: center; gap: 8px; } .row.wrap { flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.grow { flex: 1; min-width: 0; } .stack { display: flex; flex-direction: column; gap: 8px; }
svg.i { width: 16px; height: 16px; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Buttons & inputs */
.btn { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 9px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font-weight: 500; white-space: nowrap; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--soft); border-color: #CBC7BE; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { background: #2a2d33; }
.btn.gold { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }
.btn.gold:hover { background: #27272a; }
.btn.danger { color: var(--danger); border-color: #EBC4C0; } .btn.danger:hover { background: #FBF0EF; }
.btn.ghost { border-color: transparent; background: transparent; } .btn.ghost:hover { background: var(--soft); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; }
.btn.icon { width: 34px; padding: 0; justify-content: center; } .btn.icon.sm { width: 28px; }
.btn[disabled] { opacity: .5; cursor: default; }
.input, select.input, textarea.input { width: 100%; height: 36px; padding: 0 11px; border: 1px solid var(--line-2); border-radius: 9px; background: #fff; outline: none; transition: border-color .12s, box-shadow .12s; }
textarea.input { height: auto; min-height: 84px; padding: 9px 11px; resize: vertical; line-height: 1.45; }
.input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(22,24,28,.08); }
select.input { appearance: none; -webkit-appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236E7178' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.input.sm, select.input.sm { height: 31px; font-size: 13px; padding: 0 9px; border-radius: 8px; }
label.field, div.field { display: block; font-size: 12.5px; color: var(--muted); font-weight: 500; }
label.field > .input, label.field > .sel, label.field > .row, label.field > div, div.field > .input, div.field > .row, div.field > .imgdrop, div.field > .radios, div.field > div { margin-top: 5px; }
label.field > .input, label.field > select, label.field > textarea { color: var(--ink); font-weight: 400; font-size: 14px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 400; color: var(--ink); font-size: 14px; }
.check input { width: 16px; height: 16px; accent-color: var(--ink); margin: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: 12.5px; font-weight: 500; cursor: pointer; user-select: none; transition: all .12s; }
.chip:hover { border-color: #CBC7BE; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, #888); }
.chip.on .dot { outline: 2px solid rgba(255,255,255,.55); }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 21px; padding: 0 8px; border-radius: 6px; font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; background: var(--soft-2); color: var(--muted); white-space: nowrap; }
.tag.loc { color: #fff; background: var(--c, #333); flex: 0 0 auto; }
.tag.loc::before { display: none; }
.tag.cat { background: var(--soft); color: var(--muted); }
.tag.tentative { background: #ECEAE5; color: #6E7178; }
.tag.confirmed { background: #FBEEBF; color: #7D5A00; }
.tag.in_progress { background: #DCE8FB; color: #2456B3; }
.tag.completed { background: #DCF1E3; color: #1F6B40; }
.tag.cancelled { background: #FBE7E4; color: var(--danger); }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.tag.loc::before, .tag.cat::before { display: none; }
.spill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 4px; border: 0; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; cursor: pointer; line-height: 1; }
.spill.md { height: 26px; padding: 0 10px; font-size: 11px; }
.spill:hover { filter: brightness(1.06); }
.sel { display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; height: 36px; padding: 0 10px 0 11px; border: 1px solid var(--line-2); border-radius: 9px; background: #fff; color: var(--ink); text-align: left; font-weight: 400; transition: border-color .12s, box-shadow .12s; }
.sel.sm { height: 31px; font-size: 13px; padding: 0 8px 0 9px; border-radius: 8px; }
.sel.auto { width: auto; }
.sel:hover { border-color: #b8b8bf; } .sel:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(22,24,28,.08); }
.sel[disabled] { opacity: .6; cursor: default; }
.sel .sv { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sel .sv.ph { color: var(--faint); }
.sel svg.i { color: var(--muted); width: 14px; height: 14px; }
.spop .opt .ol { font-size: 13.5px; }
.spop { position: fixed; z-index: 300; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 4px; min-width: 170px; max-height: 320px; overflow-y: auto; animation: pop .12s ease-out; }
.spop .opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.spop .opt:hover, .spop .opt.on { background: var(--soft); }
.spop .opt .spill { cursor: default; } .spop .opt svg.i { color: var(--muted); width: 14px; height: 14px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 4px; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--todo); white-space: nowrap; }
.pill.todo { background: var(--todo); } .pill.in_progress { background: var(--in_progress); } .pill.in_review { background: var(--in_review); } .pill.done { background: var(--done); }
select.status { height: 26px; padding: 0 24px 0 10px; border-radius: 999px; border: 0; color: #fff; font-size: 12px; font-weight: 600; appearance: none; -webkit-appearance: none; background-color: var(--todo); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; cursor: pointer; }
select.status.todo { background-color: var(--todo); } select.status.in_progress { background-color: var(--in_progress); } select.status.in_review { background-color: var(--in_review); } select.status.done { background-color: var(--done); }
select.status option { color: var(--ink); background: #fff; }
img.avatar { object-fit: cover; background: var(--soft-2); }
.avatar { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; background: var(--c, #555); flex: 0 0 auto; letter-spacing: .02em; }
.avatar.sm { width: 22px; height: 22px; font-size: 10px; } .avatar.lg { width: 36px; height: 36px; font-size: 13px; }
.progress { height: 6px; border-radius: 3px; background: var(--soft-2); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--done); width: var(--p, 0%); transition: width .25s; }
.due { font-variant-numeric: tabular-nums; } .due.over { color: var(--danger); font-weight: 600; } .due.soon { color: var(--warn); font-weight: 600; }
.empty { padding: 48px 20px; text-align: center; color: var(--muted); }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 7px 12px; font-size: 13.5px; } .kv > dt { color: var(--muted); } .kv > dd { margin: 0; }
.notice { padding: 10px 13px; border-radius: 9px; background: #fafafa; border: 1px solid var(--line-2); color: var(--muted); font-size: 13px; line-height: 1.45; }
.notice.err { background: #FBE7E4; border-color: #EBC4C0; color: var(--danger); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 9px; font-size: 13px; box-shadow: var(--shadow-lg); z-index: 200; opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.show { opacity: 1; }
.drv { display: inline-flex; width: 18px; height: 16px; flex: 0 0 auto; vertical-align: middle; }
.drv svg { width: 100%; height: 100%; }
.drv:not(.on) { opacity: .32; filter: saturate(.6); }
.drv.on { cursor: pointer; } .drv.on:hover { transform: scale(1.12); }
.drv.xs { width: 13px; height: 12px; margin-left: auto; } .ev .p + .drv.xs { margin-left: 4px; }
.drv.lg { width: 22px; height: 20px; }
.legend { display: inline-flex; gap: 12px; align-items: center; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* Login */
#login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: var(--bg); }
#login form { width: 380px; max-width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 30px 28px 24px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-lg); }
#login .wordmark { margin-bottom: 6px; }
#login .wordmark b { display: block; font-size: 22px; letter-spacing: .14em; font-weight: 700; }
#login .wordmark span { display: block; color: var(--muted); font-weight: 500; font-size: 13px; margin-top: 2px; }

/* Shell */
#app { min-height: 100vh; display: grid; grid-template-columns: 236px 1fr; }
.side { background: var(--side); color: var(--side-ink); display: flex; flex-direction: column; padding: 14px 10px; position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 9px; padding: 4px 8px 16px; color: var(--ink); }
.brand .mark { width: 26px; height: 26px; border-radius: 8px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 11px; letter-spacing: .04em; }
.brand b { display: block; font-size: 13.5px; letter-spacing: -.01em; font-weight: 600; line-height: 1.1; }
.brand span { display: block; font-size: 11px; color: var(--side-muted); font-weight: 500; margin-top: 2px; }
.side nav { display: flex; flex-direction: column; gap: 1px; }
.navgroup .ngh { display: flex; align-items: center; gap: 6px; width: 100%; border: 0; background: none; padding: 6px 9px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); text-align: left; }
.navgroup .ngh svg.i { width: 13px; height: 13px; transition: transform .15s; }
.navgroup.closed .ngh svg.i { transform: rotate(-90deg); }
.navgroup.closed .ngi { display: none; }
.navgroup .ngi { display: flex; flex-direction: column; gap: 1px; padding-left: 6px; }
.nnew { display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 9px; border-radius: 7px; border: 0; background: none; color: var(--ink); font-weight: 600; font-size: 13.5px; text-align: left; margin-top: 4px; }
.nnew:hover { background: var(--ink); color: #fff; }
.nnew svg.i { width: 16px; height: 16px; }
.side nav a { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 7px; text-decoration: none; color: var(--side-ink); font-weight: 500; font-size: 13.5px; position: relative; }
.side nav a:hover { background: rgba(0,0,0,.05); color: var(--ink); }
.side nav a.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 0 0 1px var(--line); }
.side nav a .badge { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 10.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.side .sec { margin-top: 22px; }
.side .sec.locs { margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.side .sec h5 { margin: 0 9px 6px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.side .loc { display: flex; align-items: center; gap: 9px; padding: 6px 9px; border-radius: 7px; font-size: 13px; color: var(--side-ink); cursor: pointer; font-weight: 500; }
.side .loc:hover { background: rgba(0,0,0,.05); }
.side .loc i { width: 10px; height: 10px; border-radius: 4px; background: var(--c); }
.side .loc.off { color: var(--side-muted); } .side .loc.off i { opacity: .35; }
.side .loc .n { margin-left: auto; font-size: 11px; color: var(--side-muted); }
.side .new { margin: 14px 0 2px; height: 34px; justify-content: center; }
.side .foot { margin-top: auto; }
.menu { position: relative; }
.menu .user { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 9px; background: none; color: var(--side-ink); text-align: left; }
.menu .user:hover { background: rgba(0,0,0,.05); }
.menu .user .nm { font-weight: 600; font-size: 13px; color: var(--ink); line-height: 1.2; } .menu .user .em { font-size: 11px; color: var(--side-muted); }
.menu .dd { position: absolute; left: 0; bottom: 52px; background: #fff; color: var(--ink); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow-lg); min-width: 200px; padding: 6px; z-index: 60; }
.menu .dd button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 6px; }
.menu .dd button:hover { background: var(--soft); }
.content { min-width: 0; }
main { padding: 22px 26px 40px; max-width: 1500px; width: 100%; margin: 0 auto; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 9px; overflow: hidden; background: #fff; }
.toolbar .seg button { border: 0; background: none; height: 32px; padding: 0 13px; font-weight: 500; color: var(--muted); }
.toolbar .seg button + button { border-left: 1px solid var(--line); }
.toolbar .seg button.on { background: var(--ink); color: #fff; }
.toolbar h2 { font-size: 20px; min-width: 200px; }
.subbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: -4px 0 12px; }
.subbar .seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; background: #fff; }
.subbar .seg button { border: 0; background: none; height: 30px; padding: 0 11px; font-weight: 500; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.subbar .seg button + button { border-left: 1px solid var(--line); }
.subbar .seg button.on { background: var(--ink); color: #fff; }
.subbar .btn.sm { height: 30px; }
.page-title { font-size: 22px; margin-bottom: 14px; display: flex; align-items: baseline; gap: 10px; }
.page-title span { font-size: 13px; color: var(--muted); font-weight: 500; }

/* Calendar */
.cal { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cal .head { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--line); background: #fafafa; }
.cal .head div { padding: 9px 10px; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.cal .grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal .day { min-width: 0; min-height: 124px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 7px; display: flex; flex-direction: column; gap: 3px; cursor: pointer; transition: background .12s; }
.cal .day:nth-child(7n) { border-right: 0; }
.cal .day:nth-child(7n), .cal .day:nth-child(7n+1) { background: #fcfcfc; }
.cal .day.out { background: #f8f8f8; } .cal .day.out .n { color: var(--faint); font-weight: 500; } .cal .day.out .ev { opacity: .55; }
.cal .day:hover { background: #f4f4f5; }
.cal .day.dropover { background: #eef2ff; box-shadow: inset 0 0 0 2px var(--blue); }
.pc[draggable], .pcard[draggable] { cursor: grab; } .pc.dragging, .pcard.dragging { opacity: .35; }
.cal .day .n { font-size: 12.5px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; margin-bottom: 2px; }
.cal .day.today { background: #fafafa; } .cal .day.today .n { background: var(--ink); color: #fff; }
.ev { display: flex; align-items: center; gap: 6px; padding: 3px 7px; border-radius: 6px; font-size: 12px; font-weight: 500; background: var(--soft); white-space: nowrap; overflow: hidden; line-height: 1.35; cursor: pointer; border: 1px solid transparent; transition: transform .08s, box-shadow .12s; }
.ev::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, #333); flex: 0 0 auto; }
.ev:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.ev .t { overflow: hidden; text-overflow: ellipsis; }
.ev .p { margin-left: auto; font-size: 10px; color: var(--muted); font-weight: 600; } .ev .p.ok { color: var(--ok); }
.ev .cat { font-size: 9.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.ev.tentative { background: #EEEDE9; color: #5E6167; border-style: dashed; border-color: #CFCDC6; }
.ev.confirmed { background: #FBEEBF; color: #4E3A00; }
.ev.in_progress { background: #DCE8FB; color: #163E8C; }
.ev.completed { background: #DCF1E3; color: #164F2E; }
.ev.cancelled { background: #F3F2EF; text-decoration: line-through; color: var(--faint); }
.cal.week .day { min-height: 440px; cursor: default; }
.cal.week .ev { white-space: normal; padding: 7px 9px; align-items: flex-start; flex-wrap: wrap; }
.cal.week .ev .t { white-space: normal; flex: 1 1 100%; }
.more { font-size: 11px; color: var(--muted); padding-left: 6px; }

/* Agenda */
.agenda { display: flex; flex-direction: column; gap: 10px; }
.agenda .date { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: 12px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; display: flex; gap: 14px; align-items: center; cursor: pointer; box-shadow: var(--shadow); transition: transform .08s; }
.card:hover { transform: translateY(-1px); border-color: var(--line-2); }
.card .bar { width: 4px; align-self: stretch; border-radius: 2px; background: var(--c, #333); }
.card .name { font-weight: 600; font-size: 14.5px; } .card .pr { width: 160px; }
.card .thumb { width: 58px; height: 58px; border-radius: 8px; object-fit: cover; background: var(--soft); }

/* Tasks table */
.table { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.table .group { padding: 9px 14px; background: #fafafa; border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); font-weight: 600; font-size: 13.5px; display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.table .group:first-child { border-top: 0; } .table .group:hover { background: #f4f4f5; }
.table .group .chev { width: 22px; height: 22px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); transition: transform .15s; }
.table .group.closed .chev { transform: rotate(-90deg); }
.table .group .gp { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); font-weight: 500; }
.table .group .gp .progress { width: 90px; }
.table .group .gname { font-weight: 600; font-size: 14px; }
.table.tasks .group { padding: 11px 14px; gap: 10px; }
.table.tasks .group .tag { height: 19px; }
.table.tasks .tr { grid-template-columns: 26px minmax(220px, 2fr) minmax(180px, 1.5fr) 150px 130px 120px; padding: 7px 14px 7px 20px; }
.table.tasks.noev .tr { grid-template-columns: 26px minmax(240px, 2fr) 160px 150px 120px; }
.table.tasks .tr .ck { font-size: 11px; color: var(--muted); background: var(--soft); border-radius: 4px; padding: 1px 6px; font-weight: 600; }
.table.tasks .tr .ck.ok { color: var(--ok); background: #dcf1e3; }
.table.tasks .tr .late { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--danger); background: #fdecea; border-radius: 4px; padding: 2px 5px; }
.table.tasks .due.over { font-weight: 500; }
.table .tr { display: grid; grid-template-columns: 26px minmax(220px, 2fr) minmax(180px, 1.5fr) 150px 120px 130px; gap: 10px; align-items: center; padding: 9px 14px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .1s; }
.table .tr:hover { background: #fafafa; }
.table .tr.th { background: #fff; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; cursor: default; }
.table .tr.done .name { text-decoration: line-through; color: var(--muted); }
.table .name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table .evn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 13px; }
.cb { width: 17px; height: 17px; border-radius: 5px; border: 1.5px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; background: #fff; font-size: 11px; transition: all .1s; }
.cb:hover { border-color: var(--done); } .cb.on { background: var(--done); border-color: var(--done); color: #fff; }
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.board .col { background: #f4f4f5; border-radius: var(--radius); padding: 10px; min-height: 300px; }
.board .col h4 { font-size: 12.5px; color: var(--muted); margin: 2px 4px 10px; display: flex; gap: 8px; align-items: center; }
.board .tcard { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.board .tcard:hover { border-color: var(--line-2); box-shadow: var(--shadow); }

/* Drawer */
.drawer-bg { position: fixed; inset: 0; background: rgba(16,17,20,.35); z-index: 80; backdrop-filter: blur(2px); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 640px; max-width: 100%; background: #fff; z-index: 90; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: slide .18s ease-out; }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer .dh { padding: 12px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.drawer .db { flex: 1; overflow-y: auto; padding: 22px 24px 40px; }
.drawer h2 { font-size: 22px; line-height: 1.2; }
.drawer .hero { width: 100%; max-height: 280px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.stat { background: #fafafa; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; min-width: 0; }
.stat .k { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.stat .v { font-weight: 600; font-size: 13.5px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.section { margin-top: 24px; }
.section > h3 { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.section > h3 .btn { margin-left: auto; text-transform: none; letter-spacing: 0; }
.tasklist { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.tasklist .ti { display: grid; grid-template-columns: 26px 1fr 120px 96px; gap: 10px; align-items: center; padding: 9px 12px; border-top: 1px solid var(--line); cursor: pointer; }
.tasklist .ti:first-child { border-top: 0; } .tasklist .ti:hover { background: #fafafa; }
.tasklist .ti.done .n { text-decoration: line-through; color: var(--muted); }
.tasklist .n { font-weight: 500; } .tasklist .meta { font-size: 12px; color: var(--muted); }
.drawer.task .db { font-size: 14px; }
.crumb { font-size: 12.5px; color: var(--muted); text-decoration: none; font-weight: 500; } .crumb:hover { color: var(--ink); }
.tname { width: 100%; font-size: 22px; font-weight: 600; letter-spacing: -.012em; border: 1px solid transparent; border-radius: 8px; padding: 6px 8px; margin: -6px -8px 8px; background: transparent; outline: none; }
.tname:hover { border-color: var(--line); } .tname:focus { border-color: var(--line-2); background: #fff; }
.props { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-top: 10px; }
.props .prop { display: grid; grid-template-columns: 120px 1fr; gap: 10px; align-items: center; padding: 9px 14px; border-top: 1px solid var(--line); min-height: 46px; }
.props .prop:first-child { border-top: 0; }
.props .pl { font-size: 12px; font-weight: 600; color: var(--muted); }
.evlink { font-weight: 600; text-decoration: none; } .evlink:hover { text-decoration: underline; }
.section > h3 .cnt { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--faint); }
.checklist .addrow { padding: 8px 0 6px; border-top: 1px solid var(--line); }
.checklist label span { font-size: 14px; }
.notes { background: #fafafa; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
details.about summary { cursor: pointer; list-style: none; } details.about summary::-webkit-details-marker { display: none; }
details.about summary h3::before { content: "▸"; margin-right: 6px; font-size: 11px; } details.about[open] summary h3::before { content: "▾"; }
.sibs { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
.sib { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-radius: 6px; cursor: pointer; font-size: 13px; } .sib:hover { background: #f4f4f5; }
.parent { border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: #fafafa; }
.parent .pn { font-weight: 600; font-size: 15px; }
.checklist { border: 1px solid var(--line); border-radius: 10px; padding: 2px 12px; }
.checklist label { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); cursor: pointer; }
.checklist label:first-child { border-top: 0; }
.checklist input { width: 16px; height: 16px; accent-color: var(--done); margin: 0; }
.checklist label.on span { text-decoration: line-through; color: var(--muted); }
.comments .c { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); } .comments .c:first-child { border-top: 0; }
.comments .who { font-weight: 600; font-size: 13px; } .comments .when { color: var(--faint); font-size: 12px; margin-left: 6px; } .comments .body { white-space: pre-wrap; margin-top: 2px; }
.activity { font-size: 12.5px; color: var(--muted); } .activity div { padding: 4px 0; }
.desc { white-space: pre-wrap; line-height: 1.55; }
.links a { color: var(--blue); text-decoration: none; word-break: break-all; } .links a:hover { text-decoration: underline; }

/* Modal */
.modal-bg { position: fixed; inset: 0; background: rgba(16,17,20,.45); z-index: 100; display: grid; place-items: center; padding: 20px; overflow-y: auto; backdrop-filter: blur(2px); }
.modal { width: 780px; max-width: 100%; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); max-height: calc(100vh - 40px); display: flex; flex-direction: column; animation: pop .15s ease-out; }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal.narrow { width: 470px; }
.modal .mh { padding: 16px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; } .modal .mh h2 { font-size: 17px; }
.modal .mb { padding: 22px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.modal .mb .fgroup { display: flex; flex-direction: column; gap: 14px; }
.modal .mf { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
fieldset.box { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px 16px; margin: 0; display: flex; flex-direction: column; gap: 12px; background: #fafafa; }
fieldset.box legend { padding: 0 6px; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.imgdrop { border: 1px dashed var(--line-2); border-radius: 10px; padding: 12px; display: flex; align-items: center; gap: 12px; background: #fff; }
.imgdrop img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.weekdays { display: flex; gap: 4px; }
.weekdays label { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 31px; border: 1px solid var(--line-2); border-radius: 7px; font-size: 12px; font-weight: 600; cursor: pointer; background: #fff; }
.weekdays label.on { background: var(--ink); color: #fff; border-color: var(--ink); } .weekdays input { display: none; }

/* Settings */
.settings { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; align-items: start; }
.settings .side-nav { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 2px; }
.settings .side-nav .snl { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 6px 12px 8px; }
.settings .side-nav a { display: flex; align-items: center; gap: 9px; padding: 8px 12px; border-radius: 9px; text-decoration: none; color: var(--muted); font-weight: 500; }
.settings .side-nav a svg.i { width: 15px; height: 15px; opacity: .8; } .settings .side-nav a:hover { color: var(--ink); background: var(--soft); }
.settings .side-nav a.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); border: 1px solid var(--line); }
.sethead { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.sethead h2 { font-size: 20px; letter-spacing: -.01em; } .sethead p { font-size: 13.5px; margin-top: 4px; max-width: 640px; line-height: 1.5; }
.setgrid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.setcard { padding: 20px; display: flex; flex-direction: column; gap: 14px; } .setcard h3 { font-size: 15px; font-weight: 600; }
.pfrow { display: flex; align-items: center; gap: 14px; }
.avatar.xl { width: 64px; height: 64px; font-size: 20px; border-radius: 16px; }
.input.color { width: 44px; height: 36px; padding: 3px; }
.table.mem .role { display: flex; flex-wrap: wrap; gap: 4px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.panel h2 { font-size: 17px; margin-bottom: 4px; }
.list .li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); } .list .li:first-child { border-top: 0; }
.evtable .tr { grid-template-columns: 110px minmax(240px, 2fr) 130px 150px 160px 70px 40px; }
.evtable .tr.cancelled .name { text-decoration: line-through; color: var(--faint); }
.evtable .month { padding: 8px 14px; background: #fafafa; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
/* Event page */
.odot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: 0; }
.epage { max-width: 1240px; margin: 0 auto; }
.ep-top { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.ep-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.ep-kicker { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.ep-main h1 { font-size: 32px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.ep-when { font-size: 16px; color: var(--muted); margin-top: 8px; } .ep-when .sep { margin: 0 8px; color: var(--faint); }
.ep-desc { font-size: 15px; line-height: 1.65; white-space: pre-wrap; margin-top: 22px; max-width: 68ch; }
.ep-sec { margin-top: 40px; }
.ep-sech { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.ep-sech h3 { font-size: 17px; font-weight: 600; }
.etasks { border-top: 1px solid var(--line); }
.etask { display: grid; grid-template-columns: 26px minmax(0, 1fr) 150px 140px 110px; gap: 12px; align-items: center; padding: 11px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.etask:hover { background: #fafafa; }
.etask .n { font-weight: 500; font-size: 14.5px; } .etask.done .n { text-decoration: line-through; color: var(--muted); }
.etask .who { font-size: 13px; } .etask .when { font-size: 13px; display: flex; align-items: center; gap: 6px; }
.etask .ck { font-size: 11px; color: var(--muted); background: var(--soft); border-radius: 4px; padding: 1px 6px; font-weight: 600; margin-left: 4px; } .etask .ck.ok { color: var(--ok); background: #dcf1e3; }
.etask .late { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--danger); background: #fdecea; border-radius: 4px; padding: 2px 5px; }
.ep-opt { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 12px 4px 0; }
.ep-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 20px; }
.ep-cover { width: 100%; border-radius: 10px; border: 1px solid var(--line); display: block; }
.ep-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.ep-card h4 { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.ep-card .dr { display: grid; grid-template-columns: 104px 1fr; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.ep-card .dr:first-of-type { border-top: 0; }
.ep-card .dk { color: var(--muted); } .ep-card .dv { min-width: 0; overflow-wrap: anywhere; }
.lr { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.lr:first-of-type, .ep-card h4 + .lr { border-top: 0; }
.lr svg.i { color: var(--muted); } .lr .lk { display: block; font-weight: 500; font-size: 13.5px; } .lr .lu { display: block; font-size: 12px; color: var(--blue); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 230px; }
.lr .lu.muted { color: var(--muted); }
.linkbox { padding: 4px 0 10px; } a.lr:hover .lu { text-decoration: underline; }
@media (max-width: 1100px) { .ep-grid { grid-template-columns: 1fr; gap: 24px; } .ep-side { position: static; } .etask { grid-template-columns: 26px 1fr 110px; } .etask .who, .etask .when { display: none; } }
.table.tpl .tr { grid-template-columns: minmax(260px, 1fr) 190px 150px 130px 60px; padding: 12px 14px; }
.table.tpl .tr .name { font-size: 14.5px; font-weight: 600; }
.table.tpl .tr.off { opacity: .55; }
.table.tpl .tr .name { white-space: normal; }
.table.tpl .tr .small.muted { white-space: normal; line-height: 1.4; margin-top: 2px; }
.tplform .field > span:first-child { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.radios { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.radio { display: grid; grid-template-columns: 18px 1fr; gap: 2px 10px; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer; align-items: start; background: #fff; }
.radio.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.radio input { margin: 2px 0 0; accent-color: var(--ink); grid-row: span 2; }
.radio b { font-weight: 600; font-size: 14px; } .radio span { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips .chip input { display: none; }
details.adv summary:focus { outline: none; } details.adv summary:focus-visible { outline: 2px solid var(--line-2); border-radius: 4px; }
details.adv summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
details.adv summary::-webkit-details-marker { display: none; }
details.adv summary::before { content: "▸"; font-size: 11px; } details.adv[open] summary::before { content: "▾"; }
.table.mem .tr { grid-template-columns: minmax(240px, 1.4fr) 170px minmax(200px, 1fr) 120px 60px; padding: 11px 14px; }
.table.mem .tr.off { opacity: .55; }
.table.locs .tr { grid-template-columns: minmax(260px, 1.4fr) minmax(160px, 1fr) 110px 120px 60px; padding: 12px 14px; }
.table .tr .sw { width: 14px; height: 14px; border-radius: 4px; flex: 0 0 auto; margin-right: 4px; }
.ftabs { display: flex; gap: 2px; padding: 10px 22px 0; border-bottom: 1px solid var(--line); }
.ftabs button { border: 0; background: none; padding: 8px 12px 10px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ftabs button.on { color: var(--ink); border-bottom-color: var(--ink); }
.evform { gap: 16px; }
.evform .ftab { display: flex; flex-direction: column; gap: 16px; }
.fsec { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding-top: 6px; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 14px; }
.radios.four { grid-template-columns: repeat(4, 1fr); }
.radios.four .radio { grid-template-columns: 18px 1fr; padding: 10px 12px; } .radios.four .radio b { font-size: 13px; font-weight: 500; }
/* Event brief */
.bgrid { display: flex; flex-direction: column; gap: 14px; }
.bgroup { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.bgh { padding: 8px 14px; background: #fafafa; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bq { display: grid; grid-template-columns: minmax(220px, 1.2fr) 150px minmax(180px, 1fr); gap: 12px; align-items: center; padding: 7px 14px; border-top: 1px solid var(--line); }
.bq:nth-child(2) { border-top: 0; }
.bq.yes { background: #f3faf5; } .bq.no { background: #fafafa; }
.bqq { font-size: 13.5px; }
.bqa { display: inline-flex; border: 1px solid var(--line-2); border-radius: 7px; overflow: hidden; background: #fff; }
.bqa button { border: 0; background: none; height: 26px; padding: 0 9px; font-size: 12px; font-weight: 600; color: var(--muted); }
.bqa button + button { border-left: 1px solid var(--line); }
.bqa button.on.yes { background: var(--ok); color: #fff; } .bqa button.on.no { background: #71717a; color: #fff; } .bqa button.on.na { background: var(--line-2); color: var(--ink); }
.bans { font-size: 12px; font-weight: 600; color: var(--muted); } .bans.yes { color: var(--ok); }
.bqn .input.sm { height: 28px; }
.bqn { font-size: 13px; color: var(--ink-2); }
@media (max-width: 900px) { .bq { grid-template-columns: 1fr; gap: 6px; } }
.poster-frame { width: 100%; height: calc(100vh - 170px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }

/* Social media */
.spill.static { cursor: default; } .spill.static:hover { filter: none; }
.ld { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--c, #333); flex: 0 0 auto; }
.pc { display: flex; align-items: center; gap: 5px; padding: 3px 7px 3px 6px; border-radius: 6px; font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; line-height: 1.35; cursor: pointer; color: var(--ink); background: color-mix(in srgb, var(--s) 20%, #fff); border-left: 3px solid var(--s); transition: transform .08s, box-shadow .12s; }
.pc:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.pc .tm { font-size: 10.5px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.pc .t { overflow: hidden; text-overflow: ellipsis; }
.pc svg.i { width: 12px; height: 12px; color: var(--muted); }
.cal.smweek .day { gap: 6px; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: border-color .12s, box-shadow .12s; }
.pcard:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.pcard .pth { position: relative; aspect-ratio: 3/4; background: var(--soft); }
.pcard .pth img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcard .pth .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--faint); }
.pcard .pfmt { position: absolute; top: 6px; right: 6px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.pcard .pmeta { padding: 7px 8px 8px; }
.pcard .pk .i { width: 13px; height: 13px; }
.pcard .pt { font-weight: 600; font-size: 12.5px; line-height: 1.3; margin-top: 4px; overflow-wrap: anywhere; }
.table.smlist .tr { grid-template-columns: 120px minmax(260px, 2fr) 120px 100px 130px 70px; }
.smlist .month { padding: 8px 14px; background: #fafafa; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lth { position: relative; width: 36px; height: 48px; border-radius: 5px; overflow: hidden; background: var(--soft); flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; color: var(--faint); }
.lth img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lth svg.i { width: 15px; height: 15px; }
.cap1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Feed preview */
.feed { max-width: 640px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.igp { display: flex; gap: 22px; align-items: center; padding: 22px 24px 18px; }
.igav { width: 86px; height: 86px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: var(--soft); box-shadow: 0 0 0 1px var(--line); }
.igav.ph { display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 22px; background: var(--c); }
.igav.xs { width: 26px; height: 26px; font-size: 10px; }
.igp .h { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.igp .nm { font-size: 13px; color: var(--muted); margin-top: 1px; }
.igstats { display: flex; gap: 18px; margin-top: 10px; font-size: 13.5px; flex-wrap: wrap; } .igstats b { font-weight: 600; }
.fhead, .fdiv { display: flex; align-items: center; gap: 8px; padding: 11px 14px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); border-top: 1px solid var(--line); }
.fhead svg.i { width: 14px; height: 14px; }
.fdiv { border-top: 1px dashed var(--line-2); margin-top: 2px; }
.fdiv .muted, .fhead .muted { margin-left: auto; font-weight: 500; letter-spacing: 0; text-transform: none; font-size: 12px; }
.fgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
.fempty { padding: 28px 16px; text-align: center; color: var(--muted); font-size: 13px; }
.fempty a { color: var(--blue); }
.ft { position: relative; aspect-ratio: 3/4; background: var(--soft); overflow: hidden; cursor: pointer; display: block; color: inherit; text-decoration: none; }
.ft img, .igm img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ft .fph, .igm .fph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px; text-align: center; color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.3; }
.ft .ffmt, .igm .ffmt { position: absolute; top: 8px; right: 8px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.ft .fdate { position: absolute; left: 6px; top: 6px; background: rgba(24,24,27,.8); color: #fff; font-size: 10.5px; font-weight: 600; padding: 2px 6px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.ft .fdate.late { background: var(--danger); }
.ft .fst { position: absolute; left: 6px; bottom: 6px; } .ft .fst .spill { height: 19px; font-size: 9.5px; padding: 0 6px; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.ft.plan:hover img { filter: brightness(.9); }
.ft .fhov { position: absolute; inset: 0; background: rgba(0,0,0,.42); color: #fff; display: flex; align-items: center; justify-content: center; gap: 14px; font-weight: 600; font-size: 13px; opacity: 0; transition: opacity .12s; }
.ft .fhov span { display: inline-flex; align-items: center; gap: 4px; } .ft .fhov svg.i { width: 15px; height: 15px; fill: #fff; stroke: #fff; }
.ft:hover .fhov { opacity: 1; }

/* Post panel */
.drawer.post { width: 940px; }
.pgrid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 28px; align-items: start; }
.pv { position: sticky; top: 0; display: flex; flex-direction: column; gap: 10px; }
.igcard { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.igh { display: flex; align-items: center; gap: 8px; padding: 9px 11px; font-size: 13px; }
.igm { position: relative; aspect-ratio: 4/5; background: var(--soft); }
.igm.tall { aspect-ratio: 9/16; }
.igc { padding: 9px 11px 12px; font-size: 13px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.pv .btn .drv { width: 15px; height: 14px; }
.mailprev { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; } .mailprev .mh2 { display: flex; gap: 10px; align-items: baseline; padding: 7px 12px; border-bottom: 1px solid var(--line); font-size: 13px; } .mailprev .mh2 .small { width: 52px; flex: 0 0 auto; }
.mailprev .msub { padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.4; } .mailprev .msub b { display: block; } .mailprev .msub span { color: var(--muted); }
.mailprev .mbanner { background: var(--soft); }
.emailfields .field .cnt { margin-left: 8px; font-weight: 400; color: var(--muted); font-size: 11.5px; } .emailfields .field .cnt.over { color: var(--danger); } .mailprev .mbanner img { display: block; width: 100%; height: auto; max-height: 70vh; object-fit: contain; } .gbpprev .gbpm img, .igm img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mailprev .mbody { padding: 12px; font-size: 13px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.smsprev { background: #F2F2F7; border: 1px solid var(--line); border-radius: 18px; padding: 14px 14px 12px; } .smsprev .smsfrom { text-align: center; font-size: 11.5px; color: var(--muted); margin-bottom: 10px; }
.smsprev .bubble { background: #E9E9EB; color: #111; border-radius: 18px 18px 18px 4px; padding: 9px 13px; font-size: 14px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 88%; } .smsprev .smsmeta { margin-top: 10px; text-align: center; }
.gbpprev { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; } .gbpprev .gbpm { position: relative; aspect-ratio: 4/3; background: var(--soft); }
textarea.input.pcap { min-height: 230px; font-size: 14px; line-height: 1.5; }
.pv a.btn { text-decoration: none; }
#p-cnt.over { color: var(--danger); }
.crumb svg.i { width: 14px; height: 14px; }

/* Analytics */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.kpi .k { font-size: 12px; color: var(--muted); font-weight: 500; }
.kpi .v { font-size: 26px; font-weight: 600; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.chart { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 8px; box-shadow: var(--shadow); min-width: 0; }
.chart h4 { font-size: 13px; font-weight: 600; }
.chart .cv { height: 210px; margin-top: 8px; position: relative; }
.cempty { height: 100%; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.csvg { display: block; overflow: visible; }
.csvg .gl { stroke: var(--line); stroke-width: 1; }
.csvg .al { fill: var(--faint); font-size: 11px; font-variant-numeric: tabular-nums; }
.csvg .xh { stroke: var(--line-2); stroke-width: 1; }
.csvg .bar { transition: opacity .1s; }
.ctip { position: fixed; z-index: 400; pointer-events: none; background: #fff; border: 1px solid var(--line); border-radius: 9px; box-shadow: var(--shadow-lg); padding: 8px 10px; font-size: 12.5px; max-width: 320px; display: none; }
.ctip .tth { width: 42px; height: 56px; object-fit: cover; border-radius: 5px; flex: 0 0 auto; }
.ctip .tcap { font-weight: 500; margin: 2px 0 5px; }
.ctip .tnums { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--muted); } .ctip .tnums b { color: var(--ink); font-variant-numeric: tabular-nums; }
.table.antable .tr { grid-template-columns: minmax(240px, 2.6fr) 80px repeat(7, minmax(58px, .7fr)); text-decoration: none; color: inherit; }
.table.antable.em .tr { grid-template-columns: minmax(230px, 2.6fr) repeat(9, minmax(62px, .7fr)); }
.antable .num .pct { display: block; font-size: 11px; color: var(--muted); font-weight: 400; margin-top: 1px; }
.antable .th .num, .antable .tr.th > .num { align-self: start; }
.kpi .v .pct { display: inline; font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 6px; letter-spacing: 0; }
.table.antable.sms .tr { grid-template-columns: minmax(230px, 2.8fr) repeat(9, minmax(62px, .7fr)); }
.table.antable.rv .tr { grid-template-columns: minmax(260px, 1fr) 96px 150px 90px; }
.antable .rvtxt { white-space: normal; line-height: 1.45; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.antable .name .tag { font-size: 10.5px; padding: 1px 6px; vertical-align: 1px; margin-left: 4px; }
.stars { color: #F5A524; letter-spacing: 1px; font-size: 14px; white-space: nowrap; } .stars .off { color: var(--line-2); }
.toolbar .anloc { font-size: 12px; }
.kpis.five { grid-template-columns: repeat(5, minmax(0, 1fr)); } .kpis.five .kpi .v { font-size: 24px; }
.kpis.six { grid-template-columns: repeat(6, minmax(0, 1fr)); } .kpis.six .kpi .v { font-size: 24px; } .kpis.six .kpi .s { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart .spread h4 { font-size: 13px; font-weight: 600; } .chart .legend span { display: inline-flex; align-items: center; gap: 4px; }
.mix { display: grid; gap: 8px; padding: 14px 0 6px; }
.mixrow { display: grid; grid-template-columns: 30px 1fr 40px 44px; align-items: center; gap: 10px; border: 0; background: none; font: inherit; color: var(--ink); text-align: left; padding: 4px 6px; border-radius: 8px; cursor: pointer; }
.mixrow:hover, .mixrow.on { background: var(--bg); } .mixrow.dim { opacity: .4; } .mixrow .ml { color: var(--muted); font-size: 12.5px; } .mixrow b { text-align: right; font-variant-numeric: tabular-nums; }
.pbr { display: block; height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; } .pbr i { display: block; height: 100%; border-radius: 999px; min-width: 2px; }
.catcard { padding: 14px 16px; } .catcard h4 { font-size: 13px; font-weight: 600; }
.catrow { display: grid; gap: 5px; width: 100%; border: 0; background: none; font: inherit; color: var(--ink); text-align: left; padding: 7px 6px; margin: 0 -6px; width: calc(100% + 12px); border-radius: 8px; cursor: pointer; font-size: 12.5px; }
.catrow:hover, .catrow.on { background: var(--bg); } .catrow .pbr { height: 6px; }
.flagcard { padding: 14px 16px; margin-bottom: 12px; } .flagcard h4 { font-size: 13px; font-weight: 600; }
.flagrow { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); } .flagrow:first-of-type { border-top: 0; margin-top: 6px; } .flagrow .fs { flex: 0 0 auto; }
.table.antable.rvx .tr { grid-template-columns: minmax(260px, 1fr) minmax(180px, .6fr) 140px 120px; cursor: pointer; }
.table.antable.rvx .th { cursor: default; grid-template-columns: minmax(260px, 1fr) minmax(180px, .6fr) 140px 120px; align-items: center; }
.rvbar { margin: 4px 0 10px; } .rvbar h4 { font-size: 14px; font-weight: 600; }
.rvrow .themes { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; } .spill.tiny { font-size: 10.5px; padding: 1px 7px; }
.rvrow.open { background: var(--bg); } .rvreply { grid-column: 1 / -1; border-top: 1px dashed var(--line-2); padding-top: 10px; margin-top: 4px; } .rvreplytxt { font-size: 13px; line-height: 1.5; white-space: pre-wrap; }
.chtabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: -4px 0 14px; overflow-x: auto; scrollbar-width: none; } .chtabs::-webkit-scrollbar { display: none; }
.chtabs button { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px 11px; border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; cursor: pointer; transition: color .12s; }
.chtabs button:hover { color: var(--ink); } .chtabs button.on { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
.chtabs .i { width: 15px; height: 15px; opacity: .6; } .chtabs .on .i { opacity: 1; }
.kpi .s .up { color: #2E7D4F; font-weight: 600; } .kpi .s .down { color: #C2362B; font-weight: 600; }
.antable .num { text-align: right; font-variant-numeric: tabular-nums; }
.antable .th [data-sort] { cursor: pointer; user-select: none; } .antable .th [data-sort]:hover, .antable .th .on { color: var(--ink); }
.pipe-panel { margin-top: 12px; padding: 16px 18px; } .pipe-panel h4 { font-size: 13px; font-weight: 600; }
.pipe { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; }
.pp { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; } .pp b { font-variant-numeric: tabular-nums; }

@media (max-width: 1100px) { .pgrid { grid-template-columns: 1fr; } .pv { position: static; max-width: 340px; } .kpis { grid-template-columns: 1fr 1fr; } .charts { grid-template-columns: 1fr; } }

/* Phones */
.mbar, .scrim, .wdl, .mdate, .agenda-m { display: none; }
/* Perfect Venue (read-only reflection) */
.pvlogo { width: 12px; height: 12px; flex: 0 0 auto; display: inline-block; vertical-align: -2px; }
.ev.pvev .pvlogo { margin-right: -1px; }
.ev.pvs-lead { background: #F3F2EF; color: #5E6167; border-style: dashed; border-color: #D4D2CB; }
.ev.pvs-proposal_sent { background: #EEE8FC; color: #4C2A9A; }
.ev.pvs-confirmed { background: #FBEEBF; color: #4E3A00; }
.ev.pvs-completed { background: #DCF1E3; color: #164F2E; }
.ev .pvst { flex: 1 1 100%; font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.tag.pvs-lead { background: #ECEAE5; color: #6E7178; }
.tag.pvs-proposal_sent { background: #EDE6FB; color: #5B2CA8; }
.tag.pvs-confirmed { background: #FBEEBF; color: #7D5A00; }
.tag.pvs-completed { background: #DCF1E3; color: #1F6B40; }
.chip.pvtoggle .pvlogo { width: 14px; height: 14px; }
.chip.pvtoggle:not(.on) .pvlogo { filter: grayscale(1); opacity: .55; }
.chip.pvtoggle.on .pvlogo { background: #fff; border-radius: 3px; }
.pvlegend b { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.pvlegend .pvlogo { width: 14px; height: 14px; }
.more[data-more-day] { cursor: pointer; } .more[data-more-day]:hover { color: var(--ink); text-decoration: underline; }
.evtable .pvrow .name .pvlogo, .am-t .pvlogo { width: 13px; height: 13px; margin-right: 3px; }
.drawer.pvd { width: 560px; }
.drawer.pvd .pvsrc { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 13.5px; }
.drawer.pvd .pvsrc .pvlogo { width: 18px; height: 18px; }
.drawer.pvd .pvhead { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.drawer.pvd .props a { color: var(--blue, #2F6FD6); }
.notice.warn { background: #FFF6E0; border-color: #F2DFA8; color: #6B4D00; }

/* Repeat settings in the event form */
.repbox { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: grid; gap: 10px; background: #fcfcfc; }
.rep-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; }
.rep-row .rl { width: 46px; color: var(--muted); font-size: 13px; flex: 0 0 auto; }
.rep-row.top { align-items: flex-start; } .rep-row.top .rl { padding-top: 2px; }
.rep-ends { display: flex; flex-direction: column; gap: 8px; }
.rep-ends .check, #rep-mo-opts .check { font-size: 13.5px; }
.rep-sum { font-size: 13px; color: var(--ink); background: var(--soft); border-radius: 8px; padding: 8px 10px; }

@media (max-width: 960px) {
  #app { grid-template-columns: 1fr; }
  /* Top bar + the full sidebar sliding in from the left */
  .mbar { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 50; height: 58px; padding: 0 14px; background: rgba(250,250,250,.94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
  .mb-menu { position: relative; width: 40px; height: 40px; flex: 0 0 auto; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; display: grid; place-items: center; color: var(--ink); }
  .mb-menu svg.i { width: 20px; height: 20px; }
  .mb-dot { position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 2px #fff; }
  .mb-title { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
  .mb-title span { font-size: 10.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
  .mb-title b { font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; }
  .side { position: fixed; top: 0; left: 0; bottom: 0; width: 292px; max-width: 86vw; height: 100%; z-index: 130; padding: 16px 12px 14px; overflow-y: auto; transform: translateX(-102%); transition: transform .22s ease; }
  body.menu-open .side { transform: none; box-shadow: var(--shadow-lg); }
  .scrim { display: block; position: fixed; inset: 0; z-index: 120; background: rgba(16,17,20,.42); opacity: 0; pointer-events: none; transition: opacity .2s; }
  body.menu-open .scrim { opacity: 1; pointer-events: auto; }
  body.menu-open { overflow: hidden; }
  .side nav a, .nnew { padding: 10px; font-size: 15px; } .side .loc { padding: 9px 10px; font-size: 14px; }
  .navgroup .ngh { padding: 10px 9px 6px; }
  main { padding: 14px 12px 48px; }
  .toolbar { gap: 8px; } .toolbar h2 { min-width: 0; font-size: 19px; }
  .toolbar .seg, .subbar .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; } .toolbar .seg::-webkit-scrollbar { display: none; }
  .toolbar .seg button, .subbar .seg button { flex: 0 0 auto; white-space: nowrap; }
  .legend { gap: 6px 10px; font-size: 11.5px; }
  /* Month: colored bars per day; the tapped day is listed under the grid */
  .cal .head div { padding: 8px 0; text-align: center; font-size: 10px; letter-spacing: .04em; }
  .cal .day { min-height: 62px; padding: 4px 3px 6px; gap: 3px; align-items: center; }
  .cal .day .n { width: 26px; height: 26px; font-size: 13px; margin: 0; }
  .cal:not(.week) .day .ev, .cal:not(.week) .day .pc { height: 6px; width: 100%; padding: 0; border: 0; border-radius: 3px; font-size: 0; box-shadow: none; transform: none; }
  .cal:not(.week) .day .ev { background: var(--c); } .cal:not(.week) .day .pc { background: var(--s); }
  .cal:not(.week) .day .ev.pvev { opacity: .4; }
  .cal:not(.week) .day .ev > *, .cal:not(.week) .day .ev::before, .cal:not(.week) .day .pc > * { display: none; }
  .cal:not(.week) .day .more { font-size: 10px; padding: 0; }
  .cal .day.sel { background: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
  .agenda-m { display: block; margin-top: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
  .am-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 15px; }
  .am-row { display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-top: 1px solid var(--line); cursor: pointer; } .am-h + .am-row { border-top: 0; }
  .am-row:active { background: var(--soft); }
  .am-t { font-weight: 600; font-size: 14px; line-height: 1.3; } .am-empty { padding: 18px 14px; color: var(--muted); font-size: 13.5px; }
  /* Week: one day per row */
  .cal.week .head { display: none; } .cal.week .grid { grid-template-columns: 1fr; }
  .cal.week .day { min-height: 0; border-right: 0; padding: 10px 12px 12px; gap: 6px; align-items: stretch; cursor: default; }
  .cal.week .day .n { display: none; }
  .cal.week .day .wdl { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  .cal.week .day.today .wdl { color: var(--ink); }
  .smweek .pcard { display: flex; } .smweek .pcard .pth { width: 66px; flex: 0 0 66px; } .smweek .pcard .pmeta { flex: 1; min-width: 0; padding: 8px 10px; }
  /* Tables keep the columns that matter on a phone */
  .table .tr { padding: 10px 12px; }
  .table.tasks .tr, .table.tasks.noev .tr { grid-template-columns: 26px minmax(0, 1fr) auto; padding: 10px 12px; } .table.tasks .tr > :nth-child(n+3):not(:last-child) { display: none; }
  .table .group { flex-wrap: wrap; row-gap: 6px; padding: 11px 12px; } .table .group .gname { flex: 1 1 calc(100% - 110px); min-width: 0; }
  .table .group .gp .progress { width: 60px; }
  .evtable .tr { grid-template-columns: 74px minmax(0, 1fr) auto auto; } .evtable .tr > :nth-child(3), .evtable .tr > :nth-child(5), .evtable .tr > :nth-child(7) { display: none; }
  .table.smlist .tr { grid-template-columns: minmax(0, 1fr) auto; } .table.smlist .tr > :nth-child(1), .table.smlist .tr > :nth-child(3), .table.smlist .tr > :nth-child(4), .table.smlist .tr > :nth-child(6) { display: none; }
  .smlist .cap1 { display: none; } .smlist .mdate { display: block; }
  .table.antable .tr { grid-template-columns: minmax(0, 1fr) 62px 58px; } .table.antable .tr > :nth-child(2), .table.antable .tr > :nth-child(n+4):not(:last-child) { display: none; }
  .table.antable.em .tr, .table.antable.sms .tr { grid-template-columns: minmax(0, 1fr) 66px 66px; } .table.antable.em .tr > :nth-child(n+2), .table.antable.sms .tr > :nth-child(n+2) { display: none; } .table.antable.em .tr > :nth-child(3), .table.antable.em .tr > :nth-child(7), .table.antable.sms .tr > :nth-child(4), .table.antable.sms .tr > :nth-child(7) { display: block; }
  .kpis.five, .kpis.six { grid-template-columns: 1fr 1fr; } .kpis.six .kpi .s { white-space: normal; }
  .table.antable.rvx .tr, .table.antable.rvx .th { grid-template-columns: minmax(0, 1fr) 90px; } .table.antable.rvx .tr > .themes, .table.antable.rvx .tr > :nth-child(3), .table.antable.rvx .th > :nth-child(2), .table.antable.rvx .th > :nth-child(3) { display: none; } .rvbar { flex-wrap: wrap; gap: 8px; }
  .table.antable.rv .tr { grid-template-columns: minmax(0, 1fr) 80px; } .table.antable.rv .tr > :nth-child(n+3) { display: none; } .table.antable.rv .tr > :nth-child(2) { display: block; }
  .chtabs { margin-top: 0; } .chtabs button { padding: 8px 10px 10px; font-size: 13px; gap: 5px; }
  .table.mem .tr, .table.tpl .tr, .table.locs .tr { grid-template-columns: minmax(0, 1fr) auto; } .table.mem .tr > :not(:first-child):not(:last-child), .table.tpl .tr > :not(:first-child):not(:last-child), .table.locs .tr > :not(:first-child):not(:last-child) { display: none; }
  .board { grid-template-columns: 1fr 1fr; } .settings { grid-template-columns: 1fr; gap: 12px; } .settings .side-nav { position: static; flex-direction: row; gap: 4px; overflow-x: auto; } .settings .side-nav .snl { display: none; } .settings .side-nav a { white-space: nowrap; } .setgrid { grid-template-columns: 1fr; } .sethead { flex-direction: column; }
  .grid2, .grid3, .stats { grid-template-columns: 1fr 1fr; } .radios.four { grid-template-columns: 1fr 1fr; }
  /* Panels */
  .drawer { width: 100%; } .drawer .db { padding: 16px 14px 40px; } .drawer .dh { padding: 10px 12px; }
  .props .prop { grid-template-columns: 92px minmax(0, 1fr); padding: 9px 12px; }
  .pv { max-width: none; } .igm, .igm.tall { aspect-ratio: auto; height: 46vh; }
  .igc { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; padding-bottom: 0; margin-bottom: 12px; }
  .modal-bg { padding: 0; place-items: end center; } .modal { border-radius: 16px 16px 0 0; max-height: 92vh; }
  .modal .mb { padding: 16px; } .modal .mh, .modal .mf { padding: 12px 16px; }
  .ep-top { flex-wrap: wrap; } .ep-main h1 { font-size: 26px; } .ep-sech { flex-wrap: wrap; }
  .kpi .v { font-size: 22px; } .kpis { gap: 8px; } .chart .cv { height: 190px; }
  .feed { border-radius: 12px; } .igp { padding: 16px; gap: 14px; } .igav { width: 64px; height: 64px; }
}

/* Campaigns > CRM */
.crml { display: flex; flex-wrap: wrap; gap: 6px; margin: -2px 0 12px; }
.crml .chip b { font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; } .crml .chip.on b { color: rgba(255,255,255,.75); }
.crmlh .lname-btn { cursor: text; } .crmlh .lname-btn:hover { text-decoration: underline; text-decoration-color: var(--line2, #d4d4d8); text-underline-offset: 3px; }
.crmlh .lname-btn .i { width: 12px; height: 12px; vertical-align: -1px; }
.crmlh .input.lname { font-weight: 700; width: min(100%, 360px); }
.aip .ainame { font: inherit; font-weight: 700; border: 1px solid transparent; border-radius: 6px; padding: 2px 6px; margin: -3px 0 -3px -6px; width: 100%; background: transparent; }
.aip .ainame:hover { border-color: var(--line); background: #fff; } .aip .ainame:focus { border-color: var(--ink); background: #fff; outline: none; }
.btn.danger-text { color: #C2362B; }
.crmlh { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 12px; box-shadow: var(--shadow); }
.crmf { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; align-items: center; }
.crmf .input { width: auto; } .crmf .input.q { width: 240px; } .crmf .input.n { width: 112px; } .crmf .input.t { width: 170px; }
.crmf .sel.sm { width: auto; }
.crmtable .tr { grid-template-columns: minmax(170px, 1.5fr) minmax(180px, 1.5fr) 66px 66px 96px 96px 86px 86px 110px 104px; }
.spill.mini { font-size: 10.5px; padding: 1px 6px; margin-right: 5px; vertical-align: 1px; }
.crmtable .tr.th { position: sticky; top: 0; z-index: 2; }
.crmtable .num { text-align: right; font-variant-numeric: tabular-nums; }
.crmtable .th [data-csort] { cursor: pointer; user-select: none; } .crmtable .th [data-csort]:hover, .crmtable .th .on { color: var(--ink); }
.crmtable .gcell, .crmtable .ccell { min-width: 0; } .ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crmtable .name .up { margin-left: 6px; color: var(--warn); font-weight: 700; }
.more-rows { display: block; width: 100%; padding: 11px; border: 0; background: #fafafa; color: var(--muted); font-weight: 500; cursor: pointer; } .more-rows:hover { color: var(--ink); }
.spill.tier { height: 20px; }
.chip.static { cursor: default; height: 26px; font-size: 12px; } .chip.static:hover { border-color: var(--line-2); } .chip.static b { color: var(--muted); font-weight: 600; }
.cdots { gap: 8px; } .cdot { cursor: pointer; } .cdot input { display: none; } .cdot i { display: block; width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-sizing: border-box; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line-2); } .cdot input:checked + i { box-shadow: 0 0 0 2px var(--ink); }
.drawer.gd { width: 620px; } .drawer.gd .props a { color: var(--blue); text-decoration: none; } .drawer.gd .props a:hover { text-decoration: underline; }
.drawer.gd .props .prop { grid-template-columns: 110px 1fr; min-height: 40px; padding: 8px 14px; font-size: 13.5px; } .drawer.gd .props .pl { color: var(--muted); }
.drawer.gd .section h4 { font-size: 13px; font-weight: 600; }
.vlist { margin-top: 8px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.vrow { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 13.5px; } .vrow:first-child { border-top: 0; }
.vrow.cancelled .vd, .vrow.no_show .vd { opacity: .7; }
.vrow .vd { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .vrow .vd b { font-weight: 600; }
.vrow .vit { color: var(--muted); line-height: 1.4; }
.vrow .vs { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: 0 0 auto; font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) { .crmtable .tr { grid-template-columns: minmax(160px, 1.5fr) 70px 90px 90px 104px; } .crmtable .ccell, .crmtable .tr > :nth-child(4), .crmtable .tr > :nth-child(7), .crmtable .tr > :nth-child(8), .crmtable .tr > :nth-child(9) { display: none; } }
@media (max-width: 960px) { .crmf .input.q, .crmf .input.t, .crmf .input.n { width: 100%; } .crmf .sel.sm { width: 100%; } .crmk { grid-template-columns: 1fr 1fr; } .crmtable .tr { grid-template-columns: minmax(0, 1fr) 54px 84px; padding: 9px 12px; } .crmtable .tr > :nth-child(6), .crmtable .tr > :nth-child(10) { display: none; } .drawer.gd { width: 100%; } .vrow { flex-direction: column; gap: 6px; } .vrow .vs { flex-direction: row; align-items: center; } }

/* Campaigns > RFV */
.segs { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; margin-bottom: 12px; }
.segc { text-align: left; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: var(--radius); padding: 12px 14px; cursor: pointer; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 5px; font: inherit; color: var(--ink); transition: border-color .12s, box-shadow .12s; }
.segc:hover { border-color: var(--line-2); border-left-color: var(--c); box-shadow: var(--shadow-lg); }
.segc .sh { display: flex; align-items: center; gap: 8px; } .segc .sh .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); } .segc .sh b { font-size: 14px; } .segc .sh .n { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; font-size: 18px; }
.segc .sp { font-size: 12px; color: var(--muted); } .segc .sw { font-size: 13px; margin-top: 2px; } .segc .sa { font-size: 12.5px; color: var(--muted); font-style: italic; }
.rfvhow { margin-bottom: 12px; padding: 16px 18px; } .rfvhow h4 { font-size: 14px; font-weight: 600; }
.rfvt { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 10px; font-size: 13px; line-height: 1.5; } .rfvt > div { background: #fafafa; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; }
.heat { display: grid; grid-template-columns: 34px 1fr; gap: 6px; margin-top: 8px; }
.heat .hy { display: grid; grid-template-rows: repeat(5, 36px) auto; gap: 4px; align-items: center; justify-items: end; padding-right: 4px; font-size: 11px; color: var(--muted); font-weight: 600; } .heat .hy .hl { grid-column: 1; writing-mode: vertical-rl; transform: rotate(180deg); justify-self: center; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; font-size: 10px; margin-top: 4px; }
.heat .hy span:first-child { display: none; }
.heat .hg { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.heat .hc { height: 36px; border: 0; border-radius: 6px; background: color-mix(in srgb, var(--ink) calc(var(--t) * 88% + 6%), #fff); color: #fff; font-weight: 600; font-size: 12.5px; cursor: pointer; font-variant-numeric: tabular-nums; }
.heat .hc[style*="--t:0."] { color: var(--ink); } .heat .hc:not(.z):hover { outline: 2px solid var(--ink); outline-offset: 1px; }
.heat .hc.z { background: #f4f4f5; cursor: default; }
.heat .hx { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; text-align: center; font-size: 11px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.heat .hxl { grid-column: 1 / -1; text-align: center; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.rfvtable .tr { grid-template-columns: 170px repeat(7, minmax(70px, 1fr)); }
.rfvtable .num { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 960px) { .rfvt { grid-template-columns: 1fr; } .rfvh { grid-template-columns: 1fr; } .rfvtable .tr { grid-template-columns: 130px 60px 60px 90px; } .rfvtable .tr > :nth-child(n+5) { display: none; } }
.rfvrow { display: grid; grid-template-columns: 150px repeat(4, 1fr); gap: 10px; align-items: end; } .rfvrow .rl { display: flex; flex-direction: column; gap: 2px; padding-bottom: 8px; }
.rfvrow .input { width: 100%; }
@media (max-width: 960px) { .rfvrow { grid-template-columns: 1fr 1fr; } .rfvrow .rl { grid-column: 1 / -1; } }
.rfvwrap { display: grid; grid-template-columns: 22px 1fr; gap: 6px 8px; margin-top: 10px; align-items: stretch; }
.rfvwrap .yl { writing-mode: vertical-rl; transform: rotate(180deg); justify-self: center; align-self: center; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-bottom: 26px; }
.rfvwrap .xl { grid-column: 2; text-align: center; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rfvgrid { display: grid; grid-template-columns: 22px repeat(5, minmax(0, 1fr)); grid-template-rows: repeat(5, 84px) 22px; gap: 4px; }
.rfvgrid .yt { grid-column: 1; align-self: center; justify-self: end; padding-right: 4px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.rfvgrid .xt { grid-row: 6; align-self: end; text-align: center; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.rfvgrid .blk { border: 0; border-radius: 10px; background: var(--c); color: #fff; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; padding: 10px 12px; text-align: right; cursor: pointer; font: inherit; transition: filter .12s, transform .12s; }
.rfvgrid .blk:hover { filter: brightness(1.07); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.rfvgrid .blk.dk { color: #1c1917; }
.rfvgrid .blk.z { opacity: .55; }
.rfvgrid .blk .bn { font-size: 13.5px; font-weight: 600; line-height: 1.2; } .rfvgrid .blk .bv { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; } .rfvgrid .blk .bv small { font-size: 11.5px; font-weight: 500; opacity: .85; }
@media (max-width: 960px) { .rfvgrid { grid-template-rows: repeat(5, 64px) 22px; } .rfvgrid .blk { padding: 6px 7px; border-radius: 7px; } .rfvgrid .blk .bn { font-size: 10.5px; } .rfvgrid .blk .bv { font-size: 13px; } .rfvgrid .blk .bv small { display: none; } }
.aith { display: flex; flex-direction: column; gap: 8px; flex: 1; overflow-y: auto; padding: 14px 14px 6px; }
.aim { max-width: 88%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.5; }
.aim.u { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.aim.a { align-self: flex-start; background: var(--soft); border-bottom-left-radius: 4px; }
.aim.thinking { display: inline-flex; gap: 4px; padding: 12px 14px; } .aim.thinking span { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); animation: blink 1s infinite; } .aim.thinking span:nth-child(2) { animation-delay: .2s; } .aim.thinking span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.aiprops { display: grid; gap: 8px; margin-top: 10px; } .aip { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; } .aip .aiwhy { color: var(--ink-2); margin-top: 3px; }
.aistart { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 14px 8px; } .aistart .chip { height: 28px; font-size: 12px; }
.aiform { display: flex; gap: 8px; padding: 10px 14px 14px; border-top: 1px solid var(--line); } .aiform .input { flex: 1; } .aiform .btn.icon { width: 36px; height: 36px; }
/* Floating AI widget (CRM page) */
#aiwidget { position: fixed; right: 22px; bottom: 22px; z-index: 70; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.aifab { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px 0 14px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: inherit; font-weight: 600; box-shadow: 0 8px 24px -6px rgba(0,0,0,.35); cursor: pointer; transition: transform .12s; }
.aifab:hover { transform: translateY(-1px); } .aifab svg.i { width: 18px; height: 18px; } .aifab.on { background: #fff; color: var(--ink); border: 1px solid var(--line-2); }
.aiwin { width: 400px; max-width: calc(100vw - 32px); height: min(640px, calc(100vh - 100px)); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; animation: pop .15s ease-out; }
.aiwin .aih { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; border-bottom: 1px solid var(--line); }
.aiwin .aih b { font-size: 14px; } .aiwin .aiav { width: 32px; height: 32px; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; }
@media (max-width: 960px) { #aiwidget { right: 12px; bottom: 12px; } .aiwin { width: calc(100vw - 24px); height: calc(100vh - 90px); } .aifab span { display: none; } .aifab { padding: 0 13px; } }
.aip.upd { border-color: #c7d2fe; background: #f5f7ff; }
/* Campaigns > Cohorts */
.cosets { margin-bottom: 12px; padding: 16px 18px; } .cosets h4 { font-size: 14px; font-weight: 600; } .cosets .grid3 { margin-top: 12px; } .cosets .input { width: 100%; }
.cotable, .motable { margin-bottom: 12px; }
.cotable .cap, .motable .cap { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; } .cotable .cap b, .motable .cap b { font-size: 14px; }
.cotable .tr { grid-template-columns: 110px 70px repeat(var(--kcols), minmax(64px, 1fr)); cursor: default; gap: 6px; padding: 6px 14px; }
.cotable .tr.th { padding: 9px 14px; }
.cotable .num, .motable .num { text-align: right; font-variant-numeric: tabular-nums; }
.cotable .cell { border-radius: 6px; padding: 7px 8px; font-weight: 600; font-size: 13px; }
.motable .tr { grid-template-columns: 120px repeat(8, minmax(70px, 1fr)); cursor: default; }
@media (max-width: 960px) { .cosets .grid3 { grid-template-columns: 1fr; } .cotable .tr { grid-template-columns: 80px 50px repeat(var(--kcols), minmax(52px, 1fr)); padding: 6px 10px; } .cotable .cell { padding: 6px 4px; font-size: 12px; } .motable .tr { grid-template-columns: 90px repeat(3, 1fr); } .motable .tr > :nth-child(n+5) { display: none; } }


/* Team calendar (Gabi 27 Oct 2026): one colour per person, their own calendar events */
.ev.team { background: color-mix(in srgb, var(--c, #555) 12%, #fff); border-color: color-mix(in srgb, var(--c, #555) 22%, #fff); color: var(--ink); }
.ev.team::before { display: none; }
.ev.team .avatar.xs { width: 16px; height: 16px; font-size: 8px; flex: 0 0 auto; }
.ev.team .tm { margin-left: auto; font-size: 10.5px; color: var(--muted); font-weight: 600; flex: 0 0 auto; }
.ev.team.allday { border-left: 3px solid var(--c, #555); }
.cal.week .ev.team { align-items: center; }
.chip.person { padding-left: 5px; gap: 6px; }
.chip.person .avatar.xs { width: 20px; height: 20px; font-size: 9px; box-shadow: 0 0 0 2px var(--c, #888); }
.chip.person.on { background: color-mix(in srgb, var(--c, #555) 14%, #fff); color: var(--ink); border-color: color-mix(in srgb, var(--c, #555) 60%, #fff); }
.chip.person:not(.on) { opacity: .5; }
.chip.person .warn { width: 16px; height: 16px; border-radius: 50%; background: var(--warn); color: #fff; font-style: normal; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.notice.team-nudge { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; background: #fffbeb; border-color: #fde68a; color: var(--ink); }
.empty.team-empty { padding: 44px 20px; line-height: 1.6; }
.mycal-list .mrow { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.mycal-list .mrow:last-child { border-bottom: 0; }
.mycal-list .mrow.muted { color: var(--muted); font-size: 12.5px; }
.gmark { width: 22px; height: 22px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; background: #fff; border: 1px solid var(--line-2); color: #4285F4; flex: 0 0 auto; }
.gmark.link { color: var(--muted); font-size: 11px; }
.err-text { color: var(--danger); }
.avatar.sm { width: 22px; height: 22px; font-size: 9.5px; }
a.btn { text-decoration: none; }
.howto { background: #fafafa; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.howto-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.5; }
.howto-steps code { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; font-size: 12px; }
.howto a { color: var(--blue); }
@media (max-width: 960px) { .modal, .modal.narrow { width: 100%; } }
.howto-img { display: block; width: 100%; max-width: 760px; margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; }
/* Team calendar: week as a time grid */
.tgrid { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.tgrid .tg-gut { width: 64px; flex: 0 0 64px; position: relative; }
.tg-head { display: flex; border-bottom: 1px solid var(--line); background: #fafafa; }
.tg-dh { flex: 1; min-width: 0; padding: 9px 10px; display: flex; align-items: baseline; gap: 7px; border-left: 1px solid var(--line); }
.tg-dh .dn { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; } .tg-dh .n { font-size: 16px; font-weight: 600; }
.tg-dh.today .n { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; }
.tg-allday { display: flex; border-bottom: 1px solid var(--line); background: #fcfcfc; }
.tg-allday .tg-gut span { position: absolute; right: 8px; top: 8px; font-size: 10.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.tg-ad { flex: 1; min-width: 0; padding: 5px 4px; display: flex; flex-direction: column; gap: 3px; border-left: 1px solid var(--line); min-height: 30px; }
.tg-ad .ev.team { height: auto; }
.tg-scroll { max-height: calc(100vh - 300px); overflow-y: auto; }
.tg-body { display: flex; position: relative; }
.tg-body .tg-gut .tg-h { position: absolute; right: 8px; transform: translateY(-50%); font-size: 11px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.tg-body .tg-gut .tg-h:first-child { transform: none; }
.tg-col { flex: 1; min-width: 0; position: relative; border-left: 1px solid var(--line); }
.tg-col.today { background: #fafafa; }
.tg-line { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--line); }
.tg-ev { position: absolute; display: flex; gap: 6px; align-items: flex-start; padding: 5px 7px; border-radius: 7px; background: color-mix(in srgb, var(--c) 14%, #fff); border-left: 3px solid var(--c); font-size: 12.5px; line-height: 1.3; overflow: hidden; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.06); transition: box-shadow .12s; }
.tg-ev:hover { box-shadow: var(--shadow-lg); z-index: 3; }
.tg-ev .tx { min-width: 0; display: flex; flex-direction: column; gap: 1px; } .tg-ev .tx b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tg-ev .tx span { font-size: 11px; color: var(--muted); white-space: nowrap; }
.tg-ev.tight { padding: 2px 6px; align-items: center; } .tg-ev.tight .tx span { display: none; } .tg-ev.tight .avatar { display: none; }
.tg-now { position: absolute; left: 0; right: 0; height: 0; border-top: 2px solid var(--danger); z-index: 2; } .tg-now::before { content: ""; position: absolute; left: -5px; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }

.drawer.gd .stats.gst { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* activity done through the AI assistant connector */
.tag.via { height: 16px; font-size: 9.5px; padding: 0 5px; margin-left: 2px; background: #EEF2FF; color: #3730A3; border-color: #C7D2FE; vertical-align: 1px; }

/* Team Tasks (28 Oct 2026): several owners per task, task chips on the Team calendar */
.avs { display: inline-flex; align-items: center; flex: 0 0 auto; }
.avs .avatar + .avatar { margin-left: -7px; } .avs .avatar { box-shadow: 0 0 0 2px #fff; } .avs .avatar.xs + .avatar.xs { margin-left: -5px; }
.avatar.xs { width: 18px; height: 18px; font-size: 8px; }
.avatar.more { background: #9CA3AF; font-size: 9px; }
.opick { display: flex; flex-wrap: wrap; gap: 6px; }
.opick .oc { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: 12.5px; font-weight: 500; cursor: pointer; user-select: none; transition: all .12s; color: var(--muted); }
.opick .oc .avatar.xs { width: 20px; height: 20px; font-size: 9px; }
.opick .oc:hover { border-color: var(--ink); color: var(--ink); }
.opick .oc.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.opick.ro .oc { cursor: default; } .opick.ro .oc:not(.on) { display: none; } .opick.ro:empty::after, .opick.ro:not(:has(.on))::after { content: "Unassigned"; color: var(--muted); font-size: 13px; }
.field > span:first-child { font-size: 12px; font-weight: 600; color: var(--muted); display: block; margin-bottom: 6px; }
.ev.team.task { border-left: 3px solid var(--c, #555); border-style: solid; }
.ev.team.task .tm svg.i { width: 12px; height: 12px; opacity: .6; }
.ev.team.task.done { opacity: .55; } .ev.team.task.done .t { text-decoration: line-through; }
.ev.team.task .avs .avatar.xs { width: 16px; height: 16px; font-size: 8px; }
.chip.person.tasks svg.i { width: 14px; height: 14px; }
.am-row.done .am-t { text-decoration: line-through; color: var(--muted); }
.chip.layer svg.i { width: 14px; height: 14px; }
.chip.layer.na { opacity: .45; }

/* ==========================================================================
   Design 2 (Gabi 29 Oct 2026): calmer canvas, Inter titles (no serif, Gabi), no all-caps
   labels, one chip language (bar = location, dot = status), soft status pills.
   The sidebar keeps its original look: its tokens are pinned on .side.
   ========================================================================== */
:root {
  --bg: #FBFBFA; --ink: #141414; --ink-2: #2A2A2C; --muted: #5E5E63; --faint: #9C9CA1; --line: #ECEBE8; --line-2: #DDDCD8;
  --soft: #F4F3F0; --soft-2: #E8E7E3; --radius: 12px; --shadow: none; --shadow-lg: 0 18px 50px -18px rgba(20,20,20,.28), 0 2px 6px rgba(20,20,20,.05);
}
.side { --ink: #18181b; --ink-2: #27272a; --muted: #52525b; --faint: #a1a1aa; --line: #e4e4e7; --line-2: #d4d4d8; --soft: #f4f4f5; --soft-2: #e4e4e7; --shadow: 0 1px 2px rgba(0,0,0,.04); }
html, body { font-feature-settings: "cv11", "ss01"; }

/* Page titles */
.toolbar h2, .ttl, .page-title, .sethead h2 { font-weight: 600; font-size: 24px; line-height: 1.15; letter-spacing: -.02em; min-width: 0; }
.ttl .yr, .page-title span { color: var(--faint); font-size: inherit; font-weight: 600; }
.sethead h2 { font-size: 22px; } .sethead p { margin-top: 8px; }
.ep-main h1 { font-weight: 700; font-size: 32px; line-height: 1.15; letter-spacing: -.025em; }
.ep-when { font-size: 15px; margin-top: 12px; }
.drawer h2, .tname { font-weight: 600; font-size: 22px; letter-spacing: -.02em; line-height: 1.2; }

/* Shell, buttons, inputs */
@media (min-width: 961px) { main { padding: 30px 40px 56px; } }
.btn { height: 32px; border-radius: 8px; border-color: var(--line-2); box-shadow: 0 1px 0 rgba(20,20,20,.03); }
.btn:hover { background: #F7F6F3; border-color: #CFCEC9; }
.btn.primary, .btn.gold { box-shadow: 0 1px 2px rgba(20,20,20,.18); }
.btn.sm { height: 28px; } .btn.icon { width: 32px; }
.input, select.input, textarea.input, .sel { border-radius: 8px; border-color: var(--line-2); }
.input.sm, select.input.sm, .sel.sm { height: 30px; }
.chip { border-radius: 8px; }

/* Toolbar: title, a joined Previous / Today / Next, segmented views on a soft track */
.toolbar { gap: 16px; margin-bottom: 18px; }
.navgrp, .toolbar > .row:first-child:has(> .btn.icon) { gap: 0; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 1px 0 rgba(20,20,20,.03); }
.navgrp .btn, .toolbar > .row:first-child:has(> .btn.icon) .btn { border: 0; border-radius: 0; height: 30px; box-shadow: none; }
.navgrp .btn + .btn, .toolbar > .row:first-child:has(> .btn.icon) .btn + .btn { border-left: 1px solid var(--line); }
.toolbar .seg, .subbar .seg { background: var(--soft); border: 0; padding: 3px; border-radius: 9px; gap: 2px; overflow: visible; }
.toolbar .seg button, .subbar .seg button { height: 28px; border-radius: 6px; padding: 0 12px; color: var(--muted); font-weight: 500; }
.toolbar .seg button + button, .subbar .seg button + button { border-left: 0; }
.toolbar .seg button:hover:not(.on), .subbar .seg button:hover:not(.on) { color: var(--ink); }
.toolbar .seg button.on, .subbar .seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(20,20,20,.1), 0 0 0 .5px rgba(20,20,20,.06); }

/* Filter bar under the calendar title: layers as checkboxes, status, the key on the right */
.filterbar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: -4px 0 14px; }
.filterbar .fl { font-size: 12.5px; color: var(--faint); margin-right: 4px; }
.vsep { width: 1px; height: 20px; background: var(--line-2); margin: 0 6px; }
.chip.layer { height: 30px; padding: 0 12px 0 9px; gap: 8px; background: #fff; color: var(--muted); border-color: var(--line-2); }
.chip.layer svg.i, .chip.layer .pvlogo { display: none; }
.chip.layer::before { content: ""; width: 14px; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px #C9C8C3; flex: 0 0 auto; transition: background .12s, box-shadow .12s; }
.chip.layer.on { background: #fff; color: var(--ink); border-color: var(--line-2); }
.chip.layer.on::before { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 10px no-repeat; box-shadow: none; }
.chip.layer:hover { border-color: #CFCEC9; color: var(--ink); }
.chip.layer.na { opacity: .45; }
.legend.cal-legend { margin-left: auto; gap: 0; font-size: 12px; color: var(--muted); }
.cal-legend .lg { display: inline-flex; align-items: center; gap: 12px; cursor: help; }
.cal-legend .lg + .lg { margin-left: 14px; padding-left: 14px; border-left: 1px solid var(--line-2); }
.cal-legend .lg > span { display: inline-flex; align-items: center; }
.cal-legend .pvlogo { width: 13px; height: 13px; border-radius: 3px; }
.sd, .legend i.sd { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--sc, #999); margin: 0 6px 0 0; flex: 0 0 auto; vertical-align: 1px; }
.sd.tentative, .legend i.sd.tentative { background: transparent; box-shadow: inset 0 0 0 1.5px #A9A7A1; }

/* Calendar grid */
.cal { border-radius: 12px; border-color: var(--line); }
.cal .head { background: #fff; }
.cal .head div { text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 500; color: var(--faint); padding: 10px 12px; }
.cal .day { padding: 6px 6px 8px; gap: 3px; }
@media (min-width: 961px) { .cal .day { min-height: 116px; } .cal.week .day { min-height: 480px; padding: 8px; gap: 6px; } }
.cal .day:nth-child(7n), .cal .day:nth-child(7n+1) { background: #fff; }
.cal .day.out, .cal .day.out:nth-child(7n), .cal .day.out:nth-child(7n+1) { background: #FBFBFA; } .cal .day.out .n { color: #C2C1BC; }
.cal .day:hover { background: #FAFAF8; }
.cal .day .n { font-size: 12.5px; font-weight: 500; color: var(--muted); width: 26px; height: 26px; margin: 0 0 2px; font-variant-numeric: tabular-nums; }
.cal .day.today, .cal .day.today:nth-child(7n), .cal .day.today:nth-child(7n+1) { background: #fff; } .cal .day.today .n { background: var(--ink); color: #fff; font-weight: 600; }
.more { font-size: 11.5px; color: var(--muted); padding: 1px 6px; font-weight: 500; cursor: pointer; } .more:hover { color: var(--ink); }

/* Chips: bar + tint = location, dot = status */
.ev, .ev.confirmed, .ev.in_progress, .ev.completed, .ev.pvev, .ev.pvs-proposal_sent, .ev.pvs-confirmed, .ev.pvs-completed {
  gap: 6px; padding: 2px 7px 2px 6px; border-radius: 3px 5px 5px 3px; font-size: 12px; font-weight: 500; line-height: 18px; color: var(--ink);
  background: color-mix(in srgb, var(--c, #555) 8%, #fff); border: 0; border-left: 3px solid var(--c, #555); }
.ev::before { display: none; }
.ev:hover { transform: none; box-shadow: 0 1px 3px rgba(20,20,20,.12); }
.ev .sd { width: 6px; height: 6px; margin: 0; }
.ev .tm { font-size: 11px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.ev .p { margin-left: auto; padding-left: 4px; font-size: 10.5px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; } .ev .p.ok { color: var(--ok); }
.ev.tentative, .ev.pvs-lead { background: #fff; color: var(--muted); border: 1px dashed var(--line-2); border-left: 3px solid color-mix(in srgb, var(--c, #555) 40%, #fff); }
.ev.tentative .sd { background: transparent; box-shadow: inset 0 0 0 1.5px #A9A7A1; }
.ev.completed { color: var(--muted); background: color-mix(in srgb, var(--c, #555) 5%, #fff); }
.ev.cancelled { background: #fff; color: var(--faint); text-decoration: line-through; border-left-color: var(--line-2); }
.ev.pvev .pvlogo { width: 12px; height: 12px; border-radius: 3px; margin: 0; }
.ev.team { border-left-color: var(--c, #555); }
.cal.week .ev.wk { display: block; padding: 7px 9px 8px; white-space: normal; border-radius: 3px 7px 7px 3px; }
.ev.wk .eh { display: flex; align-items: baseline; gap: 6px; } .ev.wk .eh .sd, .ev.wk .eh .pvlogo { transform: translateY(-1px); flex: 0 0 auto; }
.ev.wk .t { font-weight: 600; font-size: 12.5px; line-height: 1.3; white-space: normal; flex: 1 1 auto; }
.ev.wk .em { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.35; } .ev.wk .em .drv.xs { margin-left: auto; }
.ev.wk .ep { display: flex; align-items: center; gap: 7px; margin-top: 7px; font-size: 10.5px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; } .ev.wk .ep .progress { height: 3px; }

/* Status pills (tasks, events, posts): soft tint, coloured dot, normal case */
.spill, .spill.md, .spill.static { text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 500; height: 24px; padding: 0 9px 0 8px; border-radius: 6px; gap: 6px; border: 0;
  background: color-mix(in srgb, var(--sc, #9CA3AF) 15%, #fff); color: color-mix(in srgb, var(--sc, #9CA3AF) 52%, #141414); }
.spill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sc, #9CA3AF); flex: 0 0 auto; }
.spill.md { height: 28px; font-size: 12.5px; padding: 0 10px 0 9px; }
.spill svg.i { opacity: .55; margin-left: -1px; }
.spill:hover { filter: none; background: color-mix(in srgb, var(--sc, #9CA3AF) 24%, #fff); }
.spill.static:hover { background: color-mix(in srgb, var(--sc, #9CA3AF) 15%, #fff); }
.spill.tier, .spill.tiny, .spill.mini { height: 21px; font-size: 11.5px; padding: 0 7px 0 6px; gap: 5px; } .spill.tier::before, .spill.tiny::before, .spill.mini::before { width: 6px; height: 6px; }
.pill { text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 500; border-radius: 6px; height: 24px; padding: 0 9px; }
.pill.todo { background: color-mix(in srgb, var(--todo) 15%, #fff); color: #3F4146; } .pill.in_progress { background: color-mix(in srgb, var(--in_progress) 14%, #fff); color: #1E4C9A; }
.pill.in_review { background: color-mix(in srgb, var(--in_review) 14%, #fff); color: #5523A8; } .pill.done { background: color-mix(in srgb, var(--done) 14%, #fff); color: #1F5C3A; }

/* Tags: normal case; location = colour square + name */
.tag { text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 500; height: 22px; padding: 0 8px; border-radius: 6px; }
.tag.loc { background: transparent; color: var(--ink-2); padding: 0; height: auto; gap: 7px; }
.tag.loc::before { display: inline-block; content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c, #333); opacity: 1; }
.tag.tentative { background: #F2F1EE; color: #6A6A6F; }

/* No all-caps labels anywhere in the content */
:is(.section > h3, .stat .k, fieldset.box legend, .fsec, .bgh, .fhead, .fdiv, .settings .side-nav .snl, .agenda .date, .cal.week .day .wdl, .tg-dh .dn, .tg-allday .tg-gut span, .rfvwrap .yl, .rfvwrap .xl, .heat .hxl, .mb-title span, .ev .pvst, .table .tr.th, .evtable .month, .smlist .month, .late, .ev .cat) { text-transform: none; letter-spacing: 0; }
.section > h3 { font-size: 14px; font-weight: 600; color: var(--ink); }
.fsec { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.bgh { font-size: 13px; font-weight: 600; color: var(--ink); background: #FBFBFA; }
fieldset.box { background: #FBFBFA; border-radius: 12px; } fieldset.box legend { font-size: 13px; font-weight: 600; color: var(--ink); }
.fhead, .fdiv { font-size: 12.5px; font-weight: 600; }
.stat { background: #fff; border-radius: 10px; } .stat .k { font-size: 12px; font-weight: 500; }
.settings .side-nav .snl { font-size: 12px; font-weight: 500; }
.tg-dh .dn { font-size: 12px; font-weight: 500; } .tg-allday .tg-gut span { font-size: 11.5px; font-weight: 500; }
.tg-head, .tg-allday { background: #fff; } .tg-col.today { background: #FCFCFB; }
.rfvwrap .yl, .rfvwrap .xl, .heat .hxl { font-size: 11.5px; font-weight: 500; }
.late, .table.tasks .tr .late, .etask .late { font-size: 11.5px; font-weight: 600; background: transparent; padding: 0; color: var(--danger); }

/* Tables and lists */
.table, .tasklist, .props, .checklist, .panel, .ep-card, .agenda-m { border-radius: 12px; box-shadow: none; border-color: var(--line); }
.table .tr.th { font-size: 12px; font-weight: 500; color: var(--faint); background: #fff; }
.table .tr:hover, .tasklist .ti:hover, .etask:hover { background: #FAFAF8; }
.table .group { background: #FBFBFA; } .table .group:hover { background: #F6F5F2; }
.evtable .month, .smlist .month { font-size: 13px; font-weight: 600; color: var(--ink); background: #fff; padding: 20px 14px 8px; border-top: 0; }
.table.tasks .tr .ck, .etask .ck { background: transparent; padding: 0; font-weight: 500; color: var(--faint); font-variant-numeric: tabular-nums; }
.progress { height: 5px; border-radius: 3px; background: var(--soft-2); }
.board .col { background: #F6F5F2; border-radius: 12px; }
.board .tcard { border-radius: 10px; border-color: var(--line); box-shadow: 0 1px 1px rgba(20,20,20,.03); }
.notice { background: #fff; border-color: var(--line-2); border-radius: 10px; }
.empty { color: var(--faint); }

/* Drawer, modal */
.drawer { width: 660px; }
.drawer .dh { padding: 14px 24px; }
.drawer .db { padding: 26px 28px 48px; }
.props .prop { padding: 10px 16px; } .props .pl { font-weight: 500; }
.modal { border-radius: 16px; }
.modal .mh { padding: 18px 24px; } .modal .mh h2 { font-size: 18px; letter-spacing: -.01em; }
.modal .mb { padding: 22px 24px; } .modal .mf { padding: 14px 24px; background: #FBFBFA; border-radius: 0 0 16px 16px; }
.ftabs { padding: 10px 24px 0; }

/* Event page */
.ep-sec { margin-top: 44px; } .ep-sech h3 { font-size: 18px; letter-spacing: -.01em; }
.ep-card { padding: 18px 20px; } .ep-card h4 { font-size: 13.5px; }
.ep-card .dk { color: var(--faint); }
.checklist .addrow { display: flex; gap: 8px; align-items: center; } .checklist .addrow .input { flex: 1; width: auto; min-width: 0; }
.etask .spill, .table .tr .spill { justify-self: start; }
.opick .oc { border-radius: 8px; }
.opick .oc.on { background: color-mix(in srgb, var(--ink) 6%, #fff); border-color: var(--ink); color: var(--ink); box-shadow: inset 0 0 0 .5px var(--ink); }
@media (max-width: 960px) {
  .toolbar h2, .ttl, .page-title, .sethead h2 { font-size: 21px; }
  .ep-main h1 { font-size: 26px; }
  .filterbar .vsep, .legend.cal-legend { display: none; }
  .filterbar .fl { display: none; }
}

/* Settings sections: label column + form card, one row per topic */
.setsecs { max-width: 1040px; }
.setsec { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; padding: 28px 0; border-top: 1px solid var(--line); }
.setsec:first-child { border-top: 0; padding-top: 8px; }
.setsec .sh h3 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.setsec .sh p { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.setsec .setcard { padding: 22px 24px; gap: 18px; }
.setfoot { display: flex; justify-content: flex-end; gap: 8px; padding-top: 16px; margin: 2px -24px -22px; padding: 14px 24px; border-top: 1px solid var(--line); background: #FBFBFA; border-radius: 0 0 12px 12px; }
.colorrow { gap: 12px; } .input.color { width: 40px; height: 32px; padding: 3px; border-radius: 8px; cursor: pointer; }
.howto { background: #FBFBFA; border-radius: 10px; padding: 12px 14px; }
.howto > summary { cursor: pointer; list-style: none; display: flex; gap: 8px; align-items: baseline; font-size: 13px; }
.howto > summary::-webkit-details-marker { display: none; }
.howto > summary::before { content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(-45deg); transition: transform .15s; align-self: center; margin-right: 2px; }
.howto[open] > summary::before { transform: rotate(45deg); }
.howto[open] > summary { margin-bottom: 4px; }
.mycal-list { border-radius: 10px; }
@media (max-width: 960px) { .setsec { grid-template-columns: 1fr; gap: 12px; padding: 22px 0; } }

/* Task drawer: a light property list, clear owners, calm checklist and notes */
.drawer.task .db { padding: 22px 28px 48px; }
.drawer .dh .crumb { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.drawer .dh .tag.loc { font-size: 13px; }
.tname { margin: -6px -8px 14px; }
.drawer.task .props { border: 0; border-radius: 0; margin-top: 4px; overflow: visible; }
.drawer.task .props .prop { grid-template-columns: 116px 1fr; border-top: 0; padding: 6px 0; min-height: 40px; align-items: center; }
.drawer.task .props .pl { font-size: 13px; font-weight: 400; color: var(--faint); }
.drawer.task .props .prop + .prop { border-top: 0; }
.drawer.task .props .input.sm[type=date] { border-color: transparent; background: transparent; padding-left: 6px; margin-left: -6px; }
.drawer.task .props .input.sm[type=date]:hover:not([disabled]) { border-color: var(--line-2); background: #fff; }
.drawer.task .props .input.sm[type=date]:focus { border-color: var(--ink); background: #fff; }
.opick { gap: 6px; }
.opick .oc { border-color: transparent; background: transparent; color: var(--muted); padding: 3px 9px 3px 3px; }
.opick .oc .avatar { opacity: .55; filter: grayscale(.4); transition: opacity .12s, filter .12s; }
.opick .oc:hover { background: var(--soft); border-color: transparent; color: var(--ink); }
.opick .oc:hover .avatar { opacity: 1; filter: none; }
.opick .oc.on { background: #fff; border-color: var(--line-2); color: var(--ink); box-shadow: 0 1px 2px rgba(20,20,20,.06); font-weight: 600; }
.opick .oc.on .avatar { opacity: 1; filter: none; }
.drawer.task [data-done-task] { margin-top: 6px; }
.drawer.task .section { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.drawer.task .section > h3 { margin-bottom: 12px; }
.section > h3 .cnt { color: var(--faint); font-weight: 500; }
.checklist { border: 0; padding: 0; }
.checklist label { border-top: 0; padding: 7px 8px; margin: 0 -8px; border-radius: 7px; }
.checklist label:hover { background: #FAFAF8; }
.checklist input { width: 17px; height: 17px; }
.checklist .addrow { border-top: 0; padding: 6px 0 0; }
.checklist .addrow .input { border-style: dashed; background: transparent; }
.checklist .addrow .input:focus { border-style: solid; background: #fff; }
.notes { background: #FBFBFA; border-color: var(--line); border-radius: 10px; padding: 14px 16px; line-height: 1.6; }
.comments .c { padding: 12px 0; }
.comments .body { line-height: 1.55; }
details.about summary h3 { margin: 0; }
.parent { background: #FBFBFA; border-radius: 12px; }
.sib { padding: 7px 6px; }

/* Keyboard focus, always visible */
:is(.btn, .chip, .seg button, .spill, .sel, a, summary, .oc):focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
/* Settings sections: title above the card (Gabi 29 Oct) */
.setsecs { max-width: 860px; }
.setsec { grid-template-columns: 1fr; gap: 12px; padding: 26px 0 0; border-top: 0; }
.setsec:first-child { padding-top: 6px; }
.setsec .sh p { margin-top: 3px; }

/* Calendar + right column; the month fills the screen height */
.calwrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.calwrap.month .cal { display: flex; flex-direction: column; height: calc(100vh - 170px); min-height: 620px; }
.calwrap.month .cal .grid { flex: 1; grid-auto-rows: minmax(0, 1fr); }
.calwrap.month .cal .day { min-height: 0; overflow: hidden; }
.calrail { position: sticky; top: 20px; background: #fff; border: 1px solid var(--line); border-radius: 12px; max-height: calc(100vh - 170px); overflow-y: auto; }
.calrail section { padding: 16px 16px 14px; }
.calrail section + section { border-top: 1px solid var(--line); }
.calrail h4 { display: flex; align-items: baseline; gap: 8px; font-size: 13.5px; font-weight: 600; margin: 0 0 10px; }
.calrail h4 span { font-weight: 400; color: var(--faint); font-size: 12.5px; }
.calrail .rlink { margin-left: auto; font-size: 12.5px; font-weight: 500; color: var(--muted); text-decoration: none; } .calrail .rlink:hover { color: var(--ink); }
.rr { display: flex; align-items: center; gap: 10px; padding: 7px 8px; margin: 0 -8px; border-radius: 8px; cursor: pointer; }
.rr:hover, .rtask:hover { background: #F7F6F3; }
.rr .rbar { width: 3px; align-self: stretch; border-radius: 2px; background: var(--c); flex: 0 0 auto; }
.rt { font-size: 13px; font-weight: 500; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rt .pvlogo { width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; }
.rm { font-size: 12px; color: var(--muted); margin-top: 1px; }
.rday { display: flex; gap: 10px; align-items: flex-start; } .rday + .rday { margin-top: 6px; }
.rdate { width: 34px; flex: 0 0 auto; text-align: center; padding-top: 6px; line-height: 1.1; }
.rdate b { display: block; font-size: 16px; font-weight: 600; } .rdate span { font-size: 11px; color: var(--faint); }
.rday .rr { margin-left: 0; }
.rtask { display: flex; align-items: flex-start; gap: 10px; padding: 7px 8px; margin: 0 -8px; border-radius: 8px; cursor: pointer; }
.rtask .cb { margin-top: 1px; flex: 0 0 auto; }
.rtask .due { white-space: nowrap; padding-top: 1px; }
.rempty { font-size: 12.5px; color: var(--faint); padding: 2px 0 4px; }
.rmore { display: block; font-size: 12.5px; color: var(--muted); text-decoration: none; padding: 6px 0 0; } .rmore:hover { color: var(--ink); }
@media (max-width: 1240px) { .calwrap { grid-template-columns: 1fr; } .calrail { position: static; max-height: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); } .calrail section + section { border-top: 0; border-left: 1px solid var(--line); } }

/* Tasks: summary tiles that filter */
.ttiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: -2px 0 18px; }
.ttile { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: end; gap: 2px 10px; text-align: left; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .12s, box-shadow .12s; position: relative; overflow: hidden; }
.ttile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--tc, var(--line-2)); }
.ttile.overdue { --tc: var(--danger); } .ttile.week { --tc: #D97706; } .ttile.open { --tc: #2F6FD6; } .ttile.done { --tc: var(--ok); }
.ttile .tl { font-size: 13px; font-weight: 500; color: var(--muted); grid-column: 1; grid-row: 1; }
.ttile b { grid-column: 2; grid-row: 1 / span 2; font-size: 30px; font-weight: 600; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.ttile.overdue b { color: var(--danger); }
.ttile .ts { font-size: 12px; color: var(--faint); grid-column: 1; grid-row: 2; }
.ttile:hover { border-color: #CFCEC9; }
.ttile.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
@media (max-width: 960px) { .ttiles { grid-template-columns: 1fr 1fr; } }
.calwrap.month .cal .day .ev:not(.wk) { align-items: flex-start; white-space: normal; padding-top: 3px; padding-bottom: 3px; }
.calwrap.month .cal .day .ev:not(.wk) .t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 16px; flex: 1 1 auto; min-width: 0; }
.calwrap.month .cal .day .ev:not(.wk) .sd { margin-top: 5px; } .calwrap.month .cal .day .ev:not(.wk) .tm, .calwrap.month .cal .day .ev:not(.wk) .p { line-height: 16px; }
.calwrap.month .cal .day .ev:not(.wk) .pvlogo { margin-top: 2px; }
@media (min-width: 1600px) { .calwrap { grid-template-columns: minmax(0, 1fr) 320px; } }
.calwrap.month .cal .grid { min-height: 0; overflow: hidden; } .calwrap.month .cal .head { flex: 0 0 auto; }
.calwrap.month .cal .day .ev:not(.wk) .p { display: none; } .calwrap.month .cal .day .ev:not(.wk) .t { word-break: break-word; } .calwrap { grid-template-columns: minmax(0, 1fr) 280px; }
/* Google Business: schedule row + preview button / event */
.gbpsch { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; background: #FEF3C7; color: #92400E; font-size: 12.5px; font-weight: 600; }
.gbpsch.ok { background: #DCFCE7; color: #166534; }
.gbperr { margin-top: 6px; padding: 7px 10px; border-radius: 8px; background: #FEF2F2; color: #B91C1C; font-size: 12.5px; line-height: 1.4; }
.gbpprev .gbpev { padding: 10px 14px 0; display: flex; flex-direction: column; gap: 2px; }
.gbpprev .gbpcta { margin: 0 14px 14px; padding: 7px 0; text-align: center; border: 1px solid var(--line); border-radius: 999px; color: #1a73e8; font-weight: 600; font-size: 13px; }
/* Google post drawer */
.gsched { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-top: 6px; background: #fafafa; }
.gsched.s-completed { background: #F0FDF4; border-color: #BBF7D0; }
.gsched.s-scheduled { background: #FFFBEB; border-color: #FDE68A; }
.gsched.s-posted { background: #F0FDF4; border-color: #86EFAC; }
.gsched .gs-top { display: flex; align-items: center; gap: 8px; }
.gsched .gs-k { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.gsched .gs-k .i { width: 15px; height: 15px; }
.gsched .gs-head { font-size: 18px; font-weight: 600; letter-spacing: -.01em; margin-top: 10px; }
.gsched .gs-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.gsched .gs-row { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.gsched .gs-act { margin-left: auto; }
.gs-f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 500; color: var(--muted); }
.gs-f.wide { margin-top: 12px; }
.gs-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.gsec { margin-top: 20px; }
.gsec textarea.input.pcap { min-height: 190px; }
@media (max-width: 640px) { .gs-2 { grid-template-columns: 1fr; } .gsched .gs-act { margin-left: 0; width: 100%; } .gsched .gs-act .btn { width: 100%; justify-content: center; } }

.gsched .gs-also { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(0,0,0,.07); }
.gsched .gs-al { font-size: 12px; font-weight: 600; color: var(--muted); margin-right: 2px; }
.gsched .gs-chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; cursor: pointer; }
.gsched .gs-chk input { width: 15px; height: 15px; accent-color: #111; margin: 0; }
.gsched .gs-chk.off { color: var(--muted); cursor: default; }
.gsched .gs-bad { color: #B91C1C; font-weight: 500; }

/* Website switch (Apple style) */
.wsw { position: relative; width: 34px; height: 20px; border-radius: 999px; border: 0; padding: 0; background: #d4d4d8; cursor: pointer; transition: background .18s; flex: none; vertical-align: middle; }
.wsw i { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .18s; }
.wsw.on { background: #34C759; } .wsw.on i { transform: translateX(14px); }
.wsw.lg { width: 44px; height: 26px; } .wsw.lg i { width: 22px; height: 22px; } .wsw.lg.on i { transform: translateX(18px); }
.wsw:disabled { opacity: .45; cursor: default; }
.webcard .webf { display: grid; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.webcard .webf .field { font-size: 12px; }
.webcard .webimg { display: grid; gap: 8px; justify-items: start; }
.webcard .webimg img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.webcard .webimg-empty { width: 100%; padding: 18px; border: 1px dashed var(--line); border-radius: 8px; font-size: 12.5px; color: var(--muted); text-align: center; }
.navtop { display: flex; flex-direction: column; margin: 0 0 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); } .navtop a { font-weight: 600 !important; }
/* Main menu + section tabs (25 Nov 2026) */
.navtop { display: flex; flex-direction: column; gap: 2px; margin: 0 0 12px; padding-bottom: 0; border-bottom: 0; }
.navtop a { font-weight: 600 !important; font-size: 14px !important; padding: 9px 10px !important; }
.navtop a svg.i { width: 17px; height: 17px; }
.navnew { display: flex; flex-direction: column; gap: 1px; padding-top: 10px; border-top: 1px solid var(--line); }
.navnew .nnew { opacity: .75; } .navnew .nnew:hover { opacity: 1; }
.sectabs { display: inline-flex; gap: 2px; padding: 3px; margin: 0 0 18px; background: var(--soft, #f1f1f3); border: 1px solid var(--line); border-radius: 10px; }
.sectabs a { padding: 7px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; }
.sectabs a:hover { color: var(--ink); }
.sectabs a.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 0 0 1px var(--line); }
@media (max-width: 720px) { .sectabs { display: flex; overflow-x: auto; } .sectabs a { white-space: nowrap; } }
/* Task drawer in the Easy Task style (25 Nov 2026): wide panel, big title, 2-column field grid with icons, comments column on the right */
.drawer.task.et { width: min(1040px, 100%); }
.drawer.task.et .tsplit { flex: 1; display: flex; min-height: 0; }
.drawer.task.et .tmain { flex: 1; min-width: 0; overflow-y: auto; padding: 22px 32px 48px; }
.drawer.task.et .tside { width: 340px; flex: none; border-left: 1px solid var(--line); background: #fafafa; overflow-y: auto; padding: 18px 20px 40px; }
.drawer.task.et .tside .section { margin-top: 0; }
.drawer.task.et .tside h3 { font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--ink); }
.drawer.task.et .tname, .drawer.task.et .tmain > h2 { font-size: 26px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; border: 0; padding: 4px 0; width: 100%; background: transparent; }
.drawer.task.et .tname:focus { outline: none; box-shadow: inset 0 -2px 0 var(--line); }
.drawer.task.et .props { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; row-gap: 2px; margin-top: 18px; }
.drawer.task.et .prop { display: flex; align-items: flex-start; gap: 8px; min-height: 38px; padding: 4px 0; border: 0; }
.drawer.task.et .prop .pl { width: 116px; flex: none; display: flex; align-items: center; gap: 8px; min-height: 30px; color: #71717a; font-size: 13px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.drawer.task.et .prop .pl svg.i { width: 15px; height: 15px; color: #a1a1aa; stroke-width: 1.8; }
.drawer.task.et .prop > div { flex: 1; min-width: 0; display: flex; align-items: center; min-height: 30px; flex-wrap: wrap; gap: 6px; }
.drawer.task.et .section { margin-top: 26px; }
.drawer.task.et .section h3 { font-size: 14px; font-weight: 650; text-transform: none; letter-spacing: 0; }
@media (max-width: 900px) { .drawer.task.et .tsplit { flex-direction: column; overflow-y: auto; } .drawer.task.et .tmain { overflow: visible; padding: 18px 18px 24px; } .drawer.task.et .tside { width: auto; border-left: 0; border-top: 1px solid var(--line); overflow: visible; } .drawer.task.et .props { grid-template-columns: 1fr; } }
/* UI pass 2 (25 Nov 2026) */
.side .sech { margin: 14px 10px 6px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint, #a1a1aa); }
.navnew { flex-direction: row !important; flex-wrap: wrap; gap: 6px !important; padding-top: 12px !important; }
.navnew .nnew { opacity: 1 !important; flex: 1; justify-content: center; border: 1px solid var(--line); border-radius: 8px; padding: 7px 6px !important; font-size: 12.5px; font-weight: 600; background: #fff; }
.navnew .nnew:hover { border-color: #d4d4d8; background: #fafafa; }
.navnew .nnew svg.i { width: 13px; height: 13px; }
.ttl .yr { color: var(--muted); font-weight: 600; }
.drawer.task.et textarea.tname { resize: none; overflow: hidden; font-family: inherit; color: var(--ink); min-height: 36px; }
.drawer.task.et .opick.compact .oc:not(.on) { display: none; }
.drawer.task.et .opick.compact.open .oc { display: inline-flex; }
.drawer.task.et .opick.compact { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.drawer.task.et .oadd { border: 1px dashed #d4d4d8; background: #fff; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; }
.drawer.task.et .oadd:hover { color: var(--ink); border-color: #a1a1aa; }
.drawer.task.et .dh .btn.primary.sm { height: 30px; }
/* "+ New" button + menu (25 Nov 2026) */
.navnew { position: relative; display: block !important; padding-top: 14px !important; }
.newbtn { width: 100%; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--ink, #15171A); color: #fff; font: 600 13.5px/1 inherit; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.12); transition: background .15s, transform .15s; }
.newbtn:hover { background: #2a2d33; } .newbtn:active { transform: scale(.98); }
.newbtn svg.i { width: 15px; height: 15px; stroke: #fff; } .newbtn .chev2 { margin-left: auto; width: 13px; height: 13px; opacity: .7; }
.newmenu { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(16,17,20,.16); padding: 6px; display: flex; flex-direction: column; gap: 2px; animation: pop .14s ease-out; }
.newmenu button { display: flex; align-items: flex-start; gap: 10px; text-align: left; border: 0; background: transparent; padding: 9px 10px; border-radius: 8px; cursor: pointer; color: var(--ink); }
.newmenu button:hover { background: #f4f4f5; }
.newmenu button svg.i { width: 16px; height: 16px; margin-top: 1px; color: #71717a; flex: none; }
.newmenu b { display: block; font-size: 13px; font-weight: 600; } .newmenu small { display: block; font-size: 11.5px; color: #71717a; margin-top: 2px; line-height: 1.3; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
/* Venue as the first column of the task list (25 Nov 2026) */
.table.tasks .tr { grid-template-columns: 26px 132px minmax(220px, 2fr) minmax(160px, 1.3fr) 150px 120px 120px; }
.table.tasks.noev .tr { grid-template-columns: 26px 132px minmax(240px, 2fr) 160px 140px 120px; }
.vtag { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.vtag i { width: 9px; height: 9px; border-radius: 3px; background: var(--c); flex: none; }
.vtag.none { color: var(--faint, #a1a1aa); font-weight: 500; }
@media (max-width: 760px) { .table.tasks .tr, .table.tasks.noev .tr { grid-template-columns: 26px minmax(0, 1fr) auto; } .table.tasks .tr > .vcol { display: none; } .table.tasks .tr > :nth-child(n+4):not(:last-child) { display: none; } }
/* Venue logos in the sidebar (25 Nov 2026) */
.side .loc .vlogo { width: 22px; height: 22px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.08); object-fit: cover; }
.side .loc.off .vlogo { opacity: .35; filter: grayscale(1); }
.side .loc { gap: 10px; }
/* Venue color ring around each logo (the three Meximodo logos are the same) */
.side .loc .vlogo { box-shadow: 0 0 0 2px #f4f4f5, 0 0 0 4px var(--c) !important; margin: 2px; }
.side .loc.off .vlogo { box-shadow: 0 0 0 2px #f4f4f5, 0 0 0 4px #d4d4d8 !important; }
/* Le Malt Hospitality Group logo at the top of the sidebar (25 Nov 2026) */
.side .brand.lmhg { display: block; padding: 4px 2px 10px; }
.side .lmhg-tile { background: #15171A; border-radius: 12px; padding: 14px 16px 12px; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.side .lmhg-tile img { width: 100%; max-width: 168px; height: auto; display: block; }
.side .apptag { margin: 8px 4px 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: center; }
