/* GoggleCRM v3 - "Temperature" theme
   Pastel temperature scale (hot peach, warm butter, cooling sky, cold ice) on a soft lilac base,
   with one sharp violet accent for actions. Typeface: Plus Jakarta Sans (self-hosted, OFL). */

@font-face {
  font-family: "Jakarta";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jakarta";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #1d1b2e;
  --ink-2: #4a4763;
  --muted: #7c7896;
  --line: #e9e6f5;
  --bg: #f6f5fc;
  --surface: #ffffff;
  --violet: #5b45e0;
  --violet-dark: #4532c4;
  --violet-tint: #eeebfe;
  --violet-tint-2: #e2dcfd;

  /* temperature scale */
  --hot-bg: #ffe6dc;   --hot-ink: #b8461f;   --hot-dot: #ff7a4d;
  --warm-bg: #fff2cc;  --warm-ink: #8a6200;  --warm-dot: #f5b700;
  --cool-bg: #dff0fd;  --cool-ink: #22679c;  --cool-dot: #4aa3e8;
  --cold-bg: #e4e9fb;  --cold-ink: #3c4f99;  --cold-dot: #7f93e6;
  --mint-bg: #dcf6ea;  --mint-ink: #1b7350;  --mint-dot: #2fbf83;

  --radius-lg: 18px;
  --radius: 12px;
  --radius-sm: 9px;

  --bs-body-font-family: "Jakarta", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--bg);
  --bs-border-color: var(--line);
  --bs-secondary-color: var(--muted);
  --bs-primary: var(--violet);
  --bs-primary-rgb: 91, 69, 224;
  --bs-link-color: var(--violet);
  --bs-link-color-rgb: 91, 69, 224;
  --bs-link-hover-color: var(--violet-dark);
  --bs-link-hover-color-rgb: 69, 50, 196;
  --bs-border-radius: var(--radius-sm);
  --bs-focus-ring-color: rgba(91, 69, 224, .25);
}

body { font-family: var(--bs-body-font-family); font-size: .9375rem; letter-spacing: -.005em; -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 0; }
h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5 { font-weight: 700; letter-spacing: -.022em; color: var(--ink); }
h1, .h3 { font-size: 1.6rem; }
.text-muted { color: var(--muted) !important; }
a { text-underline-offset: 3px; }
a:not(.btn):not(.side-link):not(.dropdown-item):not(.brand):not(.nav-link):not(.page-link) { text-decoration: none; }
a:not(.btn):hover { text-decoration: underline; }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }

