/* =========================================================
   Launchpad by SquareOne — theme
   Brand colours from the SquareOne logo:
     green  #6ab43e   deep green #3fab35   charcoal #3c3c3b
   ========================================================= */
:root, [data-bs-theme=light] {
  --brand: #6ab43e;
  --brand-2: #3fab35;
  --brand-ink: #2f7d25;          /* green text on light backgrounds */
  --btn: #45a033;
  --btn-hover: #38892a;
  --charcoal: #3c3c3b;
  --brand-grad: linear-gradient(135deg, #6ab43e 0%, #3fab35 100%);

  --ink: #2a2a29;
  --body: #55595c;
  --muted: #898e92;
  --bg: #f5f7f4;
  --surface: #ffffff;
  --surface-2: #fafbf9;
  --lane: #eef1ec;
  --line: #e1e5de;
  --line2: #ecefe9;
  --soft: #eef7e8;
  --hover: #f2f5f0;
  --red: #d92d20;
  --red-soft: #fdecea;
  --amber: #b45309;
  --amber-soft: #fef3e2;
  --shadow-sm: 0 1px 1px rgba(40, 44, 38, .04), 0 1px 3px rgba(40, 44, 38, .08);
  --shadow-md: 0 2px 6px rgba(40, 44, 38, .08), 0 8px 20px rgba(40, 44, 38, .10);
  --shadow-lg: 0 16px 40px -8px rgba(30, 34, 28, .28), 0 8px 16px -8px rgba(0, 0, 0, .2);

  --bs-body-font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--body);
  --bs-emphasis-color: var(--ink);
  --bs-border-color: var(--line);
  --bs-secondary-color: var(--muted);
  --bs-link-color: var(--brand-ink);
  --bs-link-color-rgb: 47, 125, 37;
  --bs-link-hover-color: var(--brand-2);
  --bs-link-hover-color-rgb: 63, 171, 53;
  --bs-success: #3fab35;
  --bs-success-rgb: 63, 171, 53;
  --bs-focus-ring-color: rgba(106, 180, 62, .3);
}

[data-bs-theme=dark] {
  --brand-ink: #8fd165;
  --btn: #4fa83a;
  --btn-hover: #5cb846;

  --ink: #f1f2ef;
  --body: #c6c9c2;
  --muted: #8d9189;
  --bg: #1a1b1a;
  --surface: #242523;
  --surface-2: #2a2b29;
  --lane: #1f201f;
  --line: #363834;
  --line2: #2f302e;
  --soft: rgba(106, 180, 62, .14);
  --hover: #2d2e2c;
  --red: #ff6b5e;
  --red-soft: rgba(255, 107, 94, .14);
  --amber: #f2b441;
  --amber-soft: rgba(242, 180, 65, .14);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, .45);
  --shadow-lg: 0 18px 44px -8px rgba(0, 0, 0, .7);

  --bs-body-bg: var(--bg);
  --bs-body-color: var(--body);
  --bs-emphasis-color: var(--ink);
  --bs-border-color: var(--line);
  --bs-secondary-color: var(--muted);
  --bs-link-color: var(--brand-ink);
  --bs-link-color-rgb: 143, 209, 101;
  --bs-link-hover-color: #a7dd84;
  --bs-tertiary-bg: var(--surface-2);
}

html, body { height: 100%; }
body { font-size: 14px; -webkit-font-smoothing: antialiased; background: var(--bg); color: var(--body); }
h1, h2, h3, h4, h5 { color: var(--ink); letter-spacing: -.01em; }

/* ---------- Bootstrap tweaks ---------- */
.btn { font-weight: 600; font-size: 14px; border-radius: 8px; padding: 7px 14px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; }
.btn-lg { font-size: 15px; padding: 10px 20px; }
.btn-primary { --bs-btn-bg: var(--btn); --bs-btn-border-color: var(--btn); --bs-btn-hover-bg: var(--btn-hover); --bs-btn-hover-border-color: var(--btn-hover); --bs-btn-active-bg: var(--btn-hover); --bs-btn-active-border-color: var(--btn-hover); --bs-btn-disabled-bg: var(--btn); --bs-btn-disabled-border-color: var(--btn); --bs-btn-focus-shadow-rgb: 106, 180, 62; box-shadow: 0 1px 2px rgba(63, 171, 53, .35), 0 2px 8px rgba(63, 171, 53, .2); }
.btn-white { --bs-btn-bg: var(--surface); --bs-btn-border-color: var(--line); --bs-btn-color: var(--ink); --bs-btn-hover-bg: var(--hover); --bs-btn-hover-border-color: var(--line); --bs-btn-hover-color: var(--ink); --bs-btn-active-bg: var(--hover); --bs-btn-active-color: var(--ink); --bs-btn-active-border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ship { --bs-btn-bg: var(--brand-2); --bs-btn-border-color: var(--brand-2); --bs-btn-color: #fff; --bs-btn-hover-bg: #34932c; --bs-btn-hover-border-color: #34932c; --bs-btn-hover-color: #fff; --bs-btn-active-bg: #34932c; --bs-btn-active-color: #fff; box-shadow: 0 2px 10px rgba(63, 171, 53, .4); }
.btn-outline-danger { --bs-btn-color: var(--red); --bs-btn-border-color: color-mix(in srgb, var(--red) 40%, transparent); --bs-btn-hover-bg: var(--red); --bs-btn-hover-border-color: var(--red); }
.btn-icon { width: 36px; height: 36px; padding: 0; font-size: 16px; }
.form-control, .form-select { background-color: var(--surface); border-color: var(--line); border-radius: 8px; color: var(--ink); font-size: 14px; box-shadow: var(--shadow-sm); }
.form-control::placeholder { color: var(--muted); }
.form-control:focus, .form-select:focus { background-color: var(--surface); color: var(--ink); border-color: var(--brand); box-shadow: 0 0 0 3px rgba(106, 180, 62, .22); }
.form-check-input:checked { background-color: var(--btn); border-color: var(--btn); }
.form-check-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(106, 180, 62, .22); }
.form-label { font-size: 12px; font-weight: 600; color: var(--body); margin-bottom: 6px; }
.form-floating > label { color: var(--muted); }
.dropdown-menu { --bs-dropdown-bg: var(--surface); --bs-dropdown-border-color: var(--line); --bs-dropdown-link-color: var(--ink); --bs-dropdown-link-hover-bg: var(--hover); --bs-dropdown-link-hover-color: var(--ink); --bs-dropdown-link-active-bg: var(--soft); --bs-dropdown-link-active-color: var(--brand-ink); box-shadow: var(--shadow-lg); border-radius: 10px; padding: 6px; font-size: 14px; }
.dropdown-item { border-radius: 6px; padding: 7px 10px; display: flex; gap: 10px; align-items: center; }
.modal-content { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); }
.modal-header, .modal-footer { border-color: var(--line2); }
.modal-title { font-weight: 700; font-size: 17px; }
.text-muted { color: var(--muted) !important; }
.alert-danger { --bs-alert-bg: var(--red-soft); --bs-alert-color: var(--red); --bs-alert-border-color: transparent; }
.text-danger { color: var(--red) !important; }

