/* Reinhart CRM · the Apple look, the same system as Socialite and the budget app, in Reinhart's colours.
   Loaded last, over core.css and rpm.css. The device's own system font (Inter where there is none), warm neutrals,
   glass chrome (sidebar, top bar controls, tab bar, sheets, toasts), large titles, cards with soft shadows, hairlines,
   status as a dot and a word, pill buttons that press in and spring back. Light and dark.
   Reinhart's colours: ink #23201D for words, gold #B69F64 for highlights and icons, red #BB2921 for the main action.
   Gold is too pale for words on white, so text links use the deep gold (5.6:1 on white).
   Rules carried from Socialite: no Apple marks or names, no SF font files, Lucide-style line icons only. */

:root {
  --font: -apple-system, BlinkMacSystemFont, Inter, system-ui, "Segoe UI", Roboto, sans-serif;
  --rounded: ui-rounded, -apple-system, BlinkMacSystemFont, Inter, system-ui, sans-serif;

  --accent: #b69f64; --accent-ink: #7d6430; --accent-hover: #6b5428;
  --accent-tint: rgba(182, 159, 100, .14); --accent-tint-2: rgba(182, 159, 100, .22);
  --action: #bb2921; --action-hover: #a8231c; --on-action: #fff;
  --action-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 1px 2px rgba(120, 20, 14, .2), 0 6px 16px -6px rgba(187, 41, 33, .55);

  --bg: #f5f4f2; --bg-elev: #ffffff; --surface: #ffffff; --surface-2: #f8f7f5;
  --fill: rgba(118, 114, 108, .12); --fill-2: rgba(118, 114, 108, .075); --fill-hover: rgba(118, 114, 108, .17);
  --label: #23201d; --label-1b: #3b3833; --label-2: #6e6a64; --label-2b: #85817a; --label-3: #a8a49d;
  --sep: rgba(60, 54, 44, .12); --sep-strong: rgba(60, 54, 44, .2);

  --green: #28a14a; --blue: #2f7cf6; --orange: #e68a00; --red: #d93a2f; --gray: #a8a49d; --indigo: #5e5ce6;
  --ok: #1d8a3c; --warnc: #a75a00; --badc: #c62a20;

  --glass: rgba(252, 251, 249, .64); --glass-strong: rgba(252, 251, 249, .8);
  --glass-rim: rgba(255, 255, 255, .85); --glass-edge: rgba(40, 34, 24, .10);
  --glass-shadow: 0 12px 40px -8px rgba(40, 30, 14, .16), 0 2px 8px -2px rgba(40, 30, 14, .06);
  --glass-blur: blur(28px) saturate(185%);
  --glass-sheen: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 40%);

  --card-shadow: 0 .5px 0 rgba(40, 30, 14, .04), 0 1px 3px rgba(40, 30, 14, .04), 0 6px 20px -8px rgba(40, 30, 14, .08);
  --lift-shadow: 0 1px 3px rgba(40, 30, 14, .05), 0 18px 40px -14px rgba(40, 30, 14, .22);
  --sheet-shadow: 0 0 0 .5px rgba(40, 34, 24, .1), 0 30px 80px -20px rgba(40, 30, 14, .35), 0 8px 24px -8px rgba(40, 30, 14, .12);
  --ring: 0 0 0 3.5px color-mix(in srgb, var(--accent) 38%, transparent);

  --spring: linear(0, .0736, .2429, .446, .6418, .8066, .9307, 1.0138, 1.0613, 1.0812, 1.0821, 1.0714, 1.0554, 1.0384, 1.0231, 1.0109, 1.0021, .9967, .9939, .993, .9935, .9946, .996, .9974, .9986, .9995, 1, 1);
  --spring-soft: linear(0, .0859, .2691, .4726, .6547, .7983, .9006, .9667, 1.0046, 1.0228, 1.0283, 1.0267, 1.0218, 1.016, 1.0106, 1.0064, 1.0033, 1.0012, 1, .9994, .9992, .9992, .9994, .9997, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);

  --side-w: 244px; --side: 262px; --top-h: 60px;
  --bub-out: #c8b27a; --on-bub-out: #23201d;
  --paper: #ffffff;   /* prints are drawings on paper, white in either mode */

  /* the old names every screen already uses, pointed at the new ones */
  --panel: var(--surface); --panel2: var(--fill-2); --line: var(--sep); --line2: var(--sep-strong);
  --text: var(--label); --muted: var(--label-2); --dim: var(--label-2b); --ink: var(--label); --ink2: var(--label-1b);
  --signal: var(--accent); --brand: var(--accent); --gold: var(--accent); --gold-d: var(--accent-ink); --teal: var(--accent-ink); --cyan: var(--accent);
  --good: var(--ok); --warn: var(--warnc); --bad: var(--badc);
  --shadow: var(--card-shadow); --shadow-lift: var(--lift-shadow); --focus: var(--ring); --hover-row: var(--fill-2);
  --mono: var(--font);
  color-scheme: light;
}
@supports not (transition-timing-function: linear(0, 1)) { :root { --spring: cubic-bezier(.34, 1.4, .64, 1); --spring-soft: cubic-bezier(.3, 1.15, .6, 1); } }