/* ---------- Shell ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar { width: 252px; flex: 0 0 252px; background: var(--surface); border-right: 1px solid var(--line); }
@media (min-width: 992px) {
  .sidebar { position: sticky; top: 0; height: 100vh; }
}
.sidebar-inner { display: flex; flex-direction: column; height: 100%; padding: 22px 16px 18px; overflow-y: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.12rem; letter-spacing: -.03em; color: var(--ink); text-decoration: none; }
.brand:hover { text-decoration: none !important; color: var(--ink); }
.brand-mark { width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: #fff;
  background: conic-gradient(from 210deg, var(--cold-dot), var(--cool-dot), var(--warm-dot), var(--hot-dot), var(--cold-dot)); font-size: 1rem; }
.brand-lg { font-size: 1.35rem; }
.side-tenant { margin: 6px 0 22px 42px; font-size: .8rem; color: var(--muted); }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-group { margin: 18px 12px 6px; font-size: .75rem; font-weight: 600; color: var(--muted); }
.side-link { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 500; text-decoration: none; }
.side-link i { font-size: 1.05rem; width: 20px; text-align: center; color: var(--muted); }
.side-link:hover { background: var(--bg); color: var(--ink); text-decoration: none; }
.side-link.active { background: var(--violet-tint); color: var(--violet-dark); font-weight: 650; }
.side-link.active i { color: var(--violet); }
.side-status { margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.status-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--bg); font-size: .8rem; color: var(--ink-2); text-decoration: none; overflow-wrap: anywhere; }
a.status-row:hover { text-decoration: none; background: var(--violet-tint); }
.status-row i { color: var(--violet); margin-top: 1px; }
.status-row small { display: block; color: var(--muted); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 1010; display: flex; align-items: center; gap: 12px; padding: 12px 32px; background: rgba(246, 245, 252, .86); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.topbar-search { position: relative; flex: 1; max-width: 440px; }
.topbar-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.topbar-search input { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 9px 16px 9px 40px; font: inherit; color: var(--ink); }
.topbar-search input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px var(--violet-tint); }
.user-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 4px 6px; border-radius: 999px; color: var(--ink); font-weight: 600; }
.user-btn:hover { background: var(--surface); }
.btn-icon { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; width: 38px; height: 38px; padding: 0; }
.content { padding: 12px 32px 48px; max-width: 1320px; width: 100%; }
@media (max-width: 575.98px) {
  .topbar { padding: 10px 16px; }
  .content { padding: 8px 16px 40px; }
}

/* ---------- Page header ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 10px 0 22px; }
.page-head h1 { margin: 0; }
.page-sub { color: var(--muted); margin-top: 4px; }
.breadcrumb { --bs-breadcrumb-divider-color: var(--muted); font-size: .82rem; margin-bottom: 6px; }
.breadcrumb a { color: var(--muted); }

/* ---------- Buttons & forms ---------- */
.btn { --bs-btn-font-weight: 600; --bs-btn-border-radius: 10px; --bs-btn-padding-x: .95rem; --bs-btn-padding-y: .5rem; letter-spacing: -.01em; }
.btn-sm { --bs-btn-border-radius: 9px; --bs-btn-padding-x: .7rem; --bs-btn-padding-y: .32rem; --bs-btn-font-size: .82rem; }
.btn-primary { --bs-btn-bg: var(--violet); --bs-btn-border-color: var(--violet); --bs-btn-hover-bg: var(--violet-dark); --bs-btn-hover-border-color: var(--violet-dark);
  --bs-btn-active-bg: var(--violet-dark); --bs-btn-active-border-color: var(--violet-dark); --bs-btn-disabled-bg: var(--violet); --bs-btn-disabled-border-color: var(--violet);
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 6px 14px -8px rgba(91,69,224,.7); }
.btn-outline-primary { --bs-btn-color: var(--violet); --bs-btn-border-color: var(--violet-tint-2); --bs-btn-bg: var(--violet-tint); --bs-btn-hover-bg: var(--violet-tint-2);
  --bs-btn-hover-color: var(--violet-dark); --bs-btn-hover-border-color: var(--violet-tint-2); --bs-btn-active-bg: var(--violet-tint-2); --bs-btn-active-color: var(--violet-dark); --bs-btn-active-border-color: var(--violet-tint-2); }
