@font-face {
  font-family: "Plus Jakarta Sans Variable";
  src: url("fonts/plus-jakarta-sans-latin.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- base ---------- */
:root {
  --banner-h: 38px;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --lt-action: var(--lt-accent);
  --lt-text-body: var(--lt-font-size);
  --lt-text-meta: calc(var(--lt-font-size) - 1px);
  --lt-text-label: calc(var(--lt-font-size) - 2px);
  --lt-text-section: calc(var(--lt-font-size) + 5px);
  --lt-text-title: calc(var(--lt-font-size) + 18px);
  --lt-text-stat: calc(var(--lt-font-size) + 20px);
}
@property --brand { syntax: "<color>"; inherits: true; initial-value: #c9b298; }
@property --brand-text { syntax: "<color>"; inherits: true; initial-value: #c9b298; }
@property --brand-nav { syntax: "<color>"; inherits: true; initial-value: #c9b298; }
@property --brand-lift { syntax: "<color>"; inherits: true; initial-value: #c9b298; }
html { transition: --brand 0.55s cubic-bezier(0.22, 0.78, 0.22, 1), --brand-text 0.55s cubic-bezier(0.22, 0.78, 0.22, 1), --brand-lift 0.55s cubic-bezier(0.22, 0.78, 0.22, 1), --brand-nav 0.55s cubic-bezier(0.22, 0.78, 0.22, 1); }
html.look-glide *, html.look-glide *::before, html.look-glide *::after {
  transition: background-color 0.24s ease, color 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, fill 0.24s ease, stroke 0.24s ease, border-radius 0.24s ease !important;
}
@media (prefers-reduced-motion: reduce) {
  html, html.look-glide *, html.look-glide *::before, html.look-glide *::after { transition: none !important; }
  .page-in, .rise-in, .toast-in, .palette-in { animation: none !important; }
}
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--lt-page);
  color: var(--lt-fg);
  font-family: var(--lt-font-ui);
  font-size: var(--lt-font-size);
  font-weight: 450;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { margin: 0; font-weight: var(--lt-heading-weight); letter-spacing: -0.02em; }
p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
button:disabled { cursor: not-allowed; }
input, select, textarea { font: inherit; color: inherit; }
svg { flex-shrink: 0; }
:where(svg[viewBox="0 0 24 24"]) { width: 18px; height: 18px; }
.lt-main:focus { outline: none; }
.tabular { font-variant-numeric: tabular-nums; }
::selection { background: var(--lt-accent-20); }
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid var(--lt-accent-strong); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.muted { color: var(--lt-fg-dim); }
.neg { color: var(--lt-negative); }
.pos { color: var(--lt-positive); }
.warn { color: var(--lt-warning); }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 8px; }
.wrap { flex-wrap: wrap; }
[hidden] { display: none !important; }

/* ---------- demo banner ---------- */
.demo-banner {
  position: sticky; top: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
  padding: 9px 16px; background: #1c2227; color: #d4dce5; border-bottom: 1px solid #3a414a;
  font: 12px/1.4 var(--font-mono, monospace);
}
.demo-banner a { color: #83d8e9; text-decoration: underline; text-underline-offset: 3px; }
.demo-banner button { padding: 5px 9px; background: transparent; color: inherit; border: 1px solid #59636e; border-radius: 5px; cursor: pointer; }
.demo-banner-note { opacity: 0.78; }
@media (max-width: 640px) { .demo-banner { gap: 8px 12px; padding: 7px 12px; } .demo-banner-note { display: none; } }

/* ---------- workspace and sidebar ---------- */
.workspace {
  position: relative;
  min-height: calc(100dvh - var(--banner-h));
  background: radial-gradient(900px 560px at 100% 0%, color-mix(in srgb, var(--lt-accent) var(--lt-glow), transparent), transparent 72%), var(--lt-page);
}
.workspace::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: var(--lt-grain-opacity); mix-blend-mode: var(--lt-grain-blend);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (min-width: 1024px) {
  .workspace { margin-left: var(--lt-sidebar-w); padding-top: var(--lt-bar-h); }
}
.lt-main { position: relative; z-index: 1; margin: 0 auto; max-width: var(--lt-content-w); padding: 40px 32px 96px; }
@media (max-width: 1023px) { .lt-main { padding: 20px 16px 80px; } }
@keyframes page-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes palette-in { from { opacity: 0; transform: translateY(-6px) scale(0.985); } to { opacity: 1; transform: none; } }
.page-in { animation: page-in 0.45s cubic-bezier(0.22, 0.78, 0.22, 1) both; }
.rise-in { animation: rise-in 0.55s cubic-bezier(0.22, 0.78, 0.22, 1) both; animation-delay: var(--d, 0ms); }

.shell-nav {
  position: fixed; top: var(--banner-h); bottom: 0; left: 0; z-index: 40;
  display: flex; flex-direction: column; width: var(--lt-sidebar-w);
  background: radial-gradient(460px 340px at 0% 0%, color-mix(in srgb, var(--brand-nav) var(--lt-nav-glow), transparent), transparent 72%), var(--lt-nav);
  color: var(--lt-nav-fg);
  box-shadow: inset -1px 0 0 var(--lt-nav-edge);
}
.shell-scrim { display: none; position: fixed; inset: 0; z-index: 30; background: var(--lt-backdrop); border: 0; }
@media (max-width: 1023px) {
  .shell-nav { transform: translateX(-100%); transition: transform 180ms ease, visibility 0s linear 180ms; visibility: hidden; }
  html[data-nav="open"] .shell-nav { transform: none; visibility: visible; transition: transform 180ms ease, visibility 0s; box-shadow: var(--lt-pop-shadow); }
  html[data-nav="open"] .shell-scrim { display: block; }
}
.shell-nav > div:first-of-type { flex-shrink: 0; padding: 20px 16px 12px; }
.nv-chip { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--lt-nav-chip-bg); box-shadow: var(--lt-nav-chip-shadow); }
.nv-chip svg { width: 34px; height: 34px; }
.nv-chip svg rect { fill: var(--brand-lift); }
.nv-chip svg path { stroke: var(--on-brand-lift); }
.nv-chip-text { min-width: 0; }
.nv-chip-text p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-chip-text p:first-child { font-size: 15px; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; color: var(--lt-nav-chip-fg); }
.nv-chip-text p:last-child { font-size: 12px; font-weight: 500; line-height: 1.2; color: var(--lt-nav-chip-sub); }
.nv-close { display: none; margin-left: auto; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: var(--lt-radius-field); color: var(--lt-nav-chip-sub); }
@media (max-width: 1023px) { .nv-close { display: inline-flex; } }
.nv-palette { margin-top: 12px; }
.nv-palette button { display: flex; align-items: center; gap: 8px; width: 100%; height: 40px; padding: 0 12px; border-radius: var(--lt-radius-field); background: var(--lt-nav-field-bg); color: var(--lt-nav-fg); font-size: 13.5px; font-weight: 500; transition: background-color 0.15s; }
.nv-palette button:hover { background: var(--lt-nav-field-hover); }
.pal-kbd { margin-left: auto; padding: 1px 6px; border-radius: 6px; background: var(--lt-nav-kbd-bg); font-family: var(--font-mono); font-size: 11px; color: var(--lt-nav-strong); }
.shell-nav > nav { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 4px 14px 12px; scrollbar-width: thin; }
.nv-list, .nv-bottom { display: flex; flex-direction: column; gap: 2px; }
.nv-group-l { padding-top: 16px; }
.nv-sec { padding: 0 14px 6px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: var(--lt-nav-dim); }
.nv-secrow { display: flex; align-items: center; }
.nv-fold { display: flex; width: 100%; align-items: center; gap: 6px; text-align: left; }
.nv-item { display: flex; align-items: center; gap: 12px; height: var(--lt-nav-item-h); padding: 0 14px; border-radius: var(--lt-radius-control); font-size: 14.5px; font-weight: 600; color: var(--lt-nav-fg); transition: background-color 0.15s, color 0.15s; width: 100%; }
.nv-item:hover { background: var(--lt-nav-hover); color: var(--lt-nav-strong); }
.nv-item svg { width: 18px; height: 18px; stroke-width: 1.9; color: var(--lt-nav-dim); }
.nv-item[aria-current="page"] { background: var(--lt-nav-active-bg); color: var(--lt-nav-active-fg); box-shadow: inset 0 0 0 1px var(--lt-nav-ring); }
.nv-item[aria-current="page"] svg { color: var(--lt-nav-icon-active); }
.nv-label { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-count { display: inline-flex; height: 22px; min-width: 22px; align-items: center; justify-content: center; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--lt-nav-badge-bg); color: var(--lt-nav-badge-fg); font-variant-numeric: tabular-nums; }
.nv-count.alert { background: #c9303a; color: #fff; }
.nv-foot { flex-shrink: 0; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 16px; border-top: 1px solid var(--lt-nav-line); }
.nv-foot > div { display: flex; align-items: center; gap: 8px; }
.nv-foot > div > a { display: flex; flex: 1; min-width: 0; align-items: center; gap: 10px; padding: 6px 8px; border-radius: var(--lt-radius-field); color: var(--lt-nav-fg); }
.nv-foot > div > a:hover { background: var(--lt-nav-hover); }
.nv-avatar { display: inline-flex; width: 32px; height: 32px; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 50%; background: var(--lt-nav-avatar-bg); color: var(--lt-nav-avatar-fg); font-size: 13px; font-weight: 700; }
.nv-owner { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 600; }
.nv-theme { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: var(--lt-radius-field); color: var(--lt-nav-fg); }
.nv-theme:hover { background: var(--lt-nav-hover); color: var(--lt-nav-strong); }
.nv-theme svg { width: 18px; height: 18px; }
.nv-status { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--lt-radius-field); background: var(--lt-nav-status-bg); font-size: 12px; font-weight: 500; color: var(--lt-nav-fg); }
.nv-status i { width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 0 3px rgba(61, 220, 151, 0.22); }

.m-bar { display: none; }
@media (max-width: 1023px) {
  .m-bar { display: flex; position: sticky; top: var(--banner-h); z-index: 30; height: 56px; align-items: center; gap: 10px; padding: 0 12px; background: var(--lt-bg-elev); border-bottom: 1px solid var(--lt-line); }
  .m-bar strong { flex: 1; font-size: 15px; }
}
.icon-btn { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: var(--lt-radius-field); color: var(--lt-fg-mid); }
.icon-btn:hover { background: var(--lt-surface-2); color: var(--lt-fg); }
.icon-btn svg { width: 18px; height: 18px; }

/* top bar of the themes without a sidebar */
.bar-mesa, .bar-funil { position: fixed; top: var(--banner-h); left: 0; right: 0; z-index: 35; height: var(--lt-bar-h); align-items: center; gap: 4px; padding: 0 16px; }
.bar-mesa { background: var(--lt-nav); color: var(--lt-nav-fg); }
.bar-mesa .brand-bit { display: flex; align-items: center; gap: 10px; margin-right: 12px; font-weight: 700; color: var(--lt-nav-strong); }
.bar-mesa .brand-bit svg { width: 28px; height: 28px; }
.bar-mesa .brand-bit svg rect { fill: var(--brand-lift); }
.bar-mesa .brand-bit svg path { stroke: var(--on-brand-lift); }
.bar-link { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 100%; padding: 0 12px; font-size: 14px; font-weight: 600; color: var(--lt-nav-fg); white-space: nowrap; }
.bar-link:hover { color: var(--lt-nav-strong); }
.bar-link svg { width: 14px; height: 14px; }
.bar-mesa .bar-search { margin-left: auto; display: flex; align-items: center; gap: 8px; height: 34px; min-width: 260px; padding: 0 12px; border-radius: var(--lt-radius-field); background: var(--lt-nav-field-bg); color: var(--lt-nav-fg); font-size: 13px; }
.bar-mesa .bar-user { display: inline-flex; align-items: center; gap: 8px; margin-left: 8px; }
.bar-mesa .icon-btn { color: var(--lt-nav-fg); }
.bar-mesa .icon-btn:hover { background: var(--lt-nav-hover); color: var(--lt-nav-strong); }
.bar-mesa .nv-avatar { width: 30px; height: 30px; }
.dd { position: relative; height: 100%; }
.dd-panel { position: absolute; top: 100%; left: 0; z-index: 50; min-width: 190px; padding: 6px; border-radius: var(--lt-radius-md); background: var(--lt-bg-elev); box-shadow: var(--lt-pop-shadow); color: var(--lt-fg); }
.dd-panel a { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: var(--lt-radius-sm); font-size: 13.5px; font-weight: 600; }
.dd-panel a:hover { background: var(--lt-surface-2); }
.bar-funil { left: 56px; background: var(--lt-bg-elev); border-bottom: 1px solid var(--lt-line); }
.bar-funil .bar-search { display: flex; align-items: center; gap: 8px; flex: 1; max-width: 520px; height: 36px; padding: 0 14px; border-radius: var(--lt-radius-field); border: 1px solid var(--lt-line-strong); color: var(--lt-fg-dim); font-size: 13.5px; background: var(--lt-bg); }
.bar-funil .bar-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* ---------- page header ---------- */
.crumb { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lt-accent-strong); }
.crumb::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.lt-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 24px; margin-bottom: 24px; }
.lt-head.hero { margin-bottom: 36px; }
.lt-head-text { min-width: 0; max-width: 48rem; }
.page-title { margin-top: 0; font-size: var(--lt-page-title-size-work); line-height: 1.08; letter-spacing: var(--lt-page-title-tracking-work); font-weight: var(--lt-page-title-weight); color: var(--lt-fg); text-wrap: balance; }
.crumb + .page-title { margin-top: 12px; }
.page-title--hero { font-size: var(--lt-page-title-size); line-height: 1.04; letter-spacing: var(--lt-page-title-tracking); }
.page-title--sub { font-size: var(--lt-page-title-size-sub); line-height: 1.12; letter-spacing: var(--lt-page-title-tracking-sub); }
.page-title em { font-style: normal; color: var(--lt-accent-strong); }
.page-sub { margin-top: 12px; max-width: 42rem; font-size: 15px; line-height: 1.45; color: var(--lt-fg-dim); font-weight: 500; }
.page-sub--hero { font-size: 17px; }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.page-actions > :is(a, button) { height: var(--lt-page-action-h); padding-inline: 20px; border-radius: var(--lt-radius-md); font-size: 14.5px; }
.page-actions > .lt-viewtabs { padding-inline: 2px; height: auto; }
.lt-trail { display: none; }

/* ---------- buttons, fields ---------- */
.btn { display: inline-flex; height: 40px; align-items: center; justify-content: center; gap: 6px; padding: 0 16px; border-radius: var(--lt-radius-control); font-size: var(--lt-text-body); font-weight: 600; white-space: nowrap; transition: background-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s; }
.btn svg { width: 16px; height: 16px; }
.btn:disabled { background: var(--lt-surface-2); color: var(--lt-fg-dim); box-shadow: none; }
.btn-sm { height: 32px; padding: 0 12px; font-size: var(--lt-text-meta); }
.btn-primary { background: var(--lt-accent); color: var(--lt-on-accent); box-shadow: var(--lt-btn-shadow); }
.btn-primary:not(:disabled):hover { background: var(--lt-accent-deep); transform: translateY(var(--lt-btn-lift)); box-shadow: var(--lt-btn-shadow-hover); }
.btn-primary:not(:disabled):active { transform: none; }
.btn-secondary { background: var(--lt-bg-elev); color: var(--lt-fg); box-shadow: inset 0 0 0 1px var(--lt-line-strong); }
.btn-secondary:not(:disabled):hover { background: var(--brand-soft); }
.btn-ghost { color: var(--lt-fg-mid); }
.btn-ghost:not(:disabled):hover { background: var(--lt-surface-2); color: var(--lt-fg); }
.btn-danger { border: 1px solid color-mix(in srgb, var(--lt-negative) 40%, transparent); background: var(--lt-bg-elev); color: var(--lt-negative); }
.btn-danger:not(:disabled):hover { background: var(--lt-negative-soft); }
.link { color: var(--lt-accent-strong); font-weight: 500; }
.link:hover { text-decoration: underline; }
.link-dim { display: inline-flex; align-items: center; gap: 4px; font-size: var(--lt-text-meta); color: var(--lt-fg-dim); }
.link-dim:hover { color: var(--lt-fg); }
.link-dim svg { width: 13px; height: 13px; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span:first-child { font-size: var(--lt-text-meta); font-weight: 600; color: var(--lt-fg-mid); }
.field .hint { font-size: var(--lt-text-meta); color: var(--lt-fg-dim); font-weight: 450; }
.input, .select, .textarea {
  width: 100%; height: 40px; padding: 0 14px; border-radius: var(--lt-radius-field);
  border: 1px solid var(--lt-control-line); background: var(--lt-bg-elev); color: var(--lt-fg);
  font-size: var(--lt-text-body); transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder, .textarea::placeholder { color: var(--lt-fg-faint); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--lt-fg-faint); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--lt-accent); box-shadow: 0 0 0 4px var(--lt-accent-20); }
.select { appearance: none; background-image: var(--lt-chevron); background-position: right 0.6rem center; background-repeat: no-repeat; padding-right: 32px; }
.textarea { height: auto; min-height: 88px; padding: 10px 14px; line-height: 1.5; resize: vertical; }
.textarea.mono { min-height: 280px; font-family: var(--font-mono); font-size: var(--lt-text-body); line-height: 1.6; }
.input-sm, .select-sm { height: 32px; font-size: var(--lt-text-meta); padding-inline: 10px; }
.select-sm { padding-right: 28px; }
.search { position: relative; min-width: 220px; flex: 1; max-width: 320px; }
.search svg { position: absolute; left: 12px; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); color: var(--lt-fg-faint); pointer-events: none; }
.search .input { padding-left: 36px; }
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .span2 { grid-column: span 2; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } .form-grid .span2 { grid-column: auto; } }
.form-error { padding: 8px 12px; border-radius: var(--lt-radius-sm); background: var(--lt-negative-soft); color: var(--lt-negative); font-size: var(--lt-text-body); }
.tagrow { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--lt-surface-2); color: var(--lt-fg-mid); font-size: var(--lt-text-label); font-weight: 600; }
.tag button { margin-right: -4px; width: 16px; height: 16px; border-radius: 50%; line-height: 1; color: var(--lt-fg-dim); }
.tag button:hover { background: var(--lt-surface-2); color: var(--lt-fg); }