/* dark: the same tokens, night values. Applied by the device setting, or by the choice in the top bar */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --accent: #c9b27a; --accent-ink: #d9c48e; --accent-hover: #e6d3a3;
  --accent-tint: rgba(201, 178, 122, .16); --accent-tint-2: rgba(201, 178, 122, .26);
  --action: #d0372d; --action-hover: #de463b;
  --bg: #0e0d0c; --bg-elev: #1d1c1a; --surface: #1d1c1a; --surface-2: #252321;
  --fill: rgba(128, 124, 116, .26); --fill-2: rgba(128, 124, 116, .16); --fill-hover: rgba(128, 124, 116, .34);
  --label: #f5f3ef; --label-1b: #dedad3; --label-2: #a9a49c; --label-2b: #8f8a82; --label-3: #6f6b65;
  --sep: rgba(255, 255, 255, .09); --sep-strong: rgba(255, 255, 255, .16);
  --green: #30d158; --blue: #4d94ff; --orange: #ff9f0a; --red: #ff5a4f; --gray: #8e8a84; --indigo: #7d7aff;
  --ok: #45d16a; --warnc: #ffae3d; --badc: #ff6b61;
  --glass: rgba(38, 36, 34, .58); --glass-strong: rgba(42, 40, 38, .8);
  --glass-rim: rgba(255, 255, 255, .12); --glass-edge: rgba(0, 0, 0, .5);
  --glass-shadow: 0 16px 48px -10px rgba(0, 0, 0, .6), 0 2px 8px -2px rgba(0, 0, 0, .4);
  --glass-sheen: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 40%);
  --card-shadow: 0 0 0 .5px rgba(255, 255, 255, .06), 0 8px 24px -10px rgba(0, 0, 0, .6);
  --lift-shadow: 0 0 0 .5px rgba(255, 255, 255, .09), 0 22px 48px -16px rgba(0, 0, 0, .8);
  --sheet-shadow: 0 0 0 .5px rgba(255, 255, 255, .1), 0 30px 80px -20px rgba(0, 0, 0, .8);
  --bub-out: #b69f64;
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --accent: #c9b27a; --accent-ink: #d9c48e; --accent-hover: #e6d3a3;
  --accent-tint: rgba(201, 178, 122, .16); --accent-tint-2: rgba(201, 178, 122, .26);
  --action: #d0372d; --action-hover: #de463b;
  --bg: #0e0d0c; --bg-elev: #1d1c1a; --surface: #1d1c1a; --surface-2: #252321;
  --fill: rgba(128, 124, 116, .26); --fill-2: rgba(128, 124, 116, .16); --fill-hover: rgba(128, 124, 116, .34);
  --label: #f5f3ef; --label-1b: #dedad3; --label-2: #a9a49c; --label-2b: #8f8a82; --label-3: #6f6b65;
  --sep: rgba(255, 255, 255, .09); --sep-strong: rgba(255, 255, 255, .16);
  --green: #30d158; --blue: #4d94ff; --orange: #ff9f0a; --red: #ff5a4f; --gray: #8e8a84; --indigo: #7d7aff;
  --ok: #45d16a; --warnc: #ffae3d; --badc: #ff6b61;
  --glass: rgba(38, 36, 34, .58); --glass-strong: rgba(42, 40, 38, .8);
  --glass-rim: rgba(255, 255, 255, .12); --glass-edge: rgba(0, 0, 0, .5);
  --glass-shadow: 0 16px 48px -10px rgba(0, 0, 0, .6), 0 2px 8px -2px rgba(0, 0, 0, .4);
  --glass-sheen: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 40%);
  --card-shadow: 0 0 0 .5px rgba(255, 255, 255, .06), 0 8px 24px -10px rgba(0, 0, 0, .6);
  --lift-shadow: 0 0 0 .5px rgba(255, 255, 255, .09), 0 22px 48px -16px rgba(0, 0, 0, .8);
  --sheet-shadow: 0 0 0 .5px rgba(255, 255, 255, .1), 0 30px 80px -20px rgba(0, 0, 0, .8);
  --bub-out: #b69f64;
  color-scheme: dark;
}

/* ── base ── */
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--label); font: 400 14.5px/1.45 var(--font); letter-spacing: -.011em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: "kern"; }
a { color: var(--accent-ink); }
a:hover { color: var(--accent-hover); text-decoration: none; }
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); color: var(--label); }
:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 75%, transparent); outline-offset: 2px; }
h1, h2, h3, h4 { color: var(--label); letter-spacing: -.022em; }
h1 { font: 700 32px/1.12 var(--font); letter-spacing: -.028em; margin: 0 0 4px; overflow-wrap: anywhere; }
h2 { font-weight: 700; }
b, strong { font-weight: 600; }
.muted { color: var(--label-2); } .dim { color: var(--label-2b); }
.good { color: var(--ok); } .warn { color: var(--warnc); } .bad { color: var(--badc); }
.small { font-size: 13px; }
.sub { color: var(--label-2); }
.tnum { font-family: var(--font); font-size: inherit; font-variant-numeric: tabular-nums; }
::-webkit-scrollbar-thumb { background: var(--fill-hover); border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--label-3); border: 2px solid transparent; background-clip: content-box; }

/* the little labels that used to be tiny capitals: plain words now */
:is(.stat .l, .feed .k, .tl .k, .gsresults .gshead, .kanban-head, .sn-group, .agday, .kv > span:first-child, .kvl, .formsec, .mcal-h div,
    .pr-kv > div > span:first-child, .rc-sec, .dock-row label, .cv-day, .h3note, .login-tag, .sidenav-brand .tag, .brand .tag, .col .cv, .hbar .n,
    .agtime, .tl-when, .kanban-val, .mcal-e span, .stepn) { font-family: var(--font); text-transform: none; letter-spacing: -.005em; }

/* ── glass ── */
.glass, .sidenav, .gsearch input, .tb-circle, .bottombar, .toast, .gsresults, .theme-pop {
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }

/* ── the sidebar: a floating glass panel ── */
.sidenav { left: 10px; top: 10px; bottom: 10px; width: var(--side-w); border-radius: 18px; padding: 8px 10px 10px; color: var(--label); border: 0;
  background: var(--glass-sheen), var(--glass);
  box-shadow: inset 0 0 0 .5px var(--glass-rim), inset 0 1px 0 0 var(--glass-rim), 0 0 0 .5px var(--glass-edge), var(--glass-shadow); }
.sidenav-brand { padding: 10px 8px 6px; gap: 10px; }
.sidenav-brand img { height: 40px; }
.sidenav-brand .tag { color: var(--label-2); font-size: 13px; font-weight: 600; border-left: .5px solid var(--sep-strong); padding-left: 10px; opacity: 1; }
.sidenav-nav { padding: 2px 0; gap: 1px; scrollbar-width: none; }
.sidenav-nav::-webkit-scrollbar { display: none; }
.sn-group { font-size: 11.5px; font-weight: 650; color: var(--label-3); padding: 16px 10px 6px; letter-spacing: .005em; }
.sn-group:first-child { padding-top: 8px; }
.sn-item { height: 34px; padding: 0 10px; border-radius: 9px; color: var(--label); font-size: 14px; font-weight: 500; letter-spacing: -.01em;
  transition: background-color .18s, transform .5s var(--spring); }
.sn-item:hover { background: var(--fill-2); color: var(--label); }
.sn-item:active { transform: scale(.98); }
.sn-ic { color: var(--accent); }
.sn-ic::before { width: 18px; height: 18px; }
.tab.active, .tab.active:hover { background: var(--fill); color: var(--label); font-weight: 600; }
.tab.active::before { display: none; }
.tab.active .sn-ic::before { background: var(--accent); }
.navbadge { background: var(--red); font-size: 11px; font-weight: 600; padding: 0 6px; min-width: 18px; height: 18px; line-height: 18px; text-align: center; }
.sidenav-foot { border-top: .5px solid var(--sep); padding: 8px 0 2px; }
.sn-who { padding: 8px 10px 2px; }
.sn-who-name { color: var(--label); font-size: 13px; font-weight: 600; }
.sn-who .linklike { color: var(--accent-ink); font-size: 13px; font-weight: 500; }
.sn-who .linklike:hover { color: var(--accent-hover); }