.btn-outline-secondary { --bs-btn-color: var(--ink-2); --bs-btn-border-color: var(--line); --bs-btn-bg: var(--surface); --bs-btn-hover-bg: var(--bg); --bs-btn-hover-color: var(--ink);
  --bs-btn-hover-border-color: #d9d5ea; --bs-btn-active-bg: var(--bg); --bs-btn-active-color: var(--ink); --bs-btn-active-border-color: #d9d5ea; }
.btn-success { --bs-btn-bg: var(--mint-bg); --bs-btn-color: var(--mint-ink); --bs-btn-border-color: var(--mint-bg); --bs-btn-hover-bg: #c8efdd; --bs-btn-hover-color: var(--mint-ink);
  --bs-btn-hover-border-color: #c8efdd; --bs-btn-active-bg: #c8efdd; --bs-btn-active-color: var(--mint-ink); }
.btn-outline-success { --bs-btn-color: var(--mint-ink); --bs-btn-border-color: var(--mint-bg); --bs-btn-hover-bg: var(--mint-bg); --bs-btn-hover-color: var(--mint-ink); --bs-btn-hover-border-color: var(--mint-bg); }
.btn-outline-danger { --bs-btn-color: var(--hot-ink); --bs-btn-border-color: var(--line); --bs-btn-bg: var(--surface); --bs-btn-hover-bg: var(--hot-bg); --bs-btn-hover-color: var(--hot-ink); --bs-btn-hover-border-color: var(--hot-bg); }
.form-control, .form-select { border-color: var(--line); border-radius: 10px; padding: .55rem .8rem; color: var(--ink); }
.form-control-sm, .form-select-sm { border-radius: 9px; padding: .35rem .65rem; }
.form-control:focus, .form-select:focus { border-color: var(--violet); box-shadow: 0 0 0 4px var(--violet-tint); }
.form-label { font-weight: 600; font-size: .85rem; color: var(--ink-2); margin-bottom: .35rem; }
.form-text { color: var(--muted); }
.form-check-input:checked { background-color: var(--violet); border-color: var(--violet); }
.form-check-input:focus { box-shadow: 0 0 0 4px var(--violet-tint); border-color: var(--violet); }
.btn-check:checked + .btn-outline-primary { background: var(--violet); color: #fff; border-color: var(--violet); }

/* ---------- Surfaces ---------- */
.card { --bs-card-border-color: var(--line); --bs-card-border-radius: var(--radius-lg); --bs-card-inner-border-radius: calc(var(--radius-lg) - 1px); --bs-card-cap-bg: transparent; box-shadow: 0 1px 2px rgba(29,27,46,.03); }
.card-header { padding: 16px 20px 12px; border-bottom: 0; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.card-header strong { font-weight: 700; }
.card-body { padding: 18px 20px; }
.card > .list-group-flush > .list-group-item { padding: 14px 20px; border-color: #f1eff8; }
.card > .list-group-flush > .list-group-item:first-child { border-top: 1px solid #f1eff8; }
.list-group-item { color: var(--ink); }
.panel-title { font-size: 1rem; font-weight: 700; margin: 0 0 14px; }
.panel-note { font-size: .82rem; color: var(--muted); }

.alert { border: 0; border-radius: var(--radius); font-weight: 500; }
.alert-success { background: var(--mint-bg); color: var(--mint-ink); }
.alert-danger { background: var(--hot-bg); color: var(--hot-ink); }
.alert-warning { background: var(--warm-bg); color: var(--warm-ink); }
.alert-info { background: var(--cool-bg); color: var(--cool-ink); }
.alert-light { background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); }

.table { --bs-table-color: var(--ink); --bs-table-hover-bg: #faf9ff; --bs-table-border-color: #f1eff8; margin: 0; }
.table > thead th { font-size: .78rem; font-weight: 600; color: var(--muted); background: transparent !important; border-bottom: 1px solid var(--line); padding: 12px 16px; white-space: nowrap; }
.table > tbody td { padding: 12px 16px; }
.table-light { --bs-table-bg: transparent; }
.js-rowlink { cursor: pointer; }

.dropdown-menu { --bs-dropdown-border-color: var(--line); --bs-dropdown-border-radius: 14px; --bs-dropdown-link-active-bg: var(--violet-tint); --bs-dropdown-link-active-color: var(--violet-dark);
  box-shadow: 0 16px 40px -12px rgba(29,27,46,.18); padding: 6px; }
.dropdown-item { border-radius: 9px; padding: 8px 12px; }
.modal-content { border: 0; border-radius: 20px; box-shadow: 0 30px 60px -20px rgba(29,27,46,.35); }
.modal-header, .modal-footer { border-color: var(--line); padding: 16px 22px; }
.modal-body { padding: 20px 22px; }
.nav-tabs { --bs-nav-tabs-border-color: var(--line); gap: 4px; }
.nav-tabs .nav-link { border: 0; color: var(--muted); font-weight: 600; padding: 10px 14px; border-bottom: 2px solid transparent; }
.nav-tabs .nav-link.active { color: var(--violet-dark); background: transparent; border-bottom-color: var(--violet); }
.nav-pills { --bs-nav-pills-link-active-bg: var(--violet-tint); --bs-nav-pills-link-active-color: var(--violet-dark); gap: 4px; }
.nav-pills .nav-link { color: var(--ink-2); font-weight: 600; border-radius: 999px; padding: 6px 14px !important; }
.pagination { --bs-pagination-border-color: var(--line); --bs-pagination-color: var(--ink-2); --bs-pagination-border-radius: 10px; --bs-pagination-hover-bg: var(--violet-tint); }
.placeholder { background-color: var(--violet-tint-2); border-radius: 4px; }
.badge { font-weight: 600; border-radius: 999px; padding: .32em .7em; }
.text-bg-danger { background: var(--hot-bg) !important; color: var(--hot-ink) !important; }
.text-bg-warning { background: var(--warm-bg) !important; color: var(--warm-ink) !important; }
.text-bg-info { background: var(--cold-bg) !important; color: var(--cold-ink) !important; }
.text-bg-primary { background: var(--violet-tint) !important; color: var(--violet-dark) !important; }
.text-bg-success { background: var(--mint-bg) !important; color: var(--mint-ink) !important; }
.text-bg-light { background: var(--bg) !important; color: var(--ink-2) !important; }

/* ---------- Avatars & temperature ---------- */
.avatar { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .82rem; letter-spacing: 0; }
.avatar-sm { width: 30px; height: 30px; border-radius: 50%; font-size: .72rem; }
.avatar-lg { width: 64px; height: 64px; border-radius: 20px; font-size: 1.3rem; }
.av-1 { background: var(--hot-bg); color: var(--hot-ink); }
.av-2 { background: var(--warm-bg); color: var(--warm-ink); }
.av-3 { background: var(--cool-bg); color: var(--cool-ink); }
.av-4 { background: var(--mint-bg); color: var(--mint-ink); }
.av-5 { background: var(--violet-tint); color: var(--violet-dark); }
.av-6 { background: #fbe3f1; color: #9b2d6c; }

.temp { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: .76rem; font-weight: 650; white-space: nowrap; }
.temp-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.temp-hot  { background: var(--hot-bg);  color: var(--hot-ink); }  .temp-hot .temp-dot  { background: var(--hot-dot); box-shadow: 0 0 0 3px rgba(255,122,77,.22); }
.temp-warm { background: var(--warm-bg); color: var(--warm-ink); } .temp-warm .temp-dot { background: var(--warm-dot); }
.temp-cool { background: var(--cool-bg); color: var(--cool-ink); } .temp-cool .temp-dot { background: var(--cool-dot); }
.temp-cold { background: var(--cold-bg); color: var(--cold-ink); } .temp-cold .temp-dot { background: var(--cold-dot); }
.temp-none { background: var(--bg); color: var(--muted); }         .temp-none .temp-dot { background: #c9c5dc; }

.score-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 2.4rem; padding: .15rem .5rem; border-radius: 999px; background: var(--violet-tint); color: var(--violet-dark); font-weight: 700; font-size: .78rem; font-variant-numeric: tabular-nums; }

.badge.status-active { background: var(--mint-bg); color: var(--mint-ink); }
.badge.status-on_hold { background: var(--warm-bg); color: var(--warm-ink); }
.badge.status-closed { background: var(--bg); color: var(--muted); }
.badge[class*="status-"] { text-transform: capitalize; }

/* ---------- People rows ---------- */
.person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.person-name { font-weight: 650; color: var(--ink); }
.person-name:hover { color: var(--violet); }
.person-meta { font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.row-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* ---------- Today ---------- */
.today-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 14px 0 22px; }
.today-head h1 { font-size: 2rem; margin: 0; }
.today-date { color: var(--muted); font-weight: 500; margin-bottom: 4px; }
.queue-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 26px; }
@media (max-width: 767.98px) { .queue-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.queue-chip { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; text-decoration: none; color: var(--ink); border: 1px solid transparent; }
.queue-chip:hover { text-decoration: none !important; filter: saturate(1.15); }
.queue-chip .qc-count { font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; min-width: 1.6ch; }
.queue-chip .qc-label { font-size: .84rem; font-weight: 600; line-height: 1.25; }
.queue-chip.is-empty { background: var(--surface) !important; border-color: var(--line); color: var(--muted); }
.qc-promise { background: var(--hot-bg); color: var(--hot-ink); }
.qc-waiting { background: var(--warm-bg); color: var(--warm-ink); }
.qc-cold { background: var(--cold-bg); color: var(--cold-ink); }
.qc-follow { background: var(--violet-tint); color: var(--violet-dark); }

.queue { margin-bottom: 26px; }
.queue-title { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 1.02rem; font-weight: 700; }
.queue-icon { width: 30px; height: 30px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: .95rem; }
.qi-promise { background: var(--hot-bg); color: var(--hot-ink); }
.qi-waiting { background: var(--warm-bg); color: var(--warm-ink); }
.qi-cold { background: var(--cold-bg); color: var(--cold-ink); }
.qi-follow { background: var(--violet-tint); color: var(--violet-dark); }
.queue-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.queue-item { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 18px; border-top: 1px solid #f1eff8; }
.queue-item:first-child { border-top: 0; }
.queue-item .qi-body { flex: 1 1 260px; min-width: 0; }
.queue-item .qi-text { font-weight: 600; }
.queue-item .qi-sub { font-size: .82rem; color: var(--muted); margin-top: 2px; }
.queue-item .qi-sub a { color: var(--ink-2); font-weight: 600; }
.overdue { color: var(--hot-ink); font-weight: 600; }
.all-clear { text-align: center; padding: 48px 20px; background: var(--surface); border: 1px dashed #dcd7ee; border-radius: var(--radius-lg); color: var(--muted); }
.all-clear .temp { margin-bottom: 10px; }

.prompt-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 14px; }
.prompt-bar .pb-text { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.prompt-bar .pb-icon { width: 34px; height: 34px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: var(--violet-tint); color: var(--violet); }

.rank-list { list-style: none; margin: 0; padding: 4px 0; }
.rank-list li { display: flex; align-items: center; gap: 12px; padding: 10px 20px; }

/* ---------- Contact / profile ---------- */
.profile-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 4px 0 24px; }
.profile-id { display: flex; align-items: center; gap: 16px; min-width: 0; }
.profile-id h1 { margin: 0 0 4px; }
.profile-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--muted); font-size: .88rem; }
.summary-card { background: linear-gradient(160deg, var(--violet-tint) 0%, #fff 70%); border-color: var(--violet-tint-2); }
.summary-card .card-body { white-space: pre-line; line-height: 1.6; }
.summary-card .card-footer { background: transparent; border-top: 0; padding: 0 20px 16px; }
.facts { display: grid; grid-template-columns: 112px 1fr; gap: 8px 12px; margin: 0; font-size: .875rem; }
.facts dt { color: var(--muted); font-weight: 500; }
.facts dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin: 0; }
.timeline-item { position: relative; display: flex; gap: 14px; padding-bottom: 20px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: 17px; top: 38px; bottom: 4px; width: 2px; background: #efedf7; border-radius: 2px; }
.timeline-item:last-child::before { display: none; }
.timeline-dot { flex: 0 0 36px; height: 36px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--violet-tint); color: var(--violet); z-index: 1; }
.timeline-body { flex: 1; min-width: 0; padding-top: 2px; overflow-wrap: anywhere; }
.timeline-body .fw-semibold { font-weight: 650 !important; }
.timeline-item.is-out .timeline-dot { background: var(--violet-tint); color: var(--violet); }
.timeline-item.is-in .timeline-dot, .timeline-item.kind-email .timeline-dot { background: var(--mint-bg); color: var(--mint-ink); }
.timeline-item.kind-update .timeline-dot { background: var(--cool-bg); color: var(--cool-ink); }
.timeline-item.kind-note .timeline-dot { background: var(--warm-bg); color: var(--warm-ink); }
.timeline-item.kind-file .timeline-dot { background: #fbe3f1; color: #9b2d6c; }
.file-chip { display: inline-flex; gap: 6px; align-items: center; padding: 5px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font-weight: 600; font-size: .85rem; }
.composer { padding: 16px; }
.composer textarea { border: 0; background: var(--bg); border-radius: 12px; resize: vertical; }
.composer textarea:focus { background: #fff; }

/* ---------- Misc ---------- */
.pre-line { white-space: pre-line; }
.w-35 { width: 35%; }
.text-truncate-200 { max-width: 220px; overflow: hidden; }
.empty-cell { text-align: center; color: var(--muted); padding: 40px 16px !important; }

/* ---------- Guest pages ---------- */
.guest-body { background: var(--bg); }
.guest-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.guest-side { padding: 44px 56px; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(circle at 18% 22%, var(--hot-bg) 0, transparent 42%), radial-gradient(circle at 82% 30%, var(--warm-bg) 0, transparent 40%),
              radial-gradient(circle at 25% 85%, var(--cool-bg) 0, transparent 45%), radial-gradient(circle at 85% 88%, var(--cold-bg) 0, transparent 40%), #fbfaff; }
.guest-pitch { max-width: 440px; }
.guest-headline { font-size: 2.6rem; line-height: 1.08; font-weight: 800; letter-spacing: -.04em; margin-bottom: 28px; }
.guest-temps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; color: var(--ink-2); font-weight: 500; }
.guest-temps .temp { min-width: 92px; margin-right: 10px; }
.guest-main { display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.guest-card { width: 100%; max-width: 400px; }
.guest-card h1 { font-size: 1.6rem !important; margin-bottom: 18px !important; }
@media (max-width: 991.98px) {
  .guest-split { grid-template-columns: 1fr; }
  .guest-side { display: none; }
}
.min-w-0 { min-width: 0; }
.queue-item .qi-text a { color: var(--ink); }
.queue-item .qi-text a:hover { color: var(--violet); }

/* ---------- Billing ---------- */
.trial-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; margin-bottom: 16px; border-radius: 14px; background: var(--warm-bg); color: var(--warm-ink); font-weight: 600; }
.check-list li { display: flex; gap: 10px; padding: 6px 0; }
.check-list i { color: var(--mint-ink); font-size: 1.1rem; }

/* ---------- Workflows ---------- */
.stage-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 18px 12px; margin-bottom: 16px; }
.stage-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.stage-num { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; background: var(--violet); color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; }
.stage-title { font-size: 1.05rem; margin: 0; }
.stage-name-form { flex: 1 1 200px; min-width: 0; }
.stage-name-input { width: 100%; border: 1px solid transparent; background: transparent; font: inherit; font-weight: 700; font-size: 1.05rem; color: var(--ink); padding: 4px 8px; border-radius: 8px; }
.stage-name-input:hover { border-color: var(--line); }
.stage-name-input:focus { outline: none; border-color: var(--violet); background: #fff; box-shadow: 0 0 0 4px var(--violet-tint); }
.step-list { list-style: none; padding: 0; margin: 0 0 6px; }
.step-item { border-top: 1px solid #f1eff8; }
.step-item:first-child { border-top: 0; }
.step-row { display: flex; gap: 12px; align-items: center; padding: 10px 2px; }
.step-dot { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 9px; background: var(--violet-tint); color: var(--violet-dark); font-weight: 700; font-size: .78rem; display: inline-flex; align-items: center; justify-content: center; }
.step-edit { background: var(--bg); border-radius: 12px; padding: 14px; margin: 4px 0 10px; }
.add-stage { display: flex; gap: 8px; padding: 14px; border: 1px dashed #d6d1ea; border-radius: var(--radius-lg); background: rgba(255,255,255,.5); }
.bulk-bar { display: none; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 12px; border-radius: 14px; background: var(--violet-tint); }
.bulk-bar.show { display: flex; }

/* ---------- Two-step verification ---------- */
.qi-cool { background: var(--cool-bg); color: var(--cool-ink); }
.method-card { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--line, #eee); }
.method-card:first-of-type { border-top: 0; }
.setup-steps { padding-left: 1.2rem; color: var(--ink-2); }
.setup-steps li { margin-bottom: 4px; }
.qr-box { width: 196px; height: 196px; padding: 10px; background: #fff; border: 1px solid var(--line, #eee); border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.qr-box svg, .qr-box img { width: 100%; height: 100%; }
.setup-key { display: inline-block; font-size: 1rem; letter-spacing: 1px; padding: 6px 10px; border-radius: 8px; background: var(--violet-tint); color: var(--violet-dark); word-break: break-all; }
.code-input { max-width: 180px; font-size: 1.35rem; letter-spacing: 4px; text-align: center; font-variant-numeric: tabular-nums; }
.codes-card { border: 1px solid var(--warm-ink); background: var(--warm-bg); }
.recovery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.recovery-grid code { display: block; text-align: center; padding: 8px; background: #fff; border-radius: 8px; color: var(--ink); font-size: .95rem; letter-spacing: 1px; }
@media print {
  body * { visibility: hidden; }
  .codes-card, .codes-card * { visibility: visible; }
  .codes-card { position: absolute; left: 0; top: 0; width: 100%; border: 0; background: #fff; }
  .codes-card button { display: none; }
}
.method-card > .flex-grow-1 { flex: 1 1 220px; min-width: 0; }
