/* Connect by SquareOne. Base theme copied from Launchpad so both products match. */
: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: 30px; }   /* Connect app icon (img/app-icon.svg) */
.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%; min-height: 100dvh; 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); }


/* ---------- Stats & panels (from Launchpad) ---------- */
.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; }

/* ---------- Sign-in and account settings (from Launchpad) ---------- */
.auth-wrap:has(.acct), .auth-wrap:has(.auth-split) { max-width: 1160px; width: 100%; padding: 0; overflow: hidden; }
/* Sign in / Create account: same width as the top nav (logo to buttons), centred on the page both ways. */
.pub-main:has(.auth-split) { display: flex; flex-direction: column; justify-content: center; }
.auth-wrap:has(.auth-split) { margin: 0 auto; }
/* 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; } }
.profile-form { max-width: 520px; }
.profile-email { display: flex; gap: 8px; }
.profile-email .form-control { flex: 1; min-width: 0; }
.profile-email .btn { flex-shrink: 0; }


/* 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; } }

/* ---------- Account → Two-factor: authenticator set-up ---------- */
.tfa-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; max-width: 640px; }
.tfa-steps > li { display: flex; gap: 14px; }
.tfa-num { flex: 0 0 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff; background: linear-gradient(135deg, #6ab43e, #3fab35); }
.tfa-steps h3 { font-size: 15px; font-weight: 600; color: var(--ink); margin: 4px 0 2px; }
.tfa-steps p { color: var(--muted); margin: 0 0 10px; font-size: 13.5px; }
.tfa-qr-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.tfa-qr { width: 200px; height: 200px; padding: 12px; background: #fff; border: 1px solid var(--line2); border-radius: 14px; box-shadow: var(--shadow-sm); display: grid; place-items: center; }
.tfa-qr img, .tfa-qr canvas { display: block; }
.tfa-qr-off { font-size: 12px; color: #6b6f67; text-align: center; }
.tfa-key { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.tfa-key small { color: var(--muted); font-size: 12px; }
.tfa-key code { font-size: 15px; letter-spacing: .06em; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line2); border-radius: 8px; padding: 6px 10px; word-break: break-all; }
.tfa-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tfa-code { width: 150px; font-size: 18px; letter-spacing: .15em; text-align: center; font-variant-numeric: tabular-nums; }

/* =========================================================
   App shell: floating, collapsible sidebar and top bar (from Launchpad)
   ========================================================= */
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; }
/* 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); }
.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; }
.avatar { position: relative; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.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; } }
.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; }
.hamb { display: none; }
.sidescrim { display: none; }
@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; }
}
/* ---------- Sidebar: floating panel ---------- */
/* A rounded charcoal panel that floats off the page edge, with depth, a soft green glow up top and raised items. */
.side {
  margin: 10px 0 10px 10px; height: calc(100% - 20px); border-radius: 18px; border: 1px solid rgba(255, 255, 255, .06);
  background:
    radial-gradient(140% 42% at 0% 0%, rgba(106, 180, 62, .18), transparent 62%),
    radial-gradient(120% 30% at 100% 100%, rgba(63, 171, 53, .08), transparent 70%),
    linear-gradient(180deg, var(--side-bg) 0%, #1f211e 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .06),
    0 1px 2px rgba(0, 0, 0, .12),
    0 10px 24px -6px rgba(20, 22, 19, .28),
    0 28px 60px -18px rgba(20, 22, 19, .38);
}
[data-bs-theme=dark] .side {
  border-color: rgba(255, 255, 255, .07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 0 0 1px rgba(0, 0, 0, .4), 0 24px 60px -16px rgba(0, 0, 0, .7);
}
/* Items: a little lift on hover, a stronger glow and accent bar on the active one. */
.sitem { transition: background .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease; }
.sitem:not(.on):hover { transform: translateX(2px); }
.sitem:not(.on):hover .bi-ic { background: rgba(255, 255, 255, .1); color: #fff; }
.sitem.on { box-shadow: 0 6px 18px -4px rgba(63, 171, 53, .55), inset 0 1px 0 rgba(255, 255, 255, .22); }
.sitem .bi-ic { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 2px 6px rgba(0, 0, 0, .25); transition: background .15s ease, color .15s ease; }
.bi-ic.has-logo { box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
/* Section label with a fading rule. */
.sidelabel > span { display: flex; align-items: center; gap: 8px; flex: 1; }
.sidelabel > span::after { content: ""; flex: 1; height: 1px; margin-right: 8px; background: linear-gradient(90deg, var(--side-line), transparent); }
.sideadd { transition: background .15s ease, color .15s ease, transform .15s ease; }
.sideadd:hover { transform: rotate(90deg); box-shadow: 0 4px 12px rgba(63, 171, 53, .45); }
/* Account: a raised card at the bottom. */
.side-user { border-top: 0; padding-top: 0; margin-top: 8px; }
.side-user > .sitem { padding: 8px; border-radius: 12px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .06); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }
.side-user > .sitem:hover { transform: none; background: rgba(255, 255, 255, .08); }
@media (min-width: 901px) {
  body.side-collapsed .side { padding-left: 10px; padding-right: 10px; }
  body.side-collapsed .sidelabel > span { display: none; }
  body.side-collapsed .side-user > .sitem { padding: 6px 0; }
}
@media (max-width: 900px) {
  .side { top: 10px; bottom: 10px; left: 10px; height: auto; margin: 0; transform: translateX(calc(-100% - 20px)); }
  .side.on { transform: none; }
}


/* ---------- Sidebar: light version in light mode ---------- */
[data-bs-theme=light] .side {
  --side-bg: #ffffff; --side-bg-2: #f1f4ee; --side-line: rgba(60, 60, 59, .1);
  --side-text: #3c3c3b; --side-muted: #8a8e86; --side-hover: rgba(63, 171, 53, .08);
  color: var(--side-text); border-color: rgba(60, 60, 59, .08);
  background:
    radial-gradient(140% 40% at 0% 0%, rgba(106, 180, 62, .13), transparent 62%),
    radial-gradient(120% 30% at 100% 100%, rgba(63, 171, 53, .06), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, #f8faf6 100%);
  box-shadow: 0 1px 2px rgba(20, 22, 19, .06), 0 10px 24px -8px rgba(20, 22, 19, .12), 0 28px 60px -20px rgba(20, 22, 19, .18);
}
[data-bs-theme=light] .side .brand-text b { color: #3c3c3b; }
[data-bs-theme=light] .side .sitem:hover { color: #1f211e; }
[data-bs-theme=light] .side .sitem .bi-ic { color: #4a4d47; box-shadow: inset 0 0 0 1px rgba(60, 60, 59, .06), 0 1px 3px rgba(20, 22, 19, .08); }
[data-bs-theme=light] .side .sitem:not(.on):hover .bi-ic { background: #e3f1da; color: #2f8f27; }
[data-bs-theme=light] .side .sitem.on { color: #fff; box-shadow: 0 6px 16px -4px rgba(63, 171, 53, .45), inset 0 1px 0 rgba(255, 255, 255, .25); }
[data-bs-theme=light] .side .sitem.on .bi-ic { background: rgba(255, 255, 255, .25); color: #fff; box-shadow: none; }
[data-bs-theme=light] .side .bi-ic.has-logo { box-shadow: 0 0 0 1px rgba(60, 60, 59, .08), 0 2px 6px rgba(20, 22, 19, .1); }
[data-bs-theme=light] .side-user > .sitem { background: #f4f6f2; border-color: rgba(60, 60, 59, .08); box-shadow: none; }
[data-bs-theme=light] .side-user > .sitem:hover { background: #ecf0e8; }
[data-bs-theme=light] .side-user .avatar, [data-bs-theme=light] .side .pres { box-shadow: 0 0 0 2px #fff; }


/* ---------- Top bar: floating panel (matches the sidebar) ---------- */
.topbar {
  /* Side margins match the page and board padding (24px), so the bar lines up with the content below. */
  margin: 10px calc(24px + var(--sbw, 0px)) 0 24px; padding-left: 20px; padding-right: 14px; border: 1px solid var(--line); border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px) saturate(1.2);
  box-shadow: 0 1px 2px rgba(20, 22, 19, .05), 0 8px 22px -10px rgba(20, 22, 19, .16), 0 22px 48px -24px rgba(20, 22, 19, .18);
}
[data-bs-theme=dark] .topbar {
  border-color: rgba(255, 255, 255, .07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 0 0 1px rgba(0, 0, 0, .35), 0 16px 40px -18px rgba(0, 0, 0, .7);
}
@media (max-width: 900px) {
  .topbar { margin: 8px calc(14px + var(--sbw, 0px)) 0 14px; padding-left: 12px; padding-right: 10px; border-radius: 14px; }
}

/* The floating top bar sits over the content, which scrolls underneath it (blurred through the bar).
   The content starts below the bar using --tbh (bar height + top gap, measured in app.js). */
.content { position: relative; }
.topbar { position: absolute; top: 0; left: 0; right: 0; }
main#main { padding-top: var(--tbh, 72px); scroll-padding-top: var(--tbh, 72px); }

/* Board: grow to fit its lanes so the right-hand padding is kept when it scrolls sideways

/* Sidebar items, account menu and dark mode row (from Launchpad; missed in the first copy) */
.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; }
.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 .dropdown-menu { min-width: 250px; z-index: 1060; }
.theme-switch { display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.theme-switch > span:not(.form-check) { flex: 1; }
.theme-switch .form-check { display: inline-flex; align-items: center; min-height: 0; padding: 0; margin: 0; line-height: 1; }
.theme-switch .form-check-input { cursor: pointer; margin: 0 !important; float: none; display: block; }
.theme-switch .form-check-input:checked { background-color: #3fab35; border-color: #3fab35; }
.theme-switch:active { color: inherit; background: var(--bs-dropdown-link-hover-bg); }