/* ── the top bar: see-through, frosted once the page scrolls under it ── */
header { background: none; border: 0; }
.appmain { margin-left: var(--side); min-height: 100vh; min-height: 100dvh; }
.appmain > header { position: sticky; top: 0; z-index: 20; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.appmain > header::before { content: ""; position: absolute; inset: 0 0 -20px 0; z-index: -1; opacity: 0; transition: opacity .3s;
  -webkit-backdrop-filter: blur(14px) saturate(170%); backdrop-filter: blur(14px) saturate(170%);
  background: linear-gradient(color-mix(in srgb, var(--bg) 62%, transparent), color-mix(in srgb, var(--bg) 0%, transparent));
  -webkit-mask: linear-gradient(#000 50%, transparent); mask: linear-gradient(#000 50%, transparent); pointer-events: none; }
body.scrolled .appmain > header::before { opacity: 1; }
.topbar { height: var(--top-h); padding: 0 32px 0 24px; gap: 10px; }
.gsearch { max-width: 340px; min-width: 220px; }
.gsearch input { height: 36px; min-height: 36px; padding: 0 14px 0 36px; border: 0; border-radius: 999px; font-size: 14px; color: var(--label);
  background: var(--glass-sheen), var(--glass);
  box-shadow: inset 0 0 0 .5px var(--glass-rim), 0 0 0 .5px var(--glass-edge), var(--glass-shadow); }
.gsearch input:hover { border: 0; }
.gsearch input:focus { background: var(--glass-sheen), var(--glass-strong); border: 0; box-shadow: inset 0 0 0 .5px var(--glass-rim), 0 0 0 .5px var(--glass-edge), var(--glass-shadow), var(--ring); }
.gsearch::before, .searchbar::before { background: var(--label-2); left: 13px; width: 15px; height: 15px; z-index: 1; }
.gsearch input::-webkit-search-cancel-button { display: none; }
.gsresults { top: 44px; border: 0; border-radius: 16px; padding: 6px; background: var(--glass-sheen), var(--glass-strong);
  box-shadow: inset 0 0 0 .5px var(--glass-rim), 0 0 0 .5px var(--glass-edge), var(--glass-shadow); animation: drop-in .35s var(--spring) both; }
.gsresults a, .gsr { border: 0; border-radius: 10px; padding: 8px 10px; color: var(--label); }
.gsresults a:hover, .gsr.on, .gsr:hover { background: var(--fill-2); }
.gsresults .gshead { background: none; border: 0; font-size: 12px; font-weight: 600; color: var(--label-2); padding: 8px 10px 4px; }
@keyframes drop-in { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
.toolbar { gap: 8px; align-items: center; }

/* round glass buttons in the bar */
.tb-circle { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; padding: 0; border: 0; cursor: pointer; color: var(--label);
  background: var(--glass-sheen), var(--glass);
  box-shadow: inset 0 0 0 .5px var(--glass-rim), 0 0 0 .5px var(--glass-edge), var(--glass-shadow); transition: transform .5s var(--spring); }
.tb-circle:active { transform: scale(.92); }
.tb-circle::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--ic) center/contain no-repeat; mask: var(--ic) center/contain no-repeat; }
#btnTheme { --ic: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M12 3a9 9 0 0 0 0 18z' fill='black'/></svg>"); }
.theme-wrap { position: relative; display: inline-flex; }
.theme-pop { position: absolute; z-index: 30; right: 0; top: calc(100% + 8px); min-width: 190px; padding: 6px; border-radius: 16px; display: grid; gap: 1px;
  background: var(--glass-sheen), var(--glass-strong); box-shadow: inset 0 0 0 .5px var(--glass-rim), 0 0 0 .5px var(--glass-edge), var(--glass-shadow);
  transform-origin: 100% 0; animation: drop-in .35s var(--spring) both; }
.theme-pop button { display: flex; align-items: center; gap: 9px; height: 34px; padding: 0 10px; border: 0; border-radius: 9px; background: none; color: var(--label); font-size: 14px; font-weight: 500; text-align: left; }
.theme-pop button:hover { background: var(--fill-2); }
.theme-pop button span { flex: 1; }
.theme-pop button i { width: 15px; height: 15px; background: var(--accent-ink); opacity: 0; -webkit-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat; mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat; }
.theme-pop button[aria-checked="true"] i { opacity: 1; }

/* ── the page ── */
main { padding: 4px 40px 72px 24px; max-width: 1340px; margin: 0; }
.samplebar { margin: 0 32px 6px 24px; border: 0; border-radius: 14px; padding: 10px 16px; font-size: 13.5px; color: var(--label);
  background: color-mix(in srgb, var(--accent) 16%, var(--surface)); box-shadow: inset 0 0 0 .5px color-mix(in srgb, var(--accent) 40%, transparent); }
.samplebar a { color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.pagehead { align-items: flex-end; margin: 6px 2px 18px; gap: 12px 20px; }
.pagehead h1 { margin: 0; }
.pagehead .sub { margin: 4px 0 0; font-size: 15px; color: var(--label-2); }
.crumbs { font-size: 13px; font-weight: 500; }
.crumbs a { color: var(--accent-ink); }

/* ── cards ── */
.panel, .hero, .step, .pcard, .mcal, .conn, .print, .kanban-card, .stat, .savebox, .newopt {
  background: var(--surface); border: 0; box-shadow: var(--card-shadow); }
.panel { border-radius: 20px; padding: 20px; margin-bottom: 16px; }
.panel h3 { margin: 0 0 12px; font: 650 17px/1.25 var(--font); letter-spacing: -.02em; text-transform: none; color: var(--label); }
.panel h3 .btn, .panel h3 .h3link { font-family: var(--font); }
.h3link { font-size: 14px; font-weight: 500; color: var(--accent-ink); }
.h3note { font-size: 13px; font-weight: 500; color: var(--label-2); }
.panel.flush > h3.pad, .panel h3.pad { padding: 18px 20px 0; }
.panel.flush .empty { margin: 0 20px 20px; }

/* numbers at the top of a page */
.cards { gap: 14px; }
.stat { border-radius: 18px; padding: 16px 18px; }
.stat .l { font-size: 13px; font-weight: 600; color: var(--label-2); margin-bottom: 6px; letter-spacing: -.005em; }
.stat .v { font: 650 28px/1.05 var(--rounded); letter-spacing: -.02em; color: var(--label); font-variant-numeric: tabular-nums; }
.stat .s { font-size: 13px; color: var(--label-2b); }
.stat.accent, .stat.alert { background: var(--surface); border: 0; }
.stat.accent::before, .stat.alert::before { display: none; }
.stat.accent .v { color: var(--accent-ink); font-size: 28px; }
.stat.alert .v { color: var(--badc); }
.stat.click, a.stat { transition: transform .5s var(--spring), box-shadow .3s var(--ease-out); }
.stat.click:hover, a.stat:hover { transform: translateY(-2px); box-shadow: var(--lift-shadow); border: 0; }
.stat.click:active, a.stat:active { transform: scale(.98); transition-duration: .15s; }

/* ── buttons: pills that press in and spring back ── */
.btn { height: 36px; min-height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--fill); color: var(--label); font: 590 14px/1 var(--font); letter-spacing: -.01em; box-shadow: none; white-space: nowrap;
  transition: transform .5s var(--spring), background-color .2s, box-shadow .3s, color .2s, opacity .2s; }
.btn:hover { background: var(--fill-hover); color: var(--label); border: 0; box-shadow: none; }
.btn:active:not(:disabled) { transform: scale(.955); transition-duration: .12s, .2s, .3s, .2s, .2s; transition-timing-function: var(--ease-out); box-shadow: none; }
.btn-primary { background: var(--action); color: var(--on-action); box-shadow: var(--action-shadow); }
.btn-primary:hover { background: var(--action-hover); color: var(--on-action); box-shadow: var(--action-shadow); }
.btn-ghost { background: var(--fill-2); color: var(--label); }
.btn-ghost:hover { background: var(--fill); color: var(--label); }
.btn-danger { background: color-mix(in srgb, var(--badc) 10%, transparent); color: var(--badc); }
.btn-danger:hover { background: color-mix(in srgb, var(--badc) 17%, transparent); color: var(--badc); }
.btn-amber { background: var(--orange); color: #fff; }
.btn-amber:hover { background: color-mix(in srgb, var(--orange) 88%, #000); color: #fff; }
.btn-sm { height: 30px; min-height: 30px; padding: 0 13px; font-size: 13px; }
.btn:disabled { opacity: .4; transform: none; }
.btn .ico { margin-right: 0; }
.iconbtn { width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--label-2); transition: background-color .2s, transform .5s var(--spring); }
.iconbtn:hover { background: var(--fill); color: var(--label); border: 0; }
.iconbtn:active { transform: scale(.9); }
.close { width: 30px; height: 30px; border-radius: 50%; background: var(--fill-2); color: var(--label-2); font-size: 19px; transition: background-color .2s, transform .5s var(--spring); }
.close:hover { background: var(--fill); color: var(--label); }
.close:active { transform: scale(.9); }
.linklike { color: var(--accent-ink); }
#btnPlus { width: 36px; height: 36px; border-radius: 50%; padding: 0; }
#navToggle { width: 36px; height: 36px; min-height: 36px; border-radius: 50%; padding: 0;
  background: var(--glass-sheen), var(--glass); box-shadow: inset 0 0 0 .5px var(--glass-rim), 0 0 0 .5px var(--glass-edge), var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
#navToggle::before { background: var(--label); }

/* ── fields ── */
input, select, textarea { min-height: 40px; padding: 9px 13px; border: 0; border-radius: 12px; background: var(--surface); color: var(--label); font-size: 14.5px;
  box-shadow: inset 0 0 0 .5px var(--sep-strong), 0 1px 2px rgba(0, 0, 0, .03); transition: box-shadow .25s, background-color .2s; }
input[type=checkbox], input[type=radio] { min-height: 0; box-shadow: none; accent-color: var(--accent-ink); }
input::placeholder, textarea::placeholder { color: var(--label-3); }
input:focus, select:focus, textarea:focus { border: 0; box-shadow: inset 0 0 0 .5px color-mix(in srgb, var(--accent) 70%, var(--sep-strong)), var(--ring); }
input:disabled, select:disabled, textarea:disabled { background: var(--fill-2); color: var(--label-2); box-shadow: none; }
select { -webkit-appearance: none; appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a2a09c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 15 5 5 5-5'/%3E%3Cpath d='m7 9 5-5 5 5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; background-size: 14px; }
textarea { min-height: 72px; }
.field { margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; color: var(--label-2); margin-bottom: 6px; }
.field .hint, .hint { font-size: 12.5px; color: var(--label-2b); }
.formsec { font-size: 15px; font-weight: 650; color: var(--label); letter-spacing: -.015em; border-top: .5px solid var(--sep); margin: 12px 0 10px; padding-top: 14px; }
.moneyin span { color: var(--label-2); }
.moneyin input { padding-left: 24px; }
.chk { background: var(--fill-2); border: 0; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 500; color: var(--label); }
.chk:hover { background: var(--fill); border: 0; }
.chk.on { background: var(--accent-tint-2); color: var(--accent-ink); border: 0; font-weight: 600; }
.chkfield .chk { background: none; padding: 0; font-size: 14px; }
.tagopt { background: var(--fill-2); border: 0; padding: 6px 12px; font-size: 13px; font-weight: 500; }
.tagopt:has(input:checked) { background: var(--accent-tint-2); color: var(--accent-ink); border: 0; font-weight: 600; }
.req { color: var(--badc); }

/* ── tables ── */
.panel:has(table) { padding: 6px 8px; }
.panel.flush:has(table) { padding: 0; }
table { font-size: 13.5px; }
th { font: 600 12.5px/1.2 var(--font); text-transform: none; letter-spacing: -.005em; color: var(--label-2); padding: 12px 10px 10px; background: var(--surface); border-bottom: .5px solid var(--sep-strong); }
th.sortable:hover { color: var(--accent-ink); }
td { padding: 10px 10px; border-bottom: .5px solid var(--sep); }
tr:hover td, .dtable tbody tr.clickrow:hover td { background: var(--fill-2); }
.dtable tfoot td { background: var(--surface-2); border-top: .5px solid var(--sep-strong); font-weight: 650; }
.dtable th[data-dir="asc"]::after, .dtable th[data-dir="desc"]::after { color: var(--accent-ink); }

/* ── status: a dot and a word ── */
.tb { background: none; padding: 0 2px 0 0; margin-right: 8px; height: auto; font-size: 13px; font-weight: 500; color: var(--label-2); gap: 6px; line-height: 1.4; }
.tb::before { width: 8px; height: 8px; opacity: 1; background: var(--dc, var(--gray)); }
.tb-good { --dc: var(--green); } .tb-gold { --dc: var(--accent); } .tb-warn { --dc: var(--orange); } .tb-bad { --dc: var(--red); } .tb-muted { --dc: var(--gray); }
.adot { background: var(--dc, var(--gray)) !important; }
.kchips .tb { font-size: 12.5px; padding: 0; }
.badge { background: var(--fill-2); color: var(--label-1b); font-size: 12px; font-weight: 600; padding: 3px 9px; }
.badge[class*="b-"] { background: none; color: var(--label-2); padding-left: 0; font-weight: 500; }
.badge[class*="b-"]::before { width: 8px; height: 8px; opacity: 1; background: var(--dc, var(--gray)); margin-right: 6px; vertical-align: .5px; }
.b-New, .b-Follow-up, .b-Contacted { --dc: var(--blue); } .b-Interested, .b-Active { --dc: var(--green); } .b-Quoted, .b-Negotiating { --dc: var(--indigo); }
.b-Pending, .b-Waiting-on-signature { --dc: var(--orange); } .b-Lost, .b-Cancelled, .b-Payment-overdue { --dc: var(--red); }
.pill { background: var(--fill-2); color: var(--label-1b); border-radius: 999px; font-size: 12px; font-weight: 600; padding: 3px 10px; }

/* filter chips and segmented controls */
.chip { background: var(--fill-2); border: 0; color: var(--label); font-size: 13px; font-weight: 500; padding: 6px 13px; transition: background-color .2s, transform .5s var(--spring); }
.chip:hover, .chip.on:hover { background: var(--fill); border: 0; color: var(--label); }
.chip:active { transform: scale(.96); }
.chip.on, .chip.on:hover { background: var(--label); color: var(--bg); border: 0; font-weight: 600; }
.pillbar { background: var(--fill-2); border: 0; padding: 2px; gap: 2px; }
.pillbtn { height: 30px; padding: 0 14px; color: var(--label); font-size: 13px; font-weight: 510; display: inline-flex; align-items: center; transition: transform .5s var(--spring); }
.pillbtn:active { transform: scale(.96); }
.pillbtn.active { background: var(--bg-elev); color: var(--label); font-weight: 600; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .04), 0 3px 8px rgba(0, 0, 0, .12), 0 1px 1px rgba(0, 0, 0, .04); }
.stagebar { gap: 6px; }
.stg { background: var(--fill-2); border: 0; color: var(--label); font-size: 13px; font-weight: 500; padding: 7px 14px; transition: background-color .2s, transform .5s var(--spring); }
.stg:hover { background: var(--fill); border: 0; color: var(--label); }
.stg:active { transform: scale(.96); }
.stg.on { background: var(--label); color: var(--bg); border: 0; font-weight: 600; }
.actkinds label { background: var(--fill-2); border: 0; color: var(--label); font-size: 12.5px; font-weight: 500; padding: 4px 11px; }
.actkinds label:has(input:checked) { background: var(--label); color: var(--bg); border: 0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pillbtn.active { background: #5c5955; box-shadow: none; } }
:root[data-theme="dark"] .pillbtn.active { background: #5c5955; box-shadow: none; }

/* ── notes ── */
.note { border: 0; border-radius: 14px; padding: 12px 16px; font-size: 13.5px; color: var(--label);
  background: color-mix(in srgb, var(--orange) 12%, var(--surface)); box-shadow: inset 0 0 0 .5px color-mix(in srgb, var(--orange) 30%, transparent); }
.note.info { background: color-mix(in srgb, var(--blue) 10%, var(--surface)); box-shadow: inset 0 0 0 .5px color-mix(in srgb, var(--blue) 28%, transparent); color: var(--label); border: 0; }
.note.bad { background: color-mix(in srgb, var(--red) 10%, var(--surface)); box-shadow: inset 0 0 0 .5px color-mix(in srgb, var(--red) 28%, transparent); color: var(--label); border: 0; }
.note.good { background: color-mix(in srgb, var(--green) 10%, var(--surface)); box-shadow: inset 0 0 0 .5px color-mix(in srgb, var(--green) 28%, transparent); color: var(--label); border: 0; }
.note.warn { background: color-mix(in srgb, var(--orange) 12%, var(--surface)); color: var(--label); border: 0; }
.empty { border: 0; border-radius: 16px; background: var(--fill-2); color: var(--label-2); font-size: 14px; padding: 32px 20px; }
.empty::before { background: var(--accent); opacity: .9; }
.notes { background: var(--surface-2); border: 0; box-shadow: inset 0 0 0 .5px var(--sep); border-radius: 12px; font-size: 14px; }
.allclear { color: var(--ok); }

/* ── sheets (modals) ── */
.backdrop { background: rgba(20, 16, 10, .22); -webkit-backdrop-filter: none; backdrop-filter: none; animation: fade-in .3s var(--ease-out) both; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .backdrop { background: rgba(0, 0, 0, .5); } }
:root[data-theme="dark"] .backdrop { background: rgba(0, 0, 0, .5); }
.modal { border: 0; border-radius: 26px; padding: 24px; background: var(--glass-sheen), color-mix(in srgb, var(--bg-elev) 94%, transparent);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 0 0 .5px var(--glass-rim), inset 0 1px 0 0 var(--glass-rim), var(--sheet-shadow); animation: modal-in .6s var(--spring) both; }
.modal h2 { font: 700 21px/1.2 var(--font); letter-spacing: -.022em; }
.mhead { margin-bottom: 14px; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.96); } }
.newopt { border-radius: 14px; padding: 12px 14px; font-size: 14px; font-weight: 600; color: var(--label); transition: transform .5s var(--spring), box-shadow .3s; }
.newopt:hover { background: var(--surface); border: 0; box-shadow: var(--lift-shadow); }
.newopt:active { transform: scale(.97); }
.newopt .ni { width: 32px; height: 32px; border-radius: 9px; background: var(--accent-tint); color: var(--accent-ink); }
.savebox { border-radius: 22px; }

/* ── toasts: a glass capsule ── */
.toast { display: flex; align-items: center; gap: 9px; border: 0; border-radius: 22px; padding: 11px 18px 11px 14px; min-height: 44px; max-width: min(460px, calc(100% - 32px));
  font: 550 14px/1.35 var(--font); color: var(--label); background: var(--glass-sheen), var(--glass-strong);
  box-shadow: inset 0 0 0 .5px var(--glass-rim), inset 0 1px 0 0 var(--glass-rim), 0 0 0 .5px var(--glass-edge), var(--glass-shadow);
  animation: toast-in .7s var(--spring) both; }
.toast::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--green); flex: none; }
.toast-bad { background: var(--glass-sheen), var(--glass-strong); border: 0; }
.toast-bad::before { background: var(--red); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 40px) scale(.96); } to { transform: translate(-50%, 0); } }
@media (min-width: 761px) { .toast { left: calc(50% + var(--side) / 2); } }