/* ---------- cards and blocks ---------- */
.lt-card { border-radius: var(--lt-radius-lg); background: var(--lt-bg-elev); box-shadow: var(--lt-card-shadow); min-width: 0; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: var(--lt-card-pad) var(--lt-card-pad) 16px; }
.card-head h2 { font-size: var(--lt-text-section); font-weight: 700; letter-spacing: -0.025em; color: var(--lt-fg); }
.card-head p { margin-top: 4px; font-size: 13px; line-height: 1.35; color: var(--lt-fg-dim); }
.card-head .acts { display: flex; flex-shrink: 0; align-items: center; gap: 8px; }
.card-pad { padding: var(--lt-card-pad); }
.divider-t { border-top: 1px solid var(--lt-line); }
.lt-split { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 20px; margin-bottom: 40px; }
@media (min-width: 1280px) { .lt-split { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.stack { display: flex; flex-direction: column; gap: 20px; }
.grid-stats { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 20px; }
.grid-stats.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-stats.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-stats.c3, .grid-stats.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .grid-stats, .grid-stats.c3, .grid-stats.c4 { grid-template-columns: 1fr; } }
.lt-stat { display: block; padding: 20px; width: 100%; transition: transform 0.2s, box-shadow 0.2s; }
a.lt-stat:hover, button.lt-stat:hover { transform: translateY(-2px); }
.stat-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.stat-label { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; color: var(--lt-fg); }
.stat-value { margin-top: 8px; white-space: nowrap; font-size: var(--lt-text-stat); font-weight: 700; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.stat-hint { margin-top: 4px; font-size: var(--lt-text-meta); color: var(--lt-fg-dim); }
.spark { display: block; height: 56px; width: 100%; margin-top: 12px; overflow: visible; }
.trend { display: inline-flex; height: 24px; align-items: center; padding: 0 10px; border-radius: 999px; font-size: var(--lt-text-label); font-weight: 700; white-space: nowrap; background: var(--lt-surface-2); color: var(--lt-fg-dim); }
.trend.pos { background: var(--lt-positive-soft); color: var(--lt-positive); }
.trend.neg { background: var(--lt-negative-soft); color: var(--lt-negative); }
.hero-card { position: relative; display: block; overflow: hidden; padding: 24px; color: #fff; background: var(--lt-hero); box-shadow: 0 1px 2px color-mix(in srgb, var(--brand-text) 30%, transparent), 0 22px 44px -18px color-mix(in srgb, var(--brand-text) 70%, transparent); border-radius: var(--lt-radius-lg); }
.hero-card::after { content: ""; position: absolute; right: -90px; top: -110px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(closest-side, var(--lt-hero-glow), transparent); pointer-events: none; }
.hero-card > div { position: relative; z-index: 1; }
.hero-card .pill { display: inline-flex; height: 28px; align-items: center; padding: 0 12px; border-radius: 999px; background: rgba(0, 0, 0, 0.2); font-size: 12px; font-weight: 700; }
.hero-big { margin-top: 12px; font-size: clamp(38px, 4.6vw, 56px); font-weight: 700; line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero-sub { margin-top: 16px; display: flex; align-items: baseline; gap: 10px; }
.hero-sub b { font-size: 20px; letter-spacing: -0.03em; }
.hero-sub span { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.9); }
.badge { display: inline-flex; max-width: 100%; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--lt-line-strong); background: var(--lt-bg-elev); white-space: nowrap; vertical-align: middle; font-size: var(--lt-text-label); font-weight: 600; color: var(--lt-fg-mid); }
.badge > :first-child { width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; }
.bg-primary { background: var(--lt-accent); }
.bg-positive { background: var(--lt-positive); }
.bg-negative { background: var(--lt-negative); }
.bg-warning { background: var(--lt-warning); }
.bg-info { background: var(--lt-info); }
.bg-violet { background: var(--lt-violet); }
.bg-teal { background: var(--lt-teal); }
.bg-pink { background: var(--lt-pink); }
.bg-orange { background: var(--lt-orange); }
.bg-neutral { background: var(--lt-fg-faint); }
.notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 16px; margin-bottom: 20px; border-radius: var(--lt-radius-md); border: 1px solid var(--lt-line); background: var(--lt-bg-elev); box-shadow: var(--lt-card-shadow); color: var(--lt-fg-mid); }
.notice p { display: flex; align-items: flex-start; gap: 10px; flex: 1; min-width: 240px; }
.notice p > i { margin-top: 8px; width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: var(--lt-fg-faint); }
.notice.warning p > i { background: var(--lt-warning); }
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 56px var(--lt-card-pad); text-align: center; }
.empty strong { font-size: 17px; }
.empty p { max-width: 28rem; color: var(--lt-fg-dim); }
.avatar { display: inline-flex; width: 32px; height: 32px; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--lt-line); background: var(--lt-surface); font-size: 11.5px; font-weight: 600; color: var(--lt-fg-mid); }
.avatar.lg { width: 56px; height: 56px; font-size: 18px; }