/* ---------- Brand ---------- */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { height: 30px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font-family: Poppins, Inter, sans-serif; font-weight: 700; font-size: 17px; color: var(--ink); letter-spacing: -.01em; }
.brand-text small { font-size: 10.5px; font-weight: 600; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

/* =========================================================
   Public pages (landing, sign-in)
   ========================================================= */
body.public { display: flex; flex-direction: column; min-height: 100%; background: radial-gradient(1200px 500px at 85% -10%, var(--soft), transparent 60%), var(--bg); }
/* Sticky, frosted header; its contents line up with the page sections (1160px). */
.pub-top { position: sticky; top: 0; z-index: 1030; padding: 0 clamp(16px, 4vw, 48px); background: color-mix(in srgb, var(--bg) 78%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s, background .2s; }
.pub-top.scrolled { background: color-mix(in srgb, var(--surface) 84%, transparent); border-bottom-color: var(--line2); box-shadow: 0 6px 24px -14px rgba(0, 0, 0, .25); }
.pub-top-inner { max-width: 1160px; margin: 0 auto; height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pub-main { flex: 1; padding: 20px clamp(16px, 4vw, 48px) 40px; }
.pub-foot { padding: 20px; text-align: center; color: var(--muted); font-size: 12.5px; }
.hero { max-width: 1160px; margin: 30px auto 0; display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: center; }
.eyebrow { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; font-size: 13px; color: var(--brand-ink); background: var(--soft); padding: 5px 12px; border-radius: 99px; margin-bottom: 18px; }
.hero h1 { font-family: Poppins, Inter, sans-serif; font-size: clamp(30px, 4.4vw, 50px); font-weight: 700; line-height: 1.1; letter-spacing: -.025em; margin-bottom: 18px; }
.hero h1 .hl { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 17px; line-height: 1.6; max-width: 520px; margin-bottom: 28px; }
.hero-art { display: flex; gap: 12px; padding: 20px; background: var(--surface); border: 1px solid var(--line2); border-radius: 18px; box-shadow: var(--shadow-lg); transform: rotate(1.2deg); }
.mini-lane { flex: 1; background: var(--lane); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mini-lane.done { background: linear-gradient(180deg, var(--soft), var(--lane) 120px); }
.mini-head { font-weight: 600; font-size: 12px; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.mini-head .dot { width: 7px; height: 7px; border-radius: 50%; }
.mini-head .bi { color: var(--brand); margin-left: auto; }
.mini-card { background: var(--surface); border-radius: 8px; padding: 9px 10px; box-shadow: var(--shadow-sm); font-size: 12px; position: relative; }
.mini-card b { display: block; color: var(--ink); font-weight: 600; margin: 4px 0 8px; }
.mini-card > i { display: block; height: 4px; border-radius: 9px; background: linear-gradient(90deg, var(--brand) var(--w), var(--line2) var(--w)); }
.mini-badge { display: inline-block; font-size: 10px; font-weight: 600; padding: 1px 7px; border-radius: 99px; color: var(--b); background: color-mix(in srgb, var(--b) 14%, transparent); }
.mini-card .tick { position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-2); color: #fff; display: grid; place-items: center; font-size: 11px; }
.auth-wrap { max-width: 980px; margin: 10px auto; background: var(--surface); border: 1px solid var(--line2); border-radius: 16px; box-shadow: var(--shadow-md); padding: clamp(20px, 4vw, 40px); }
.auth-wrap h1 { font-family: Poppins, Inter, sans-serif; font-size: 26px; font-weight: 700; }
.auth-wrap h2, .auth-wrap h3, .auth-wrap h4 { font-size: 17px; font-weight: 600; }
.auth-wrap hr { border-color: var(--line); opacity: 1; }
.auth-wrap .btn-primary.w-100 { padding: 10px; }
.auth-wrap .nav-pills .nav-link { color: var(--body); border-radius: 8px; }
.auth-wrap .nav-pills .nav-link.active { background: var(--soft); color: var(--brand-ink); font-weight: 600; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } .hero-art { transform: none; } }

/* ---------- Landing page ---------- */
html { scroll-behavior: smooth; }
.pub-nav { display: flex; gap: 4px; }
.pub-nav a { color: var(--body); text-decoration: none; font-weight: 600; font-size: 14px; padding: 7px 12px; border-radius: 8px; }
.pub-nav a:hover { color: var(--ink); background: var(--hover); }
@media (max-width: 700px) { .pub-nav { display: none; } }

.hero-ticks { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; color: var(--muted); font-weight: 500; }
.hero-ticks .bi { color: var(--brand-2); margin-right: 6px; }
.hero-stage { position: relative; padding: 24px 10px 40px; }
.mini-count { margin-left: auto; color: var(--muted); font-weight: 600; font-size: 11px; }
.mini-card small { display: block; color: var(--muted); font-size: 10.5px; margin-top: 4px; }
.mini-card small + b { margin-top: 1px; }
.mini-price { display: block; font-weight: 700; color: var(--ink); font-size: 12px; margin: -4px 0 7px; }
.mini-av, .mp-people i, .mc-msg > i { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--a); color: #fff; font-size: 8.5px; font-weight: 700; font-style: normal; }
.mini-av { position: absolute; right: 8px; bottom: 14px; }
.float-note { position: absolute; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line2); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 10px 14px 10px 10px; max-width: 290px; font-size: 12.5px; animation: floaty 6s ease-in-out infinite; }
.float-note b { display: block; color: var(--ink); font-weight: 600; line-height: 1.35; }
.float-note small { color: var(--muted); font-size: 11px; }
.fn-ic { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-grad); color: #fff; font-size: 13px; }
.fn-ic.blue { background: #0ea5e9; }
.note-1 { left: -14px; bottom: 0; }
.note-2 { right: -6px; top: -6px; animation-delay: -3s; }
.pill { display: inline-block; font-size: 11px; font-weight: 600; padding: 0 8px; border-radius: 99px; background: var(--surface); border: 1px solid color-mix(in srgb, #0ea5e9 45%, var(--line)); color: var(--ink); white-space: nowrap; }
@keyframes floaty { 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .float-note { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 860px) { .note-1 { left: 4px; } .note-2 { right: 4px; } }

.lp-section { max-width: 1160px; margin: 110px auto 0; scroll-margin-top: 96px; /* clears the sticky header */ }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.sec-head h2, .tour-copy h2, .cta-band h2 { font-family: Poppins, Inter, sans-serif; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.sec-head h2 { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 10px; }
.sec-head p { font-size: 16.5px; color: var(--muted); margin: 0; }

.usp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.usp { background: var(--surface); border: 1px solid var(--line2); border-radius: 16px; padding: 24px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.usp:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.usp-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); color: var(--brand-ink); font-size: 20px; margin-bottom: 14px; }
.usp h3 { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.usp p { color: var(--body); font-size: 14.5px; line-height: 1.55; margin: 0; }
@media (max-width: 900px) { .usp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .usp-grid { grid-template-columns: 1fr; } }

.tour { display: flex; flex-direction: column; gap: 90px; }
.tour-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.tour-row.flip .tour-copy { order: 2; }
.tour-copy h2 { font-size: clamp(24px, 2.8vw, 32px); margin-bottom: 12px; }
.tour-copy > p { font-size: 16px; line-height: 1.6; color: var(--body); }
.tick-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 9px; }
.tick-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--body); font-size: 15px; }
.tick-list .bi { color: var(--brand-2); font-size: 18px; line-height: 1.2; }
.tour-art { background: radial-gradient(400px 260px at 70% 20%, var(--soft), transparent 70%), var(--lane); border-radius: 22px; padding: clamp(18px, 4vw, 40px); }
@media (max-width: 860px) { .tour-row { grid-template-columns: 1fr; gap: 26px; } .tour-row.flip .tour-copy { order: 0; } }

.mock-panel, .mock-chat, .mock-table { background: var(--surface); border: 1px solid var(--line2); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 18px; font-size: 13px; }
.mp-head { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
.mp-head b { display: block; color: var(--ink); font-size: 16px; }
.mp-head small { color: var(--muted); }
.mp-dot { width: 12px; height: 12px; border-radius: 4px; flex: 0 0 12px; }
.mp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.mock-panel label { display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.mp-grid span { display: flex; align-items: center; gap: 4px; min-height: 32px; border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; color: var(--ink); }
.mp-people i + i { margin-left: -9px; box-shadow: 0 0 0 2px var(--surface); }
.mp-price { font-weight: 700; }
.mp-task { display: flex; align-items: center; gap: 9px; padding: 6px 0; color: var(--ink); }
.mp-task > i { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: 12px; }
.mp-task.done { color: var(--muted); text-decoration: line-through; }
.mp-task.done > i { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }

.mock-chat { display: flex; flex-direction: column; gap: 10px; }
.mc-msg { display: flex; gap: 8px; align-items: flex-end; }
.mc-msg p { margin: 0; padding: 8px 12px; border-radius: 14px 14px 14px 4px; background: color-mix(in srgb, #0ea5e9 12%, var(--surface)); border: 1px solid color-mix(in srgb, #0ea5e9 22%, transparent); color: var(--ink); max-width: 85%; line-height: 1.5; }
.mc-msg.mine { justify-content: flex-end; }
.mc-msg.mine p { background: color-mix(in srgb, var(--brand) 16%, var(--surface)); border-color: color-mix(in srgb, var(--brand) 30%, transparent); border-radius: 14px 14px 4px 14px; }
.mc-typing { display: flex; align-items: center; gap: 3px; color: var(--muted); font-size: 12px; padding-left: 28px; }
.mc-typing span { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.mc-typing span:nth-child(2) { animation-delay: .2s; }
.mc-typing span:nth-child(3) { animation-delay: .4s; margin-right: 5px; }

.mock-table { padding: 6px; }
.mt-row { display: grid; grid-template-columns: 34px 1.4fr 1.1fr 1fr; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line2); color: var(--ink); }
.mt-row > span:first-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.mt-row > span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.mt-row i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--s); margin-right: 6px; }
.mt-head { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.mt-total { border-bottom: 0; background: var(--surface-2); border-radius: 10px; font-weight: 700; }

.feat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.feat-grid > div { display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line2); border-radius: 12px; padding: 14px; }
.feat-grid .bi { grid-row: span 2; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--lane); color: var(--brand-ink); font-size: 16px; }
.feat-grid b { color: var(--ink); font-size: 14px; }
.feat-grid span { color: var(--muted); font-size: 12.5px; }
.feat-grid .soon { border-style: dashed; }
@media (max-width: 1000px) { .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .feat-grid { grid-template-columns: 1fr; } }

.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line2); border-radius: 18px; padding: 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.plan h3 { font-family: Poppins, Inter, sans-serif; font-size: 20px; font-weight: 700; color: var(--ink); margin: 0 0 4px; }
.plan-sub { color: var(--muted); font-size: 14px; min-height: 42px; }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 20px; }
.plan-price .amt { font-family: Poppins, Inter, sans-serif; font-size: 40px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.plan-price .amt.small { font-size: 28px; }
.plan-price .per { color: var(--muted); font-size: 14px; }
.plan-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--body); font-size: 14.5px; }
.plan-list .bi { color: var(--brand-2); font-size: 17px; line-height: 1.2; }
.plan-list .lead-in { font-weight: 600; color: var(--ink); }
.plan.pro { border: 2px solid var(--brand); box-shadow: 0 20px 50px -20px color-mix(in srgb, var(--brand) 55%, transparent); }
.plan-flag { position: absolute; top: -13px; left: 28px; background: var(--brand-grad); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 99px; }
/* Plans inside the app */
.plan-chip { flex: 0 0 auto; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 99px; background: rgba(255, 255, 255, .14); color: #e6e8e3; }
.plan-chip.pro { background: var(--brand-grad); color: #fff; }
body.side-collapsed .plan-chip { display: none; }
.upgrade-item { color: var(--brand-ink) !important; font-weight: 600; }
.pro-tag { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 700; color: var(--brand-ink); background: var(--soft); border-radius: 99px; padding: 1px 8px; vertical-align: 1px; }
.pro-lock { display: flex; align-items: center; gap: 12px; border: 1px dashed color-mix(in srgb, var(--brand) 45%, var(--line)); background: color-mix(in srgb, var(--brand) 6%, var(--surface)); border-radius: 12px; padding: 12px 14px; }
.pro-lock > .bi { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; display: grid; place-items: center; background: var(--soft); color: var(--brand-ink); font-size: 17px; }
.pro-lock > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pro-lock b { color: var(--ink); font-size: 13.5px; }
.pro-lock span { color: var(--muted); font-size: 12.5px; }
.modal-content.upgrade { overflow: hidden; }
.upgrade-band { position: relative; background: var(--brand-grad); color: #fff; text-align: center; padding: 28px 24px 22px; }
.upgrade-band .btn-close { position: absolute; top: 14px; right: 14px; }
.upgrade-ic { width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, .2); display: inline-grid; place-items: center; font-size: 22px; margin-bottom: 10px; }
.upgrade-band h5 { font-family: Poppins, Inter, sans-serif; font-weight: 700; font-size: 22px; margin: 0 0 4px; }
.upgrade-band p { margin: 0; opacity: .92; }
.upgrade-reason { background: var(--soft); color: var(--brand-ink); font-weight: 600; font-size: 13.5px; border-radius: 10px; padding: 10px 12px; }
.soon-tag { font-size: 10.5px; font-weight: 700; color: var(--brand-ink); background: var(--soft); border-radius: 99px; padding: 1px 8px; margin-left: 4px; white-space: nowrap; }
.price-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 18px; }
@media (max-width: 960px) { .price-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } .plan-sub { min-height: 0; } }

.faq .accordion { max-width: 760px; margin: 0 auto; --bs-accordion-bg: var(--surface); --bs-accordion-border-color: var(--line2); --bs-accordion-btn-focus-box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); --bs-accordion-active-bg: var(--soft); --bs-accordion-active-color: var(--brand-ink); --bs-accordion-border-radius: 14px; --bs-accordion-inner-border-radius: 13px; }
.faq .accordion-button { font-weight: 600; color: var(--ink); font-size: 15.5px; }
.faq .accordion-body { color: var(--body); line-height: 1.6; }

.cta-band { max-width: 1160px; margin: 110px auto 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: var(--brand-grad); color: #fff; border-radius: 22px; padding: clamp(28px, 5vw, 48px); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: -40% -10% auto auto; width: 420px; height: 420px; background: radial-gradient(closest-side, rgba(255, 255, 255, .22), transparent); pointer-events: none; }
.cta-band h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); margin: 0 0 6px; }
.cta-band p { margin: 0; opacity: .9; font-size: 16px; }
.cta-band .btn-light { font-weight: 700; color: #2f7f28; position: relative; z-index: 1; }
.pub-foot-links { display: flex; justify-content: center; gap: 18px; margin-bottom: 8px; }
.pub-foot-links a { color: var(--muted); text-decoration: none; font-weight: 500; }
.pub-foot-links a:hover { color: var(--ink); }

/* =========================================================
   App shell
   ========================================================= */
body.app-body { overflow: hidden; }
.app { display: flex; height: 100%; }
.content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
main#main { flex: 1; min-height: 0; overflow: auto; }
.loading { display: grid; place-items: center; height: 100%; }

/* Sidebar: SquareOne charcoal with green highlights, in both light and dark mode. */
.side {
  --side-bg: #2b2d2a; --side-bg-2: #343632; --side-line: rgba(255, 255, 255, .08);
  --side-text: #c9ccc5; --side-muted: #8f938b; --side-hover: rgba(255, 255, 255, .07);
  flex: 0 0 256px; width: 256px; background: linear-gradient(180deg, var(--side-bg) 0%, #232522 100%); color: var(--side-text);
  display: flex; flex-direction: column; padding: 14px 12px 12px; overflow-y: auto; overflow-x: hidden;
  border-right: 1px solid #1e201d; box-shadow: 2px 0 12px rgba(0, 0, 0, .08); transition: flex-basis .22s ease, width .22s ease, padding .22s ease; z-index: 30;
}
[data-bs-theme=dark] .side { --side-bg: #20221f; border-right-color: #121311; }
.side-top { display: flex; align-items: center; gap: 6px; padding: 2px 4px 20px 8px; }
.side .brand { flex: 1; min-width: 0; padding: 0; }
.side .brand-text b { color: #fff; }
.side .brand-text small { color: var(--brand); }
.side-toggle { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 8px; border: 0; background: var(--side-hover); color: var(--side-text); display: grid; place-items: center; font-size: 13px; }
.side-toggle:hover { background: var(--brand); color: #fff; }
.sidesec { margin-bottom: 18px; }
.sidelabel { display: flex; align-items: center; justify-content: space-between; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--side-muted); font-weight: 700; padding: 0 8px 8px; white-space: nowrap; }
.sideadd { width: 24px; height: 24px; border-radius: 6px; border: 0; background: var(--side-hover); color: var(--side-text); display: grid; place-items: center; font-size: 14px; }
.sideadd:hover { background: var(--brand); color: #fff; }
.sitem { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border: 0; border-radius: 9px; background: none; color: var(--side-text); font-weight: 500; text-align: left; margin-bottom: 3px; position: relative; white-space: nowrap; }
.sitem:hover { background: var(--side-hover); color: #fff; }
.sitem.on { background: var(--brand-grad); color: #fff; font-weight: 600; box-shadow: 0 4px 14px rgba(63, 171, 53, .35); }
.sitem .bi-ic { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 8px; display: grid; place-items: center; font-size: 15px; background: var(--side-bg-2); color: #e6e8e3; }
.sitem.on .bi-ic { background: rgba(255, 255, 255, .22); color: #fff; }

/* Board logos: shown in the icon box (white backing so dark logos stay visible). */
.bi-ic.has-logo { background: #fff !important; padding: 3px; overflow: hidden; }
.blogo { width: 100%; height: 100%; object-fit: contain; display: block; }
.pt-mark { display: grid; place-items: center; min-width: 28px; height: 28px; }
.pt-mark .blogo { width: 30px; height: 30px; border-radius: 7px; background: #fff; padding: 2px; box-shadow: 0 0 0 1px var(--line); }
.logo-row { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.logo-prev { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 14px; border: 1px dashed var(--line); background: #fff; display: grid; place-items: center; font-size: 28px; overflow: hidden; padding: 6px; }
.logo-prev img { width: 100%; height: 100%; object-fit: contain; }

/* Notifications (bell in the top bar). */
.notif-wrap { position: relative; }
.notif-btn { position: relative; }
.notif-panel { position: absolute; top: calc(100% + 8px); right: 0; width: 380px; max-width: calc(100vw - 24px); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 1040; overflow: hidden; }
.notif-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line2); }
.notif-head b { color: var(--ink); font-size: 14.5px; }
.notif-head .btn-link { color: var(--brand-ink); font-weight: 600; font-size: 12.5px; text-decoration: none; }
.notif-list { max-height: min(480px, 70vh); overflow-y: auto; padding: 6px; }
.notif-item { display: flex; align-items: flex-start; gap: 11px; width: 100%; border: 0; background: none; text-align: left; padding: 10px; border-radius: 10px; color: var(--body); }
.notif-item:hover { background: var(--hover); }
.notif-item.unread { background: color-mix(in srgb, var(--brand) 7%, transparent); }
.notif-item.unread:hover { background: color-mix(in srgb, var(--brand) 12%, transparent); }
.notif-av { position: relative; flex: 0 0 34px; }
.notif-av .avatar { width: 34px; height: 34px; flex-basis: 34px; font-size: 12px; }
.notif-type { position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 9px; color: #fff; background: var(--brand-2); box-shadow: 0 0 0 2px var(--surface); }
.notif-type.t-comment, .notif-type.t-chatMessage { background: #0ea5e9; }
.notif-type.t-cardMoved { background: #a960ee; }
.notif-type.t-addedToBoard { background: var(--charcoal); }
.notif-type.t-directMessage { background: #0ea5e9; }
.notif-type.t-mentioned { background: #8b5cf6; }
.notif-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.notif-text { font-size: 13px; line-height: 1.4; color: var(--body); }
.notif-text b { color: var(--ink); font-weight: 600; }
.notif-snip { font-size: 12.5px; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; background: var(--lane); border-radius: 8px; padding: 5px 8px; }
.notif-main small { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11.5px; min-width: 0; }
.nb-mark { display: inline-grid; place-items: center; width: 16px; height: 16px; font-size: 11px; flex: 0 0 16px; }
.nb-mark .blogo { border-radius: 3px; background: #fff; }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: 0 0 8px; margin-top: 6px; }
.notif-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 30px 20px; color: var(--muted); font-size: 13px; }
.notif-empty .bi { font-size: 28px; color: var(--brand); margin-bottom: 4px; }
.notif-empty b { color: var(--ink); }
/* Assignees on cards and in the card panel. */
.pcard .meta .who { display: inline-flex; margin-left: auto; padding-left: 6px; }
.pcard .meta .who .avatar { width: 22px; height: 22px; flex-basis: 22px; font-size: 9px; margin-left: -6px; box-shadow: 0 0 0 2px var(--surface); }
.pcard .meta .who .avatar.more { background: var(--lane); color: var(--body); }
.avatars.tight .avatar { width: 24px; height: 24px; flex-basis: 24px; font-size: 9.5px; margin-left: -6px; }
.avatars.tight .avatar:first-child { margin-left: 0; }
.assignee-btn { display: flex; align-items: center; min-height: 22px; min-width: 0; }
.assignee-sum { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.mini-stack { display: inline-flex; flex: 0 0 auto; }
.mini-stack .avatar { width: 22px; height: 22px; flex-basis: 22px; font-size: 9px; margin-left: -7px; box-shadow: 0 0 0 2px var(--surface); }
.mini-stack .avatar:first-child { margin-left: 0; }
.as-label { font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.assignee-ro { padding: 6px 0; }

/* Custom fields */
.cfields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.cfields .form-label .bi { color: var(--muted); margin-right: 5px; font-size: 12px; }
.cfields .input-group-text { background: var(--surface-2); color: var(--muted); font-weight: 600; }
.field-switch { min-height: 38px; display: flex; align-items: center; gap: 8px; padding-left: 2.6em; margin: 0; }
.field-switch .form-check-input { width: 2.4em; height: 1.3em; margin-top: 0; cursor: pointer; }
.fvals { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 6px; font-size: 12.5px; color: var(--body); font-weight: 500; }
/* People on the price row: pushed to the right, never wrapping onto their own line unless there's no room. */
.pcard .fvals .who { display: inline-flex; flex: 0 0 auto; margin-left: auto; padding-left: 6px; }
.pcard .fvals .who .avatar { width: 22px; height: 22px; flex-basis: 22px; font-size: 9px; margin-left: -6px; box-shadow: 0 0 0 2px var(--surface); }
.pcard .fvals .who .avatar:first-child { margin-left: 0; }
.pcard .fvals .who .avatar.more { background: var(--lane); color: var(--body); }
.fval { display: inline-flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fval .bi { color: var(--muted); font-size: 11px; }
.fval.currency { color: var(--ink); font-weight: 700; }
.fval.currency .bi { color: var(--brand-2); }
.field-row .ftype { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 8px; display: grid; place-items: center; background: var(--lane); color: var(--body); }
.field-row .ftype-name { font-size: 12px; color: var(--muted); white-space: nowrap; flex: 0 0 auto; min-width: 64px; }
.show-on-card { display: inline-flex; align-items: center; gap: 6px; padding-left: 2.4em; font-size: 12px; color: var(--muted); white-space: nowrap; flex: 0 0 auto; }
.show-on-card .form-check-input { margin-top: 0; cursor: pointer; }
.lp-table .tnum { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lp-table tfoot td { padding: 10px 14px; border-top: 2px solid var(--line); background: var(--surface-2); color: var(--ink); }
@media (max-width: 600px) { .cfields { grid-template-columns: 1fr; } .field-row .ftype-name { display: none; } }
.badge-opt .avatar { width: 24px; height: 24px; flex-basis: 24px; font-size: 9.5px; }
.sitem .bn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sitem .bc { font-size: 11.5px; color: var(--side-muted); font-weight: 600; display: flex; gap: 6px; align-items: center; }
.sitem.on .bc { color: rgba(255, 255, 255, .85); }
.side-user { border-top: 1px solid var(--side-line); padding-top: 10px; }
.side-user .sitem { margin: 0; }
.side-user .bn { font-size: 13px; }
.side-user .bi-chevron-expand { color: var(--side-muted) !important; }
.side-user .avatar { box-shadow: 0 0 0 2px var(--side-bg-2); }
.side-empty { padding: 4px 8px; color: var(--side-muted); font-size: 13px; }

/* Collapsed sidebar: a slim strip of icons (hover for names). Desktop only; phones use the slide-out menu. */
@media (min-width: 901px) {
  body.side-collapsed .side { flex-basis: 72px; width: 72px; padding-left: 10px; padding-right: 10px; }
  body.side-collapsed .side .brand-text,
  body.side-collapsed .side .sitem .bn,
  body.side-collapsed .side .sitem .bc,
  body.side-collapsed .side .sidelabel > span,
  body.side-collapsed .side .side-user .bi-chevron-expand { display: none; }
  body.side-collapsed .side-top { flex-direction: column; gap: 12px; padding: 2px 0 18px; }
  body.side-collapsed .side .brand { flex: 0 0 auto; }
  body.side-collapsed .sidelabel { justify-content: center; padding: 0 0 8px; }
  body.side-collapsed .sitem { justify-content: center; padding: 7px 0; }
}
@media (max-width: 900px) { .side-toggle { display: none; } }

/* ---------- View switcher (Board / Table / Calendar) ---------- */
.view-switch { display: inline-flex; background: var(--lane); border: 1px solid var(--line); border-radius: 9px; padding: 3px; gap: 2px; }
.view-switch button { border: 0; background: none; color: var(--body); font-weight: 600; font-size: 13px; padding: 5px 11px; border-radius: 6px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.view-switch button:hover { color: var(--ink); }
.view-switch button.on { background: var(--surface); color: var(--brand-ink); box-shadow: var(--shadow-sm); }
.compact-toggle { border: 1px solid var(--line); background: var(--surface); color: var(--body); font-weight: 600; font-size: 13px; padding: 6px 11px; border-radius: 9px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.compact-toggle:hover { color: var(--ink); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.compact-toggle.on { background: var(--soft); color: var(--brand-ink); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
@media (max-width: 1200px) { .compact-toggle span { display: none; } }

/* Compact board: one line per card. */
.lane.compact .cards { gap: 5px; }
.lane-compact { border: 0; background: none; color: var(--muted); font-size: 13px; width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; padding: 0; opacity: .45; transition: opacity .12s, background .12s; }
.lane:hover .lane-compact, .lane-compact:focus-visible { opacity: 1; }
.lane-compact:hover { background: var(--surface); color: var(--ink); }
.lane-compact.on { opacity: 1; color: var(--brand-ink); }
.pcard.compact { display: flex; align-items: center; gap: 8px; padding: 7px 10px 7px 12px; min-height: 38px; }
.pcard.compact h4 { flex: 1; min-width: 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard.compact .bdots { display: inline-flex; gap: 3px; flex: 0 0 auto; }
.pcard.compact .bdots i { width: 7px; height: 7px; border-radius: 50%; }
.pcard.compact .cprice { flex: 0 0 auto; font-size: 12px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.pcard.compact .cdue { flex: 0 0 auto; font-size: 13px; }
.pcard.compact .cdue.late { color: var(--red); }
.pcard.compact .cdue.soon { color: #d97706; }
.pcard.compact .cdone { color: var(--brand-2); flex: 0 0 auto; }
.pcard.compact .who { display: inline-flex; flex: 0 0 auto; }
.pcard.compact .who .avatar { width: 20px; height: 20px; flex-basis: 20px; font-size: 8px; margin-left: -6px; box-shadow: 0 0 0 2px var(--surface); }
.pcard.compact .who .avatar:first-child { margin-left: 0; }
@media (max-width: 1200px) { .view-switch button span { display: none; } .view-switch button { padding: 5px 9px; } }

/* ---------- Table view ---------- */
.page.table-page { max-width: none; }
.table-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.table-tools .form-check-label { font-size: 13.5px; font-weight: 600; color: var(--body); cursor: pointer; }
.table-tools .form-check-input { cursor: pointer; }
.lp-table tr.tgroup { cursor: pointer; }
.lp-table tr.tgroup td { background: var(--lane); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 9px 14px; font-weight: 700; color: var(--ink); }
.lp-table tr.tgroup:first-child td { border-top: 0; }
.lp-table tr.tgroup:hover td { background: color-mix(in srgb, var(--lane) 70%, var(--hover)); }
.lp-table tr.tgroup .sdot { margin: 0 8px 0 4px; }
.tg-chev { color: var(--muted); font-size: 11px; }
.tg-count { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; margin-left: 8px; border-radius: 99px; background: var(--surface); color: var(--muted); font-size: 11.5px; font-weight: 700; }   /* the table uses the full width (beats the .page max-width below) */
.lp-table .due { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.lp-table .tact span { display: inline-flex; align-items: center; gap: 5px; margin-right: 10px; }
.table-wrap { background: var(--surface); border: 1px solid var(--line2); border-radius: 12px; box-shadow: var(--shadow-sm); overflow: auto; }
.lp-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.lp-table th { position: sticky; top: 0; z-index: 1; background: var(--surface-2); color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); cursor: pointer; white-space: nowrap; user-select: none; }
.lp-table th:hover, .lp-table th.sorted { color: var(--ink); }
.lp-table th .bi { margin-left: 4px; }
.lp-table td { padding: 9px 14px; border-bottom: 1px solid var(--line2); color: var(--body); vertical-align: middle; }
.lp-table tbody tr { cursor: pointer; transition: background .1s; }
.lp-table tbody tr:hover { background: var(--hover); }
.lp-table tbody tr:last-child td { border-bottom: 0; }
.lp-table tr.done .tcard b { color: var(--muted); text-decoration: line-through; }
.tcard { display: flex; align-items: center; gap: 9px; min-width: 200px; }
.tcard b { color: var(--ink); font-weight: 600; }
.tcard .cdot { width: 9px; height: 9px; border-radius: 3px; flex: 0 0 9px; }
.tstage { display: inline-block; position: relative; }
.tstage::before { content: ""; position: absolute; left: 10px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--s); pointer-events: none; }
.tstage .form-select { padding-left: 26px; min-width: 140px; box-shadow: none; }
.tstage-ro { white-space: nowrap; }
.tprog { display: flex; align-items: center; gap: 8px; min-width: 110px; }
.tprog .prog { flex: 1; margin: 0; }
.tprog span { font-size: 12px; color: var(--muted); font-weight: 600; }
.tact { white-space: nowrap; color: var(--muted); }
.tact span { margin-right: 10px; }
.tact .bi { margin-right: 3px; }
.lp-table .badges { flex-wrap: nowrap; }

/* ---------- Calendar view ---------- */
/* The month uses the full width; cards without a due date sit in a strip underneath. */
.cal-page { display: flex; flex-direction: column; gap: 16px; padding: 20px 24px; }
.cal-main { flex: 1; min-width: 0; }
.cal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.cal-head h2 { font-family: Poppins, Inter, sans-serif; font-size: 19px; font-weight: 600; margin: 0; min-width: 170px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line2); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.cal-dow { padding: 8px 10px; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line); }
.cal-day { min-height: 118px; border-right: 1px solid var(--line2); border-bottom: 1px solid var(--line2); padding: 6px; display: flex; flex-direction: column; gap: 4px; min-width: 0; transition: background .1s; }
.cal-day:nth-child(7n) { border-right: 0; }
.cal-day.out { background: color-mix(in srgb, var(--lane) 55%, var(--surface)); }
.cal-day.out .cal-num span { color: var(--muted); opacity: .7; }
.cal-day.cal-drop, .cal-undated.cal-drop { background: var(--soft); box-shadow: inset 0 0 0 2px var(--brand); }
.cal-num { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.cal-num span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.cal-day.today .cal-num span { background: var(--btn); color: #fff; }
.cal-add { opacity: 0; border: 0; background: none; color: var(--muted); width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; }
.cal-day:hover .cal-add { opacity: 1; }
.cal-add:hover { background: var(--soft); color: var(--brand-ink); }
.cal-items { display: flex; flex-direction: column; gap: 3px; overflow-y: auto; max-height: 120px; }
.cal-chip { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; color: var(--ink); background: color-mix(in srgb, var(--c) 14%, var(--surface)); border-left: 3px solid var(--c); border-radius: 5px; padding: 3px 6px; cursor: pointer; min-width: 0; }
.cal-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-chip[draggable=true] { cursor: grab; }
.cal-chip:hover { filter: brightness(.96); box-shadow: var(--shadow-sm); }
.cal-chip.done { opacity: .6; }
.cal-chip.done span { text-decoration: line-through; }
.cal-chip.done .bi { color: var(--brand-2); font-size: 11px; }
.cal-chip.late { border-left-color: var(--red); background: var(--red-soft); }
.cal-chip.dragging { opacity: .35; }
.cal-side { background: var(--surface); border: 1px solid var(--line2); border-radius: 12px; padding: 14px; box-shadow: var(--shadow-sm); }
.cal-side h3 { font-size: 14px; font-weight: 600; margin: 0 0 10px; display: flex; gap: 6px; }
.cal-undated { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); align-content: start; gap: 5px; min-height: 44px; border-radius: 8px; padding: 2px; max-height: 240px; overflow-y: auto; }
@media (max-width: 1100px) { .cal-day { min-height: 90px; } }

/* ---------- Board chat ---------- */
.chat-btn { position: relative; }
#muteBtn.on { color: var(--muted); background: var(--lane); }
.sitem .bc .bi-bell-slash { opacity: .7; margin-right: 6px; }
.chat-unread { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--surface); }
.chat { position: fixed; top: 0; right: 0; bottom: 0; width: 380px; max-width: 100vw; z-index: 1035; background: var(--surface); border-left: 1px solid var(--line); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; transform: translateX(105%); transition: transform .25s cubic-bezier(.2, .9, .3, 1); }
body.chat-open .chat { transform: none; }
body.chat-open .content { margin-right: 380px; }
.content { transition: margin-right .25s ease; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line2); min-height: 62px; }
.chat-head b { display: block; color: var(--ink); font-size: 15px; }
.chat-head small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-ic { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; background: var(--brand-grad); color: #fff; display: grid; place-items: center; font-size: 16px; }
.min-w-0 { min-width: 0; }
/* Chat panel: the Workspace list of conversations, and a single conversation */
.chat-conv { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.chat.view-list .chat-conv { display: none; }
.chat:not(.view-list) .chat-home { display: none; }
.chat-home { flex: 1; overflow-y: auto; padding: 6px 8px 18px; }
.chat-back { margin-right: -4px; }
.chat-ic .avatar { width: 36px; height: 36px; flex-basis: 36px; font-size: 12px; }
.chat.is-dm .chat-ic { background: none; }
.ch-sec + .ch-sec { margin-top: 10px; }
.ch-sec-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.ch-sec-add { width: 24px; height: 24px; border-radius: 7px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; font-size: 13px; }
.ch-sec-add:hover { background: var(--hover); color: var(--brand-ink); }
.ch-sec-empty { color: var(--muted); font-size: 13px; padding: 4px 10px; }
.ch-row { display: flex; align-items: center; gap: 11px; width: 100%; border: 0; background: none; text-align: left; padding: 9px 10px; border-radius: 10px; color: var(--body); }
.ch-row:hover { background: var(--hover); }
.ch-row-ic { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; display: grid; place-items: center; background: var(--soft); color: var(--brand-ink); font-size: 17px; }
.ch-row-av { width: 36px; height: 36px; flex-basis: 36px; font-size: 12px; }
.ch-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ch-row-top, .ch-row-bottom { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ch-row-top b { flex: 1; min-width: 0; color: var(--ink); font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-row-top small { flex: 0 0 auto; color: var(--muted); font-size: 11.5px; }
.ch-row-prev { flex: 1; min-width: 0; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-row.unread .ch-row-top b { font-weight: 700; }
.ch-row.unread .ch-row-prev { color: var(--body); font-weight: 500; }
.ch-row.unread .ch-row-top small { color: var(--brand-ink); font-weight: 600; }
.ch-row .ch-unread { margin-left: 0; }
.ch-row.person .ch-row-av { opacity: .85; }
.ch-row-go { color: var(--muted); opacity: 0; transition: opacity .12s; }
.ch-row.person:hover .ch-row-go { opacity: 1; }

/* Channel tabs under the chat header */
.chat-channels { display: flex; gap: 4px; padding: 8px 12px; border-bottom: 1px solid var(--line2); overflow-x: auto; scrollbar-width: thin; flex: 0 0 auto; }
.chat-channels:empty { display: none; }
.ch-tab { display: inline-flex; align-items: center; gap: 3px; flex: 0 0 auto; max-width: 180px; border: 1px solid transparent; background: none; color: var(--body); font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.ch-tab .hash { color: var(--muted); font-weight: 500; }
.ch-tab .ch-name { overflow: hidden; text-overflow: ellipsis; }
.ch-tab:hover { background: var(--hover); color: var(--ink); }
.ch-tab.on { background: var(--soft); color: var(--brand-ink); border-color: color-mix(in srgb, var(--brand) 35%, transparent); }
.ch-tab.on .hash { color: var(--brand-ink); }
.ch-tab.has-unread { color: var(--ink); }
.ch-unread { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 700; display: inline-grid; place-items: center; margin-left: 4px; }
.ch-sep { flex: 0 0 1px; align-self: stretch; margin: 4px 4px; background: var(--line); }
.ch-tab.dm { padding-left: 4px; }
.ch-tab .ch-av { width: 20px; height: 20px; flex: 0 0 20px; font-size: 8.5px; margin-right: 3px; }
.ch-dm-new { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 9px; border-radius: 99px; border: 1px dashed var(--line); background: none; color: var(--muted); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.ch-dm-new span:empty { display: none; }
.ch-dm-new:hover { border-color: #0ea5e9; color: var(--ink); background: color-mix(in srgb, #0ea5e9 10%, var(--surface)); }
.dm-picker { position: absolute; top: 118px; left: 12px; right: 12px; bottom: auto; z-index: 5; max-height: 320px; overflow-y: auto; }
.dm-picker .avatar { width: 26px; height: 26px; flex-basis: 26px; font-size: 10px; }
.chat.is-dm .chat-ic { background: #0ea5e9; }
.ch-add { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 99px; border: 1px dashed var(--line); background: none; color: var(--muted); display: grid; place-items: center; font-size: 13px; }
.ch-add:hover { border-color: var(--brand); color: var(--brand-ink); background: var(--soft); }
.chat-list { flex: 1; overflow-y: auto; padding: 14px 16px 6px; display: flex; flex-direction: column; gap: 2px; }
.chat-more { align-self: center; margin-bottom: 8px; }
.chat-empty { margin: auto; text-align: center; color: var(--muted); display: flex; flex-direction: column; gap: 6px; padding: 20px; max-width: 260px; }
.chat-empty .bi { font-size: 32px; color: var(--brand); }
.chat-empty b { color: var(--ink); }
.chat-day { display: flex; align-items: center; gap: 10px; margin: 14px 0 8px; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.chat-day::before, .chat-day::after { content: ""; flex: 1; height: 1px; background: var(--line2); }
.msg { display: flex; gap: 9px; align-items: flex-end; margin-top: 8px; max-width: 100%; }
.msg.grouped { margin-top: 2px; }
.msg-av { width: 28px; flex: 0 0 28px; }
.msg-body { min-width: 0; max-width: 82%; }
.msg-meta { display: flex; gap: 8px; align-items: baseline; font-size: 12px; margin: 0 4px 3px; }
.msg-meta b { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }
.msg-meta span { color: var(--muted); }
/* Other people's messages: light blue. Yours: light green. */
.msg-text { position: relative; background: color-mix(in srgb, #0ea5e9 12%, var(--surface)); border: 1px solid color-mix(in srgb, #0ea5e9 22%, transparent); color: var(--ink); padding: 8px 12px; border-radius: 14px 14px 14px 4px; white-space: pre-wrap; word-break: break-word; line-height: 1.5; }
.msg-text a { color: var(--brand-ink); }
.msg.mine { flex-direction: row-reverse; }
.msg.mine .msg-meta { justify-content: flex-end; }
.msg.mine .msg-text { background: color-mix(in srgb, var(--brand) 16%, var(--surface)); border-color: color-mix(in srgb, var(--brand) 30%, transparent); border-radius: 14px 14px 4px 14px; }
.msg-del { position: absolute; top: 50%; transform: translateY(-50%); right: -30px; opacity: 0; border: 0; background: none; color: var(--muted); padding: 2px 6px; }
.msg.mine .msg-del { right: auto; left: -30px; }
.msg:hover .msg-del { opacity: 1; }
.msg-del:hover { color: var(--red); }
/* A linked card inside a message: a rounded pill with the card's colour. */
.card-link { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; max-width: 100%; border: 1px solid color-mix(in srgb, var(--c, var(--brand)) 45%, var(--line)); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 12.5px; line-height: 1.4; padding: 2px 11px 2px 4px; border-radius: 99px; box-shadow: var(--shadow-sm); margin: 1px 1px; cursor: pointer; text-align: left; transition: border-color .12s, box-shadow .12s; }
.card-link .bi { display: grid; place-items: center; width: 18px; height: 18px; flex: 0 0 18px; border-radius: 50%; background: var(--c, var(--brand)); color: #fff; font-size: 10px; }
.card-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-link:hover { border-color: var(--c, var(--brand)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, var(--brand)) 18%, transparent); }
.card-link.gone { color: var(--muted); font-weight: 500; cursor: default; border-style: dashed; box-shadow: none; }
.card-link.gone .bi { background: var(--line); }
.chat-typing { min-height: 22px; padding: 0 18px; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.chat-typing .dots { display: inline-flex; gap: 3px; }
.chat-typing .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.chat-typing .dots i:nth-child(2) { animation-delay: .2s; }
.chat-typing .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.chat-compose { position: relative; border-top: 1px solid var(--line2); padding: 10px 14px 12px; background: var(--surface-2); }
/* Composer: one rounded box holding the text and a slim toolbar (link a card, send). */
.compose-box { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s; }
.compose-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.compose-field { position: relative; }
.compose-field textarea, .compose-mirror { display: block; width: 100%; margin: 0; border: 0; padding: 10px 12px 4px; font: inherit; font-size: 14px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: break-word; word-break: break-word; }
.compose-field textarea { position: relative; z-index: 1; background: transparent; color: var(--ink); resize: none; outline: none; min-height: 42px; max-height: 160px; overflow-y: auto; }
.compose-field textarea::placeholder { color: var(--muted); }
.compose-mirror { position: absolute; left: 0; top: 0; right: 0; color: transparent; overflow: hidden; pointer-events: none; }
/* @tags: purple pills in messages (stronger when it's me), and while typing */
.mention { display: inline; font-weight: 600; color: #6d28d9; background: color-mix(in srgb, #8b5cf6 14%, transparent); padding: 1px 5px; border-radius: 6px; }
.mention.me { color: #fff; background: #8b5cf6; }
[data-theme="dark"] .mention:not(.me) { color: #c4b5fd; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mention:not(.me) { color: #c4b5fd; } }
.compose-mirror mark.at { background: color-mix(in srgb, #8b5cf6 20%, var(--surface)); box-shadow: 0 0 0 3px color-mix(in srgb, #8b5cf6 20%, var(--surface)); }
.chat-toast.tagged { border-left-color: #8b5cf6; }
/* Notification pop-ups: the edge matches the notification's icon colour */
.notif-toast .notif-av { position: relative; flex: 0 0 auto; }
.notif-toast .ct-text { color: var(--body); font-size: 13px; line-height: 1.35; }
.notif-toast .ct-text b { color: var(--ink); }
.notif-toast .ct-snip { display: block; margin-top: 3px; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif-toast .ct-where { display: block; margin-top: 3px; color: var(--muted); font-size: 11.5px; }
.notif-toast.t-assigned, .notif-toast.t-cardCompleted { border-left-color: var(--brand-2); }
.notif-toast.t-cardMoved { border-left-color: #a960ee; }
.notif-toast.t-addedToBoard { border-left-color: var(--charcoal); }
.notif-toast.t-mentioned { border-left-color: #8b5cf6; }
.ct-tag { font-weight: 600; font-size: 11px; color: #fff; background: #8b5cf6; padding: 1px 7px; border-radius: 99px; margin-left: 4px; vertical-align: 1px; }
.compose-mirror mark { color: transparent; padding: 0; border-radius: 99px; background: color-mix(in srgb, var(--brand) 20%, var(--surface)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, var(--surface)), 0 0 0 4px color-mix(in srgb, var(--brand) 45%, transparent); }
.compose-tools { display: flex; align-items: center; gap: 8px; padding: 2px 6px 6px 6px; }
.chat-tool { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--muted); font-size: 12.5px; font-weight: 600; padding: 4px 8px; border-radius: 7px; white-space: nowrap; }
.chat-tool .bi { font-size: 15px; }
.chat-tool:hover { background: var(--hover); color: var(--ink); }
.compose-hint { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.chat-send { margin-left: auto; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 9px; border: 0; background: var(--btn); color: #fff; display: grid; place-items: center; font-size: 13px; transition: opacity .15s, transform .1s; }
.chat-send:hover:not(:disabled) { filter: brightness(1.08); }
.chat-send:active:not(:disabled) { transform: scale(.94); }
.chat-send:disabled { opacity: .4; cursor: default; }
.card-picker { position: absolute; left: 14px; right: 14px; bottom: calc(100% - 6px); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 6px; max-height: 300px; overflow-y: auto; z-index: 5; }
.cp-head { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 4px 8px 6px; }
.cp-item { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; text-align: left; padding: 6px 8px; border-radius: 7px; color: var(--body); }
.cp-item.on, .cp-item:hover { background: var(--soft); }
.cp-item .cdot { width: 9px; height: 9px; border-radius: 3px; flex: 0 0 9px; }
.cp-main { min-width: 0; flex: 1; }
.cp-main b { display: block; color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-main small { color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-empty { padding: 10px; color: var(--muted); text-align: center; }
@media (max-width: 900px) { body.chat-open .content { margin-right: 0; } .chat { width: 100vw; } }

/* ---------- Board settings: tabs on the left ---------- */
#settingsBody { padding: 0; }
.settings-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); height: min(560px, 72vh); }
.settings-nav { border-right: 1px solid var(--line2); background: var(--surface-2); padding: 12px 10px; display: flex; flex-direction: column; gap: 3px; border-bottom-left-radius: 14px; }
.settings-nav button { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; border-radius: 8px; padding: 8px 10px; color: var(--body); font-weight: 500; text-align: left; }
.settings-nav button:hover { background: var(--hover); color: var(--ink); }
.settings-nav button.on { background: var(--soft); color: var(--brand-ink); font-weight: 600; }
.settings-nav button .cnt { margin-left: auto; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.settings-nav button.danger { margin-top: auto; color: var(--red); }
.settings-nav button.danger.on { background: var(--red-soft); color: var(--red); }
.settings-content { overflow-y: auto; padding: 18px 22px 24px; }
.pane-title { font-size: 15px; font-weight: 600; color: var(--ink); margin: 0 0 12px; }
@media (max-width: 700px) {
  .settings-layout { grid-template-columns: 1fr; height: auto; max-height: 75vh; }
  .settings-nav { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line2); border-radius: 0; }
  .settings-nav button { width: auto; white-space: nowrap; }
  .settings-nav button.danger { margin-top: 0; }
  .settings-nav button .cnt { display: none; }
}

.avatar { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: var(--a, var(--charcoal)); text-transform: uppercase; }
.avatars { display: flex; padding-right: 4px; }

/* Online status dots (bottom-right of an avatar) */
.avatar { position: relative; }
.pres { position: absolute; right: -1px; bottom: -1px; width: 32%; height: 32%; min-width: 8px; min-height: 8px; max-width: 12px; max-height: 12px; border-radius: 50%; box-shadow: 0 0 0 2px var(--surface); background: #9ca3af; }
.pres-online { background: #22c55e; }
.pres-away { background: #f59e0b; }
.pres-dnd { background: #ef4444; }
.pres-dnd::after { content: ""; position: absolute; left: 22%; right: 22%; top: 50%; height: 2px; margin-top: -1px; background: #fff; border-radius: 2px; }
.pres-offline { background: var(--surface); box-shadow: 0 0 0 2px var(--surface), inset 0 0 0 2px #9ca3af; }
.side .pres { box-shadow: 0 0 0 2px var(--side-bg-2); }
.status-item { display: flex; align-items: center; gap: 10px; }
.status-item .pres { position: relative; right: auto; bottom: auto; width: 10px; height: 10px; min-width: 10px; min-height: 10px; flex: 0 0 10px; box-shadow: none; }
.status-item .pres-offline { box-shadow: inset 0 0 0 2px #9ca3af; }
.status-item span { display: flex; flex-direction: column; line-height: 1.25; }
.status-item small { color: var(--muted); font-size: 11px; }
.status-item.on { font-weight: 600; }
.status-item.on::after { content: "\F26E"; font-family: bootstrap-icons; margin-left: auto; color: var(--brand-ink); }

/* Ticks on my own messages */
.msg-ticks { display: inline-flex; vertical-align: bottom; margin-left: 6px; font-size: 14px; line-height: 1; color: var(--muted); }
.msg-ticks.read { color: #0ea5e9; }
.topbar .avatars:not(:empty) { margin-left: 6px; }
.avatars .avatar:first-child { margin-left: 0; }   /* only later avatars overlap the one before */
.avatars .avatar { width: 30px; height: 30px; flex: 0 0 30px; border: 2px solid var(--surface); margin-left: -8px; }
.avatars .more { background: var(--lane); color: var(--body); }

.topbar { position: relative; z-index: 20; display: flex; align-items: center; gap: 8px; padding: 12px 24px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); min-height: 62px; }
.pagetitle { margin: 0; font-family: Poppins, Inter, sans-serif; font-size: 19px; font-weight: 600; display: flex; align-items: center; gap: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.role-pill { font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: var(--lane); color: var(--body); white-space: nowrap; }
.muted-pill { display: inline-flex; align-items: center; gap: 5px; border: 0; font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: var(--lane); color: var(--muted); white-space: nowrap; }
.muted-pill:hover { color: var(--ink); }
.more-menu { min-width: 230px; }
.more-menu .dropdown-item .bi { width: 18px; }
.more-menu [data-theme-set].active { font-weight: 600; color: var(--brand-ink); background: var(--soft); }
.mute-box { margin-top: 22px; border: 1px solid var(--line2); border-radius: 12px; padding: 14px; background: var(--surface-2); }
.mute-head { display: flex; gap: 12px; }
.mute-head > .bi { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px; display: grid; place-items: center; background: var(--lane); color: var(--body); font-size: 16px; }
.mute-head b { display: block; color: var(--ink); font-size: 14px; }
.mute-head span { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.mute-opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.role-pill.viewer { background: var(--amber-soft); color: var(--amber); }
.hamb { display: none; }
.sidescrim { display: none; }

/* ---------- Board ---------- */
.board { display: flex; gap: 14px; padding: 20px 24px; min-height: 100%; align-items: flex-start; }
.lane { flex: 0 0 292px; background: var(--lane); border-radius: 12px; display: flex; flex-direction: column; max-height: calc(100vh - 104px); border: 1px solid transparent; transition: border-color .15s, background .15s; }
.lane.over { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, var(--lane)); }
.lane.finish { background: linear-gradient(180deg, var(--soft), var(--lane) 150px); }
.lanehead { display: flex; align-items: center; gap: 8px; padding: 12px 12px 8px 14px; }
.lanehead .dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 9px; }
.lanehead .name { font-weight: 600; color: var(--ink); flex: 1; outline: none; border-radius: 4px; padding: 1px 3px; font-size: 13.5px; min-width: 0; }
.lanehead .name[contenteditable=true]:hover { background: color-mix(in srgb, var(--surface) 60%, transparent); }
.lanehead .name:focus { background: var(--surface); box-shadow: 0 0 0 2px var(--brand); }
.lanehead .count { color: var(--muted); font-weight: 600; font-size: 12px; }
.lanehead .flag { color: var(--brand-2); font-size: 14px; }
.lanehead .x { border: 0; background: none; color: var(--muted); opacity: 0; font-size: 12px; padding: 0 3px; }
.lane:hover .lanehead .x { opacity: 1; }
.lanehead .x:hover { color: var(--red); }

/* Drag handles for reordering stages (board columns + settings) and badges. */
.grip { display: grid; place-items: center; width: 18px; height: 24px; flex: 0 0 18px; color: var(--muted); cursor: grab; border-radius: 5px; opacity: .55; transition: opacity .12s, background .12s; }
.grip:hover { opacity: 1; background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--ink); }
.grip:active { cursor: grabbing; }
.grip.off { cursor: default; opacity: .35; font-size: 12px; }
.grip.off:hover { background: none; color: var(--muted); opacity: .35; }
.lanehead .grip { margin: 0 -6px 0 -8px; opacity: 0; }
.lane:hover .lanehead .grip { opacity: .7; }
.lane.sorting, .badge-row.sorting { opacity: .4; outline: 2px dashed var(--brand); outline-offset: -2px; }
.badge-row .grip { margin-right: -2px; }
/* The card list fills the stage and scrolls once it's full. Cards keep their size (never squashed to fit). */
.cards { flex: 1 1 auto; padding: 2px 8px 8px; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 8px; min-height: 48px; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--muted) 45%, transparent) transparent; }
.cards > * { flex-shrink: 0; }
.cards::-webkit-scrollbar { width: 8px; }
.cards::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--muted) 40%, transparent); border-radius: 8px; border: 2px solid var(--lane); }
.lanehead, .addcard { flex-shrink: 0; }
.drop-line { height: 3px; border-radius: 3px; background: var(--brand); margin: -2px 2px; box-shadow: 0 0 0 3px rgba(106, 180, 62, .2); }
.addcard { margin: 0 8px 8px; padding: 7px 8px; border: 0; border-radius: 7px; background: none; color: var(--muted); text-align: left; font-weight: 500; display: flex; gap: 6px; align-items: center; }
.addcard:hover { background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--ink); }
.addlane { flex: 0 0 220px; border: 1.5px dashed var(--line); border-radius: 12px; padding: 14px; background: none; color: var(--muted); font-weight: 600; }
.addlane:hover { border-color: var(--brand); color: var(--brand-ink); background: var(--soft); }

.pcard { background: var(--surface); border-radius: 9px; padding: 11px 13px 12px; cursor: pointer; position: relative; box-shadow: var(--shadow-sm); border: 1px solid var(--line2); transition: transform .15s, box-shadow .15s; overflow: hidden; }
.pcard[draggable=true] { cursor: grab; }
.pcard::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c); }
.pcard:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.pcard.dragging { opacity: .35; }
.cnum { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.pcard.compact .cnum { flex: 0 0 auto; font-size: 11.5px; }
.pcard .client { color: var(--muted); font-size: 12px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 2px; }
.pcard h4 { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--ink); word-break: break-word; }
.pcard .badges { margin-bottom: 7px; }
.pcard .meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin-top: 10px; font-size: 12px; color: var(--muted); font-weight: 500; }
.pcard .meta .bi { margin-right: 3px; }
.due.late { color: var(--red); }
.due.soon { color: var(--amber); }
.prog { height: 4px; background: var(--line2); border-radius: 9px; overflow: hidden; margin-top: 10px; }
.prog i { display: block; height: 100%; background: var(--c); border-radius: 9px; transition: width .5s cubic-bezier(.2, 1.4, .4, 1); }
.pcard.complete .prog i { background: var(--brand-2); }
.pcard .stamp { position: absolute; right: 10px; top: 10px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-2); color: #fff; display: grid; place-items: center; font-size: 12px; }
/* Quick options: a ⋯ button that shows on hover/focus, opening a small people + badges menu */
.card-quick { position: absolute; right: 7px; top: 7px; z-index: 2; width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line2); background: var(--surface); color: var(--muted); display: grid; place-items: center; font-size: 14px; padding: 0; box-shadow: var(--shadow-sm); opacity: 0; transition: opacity .12s; cursor: pointer; }
.card-quick:hover { color: var(--ink); background: var(--lane); }
.pcard:hover .card-quick, .pcard:focus-within .card-quick, .pcard.quick-open .card-quick { opacity: 1; }
.pcard.quick-open .card-quick { color: var(--brand-ink); border-color: var(--brand); }
.pcard.complete:not(.compact) .card-quick { right: 36px; }
.pcard.compact .card-quick { top: 50%; margin-top: -13px; right: 6px; }
@media (hover: none) { .card-quick { opacity: 1; } }
.quick-menu { position: fixed; z-index: 1080; width: 260px; max-height: min(460px, calc(100vh - 16px)); overflow-y: auto; background: var(--surface); border: 1px solid var(--line2); border-radius: 12px; box-shadow: var(--shadow-md), 0 12px 32px rgba(0, 0, 0, .14); padding: 6px; }
.qm-head { display: flex; align-items: center; gap: 8px; padding: 4px 4px 6px 8px; border-bottom: 1px solid var(--line2); margin-bottom: 4px; }
.qm-head span { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qm-x { border: 0; background: none; color: var(--muted); width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; }
.qm-x:hover { background: var(--lane); color: var(--ink); }
.qm-sec { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 8px 8px 3px; }
.qm-opt { display: flex; align-items: center; gap: 9px; padding: 5px 8px; border-radius: 7px; cursor: pointer; font-size: 13px; color: var(--body); min-width: 0; }
.qm-opt:hover { background: var(--lane); }
.qm-opt .form-check-input { margin: 0; flex: 0 0 auto; }
.qm-opt .avatar { width: 22px; height: 22px; flex: 0 0 22px; font-size: 9.5px; }
.qm-empty { font-size: 12px; color: var(--muted); padding: 4px 8px; }
.qm-new { display: flex; align-items: center; gap: 6px; width: 100%; border: 0; background: none; color: var(--brand-ink); font-size: 12.5px; font-weight: 600; padding: 7px 8px; margin-top: 4px; border-top: 1px solid var(--line2); border-radius: 0 0 7px 7px; }
.qm-new:hover { background: var(--soft); }
.pcard.justmoved { animation: pop .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { 0% { transform: scale(.9); } 100% { transform: scale(1); } }

.badges { display: flex; flex-wrap: wrap; gap: 4px; }
.badge-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; color: color-mix(in srgb, var(--b) 85%, var(--ink)); background: color-mix(in srgb, var(--b) 15%, transparent); white-space: nowrap; line-height: 1.5; }
[data-bs-theme=dark] .badge-chip { color: color-mix(in srgb, var(--b) 70%, #fff); background: color-mix(in srgb, var(--b) 22%, transparent); }
button.badge-chip { border: 1.5px solid transparent; font-size: 12px; padding: 3px 10px; }
button.badge-chip.off { background: transparent; border-color: var(--line); color: var(--muted); }
button.badge-chip.off:hover { border-color: var(--b); color: var(--ink); }
button.badge-chip .bi { font-size: 11px; }
.badge-select-btn { text-align: left; min-height: 38px; padding-top: 6px; padding-bottom: 6px; cursor: pointer; }
.badge-select-btn .badges { min-height: 22px; align-items: center; }
.badge-menu { width: 100%; max-height: 300px; overflow-y: auto; }
.badge-opt { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 6px; cursor: pointer; margin: 0; }
.badge-opt:hover { background: var(--hover); }
.badge-opt .form-check-input { margin: 0; flex: 0 0 auto; cursor: pointer; }
.badge-add { border: 1.5px dashed var(--line); background: none; color: var(--muted); font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; }
.badge-add:hover { border-color: var(--brand); color: var(--brand-ink); }

.empty-state { max-width: 460px; margin: 12vh auto; text-align: center; padding: 20px; }
.empty-state .ico { width: 64px; height: 64px; border-radius: 18px; background: var(--soft); color: var(--brand-ink); font-size: 30px; display: grid; place-items: center; margin: 0 auto 18px; }
.empty-state h2 { font-family: Poppins, Inter, sans-serif; font-size: 22px; font-weight: 600; }

/* =========================================================
   Card drawer
   ========================================================= */
.scrim { position: fixed; inset: 0; background: rgba(20, 22, 19, .35); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 1040; }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; right: 0; top: 0; bottom: 0; width: min(560px, 100vw); background: var(--surface); z-index: 1041; transform: translateX(105%); transition: transform .28s cubic-bezier(.2, .9, .3, 1); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); border-left: 1px solid var(--line); }
.drawer.on { transform: none; }
.dhead { padding: 20px 22px 16px; border-bottom: 1px solid var(--line2); display: flex; gap: 16px; align-items: center; }
.ring { position: relative; width: 64px; height: 64px; flex: 0 0 64px; }
.ring svg { transform: rotate(-90deg); }
.ring .track { stroke: var(--line2); }
.ring .pct { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: var(--ink); }
.ring circle.fg { transition: stroke-dashoffset .6s cubic-bezier(.2, 1.3, .4, 1), stroke .3s; }
.dhead .title { flex: 1; min-width: 0; }
.new-ic { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 50%; background: var(--soft); color: var(--brand-ink); display: grid; place-items: center; font-size: 26px; }
.title-input.is-invalid { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.title-input::placeholder { color: var(--muted); font-weight: 500; }
.title-input { font-family: Poppins, Inter, sans-serif; font-size: 19px; font-weight: 600; color: var(--ink); border: 1px solid transparent; border-radius: 6px; padding: 3px 6px; margin-left: -7px; width: 100%; outline: none; background: none; }
.title-input:hover:not([readonly]) { border-color: var(--line); }
.title-input:focus:not([readonly]) { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(106, 180, 62, .2); }
.dsub { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.dbody { flex: 1; overflow-y: auto; padding: 18px 22px 30px; }
.frow { display: flex; gap: 14px; }
.frow > * { flex: 1; min-width: 0; }
.field { margin-bottom: 18px; }
.field > .form-label { display: flex; align-items: center; gap: 8px; }
.field > .form-label .cnt { color: var(--muted); font-weight: 500; }
.swatches { display: flex; gap: 7px; flex-wrap: wrap; padding-top: 6px; }
.swatches button { width: 22px; height: 22px; border-radius: 50%; border: 0; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.swatches button.on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px currentColor; }
.tasks { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.tasks:empty { display: none; }
.task { display: flex; align-items: center; gap: 11px; padding: 9px 12px; background: var(--surface); border-bottom: 1px solid var(--line2); }
.task:last-child { border-bottom: 0; }
.task:hover { background: var(--surface-2); }
.task .t { flex: 1; outline: none; line-height: 1.4; word-break: break-word; color: var(--ink); border-radius: 4px; }
.task .t:focus { box-shadow: 0 0 0 2px var(--brand); padding: 0 3px; }
.task.done .t { color: var(--muted); text-decoration: line-through; }
.task .del { opacity: 0; border: 0; background: none; color: var(--muted); padding: 0 4px; }
.task:hover .del { opacity: 1; }
.task .del:hover { color: var(--red); }
.check { width: 20px; height: 20px; flex: 0 0 20px; border-radius: 6px; border: 1.5px solid var(--line); border-color: color-mix(in srgb, var(--muted) 60%, transparent); background: var(--surface); display: grid; place-items: center; transition: all .18s; padding: 0; }
.check:hover:not(:disabled) { border-color: var(--brand); box-shadow: 0 0 0 3px var(--soft); }
.check svg { width: 12px; height: 12px; stroke: #fff; stroke-width: 3; fill: none; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .3s .05s ease-out; }
.task.done .check { background: var(--brand-2); border-color: var(--brand-2); }
.task.done .check svg { stroke-dashoffset: 0; }
.task.burst .check { animation: checkpop .45s cubic-bezier(.2, 1.8, .4, 1); }
.task.burst { animation: rowflash .8s ease-out; }
@keyframes checkpop { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }
@keyframes rowflash { 0% { background: var(--soft); } 100% { background: var(--surface); } }
.addtask { display: flex; gap: 8px; margin-top: 10px; }

.dropzone { border: 1.5px dashed var(--line); border-radius: 10px; padding: 14px; text-align: center; color: var(--muted); font-size: 13px; transition: all .15s; cursor: pointer; }
.dropzone:hover, .dropzone.over { border-color: var(--brand); background: var(--soft); color: var(--brand-ink); }
.files { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.file { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border: 1px solid var(--line2); border-radius: 10px; background: var(--surface-2); }
.file .thumb { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 7px; background: var(--lane); display: grid; place-items: center; font-size: 19px; color: var(--muted); overflow: hidden; }
.file .thumb img { width: 100%; height: 100%; object-fit: cover; }
.file .fmeta { flex: 1; min-width: 0; }
.file .fname { display: block; color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.file .fname:hover { color: var(--brand-ink); text-decoration: underline; }
.file .fsub { font-size: 11.5px; color: var(--muted); }
.file .fdel { border: 0; background: none; color: var(--muted); }
.file .fdel:hover { color: var(--red); }
.file.uploading { opacity: .6; }

.dfoot { padding: 12px 22px; border-top: 1px solid var(--line2); display: flex; gap: 10px; align-items: center; background: var(--surface-2); }
.shipped-pill { display: inline-flex; gap: 6px; align-items: center; background: var(--soft); color: var(--brand-ink); font-weight: 600; font-size: 13px; padding: 6px 12px; border-radius: 999px; }
.viewer-note { font-size: 12.5px; color: var(--amber); display: flex; gap: 6px; align-items: center; }

/* ---------- Modals content ---------- */
.member { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line2); }
.member:last-child { border-bottom: 0; }
.member .who { flex: 1; min-width: 0; }
.member .who b { display: block; color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.member .who small { color: var(--muted); }
.member .form-select { width: auto; padding-top: 4px; padding-bottom: 4px; font-size: 13px; }
.member .avatar.pending { background: var(--lane); color: var(--muted); }
.sec-title { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; color: var(--muted); margin: 18px 0 6px; }
.icon-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.icon-grid button { width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); font-size: 18px; }
.icon-grid button.on { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(106, 180, 62, .25); background: var(--soft); }
.badge-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.badge-row input[type=color] { width: 38px; height: 34px; padding: 3px; flex: 0 0 38px; }
.add-form { margin-top: 4px; }
.add-form .swatches { margin-top: 8px; }
.fin-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--brand-ink); white-space: nowrap; padding: 0 6px; }
.badge-row .fin-tag { width: 76px; justify-content: center; flex: 0 0 auto; }
.sw-custom { position: relative; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; margin: 0; color: #fff; font-size: 11px; background: var(--sw, conic-gradient(#df1b41, #e5a50a, #6ab43e, #0ea5e9, #a960ee, #df1b41)); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.sw-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.sw-custom i { pointer-events: none; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.sw-custom.on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--sw); }
.dot-pick { position: relative; display: grid; place-items: center; width: 18px; height: 18px; margin: 0 -4px 0 -4px; border-radius: 50%; cursor: pointer; }
.dot-pick:hover { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.dot-pick:hover .dot { transform: scale(1.3); }
.dot-pick .dot { transition: transform .15s; }
.dot-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.danger-zone {border: 1px solid color-mix(in srgb, var(--red) 30%, transparent); border-radius: 10px; padding: 14px; display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.danger-zone div { flex: 1; }
.danger-zone b { color: var(--ink); }

/* ---------- Avatars with photos ---------- */
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.avatar.xl { width: 112px; height: 112px; font-size: 38px; }
.profile-pic { width: 112px; height: 112px; margin: 6px auto 14px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 4px var(--soft); }
.profile-pic img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Search ---------- */
.search { position: relative; display: flex; align-items: center; width: min(320px, 32vw); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-sm); padding: 0 8px 0 10px; height: 36px; }
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(106, 180, 62, .2); }
.search > .bi { color: var(--muted); font-size: 13px; }
.search input { border: 0; outline: none; background: none; color: var(--ink); flex: 1; min-width: 0; padding: 0 8px; font-size: 14px; }
.search input::-webkit-search-cancel-button { display: none; }
.search kbd { font-size: 10.5px; background: var(--lane); color: var(--muted); border: 1px solid var(--line); box-shadow: none; padding: 1px 5px; border-radius: 4px; font-family: inherit; white-space: nowrap; }
.search-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; min-width: 340px; max-height: 420px; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 1030; }
.sr-head { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 8px 4px; }
.sr-item { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 7px 8px; border-radius: 7px; text-align: left; color: var(--body); }
.sr-item.on, .sr-item:hover { background: var(--soft); }
.sr-item .bi-ic { width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; background: var(--lane); flex: 0 0 26px; }
.sr-main { flex: 1; min-width: 0; }
.sr-main b { display: block; color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-main small { color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-empty { padding: 14px; color: var(--muted); text-align: center; }
.sdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; margin-right: 5px; vertical-align: 1px; }
.sr-item .sdot { margin: 0 9px; }
/* People and channels in search */
.sr-item > .avatar { width: 26px; height: 26px; flex: 0 0 26px; font-size: 10px; }
.sr-hash { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 6px; display: grid; place-items: center; background: color-mix(in srgb, #0ea5e9 14%, var(--surface)); color: #0ea5e9; font-weight: 700; }
.sr-act { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; color: var(--muted); opacity: 0; }
.sr-item.on .sr-act, .sr-item:hover .sr-act { opacity: 1; color: var(--brand-ink); }
.sr-main small .nb-mark { margin-right: 3px; }

/* ---------- Comments ---------- */
.comments { display: flex; flex-direction: column; gap: 14px; margin-bottom: 14px; }
.comment { display: flex; gap: 10px; }
.comment .cbody { flex: 1; min-width: 0; }
.chead { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; }
.chead b { color: var(--ink); font-weight: 600; }
.cact { margin-left: auto; display: flex; gap: 2px; opacity: 0; transition: opacity .15s; }
.comment:hover .cact, .comment:focus-within .cact { opacity: 1; }
.cact button { border: 0; background: none; color: var(--muted); font-size: 12px; padding: 0 5px; border-radius: 4px; }
.cact button:hover { color: var(--ink); background: var(--hover); }
.ctext { margin-top: 3px; background: var(--surface-2); border: 1px solid var(--line2); border-radius: 0 10px 10px 10px; padding: 8px 11px; color: var(--ink); white-space: pre-wrap; word-break: break-word; line-height: 1.45; }
.cedit-box { margin-top: 4px; }
.comment-box { display: flex; gap: 10px; align-items: flex-start; }
.cb-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.cedit-box .cb-foot { justify-content: flex-end; }

/* ---------- Overview ---------- */
.ov-hello { margin-bottom: 18px; }
.ov-hello h2 { font-family: Poppins, Inter, sans-serif; font-size: 24px; font-weight: 600; margin: 0 0 2px; }
.statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--surface); border: 1px solid var(--line2); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow-sm); }
.stat .l { color: var(--body); font-weight: 500; font-size: 12.5px; }
.stat .n { font-size: 28px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; line-height: 1.2; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .s { color: var(--muted); font-size: 12px; margin-top: 2px; }
.stat.warn { border-color: color-mix(in srgb, var(--red) 35%, var(--line2)); }
.stat.warn .s { color: var(--red); }
.page { padding: 22px 24px 40px; }   /* pages use the full width of the screen */
.panel { background: var(--surface); border: 1px solid var(--line2); border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow-sm); min-width: 0; }
.panel .ph { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.panel h3, .sechead h3 { font-size: 15px; font-weight: 600; margin: 0; }
.sechead { display: flex; align-items: center; gap: 12px; margin: 24px 0 12px; }
.ov-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; }
.chart { position: relative; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--line2); stroke-width: 1; }
.chart .tick { fill: var(--muted); font-size: 10.5px; font-family: Inter, sans-serif; }
.chart .bar { fill: var(--btn); }
.chart .bar.now { fill: var(--brand-2); }
.chart .hit { fill: transparent; }
.chart .bar-g.hover .hit { fill: var(--hover); }
.chart-tip { position: absolute; pointer-events: none; background: var(--charcoal); color: #fff; font-size: 12px; padding: 5px 9px; border-radius: 6px; white-space: nowrap; box-shadow: var(--shadow-md); z-index: 2; }
[data-bs-theme=dark] .chart-tip { background: #f1f2ef; color: #1a1b1a; }
.att-list { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow-y: auto; }
.att { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; border: 1px solid var(--line2); border-left: 3px solid var(--c); background: var(--surface); border-radius: 8px; padding: 8px 10px; }
.att:hover { background: var(--hover); }
.att-main { flex: 1; min-width: 0; }
.att-main b { display: block; color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-main small, .att-side small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.att-side { text-align: right; font-size: 12px; font-weight: 500; flex: 0 0 auto; max-width: 45%; }
.att-side .bi { margin-right: 4px; }
.att-empty { display: flex; gap: 8px; align-items: center; color: var(--muted); padding: 30px 0; justify-content: center; }
.att-empty .bi { color: var(--brand-2); font-size: 18px; }
.ov-boards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.ov-board { text-align: left; background: var(--surface); border: 1px solid var(--line2); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px; transition: transform .15s, box-shadow .15s; color: var(--body); }
.ov-board:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.ov-board.new { align-items: center; justify-content: center; border: 1.5px dashed var(--line); background: none; box-shadow: none; color: var(--muted); font-weight: 600; flex-direction: row; min-height: 120px; }
.ov-board.new:hover { border-color: var(--brand); color: var(--brand-ink); background: var(--soft); }
.obh { display: flex; align-items: center; gap: 10px; }
.obh .bi-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--lane); font-size: 16px; flex: 0 0 30px; }
.obh b { color: var(--ink); font-size: 15px; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stagebar { display: flex; gap: 2px; height: 8px; border-radius: 4px; overflow: hidden; }
.stagebar i { display: block; min-width: 4px; }
.stagebar i.empty { background: var(--line2); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); }
.legend b { color: var(--ink); font-weight: 600; }
.obf { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.obf .avatars { padding-left: 0; }
.obf .avatar { width: 26px; height: 26px; flex: 0 0 26px; font-size: 10px; margin-left: -7px; }
.obf .avatar:first-child { margin-left: 0; }
@media (max-width: 1000px) { .ov-grid { grid-template-columns: 1fr; } }
@media (max-width: 1200px) { .search { width: 230px; } .search kbd { display: none; } }
@media (max-width: 900px) { .search { width: 100%; order: 10; } .search kbd { display: none; } .search-results { min-width: 0; } }

/* =========================================================
   Celebrations & toasts
   ========================================================= */
.celebrate { position: fixed; inset: 0; z-index: 1060; display: grid; place-items: center; pointer-events: none; opacity: 0; transition: opacity .25s; }
.celebrate.on { opacity: 1; pointer-events: auto; background: rgba(20, 22, 19, .4); }
.cbox { background: var(--surface); border-radius: 18px; max-width: 400px; width: calc(100vw - 32px); overflow: hidden; text-align: center; box-shadow: var(--shadow-lg); transform: scale(.7) translateY(20px); transition: transform .45s cubic-bezier(.2, 1.6, .4, 1); }
.celebrate.on .cbox { transform: none; }
.cbox .hero-band { background: var(--brand-grad); padding: 26px 20px 22px; position: relative; overflow: hidden; }
.cbox .hero-band::after { content: ""; position: absolute; inset: auto -30% -60% -30%; height: 120%; background: radial-gradient(closest-side, rgba(255, 255, 255, .25), transparent); }
.cbox .big { width: 76px; height: 76px; border-radius: 50%; background: rgba(255, 255, 255, .2); display: inline-grid; place-items: center; color: #fff; font-size: 40px; animation: bob 1.6s ease-in-out infinite; position: relative; z-index: 1; }
@keyframes bob { 50% { transform: translateY(-5px) rotate(6deg); } }
.cbox .inner { padding: 22px 28px 26px; }
.cbox h2 { font-family: Poppins, Inter, sans-serif; margin: 0 0 6px; font-size: 21px; font-weight: 600; }
.cbox p { margin: 0 0 20px; line-height: 1.55; }

#fx { position: fixed; inset: 0; pointer-events: none; z-index: 1070; }
.lp-toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(30px); background: var(--charcoal); color: #fff; padding: 11px 18px; border-radius: 10px; font-weight: 500; z-index: 1080; opacity: 0; transition: all .3s cubic-bezier(.2, 1.4, .4, 1); box-shadow: var(--shadow-lg); pointer-events: none; max-width: calc(100vw - 32px); }
[data-bs-theme=dark] .lp-toast { background: #f1f2ef; color: #1a1b1a; }
.lp-toast.on { opacity: 1; transform: translateX(-50%); }
.lp-toast.err { background: var(--red); color: #fff; }

/* Chat message pop-ups (bottom-right; move left of the chat panel when it's open) */
.chat-toasts { position: fixed; right: 20px; bottom: 20px; z-index: 1075; display: flex; flex-direction: column; gap: 10px; width: 340px; max-width: calc(100vw - 32px); pointer-events: none; }
body.chat-open .chat-toasts { right: 400px; }
.chat-toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid #0ea5e9; border-radius: 12px; box-shadow: var(--shadow-lg); padding: 11px 10px 11px 12px; cursor: pointer; animation: ct-in .28s cubic-bezier(.2, 1.2, .4, 1); transition: opacity .2s, transform .2s; }
.chat-toast:hover { border-color: color-mix(in srgb, #0ea5e9 45%, var(--line)); border-left-color: #0ea5e9; }
.chat-toast:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.chat-toast.out { opacity: 0; transform: translateX(24px); }
.chat-toast .avatar { width: 32px; height: 32px; flex: 0 0 32px; font-size: 11px; }
.ct-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ct-head { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.ct-head b { color: var(--ink); font-size: 13.5px; white-space: nowrap; }
.ct-head small { color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-text { color: var(--body); font-size: 13px; line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.ct-close { flex: 0 0 auto; border: 0; background: none; color: var(--muted); width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; }
.ct-close:hover { background: var(--hover); color: var(--ink); }
@keyframes ct-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .chat-toast { animation: none; } }
@media (max-width: 900px) { body.chat-open .chat-toasts { right: 16px; } }

@media (max-width: 900px) {
  .side { position: fixed; left: 0; top: 0; bottom: 0; z-index: 1045; transform: translateX(-100%); transition: transform .25s; box-shadow: var(--shadow-lg); }
  .side.on { transform: none; }
  .sidescrim.on { display: block; position: fixed; inset: 0; z-index: 1044; background: rgba(20, 22, 19, .35); }
  .hamb { display: inline-flex; }
  .topbar { padding: 10px 14px; flex-wrap: wrap; }
  .board { padding: 14px; }
  .hide-sm { display: none; }
  .avatars { display: none; }
  .frow { flex-direction: column; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Board filters ---------- */
.filter-wrap { position: relative; }
.filter-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--brand-2); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.filter-panel { position: absolute; top: calc(100% + 8px); left: 0; width: 340px; max-width: calc(100vw - 24px); max-height: min(520px, calc(100vh - 90px)); overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 1040; padding: 12px 14px; }
.fp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.fp-head b { color: var(--ink); font-size: 14px; }
.fp-sec { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 12px 0 6px; }
.fp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--body); font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 99px; }
.fchip:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); color: var(--ink); }
.fchip.on { background: var(--soft); color: var(--brand-ink); border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); }
.fchip .avatar { width: 18px; height: 18px; flex: 0 0 18px; font-size: 8px; margin-left: -4px; }
.fchip .bdot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.fp-switch { margin: 14px 0 0; }
.fp-foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line2); color: var(--muted); font-size: 12px; }

/* ---------- Timer chip (top bar) ---------- */
.timer-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 260px; border: 1px solid color-mix(in srgb, var(--red) 40%, var(--line)); background: color-mix(in srgb, var(--red) 8%, var(--surface)); color: var(--ink); font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 99px; white-space: nowrap; }
.timer-chip span { overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.timer-chip .bi { color: var(--red); animation: timer-pulse 1.6s ease-in-out infinite; }
@keyframes timer-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .timer-chip .bi { animation: none; } }

/* ---------- Archive ---------- */
.search-in { position: relative; }
.search-in > .bi { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-in .form-control { padding-left: 32px; }
.arch-list { display: flex; flex-direction: column; gap: 6px; }
.arch-row { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line2); border-radius: 9px; padding: 6px 8px; }
.arch-main { flex: 1; min-width: 0; text-align: left; border: 0; background: none; padding: 2px 4px; color: var(--ink); }
.arch-main b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arch-main small { display: block; color: var(--muted); font-size: 12px; }
.arch-main:hover b { color: var(--brand-ink); }
.arch-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 28px 12px; color: var(--muted); }
.arch-empty .bi { font-size: 30px; }
.arch-empty b { color: var(--ink); }
.arch-banner { display: flex; align-items: center; gap: 10px; background: color-mix(in srgb, var(--amber) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--amber) 35%, transparent); color: var(--ink); border-radius: 10px; padding: 9px 12px; margin-bottom: 14px; font-size: 13px; }
.arch-banner > .bi { color: var(--amber); font-size: 16px; }
.arch-banner span { flex: 1; }
.sr-tag { font-size: 10.5px; font-weight: 700; color: var(--amber); background: color-mix(in srgb, var(--amber) 12%, transparent); padding: 2px 7px; border-radius: 99px; white-space: nowrap; }

/* ---------- Time tracking (card panel) ---------- */
.time-sum { display: flex; justify-content: space-between; align-items: center; background: var(--surface-2); border: 1px solid var(--line2); border-radius: 9px; padding: 8px 12px; margin-bottom: 8px; font-size: 13px; }
.time-sum b { color: var(--ink); font-size: 15px; }
.time-list { display: flex; flex-direction: column; }
.time-row { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-bottom: 1px solid var(--line2); font-size: 13px; }
.time-row:last-child { border-bottom: 0; }
.tr-date { flex: 0 0 92px; color: var(--muted); }
.tr-who { flex: 0 0 auto; max-width: 110px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-note { flex: 1; min-width: 0; color: var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-mins { font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.tr-btn { border: 0; background: none; color: var(--muted); padding: 2px 4px; border-radius: 6px; opacity: 0; }
.time-row:hover .tr-btn, .tr-btn:focus-visible { opacity: 1; }
.tr-btn:hover { color: var(--ink); background: var(--hover); }
@media (hover: none) { .tr-btn { opacity: 1; } }
.time-form { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0; }
.time-form input[type=date] { width: 150px; }
.tf-dur { display: inline-flex; align-items: center; gap: 4px; }
.tf-dur input { width: 58px; }
.tf-dur span { color: var(--muted); font-size: 12px; }
.tf-note { flex: 1 1 160px; min-width: 140px; }
.timer-btn { font-variant-numeric: tabular-nums; }
.timer-btn.running { color: var(--red); border-color: color-mix(in srgb, var(--red) 40%, var(--line)); background: color-mix(in srgb, var(--red) 7%, var(--surface)); }

/* ---------- My work ---------- */
.mw-stats { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.mw-group { margin-top: 22px; }
.mw-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--ink); font-size: 14px; }
.mw-head.late .bi { color: var(--red); }
.mw-head.soon .bi { color: var(--amber); }
.mw-group .att-list.panel { padding: 8px; }
.att .att-main small .nb-mark { margin-right: 3px; }

/* ---------- Chat: editing, files ---------- */
.msg-edit { position: absolute; top: 50%; transform: translateY(-50%); left: -56px; opacity: 0; border: 0; background: none; color: var(--muted); padding: 2px 6px; }
.msg:hover .msg-edit { opacity: 1; }
.msg-edit:hover { color: var(--ink); }
@media (hover: none) { .msg-edit, .msg-del { opacity: .7; } }
.msg-edited { font-size: 11px; color: var(--muted); margin-left: 6px; white-space: nowrap; }
.msg-text.editing { white-space: normal; min-width: min(320px, 70vw); padding: 6px; }
.msg-edit-input { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 6px 9px; font: inherit; color: var(--ink); background: var(--surface); resize: none; }
.msg-edit-input:focus { outline: 2px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 1px; }
.msg-edit-foot { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 6px; }
.msg-edit-foot span { margin-right: auto; color: var(--muted); font-size: 11px; }
.msg-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; white-space: normal; }
.msg-text.files-only .msg-files { margin-top: 0; }
.msg-img { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line2); background: var(--surface); }
.msg-img img { display: block; max-width: 240px; max-height: 220px; object-fit: cover; }
.msg-file { display: flex; align-items: center; gap: 9px; min-width: 200px; max-width: 280px; padding: 7px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line2); color: var(--ink) !important; text-decoration: none; }
.msg-file > .bi:first-child { font-size: 22px; color: var(--brand-ink); }
.msg-file span { flex: 1; min-width: 0; line-height: 1.25; }
.msg-file b { display: block; font-weight: 600; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-file small { color: var(--muted); font-size: 11px; }
.msg-file > .bi:last-child { color: var(--muted); }
.msg-file:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.compose-files { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 2px 8px; }
.cf-chip { display: inline-flex; align-items: center; gap: 7px; max-width: 220px; border: 1px solid var(--line); background: var(--surface); border-radius: 9px; padding: 4px 4px 4px 6px; font-size: 12px; }
.cf-chip img { width: 30px; height: 30px; object-fit: cover; border-radius: 6px; }
.cf-chip > .bi { font-size: 20px; color: var(--brand-ink); }
.cf-name { min-width: 0; line-height: 1.2; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-name small { display: block; color: var(--muted); font-size: 10.5px; }
.cf-chip button { border: 0; background: none; color: var(--muted); padding: 0 4px; font-size: 16px; border-radius: 5px; }
.cf-chip button:hover { color: var(--ink); background: var(--hover); }
#chat.drop .chat-conv { outline: 2px dashed color-mix(in srgb, var(--brand) 60%, transparent); outline-offset: -8px; border-radius: 12px; }

/* ---------- Reminders in the bell ---------- */
.avatar.notif-sys { background: color-mix(in srgb, var(--amber) 16%, var(--surface)); color: var(--amber); font-size: 15px; }
.notif-type.t-dueSoon { background: #e5a50a; }
.notif-type.t-dueToday { background: var(--red); }
.notif-toast.t-dueSoon { border-left-color: #e5a50a; }
.notif-toast.t-dueToday { border-left-color: var(--red); }

/* ---------- Audit log (settings) ---------- */
.audit-tools { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.audit-list { display: flex; flex-direction: column; max-height: 420px; overflow-y: auto; border: 1px solid var(--line2); border-radius: 10px; }
.audit-row { display: flex; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line2); font-size: 13px; }
.audit-row:last-child { border-bottom: 0; }
.audit-ic { flex: 0 0 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--lane); color: var(--body); }
.audit-main { min-width: 0; }
.audit-main b { color: var(--ink); }
.audit-detail { color: var(--ink); font-weight: 600; word-break: break-word; }
.audit-main small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 1px; }

/* ---------- Dashboards (Overview and My work): colour, icons, depth ---------- */
.dash-banner { position: relative; overflow: hidden; display: flex; align-items: center; gap: 16px; padding: 22px 24px; margin-bottom: 18px; border-radius: 18px; color: #fff;
  background: radial-gradient(500px 220px at 95% -20%, rgba(255, 255, 255, .22), transparent 60%), linear-gradient(120deg, #2f9a2a 0%, #3fab35 45%, #6ab43e 100%); box-shadow: 0 10px 30px -12px rgba(63, 171, 53, .55); }
.dash-banner::after { content: ""; position: absolute; right: -60px; bottom: -90px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.db-ic { flex: 0 0 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.db-text { flex: 1; min-width: 0; position: relative; z-index: 1; }
.db-text h2 { font-family: Poppins, Inter, sans-serif; font-size: 23px; font-weight: 600; margin: 0 0 2px; color: #fff; }
.db-text p { margin: 0; color: rgba(255, 255, 255, .88); font-size: 14px; }
.db-date { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .18); }
@media (max-width: 640px) { .db-date { display: none; } .dash-banner { padding: 18px; } }

.stat { --k: var(--brand); position: relative; overflow: hidden; padding: 16px 18px 15px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--k) 22%, var(--line2));
  background: radial-gradient(180px 120px at 100% 0%, color-mix(in srgb, var(--k) 13%, transparent), transparent 70%), var(--surface); transition: transform .15s, box-shadow .15s; }
.stat::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--k), color-mix(in srgb, var(--k) 40%, transparent)); }
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-ic { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 17px;
  color: var(--k); background: color-mix(in srgb, var(--k) 15%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--k) 25%, transparent); }
.stat .l { padding-right: 46px; min-height: 32px; }
.stat .n { font-size: 30px; color: var(--ink); }
.stat .s { color: color-mix(in srgb, var(--k) 55%, var(--muted)); font-weight: 500; }
.stat.warn { border-color: color-mix(in srgb, var(--red) 40%, var(--line2)); }
.stat.warn .n { color: var(--red); }

.ph-ic { --k: var(--brand); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; margin-right: 9px; vertical-align: -8px; font-size: 14px;
  color: var(--k); background: color-mix(in srgb, var(--k) 15%, var(--surface)); }
.panel h3, .sechead h3 { display: flex; align-items: center; }
.panel { border-radius: 14px; }

.ov-board { position: relative; overflow: hidden; border-top: 0; }
.ov-board::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--bc, var(--brand)), color-mix(in srgb, var(--bc, var(--brand)) 35%, transparent)); }
.ov-board.new::before { display: none; }
.obh .bi-ic { background: color-mix(in srgb, var(--bc, var(--brand)) 14%, var(--surface)); }
.ob-stats { display: inline-flex; gap: 10px; font-size: 12.5px; font-weight: 600; color: var(--body); }
.ob-stats span { display: inline-flex; align-items: center; gap: 4px; }
.ob-stats .bi { color: var(--muted); }
.ob-stats .late, .ob-stats .late .bi { color: var(--red); }
.ob-stats .done .bi { color: var(--brand-2); }

.mw-head .ph-ic { margin-right: 2px; vertical-align: 0; }
.mw-count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; font-size: 12px; font-weight: 700; display: inline-grid; place-items: center;
  color: var(--k); background: color-mix(in srgb, var(--k) 14%, var(--surface)); }

/* ---------- Landing page: colourful icons, time mock ---------- */
.usp { --u: var(--brand); border-top: 3px solid var(--u); }
.usp-ic { color: var(--u); background: color-mix(in srgb, var(--u) 14%, var(--surface)); }
.feat-grid > div { --f: var(--brand); }
.feat-grid .bi { color: var(--f); background: color-mix(in srgb, var(--f) 14%, var(--surface)); }
.feat-grid > div:hover { border-color: color-mix(in srgb, var(--f) 40%, var(--line2)); }
.feat-soon { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; color: var(--muted); font-size: 14px; }
.feat-soon .bi { color: var(--brand-ink); }
.feat-soon b { color: var(--ink); }
.mp-time { display: grid; grid-template-columns: 90px 34px 1fr auto; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line2); color: var(--ink); }
.mp-time span { color: var(--muted); }
.mp-time b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; color: #fff; background: #3fab35; }
.mp-time:nth-child(3) b { background: #0ea5e9; }
.mp-time em { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-time strong { font-variant-numeric: tabular-nums; }
.mp-timer { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; padding: 7px 13px; border-radius: 9px; font-weight: 600; font-variant-numeric: tabular-nums;
  color: var(--red); background: color-mix(in srgb, var(--red) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--red) 35%, var(--line)); }
.pill.at { border-color: color-mix(in srgb, #8b5cf6 50%, var(--line)); color: #6d28d9; }

/* ---------- Account settings (/account/…) ---------- */
.auth-wrap:has(.acct), .auth-wrap:has(.auth-split) { max-width: 1100px; padding: 0; overflow: hidden; }
/* Account settings line up with the top nav (same width as .pub-top-inner). */
.auth-wrap:has(.acct) { max-width: 1160px; }
.acct-head { display: flex; align-items: center; gap: 16px; padding: 24px 28px; color: #fff;
  background: radial-gradient(500px 200px at 95% -30%, rgba(255, 255, 255, .22), transparent 60%), linear-gradient(120deg, #2f9a2a, #3fab35 50%, #6ab43e); }
.acct-av { flex: 0 0 60px; height: 60px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-size: 21px; font-weight: 700;
  background: rgba(255, 255, 255, .22); box-shadow: 0 0 0 3px rgba(255, 255, 255, .45); }
.acct-av img { width: 100%; height: 100%; object-fit: cover; }
.acct-who { flex: 1; min-width: 0; }
.acct-who h1 { font-family: Poppins, Inter, sans-serif; font-size: 22px; font-weight: 600; margin: 0 0 2px; color: #fff; }
.acct-who p { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: rgba(255, 255, 255, .9); }
.acct-email { overflow: hidden; text-overflow: ellipsis; }
.acct-head .plan-chip { background: rgba(255, 255, 255, .22); color: #fff; }
.acct-head .plan-chip.pro { background: #fff; color: var(--brand-ink); }
.acct-back { flex: 0 0 auto; }
@media (max-width: 640px) { .acct-back span { display: none; } .acct-head { padding: 18px; } }

.acct-body { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 460px; }
.acct-side { border-right: 1px solid var(--line2); padding: 18px 12px; background: var(--surface-2); }
.acct-nav { display: flex; flex-direction: column; gap: 3px; }
.acct-nav a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--body); text-decoration: none; }
.acct-nav a > .bi { flex: 0 0 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line2); font-size: 15px; color: var(--muted); }
.acct-nav a span { display: flex; flex-direction: column; line-height: 1.25; font-weight: 600; font-size: 14px; color: var(--ink); }
.acct-nav a small { font-weight: 400; font-size: 12px; color: var(--muted); }
.acct-nav a:hover { background: var(--hover); }
.acct-nav a.on { background: var(--soft); }
.acct-nav a.on > .bi { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.acct-nav a.on span { color: var(--brand-ink); }
.acct-main { padding: 26px 30px 30px; min-width: 0; }
@media (max-width: 820px) {
  .acct-body { grid-template-columns: 1fr; }
  .acct-side { border-right: 0; border-bottom: 1px solid var(--line2); padding: 10px; }
  .acct-nav { flex-direction: row; overflow-x: auto; }
  .acct-nav a { flex: 0 0 auto; }
  .acct-nav a small { display: none; }
  .acct-main { padding: 20px; }
}
/* The built-in account pages inside the frame */
.acct-main > h3:first-child, .acct-title h2 { font-family: Poppins, Inter, sans-serif; font-size: 20px; font-weight: 600; color: var(--ink); margin: 0 0 4px; }
.acct-title p { color: var(--muted); margin: 0 0 18px; }
.acct-main > h3:first-child { margin-bottom: 16px; }
.acct-main .row > [class*="col-md"] { flex: 0 0 100%; max-width: 560px; }
.acct-main .btn-primary.w-100 { width: auto !important; padding: 9px 20px; }
.acct-main .alert { border-radius: 10px; }

.acct-alert { display: flex; align-items: center; gap: 9px; padding: 11px 14px; border-radius: 10px; margin-bottom: 16px; font-size: 14px;
  background: color-mix(in srgb, var(--brand) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent); color: var(--ink); }
.acct-alert .bi { color: var(--brand-ink); font-size: 17px; }
.acct-alert.err { background: color-mix(in srgb, var(--red) 9%, var(--surface)); border-color: color-mix(in srgb, var(--red) 35%, transparent); }
.acct-alert.err .bi { color: var(--red); }

/* Plan & billing */
.plan-card { border: 1px solid var(--line2); border-radius: 16px; padding: 20px 22px; background: var(--surface); box-shadow: var(--shadow-sm); }
.plan-card.pro { border-color: color-mix(in srgb, var(--brand) 40%, var(--line2));
  background: radial-gradient(380px 160px at 100% 0%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%), var(--surface); }
.pc-top { display: flex; align-items: center; gap: 14px; }
.pc-ic { flex: 0 0 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; font-size: 22px; color: var(--brand-ink); background: var(--soft); }
.plan-card.pro .pc-ic { background: linear-gradient(135deg, #3fab35, #6ab43e); color: #fff; }
.pc-name { flex: 1; }
.pc-name small, .pc-price small { display: block; color: var(--muted); font-size: 12px; }
.pc-name b { font-size: 19px; color: var(--ink); }
.pc-price { text-align: right; }
.pc-price b { font-size: 22px; color: var(--ink); }
.pc-state { margin: 14px 0 0; color: var(--body); display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.pc-state .bi { color: var(--brand-ink); }
.pc-state.warn .bi { color: var(--amber); }
.pc-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line2); }
.pc-actions form { margin: 0; }
.pc-actions form:last-child:has(.text-danger) { margin-left: auto; }
.acct-section { margin-top: 26px; }
.acct-section h3 { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.pro-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 16px; }
.pro-list li { display: flex; gap: 8px; align-items: center; color: var(--body); }
.pro-list .bi { color: var(--brand-2); }
.inv-empty { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 18px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); }
.inv-empty .bi { font-size: 20px; }
.inv-table { margin-top: 10px; border: 1px solid var(--line2); border-radius: 12px; overflow: hidden; }
.inv-row { display: grid; grid-template-columns: 1fr 1.3fr .9fr .8fr auto; gap: 10px; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--line2); font-size: 13.5px; color: var(--ink); }
.inv-row:last-child { border-bottom: 0; }
.inv-head { background: var(--surface-2); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.inv-num { color: var(--muted); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }
.inv-amt { font-weight: 600; font-variant-numeric: tabular-nums; }
.inv-status { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: var(--lane); color: var(--body); }
.inv-status.paid { background: color-mix(in srgb, var(--brand) 15%, var(--surface)); color: var(--brand-ink); }
.inv-status.open { background: color-mix(in srgb, var(--amber) 15%, var(--surface)); color: var(--amber); }
.inv-status.void { color: var(--muted); }
.inv-links { display: flex; gap: 12px; justify-content: flex-end; white-space: nowrap; }
.inv-links a { color: var(--brand-ink); font-weight: 600; text-decoration: none; display: inline-flex; gap: 4px; align-items: center; }
.inv-links a:hover { text-decoration: underline; }
@media (max-width: 640px) { .inv-row { grid-template-columns: 1fr auto; } .inv-row > :nth-child(2), .inv-row > :nth-child(4) { display: none; } .inv-head { display: none; } }
.acct-note { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); display: flex; gap: 7px; align-items: baseline; }

/* ---------- Sign in / sign up ---------- */
.auth-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.auth-form { padding: clamp(24px, 5vw, 48px); }
.auth-form h1 { font-family: Poppins, Inter, sans-serif; font-size: 27px; font-weight: 700; margin: 0 0 4px; color: var(--ink); }
.auth-sub { color: var(--muted); margin-bottom: 22px; }
.auth-error:empty, .auth-error ul:empty { display: none; }
.auth-error { color: var(--red); font-size: 13.5px; margin-bottom: 10px; }
.auth-error ul { margin: 0; padding-left: 18px; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 18px; font-size: 14px; }
.auth-row a, .auth-alt a { color: var(--brand-ink); font-weight: 600; text-decoration: none; }
.auth-row a:hover, .auth-alt a:hover { text-decoration: underline; }
.auth-hint { font-size: 12.5px; color: var(--muted); margin: 0 0 16px; }
.auth-alt { margin: 18px 0 0; color: var(--body); text-align: center; }
.auth-alt.small { margin-top: 6px; }
.auth-or { display: flex; align-items: center; gap: 10px; margin: 18px 0; color: var(--muted); font-size: 12.5px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-aside { padding: clamp(24px, 5vw, 48px); color: #fff; display: flex; flex-direction: column; justify-content: center;
  background: radial-gradient(420px 260px at 100% 0%, rgba(255, 255, 255, .2), transparent 60%), linear-gradient(150deg, #2f9a2a, #3fab35 55%, #6ab43e); }
.aa-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: rgba(255, 255, 255, .2); margin-bottom: 16px; }
.auth-aside h2 { font-family: Poppins, Inter, sans-serif; font-size: 22px; font-weight: 600; color: #fff; margin-bottom: 16px; }
.auth-aside ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.auth-aside li { display: flex; gap: 10px; align-items: flex-start; color: rgba(255, 255, 255, .92); }
.auth-aside li .bi { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(255, 255, 255, .18); font-size: 13px; }
@media (max-width: 820px) { .auth-split { grid-template-columns: 1fr; } .auth-aside { display: none; } }

/* ---------- One-to-one calls ---------- */
.call-box { position: fixed; right: 20px; bottom: 20px; z-index: 1085; width: 320px; max-width: calc(100vw - 24px); border-radius: 18px; overflow: hidden;
  background: #1f2420; color: #fff; box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .55); animation: ct-in .25s ease; }
body.chat-open .call-box { right: 400px; }
@media (max-width: 900px) { body.chat-open .call-box { right: 12px; } }
.call-box.big { width: min(880px, calc(100vw - 24px)); }
.call-stage { position: relative; background: radial-gradient(260px 180px at 50% 30%, rgba(63, 171, 53, .35), transparent 70%), #1f2420; min-height: 170px; display: grid; place-items: center; }
.call-box.has-video .call-stage { aspect-ratio: 16 / 10; min-height: 0; }
.call-box.big:not(.has-video) .call-stage { min-height: 320px; }
#callRemote { width: 100%; height: 100%; object-fit: cover; background: #000; }
.call-box.screen #callRemote { object-fit: contain; }
.call-box:not(.has-video) #callRemote { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }   /* still plays the audio */
.call-who { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 14px 18px; text-align: center; }
.call-box.has-video .call-who { position: absolute; left: 12px; top: 10px; flex-direction: row; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 99px; background: rgba(0, 0, 0, .45); }
.call-av .avatar { width: 64px; height: 64px; flex-basis: 64px; font-size: 22px; box-shadow: 0 0 0 4px rgba(255, 255, 255, .12); }
.call-box.ringing .call-av .avatar { animation: call-pulse 1.6s ease-out infinite; }
@keyframes call-pulse { 0% { box-shadow: 0 0 0 0 rgba(106, 180, 62, .6); } 100% { box-shadow: 0 0 0 18px rgba(106, 180, 62, 0); } }
.call-box.has-video .call-av .avatar { width: 26px; height: 26px; flex-basis: 26px; font-size: 10px; box-shadow: none; animation: none; }
.call-who b { font-size: 16px; }
.call-box.has-video .call-who b { font-size: 13px; }
.call-who small { color: rgba(255, 255, 255, .7); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.call-box.has-video .call-who small { display: none; }
#callLocal { position: absolute; right: 10px; bottom: 10px; width: 30%; max-width: 160px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: #000; box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); }
#callLocal.mirror { transform: scaleX(-1); }
.call-box:not(.has-video) #callLocal { position: static; width: 96px; margin: -6px auto 14px; }
.call-ctrls { display: flex; justify-content: center; gap: 10px; padding: 12px; background: rgba(0, 0, 0, .28); }
.call-ctrls button { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; font-size: 17px; color: #fff; background: rgba(255, 255, 255, .14); transition: background .15s; }
.call-ctrls button:hover { background: rgba(255, 255, 255, .24); }
.call-ctrls button.off { background: #fff; color: #1f2420; }
.call-ctrls button.on { background: var(--brand-2); }
.call-ctrls button:disabled { opacity: .4; }
.call-ctrls button.hang { background: #df1b41; }
.call-ctrls button.hang:hover { background: #c3123a; }
@media (prefers-reduced-motion: reduce) { .call-box.ringing .call-av .avatar { animation: none; } }

.call-ring { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 1090; width: min(420px, calc(100vw - 24px)); display: flex; align-items: center; gap: 12px;
  padding: 12px 12px 12px 14px; border-radius: 16px; background: #1f2420; color: #fff; box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .55); animation: ct-in .25s ease; }
.cr-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.cr-who .avatar { width: 42px; height: 42px; flex-basis: 42px; font-size: 15px; animation: call-pulse 1.6s ease-out infinite; }
.cr-who b { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-who small { display: flex; align-items: center; gap: 5px; color: rgba(255, 255, 255, .7); font-size: 12.5px; }
.cr-btns { display: flex; gap: 8px; }
.cr-btns button { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; font-size: 17px; color: #fff; }
.cr-decline { background: #df1b41; }
.cr-accept { background: #3fab35; }
.cr-accept:hover { background: #349a2b; }

/* ---------- Chat panel: a bit wider, compact header ---------- */
:root { --chat-w: 420px; }
@media (min-width: 901px) {
  .chat { width: var(--chat-w); }
  body.chat-open .content { margin-right: var(--chat-w); }
  body.chat-open .chat-toasts, body.chat-open .call-box { right: calc(var(--chat-w) + 20px); }
}
.chat-head { gap: 10px; padding: 10px 12px; min-height: 56px; }
.chat-head .btn.btn-icon { width: 32px; height: 32px; padding: 0; border: 0; background: none; box-shadow: none; color: var(--muted); border-radius: 8px; }
.chat-head .btn.btn-icon:hover { background: var(--hover); color: var(--ink); }
.chat-head .chat-ic, .chat-head #chatIc .avatar { width: 34px; height: 34px; flex: 0 0 34px; }
.chat-head b { font-size: 14.5px; line-height: 1.25; }
.chat-head small { display: flex; align-items: center; gap: 5px; font-size: 11.5px; }
.ch-pres { width: 7px; height: 7px; border-radius: 50%; background: #9ca3af; flex: 0 0 7px; }
.ch-pres.online { background: #22c55e; }
.ch-pres.away { background: #f59e0b; }
.ch-pres.dnd { background: #ef4444; }
.chat-calls { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; flex: 0 0 auto; }
.chat-calls[hidden] { display: none; }
.chat-calls button { width: 34px; height: 30px; border: 0; background: var(--surface); color: var(--body); display: grid; place-items: center; font-size: 15px; }
.chat-calls button + button { border-left: 1px solid var(--line); }
.chat-calls button:hover { background: var(--soft); color: var(--brand-ink); }
.chat-calls { position: relative; overflow: visible; }
.chat-calls button:first-child { border-radius: 8px 0 0 8px; }
.chat-calls button:last-child { border-radius: 0 8px 8px 0; }
.chat-calls.locked::after { content: "PRO"; position: absolute; top: -7px; right: -6px; font-size: 8.5px; font-weight: 800; letter-spacing: .04em; padding: 1px 5px; border-radius: 99px; color: #fff; background: linear-gradient(135deg, #3fab35, #6ab43e); box-shadow: 0 0 0 2px var(--surface); pointer-events: none; }
.chat-calls.locked button { color: var(--muted); }

/* "Return to call" (top bar) and minimise */
.call-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 300px; border: 0; border-radius: 99px; padding: 5px 6px 5px 12px; font-size: 12.5px; font-weight: 600;
  color: #fff; background: linear-gradient(135deg, #2f9a2a, #3fab35); box-shadow: 0 4px 14px -6px rgba(63, 171, 53, .7); white-space: nowrap; }
.call-chip .cc-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; flex: 0 0 8px; animation: timer-pulse 1.4s ease-in-out infinite; }
.call-chip .cc-text { overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.call-chip b { flex: 0 0 auto; padding: 3px 9px; border-radius: 99px; background: rgba(255, 255, 255, .22); font-size: 11.5px; }
.call-chip:hover b { background: rgba(255, 255, 255, .35); }
.call-chip.ringing { background: linear-gradient(135deg, #b45309, #e5a50a); }
@media (max-width: 760px) { .call-chip .cc-text { display: none; } }
@media (prefers-reduced-motion: reduce) { .call-chip .cc-dot { animation: none; } }
.call-min { position: absolute; top: 8px; right: 8px; z-index: 2; width: 30px; height: 30px; border: 0; border-radius: 8px; display: grid; place-items: center;
  color: #fff; background: rgba(255, 255, 255, .14); }
.call-min:hover { background: rgba(255, 255, 255, .26); }
.call-box.flash { animation: call-flash .6s ease; }
@keyframes call-flash { 0% { transform: scale(.94); } 60% { transform: scale(1.02); } 100% { transform: scale(1); } }

/* ---------- Call window layout: the buttons always show, the video always fits ---------- */
.call-box { display: flex; flex-direction: column; max-height: calc(100vh - 40px); }
.call-stage { flex: 1 1 auto; min-height: 170px; overflow: hidden; }
.call-box.has-video .call-stage { aspect-ratio: 16 / 10; min-height: 0; max-height: calc(100vh - 140px); width: 100%; }
/* The video fills its frame instead of setting the window's size (that's what pushed the buttons off). */
.call-box.has-video #callRemote { position: absolute; inset: 0; width: 100%; height: 100%; }
.call-ctrls { flex-shrink: 0; flex-wrap: wrap; }
.call-min { z-index: 3; }
.call-box.has-video .call-who { z-index: 2; }
#callLocal { z-index: 2; }

/* Centre view: big, in the middle, page dimmed behind (Esc or the button puts it back). */
.call-box.center { left: 50%; top: 50%; right: auto; bottom: auto; translate: -50% -50%; width: min(960px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
  box-shadow: 0 0 0 100vmax rgba(10, 14, 10, .55), 0 24px 70px -10px rgba(0, 0, 0, .6); }
body.chat-open .call-box.center { right: auto; }
.call-box.center .call-stage { min-height: 380px; }
.call-box.center.has-video .call-stage { max-height: calc(100vh - 110px); min-height: 0; }
.call-box.center #callLocal { max-width: 220px; }
.call-box.center .call-av .avatar { width: 96px; height: 96px; flex-basis: 96px; font-size: 32px; }
@keyframes call-flash { 0% { scale: .94; } 60% { scale: 1.02; } 100% { scale: 1; } }

/* Pop-out window (picture-in-picture): the call fills it. */
.pip-body { margin: 0; background: #1f2420; overflow: hidden; }
.pip-body .call-box { position: static; width: 100vw; max-width: none; height: 100vh; max-height: none; border-radius: 0; box-shadow: none; animation: none; translate: none; }
.pip-body .call-box .call-stage, .pip-body .call-box.has-video .call-stage { aspect-ratio: auto; max-height: none; min-height: 0; }
.pip-body .call-ctrls { padding: 8px; gap: 8px; }
.pip-body .call-ctrls button { width: 40px; height: 40px; }

/* ======================================================================
   Landing page (lx-): sections added for the bigger feature showcase
   ====================================================================== */
.lx-pro { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 1px 7px; border-radius: 99px; color: #fff; background: var(--brand-grad); vertical-align: 2px; margin-left: 4px; }

/* Who it's for */
.lx-built { max-width: 1160px; margin: 64px auto 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lx-built-label { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lx-built-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.lx-built-list span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line2); color: var(--ink); font-weight: 600; font-size: 14px; box-shadow: var(--shadow-sm); }
.lx-built-list .bi { color: var(--brand-ink); }

/* One place instead of five */
.lx-swap { max-width: 880px; margin: 0 auto; display: grid; gap: 12px; }
.lx-swap-row { display: grid; grid-template-columns: minmax(0, .8fr) auto minmax(0, 1.4fr); align-items: center; gap: 16px; padding: 14px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line2); box-shadow: var(--shadow-sm); }
.lx-old { display: flex; align-items: center; gap: 10px; color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--red) 55%, transparent); font-size: 14.5px; }
.lx-old .bi { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 9px; display: grid; place-items: center; background: var(--lane); text-decoration: none; }
.lx-arrow { color: var(--brand-2); font-size: 18px; }
.lx-new { display: flex; align-items: center; gap: 10px; color: var(--body); font-size: 15px; }
.lx-new > .bi { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: var(--brand-grad); font-size: 16px; }
.lx-new b { color: var(--ink); }
@media (max-width: 700px) { .lx-swap-row { grid-template-columns: 1fr; gap: 8px; } .lx-arrow { transform: rotate(90deg); justify-self: start; margin-left: 8px; } }

/* Chat mock: file chip */
.mc-msg.lx-file p { padding: 6px; }
.lx-file-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line2); color: var(--ink); font-weight: 600; font-size: 12.5px; }
.lx-file-chip .bi { color: var(--brand-ink); font-size: 18px; }
.lx-file-chip small { color: var(--muted); font-weight: 500; }

/* Call mock */
.lx-call { position: relative; border-radius: 18px; overflow: hidden; background: #1f2420; color: #fff; box-shadow: var(--shadow-lg); }
.lx-call-stage { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; background: radial-gradient(300px 200px at 50% 30%, rgba(63, 171, 53, .35), transparent 70%), #1f2420; }
.lx-call-name { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 99px; background: rgba(0, 0, 0, .45); font-weight: 600; font-size: 13px; }
.lx-call-name i, .lx-call-me { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 700; background: var(--a, #0ea5e9); }
.lx-call-screen { width: 74%; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.lx-call-doc { width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; background: #fff; padding: 10% 9%; display: flex; flex-direction: column; gap: 7%; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); }
.lx-call-doc b { height: 14%; width: 55%; border-radius: 4px; background: #3fab35; }
.lx-call-doc i { height: 7%; width: 100%; border-radius: 3px; background: #e3e7e1; }
.lx-call-doc i.short { width: 70%; }
.lx-call-doc span { margin-top: auto; height: 16%; width: 34%; border-radius: 5px; background: #0ea5e9; }
.lx-call-screen small { color: rgba(255, 255, 255, .75); font-size: 12px; }
.lx-call-me { position: absolute; right: 12px; bottom: 12px; width: 76px; height: 54px; border-radius: 9px; background: linear-gradient(135deg, #3c3c3b, #55554f); box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); font-size: 14px; }
.lx-call-ctrls { display: flex; justify-content: center; gap: 10px; padding: 12px; background: rgba(0, 0, 0, .28); }
.lx-call-ctrls span { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); }
.lx-call-ctrls .on { background: var(--brand-2); }
.lx-call-ctrls .hang { background: #df1b41; }
.lx-call-time { position: absolute; right: 14px; top: 14px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: rgba(0, 0, 0, .45); font-variant-numeric: tabular-nums; }

/* My work mock */
.lx-mw-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.lx-mw-head > span { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: var(--brand-grad); font-size: 17px; }
.lx-mw-head b { display: block; color: var(--ink); font-size: 15px; }
.lx-mw-head small { color: var(--muted); }
.lx-mw-group { display: flex; align-items: center; gap: 7px; margin: 12px 0 6px; font-weight: 600; color: var(--ink); font-size: 13px; }
.lx-mw-group em { font-style: normal; font-size: 11px; padding: 0 7px; border-radius: 99px; background: var(--lane); }
.lx-mw-group.late .bi { color: #df1b41; }
.lx-mw-group.soon .bi { color: #e5a50a; }
.lx-mw-card { padding: 8px 10px; margin-bottom: 6px; border: 1px solid var(--line2); border-left: 3px solid var(--c); border-radius: 8px; }
.lx-mw-card b { display: block; color: var(--ink); font-size: 13px; }
.lx-mw-card small { color: var(--muted); font-size: 11.5px; }

/* Export chips under the table mock */
.lx-export { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px 6px; }
.lx-export span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; background: var(--lane); color: var(--body); font-size: 12px; font-weight: 600; }
.lx-export .bi { color: var(--brand-ink); }

/* How it works */
.lx-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.lx-step { position: relative; background: var(--surface); border: 1px solid var(--line2); border-radius: 18px; padding: 26px 24px 24px; box-shadow: var(--shadow-sm); }
.lx-num { position: absolute; top: 18px; right: 20px; font-family: Poppins, Inter, sans-serif; font-size: 44px; font-weight: 700; line-height: 1; color: color-mix(in srgb, var(--brand) 18%, transparent); }
.lx-step-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--brand-grad); font-size: 20px; margin-bottom: 16px; box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--brand) 70%, transparent); }
.lx-step h3 { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.lx-step p { color: var(--body); font-size: 14.5px; line-height: 1.55; margin: 0; }
.lx-center-cta { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 30px; }
@media (max-width: 820px) { .lx-steps { grid-template-columns: 1fr; } }

/* Everything included */
.lx-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lx-cat { --k: var(--brand); background: var(--surface); border: 1px solid var(--line2); border-top: 3px solid var(--k); border-radius: 16px; padding: 20px; box-shadow: var(--shadow-sm); }
.lx-cat-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.lx-cat-head span { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 17px; color: var(--k); background: color-mix(in srgb, var(--k) 14%, var(--surface)); }
.lx-cat-head h3 { font-size: 16px; font-weight: 700; color: var(--ink); margin: 0; }
.lx-cat ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.lx-cat li { position: relative; padding-left: 22px; color: var(--body); font-size: 14px; }
.lx-cat li::before { content: "\F26E"; font-family: bootstrap-icons; position: absolute; left: 0; top: 0; color: var(--k); font-weight: 700; }
@media (max-width: 1000px) { .lx-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .lx-cats { grid-template-columns: 1fr; } }

/* Security */
.lx-secure { background: var(--surface); border: 1px solid var(--line2); border-radius: 22px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-sm); }
.lx-secure-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.lx-secure-ic { flex: 0 0 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; color: #fff; background: linear-gradient(135deg, #3c3c3b, #55554f); }
.lx-secure-head h2 { font-family: Poppins, Inter, sans-serif; font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; color: var(--ink); margin: 0 0 4px; }
.lx-secure-head p { color: var(--muted); margin: 0; }
.lx-secure-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lx-secure-grid > div { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line2); }
.lx-secure-grid .bi { font-size: 20px; color: var(--brand-ink); }
.lx-secure-grid b { color: var(--ink); font-size: 14.5px; }
.lx-secure-grid span { color: var(--body); font-size: 13.5px; line-height: 1.5; }
@media (max-width: 1000px) { .lx-secure-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .lx-secure-grid { grid-template-columns: 1fr; } .lx-secure-head { flex-direction: column; align-items: flex-start; } }

/* Compare plans */
.lx-compare { max-width: 820px; margin: 28px auto 0; border: 1px solid var(--line2); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.lx-compare summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; font-weight: 700; color: var(--brand-ink); }
.lx-compare summary::-webkit-details-marker { display: none; }
.lx-compare summary .bi { transition: transform .2s; }
.lx-compare[open] summary .bi { transform: rotate(180deg); }
.lx-compare-wrap { overflow-x: auto; border-top: 1px solid var(--line2); }
.lx-compare table { width: 100%; border-collapse: collapse; font-size: 14px; }
.lx-compare th, .lx-compare td { padding: 10px 16px; border-bottom: 1px solid var(--line2); text-align: center; color: var(--body); }
.lx-compare th:first-child, .lx-compare td:first-child { text-align: left; color: var(--ink); }
.lx-compare thead th { font-family: Poppins, Inter, sans-serif; font-size: 15px; color: var(--ink); }
.lx-compare .pro { background: color-mix(in srgb, var(--brand) 6%, transparent); }
.lx-compare thead .pro { color: var(--brand-ink); }
.lx-compare .grp td { text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
.lx-compare .bi-check-lg { color: var(--brand-2); font-size: 17px; }
.lx-compare .bi-dash { color: var(--muted); }

/* Final call to action */
.lx-cta-ticks { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.lx-cta-ticks .bi { margin-right: 6px; }

/* Sticky "Start free" on phones */
.lx-sticky { display: none; }
@media (max-width: 760px) {
  .lx-sticky { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 1040; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px 10px 10px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line2); box-shadow: var(--shadow-lg); color: var(--body); font-size: 14px;
    transform: translateY(140%); transition: transform .3s ease; }
  .lx-sticky.on { transform: none; }
  .lx-sticky b { color: var(--ink); }
}

/* Gentle reveal as sections scroll into view */
.lx-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.lx-reveal.in { opacity: 1; transform: none; }
.tour-row.lx-reveal.in .tour-art { animation: none; }

/* ---------- Channel calls (up to 8 people) ---------- */
.chat-huddle { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--body); font-size: 12.5px; font-weight: 600; white-space: nowrap; flex: 0 0 auto; }
.chat-huddle[hidden] { display: none; }
.chat-huddle:hover { background: var(--soft); color: var(--brand-ink); }
.chat-huddle.live { color: #fff; border-color: transparent; background: linear-gradient(135deg, #2f9a2a, #3fab35); }
.chat-huddle.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: timer-pulse 1.4s ease-in-out infinite; }
.chat-huddle.mine { background: #1f2420; color: #fff; }
.chat-huddle.locked::after { content: "PRO"; position: absolute; top: -7px; right: -6px; font-size: 8.5px; font-weight: 800; letter-spacing: .04em; padding: 1px 5px; border-radius: 99px; color: #fff; background: linear-gradient(135deg, #3fab35, #6ab43e); box-shadow: 0 0 0 2px var(--surface); }
.ch-huddle { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 0 7px; border-radius: 99px; font-size: 11px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #2f9a2a, #3fab35); }
.ch-row-top { align-items: center; }
.notif-type.t-huddle { background: #3fab35; }
.notif-toast.t-huddle { border-left-color: #3fab35; }

.huddle-box { position: fixed; right: 20px; bottom: 20px; z-index: 1084; width: 400px; max-width: calc(100vw - 24px); max-height: calc(100vh - 40px); display: flex; flex-direction: column;
  border-radius: 18px; overflow: hidden; background: #1f2420; color: #fff; box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .55); animation: ct-in .25s ease; }
@media (min-width: 901px) { body.chat-open .huddle-box { right: calc(var(--chat-w) + 20px); } }
.huddle-box.center { left: 50%; top: 50%; right: auto; bottom: auto; translate: -50% -50%; width: min(1100px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
  box-shadow: 0 0 0 100vmax rgba(10, 14, 10, .55), 0 24px 70px -10px rgba(0, 0, 0, .6); }
body.chat-open .huddle-box.center { right: auto; }
.huddle-box.flash { animation: call-flash .6s ease; }
.hb-head { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 46px 10px 12px; }
.hb-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(63, 171, 53, .3); color: #8fdc6a; }
.hb-title { min-width: 0; }
.hb-title b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-title small { display: block; color: rgba(255, 255, 255, .65); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.hb-head .call-min { top: 10px; }

/* Tiles: 1–8 people. Two across in the corner window, more when centred. */
.hb-grid { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: grid; gap: 6px; padding: 0 8px 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hb-grid[data-count="1"] { grid-template-columns: 1fr; }
.huddle-box.center .hb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.huddle-box.center .hb-grid[data-count="1"] { grid-template-columns: minmax(0, 640px); justify-content: center; }
.huddle-box.center .hb-grid[data-count="2"], .huddle-box.center .hb-grid[data-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.huddle-box.center .hb-grid[data-count="7"], .huddle-box.center .hb-grid[data-count="8"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hb-tile { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(160px 110px at 50% 40%, rgba(63, 171, 53, .25), transparent 70%), #2a302b; }
.hb-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.hb-tile video.mirror { transform: scaleX(-1); }
.hb-tile.has-video video { opacity: 1; }
.hb-tile.screen video { object-fit: contain; background: #000; }
.hb-tile.has-video .hb-av { display: none; }
.hb-av .avatar { width: 48px; height: 48px; flex-basis: 48px; font-size: 17px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .1); }
.huddle-box.center .hb-av .avatar { width: 72px; height: 72px; flex-basis: 72px; font-size: 24px; }
.hb-name { position: absolute; left: 6px; bottom: 6px; max-width: calc(100% - 12px); display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 99px;
  background: rgba(0, 0, 0, .5); font-size: 11.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-name .bi { color: #ff8a8a; }
.hb-name small { color: rgba(255, 255, 255, .6); font-weight: 500; }
.hb-tile.connecting { opacity: .7; }
.huddle-box .call-ctrls { flex-shrink: 0; }

/* Account menu (sidebar): never squashed or cut off, even when the sidebar is collapsed. */
.side-user .dropdown-menu { min-width: 250px; z-index: 1060; }

/* ---------- Card panel: sections down the left ---------- */
.drawer { width: min(640px, 100vw); }
.dbody.dtabs { display: grid; grid-template-columns: 84px minmax(0, 1fr); padding: 0; overflow: hidden; }
.drail { display: flex; flex-direction: column; gap: 4px; padding: 14px 8px; border-right: 1px solid var(--line2); background: var(--surface-2); overflow-y: auto; }
.drail button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px 8px; border: 0; border-radius: 10px; background: none; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.drail button .bi { font-size: 18px; }
.drail button:hover { background: var(--hover); color: var(--ink); }
.drail button.on { background: var(--soft); color: var(--brand-ink); }
.drail button.on::before { content: ""; position: absolute; left: -8px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand-2); }
.drail em { font-style: normal; font-size: 10.5px; font-weight: 700; line-height: 1; padding: 2px 6px; border-radius: 99px; background: var(--lane); color: var(--body); }
.drail button.on em { background: var(--brand-2); color: #fff; }
.dpanes { overflow-y: auto; padding: 18px 22px 30px; min-width: 0; }
.dpane .field:first-child { margin-top: 0; }
.link-btn { border: 0; background: none; padding: 0; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--brand-ink); }
.link-btn:hover { text-decoration: underline; }
@media (max-width: 560px) {
  .dbody.dtabs { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .drail { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line2); padding: 6px; }
  .drail button { flex: 0 0 auto; min-width: 64px; }
  .drail button.on::before { display: none; }
}

/* Notes: formatted view, Quill editor */
.np-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.notes-view { color: var(--body); font-size: 14.5px; line-height: 1.6; padding: 12px 14px; border: 1px solid var(--line2); border-radius: 12px; background: var(--surface); min-height: 120px; word-break: break-word; }
.notes-view.editable { cursor: text; }
.notes-view.editable:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line2)); }
.notes-view.empty { color: var(--muted); display: grid; place-items: center; text-align: center; border-style: dashed; }
.notes-view a { color: var(--brand-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.notes-view p { margin: 0 0 .6em; }
.notes-view h2 { font-size: 18px; font-weight: 700; color: var(--ink); margin: .6em 0 .4em; }
.notes-view h3 { font-size: 15.5px; font-weight: 700; color: var(--ink); margin: .6em 0 .3em; }
.notes-view ul, .notes-view ol { padding-left: 1.4em; margin: 0 0 .6em; }
.notes-view blockquote { margin: 0 0 .6em; padding: 4px 12px; border-left: 3px solid var(--brand-2); color: var(--muted); }
.notes-view pre { background: var(--lane); padding: 10px 12px; border-radius: 8px; white-space: pre-wrap; font-size: 13px; }
.notes-view > :last-child { margin-bottom: 0; }
.notes-editor { border-radius: 0 0 12px 12px; min-height: 220px; font-size: 14.5px; font-family: inherit; }
.dpane .ql-toolbar.ql-snow { border-radius: 12px 12px 0 0; border-color: var(--line); background: var(--surface-2); }
.dpane .ql-container.ql-snow { border-color: var(--line); border-radius: 0 0 12px 12px; font-family: inherit; }
.dpane .ql-editor { min-height: 220px; color: var(--ink); line-height: 1.6; }
.dpane .ql-editor.ql-blank::before { color: var(--muted); font-style: normal; }
.dpane .ql-snow .ql-stroke { stroke: var(--body); }
.dpane .ql-snow .ql-fill { fill: var(--body); }
.dpane .ql-snow .ql-picker { color: var(--body); }
.dpane .ql-snow a { color: var(--brand-ink); }
.dpane .ql-snow .ql-tooltip { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-md); border-radius: 10px; z-index: 5; }
.dpane .ql-snow .ql-tooltip input[type=text] { background: var(--surface); color: var(--ink); border-color: var(--line); }

/* Clients (workspace settings) */
.client-row .cl-ic { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 9px; display: grid; place-items: center; background: var(--lane); color: var(--brand-ink); }
.client-row .cl-count { flex: 0 0 auto; font-size: 12px; color: var(--muted); white-space: nowrap; }

/* ---------- View dropdown (Board / Table / Calendar / Timeline) ---------- */
.view-drop-btn { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 13px; padding: 6px 10px 6px 11px; border-radius: 9px; white-space: nowrap; }
.view-drop-btn > .bi:first-child { color: var(--brand-ink); }
.view-drop-btn .vd-chev { font-size: 11px; color: var(--muted); }
.view-drop-btn:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.view-menu { min-width: 250px; padding: 6px; }
.view-menu .dropdown-item { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 8px; }
.view-menu .dropdown-item > .bi { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 8px; display: grid; place-items: center; background: var(--lane); color: var(--body); font-size: 15px; }
.view-menu .dropdown-item span { display: flex; flex-direction: column; line-height: 1.25; font-weight: 600; color: var(--ink); }
.view-menu .dropdown-item small { font-weight: 400; font-size: 11.5px; color: var(--muted); }
.view-menu .dropdown-item.active { background: var(--soft); }
.view-menu .dropdown-item.active > .bi { background: var(--brand-2); color: #fff; }

/* ---------- Timeline view ---------- */
.tl-page { display: flex; flex-direction: column; height: 100%; padding: 16px 24px 20px; }
.tl-tools { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.tl-tools .btn.active { background: var(--soft); color: var(--brand-ink); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.tl-wrap { flex: 1; min-height: 0; overflow: auto; border: 1px solid var(--line2); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); }
.tl-grid { position: relative; min-height: 100%; }
.tl-head { position: sticky; top: 0; z-index: 4; display: flex; background: var(--surface); border-bottom: 1px solid var(--line2); }
.tl-name { position: sticky; left: 0; z-index: 3; flex: 0 0 var(--namew); width: var(--namew); display: flex; align-items: center; gap: 8px; padding: 0 12px; background: var(--surface); border-right: 1px solid var(--line2); }
.tl-corner { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); z-index: 5; }
.tl-scale { flex: 1; }
.tl-months, .tl-days { display: flex; }
.tl-months span { flex: 0 0 auto; padding: 6px 8px 2px; font-size: 12px; font-weight: 700; color: var(--ink); border-left: 1px solid var(--line2); white-space: nowrap; overflow: hidden; }
.tl-days span { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; padding: 2px 0 5px; font-size: 11px; font-weight: 600; color: var(--body); font-variant-numeric: tabular-nums; }
.tl-days.month span { align-items: flex-start; padding-left: 4px; border-left: 1px solid var(--line2); white-space: nowrap; }
.tl-days small { font-size: 9px; font-weight: 600; color: var(--muted); }
.tl-days span.wk { color: var(--muted); }
.tl-days span.now { color: #fff; background: var(--brand-2); border-radius: 6px; }
.tl-days span.now small { color: rgba(255, 255, 255, .8); }
.tl-row, .tl-group { display: flex; min-height: 40px; border-bottom: 1px solid var(--line2); }
.tl-row .tl-name { border: 0; border-right: 1px solid var(--line2); text-align: left; font-size: 13px; color: var(--ink); cursor: pointer; }
.tl-row .tl-name:hover { background: var(--hover); }
.tl-row .tl-name .cnum { flex: 0 0 auto; font-size: 11.5px; }
.tl-title { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-who { display: inline-flex; flex: 0 0 auto; }
.tl-who .avatar { width: 20px; height: 20px; flex-basis: 20px; font-size: 8px; margin-left: -5px; box-shadow: 0 0 0 2px var(--surface); }
.tl-group { min-height: 34px; background: var(--surface-2); }
.tl-group .tl-name { background: var(--surface-2); font-size: 13px; color: var(--ink); }
.tl-track { position: relative; flex: 1;
  background-image: repeating-linear-gradient(90deg, transparent 0 calc(var(--dw) * 5), color-mix(in srgb, var(--muted) 7%, transparent) calc(var(--dw) * 5) calc(var(--dw) * 7)); }
.tl-gtrack { background: none; }
.tl-bar { position: absolute; top: 7px; height: 26px; min-width: 12px; display: flex; align-items: center; border-radius: 7px; color: #fff; font-size: 12px; font-weight: 600;
  background: var(--c); box-shadow: 0 2px 6px -2px color-mix(in srgb, var(--c) 70%, transparent); cursor: pointer; user-select: none; touch-action: none; }
.tl-bar.editable { cursor: grab; }
.tl-bar.dragging { cursor: grabbing; opacity: .85; box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .35); z-index: 2; }
.tl-bar.done { opacity: .55; }
.tl-bar.late { box-shadow: 0 0 0 2px var(--red); }
.tl-bar.open { background: repeating-linear-gradient(135deg, var(--c) 0 6px, color-mix(in srgb, var(--c) 70%, #fff) 6px 12px); }
.tl-txt { flex: 1; min-width: 0; padding: 0 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 5px; }
.tl-h { position: absolute; top: 0; bottom: 0; width: 9px; cursor: ew-resize; }
.tl-h.l { left: 0; border-radius: 7px 0 0 7px; }
.tl-h.r { right: 0; border-radius: 0 7px 7px 0; }
.tl-bar:hover .tl-h { background: rgba(255, 255, 255, .3); }
.tl-today { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: calc(var(--namew) * 0); background: var(--brand-2); z-index: 2; pointer-events: none; }
.tl-today::before { content: ""; position: absolute; top: 46px; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-2); }
@media (max-width: 700px) { .tl-page { padding: 10px; } .tl-grid { --namew: 160px !important; } }

/* Account settings → Your data */
.data-cards { display: grid; gap: 14px; max-width: 760px; }
.data-card { display: flex; gap: 16px; padding: 20px; border: 1px solid var(--line2); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); }
.dc-ic { flex: 0 0 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; color: var(--brand-ink); background: var(--soft); }
.dc-body { min-width: 0; }
.dc-body h3 { font-size: 16px; font-weight: 700; color: var(--ink); margin: 0 0 4px; }
.dc-body p { color: var(--body); font-size: 14px; line-height: 1.55; margin: 0 0 14px; }
.dc-body form { margin: 0; }
.data-card.danger { border-color: color-mix(in srgb, var(--red) 30%, var(--line2)); background: color-mix(in srgb, var(--red) 4%, var(--surface)); }
.data-card.danger .dc-ic { color: var(--red); background: color-mix(in srgb, var(--red) 12%, var(--surface)); }
@media (max-width: 560px) { .data-card { flex-direction: column; } }