/* ── home ── */
.hero { border-radius: 22px; padding: 22px 26px; }
.step { border-radius: 18px; transition: transform .5s var(--spring), box-shadow .3s; }
.step:hover { transform: translateY(-2px); box-shadow: var(--lift-shadow); border: 0; }
.step:active { transform: scale(.98); }
.stepn { background: var(--accent-tint-2); color: var(--accent-ink); font-weight: 650; }
.aitem, .agitem, .trow, .urow, .kv, .act, .minirow { border-color: var(--sep); }
.aitem, .agitem, .trow, .urow, .kv { border-bottom-width: .5px; }
.aitem { border-radius: 10px; padding: 10px 8px; margin: 0 -8px; }
.agitem { border-radius: 10px; padding: 9px 8px; margin: 0 -8px; font-size: 14px; }
.agday { font-size: 13px; font-weight: 600; color: var(--label-2); border-bottom: .5px solid var(--sep); }
.agtime { font-size: 13px; color: var(--label-2); font-variant-numeric: tabular-nums; }
.hbtrack, .hbar .track { background: var(--fill-2); height: 8px; }
.hbtrack i, .hbar .fill { background: var(--accent); }
.hbar .fill.fc { background: repeating-linear-gradient(45deg, var(--fill), var(--fill) 5px, var(--fill-2) 5px, var(--fill-2) 10px); }
.hbar .n { font-size: 13px; }
.col .bar { background: linear-gradient(180deg, var(--accent), var(--accent-ink)); }
.col.future .bar { background: repeating-linear-gradient(45deg, var(--fill), var(--fill) 4px, var(--fill-2) 4px, var(--fill-2) 8px); }
.col .cl, .col .cv { font-size: 11px; }
.skel i { background: linear-gradient(100deg, var(--fill-2) 30%, var(--fill) 50%, var(--fill-2) 70%); background-size: 200% 100%; }

