/* ===================================================================================
   Kindled Steps look, loaded after style.css: bright blue actions, joined button-group tabs,
   bordered data tables, solid status badges, airy white pages.
   =================================================================================== */
:root {
  --ink: #2b2f36;
  --ink-2: #4d535c;
  --muted: #8a919c;
  --line: #e6e9ee;
  --line-2: #f1f3f6;
  --bg: #ffffff;
  --primary: #3d8ef5;
  --primary-hover: #2a7ce6;
  --primary-soft: #eaf3fe;
  --go: #5bbf3a;
  --go-hover: #4caa2d;
  --navy: #1e2a3d;
  --ok: #4fae2d;
  --ok-soft: #ebf7e5;
  --danger: #f0483e;
  --danger-soft: #fdeceb;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow: 0 2px 10px rgba(30, 42, 61, 0.07);
  --font: "Nunito Sans", "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --sidebar-w: 86px;
  --topbar-h: 66px;
}
body { background: var(--bg); color: var(--ink); }

/* shell */
.topbar { border-bottom: 0; box-shadow: 0 2px 12px rgba(30, 42, 61, 0.06); gap: 16px; padding-right: 22px; }
.topbar .brand img { width: 42px; height: 42px; }
.search { width: 230px; height: 36px; border-radius: 6px; border-color: #e3e6eb; margin-left: 4px; }
.plan-badge { background: none; color: var(--ink-2); font-size: 13px; padding: 0; margin-right: 6px; }
.tb-icon { width: 34px; height: 34px; }
.tb-icon svg { width: 24px; height: 24px; stroke-width: 2; }
.tb-icon[title="Notifications"] { color: #f5a623; }
.tb-icon[title="Help"] { color: #fff; background: var(--primary); width: 28px; height: 28px; }
.tb-icon[title="Help"]:hover { background: var(--primary-hover); }
.tb-icon[title="Help"] svg { width: 20px; height: 20px; }
.tb-icon[title="Calendar"] { color: #2fa84f; }
.tb-icon[title="Theme"] { color: #f5b400; }
.tb-icon[title="Tasks"] { color: #4a5f86; }
.tb-icon[title="Lock screen"] { color: #c99a2e; }
.tb-icon[title="Language"] { color: var(--primary); }
.topbar .avatar { width: 36px; height: 36px; background: #c9ced6; font-size: 13px; }

.sidebar { border-right: 0; box-shadow: 2px 0 10px rgba(30, 42, 61, 0.04); padding-top: 0; }
.nav-item { padding: 12px 2px 10px; gap: 6px; font-size: 12px; color: #3a3f47; border-left: 0; border-bottom: 1px solid #eef0f3; }
.nav-item .art-ic, .nav-item svg { width: 38px !important; height: 38px !important; }
.nav-item.active { background: #f4f8ff; color: var(--ink); border-left: 0; }
.nav-item.active span:last-child { color: var(--primary); font-weight: 600; }

.content { padding: 22px 30px 34px; }
.footer { border-top: 0; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--ink-2); padding: 26px 14px 30px; font-size: 12.5px; line-height: 1.5; }
.footer img { width: 30px; height: 30px; }
.footer .heart { color: #e5484d; }
.floating-left { background: var(--navy); left: 92px; bottom: 18px; padding: 7px 16px 7px 7px; font-weight: 600; }
.floating-left .pill { background: var(--primary); color: #fff; }
.floating-right { background: var(--navy); width: 44px; height: 44px; }

/* page header */
.crumbs .ctx { font-weight: 700; }
.page-head { margin-bottom: 16px; }
.section-title { font-size: 18px; color: var(--ink); margin: 18px 0 12px; }

/* buttons */
.btn { height: 34px; border-radius: var(--radius-sm); border-color: #dfe3e8; }
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
.btn.create, .btn.go { background: var(--go); border-color: var(--go); color: #fff; }
.btn.create:hover, .btn.go:hover { background: var(--go-hover); border-color: var(--go-hover); color: #fff; }
.btn.small { height: 28px; }
.btn.dark { background: #2d3440; border-color: #2d3440; color: #fff; }
.btn.danger { background: #fdeceb; border-color: #f7c6c2; color: var(--danger); }

/* tabs: top-level views are a joined button group; in-card tabs are underlined */
.pills, .seg { gap: 0; border: 1px solid #dfe3e8; border-radius: var(--radius-sm); overflow: hidden; flex-wrap: nowrap; }
.pills { display: flex; width: max-content; max-width: 100%; overflow-x: auto; margin-bottom: 14px; }
.seg { display: inline-flex; }
.pills button, .seg button { border: 0; border-right: 1px solid #dfe3e8; border-radius: 0; background: #fff; color: var(--ink-2); padding: 0 16px; height: 34px; white-space: nowrap; }
.pills button:last-child, .seg button:last-child { border-right: 0; }
.pills button.on, .seg button.on { background: var(--primary); color: #fff; border-color: #dfe3e8; }
.tabs { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.tabs button { padding: 11px 16px; border-right: 1px solid var(--line-2); border-bottom: 2px solid transparent; margin-bottom: 0; }
.tabs button.on { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

/* inputs */
input.in, select.in, textarea.in { height: 36px; border-color: #e1e5ea; border-radius: var(--radius-sm); }
textarea.in { height: auto; }
label.lbl { color: var(--ink); font-weight: 600; font-size: 12.5px; }
.daterange { height: 36px; border-color: #e1e5ea; }
.list-filters { display: grid; grid-template-columns: 1fr 200px 200px; gap: 16px; margin-bottom: 14px; }

/* cards and tiles */
.card { border-color: #e9ecf0; border-radius: var(--radius); box-shadow: 0 1px 3px rgba(30, 42, 61, 0.04); }
.tile { border-color: #e9ecf0; border-radius: var(--radius); padding: 16px 18px; height: 126px; box-shadow: none; }
.tile:hover { border-color: #cfe0fb; box-shadow: var(--shadow); }
.tile .t { font-size: 16px; color: var(--ink); }
.tile .art .art-ic { width: 46px !important; height: 46px !important; }
.tile.sm { height: 108px; padding: 12px 14px; }
.tile.sm .t { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile.sm .art .art-ic { width: 40px !important; height: 40px !important; }
.tiles.four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }

/* data tables: bordered cells, centred headers, a totals row */
table.tbl { border: 1px solid #e6e9ee; border-radius: 0; }
.tbl th { background: #fafbfc; color: var(--ink); font-weight: 600; font-size: 12.5px; text-align: center; border: 1px solid #e9ecf0; padding: 11px 10px; }
.tbl td { border: 1px solid #eef0f3; padding: 10px; font-size: 13px; }
.tbl.flat, .tbl.flat td { border-left: 0; border-right: 0; }
.tbl tr.total td { background: #f6f7f9; }
.pager .pg { border-radius: 3px; }

/* status badges: solid, square-ish, uppercase */
.tag { border-radius: 3px; padding: 5px 12px; font-size: 11px; font-weight: 600; letter-spacing: .02em; background: #8c939d; color: #fff; }
.tag.scheduled, .tag.submitted, .tag.ready_for_review, .tag.pending { background: var(--primary); color: #fff; }
.tag.completed, .tag.paid, .tag.locked, .tag.reviewed, .tag.active { background: var(--go); color: #fff; }
.tag.created, .tag.unlocked, .tag.inactive, .tag.draft { background: #8c939d; color: #fff; }
.tag.partially_paid, .tag.overpaid, .tag.auto_locked { background: #f5a623; color: #fff; }
.tag.denied, .tag.rejected, .tag.cancelled { background: var(--danger); color: #fff; }

/* avatars */
.avatar.md { width: 44px; height: 44px; font-size: 15px; flex: none; }
.avatar.xl { width: 64px; height: 64px; font-size: 22px; flex: none; }
.avatar.xxl { width: 120px; height: 120px; font-size: 40px; }

/* home */
.home-head { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 18px; }
.greet { font-size: 22px; font-weight: 400; color: var(--ink); }
.stat-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat-card { position: relative; background: #fff; border: 1px solid #e9ecf0; border-radius: var(--radius); box-shadow: 0 1px 3px rgba(30, 42, 61, 0.04); display: flex; flex-direction: column; align-items: center; padding: 16px 10px 14px; color: var(--ink); text-align: center; }
.stat-card:hover { border-color: #cfe0fb; box-shadow: var(--shadow); }
.stat-card .refresh { position: absolute; top: 8px; right: 10px; color: var(--muted); }
.stat-card .refresh svg { width: 14px; height: 14px; }
.stat-card .disc { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; margin-bottom: 12px; }
.stat-card .disc svg { width: 26px; height: 26px; stroke-width: 2.2; }
.st-title { font-size: 16px; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.st-num { font-size: 22px; margin: 4px 0 2px; }
.st-sub { font-size: 12px; color: var(--muted); }
.home-panels { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 18px; }
.panel { padding: 18px 18px 14px; min-height: 340px; }
.panel-h { display: flex; justify-content: space-between; align-items: center; font-size: 16px; margin-bottom: 14px; }
.panel-h .refresh { color: var(--muted); }
.panel-h .refresh svg { width: 16px; height: 16px; }
.access { display: flex; align-items: center; gap: 14px; padding: 12px 4px; border-bottom: 1px solid var(--line-2); color: var(--ink); font-size: 13px; }
.access img { width: 44px; height: 44px; }
.recent { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.r-title { font-size: 13px; }
.recent .tag { padding: 3px 7px; font-size: 10px; }
.banner { border-radius: var(--radius); min-height: 250px; padding: 28px 26px; color: #fff; background: radial-gradient(circle at 85% 15%, rgba(255,255,255,.18) 0 60px, transparent 61px), linear-gradient(135deg, #2c7be5, #1e2a3d); display: flex; flex-direction: column; justify-content: flex-end; }
.b-kicker { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; opacity: .75; }
.b-title { font-size: 24px; font-weight: 700; margin: 6px 0 8px; line-height: 1.2; }
.b-body { font-size: 14px; opacity: .9; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.dots button { width: 18px; height: 3px; border: 0; border-radius: 2px; background: #d5dae1; cursor: pointer; padding: 0; }
.dots button.on { background: var(--primary); }

/* clients list */
.client-tiles { display: grid; gap: 12px; }
.client-tile { display: flex; gap: 20px; padding: 14px 20px; color: var(--ink); align-items: flex-start; }
.client-tile:hover { border-color: #cfe0fb; box-shadow: var(--shadow); }
.ct-name { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.ct-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 18px; font-size: 12.5px; color: var(--ink-2); }
.ct-grid b { color: var(--ink); font-weight: 600; }

/* client dashboard */
.client-dash { display: grid; grid-template-columns: minmax(280px, 0.95fr) 2fr; gap: 20px; align-items: start; }
.profile-card { padding: 22px 20px; }
.profile-solo { max-width: 560px; }
.pc-name { font-size: 18px; font-weight: 400; margin: 10px 0 4px; }
.status-btn { display: inline-block; background: var(--go); color: #fff; font-size: 12px; padding: 4px 12px; border-radius: 3px; }
.status-btn.off { background: #8c939d; }
.collapse { padding: 0; }
.collapse-h { width: 100%; text-align: left; background: none; border: 0; padding: 16px 18px; font-size: 15px; cursor: pointer; color: var(--ink); display: flex; align-items: center; gap: 12px; }
.chev { display: inline-block; transition: transform .15s; font-size: 18px; color: var(--muted); }
.chev.open { transform: rotate(90deg); }

@media (max-width: 1100px) {
  .stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-panels, .client-dash { grid-template-columns: 1fr; }
  .ct-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles.four { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.cal-bar .l .btn.dark { background: #5f6873; border-color: #5f6873; }
.cal-bar .l .btn.dark + .btn.dark { background: #2d3440; border-color: #2d3440; }
.cal-bar .l .btn.dark:hover { color: #fff; filter: brightness(1.1); }
.cal-bar h2 { font-size: 21px; font-weight: 600; }

/* calendar: solid yellow-green blocks with a coloured bar, cancelled in red */
.cal-col.today, .cal-allday div.today { background: #fdf6dc; }
.cal-head div { font-weight: 700; color: var(--ink); font-size: 12.5px; }
.ev { background: #ecf27a; border-left-width: 5px; border-radius: 2px; color: #1f2329; font-size: 11px; }
.ev b { font-weight: 700; }
.ev.cancelled { opacity: 1; color: #e5484d; text-decoration: line-through; }
.now-line { height: 1px; background: #e5484d; }
.now-line::before { content: ""; position: absolute; left: -8px; top: -4px; border: 4px solid transparent; border-left: 6px solid #e5484d; }

/* event popover */
.pop-scrim { position: fixed; inset: 0; z-index: 60; }
.ev-pop { position: fixed; z-index: 61; width: 320px; background: #fff; border: 1px solid #e3e7ec; border-radius: 6px; box-shadow: 0 8px 28px rgba(30, 42, 61, .18); padding: 14px 14px 12px; font-size: 13px; color: var(--ink-2); }
.pop-title { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink); margin-bottom: 6px; }
.st-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 13px; flex: none; }
.st-dot.bad { background: #e5484d; } .st-dot.ok { background: var(--go); } .st-dot.wait { background: var(--primary); }
.pop-line { margin: 2px 0; }
.pop-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.pop-row svg { width: 16px; height: 16px; color: var(--primary); }
.pop-actions { display: flex; gap: 8px; margin-top: 12px; }

/* event window */
.evtabs button { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot.ok { background: var(--go); } .dot.bad { background: #e5484d; } .dot.wait { background: #f5b400; }
.tab-body { border: 1px solid var(--line); border-top: 0; padding: 16px 20px; margin-top: -14px; }
.qi { display: inline-grid; place-items: center; width: 13px; height: 13px; border-radius: 50%; background: #2b2f36; color: #fff; font-size: 9px; font-style: italic; margin-left: 5px; vertical-align: 1px; }
.ev-row3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0 16px; }
.in.bad { border-color: #e5484d !important; }
.ferr { color: #e5484d; font-size: 11.5px; margin-top: 3px; }
.tagbox { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; height: auto !important; min-height: 36px; padding: 4px 8px; }
.tagbox .chip { margin: 0; display: inline-flex; gap: 6px; align-items: center; }
.tagbox .x { border: 0; background: #c3c8cf; color: #fff; width: 14px; height: 14px; border-radius: 50%; font-size: 11px; line-height: 1; cursor: pointer; padding: 0; }
select.bare { border: 0; outline: 0; background: transparent; font: inherit; color: var(--muted); flex: 1; min-width: 140px; }
.units-bar { height: 4px; background: #e8ebf0; border-radius: 2px; margin-top: 6px; overflow: hidden; }
.units-bar span { display: block; height: 100%; background: var(--go); }
.code-name { display: block; font-size: 13px; margin: 0 0 6px; }
.stepper { display: inline-flex; border: 1px solid #e1e5ea; border-radius: 4px; overflow: hidden; }
.stepper button { width: 40px; border: 0; background: #f6f7f9; font-size: 18px; color: var(--muted); cursor: pointer; }
.stepper input { width: 270px; border: 0; border-left: 1px solid #e1e5ea; border-right: 1px solid #e1e5ea; text-align: center; font: inherit; height: 36px; }
.sign-cards { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.sign-card { width: 300px; border: 1px solid #e6e9ee; box-shadow: 0 2px 8px rgba(30, 42, 61, .06); padding: 20px; text-align: center; }
.sign-art { height: 170px; display: grid; place-items: center; background: #fff4ea; border-radius: 6px; color: #f07a2a; font-weight: 800; font-size: 26px; text-transform: uppercase; letter-spacing: .02em; }
.sign-art .art-ic { width: 80px !important; height: 80px !important; }
.sign-card .nm { margin-top: 14px; font-size: 13px; }
.sign-side { flex: 1; min-width: 260px; }
.btn.danger-solid { background: #f26a6a; border-color: #f26a6a; color: #fff; }
.btn.danger-solid:hover { background: #e5484d; color: #fff; }
.split { display: inline-flex; }
.split .btn.go:first-child { border-radius: 4px 0 0 4px; }
.split .caret { border-radius: 0 4px 4px 0; padding: 0 9px; border-left: 1px solid rgba(255, 255, 255, .45); }
.dropdown.up { top: auto; bottom: 40px; }
.pick-grid.big .pick { padding: 16px; }
.pick.type { text-align: left; }
.type-art { height: 110px; border-radius: 6px; display: grid; place-items: center; margin-bottom: 12px; color: #fff; }
.type-art .art-ic { width: 64px !important; height: 64px !important; filter: brightness(0) invert(1); }
.pick .nm { font-weight: 700; font-size: 13px; }

/* note page */
.doc-bar { display: flex; justify-content: space-between; align-items: center; margin: 22px 0 18px; flex-wrap: wrap; gap: 10px; }
.doc-bar .pills button { display: inline-flex; align-items: center; gap: 4px; }
.doc-bar .pills svg { width: 14px; height: 14px; }
.ed-menu { position: relative; display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 0 8px; margin-bottom: 18px; }
.ed-menu > button { background: none; border: 0; font-size: 15px; color: var(--ink); padding: 4px 10px; border-radius: 4px; cursor: pointer; }
.ed-menu > button.on, .ed-menu > button:hover { background: var(--line-2); }
.ed-menu .dropdown { top: 34px; right: auto; }
.paper { position: relative; max-width: 980px; margin: 0 auto; background: #fff; box-shadow: 0 2px 16px rgba(30, 42, 61, .1); padding: 26px 48px 40px; overflow: hidden; }
.ribbon { position: absolute; top: 22px; right: -44px; transform: rotate(45deg); background: #e5484d; color: #fff; font-size: 11px; font-weight: 700; padding: 4px 50px; letter-spacing: .08em; }
.letterhead { display: flex; justify-content: center; gap: 18px; align-items: center; font-size: 12px; line-height: 1.7; }
.letterhead img { width: 96px; height: 96px; }
.paper-title { text-align: center; font-size: 20px; font-weight: 700; margin: 20px 0 18px; }
table.box { width: 100%; border-collapse: collapse; margin-bottom: 12px; table-layout: fixed; }
table.box th { background: #e4e4e4; border: 1px solid #555; text-align: left; padding: 4px 8px; font-size: 13.5px; }
table.box td { border: 1px solid #555; padding: 6px 8px; font-size: 12.5px; vertical-align: top; }
table.box td b { display: block; margin-bottom: 6px; font-size: 12px; }
.cell-in { width: 100%; border: 0; outline: 0; font: inherit; font-size: 12.5px; background: transparent; resize: vertical; padding: 0; color: var(--ink); }
.cell-in:focus { background: #f5f9ff; }
.cell-in:disabled { color: var(--ink); }
.certify { font-style: italic; font-size: 12.5px; margin: 26px 0 30px; }
.sig-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; margin: 0 40px 40px; text-align: center; font-size: 12.5px; }
.sig-val { min-height: 56px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; }
.sig-mark { color: #f07a2a; font-weight: 800; text-transform: uppercase; font-size: 15px; }
.sig-line { border-top: 1px solid #333; padding-top: 6px; }
.side-tab { position: fixed; right: 0; top: 44%; writing-mode: vertical-rl; background: #1f232a; color: #fff; padding: 16px 9px; border-radius: 8px 0 0 8px; font-size: 12px; letter-spacing: .25em; z-index: 25; }
.side-tab:hover { color: #fff; background: #000; }
.timeline { border-left: 2px solid var(--line); margin: 6px 0 0 10px; padding-left: 18px; }
.tl-item { position: relative; display: flex; gap: 10px; padding-bottom: 18px; }
.tl-dot { position: absolute; left: -25px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); border: 2px solid #fff; }
@media print { .doc-bar, .ed-menu, .side-tab, .crumbs { display: none !important; } .paper { box-shadow: none; padding: 0; } }

/* row menus, bulk bars, expandable rows */
.row-menu { position: relative; display: inline-block; }
.row-dd { right: 0; top: 30px; z-index: 62; min-width: 160px; }
.bulk { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 14px; }
.bulk .btn { height: 30px; font-size: 12.5px; }
.bulk .btn:disabled { opacity: .45; }
.btn.warn { background: #f0ad4e; border-color: #f0ad4e; color: #fff; }
.btn.grey { background: #8c939d; border-color: #8c939d; color: #fff; }
.btn.go-soft { background: #8fd16f; border-color: #8fd16f; color: #fff; }
.tbl td.chk, .tbl th.chk { width: 34px; text-align: center; }
.tbl td.exp { width: 34px; text-align: center; cursor: pointer; color: var(--muted); }
.tbl tr.sub > td { background: #fbfcfd; padding: 0 0 0 34px; }
.tbl tr.sub table.tbl { border: 0; }
.tbl tr.sub table.tbl th { background: #f6f7f9; }
.tbl td.act { text-align: center; width: 64px; }
.tbl .cut { max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ok-ico { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--go); color: #fff; font-size: 11px; margin-right: 6px; }
.filters4 { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.pager .pg { cursor: pointer; }
.pager .pg:disabled { opacity: .4; cursor: default; }
.steps { display: flex; margin: 4px 0 16px; }
.steps span { flex: 1; text-align: center; padding: 9px 4px; background: #eef1f5; color: var(--muted); font-size: 12px; font-weight: 600; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 12px 50%); margin-right: -6px; }
.steps span.done { background: var(--primary); color: #fff; }
.alert.orange { background: #f0a43a; color: #fff; border: 0; }
.alert.green { background: var(--go); color: #fff; border: 0; }
.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 20px; margin-bottom: 16px; }
.info-grid b { display: block; font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.tbl td.center { text-align: center; }
.pf { display: grid; grid-template-columns: 150px 1fr; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.pf b { color: var(--muted); font-weight: 600; }
.payer-logo.big { width: 90px; height: 90px; font-size: 30px; margin: 0 auto 6px; }

/* client manage */
.manage-card { padding: 22px 26px 26px; }
.htabs { display: flex; overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; margin: 14px 0 18px; scrollbar-width: thin; }
.htabs button { flex: none; background: #fff; border: 0; border-right: 1px solid var(--line); padding: 10px 16px; cursor: pointer; color: var(--ink); font-size: 13px; white-space: nowrap; }
.htabs button.on { color: var(--primary); box-shadow: inset 0 -2px 0 var(--primary); }
.sub-h { font-size: 16px; font-weight: 400; margin: 4px 0 16px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.rec-card { border: 1px solid #e6e9ee; border-radius: 4px; padding: 18px 14px; text-align: center; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 190px; justify-content: center; }
.rec-card:hover { border-color: #cfe0fb; box-shadow: var(--shadow); }
.rec-card .art .art-ic { width: 64px !important; height: 64px !important; }
.rec-card .nm { font-size: 16px; margin-top: 6px; }
.rec-card .nm-new { font-size: 16px; margin-top: 10px; }
.badge-ok { border: 1px solid #b7e4a5; background: #f0faea; color: var(--ok); font-size: 11px; padding: 3px 10px; border-radius: 3px; }
.badge-grey { border: 1px solid #dfe3e8; background: #f6f7f9; color: var(--muted); font-size: 11px; padding: 3px 10px; border-radius: 3px; }
.adv { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
/* wizard */
.wizard { display: grid; grid-template-columns: 190px 1fr; min-height: 380px; }
.wz-steps { border-right: 2px solid var(--line); padding: 4px 14px 0 0; text-align: right; }
.wz-steps button { display: flex; justify-content: flex-end; align-items: center; gap: 8px; width: 100%; background: none; border: 0; padding: 7px 0; font-size: 13px; color: var(--muted); cursor: pointer; }
.wz-steps button.on { color: var(--primary); }
.wz-body { padding: 0 6px 0 22px; }
.wz-progress { text-align: right; font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.wz-bar { height: 4px; background: #e8ebf0; border-radius: 2px; margin-bottom: 14px; }
.wz-bar span { display: block; height: 100%; background: var(--primary); border-radius: 2px; }
.wz-photo { width: 160px; height: 160px; background: #c9ced6; border-radius: 4px; display: grid; place-items: center; color: #fff; font-size: 48px; }
.list-filters.four { grid-template-columns: 1fr 160px 180px 180px; }
.in.multi { text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-check { display: flex; gap: 8px; align-items: center; padding: 7px 14px; cursor: pointer; }
.empty-ill { text-align: center; padding: 40px; color: var(--muted); }
.empty-ill .art-ic { width: 90px !important; height: 90px !important; margin: 0 auto 10px; }
.manage-card .center, .profile-card .center { text-align: center; }

/* plans, sessions */
.cat-title { font-size: 18px; }
.switch-row { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; font-size: 13px; }
input.switch { appearance: none; width: 34px; height: 18px; border-radius: 9px; background: #e5484d; position: relative; cursor: pointer; transition: background .15s; }
input.switch:checked { background: var(--go); }
input.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left .15s; }
input.switch:checked::after { left: 18px; }
.tbl tr.deleted-row td { opacity: .55; }
.badge-blue { border: 1px solid #b9d6fb; background: #eef5ff; color: var(--primary); font-size: 11px; padding: 2px 8px; border-radius: 3px; }
.small-art .art-ic { width: 30px !important; height: 30px !important; }
.grid-name { display: grid; grid-template-columns: 1fr 160px; gap: 16px; }
.session-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.session-card { display: flex; gap: 14px; border: 1px solid #e6e9ee; border-radius: 4px; padding: 14px; cursor: pointer; background: #fff; font-size: 13px; }
.session-card:hover { border-color: #cfe0fb; box-shadow: var(--shadow); }
.session-card .badge-ok, .session-card .badge-blue { margin-left: 4px; }
table.box.info-box { border-color: var(--line); }
table.box.info-box td { border-color: var(--line); font-size: 13px; }
.counter-btn.bad { color: #e5484d; }
.counter-btn.good { color: var(--go); font-size: 22px; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.swatch.on { box-shadow: 0 0 0 2px var(--ink); }
.icon-pick { width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; display: grid; place-items: center; }
.icon-pick.on { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-soft); }
.icon-pick .art-ic { width: 32px !important; height: 32px !important; }
.session-card.picked { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-soft); }
.chart-cards { display: grid; gap: 16px; }
.chart-card .chart svg { width: 100%; height: 240px; }
.legend .lg { display: inline-flex; align-items: center; gap: 5px; margin-right: 12px; }
.legend .lg i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
@media print { .no-print, .sidebar, .topbar, .floating-left, .floating-right, .footer { display: none !important; } .chart-card { break-inside: avoid; } .tally-sheet { break-after: page; } }
.sheet-head td { font-size: 12px; }
.sheet-head td b { display: inline; margin-right: 4px; }
table.tally { table-layout: fixed; }
table.tally th, table.tally td { padding: 2px; font-size: 10px; height: 16px; text-align: center; }
table.tally td.rn { color: var(--muted); }
table.tally td.hit { background: #cfe2fd; }
.tpl-card { position: relative; }
.tpl-card .star { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 18px; color: #d5dae1; cursor: pointer; }
.tpl-card .star.on { color: #f5b400; }

/* notifications */
.notif-dd { width: 340px; max-height: 420px; overflow-y: auto; z-index: 62; padding: 0; }
.notif-h { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); font-weight: 600; }
.notif { display: flex !important; gap: 10px; align-items: flex-start; padding: 10px 14px !important; border-bottom: 1px solid var(--line-2); }
.ndot { width: 9px; height: 9px; border-radius: 50%; margin-top: 5px; flex: none; background: var(--primary); }
.ndot.danger { background: #e5484d; } .ndot.warn { background: #f5a623; }
/* calendar drawer */
.drawer-scrim { position: fixed; inset: 0; background: rgba(30, 42, 61, .35); z-index: 70; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 360px; background: #fff; z-index: 71; padding: 18px; overflow-y: auto; box-shadow: -6px 0 24px rgba(30, 42, 61, .15); }
.drawer-t { font-size: 22px; font-weight: 400; }
.drawer-empty { background: #f1f2f4; color: var(--ink-2); text-align: center; padding: 40px 10px; font-size: 13px; }
.drawer-ev { display: flex; flex-direction: column; gap: 2px; padding: 10px; border-left: 4px solid var(--primary); background: #f6f9ff; margin-bottom: 8px; color: var(--ink); }
/* chat panel */
.chat-panel { position: fixed; right: 18px; bottom: 74px; width: 360px; height: 560px; max-height: calc(100vh - 100px); background: #fff; border-radius: 8px; box-shadow: 0 10px 40px rgba(30, 42, 61, .25); z-index: 65; display: flex; flex-direction: column; overflow: hidden; }
.chat-panel.big { width: 640px; height: calc(100vh - 100px); }
.chat-h { display: flex; align-items: center; gap: 10px; background: var(--navy); color: #fff; padding: 12px 14px; }
.chat-logo img { width: 26px; height: 26px; border-radius: 50%; background: #fff; }
.ch-btn { background: none; border: 0; color: inherit; font-size: 18px; cursor: pointer; padding: 0 4px; }
.chat-body { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.bub { max-width: 85%; padding: 8px 12px; border-radius: 10px; font-size: 13px; white-space: pre-wrap; }
.bub.a { background: #eef1f5; align-self: flex-start; }
.bub.u { background: var(--primary); color: #fff; align-self: flex-end; }
.chat-consent { background: #f6f7f9; font-size: 11px; color: var(--ink-2); padding: 10px 14px; }
.chat-in { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--line); }
/* getting started, tours */
.gs-pop { position: fixed; left: 92px; bottom: 64px; width: 300px; background: #fff; border-radius: 8px; box-shadow: 0 10px 30px rgba(30, 42, 61, .2); padding: 14px; z-index: 64; }
.gs-step { display: flex; gap: 8px; align-items: center; padding: 6px 0; font-size: 13px; color: var(--primary); }
.gs-step.ok { color: var(--muted); text-decoration: line-through; }
.gs-dot { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 10px; color: #fff; flex: none; }
.gs-step.ok .gs-dot { background: var(--go); border-color: var(--go); }
.tour-bar { height: 4px; background: #e8ebf0; border-radius: 2px; margin: 8px 0; overflow: hidden; }
.tour-bar span { display: block; height: 100%; background: var(--primary); }
.tour-card { position: fixed; right: 80px; bottom: 20px; width: 320px; background: #fff; border: 2px solid var(--primary); border-radius: 8px; box-shadow: 0 10px 30px rgba(30, 42, 61, .2); padding: 14px; z-index: 66; }
.tour-tile b { font-size: 16px; }
/* help cards */
.help-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; margin: 12px 0 24px; }
.help-card { border: 1px solid var(--line); border-radius: 6px; padding: 20px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--ink); background: #fff; cursor: pointer; }
.help-card:hover { border-color: #cfe0fb; box-shadow: var(--shadow); }
.help-card .art .art-ic { width: 64px !important; height: 64px !important; }
a.plan-badge:hover { color: var(--primary); }
/* dark theme */
:root[data-theme="dark"] { --ink: #e6e9ee; --ink-2: #b9c0cb; --muted: #8b94a3; --line: #2e3542; --line-2: #262c37; --bg: #161a21; --surface: #1d222b; --primary-soft: #1f2d44; }
:root[data-theme="dark"] body, :root[data-theme="dark"] .topbar, :root[data-theme="dark"] .sidebar, :root[data-theme="dark"] .card, :root[data-theme="dark"] .tile, :root[data-theme="dark"] .stat-card,
:root[data-theme="dark"] .modal, :root[data-theme="dark"] .dropdown, :root[data-theme="dark"] .drawer, :root[data-theme="dark"] .chat-panel, :root[data-theme="dark"] .gs-pop, :root[data-theme="dark"] .tour-card,
:root[data-theme="dark"] .help-card, :root[data-theme="dark"] .rec-card, :root[data-theme="dark"] .session-card, :root[data-theme="dark"] .pills button, :root[data-theme="dark"] .seg button,
:root[data-theme="dark"] table.tbl, :root[data-theme="dark"] .tbl td, :root[data-theme="dark"] input.in, :root[data-theme="dark"] select.in, :root[data-theme="dark"] textarea.in, :root[data-theme="dark"] .btn:not(.primary):not(.go):not(.create):not(.danger-solid):not(.dark):not(.warn):not(.grey):not(.go-soft) { background: var(--surface); color: var(--ink); border-color: var(--line); }
:root[data-theme="dark"] .tbl th, :root[data-theme="dark"] .tbl tr.total td { background: #232935; color: var(--ink); }
:root[data-theme="dark"] .pills button.on, :root[data-theme="dark"] .seg button.on { background: var(--primary); color: #fff; }
:root[data-theme="dark"] .bub.a, :root[data-theme="dark"] .chat-consent { background: #262c37; }

/* Getting started guide and the onboarding tour */
.gs-pill { position: fixed; left: 92px; bottom: 14px; z-index: 64; display: flex; align-items: center; gap: 10px; background: #1e2a3d; color: #fff; border: 0; border-radius: 999px; padding: 6px 18px 6px 6px; font: 700 13px "Nunito Sans", sans-serif; cursor: pointer; box-shadow: 0 4px 14px rgba(30, 42, 61, .3); }
.gs-pill .n { background: #3d8ef5; border-radius: 999px; padding: 3px 8px; font-size: 11px; }
.gs-guide { position: fixed; left: 92px; bottom: 6px; width: 255px; background: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(30, 42, 61, .22); padding: 16px 14px 10px; z-index: 65; font-size: 13px; }
.gs-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.gs-h b { font-size: 15px; }
.gs-min { background: none; border: 0; font-size: 18px; color: #6b7280; cursor: pointer; line-height: 1; }
.gs-label { color: #1aa3c7; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 8px; }
.gs-bar { height: 6px; background: #ebeef5; border-radius: 3px; overflow: hidden; margin-bottom: 14px; }
.gs-bar span { display: block; height: 100%; background: #3d8ef5; border-radius: 3px; }
.gs-list { list-style: none; margin: 0 0 10px; padding: 0; }
.gs-list li { display: flex; align-items: center; gap: 8px; padding: 6px 0; color: #4b5563; cursor: pointer; }
.gs-list li:hover .gs-t { color: #3d8ef5; }
.gs-list li.done { cursor: default; color: #9ca3af; }
.gs-list li.done .gs-t { text-decoration: line-through; color: #9ca3af; }
.gs-ic { width: 14px; height: 14px; border: 1.5px solid #9ca3af; border-radius: 50%; font-size: 8px; display: inline-flex; align-items: center; justify-content: center; color: #9ca3af; flex: none; }
.gs-list li.done .gs-ic { background: #5bbf3a; border-color: #5bbf3a; color: #fff; }
.gs-f { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #e5e7eb; padding-top: 10px; }
.gs-f a { font-weight: 700; color: #1e2a3d; }
.gs-f button { background: none; border: 0; font-size: 12px; color: #4b5563; cursor: pointer; }
.tour-hole { position: fixed; z-index: 90; border-radius: 8px; box-shadow: 0 0 0 9999px rgba(30, 42, 61, .45); pointer-events: none; background: rgba(255, 255, 255, .06); transition: all .15s; }
.tour-tip { position: fixed; z-index: 92; background: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(30, 42, 61, .25); padding: 14px 14px 12px; font-size: 13px; }
.tour-tip .tt-h { display: flex; justify-content: space-between; gap: 8px; }
.tour-tip .tt-h b { font-size: 14px; }
.tour-tip p { margin: 6px 0 12px; color: #4b5563; line-height: 1.45; }
.tour-tip .tt-f { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 11px; }
.tour-tip .tt-hint { color: #1aa3c7; font-weight: 700; }
.tour-ov { z-index: 95; }
.tour-modal { position: relative; overflow: hidden; text-align: center; padding: 26px 26px 20px; }
.tour-modal h3 { margin: 6px 0 10px; font-size: 20px; }
.tour-modal p { color: #4b5563; line-height: 1.5; }
.tour-choice { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.tour-choice.row { flex-direction: row; justify-content: center; }
.tour-bullets { text-align: left; margin: 0 auto; display: inline-block; color: #374151; }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i { position: absolute; top: -12px; width: 7px; height: 12px; border-radius: 2px; opacity: 0; animation: ks-confetti 1.8s ease-in forwards; }
@keyframes ks-confetti { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(320px) rotate(540deg); } }
:root[data-theme="dark"] .gs-guide, :root[data-theme="dark"] .tour-tip { background: #1f2937; color: #e5e7eb; }

/* Calendar settings drawer and week agenda */
.cal-settings .field { margin-top: 14px; }
.multi-pick { text-align: left; cursor: pointer; background: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; }
.multi-pick.ph { color: #9ca3af; }
.multi-dd { left: 0; right: 0; max-height: 260px; overflow-y: auto; padding: 6px 10px; }
.multi-dd label { padding: 5px 0; font-size: 13px; cursor: pointer; }
.agenda .day { display: flex; justify-content: space-between; background: #eef0f3; }
.agenda .item { grid-template-columns: 150px 14px 1fr; }
.agenda .item .at { color: #374151; font-size: 13px; }
.agenda .item .what { display: flex; flex-direction: column; font-size: 12.5px; line-height: 1.35; }
.agenda .item.cancelled .what, .agenda .item.cancelled .at { text-decoration: line-through; color: #9ca3af; }
.multi-dd { z-index: 75; }
.cal-settings ~ .pop-scrim, .drawer .pop-scrim { z-index: 74; }
.multi-pick { min-height: 38px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.drawer-scrim.clear { background: transparent; }
.view-dd { top: 34px; right: 0; min-width: 120px; }
.view-dd button.on { color: var(--primary); font-weight: 700; }
.stat-card .st-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
@media (max-width: 1100px) { .stat-row { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; } }
@media (max-width: 640px) { .stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.user-cards { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 24px; }
.uc-chip { font-size: 10.5px; padding: 3px 8px; border-radius: 4px; background: #f1f3f6; color: #8c96a3; }
.uc-chip.ok { background: #eaf7e4; color: #52c41a; }
.uc-chip.off { background: #fdecea; color: #f5483b; }
.uc-chip.admin { background: #e8f2fe; color: #3d8ef5; }
.files-title { display: flex; align-items: center; gap: 6px; font-size: 20px; font-weight: 400; margin: 8px 0 12px; }
.files-toolbar { display: flex; flex-direction: column; margin-bottom: 10px; }
.files-toolbar .in { width: 100%; }
.btn.info { background: #2bb3d9; color: #fff; border-color: #2bb3d9; }
.msg-search { margin-bottom: 14px; }
.msg-search .in { flex: 1; }
.line-tabs { display: flex; gap: 26px; border-bottom: 2px solid #eef0f3; margin-bottom: 8px; }
.line-tabs button { background: none; border: 0; padding: 8px 0; margin-bottom: -2px; border-bottom: 2px solid transparent; cursor: pointer; color: var(--ink); font: inherit; font-size: 13px; }
.line-tabs button.on { color: var(--primary); border-bottom-color: var(--primary); }
tr.unread td { font-weight: 600; }
.client-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.client-card-sm { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 12px; color: var(--ink); text-align: center; }
.client-card-sm:hover { box-shadow: var(--shadow); }
.cc-name { font-weight: 700; font-size: 13px; }
.cc-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
.cc-chip { background: #f1f3f6; color: #6b7280; font-size: 10.5px; padding: 3px 7px; border-radius: 4px; }
.cc-chip.st { background: #eaf7e4; color: #52c41a; }
.tbl-scroll { overflow-x: auto; }
.alert.info { background: #eef1f5; color: #6b7280; text-align: center; border: 0; }
@media (max-width: 1100px) { .ct-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ct-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.exp-filters select { max-width: 260px; }
.ev-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.ev-filters .daterange { display: flex; align-items: center; gap: 6px; }
.ev-filters .daterange input { flex: 1; min-width: 0; }
.chev-btn { margin-top: 4px; padding: 2px 10px; }
.chk-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.chk-filter { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 4px; padding: 6px 10px; font-size: 12px; color: var(--ink-2); cursor: pointer; }
.chk-ic { display: inline-flex; width: 18px; height: 18px; border-radius: 50%; align-items: center; justify-content: center; color: #fff; font-size: 11px; font-weight: 700; cursor: help; }
.chk-ic.ok { background: #52c41a; }
.chk-ic.bad { background: #f5483b; }
td.nowrap { white-space: nowrap; }
.pg-on { background: var(--primary); color: #fff; border-radius: 3px; padding: 2px 8px; }
@media (max-width: 640px) { .ev-filters, .chk-filters { grid-template-columns: 1fr; } }
.std-chip { font-size: 10.5px; padding: 2px 7px; border-radius: 4px; background: #eaf7e4; color: #52c41a; margin-left: 6px; }
.hidden { display: none !important; }
.btn.bad-soft { background: #fbd5d2; border-color: #fbd5d2; color: #c0392b; }
.btn.go-soft { background: #cdeec0; border-color: #cdeec0; color: #3d8b26; }
.val-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.qv-fields { display: grid; gap: 10px; margin-top: 14px; }
.qv-f { border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; white-space: pre-wrap; }
.hub-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-top: 14px; }
.hub-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 20px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; color: var(--ink); }
.hub-card:hover { box-shadow: var(--shadow); }
.hub-card .art svg { width: 84px; height: 84px; }
.hub-card .muted { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumb-link { display: inline-block; margin: 2px 0 8px; }
.form-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; } @media (max-width: 640px) { .form-grid2 { grid-template-columns: 1fr; } }
.source-pick { display: flex; gap: 12px; justify-content: center; padding: 14px 0; }
.btn.source { min-width: 120px; padding: 18px 16px; font-weight: 700; }
.source-list { display: flex; flex-direction: column; max-height: 360px; overflow-y: auto; }
.source-item { text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line-2); padding: 10px 6px; cursor: pointer; color: var(--ink); font: inherit; }
.source-item:hover { background: var(--line-2); }
.tpl-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 12px; }
.tpl-card2 { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.tpl-card2:hover { box-shadow: var(--shadow); }
.tpl-card2.off { opacity: .55; }
.tpl-card2 p { margin: 0; }
.toast { position: fixed; top: 70px; right: 18px; z-index: 80; width: 300px; background: var(--surface); border-radius: 8px; box-shadow: 0 8px 24px rgba(30, 42, 61, .18); padding: 12px 12px 12px 14px; display: flex; gap: 8px; align-items: flex-start; border-left: 4px solid #52c41a; }
.toast .toast-body { display: flex; flex-direction: column; gap: 3px; color: var(--ink); flex: 1; }
.toast .toast-body .small { color: var(--ink-2); }
.hub-card .muted.wrap { white-space: normal; }
.switch-card b { font-size: 14px; }
input.switch.on-blue:checked { background: var(--primary); }
input.switch.on-blue { background: #cfd5dd; }
.agr-list { padding: 0; }
.agr-row { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line-2); color: var(--ink); }
.agr-row:last-child { border-bottom: 0; }
.agr-row.link { cursor: pointer; }
.agr-row.link:hover { background: #f8fafc; }
.agr-row > div { flex: 1; }
.agr-ic { width: 36px; height: 36px; border-radius: 8px; background: #e8f2fe; color: var(--primary); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.legal p { line-height: 1.55; }
.chart-filters { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-bottom: 8px; }
.chart-filters .cf { display: flex; align-items: center; gap: 8px; }
.chart-filters .lbl { margin: 0; font-size: 12px; color: var(--ink-2); }
.chart-filters select.in { width: auto; min-width: 140px; }
.ct-title { font-size: 17px; }
.ct-edit { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: #5bbf3a; color: #fff; align-items: center; justify-content: center; }
.ct-edit svg { width: 12px; height: 12px; }
.ct-lto { margin: 8px 0 4px; color: var(--ink-2); }
.ct-zoom { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: #3d8ef5; color: #fff; border: 0; align-items: center; justify-content: center; cursor: pointer; }
.ct-zoom svg { width: 12px; height: 12px; }
.ct-center { text-align: center; font-weight: 700; margin-top: 8px; }
.legend.top { justify-content: center; display: flex; gap: 14px; margin: 4px 0; }
.foot-trend { font-size: 12px; color: var(--ink-2); margin-top: 6px; }
.chart.big svg { width: 100%; }
.doc-card { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ink); text-align: center; position: relative; }
.doc-card.new { cursor: pointer; }
.doc-card .plus-badge { position: absolute; top: 46px; left: calc(50% + 12px); width: 28px; height: 28px; border-radius: 50%; background: #2bb3d9; color: #fff; font-size: 20px; line-height: 28px; font-weight: 700; }
.week-pick .in { padding: 8px 10px; }
.info-i { font-size: 12px; color: var(--ink-2); cursor: help; }