/* tabs, pills, segmented */
.lt-tabs { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0 28px; margin-bottom: 24px; border-bottom: 1px solid var(--lt-line); }
.lt-tabs > * { display: flex; align-items: center; gap: 6px; height: 40px; margin-bottom: -1px; border-bottom: 2px solid transparent; white-space: nowrap; color: var(--lt-fg-dim); }
.lt-tabs > *:hover { color: var(--lt-fg); }
.lt-tabs > [aria-current="page"], .lt-tabs > [aria-selected="true"] { border-color: var(--lt-accent); color: var(--lt-fg); font-weight: 600; }
.lt-tabs .n { font-size: var(--lt-text-meta); font-weight: 450; color: var(--lt-fg-dim); }
.lt-tabs .n.alert { color: var(--lt-negative); font-weight: 500; }
.lt-pills { display: flex; flex-wrap: wrap; gap: 4px; width: fit-content; max-width: 100%; padding: 4px; border-radius: 999px; background: var(--lt-surface-2); }
.lt-pills > * { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 999px; white-space: nowrap; font-weight: 600; color: var(--lt-fg-dim); transition: background-color 0.15s, color 0.15s; }
.lt-pills > *:hover { color: var(--lt-fg); }
.lt-pills > [aria-current="page"], .lt-pills > [aria-selected="true"] { background: var(--lt-bg-elev); color: var(--lt-fg); box-shadow: 0 1px 3px rgba(18, 28, 60, 0.12), 0 4px 10px -4px rgba(18, 28, 60, 0.12); }
.lt-viewtabs { display: inline-flex; padding: 2px; border-radius: var(--lt-radius-md); border: 1px solid var(--lt-line); background: var(--lt-surface); }
.lt-viewtabs > * { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: var(--lt-radius-sm); font-size: var(--lt-text-meta); color: var(--lt-fg-dim); }
.lt-viewtabs > *:hover { color: var(--lt-fg); }
.lt-viewtabs > [aria-current="page"] { background: var(--lt-bg-elev); color: var(--lt-fg); font-weight: 500; box-shadow: 0 0 0 1px var(--lt-line); }
.lt-viewtabs svg { width: 15px; height: 15px; }
.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: var(--lt-surface-2); }
.seg > * { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--lt-fg-dim); transition: background-color 0.2s, color 0.2s; }
.seg > *:hover { color: var(--lt-fg); }
.seg > [aria-current="true"] { background: var(--lt-bg-elev); color: var(--lt-fg); box-shadow: 0 1px 3px rgba(18, 28, 60, 0.12), 0 4px 10px -4px rgba(18, 28, 60, 0.12); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-bottom: 16px; }
.toolbar .filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.toolbar .select { width: auto; min-width: 170px; }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; }
.lt-table { width: 100%; border-collapse: collapse; text-align: left; }
.lt-table th { padding: var(--lt-th-py) 16px; background: var(--lt-table-head); font-size: var(--lt-text-meta); font-weight: 600; color: var(--lt-fg-dim); white-space: nowrap; text-align: left; }
.lt-table th.r, .lt-table td.r { text-align: right; }
.lt-table th button { font-weight: inherit; display: inline-flex; gap: 4px; align-items: center; }
.lt-table th button:hover { color: var(--lt-fg); }
.lt-table td { height: var(--lt-row-h); padding: 6px 16px; border-top: 1px solid var(--lt-line); vertical-align: middle; }
.lt-table tbody tr { transition: background-color 0.12s; }
.lt-table tbody tr:hover { background: var(--lt-row-hover); }
.lt-table tr.clickable { cursor: pointer; }
.lt-table .cell-main { max-width: 280px; }
.lt-table .cell-main > a, .lt-table .cell-main > strong { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lt-table .cell-main > span { display: block; font-size: var(--lt-text-meta); color: var(--lt-fg-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lt-table tfoot td { background: var(--lt-table-head); font-weight: 600; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--lt-line); font-size: var(--lt-text-meta); color: var(--lt-fg-dim); }

/* ---------- today list ---------- */
.todo { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px var(--lt-card-pad); transition: background-color 0.12s; }
.todo:hover { background: var(--lt-row-hover); }
.todo + .todo { border-top: 1px solid var(--lt-line); }
.check { display: inline-flex; width: 22px; height: 22px; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 50%; border: 1.5px solid var(--lt-control-line); color: transparent; transition: background-color 0.15s, border-color 0.15s; }
.check:hover { border-color: var(--lt-accent); }
.check svg { width: 13px; height: 13px; stroke-width: 3; }
.check.on { background: var(--lt-positive); border-color: var(--lt-positive); color: #fff; }
.todo .ico { width: 16px; height: 16px; color: var(--lt-fg-dim); }
.todo-main { min-width: 0; flex: 1; }
.todo-main strong { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.todo-main span { display: block; font-size: var(--lt-text-meta); color: var(--lt-fg-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.todo.done .todo-main strong { color: var(--lt-fg-dim); text-decoration: line-through; }
.todo-when { flex-shrink: 0; font-size: var(--lt-text-meta); font-variant-numeric: tabular-nums; color: var(--lt-fg-dim); text-align: right; }
.todo-when.late { color: var(--lt-negative); font-weight: 500; }
.todo-when.today { color: var(--lt-warning); font-weight: 500; }
.group-title { padding: 14px var(--lt-card-pad) 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lt-fg-dim); }
.line { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px var(--lt-card-pad); transition: background-color 0.12s; }
.line:hover { background: var(--lt-row-hover); }
.line-main { min-width: 0; flex: 1; }
.line-main strong { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-main span { display: block; font-size: var(--lt-text-meta); color: var(--lt-fg-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-side { flex-shrink: 0; text-align: right; font-size: var(--lt-text-meta); font-variant-numeric: tabular-nums; }
.line-side b { display: block; font-weight: 500; color: var(--lt-fg); }
.first-steps { margin-bottom: 20px; padding: 14px 18px; }
.first-steps header { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.progress { width: 84px; height: 6px; overflow: hidden; border-radius: 999px; background: var(--lt-bar-track); }
.progress i { display: block; height: 100%; border-radius: 999px; background: var(--lt-bar); }
.steps { display: grid; gap: 4px 20px; margin-top: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps a, .steps div { display: flex; align-items: center; gap: 10px; min-height: 34px; font-size: var(--lt-text-meta); color: var(--lt-fg-mid); }
.steps a:hover { color: var(--lt-fg); }
.steps .check { width: 18px; height: 18px; pointer-events: none; }
.steps .check svg { width: 11px; height: 11px; }

/* ---------- deals board ---------- */
.lt-board-wrap { position: relative; margin: 0 -4px; }
.lt-board { height: calc(100dvh - var(--banner-h) - 268px - var(--lt-bar-h)); min-height: 480px; overflow-x: auto; overscroll-behavior-x: contain; padding: 0 4px 12px; border-radius: var(--lt-radius-md); outline: none; }
.lt-board:focus-visible { box-shadow: 0 0 0 2px var(--lt-accent-20); }
.lt-board [role="list"] { display: flex; height: 100%; gap: 12px; }
.lt-col { display: flex; flex-direction: column; min-height: 0; width: 288px; flex-shrink: 0; border: 1px solid var(--lt-line); border-radius: var(--lt-radius-lg); background: var(--lt-surface); }
.lt-col.over { border-color: var(--lt-accent); background: var(--lt-accent-10); }
.lt-col-head { flex-shrink: 0; padding: 14px 16px 8px; }
.lt-col-head > div { display: flex; min-width: 0; align-items: center; gap: 8px; }
.lt-col-head h2 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--lt-text-body); font-weight: 600; letter-spacing: -0.01em; }
.lt-col-head .n { font-size: var(--lt-text-meta); color: var(--lt-fg-dim); }
.lt-col-head p { margin-top: 2px; font-size: var(--lt-text-meta); color: var(--lt-fg-dim); font-variant-numeric: tabular-nums; }
.col-add { margin-left: auto; margin-right: -6px; display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: var(--lt-radius-sm); color: var(--lt-fg-dim); }
.col-add:hover { background: var(--lt-surface-2); color: var(--lt-fg); }
.col-add svg { width: 16px; height: 16px; }
.lt-col-body { display: flex; flex: 1; min-height: 0; flex-direction: column; gap: 8px; overflow-y: auto; overflow-x: hidden; padding: 0 10px 10px; }
.col-empty { padding: 24px 12px; border: 1px dashed var(--lt-line); border-radius: var(--lt-radius-md); text-align: center; font-size: var(--lt-text-meta); color: var(--lt-fg-faint); }
.lt-deal { position: relative; min-width: 0; padding: 12px 12px 0; border: 1px solid var(--lt-line); border-radius: var(--lt-radius-md); background: var(--lt-bg-elev); cursor: grab; transition: opacity 0.15s, border-color 0.15s; }
.lt-deal:hover { border-color: var(--lt-line-strong); }
.lt-deal.dragging { opacity: 0.45; }
.lt-deal .d-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 500; line-height: 1.35; word-break: break-word; }
.lt-deal .d-title:hover { text-decoration: underline; text-decoration-color: var(--lt-line-strong); text-underline-offset: 2px; }
.lt-deal .d-sub { margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--lt-text-meta); color: var(--lt-fg-dim); }
.lt-deal .d-val { margin-top: 10px; min-height: 24px; display: flex; align-items: center; justify-content: space-between; font-weight: 500; font-variant-numeric: tabular-nums; }
.lt-act { display: flex; align-items: center; gap: 8px; height: 36px; margin: 12px -12px 0; padding: 0 12px; border-top: 1px solid var(--lt-line); font-size: var(--lt-text-meta); }
.lt-act svg { width: 14px; height: 14px; }
.lt-act > span:first-of-type { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lt-act .stall { flex-shrink: 0; padding: 1px 6px; border-radius: 999px; background: var(--lt-warning-soft); color: var(--lt-warning); font-size: var(--lt-text-label); font-weight: 500; font-variant-numeric: tabular-nums; }
.lt-act .age { flex-shrink: 0; font-size: var(--lt-text-label); color: var(--lt-fg-faint); font-variant-numeric: tabular-nums; }
.lt-act.overdue { color: var(--lt-negative); font-weight: 500; }
.lt-act.today { color: var(--lt-warning); }
.lt-act.future { color: var(--lt-fg-mid); }
.lt-act.none { color: var(--lt-fg-dim); }
.deal-actions { position: absolute; inset: auto 0 0 0; display: none; align-items: center; gap: 6px; height: 36px; padding: 0 8px; border-top: 1px solid var(--lt-line); border-radius: 0 0 var(--lt-radius-md) var(--lt-radius-md); background: var(--lt-bg-elev); }
.lt-deal:hover .deal-actions, .lt-deal:focus-within .deal-actions { display: flex; }
.deal-actions select { flex: 1; min-width: 0; height: 26px; border: 1px solid var(--lt-line); border-radius: var(--lt-radius-sm); background: var(--lt-bg-elev); padding: 0 6px; font-size: var(--lt-text-meta); color: var(--lt-fg-mid); }
.mini-btn { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border: 1px solid var(--lt-line); border-radius: var(--lt-radius-sm); }
.mini-btn svg { width: 14px; height: 14px; }
.mini-btn.pos:hover { background: var(--lt-positive-soft); }
.mini-btn.neg:hover { background: var(--lt-negative-soft); }
@media (hover: none) {
  .lt-deal { padding-bottom: 0; }
  .deal-actions { position: static; display: flex; margin: 0 -12px; border-radius: 0 0 var(--lt-radius-md) var(--lt-radius-md); }
}
.board-status { min-height: 20px; padding-bottom: 4px; font-size: var(--lt-text-meta); }

/* ---------- record pages ---------- */
.lt-record { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1100px) {
  .lt-record { grid-template-columns: minmax(0, 1fr) 340px; }
  .lt-record > [data-slot="data"] { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: calc(var(--banner-h) + var(--lt-bar-h) + 16px); }
  .lt-record > [data-slot="timeline"] { grid-column: 1; grid-row: 1; }
  .lt-record > [data-slot="assoc"] { grid-column: 1; grid-row: 2; }
}
.lt-record > [data-slot="data"] { display: flex; flex-direction: column; }
.dl { display: grid; gap: 14px; padding: 0 var(--lt-card-pad) var(--lt-card-pad); }
.dl dt { font-size: var(--lt-text-meta); color: var(--lt-fg-dim); }
.dl dd { margin-top: 2px; word-break: break-word; font-weight: 500; }
.record-id { display: flex; align-items: center; gap: 14px; padding: var(--lt-card-pad) var(--lt-card-pad) 12px; }
.record-id h2 { font-size: var(--lt-text-section); }
.timeline li { position: relative; display: flex; gap: 12px; padding-bottom: 16px; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 32px; bottom: 0; width: 1px; background: var(--lt-line); }
.timeline .ev-ico { display: flex; width: 28px; height: 28px; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--lt-line); background: var(--lt-bg-elev); color: var(--lt-fg-dim); }
.timeline .ev-ico.pos { color: var(--lt-positive); }
.timeline .ev-ico.neg { color: var(--lt-negative); }
.timeline .ev-ico svg { width: 14px; height: 14px; }
.timeline .ev-body { min-width: 0; flex: 1; padding-top: 2px; }
.timeline .ev-meta { margin-top: 2px; font-size: var(--lt-text-meta); color: var(--lt-fg-dim); }
.timeline .ev-note { margin-top: 2px; white-space: pre-line; font-size: var(--lt-text-meta); color: var(--lt-fg-mid); }
.composer { display: flex; flex-direction: column; gap: 8px; padding: 0 var(--lt-card-pad) 16px; }
.composer .row { justify-content: flex-end; }

/* ---------- reports ---------- */
.hbars { display: flex; flex-direction: column; gap: 16px; padding: 0 var(--lt-card-pad) 28px; }
.hbar { display: grid; grid-template-columns: minmax(0, 120px) minmax(0, 1fr) auto; align-items: center; gap: 16px; }
.hbar > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; color: var(--lt-fg-mid); }
.hbar .track { height: 8px; overflow: hidden; border-radius: 999px; background: var(--lt-bar-track); }
.hbar .track i { display: block; height: 100%; border-radius: 999px; background: var(--lt-bar); }
.hbar .val { white-space: nowrap; text-align: right; font-size: var(--lt-text-meta); color: var(--lt-fg-dim); font-variant-numeric: tabular-nums; }
.hbar .val b { font-weight: 500; color: var(--lt-fg); }
.cols { display: flex; align-items: flex-end; gap: 8px; padding: 0 var(--lt-card-pad) 20px; }
.cols > div { display: flex; min-width: 0; flex: 1; flex-direction: column; align-items: center; gap: 4px; }
.cols .c-val { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--lt-text-label); color: var(--lt-fg-dim); }
.cols .c-bar { width: 100%; max-width: 56px; border-radius: 4px 4px 0 0; background: var(--lt-bar-soft); }
.cols .c-bar.now { background: var(--lt-bar); }
.cols .c-lab { white-space: nowrap; font-size: var(--lt-text-label); color: var(--lt-fg-dim); }
.summary-line { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 4px 0 24px; font-size: var(--lt-text-meta); color: var(--lt-fg-dim); }
.summary-line b { font-weight: 500; color: var(--lt-fg-mid); }

/* ---------- scheduling ---------- */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-bottom: 20px; }
.week button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border: 1px solid var(--lt-line-strong); border-radius: var(--lt-radius-md); background: var(--lt-bg-elev); font-variant-numeric: tabular-nums; }
.week button:hover { border-color: var(--lt-fg-faint); }
.week button[aria-pressed="true"] { border-color: var(--lt-accent); box-shadow: 0 0 0 3px var(--lt-accent-20); }
.week small { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--lt-fg-dim); }
.week strong { font-size: 20px; }
.week .dot { font-size: 11px; color: var(--lt-fg-dim); }
.week .dot.has { color: var(--lt-accent-strong); font-weight: 700; }
.meet { display: flex; align-items: center; gap: 14px; padding: 12px var(--lt-card-pad); }
.meet + .meet { border-top: 1px solid var(--lt-line); }
.meet-time { width: 84px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.meet-time b { display: block; font-weight: 600; }
.meet-time span { font-size: var(--lt-text-meta); color: var(--lt-fg-dim); }
.booker { display: grid; max-width: 1024px; margin: 0 auto; overflow: hidden; border: 1px solid var(--lt-line); border-radius: var(--lt-radius-lg); background: var(--lt-bg-elev); box-shadow: var(--lt-card-shadow); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .booker { grid-template-columns: 300px minmax(0, 1fr); } }
.booker aside { padding: 24px; border-bottom: 1px solid var(--lt-line); }
@media (min-width: 768px) { .booker aside { border-bottom: 0; border-right: 1px solid var(--lt-line); } }
.booker aside .eyebrow { margin-bottom: 4px; font-size: 12.5px; font-weight: 600; color: var(--lt-fg-dim); }
.booker aside h1 { margin-top: 8px; font-size: var(--lt-text-title); font-weight: 600; }
.booker aside ul { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; color: var(--lt-fg-mid); }
.booker aside li { display: flex; align-items: flex-start; gap: 8px; }
.booker aside li svg { width: 16px; height: 16px; margin-top: 4px; color: var(--lt-fg-dim); }
.booker aside li.picked { font-weight: 500; color: var(--lt-fg); }
.booker-body { display: grid; gap: 24px; padding: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .booker-body { grid-template-columns: minmax(0, 1fr) 220px; } }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head h2 { font-size: var(--lt-text-section); font-weight: 600; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.cal > span { padding-bottom: 4px; font-size: var(--lt-text-label); font-weight: 600; color: var(--lt-fg-dim); }
.cal button { display: flex; width: 40px; height: 40px; margin: 0 auto; align-items: center; justify-content: center; border-radius: 50%; font-variant-numeric: tabular-nums; background: var(--lt-surface); font-weight: 500; transition: background-color 0.15s; }
.cal button:hover:not(:disabled) { background: var(--lt-surface-2); }
.cal button:disabled { background: transparent; color: var(--lt-fg-faint); font-weight: 450; }
.cal button[aria-pressed="true"] { background: var(--lt-accent); color: var(--lt-on-accent); font-weight: 600; }
.slots { display: grid; max-height: 360px; gap: 8px; overflow-y: auto; padding-right: 4px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1024px) { .slots { grid-template-columns: 1fr; } }
.slots .btn { width: 100%; font-variant-numeric: tabular-nums; }
.confirmed { max-width: 560px; margin: 0 auto; padding: 32px; border: 1px solid var(--lt-line); border-radius: var(--lt-radius-lg); background: var(--lt-bg-elev); text-align: center; box-shadow: var(--lt-card-shadow); }
.confirmed .ok { display: flex; width: 48px; height: 48px; margin: 0 auto 16px; align-items: center; justify-content: center; border-radius: 50%; background: var(--lt-positive-soft); color: var(--lt-positive); }
.confirmed .ok svg { width: 24px; height: 24px; }
.confirmed h1 { font-size: var(--lt-text-title); }
.public-top { display: flex; align-items: center; justify-content: space-between; max-width: 1024px; margin: 0 auto 20px; font-size: var(--lt-text-meta); color: var(--lt-fg-dim); }
html[data-public] .shell-nav, html[data-public] .m-bar, html[data-public] .bar-mesa, html[data-public] .bar-funil, html[data-public] .shell-scrim { display: none !important; }
html[data-public] .workspace { margin-left: 0; padding-top: 0; }

/* ---------- campaigns ---------- */
.editor { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1280px) { .editor { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.editor-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 16px; border-bottom: 1px solid var(--lt-line); }
.editor-toolbar .sep { width: 1px; height: 20px; margin: 0 4px; background: var(--lt-line); }
.editor-toolbar .btn { height: 30px; padding: 0 8px; font-size: var(--lt-text-meta); }
.preview-mail { margin: 0 var(--lt-card-pad) var(--lt-card-pad); padding: 28px; border-radius: var(--lt-radius-md); background: #fff; color: #1b1d24; font-family: Arial, Helvetica, sans-serif; font-size: 15px; line-height: 1.6; }
.preview-mail p { margin: 0 0 14px; }
.preview-mail a { color: #2b5fd9; text-decoration: underline; }
.preview-mail .foot { margin-top: 24px; padding-top: 12px; border-top: 1px solid #e3e5ec; font-size: 12px; color: #6a7080; }
.preview-meta { padding: 12px var(--lt-card-pad); border-top: 1px solid var(--lt-line); font-size: var(--lt-text-meta); }

/* ---------- appearance ---------- */
.theme-grid { display: grid; gap: 14px; padding: 0 var(--lt-card-pad) var(--lt-card-pad); grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .theme-grid { grid-template-columns: 1fr; } }
.theme-card { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--lt-line-strong); border-radius: var(--lt-radius-md); background: var(--lt-bg-elev); text-align: left; transition: border-color 0.15s, box-shadow 0.15s; }
.theme-card:hover { border-color: var(--lt-fg-faint); }
.theme-card[aria-pressed="true"] { border-color: var(--lt-accent); box-shadow: 0 0 0 3px var(--lt-accent-20); }
.theme-card strong { display: block; font-size: 14px; }
.theme-card span.sub { font-size: var(--lt-text-meta); color: var(--lt-fg-dim); }
.thumb { position: relative; height: 92px; overflow: hidden; border-radius: 8px; border: 1px solid rgba(128, 128, 128, 0.3); background: var(--tb); }
.thumb i { position: absolute; display: block; }
.thumb .nav { background: var(--tn); }
.thumb .bar { background: var(--tc); border-radius: 3px; }
.thumb .ac { background: var(--ta); border-radius: 3px; }
.swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 0 var(--lt-card-pad) var(--lt-card-pad); }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 2px solid transparent; box-shadow: inset 0 0 0 1px rgba(128, 128, 128, 0.5); }
.swatch[aria-pressed="true"] { border-color: var(--lt-bg-elev); box-shadow: 0 0 0 2px var(--lt-fg); }
.hex-field { display: flex; align-items: center; gap: 8px; }
.hex-field input[type="color"] { width: 40px; height: 40px; padding: 2px; border-radius: var(--lt-radius-field); border: 1px solid var(--lt-control-line); background: var(--lt-bg-elev); cursor: pointer; }
.hex-field .input { width: 110px; font-family: var(--font-mono); }

/* ---------- overlays ---------- */
.modal-back { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-start; justify-content: center; padding: 8vh 16px 16px; overflow-y: auto; background: var(--lt-backdrop); }
.modal { width: min(560px, 100%); border-radius: var(--lt-radius-lg); background: var(--lt-bg-elev); box-shadow: var(--lt-pop-shadow); animation: palette-in 0.16s cubic-bezier(0.22, 0.78, 0.22, 1) both; }
.modal header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px 8px; }
.modal header h2 { font-size: 19px; }
.modal .m-body { display: flex; flex-direction: column; gap: 16px; padding: 12px 24px 8px; }
.modal footer { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 24px 20px; }
.pal { width: min(620px, 100%); margin-top: 6vh; border-radius: var(--lt-radius-lg); background: var(--lt-bg-elev); box-shadow: var(--lt-pop-shadow); overflow: hidden; animation: palette-in 0.16s cubic-bezier(0.22, 0.78, 0.22, 1) both; }
.pal-input { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--lt-line); }
.pal-input svg { width: 18px; height: 18px; color: var(--lt-fg-dim); }
.pal-input input { flex: 1; border: 0; background: transparent; font-size: 16px; outline: none; }
.pal-list { max-height: 52vh; overflow-y: auto; padding: 6px; }
.pal-list .pal-group { padding: 10px 12px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lt-fg-dim); }
.pal-list a { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: var(--lt-radius-sm); }
.pal-list a[aria-selected="true"], .pal-list a:hover { background: var(--lt-surface-2); }
.pal-list a small { margin-left: auto; color: var(--lt-fg-dim); font-size: var(--lt-text-meta); white-space: nowrap; }
.pal-empty { padding: 28px; text-align: center; color: var(--lt-fg-dim); }
.toast { position: fixed; bottom: 24px; left: 50%; z-index: 100; display: flex; align-items: center; gap: 14px; max-width: min(520px, calc(100vw - 32px)); padding: 12px 16px; border-radius: var(--lt-radius-md); background: var(--lt-bg-elev); box-shadow: var(--lt-pop-shadow); font-weight: 500; transform: translateX(-50%); animation: toast-in 0.25s cubic-bezier(0.22, 0.78, 0.22, 1) both; }
.toast.error { color: var(--lt-negative); }
.toast button { font-weight: 700; color: var(--lt-accent-strong); }

@media (max-width: 640px) {
  .page-actions > :is(a, button) { padding-inline: 14px; }
  .toolbar .select { min-width: 140px; }
  .hbar { grid-template-columns: minmax(0, 84px) minmax(0, 1fr) auto; gap: 10px; }
  .meet { flex-wrap: wrap; }
}