/* ── properties ── */
.pgrid { gap: 16px; }
.pcard { border-radius: 20px; padding: 18px 20px; gap: 7px; transition: transform .5s var(--spring), box-shadow .3s var(--ease-out); }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--lift-shadow); border: 0; }
.pcard:active { transform: scale(.98); transition-duration: .15s; }
.pcard-top b { font-size: 16px; font-weight: 650; letter-spacing: -.015em; }
.pcard-nums { font-size: 13px; }
.pcard-nums b { font-size: 14.5px; font-weight: 650; }
.pcard-vac { background: var(--action); font-size: 11.5px; font-weight: 600; padding: 3px 10px; box-shadow: var(--action-shadow); }
.occbar { background: color-mix(in srgb, var(--red) 16%, transparent); height: 6px; }
.occbar i { background: var(--accent); }

/* ── one record ── */
.rhead { align-items: flex-end; margin: 6px 2px 18px; }
.kv > span:first-child, .kvl { font-size: 12.5px; font-weight: 600; color: var(--label-2); letter-spacing: -.005em; }
.checks { gap: 8px; }
.checkitem { background: var(--surface); border: 0; box-shadow: inset 0 0 0 .5px var(--sep-strong); border-radius: 12px; font-weight: 500; font-size: 14px; }
.checkitem.on { background: color-mix(in srgb, var(--green) 11%, var(--surface)); box-shadow: inset 0 0 0 .5px color-mix(in srgb, var(--green) 35%, transparent); color: var(--label); }
.checkitem input { accent-color: var(--green); }
.tcheck { width: 22px; height: 22px; flex-basis: 22px; border: 1.5px solid var(--label-3); background: transparent; transition: transform .5s var(--spring), border-color .2s; }
.tcheck:hover { border-color: var(--green); }
.tcheck:active { transform: scale(.88); }
.trow.done .tcheck { background: var(--green); border-color: var(--green); }
.trow.done .tt b { color: var(--label-3); }
.evdot { background: var(--accent); border-radius: 50%; width: 9px; height: 9px; flex-basis: 9px; }
.fitem a { color: var(--label); }
.act { border-top: .5px solid var(--sep); }
.act-system .actb { color: var(--label-2); }

/* ── kanban ── */
.kanban { gap: 14px; }
.kanban-col { background: var(--fill-2); border: 0; border-radius: 20px; padding: 10px; }
.kanban-col.dragover { background: var(--accent-tint); border: 0; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 55%, transparent); }
.kanban-col.nodrop.dragover { background: var(--fill-2); box-shadow: none; }
.kanban-head { font-size: 13.5px; font-weight: 650; color: var(--label); padding: 4px 6px 10px; letter-spacing: -.01em; }
.kanban-sum { font-size: 12.5px; font-weight: 600; color: var(--accent-ink); }
.kcount { background: var(--surface); color: var(--label-2); font-size: 11.5px; font-weight: 600; padding: 1px 8px; box-shadow: var(--card-shadow); }
.kanban-card { border-radius: 14px; padding: 11px 13px; font-size: 14px; transition: transform .5s var(--spring), box-shadow .3s var(--ease-out); }
.kanban-card:hover { border: 0; box-shadow: var(--lift-shadow); transform: translateY(-2px); }
.kanban-card.dragging { opacity: .6; transform: rotate(1.5deg) scale(1.03); box-shadow: var(--lift-shadow); }
.kanban-line { font-size: 13px; color: var(--label-2); }
.kanban-val { font-size: 13px; font-weight: 600; color: var(--accent-ink); }
.kanban-chip { background: var(--fill-2); color: var(--label-2); font-size: 11.5px; font-weight: 600; }
.kanban-chip.danger { background: color-mix(in srgb, var(--red) 13%, transparent); color: var(--badc); }
.kanban-empty { border: 1px dashed var(--sep-strong); border-radius: 12px; color: var(--label-3); font-size: 13px; }
.kanban-hint { color: var(--label-3); font-size: 11.5px; }
.kanban-actions { background: var(--surface); border: 0; border-radius: 10px; box-shadow: var(--lift-shadow); }
.kanban-actions button:hover { background: var(--fill-2); }

/* ── rent ── */
.monthbar b { font-size: 17px; font-weight: 650; letter-spacing: -.015em; }

/* ── month calendar ── */
.mcal { border-radius: 20px; }
.mcal-h { background: none; border-bottom: .5px solid var(--sep-strong); }
.mcal-h div { font-size: 12.5px; font-weight: 600; color: var(--label-2); padding: 10px 10px 8px; }
.mcal-d { border-right: .5px solid var(--sep); border-bottom: .5px solid var(--sep); }
.mcal-d.out { background: var(--fill-2); }
.mcal-d.out .mcal-n { color: var(--label-3); }
.mcal-n { font-size: 13px; font-weight: 600; padding: 3px 6px; }
.mcal-d.today .mcal-n { background: var(--action); color: #fff; padding: 3px 9px; }
.mcal-e { border-left-width: 3px; border-radius: 6px; font-size: 12px; padding: 2px 7px; color: var(--label); background: var(--fill-2); border-left-color: var(--gray); }
.mcal-e.tone-gold { background: color-mix(in srgb, var(--accent) 17%, transparent); border-left-color: var(--accent); }
.mcal-e.tone-bad { background: color-mix(in srgb, var(--red) 12%, transparent); border-left-color: var(--red); }
.mcal-e.tone-warn { background: color-mix(in srgb, var(--orange) 14%, transparent); border-left-color: var(--orange); }
.mcal-e.tone-good { background: color-mix(in srgb, var(--green) 13%, transparent); border-left-color: var(--green); }
.mcal-e span { font-size: 11px; color: var(--label-2); }
.mcal-more { font-size: 11.5px; color: var(--label-2); }

/* ── the contact and company record ── */
.pr { min-height: calc(100vh - var(--top-h)); gap: 0 18px; padding: 0 24px 0 24px; grid-template-columns: 300px minmax(0, 1fr) 320px; }
.pr-left, .pr-right { background: none; border: 0; top: var(--top-h); max-height: calc(100vh - var(--top-h)); scrollbar-width: none; }
.pr-left { padding: 6px 2px 40px; }
.pr-right { padding: 6px 2px 30px; display: flex; flex-direction: column; gap: 12px; }
.pr-left::-webkit-scrollbar, .pr-right::-webkit-scrollbar { display: none; }
.pr-back { font-size: 14px; font-weight: 500; color: var(--accent-ink); }
.pr-avatar { background: linear-gradient(135deg, #cdb67d, #8a6d2f); color: #fff; font-weight: 650; font-size: 20px; width: 64px; height: 64px; box-shadow: 0 0 0 .5px var(--sep-strong), 0 6px 16px -6px rgba(138, 109, 47, .55); }
.pr-avatar.sq { border-radius: 18px; }
.pr-name { font: 700 24px/1.15 var(--font); letter-spacing: -.024em; }
.pr-sub { font-size: 14px; color: var(--label-2); }
.pr-mail { font-size: 14px; }
.pr-acts { gap: 8px; }
.pr-tile { background: var(--surface); border: 0; border-radius: 14px; box-shadow: var(--card-shadow); padding: 11px 2px 9px; font-size: 11.5px; font-weight: 600; color: var(--label);
  transition: transform .5s var(--spring), box-shadow .3s; }
.pr-tile .ico { width: 18px; height: 18px; color: var(--accent-ink); }
.pr-tile:hover { background: var(--surface); border: 0; box-shadow: var(--lift-shadow); }
.pr-tile:active { transform: scale(.94); }
.pr-tile.off:hover { background: var(--surface); box-shadow: var(--card-shadow); }
.pr-card { background: var(--surface); border: 0; border-radius: 18px; box-shadow: var(--card-shadow); }
.pr-card-h { background: none; border-bottom: .5px solid var(--sep); padding: 12px 14px; font-weight: 650; }
.pr-kv > div { border-bottom: .5px solid var(--sep); padding: 9px 14px; font-size: 13.5px; grid-template-columns: 104px minmax(0, 1fr); }
.pr-kv > div > span:first-child { font-size: 12.5px; font-weight: 600; color: var(--label-2); letter-spacing: -.005em; padding-top: 1px; }
.pr-main { padding: 0 0 40px; }
.pr-tabs { display: inline-flex; max-width: 100%; margin: 4px 0 16px; padding: 2px; gap: 2px; border: 0; border-radius: 999px; background: var(--fill-2); top: calc(var(--top-h) + 4px); scrollbar-width: none;
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.pr-tabs::-webkit-scrollbar { display: none; }
.pr-tabs a { height: 30px; padding: 0 13px; border: 0; border-radius: 999px; display: inline-flex; align-items: center; color: var(--label); font-size: 13px; font-weight: 510; transition: transform .5s var(--spring); }
.pr-tabs a:active { transform: scale(.96); }
.pr-tabs a.on { background: var(--bg-elev); font-weight: 600; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .04), 0 3px 8px rgba(0, 0, 0, .12), 0 1px 1px rgba(0, 0, 0, .04); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pr-tabs a.on { background: #5c5955; box-shadow: none; } }
:root[data-theme="dark"] .pr-tabs a.on { background: #5c5955; box-shadow: none; }
.tabn { background: var(--fill); color: var(--label-2); font-size: 11px; font-weight: 600; }
.rc { background: var(--surface); border: 0; border-radius: 18px; box-shadow: var(--card-shadow); overflow: hidden; }
.rc header { padding: 12px 12px 12px 16px; background: none; border: 0; }
.rc-t { font-size: 15px; font-weight: 650; letter-spacing: -.015em; color: var(--label); }
.rc-t::before { border-top-color: var(--label-3); }
.rc-b { padding: 0 16px 16px; gap: 7px; }
.rc-big { font-size: 15px; font-weight: 650; }
.rc-line { font-size: 13.5px; }
.rc-sec { font-size: 12.5px; font-weight: 600; color: var(--label-2); }
.rc-person { font-size: 14px; }
.rc-person:hover { color: var(--accent-ink); }
.rc-deal { background: var(--surface-2); border: 0; box-shadow: inset 0 0 0 .5px var(--sep); border-radius: 12px; font-size: 13px; transition: transform .5s var(--spring), box-shadow .3s; }
.rc-deal:hover { border: 0; box-shadow: inset 0 0 0 .5px var(--sep), var(--lift-shadow); }
.rc-deal-v { font-weight: 700; font-size: 16px; font-family: var(--rounded); }
.mini-av { background: var(--accent-tint-2); color: var(--accent-ink); font-weight: 650; font-size: 11px; }

/* the timeline */
.tl-chips { gap: 6px; }
.tl-item { border-top: .5px solid var(--sep); padding: 12px 6px; border-radius: 10px; }
.tl-item[data-go]:hover { background: var(--fill-2); }
.tl-ic { width: 30px; height: 30px; flex-basis: 30px; border-radius: 50%; background: var(--accent-tint); color: var(--accent-ink); }
.tl-email .tl-ic { background: color-mix(in srgb, var(--blue) 14%, transparent); color: var(--blue); }
.tl-text .tl-ic { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); }
.tl-call .tl-ic { background: color-mix(in srgb, var(--orange) 15%, transparent); color: var(--orange); }
.tl-update .tl-ic { background: var(--fill-2); color: var(--label-2); }
.tl-top b { font-size: 14px; }
.tl-when { font-size: 12.5px; color: var(--label-2b); font-variant-numeric: tabular-nums; }
.tl-sub { font-size: 13.5px; color: var(--label-2); }
.tl-update .tl-top b { color: var(--label-2); }

/* message bubbles */
.bub { border-radius: 18px; font-size: 14.5px; padding: 9px 14px; }
.bub-wrap.in .bub { background: var(--fill); color: var(--label); border-bottom-left-radius: 6px; }
.bub-wrap.out .bub { background: var(--bub-out); color: var(--on-bub-out); border-bottom-right-radius: 6px; }
.bub.email { border-radius: 14px; }
.bub-wrap.in .bub.email { background: var(--surface); color: var(--label); border: 0; box-shadow: var(--card-shadow), inset 0 0 0 .5px var(--sep); }
.bub-wrap.out .bub.email { background: color-mix(in srgb, var(--accent) 20%, var(--surface)); color: var(--label); box-shadow: inset 0 0 0 .5px color-mix(in srgb, var(--accent) 40%, transparent); }
.bub-subj { border-bottom: .5px solid var(--sep-strong); font-weight: 650; }
.bub-meta { font-size: 11.5px; color: var(--label-2b); }
.bub-call { background: var(--fill-2); border: 0; color: var(--label-2); font-size: 12.5px; font-weight: 500; }

/* the floating composer */
#docks { right: 24px; }
.dock { border: 0; border-radius: 20px 20px 0 0; background: var(--glass-sheen), color-mix(in srgb, var(--bg-elev) 96%, transparent);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 0 0 .5px var(--glass-rim), inset 0 1px 0 0 var(--glass-rim), var(--sheet-shadow); }
.dock-h { background: none; color: var(--label); border-radius: 20px 20px 0 0; border-bottom: .5px solid var(--sep); padding: 11px 10px 11px 16px; font-size: 14px; font-weight: 650; }
.dock-h .ico { color: var(--accent-ink); }
.dock-h .iconbtn { color: var(--label-2); }
.dock-h .iconbtn:hover { background: var(--fill); color: var(--label); }
.dock-note { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); border: 0; box-shadow: inset 0 0 0 .5px color-mix(in srgb, var(--accent) 40%, transparent); color: var(--label); border-radius: 12px; font-size: 13px; }
.dock-note a { color: var(--accent-ink); }
.dock-row { border-bottom: .5px solid var(--sep); }
.dock-row label { font-size: 13px; font-weight: 500; color: var(--label-2); }
.dock-row input, .dock-row select, .dock-b textarea { background: none; min-height: 0; border-radius: 0; }
.dock-b textarea { font-size: 15px; }
.dock-foot { border-top: .5px solid var(--sep); }
.dock-foot select { min-height: 32px; padding: 4px 30px 4px 10px; }

/* conversations */
.cv .panel { padding: 0; }
.cv-filters { border-bottom: .5px solid var(--sep); }
.cv-item { border-bottom: .5px solid var(--sep); padding: 12px 14px 12px 18px; }
.cv-item:hover { background: var(--fill-2); }
.cv-item.on { background: var(--accent-tint); box-shadow: none; }
.cv-item.unread::before { background: var(--action); left: 6px; top: 19px; width: 7px; height: 7px; }
.cv-when { font-size: 12px; color: var(--label-2b); }
.cv-snip { font-size: 13.5px; }
.cv-new { background: var(--action); font-size: 11px; font-weight: 600; }
.cv-h { border-bottom: .5px solid var(--sep); padding: 14px 18px; }
.cv-day { font-size: 12px; font-weight: 600; color: var(--label-2b); }
.cv-reply { border-top: .5px solid var(--sep); }
.searchbar input { border-radius: 999px; padding-left: 36px; background: var(--fill-2); box-shadow: none; }
.searchbar input:focus { background: var(--surface); }

/* prints: the drawing stays on white paper in either mode */
.prints { gap: 16px; }
.print { border-radius: 18px; transition: transform .5s var(--spring), box-shadow .3s var(--ease-out); }
.print:hover { transform: translateY(-3px); box-shadow: var(--lift-shadow); border: 0; }
.print:active { transform: scale(.98); }
.print-th { background: var(--paper); border-bottom: .5px solid var(--sep); }
.print-l { padding: 11px 13px; font-size: 14px; }
.print-l .dim { font-size: 12.5px; }
.print-view { background: var(--paper); border: 0; border-radius: 14px; box-shadow: inset 0 0 0 .5px var(--sep-strong); }

/* connections */
.conn { border-radius: 18px; padding: 16px 18px; }
.conn.on { background: color-mix(in srgb, var(--green) 8%, var(--surface)); box-shadow: var(--card-shadow), inset 0 0 0 .5px color-mix(in srgb, var(--green) 35%, transparent); }
.conn p { font-size: 13.5px; }

/* ── sign in ── */
.login-body { background: var(--bg); }
.login-card { border: 0; border-radius: 28px; padding: 32px 30px 28px; background: var(--surface); box-shadow: var(--sheet-shadow); }
.login-logo { width: 190px; margin-bottom: 10px; }
.login-name { font: 700 21px/1.2 var(--font); letter-spacing: -.022em; color: var(--label); }
.login-tag { font-size: 14px; font-weight: 500; color: var(--label-2); margin: 4px 0 22px; }
.login-go { height: 46px; font-size: 16px; margin-top: 8px; }
.login-foot { font-size: 13px; color: var(--label-2b); }
.login-form .note { margin-bottom: 14px; }
.skel-page { color: var(--label-3); }

/* ── phones ── */
@media (max-width: 760px) {
  .sidenav { left: 0; top: 0; bottom: 0; width: min(304px, 86vw); border-radius: 0 22px 22px 0; transform: translateX(-104%); visibility: hidden; padding-top: max(10px, env(safe-area-inset-top, 0px));
    background: var(--glass-sheen), var(--glass-strong); transition: transform .5s var(--spring-soft), visibility 0s .5s; }
  body.nav-open .sidenav { transform: none; visibility: visible; transition: transform .5s var(--spring-soft), visibility 0s; box-shadow: inset 0 0 0 .5px var(--glass-rim), var(--glass-shadow); }
  .sidenav-backdrop { background: rgba(20, 16, 10, .28); }
  .sn-x { display: inline-grid; place-items: center; margin-left: auto; width: 30px; height: 30px; border-radius: 50%; background: var(--fill-2); color: var(--label-2); font-size: 19px; }
  .appmain { margin-left: 0; }
  .topbar { height: auto; min-height: calc(52px + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) 16px 8px; }
  .m-brand img { height: 30px; }
  header .gsearch { margin-top: 2px; }
  main { padding: 0 16px calc(112px + env(safe-area-inset-bottom)); }
  .samplebar { margin: 0 16px 6px; }
  h1 { font-size: 30px; }
  .bottombar { left: max(14px, env(safe-area-inset-left, 0px)); right: max(14px, env(safe-area-inset-right, 0px)); bottom: max(14px, env(safe-area-inset-bottom, 0px)); height: 62px; padding: 4px; border: 0; border-radius: 999px; align-items: center;
    background: var(--glass-sheen), var(--glass);
    box-shadow: inset 0 0 0 .5px var(--glass-rim), inset 0 1px 0 0 var(--glass-rim), 0 0 0 .5px var(--glass-edge), var(--glass-shadow); }
  .bb-item { height: 54px; min-height: 0; border-radius: 999px; color: var(--label); font-size: 10px; font-weight: 600; letter-spacing: 0; padding: 0 2px;
    transition: transform .5s var(--spring), background-color .25s, color .2s; }
  .bb-item:active { transform: scale(.92); }
  .bb-item.active { color: var(--accent-ink); background: var(--fill-2); }
  .bb-ic::before { width: 23px; height: 23px; }
  .toast { left: 50%; bottom: auto; top: calc(10px + env(safe-area-inset-top, 0px)); }
  .pr { padding: 0 16px; gap: 14px; }
  .pr-tabs { position: static; }
  .pr-left, .pr-main { padding-bottom: 0; }
  .appmain > header::before { inset: 0 0 -14px 0; background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-mask: linear-gradient(#000 80%, transparent); mask: linear-gradient(#000 80%, transparent); }
  .rhead, .pagehead { margin-top: 2px; }
}
@media (max-width: 640px) {
  .modal { border-radius: 28px 28px 0 0; padding: 22px max(20px, env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
    background: var(--glass-sheen), color-mix(in srgb, var(--bg-elev) 98%, transparent); animation: sheet-in .55s var(--spring-soft) both; }
  .modal::before { content: ""; display: block; width: 36px; height: 5px; border-radius: 3px; background: var(--sep-strong); margin: -8px auto 12px; }
  @keyframes sheet-in { from { opacity: 0; transform: scale(.96); } }
  .btn { min-height: 40px; height: 40px; }
  .btn-sm { min-height: 34px; height: 34px; }
  input, select, textarea { font-size: 16px; min-height: 44px; }
}
@media (max-width: 1180px) {
  .pr { grid-template-columns: 280px minmax(0, 1fr); }
  .pr-right { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); border-top: 0; position: static; max-height: none; overflow: visible; }
}
@media (max-width: 760px) {
  .pr { grid-template-columns: minmax(0, 1fr); }
  .pr-left, .pr-right { position: static; max-height: none; overflow: visible; }
  .pr-right { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .sn-item, .pcard, .print, .stat, .kanban-card, .pr-tile, .tb-circle, .chip, .stg, .pillbtn, .pr-tabs a, .bb-item, .modal, .toast { transition: none !important; animation: none !important; }
}

/* sign-in page: Microsoft button, the second step and two-step setup */
.login-ms { display: block; width: 100%; margin-top: 10px; text-align: center; }
.login-hint { font-size: 14px; color: var(--label-2); margin: 0 0 12px; }
.login-hint.small { font-size: 12.5px; }
.login-qr { display: block; margin: 0 auto 10px; border-radius: 12px; background: #fff; padding: 6px; }
.login-back { display: block; text-align: center; margin-top: 12px; font-size: 13px; }
