:root {
  font: 100%/1.5 "Inter", "Segoe UI", system-ui, sans-serif;
  color: #161817;
  color-scheme: light;
  background: #f4f4ee;
  --surface: #fff;
  --muted: #5d6259;
  --line: #dddfd4;
  --accent: #465417;
  --accent-light: #edf3cf;
  --lime: #dff969;
  --dark: #111213;
  --dark-line: #30312d;
  --orbit-image: url("/orbit.jpg");
  --heading-font: "Arial Black", "Segoe UI Black", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
/* Hide vertical scroll chrome without changing scroll or touch behavior. */
html, .sidebar, dialog, .dialog-content, textarea { scrollbar-width: none; }
:is(html, .sidebar, dialog, .dialog-content, textarea)::-webkit-scrollbar { width: 0; }
body { margin: 0; min-height: 100vh; display: grid; grid-template-columns: 230px minmax(0, 1fr); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: var(--accent); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }

.sidebar { background: var(--dark); color: #f5f6ef; border-right: 1px solid var(--dark-line); padding: 21px 12px 16px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100dvh; overflow: auto; }
.sidebar :focus-visible, .follow-up-panel :focus-visible { outline-color: var(--lime); }
.brand { color: inherit; display: flex; gap: 9px; align-items: center; padding: 0 6px; text-decoration: none; font: 900 1.17rem/1.02 var(--heading-font); letter-spacing: -.055em; }
.brand img { border-radius: 8px; flex-shrink: 0; }
.brand small { display: block; color: #c1c3b8; font: 500 .8125rem/1.25 "Segoe UI", system-ui, sans-serif; letter-spacing: 0; margin-top: 5px; }
.sidebar-art { height: 105px; flex: 0 0 auto; margin: 3px -12px 7px; background: linear-gradient(180deg, var(--dark), transparent 22% 52%, var(--dark)), var(--orbit-image) right 68% / 292px auto no-repeat; }
nav { display: grid; gap: 5px; }
nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; min-height: 42px; border-radius: 6px; color: #e4e6dc; text-decoration: none; font-weight: 650; font-size: .9375rem; }
nav a:hover { background: #232623; }
nav a[aria-current] { color: #151905; background: var(--lime); }
.sidebar nav { isolation: isolate; }
.sidebar nav a { position: relative; border-radius: 8px; }
.sidebar nav a[aria-current] { background: transparent; color: #222c0b; }
.nav-pill { display: none; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; }
.sidebar nav a[aria-current] .nav-pill {
  display: block; background: linear-gradient(180deg, #e8ff87, var(--lime));
  border: 1px solid #c7de60;
  box-shadow: inset 0 1px 0 #ffffffa6, 0 2px 4px #00000024, 0 1px 2px #00000014;
}
@media (prefers-reduced-motion: no-preference) {
  .sidebar nav a { transition: color 150ms ease, background-color 150ms ease; }
}
.nav-icon { position: relative; width: 17px; height: 17px; flex: 0 0 17px; }
.pipeline-icon { border: 1.5px solid currentColor; border-radius: 3px; }
.pipeline-icon::after { content: ""; position: absolute; inset: 3px 4px; border-inline: 1px solid currentColor; }
.contact-icon::before, .contact-icon::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); border: 1.5px solid currentColor; }
.contact-icon::before { width: 7px; height: 7px; top: 0; border-radius: 50%; }
.contact-icon::after { width: 15px; height: 7px; bottom: 0; border-radius: 7px 7px 2px 2px; }
.template-icon { height: 13px; border: 1.5px solid currentColor; border-radius: 3px; }
.template-icon::after { content: ""; position: absolute; width: 7px; height: 3px; border-block: 1px solid currentColor; top: 3px; left: 3px; }
.testimonial-icon { border: 1.5px solid currentColor; border-radius: 4px; height: 14px; }
.testimonial-icon::before { content: '“'; position: absolute; font: 700 19px/1 Georgia,serif; left: 3px; top: 0; }
.testimonial-icon::after { content: ''; position: absolute; width: 5px; height: 5px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; background: var(--dark); bottom: -4px; left: 3px; transform: skewY(-30deg); }
.sidebar nav a[aria-current] .testimonial-icon::after { background: var(--lime); }
.nav-label-short { display: none; }
.kpi-icon { border-bottom: 1.5px solid currentColor; }
.kpi-icon::before, .kpi-icon::after { content: ""; position: absolute; bottom: 2px; width: 3px; border-radius: 1px; background: currentColor; }
.kpi-icon::before { left: 2px; height: 5px; }
.kpi-icon::after { left: 12px; height: 13px; }
.kpi-icon { background: linear-gradient(currentColor, currentColor) 7px calc(100% - 2px) / 3px 9px no-repeat; }
.sidebar-footer { display: grid; gap: 12px; margin-top: auto; padding: 15px 6px 0; border-top: 1px solid var(--dark-line); }
.workspace-status { color: #bec1b6; font-size: .8125rem; }
.offline-status { color: #f8d39c; font-size: .8125rem; font-weight: 700; }
.workspace-button { min-height: 44px; border: 1px solid #424837; border-radius: 9px; padding: 8px 12px; color: #e9eedd; background: #22271e; font: inherit; font-size: .8125rem; font-weight: 650; }
.workspace-button:hover { background: #333c26; }
.workflow-intro { margin: 0 0 18px; color: var(--muted); font-size: .9rem; }
.backup-summary { display: flex; flex-wrap: wrap; gap: 12px; padding: 16px; margin: 12px 0 20px; border-radius: 12px; background: #eef2e5; font-size: .85rem; }
.contact-workflow { border: 1px solid #dfe6ce; border-radius: 14px; background: linear-gradient(135deg,#fbfff0,#f0f4e7); padding: 16px; margin-top: 18px; }
.contact-workflow h3 { font-size: 1rem; }
.contact-workflow p { color: var(--muted); font-size: .8rem; margin: 4px 0 14px; }
.contact-recency { display: block; font-size: .7rem; color: #69745c; margin-top: 3px; font-weight: 500; }
.deal-value { display: block; color: #465417; font-size: .8rem; font-weight: 700; margin-top: 5px; font-variant-numeric: tabular-nums; }
.queue-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: end; }
.follow-up-item .queue-actions .queue-button { min-height: 36px; padding: 6px 9px; font-size: .75rem; }
.activity-options { border: 0; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.activity-options legend { font-weight: 700; margin-bottom: 12px; }
.activity-options label { position: relative; margin: 0; }
.activity-options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.activity-options span { display: flex; align-items: center; min-height: 48px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; font-size: .85rem; }
.activity-options input:checked + span { background: #ecf7c7; border-color: #a8bf65; box-shadow: inset 0 1px #fff; }
.activity-options input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.activity-history { margin-top: 20px; padding: 16px; border: 1px solid var(--line); background: #fff; border-radius: 13px; }
.activity-history summary, .deal-extra summary, .schedule-custom summary, .target-editor summary { cursor: pointer; font-weight: 650; padding: 8px 0; }
.activity-history summary span { font-size: .75rem; color: var(--muted); margin-left: 8px; }
.activity-history ol { list-style: none; margin: 8px 0 0; padding: 0; max-height: 360px; overflow-y: auto; scrollbar-width: none; }
.activity-history li { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding: 14px 0 14px 16px; border-left: 2px solid #dae4c5; border-bottom: 1px solid #edf0e8; font-size: .85rem; }
.activity-history time, .activity-history small { display: block; font-size: .72rem; color: var(--muted); margin-top: 4px; }
.activity-history li p { margin-top: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.activity-history .activity-voided { opacity: .6; }
.activity-history .secondary { min-height: 36px; padding: 6px 10px; font-size: .75rem; }
.action-presets { margin: 8px 0 20px; }
.action-presets button { font-size: .8rem; }
.schedule-custom, .deal-extra { margin: 16px 0; }
.workflow-footer { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.weekly-targets { background: linear-gradient(180deg,#fff,#fdfef9); border: 1px solid #dfe4d7; border-radius: 14px; padding: 20px; margin: 24px 0; box-shadow: 0 2px 4px #26321c06; }
.target-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin: 14px 0; }
.target-card { display: grid; gap: 8px; }
.target-card > span { color: var(--muted); font-size: .8rem; }
.target-card strong { font-size: 1.45rem; }
.target-card small { font-size: .8rem; font-weight: 500; color: var(--muted); }
.target-card progress { width: 100%; height: 7px; border: 0; border-radius: 10px; overflow: hidden; accent-color: #758b40; background: #edf0e5; }
.target-card progress::-webkit-progress-bar { background: #edf0e5; }
.target-card progress::-webkit-progress-value { background: linear-gradient(90deg,#859952,#cbe56f); border-radius: 10px; }
.target-editor { border-top: 1px solid var(--line); padding-top: 8px; }
.target-stepper { display: grid; grid-template-columns: 44px minmax(0,1fr) 44px; gap: 3px; margin-top: 6px; }
.target-stepper input { min-width: 0; width: 100%; margin: 0; text-align: center; padding: 8px 3px; }
.target-stepper button { border: 1px solid var(--line); border-radius: 8px; background: #f2f5ea; min-height: 44px; }
.kpi-source-note { color: #5c6852; border-left: 3px solid #b9cd88; padding: 10px 14px; background: #f0f4e8; border-radius: 0 8px 8px 0; font-size: .8rem; margin: 14px 0 22px; }
@media (max-width: 1000px) { .target-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 760px) {
  .follow-up-item .queue-actions { grid-column: 1 / -1; justify-content: start; margin-top: 7px; }
  .follow-up-item .queue-actions .queue-button { min-height: 44px; }
  .contact-workflow .secondary, .activity-history .secondary { min-height: 44px; }
  .weekly-targets { padding: 16px; }
  .target-editor .target-grid { grid-template-columns: 1fr; }
}
.workspace-status::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 9px 2px 0; border-radius: 50%; background: var(--lime); }
.workspace { min-width: 0; }
.content-scroll-fade {
  position: fixed; left: var(--content-fade-left, 230px); right: 0;
  bottom: var(--content-fade-bottom, 0px); height: 64px; z-index: 1;
  pointer-events: none; opacity: 0;
  background: linear-gradient(to bottom, transparent, var(--content-fade-color, #f4f4ee) 96%);
}
body:has(dialog[open]) .content-scroll-fade { visibility: hidden; }
.horizontal-scroll-fade {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--edge-fade-left, 0px), #000 calc(100% - var(--edge-fade-right, 0px)), transparent);
  mask-image: linear-gradient(to right, transparent, #000 var(--edge-fade-left, 0px), #000 calc(100% - var(--edge-fade-right, 0px)), transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .content-scroll-fade { transition: opacity 180ms ease; }
}
@media (max-width: 760px) {
  .content-scroll-fade { height: 48px; }
}
.topbar { display: flex; align-items: center; gap: 14px; height: 66px; padding-inline: clamp(18px, 3.8vw, 54px); background: linear-gradient(90deg, var(--dark) 48%, #111213cc 100%), var(--orbit-image) right 52% / 435px auto no-repeat, var(--dark); border-bottom: 1px solid #292c24; color: #bdc1b7; font: 800 .75rem/1 var(--heading-font); letter-spacing: .06em; text-transform: uppercase; }
.topbar strong { color: #f6f7ef; font-size: 1.25rem; letter-spacing: -.035em; }
.topbar strong::first-letter { color: var(--lime); }
.crumb-divider { width: 6px; height: 6px; border-top: 1px solid #aebc70; border-right: 1px solid #aebc70; transform: rotate(45deg); }
main { min-width: 0; padding: 36px clamp(18px, 3.8vw, 54px) 48px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
h1 { font: 900 clamp(1.875rem, 3.3vw, 2.6rem)/1.05 var(--heading-font); letter-spacing: -.055em; text-transform: uppercase; }
.page-heading p { color: var(--muted); margin-top: 8px; max-width: 60ch; }
.page-heading > button { flex-shrink: 0; }

.primary, .secondary {
  min-height: 42px; border-radius: 6px; padding: 8px 14px; border: 1px solid transparent;
  font-size: .9375rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; text-align: center;
}
.primary { color: #191e06; background: var(--lime); border-color: #cce54f; box-shadow: 0 1px 2px #20271212; }
.primary:hover { background: #cfe94f; border-color: #c3dc47; }
.plus { font-size: 1.15em; font-weight: 500; line-height: 1; }
.secondary { color: #30362b; background: var(--surface); border-color: var(--line); }
.secondary:hover { color: var(--accent); border-color: var(--accent); }
.danger { color: #9a2541; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-top: 2px solid #657433; background: var(--surface); border-radius: 9px; margin-bottom: 13px; padding: 7px; gap: 6px; }
.filters button { display: grid; align-content: center; gap: 4px; background: transparent; color: var(--muted); border: 1px solid transparent; border-radius: 5px; min-height: 67px; padding: 6px clamp(10px, 2vw, 20px); text-align: left; font-size: .875rem; }
.filters button:hover { background: #f3f5e8; }
.filters button[aria-pressed="true"] { color: var(--accent); background: var(--accent-light); border-color: #dbe5ad; }
.filters strong { color: #171a14; font: 900 clamp(1.4rem, 2.8vw, 2rem)/1 var(--heading-font); font-variant-numeric: tabular-nums; }
.filters button[data-id="overdue"]:not([data-empty]) strong { color: #8b3026; }
.pill-filters {
  display: grid; padding: 4px; gap: 4px; border: 1px solid #dcdfd3; border-radius: 12px;
  background: #eeefe8; overflow: hidden; margin-bottom: 18px; isolation: isolate;
  box-shadow: inset 0 1px 2px #27311805; scrollbar-width: none; overscroll-behavior-x: contain; scroll-padding-inline: 4px;
}
.pill-filters::-webkit-scrollbar { display: none; }
.pill-filters button {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 7px 14px; border: 0; border-radius: 8px;
  color: #343c2b; text-align: center; gap: 8px;
}
.pill-filters .metric-pill { display: none; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; }
.pill-filters button[aria-pressed="true"] .metric-pill {
  display: block; background: linear-gradient(180deg, #e8ff87, var(--lime));
  border: 1px solid #c7de60;
  box-shadow: inset 0 1px 0 #ffffffa6, 0 2px 3px #4f621820, 0 1px 1px #4f62180c;
}
.pill-filters strong {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 5px;
  color: inherit; background: #ffffff85; font: 700 .75rem/1 "Inter", "Segoe UI", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}
.pill-filters .metric-label { font-size: .875rem; font-weight: 700; }
.pill-filters button:hover { background: #ffffff70; }
.pill-filters button[aria-pressed="true"] { color: #222c0b; background: transparent; }
.pill-filters button[aria-pressed="true"] strong { background: #46541712; color: inherit; box-shadow: inset 0 1px 1px #46541708; }
.pill-filters button:focus-visible { outline: 2px solid #657433; outline-offset: -3px; z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  .pill-filters button { transition: background-color 160ms ease; }
}
.follow-up-panel { display: grid; grid-template-columns: minmax(172px, .72fr) minmax(0, 2fr); align-items: start; gap: 17px; padding: 16px clamp(14px, 2.5vw, 24px); margin-bottom: 15px; border: 1px solid #252921; border-radius: 9px; color: #f7f8f1; background: linear-gradient(90deg, #111213 22%, #111213dc 56%, #11121364 100%), var(--orbit-image) right 67% / min(690px, 100%) auto no-repeat, #111213; }
.follow-up-copy { padding-top: 5px; }
.follow-up-copy h2 { font: 900 clamp(1.13rem, 2vw, 1.55rem)/1.15 var(--heading-font); text-transform: uppercase; letter-spacing: -.035em; }
.follow-up-copy p { color: var(--lime); font-size: .875rem; font-weight: 700; margin-top: 6px; }
.follow-up-list { min-width: 0; display: grid; gap: 5px; list-style: none; padding: 0; margin: 0; }
.follow-up-item { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 7px 11px; padding: 6px 7px 6px 11px; border: 1px solid #434b3c; border-radius: 5px; background: #222720db; }
.follow-up-person { display: grid; line-height: 1.3; overflow-wrap: anywhere; }
.follow-up-person strong { font-size: .9375rem; }
.follow-up-person span { color: #e2e6d7; font-size: .875rem; }
.follow-up-item .due { padding: 3px 6px; border-radius: 4px; background: #323b23; color: #e1f5a1; font-size: .8125rem; font-weight: 700; }
.follow-up-item .overdue { color: #ffd0c6; background: #50362f; }
.queue-button { display: inline-flex; justify-content: center; align-items: center; min-height: 34px; padding: 5px 9px; border: 1px solid #818a62; border-radius: 5px; color: #f6f8e9; background: #1a2115; font-size: .8125rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.queue-button:hover { color: #171a0a; background: var(--lime); }
.queue-button.mobile-queue-toggle { display: none; }
.pipeline-toolbar { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 180px); gap: 10px; margin-bottom: 11px; }
.pipeline-toolbar label { min-width: 0; }
.board-stage-control { display: none; }
.pipeline-empty { padding: 16px; color: var(--muted); font-size: .9rem; }
.board:has(> .pipeline-empty) { display: block; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 12px; overflow-x: auto; padding: 3px 2px 10px; border: 0; background: transparent; border-radius: 14px; scroll-snap-type: x proximity; scroll-padding-inline: 2px; }
.lane { --stage-color: #f5f6ef; --stage-header: #202321; --stage-ink: #fff; background: #f8f8f3; border: 1px solid #e3e5dd; border-radius: 14px; min-height: 340px; scroll-snap-align: start; }
:is(.lane, .contact-stage-pill)[data-stage="contacted"] { --stage-color: #a4c1e3; }
:is(.lane, .contact-stage-pill)[data-stage="conversation"] { --stage-color: var(--lime); }
:is(.lane, .contact-stage-pill)[data-stage="won"] { --stage-color: #7bd6a6; }
:is(.lane, .contact-stage-pill)[data-stage="lost"] { --stage-color: #f0a2ae; }
.lane h2 { margin: 0; padding: 4px; font: inherit; background: #eeefe8; border-radius: 13px 13px 0 0; }
.stage-header {
  display: flex; gap: 8px; align-items: center; width: 100%; min-height: 49px; padding: 8px;
  border: 0; border-bottom: 3px solid transparent; border-radius: 10px;
  color: var(--stage-ink); background: linear-gradient(180deg, #ffffff0d, #00000005), var(--stage-header); font: 700 .94rem/1.25 "Segoe UI", system-ui, sans-serif;
  box-shadow: inset 0 1px 0 #ffffff30, inset 0 0 0 1px #00000010, 0 2px 3px #17201420;
  text-align: left; letter-spacing: -.015em;
}
.lane[data-stage="conversation"] .stage-header { border-bottom-color: var(--stage-color); }
.stage-header:hover { box-shadow: inset 0 1px 0 #ffffff45, inset 0 0 0 1px color-mix(in srgb, var(--stage-ink) 24%, transparent), 0 3px 6px #17201426; }
.stage-header:active { box-shadow: inset 0 1px 3px #00000024, inset 0 0 0 1px #00000014; }
.stage-header:focus-visible { outline: 2px solid var(--stage-ink); outline-offset: -5px; }
.stage-name { min-width: 0; }
.stage-header small { margin-left: auto; min-width: 26px; padding: 4px 6px; border-radius: 6px; background: color-mix(in srgb, var(--stage-ink) 10%, transparent); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--stage-ink) 10%, transparent); text-align: center; font: 650 .85rem/1.2 "Segoe UI", system-ui, sans-serif; font-variant-numeric: tabular-nums; color: inherit; }
.lane-cards { display: grid; align-content: start; gap: 12px; padding: 10px 8px 14px; }
.lane-empty { border: 1px dashed #d9dece; border-radius: 5px; padding: 14px 6px; text-align: center; }
.stage-dot { width: 7px; height: 7px; border-radius: 100%; background: var(--stage-color); flex: 0 0 auto; }
.deal-card { display: grid; gap: 12px; width: 100%; padding: 14px 12px; border: 1px solid #e0e3da; border-radius: 13px; color: inherit; background: linear-gradient(180deg, #fff, #fdfdfa); box-shadow: inset 0 1px 0 #fff, 0 2px 4px #171b1309, 0 1px 1px #171b1305; text-align: left; overflow-wrap: anywhere; }
.deal-card:hover { border-color: color-mix(in srgb, var(--stage-header, #202321) 30%, #e0e3da); box-shadow: inset 0 1px 0 #fff, 0 5px 12px #171b1314, 0 1px 3px #171b1308; }
.deal-card:focus-visible { border-color: #a2be31; outline: 2px solid var(--lime); outline-offset: 1px; }
.deal-identity { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 9px; align-items: center; }
.deal-card .contact-initial { width: 36px; height: 36px; border-radius: 50%; font-size: .95rem; background: color-mix(in srgb, var(--stage-header, #202321) 12%, #fff); color: color-mix(in srgb, var(--stage-header, #202321) 35%, #161c13); box-shadow: inset 0 1px 0 #ffffffb3, inset 0 0 0 1px color-mix(in srgb, var(--stage-header, #202321) 8%, transparent); }
.deal-contact { display: grid; gap: 3px; line-height: 1.25; }
.deal-contact strong { font-size: 1rem; font-weight: 720; letter-spacing: -.02em; }
.deal-contact > span, .lane-empty, .contact-meta, .note time, .empty { font-size: .875rem; color: var(--muted); }
.deal-contact > span { color: #656d60; }
.deal-follow-up { display: grid; justify-items: start; gap: 6px; padding-top: 12px; border-top: 1px solid #eef0e9; line-height: 1.4; }
.deal-card .next-action { color: #30362b; font-size: .875rem; }
:is(.deal-card, .contact-follow-up-cell) .due { padding: 3px 6px; border-radius: 4px; background: #eef1e8; color: #4b5443; font-size: .8125rem; font-weight: 650; }
:is(.deal-card, .contact-follow-up-cell) .overdue { color: #8b3026; background: #fae9e5; }
:is(.deal-card, .contact-follow-up-cell) .today { color: var(--accent); background: var(--accent-light); }
:is(.deal-card, .contact-follow-up-cell) .due { position: relative; max-width: 100%; padding: 3px 8px 3px 25px; border-radius: 999px; font-size: .75rem; line-height: 1.5; box-shadow: inset 0 0 0 1px #29351b06, inset 0 1px 0 #ffffff66; }
:is(.deal-card, .contact-follow-up-cell) .due::before { content: ""; position: absolute; left: 8px; top: 50%; width: 11px; height: 11px; margin-top: -5.5px; border: 1.2px solid currentColor; border-radius: 50%; opacity: .8; }
:is(.deal-card, .contact-follow-up-cell) .due::after { content: ""; position: absolute; left: 13px; top: 50%; width: 3px; height: 4px; margin-top: -3px; border-left: 1px solid currentColor; border-bottom: 1px solid currentColor; opacity: .8; }
.deal-card[data-deal-id] { cursor: grab; user-select: none; }
.deal-grip { position: relative; display: block; border-radius: 5px; touch-action: none; }
.deal-grip::after {
  content: "";
  position: absolute;
  right: -3px; bottom: -2px;
  width: 16px;
  height: 18px;
  border: 1px solid #dfe3d8; border-radius: 5px;
  opacity: 0;
  background: radial-gradient(circle, #59664d 1px, transparent 1.2px) center / 4px 4px content-box, #fff;
  padding: 2px 3px; box-shadow: 0 1px 2px #17201414;
  pointer-events: none;
}
.deal-card:hover .deal-grip::after, .deal-card:focus-visible .deal-grip::after { opacity: 1; }
@media (hover: none) {
  .deal-grip::after { opacity: 1; }
}
.board.is-dragging { scroll-snap-type: none; }
.board.is-dragging, .board.is-dragging .deal-card { cursor: grabbing; }
.lane.is-drop-target { background: #e9efdb; border-color: #8e9e64; }
.lane.is-drop-target .stage-header { border-bottom-color: var(--lime); }
.deal-card.is-drag-source { border-color: #a4b181; border-style: dashed; background: #edf0e3; box-shadow: none; }
.deal-card.is-drag-source > * { visibility: hidden; }
.deal-card.drag-preview {
  position: fixed;
  z-index: 20;
  margin: 0;
  border-color: #98aa62;
  pointer-events: none;
  box-shadow: 0 12px 29px #171b133c, 0 2px 6px #171b1329;
  will-change: transform;
}
.demo-controls { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px 12px; margin-top: 10px; color: var(--muted); font-size: .875rem; }
.stage-color-preview {
  display: flex; align-items: center; gap: 9px; padding: 12px; min-height: 48px; margin-bottom: 12px;
  border-radius: 10px; background: var(--stage-header); color: var(--stage-ink); font-size: .9rem;
}
.stage-color-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.stage-color-grid button {
  display: grid; place-items: center; min-width: 0; min-height: 44px; padding: 4px; border: 0; border-radius: 50%;
  background: transparent; color: #42483d;
}
.stage-color-grid button:hover { background: #e8ebe2; }
.stage-color-grid button[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--swatch); }
.stage-swatch { position: relative; width: 34px; height: 34px; border-radius: 50%; background: var(--swatch); }
.stage-color-grid button[aria-pressed="true"] .stage-swatch::after {
  content: ""; position: absolute; top: 8px; left: 13px; width: 7px; height: 13px;
  border: solid var(--swatch-ink); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.stage-color-footer { display: flex; align-items: center; justify-content: space-between; gap: 5px; padding-top: 8px; margin-top: 8px; border-top: 1px solid #e6e8e0; }
.stage-color-status { margin: 0; color: var(--muted); font-size: .78rem; }
.stage-color-footer > div { display: flex; gap: 3px; }
.stage-color-footer button { min-height: 44px; padding: 5px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--accent); font-size: .8rem; font-weight: 650; }
.stage-color-footer button:hover:enabled { background: #eef1e7; }
.stage-color-footer button:disabled { color: #85897f; cursor: default; }
.stage-color-footer [data-color-save] { background: var(--lime); color: #202710; padding-inline: 14px; }
.stage-color-footer [data-color-save]:hover { background: #cfe94f; }
dialog.stage-color-dialog {
  position: fixed; inset: auto; margin: 0; width: min(340px, calc(100% - 24px)); padding: 14px;
  border: 1px solid #e0e3d9; border-radius: 17px; background: #fafbf8; box-shadow: 0 12px 40px #1721112e, 0 2px 6px #17211112;
}
.stage-color-dialog::backdrop { background: #11170e18; }
.stage-color-dialog .dialog-heading { border: 0; padding: 0; margin-bottom: 8px; gap: 8px; }
.stage-color-dialog .dialog-heading h2 { font-size: 1rem; font-weight: 700; letter-spacing: -.02em; }
.stage-color-dialog .dialog-heading button {
  width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 50%; background: #eceee7;
  color: #535a4c; font: 400 1.5rem/1 system-ui, sans-serif;
}
@media (prefers-reduced-motion: no-preference) {
  .deal-card:not(.drag-preview):not(.is-drag-source) { transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease; }
  .deal-card:not(.drag-preview):not(.is-drag-source):active { transform: scale(.985); }
  .deal-grip::after { transition: opacity 140ms ease; }
  .stage-header { transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 120ms ease; }
  .stage-header:active { transform: scale(.985); }
  .stage-color-dialog[open] { animation: stage-picker-in 150ms ease-out; }
  .stage-color-preview { transition: background-color 140ms ease, color 140ms ease; }
  @keyframes stage-picker-in { from { opacity: .4; transform: translateY(-4px); } }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .deal-card:not(.drag-preview):not(.is-drag-source):hover:not(:active) { transform: translateY(-2px); }
}

label { font-size: .9375rem; font-weight: 650; display: grid; gap: 5px; }
input, textarea, select { width: 100%; min-height: 43px; border: 1px solid #c9cebc; border-radius: 6px; background: var(--surface); color: inherit; padding: 8px 10px; font-size: 1rem; font-weight: 400; }
textarea { resize: vertical; }
.contact-initial { display: grid; place-items: center; background: #edf2d9; font-weight: 800; color: var(--accent); }
.filters.contact-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.contact-toolbar { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 15px; }
.contact-toolbar label { min-width: 0; }
:is(.contact-directory, .template-library) { border: 1px solid var(--line); border-radius: 9px; background: var(--surface); overflow: hidden; }
.directory-heading {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px clamp(13px, 2vw, 19px); border-bottom: 2px solid #657433;
  color: #f7f8f1; background: linear-gradient(90deg, var(--dark) 56%, #11121399 100%),
    var(--orbit-image) right 50% / 350px auto no-repeat, var(--dark);
}
.directory-heading h2 { font: 900 clamp(.9rem, 1.7vw, 1.1rem)/1.2 var(--heading-font); letter-spacing: -.02em; text-transform: uppercase; }
.directory-count { flex-shrink: 0; color: var(--lime); font-size: .875rem; font-weight: 650; }
.contact-directory { border-color: #e0e3d9; border-radius: 14px; background: #f8f8f3; }
.contact-directory .directory-heading { margin: 4px 4px 0; border-radius: 10px; box-shadow: inset 0 1px 0 #ffffff24, 0 2px 3px #17201414; }
.contact-table { width: 100%; border-collapse: separate; border-spacing: 0 8px; table-layout: fixed; padding: 0 8px 4px; }
.contact-table th, .contact-table td { padding: 10px clamp(10px, 1.4vw, 17px); text-align: left; }
.contact-table th { padding-block: 5px; color: #656d60; background: transparent; font-size: .75rem; font-weight: 650; }
.contact-table th:first-child { width: 29%; }
.contact-table th:nth-child(2) { width: 15%; }
.contact-table th:nth-child(3) { width: 17%; }
.contact-table th:nth-child(4) { width: 27%; }
.contact-table th:last-child { width: 12%; }
.contact-table tbody tr { cursor: pointer; border-radius: 13px; box-shadow: 0 2px 4px #171b1309, 0 1px 1px #171b1305; }
.contact-table tbody td { border-block: 1px solid #e0e3da; background: linear-gradient(180deg, #fff, #fdfdfa); box-shadow: inset 0 1px 0 #fff; }
.contact-table tbody td:first-child { border-left: 1px solid #e0e3da; border-radius: 13px 0 0 13px; }
.contact-table tbody td:last-child { border-right: 1px solid #e0e3da; border-radius: 0 13px 13px 0; }
.contact-table tbody tr:hover, .contact-table tbody tr:focus-within { box-shadow: 0 5px 12px #171b1314, 0 1px 3px #171b1308; }
.contact-table tbody tr:is(:hover, :focus-within) td { border-color: color-mix(in srgb, var(--stage-header) 25%, #e0e3da); }
.contact-name-button { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 10px; max-width: 100%; padding: 0; border: 0; border-radius: 8px; color: inherit; background: transparent; text-align: left; }
.contact-name-button:hover strong { color: var(--accent); }
.contact-name-button .contact-initial { width: 36px; height: 36px; border-radius: 50%; font-size: .95rem; background: color-mix(in srgb, var(--stage-header) 12%, #fff); color: color-mix(in srgb, var(--stage-header) 35%, #161c13); box-shadow: inset 0 1px 0 #ffffffb3, inset 0 0 0 1px color-mix(in srgb, var(--stage-header) 8%, transparent); }
.contact-identity { display: grid; gap: 2px; min-width: 0; line-height: 1.25; overflow-wrap: anywhere; }
.contact-identity strong { font-size: 1rem; font-weight: 720; letter-spacing: -.02em; }
.contact-identity > span { color: #656d60; font-size: .8125rem; }
.contact-platform-pill, .contact-stage-pill { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 9px; border-radius: 999px; font-size: .75rem; font-weight: 650; line-height: 1.25; box-shadow: inset 0 1px 0 #ffffff99, inset 0 0 0 1px #29351b06; }
.contact-platform-pill { color: #5d6656; background: #f0f2eb; }
.contact-stage-pill { color: color-mix(in srgb, var(--stage-header) 35%, #161c13); background: color-mix(in srgb, var(--stage-header) 12%, #fff); }
.contact-stage-pill .stage-dot { width: 6px; height: 6px; background: color-mix(in srgb, var(--stage-header) 65%, #22271e); }
.contact-next-action { display: block; color: #363d32; font-size: .875rem; overflow-wrap: anywhere; }
.contact-follow-up-cell .due { display: inline-block; }
.contact-next-action + .due { margin-top: 6px; }
.contact-cell-empty { color: var(--muted); }
.contact-chat-cell .secondary { min-height: 36px; padding: 5px 8px; border-radius: 8px; border-color: #dfe3d6; background: linear-gradient(180deg, #fff, #f5f7ee); box-shadow: inset 0 1px 0 #fff, 0 1px 2px #17201409; font-size: .8125rem; }
.contact-empty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 11px; padding: 18px 16px; color: var(--muted); }
.template-grid > .empty { padding: 20px 15px; }
.template-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 13px; }
.template { display: grid; align-content: space-between; gap: 16px; padding: 16px; border: 1px solid #e0e3da; background: linear-gradient(180deg, #fff, #fdfdfa); border-radius: 13px; min-width: 0; box-shadow: inset 0 1px 0 #fff, 0 2px 4px #171b1309, 0 1px 1px #171b1305; }
.template:hover, .template:focus-within { border-color: #cbd3bd; box-shadow: inset 0 1px 0 #fff, 0 5px 12px #171b1314, 0 1px 3px #171b1308; }
.template h3 { color: #20271c; font-size: 1.0625rem; font-weight: 720; line-height: 1.35; letter-spacing: -.02em; }
.template .actions { border-top: 1px solid #eef0e9; padding-top: 12px; }
.template .actions .secondary { border-radius: 8px; box-shadow: inset 0 1px 0 #fff, 0 1px 2px #17201409; }
.template .actions > :first-child { background: #f0f4e1; border-color: #dbe4bf; color: var(--accent); }
.template p, .note p { margin-top: 5px; overflow-wrap: anywhere; white-space: pre-wrap; }
.template p { color: var(--muted); }
.template-journey { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.template-journey.pill-filters button { padding-inline: 8px; white-space: nowrap; }
.template-toolbar { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)) auto; align-items: end; gap: 10px; margin-bottom: 16px; }
.template-favorites-filter { min-height: 43px; }
.template-favorites-filter[aria-pressed="true"] { color: var(--accent); background: var(--accent-light); border-color: #c7d494; }
.template-toolbar label, .drawer-template-toolbar label { min-width: 0; }
.template-library { border-color: #e0e3d9; border-radius: 14px; background: #f8f8f3; }
.template-library .directory-heading { margin: 4px 4px 0; border-radius: 10px; box-shadow: inset 0 1px 0 #ffffff24, 0 2px 3px #17201414; }
.template-library .template-grid { padding: 12px; gap: 14px; background: #f8f8f3; grid-template-columns: repeat(auto-fill, minmax(min(282px, 100%), 1fr)); }
.template-library .template { padding: 16px; gap: 16px; }
.template-library .template h3 { margin-top: 10px; overflow-wrap: anywhere; }
.template-library .template .template-message { margin-top: 12px; color: #3d4537; font-size: .9375rem; line-height: 1.6; }
.template-library .template .actions { gap: 8px; }
.template-library .template .secondary { min-height: 37px; padding: 5px 9px; font-size: .8125rem; }
.template-library .template [data-action="copy-template"] { background: linear-gradient(180deg, #fff, #f5f7ee); border-color: #dfe3d6; }
.template [data-action="copy-template"]::before { content: ""; width: 11px; height: 12px; flex-shrink: 0; margin-right: 2px; border: 1.2px solid currentColor; border-radius: 2px; box-shadow: 3px -3px 0 -1px #fff, 3px -3px 0 0 currentColor; opacity: .8; }
.template-library .template [data-action="preview-template"] { color: #283506; background: linear-gradient(180deg, #effbcf, #e7f8ad); border-color: #d7e98f; box-shadow: inset 0 1px 0 #ffffffa6, 0 1px 2px #4f621814; }
.template-library .template [data-action="preview-template"]:hover { background: var(--lime); border-color: #b3c655; }
.template .template-usage { margin-top: 12px; padding: 9px 10px; border-radius: 8px; color: #5b6452; background: #f3f5ee; box-shadow: inset 0 1px 0 #ffffff80; font-size: .8125rem; line-height: 1.5; }
.template-usage strong { font-weight: 650; color: #414d36; }
.template-usage + .template-message { margin-top: 12px; }
.template-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.template-category {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px;
  color: #3e4938; background: #eff1e9; font-size: .75rem; font-weight: 650; line-height: 1.25;
  box-shadow: inset 0 1px 0 #ffffff99, inset 0 0 0 1px #29351b06;
}
.template-category::before { content: ""; width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; background: currentColor; opacity: .8; }
.template-category[data-category="outreach"] { color: #344d68; background: #e3edf7; }
.template-category[data-category="qualification"] { color: #3e5360; background: #e1edf0; }
.template-category[data-category="resource"] { color: #3c5846; background: #e6efe1; }
.template-category[data-category="loom"] { color: #584775; background: #eee7f5; }
.template-category[data-category="follow-up"] { color: var(--accent); background: var(--accent-light); }
.template-category[data-category="pricing"] { color: #62482c; background: #f6edd9; }
.template-category[data-category="booking"] { color: #4e3b67; background: #efe8f5; }
.template-category[data-category="closing"] { color: #2c5941; background: #e2f1e6; }
.template-favorite {
  display: grid; place-items: center; flex-shrink: 0; width: 37px; height: 37px;
  padding: 0; border: 1px solid #e0e3d8; border-radius: 10px;
  background: linear-gradient(180deg, #fff, #f6f7f1); color: #606755; font-size: 1.15rem; line-height: 1;
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px #17201409;
}
.template-favorite:hover, .template-favorite[aria-pressed="true"] {
  background: linear-gradient(180deg, #effbcf, #e7f8ad); border-color: #c9d39f; color: var(--accent);
}
.template-empty { grid-column: 1 / -1; padding: 16px 10px; color: var(--muted); }
.template-lesson { display: block; margin-top: 5px; color: #68715f; font-size: .75rem; font-weight: 550; }
.template-draft-hint { margin-block: 8px 10px; color: var(--muted); font-size: .875rem; }
.drawer-template-toolbar { display: grid; grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 1fr)); gap: 10px; }

dialog { width: min(610px, calc(100% - 24px)); max-height: calc(100dvh - 24px); border: 1px solid var(--line); border-radius: 11px; padding: clamp(16px, 4vw, 26px); color: inherit; background: #fafbf5; box-shadow: 0 20px 60px #20241a44; }
dialog::backdrop { background: #0d100d80; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 15px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.dialog-heading h2 { overflow-wrap: anywhere; font-size: 1.5rem; line-height: 1.2; letter-spacing: -.035em; }
.contact-drawer[open] {
  position: fixed;
  inset: 0 0 0 auto;
  display: flex;
  flex-direction: column;
  width: min(620px, 100%);
  max-width: 100%;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-width: 0 0 0 1px;
  border-radius: 0;
  box-shadow: -16px 0 48px #0d100d40;
}
body:has(.contact-drawer[open]) { overflow: hidden; }
.contact-drawer .dialog-heading { flex-shrink: 0; margin: 0; padding: 14px clamp(16px, 4vw, 26px); }
.contact-drawer .dialog-content { min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 17px clamp(16px, 4vw, 26px) 24px; }
.contact-drawer .contact-profile-heading {
  align-items: flex-start;
  gap: 12px;
  padding-block: 15px 20px;
  border-bottom-color: #30352a;
  color: #f8f9f3;
  background: linear-gradient(90deg, var(--dark) 17%, #111213f0 43%, #11121328 100%),
    var(--orbit-image) right 56% / min(420px, 85%) auto no-repeat, var(--dark);
}
.contact-heading-text { min-width: 0; }
.contact-brand-mark {
  display: block;
  width: 19px;
  height: 17px;
  margin-bottom: 9px;
  background: var(--lime);
  clip-path: polygon(0 0, 100% 0, 61% 48%, 61% 100%, 38% 84%, 38% 48%);
}
.contact-profile-heading h2 {
  font: 900 clamp(1.5rem, 4.6vw, 2.125rem)/1.05 var(--heading-font);
  letter-spacing: -.045em;
  text-transform: uppercase;
}
.contact-profile-heading .contact-meta { margin-top: 6px; color: #e0e3da; overflow-wrap: anywhere; }
.contact-profile-heading .secondary {
  flex-shrink: 0;
  color: #f8f9f3;
  border-color: #858b7d;
  background: #151716d9;
}
.contact-profile-heading .secondary:hover { color: var(--lime); border-color: var(--lime); }
.contact-profile-heading .secondary:focus-visible { outline-color: var(--lime); }

@media (prefers-reduced-motion: no-preference) {
  .contact-drawer[open] { animation: slide-contact-in 220ms cubic-bezier(.2, .7, .25, 1) both; }
}

@keyframes slide-contact-in {
  from { transform: translateX(100%); }
}

.detail-section { padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--line); }
.detail-section:first-of-type { padding-top: 0; margin-top: 0; border-top: 0; }
.dialog-content > .actions + .detail-section { margin-top: 16px; }
.contact-section-title {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 41px;
  margin-bottom: 13px;
  padding: 9px 13px;
  border-radius: 6px;
  color: #f8f9f3;
  background: var(--dark);
  font: 900 1rem/1.2 var(--heading-font);
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.contact-section-orbit {
  background: linear-gradient(90deg, var(--dark) 45%, #1112138c 74%, #11121315 100%),
    var(--orbit-image) right 45% / 250px auto no-repeat, var(--dark);
}
.contact-section-title svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  color: var(--lime);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#deal-form > button, #note-form > button, #contact-templates .template .actions > button {
  font-weight: 800;
  text-transform: uppercase;
}
#contact-templates .template h3 {
  font-family: var(--heading-font);
  font-weight: 900;
  letter-spacing: -.035em;
  text-transform: uppercase;
}
#contact-templates .template p { color: #3d4239; }
form { display: grid; gap: 10px; justify-items: start; }
form > label, .fields { width: 100%; }
.fields { display: grid; grid-template-columns: 1fr minmax(145px, .55fr); gap: 10px; }
.form-error { color: #a02038; font-size: .875rem; }
.form-error:empty, #duplicate:empty { display: none; }
.note-list, #contact-templates { margin-top: 12px; display: grid; gap: 9px; }
.note { background: var(--surface); padding: 11px; border-radius: 8px; border: 1px solid var(--line); }
.note button, .dialog-content > label + .actions { margin-top: 10px; }
#status { position: fixed; top: 12px; right: 12px; z-index: 25; max-width: calc(100% - 24px); opacity: 0; pointer-events: none; }
#status.visible { display: flex; align-items: center; gap: 11px; opacity: 1; color: #fff; background: #222719; border: 1px solid #414b31; border-radius: 8px; padding: 8px 10px; box-shadow: 0 4px 18px #171b1330; }
#status-message { overflow-wrap: anywhere; }
#undo-move { min-height: 34px; padding: 4px 10px; border-color: #ccd7a4; background: var(--accent-light); color: var(--accent); pointer-events: auto; }
#undo-move:focus-visible { outline-color: var(--lime); }
.notice { display: none; }
.notice.visible { display: block; position: sticky; top: 0; margin-bottom: 10px; padding: 8px 12px; border-radius: 8px; color: var(--accent); background: var(--accent-light); }

@media (max-width: 1000px) {
  .template-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .template-toolbar > label:first-child { grid-column: 1 / -1; }
  .contact-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .template-journey { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(110px, 1fr); overflow-x: auto; scroll-snap-type: x proximity; }
  .template-journey button { scroll-snap-align: start; }
  .contact-table { display: block; padding: 10px; }
  .contact-table tbody { display: grid; gap: 10px; }
  .contact-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .contact-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 10px 12px; padding: 14px 12px; border: 1px solid #e0e3da; background: linear-gradient(180deg, #fff, #fdfdfa); }
  .contact-table tbody td, .contact-table tbody td:first-child, .contact-table tbody td:last-child { min-width: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
  .contact-table tbody tr:is(:hover, :focus-within) { border-color: color-mix(in srgb, var(--stage-header) 25%, #e0e3da); }
  .contact-name-cell { grid-column: 1 / -1; }
  .contact-follow-up-cell { grid-column: 1; }
  .contact-chat-cell { grid-column: 2; justify-self: end; }
  .contact-table td[data-empty] { display: none; }
  .contact-table tr:has(.contact-chat-cell[data-empty]) .contact-follow-up-cell { grid-column: 1 / -1; }
}

.testimonial-tabs { grid-template-columns: repeat(4,minmax(0,1fr)); max-width: 680px; margin-bottom: 24px; }
.testimonial-tabs button { background: transparent; }
.testimonial-toolbar { display: grid; grid-template-columns: minmax(180px,1fr) minmax(130px,180px) minmax(150px,190px) auto; align-items: center; gap: 10px; padding: 12px; background: #fff; border: 1px solid #d8e3ec; border-radius: 16px; box-shadow: inset 0 1px #fff,0 3px 12px #28456106; }
.filter-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.testimonial-search-field { display: flex; align-items: center; position: relative; min-width: 0; }
.testimonial-search-field input { height: 44px; padding: 10px 38px; border-color: #dce5ec; border-radius: 10px; background: #f7f9fb; font-size: .875rem; }
.testimonial-search-field input::-webkit-search-cancel-button { -webkit-appearance: none; }
.filter-search-icon { position: absolute; left: 14px; width: 13px; height: 13px; border: 1.5px solid #7890a3; border-radius: 50%; pointer-events: none; }
.filter-search-icon::after { content: ''; position: absolute; width: 5px; height: 1.5px; background: #7890a3; transform: rotate(45deg); right: -4px; bottom: -2px; }
#testimonial-search-clear { position: absolute; right: 0; width: 40px; min-height: 44px; padding: 0; border: 0; background: transparent; color: #597185; font-size: 1.3rem; border-radius: 10px; }
.testimonial-filter-trigger { display: flex; align-items: center; gap: 8px; height: 44px; min-width: 0; padding: 8px 12px; border: 1px solid #dce5ec; border-radius: 10px; background: #fff; color: #2d4253; font-size: .82rem; text-align: left; }
.filter-trigger-label { color: #708598; font-size: .72rem; font-weight: 500; }
.testimonial-filter-trigger [data-filter-value] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.filter-chevron { flex: 0 0 6px; height: 6px; border-right: 1.5px solid #708598; border-bottom: 1.5px solid #708598; transform: rotate(45deg); margin: -3px 0 0 auto; }
.testimonial-filter-trigger:hover,.testimonial-filter-trigger[aria-expanded="true"] { border-color: #8eacc4; background: #f3f7fb; }
.testimonial-filter-trigger.is-filtered { border-color: #c4da8a; background: #f3f8e6; }
.testimonial-import-button.secondary { display: flex; justify-content: center; align-items: center; gap: 9px; height: 44px; padding: 8px 12px; border-color: #dce5ec; border-radius: 10px; background: linear-gradient(#fff,#f6f8fa); color: #38556b; font-size: .82rem; white-space: nowrap; }
.filter-import-icon { position: relative; width: 13px; height: 15px; border: 1.5px solid currentColor; border-radius: 3px; flex-shrink: 0; }
.filter-import-icon::before { content: ''; position: absolute; top: -3px; left: 2px; width: 6px; height: 4px; border: 1px solid currentColor; border-radius: 2px; background: #fff; }
.filter-import-icon::after { content: '+'; position: absolute; inset: 1px 0 0; font: 12px/12px sans-serif; text-align: center; }
.testimonial-active-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; grid-column: 1 / -1; padding-top: 10px; border-top: 1px solid #edf1f5; }
.testimonial-active-filters button { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; min-height: 32px; padding: 5px 10px; border: 1px solid #d5e3ef; border-radius: 8px; background: #eaf2f9; color: #406681; font-size: .75rem; }
.testimonial-active-filters button > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.testimonial-active-filters .filter-clear-all { border-color: transparent; background: transparent; color: #647b8c; text-decoration: underline; text-underline-offset: 3px; }
dialog.testimonial-filter-dialog { position: fixed; inset: auto; margin: 0; width: min(310px,calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 14px; border: 1px solid #d7e3ed; border-radius: 18px; background: #fff; box-shadow: 0 16px 48px #19354d26,0 3px 10px #19354d12; }
.testimonial-filter-dialog::backdrop { background: #1f35470a; }
.testimonial-filter-dialog .dialog-heading { margin: 0 0 4px; padding: 0; border: 0; }
.testimonial-filter-dialog .dialog-heading h2 { font-size: 1rem; color: #2d4253; }
.testimonial-filter-dialog .dialog-heading button { width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 50%; background: #f0f4f8; color: #627a8f; font-size: 1.3rem; }
.testimonial-filter-dialog .notice:empty { display: none; }
.filter-picker-hint { font-size: .72rem; color: #738596; margin: 0 0 12px; line-height: 1.5; }
.filter-picker-options { display: grid; gap: 3px; }
.filter-picker-option { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 9px 10px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: #3e5364; text-align: left; font-size: .875rem; }
.filter-picker-option:hover { background: #f3f7fa; }
.filter-picker-option[aria-pressed="true"] { background: #eaf3fb; border-color: #d3e3f0; color: #305e80; }
.filter-option-dot { width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: #82a8c7; box-shadow: 0 0 0 3px #edf4fa; }
.filter-option-name { flex: 1; overflow-wrap: anywhere; min-width: 0; }
.filter-option-count { padding: 2px 6px; min-width: 24px; text-align: center; border-radius: 6px; background: #eef3f7; color: #688095; font-size: .72rem; font-variant-numeric: tabular-nums; }
.filter-option-check { visibility: hidden; color: #426f91; font-weight: 750; }
.filter-picker-option[aria-pressed="true"] .filter-option-check { visibility: visible; }
@media (prefers-reduced-motion: no-preference) { .testimonial-filter-dialog[open] { animation: testimonial-picker-in 160ms ease-out; } @keyframes testimonial-picker-in { from { opacity: 0; transform: translateY(6px); } } }
@media(max-width:1100px) and (min-width:761px) { .testimonial-toolbar { grid-template-columns: minmax(140px,1fr) 150px 165px auto; }.filter-trigger-label { display: none; } }
@media(max-width:760px) {
  .testimonial-toolbar { grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; gap: 8px; padding: 10px; border-radius: 14px; }
  .testimonial-search-field { grid-column: 1 / -1; }
  .testimonial-filter-trigger { padding-inline: 9px; font-size: .75rem; gap: 5px; }
  .filter-trigger-label { display: none; }
  .testimonial-import-button.secondary { padding-inline: 9px; font-size: .75rem; gap: 6px; }
  .testimonial-active-filters button { min-height: 44px; }
  dialog.testimonial-filter-dialog { inset: auto 0 0; width: 100%; max-width: none; max-height: min(80dvh,680px); padding: 18px 18px calc(18px + env(safe-area-inset-bottom,0px)); border-radius: 24px 24px 0 0; }
  .testimonial-filter-dialog::backdrop { background: #14283c55; backdrop-filter: blur(3px); }
  .testimonial-filter-dialog::before { content: ''; display: block; width: 34px; height: 4px; margin: -8px auto 12px; border-radius: 4px; background: #d1dce5; }
  .filter-picker-option { min-height: 48px; }
  @media (prefers-reduced-motion: no-preference) { .testimonial-filter-dialog[open] { animation: testimonial-sheet-in 220ms cubic-bezier(.22,.73,.2,1); } @keyframes testimonial-sheet-in { from { transform: translateY(100%); } } }
}
.testimonial-toolbar label { min-width: 0; }
.testimonial-library-summary { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 20px 2px 12px; color: var(--muted); font-size: .8rem; }
.testimonial-grid { columns: 290px; column-gap: 16px; }
.testimonial-card { display: inline-flex; vertical-align: top; width: 100%; break-inside: avoid; flex-direction: column; gap: 14px; padding: 18px; margin: 0 0 16px; background: linear-gradient(145deg,#fff 30%,#eef5fb); border: 1px solid #d2dfe9; border-radius: 18px; box-shadow: inset 0 1px 0 #fff,0 2px 3px #20374d06,0 6px 18px #20374d0a; min-width: 0; transition: border-color .2s,box-shadow .2s; }
.testimonial-card:hover,.testimonial-card:focus-within { border-color: #8cafcd; box-shadow: inset 0 1px 0 #fff,0 4px 8px #20374d09,0 10px 24px #20374d10; }
.testimonial-card.is-text blockquote { border-left: 3px solid #77a4c7; padding-left: 14px; font-size: 1rem; color: #293d4d; }
.testimonial-card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.testimonial-state { padding: 4px 8px; border-radius: 6px; color: #656c5d; background: #f0f1eb; font-size: .7rem; font-weight: 650; }
.testimonial-state.is-ready { background: #edf4d8; color: #536a2f; }
.testimonial-rating { color: #d97706; letter-spacing: 2px; font-size: .9rem; }
.testimonial-card blockquote { margin: 0; color: #46513d; font-size: .875rem; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.testimonial-example-notice { margin: -6px 0 20px; padding: 12px 15px; border: 1px solid #dce4c9; border-radius: 10px; background: #eff4e4; color: #5c694c; font-size: .8rem; }
.testimonial-example-notice strong { color: #40522c; margin-right: 6px; }
.testimonial-example-label { color: #59748a; font-size: .7rem; font-weight: 650; margin-top: -7px; }
.testimonial-example-label span { font-weight: 400; }
.testimonial-card .fg-media { border-radius: 12px; overflow: hidden; background: #f0f3e9; border: 1px solid #e5e9dd; }
.testimonial-card .fg-media img { display: block; width: 100%; height: auto; }
.testimonial-card .fg-media-caption { display: block; padding: 6px 10px; color: #526e84; background: #eaf2f9; font-size: .7rem; }
.testimonial-person { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.testimonial-avatar { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border: 1px solid #fff; border-radius: 50%; background: #e2edf6; color: #466b89; font-size: .8rem; font-weight: 750; box-shadow: 0 0 0 3px #e4eef7; }
.testimonial-avatar.is-photo { background-image: var(--testimonial-portraits); background-size: 400% 200%; background-repeat: no-repeat; }
.testimonial-person > div { min-width: 0; overflow-wrap: anywhere; }
.testimonial-person strong { font-size: .875rem; }
.testimonial-person small { display: block; color: var(--muted); font-size: .78rem; margin-top: 3px; }
.testimonial-tags, .testimonial-tag-picker { display: flex; flex-wrap: wrap; gap: 6px; }
.testimonial-tags span { border: 1px solid #d8e5ef; background: #eaf2f9; border-radius: 6px; padding: 2px 7px; font-size: .68rem; color: #496d8a; overflow-wrap: anywhere; }
.testimonial-tags small { color: var(--muted); }
.testimonial-card .actions { padding-top: 12px; border-top: 1px solid #dfe8ef; gap: 8px; }
.testimonial-card .actions button:first-child { background: linear-gradient(#f9fbed,#edf3df); border-color: #dce5c7; color: #44572b; }
.testimonial-card .secondary { min-height: 38px; padding: 6px 11px; font-size: .8rem; }
.testimonial-source { margin-left: auto; font-size: .78rem; }
.testimonial-empty { column-span: all; grid-column: 1 / -1; text-align: center; padding: 48px 24px; border: 1px dashed #cfd7bf; border-radius: 16px; background: linear-gradient(145deg,#fbfdf4,#f0f4e6); }
.testimonial-empty-mark { display: block; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 18px; background: #e5f0c3; color: #586a35; font: 70px/1.2 Georgia,serif; }
.testimonial-empty h2 { font-size: 1.4rem; letter-spacing: -.035em; }
.testimonial-empty p { margin: 10px auto 22px; max-width: 48ch; color: var(--muted); font-size: .9rem; }
.field-hint { color: var(--muted); font-size: .78rem; line-height: 1.5; margin: 6px 0 14px; }
.testimonial-tag-picker { margin: 10px 0 16px; }
.testimonial-tag-picker .secondary { min-height: 36px; padding: 6px 10px; font-size: .78rem; }
.testimonial-tag-picker [aria-pressed="true"] { background: #e9f6c4; border-color: #aabe72; color: #435723; box-shadow: inset 0 1px #fff; }
.testimonial-ready, .widget-all { display: flex; align-items: start; gap: 10px; padding: 12px; background: #f0f4e7; border-radius: 9px; font-size: .84rem; margin: 12px 0; }
.testimonial-ready input, .widget-all input { width: 20px; height: 20px; min-height: 20px; flex: 0 0 20px; margin: 2px 0 0; accent-color: #647c33; }
.testimonial-ready small { display: block; color: var(--muted); font-size: .75rem; font-weight: 400; margin-top: 4px; }
.testimonial-import-list { padding-left: 22px; max-height: 360px; overflow: auto; scrollbar-width: none; }
.testimonial-import-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.testimonial-import-list p { white-space: pre-wrap; font-size: .875rem; margin: 6px 0; }
.testimonial-import-list small { color: var(--muted); }
.widget-builder { display:grid; grid-template-columns: 290px minmax(0,1fr); gap:18px; align-items:start; }
.widget-controls { display:grid; gap:20px; padding:20px; border:1px solid #d9e3eb; border-radius:18px; background:#fff; box-shadow:0 4px 18px #233e5507; }
.widget-controls h2,.widget-preview-panel h2 { font-size:1.15rem;letter-spacing:-.03em; }
.widget-builder .eyebrow { display:block;font-size:.62rem;letter-spacing:.13em;font-weight:750;color:#6c879e;margin-bottom:5px; }
.widget-settings-section { display:grid;gap:20px;min-width:0; }
.widget-controls fieldset { min-width:0;border:0;padding:0;margin:0; }
.widget-controls legend,.widget-field-label { display:block;width:100%;font-size:.8rem;font-weight:650;margin-bottom:10px;color:#344e62; }
.widget-controls label { font-size:.8rem;color:#344e62; }
.widget-controls input,.widget-controls select { min-height:44px;border-color:#d8e3eb;border-radius:9px;font-size:.85rem; }
.widget-controls .fields { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0; }
.widget-controls .fields label { min-width:0; }
.widget-controls .field-hint { font-size:.73rem;line-height:1.55;color:#758594;margin:0; }
.widget-segmented { display:flex;padding:4px;background:#f0f3f5;border:1px solid #e1e7ec;border-radius:11px;gap:3px; }
.widget-segmented button { flex:1;min-height:36px;padding:7px 12px;border:1px solid transparent;border-radius:8px;background:transparent;color:#637a8c;font-size:.78rem;font-weight:650;white-space:nowrap; }
.widget-segmented button[aria-pressed="true"] { background:linear-gradient(#eaff9a,#dff969);border-color:#c5dc6c;color:#304016;box-shadow:inset 0 1px #ffffffa0,0 2px 3px #28451b12; }
.widget-selection-choices { display:grid;gap:8px; }
.widget-selection-choices button { display:flex;align-items:center;gap:10px;padding:12px;text-align:left;border:1px solid #e0e7ed;border-radius:11px;background:#fff;color:#355166; }
.widget-selection-choices strong { display:block;font-size:.8rem; }
.widget-selection-choices small { display:block;font-size:.68rem;color:#788a98;margin-top:4px; }
.widget-selection-choices [aria-pressed="true"] { background:#f3f8e7;border-color:#cfdfa9; }
.widget-choice-check { flex:0 0 16px;height:16px;border:1px solid #b9c8d3;border-radius:50%;background:#fff; }
[aria-pressed="true"] > .widget-choice-check { background:#667f35;box-shadow:inset 0 0 0 4px #f3f8e7;border-color:#667f35; }
#widget-tag-section { display:grid;gap:14px; }
.widget-tag-options .testimonial-tag-picker { margin:0;gap:6px; }
.widget-tag-options .secondary { min-height:36px;padding:6px 9px;border-radius:8px;border-color:#dbe5ed;color:#4c6b82;background:#f6f9fc;font-size:.72rem; }
.widget-tag-options .secondary span { opacity:.7;font-size:.65rem;margin-left:4px; }
.widget-tag-options [aria-pressed="true"] { background:#e8f2fa;border-color:#97b9d3;color:#305e80; }
.widget-visual-choices { display:grid;grid-template-columns:1fr 1fr;gap:10px; }
.widget-visual-choices button { display:grid;gap:10px;padding:10px;border:1px solid #dce5ec;border-radius:12px;background:#fff;color:#526c81;text-align:left; }
.widget-visual-choices strong { font-size:.75rem; }
.widget-visual-choices [aria-pressed="true"] { background:#f3f8e8;border-color:#bacf88;box-shadow:0 0 0 1px #d7e6b6; }
.widget-layout-art { display:grid;grid-template-columns:1fr 1fr;gap:5px;height:53px;align-items:start;background:#eef2f5;border-radius:6px;padding:7px; }
.widget-layout-art i { display:block;background:#acc1d2;border-radius:3px;height:16px; }
.widget-layout-art.grid i:nth-child(2) { height:22px; }.widget-layout-art.grid i:nth-child(3) { margin-top:-6px; }
.widget-layout-art.list { grid-template-columns:1fr;gap:4px; }.widget-layout-art.list i { height:7px; }
.widget-layout-art.tiles { align-items:stretch; }.widget-layout-art.tiles i { height:100%;min-height:0; }
.widget-layout-art.spotlight { grid-template-columns:repeat(3,1fr);gap:4px; }.widget-layout-art.spotlight i { height:10px; }.widget-layout-art.spotlight i:first-child { grid-column:1/-1;height:22px; }
.widget-layout-art.slider { grid-template-columns:repeat(3,65%);overflow:hidden;gap:5px; }.widget-layout-art.slider i { height:100%; }.widget-layout-art.slider i:last-child { display:none; }
.widget-controls .widget-layout-hint { margin-top:10px;min-height:34px; }
.widget-size-options button { min-width:0;padding-inline:8px; }
.widget-column-options { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px; }
.widget-column-options button { min-height:40px;padding:8px;border:1px solid #45523b;border-radius:9px;background:#1b221b;color:#bdcbb1;font-size:.8rem;font-weight:650; }
.widget-column-options button:first-child { grid-column:span 2; }
.widget-column-options button:hover:enabled { border-color:#91a966; }
.widget-column-options [aria-pressed="true"] { background:linear-gradient(#eaff9a,#dff969);border-color:#c5dc6c;color:#304016;box-shadow:inset 0 1px #ffffffa0; }
.widget-column-options button:disabled { opacity:.4; }
@media(max-width:760px) { .widget-column-options button { min-height:44px; } }
.widget-theme-art { display:grid;gap:5px;height:53px;padding:9px;background:#f1f4f7;border:1px solid #e0e6eb;border-radius:6px; }
.widget-theme-art i { display:block;background:#fff;border-radius:3px;box-shadow:0 1px 3px #263a5010; }
.widget-theme-art.dark { background:#1c2733;border-color:#334252; }.widget-theme-art.dark i { background:#405060; }
.widget-color-options { display:grid;grid-template-columns:repeat(6,1fr);gap:8px; }
.widget-color-options button { display:grid;place-items:center;aspect-ratio:1;min-width:0;min-height:32px;border:3px solid #fff;outline:1px solid #e3e9ee;border-radius:50%;padding:0;background:var(--swatch);color:var(--swatch-ink); }
.widget-color-options button span { visibility:hidden; }.widget-color-options [aria-pressed="true"] { outline:2px solid #6f879a; }.widget-color-options [aria-pressed="true"] span { visibility:visible; }
.widget-color-options button:focus-visible { outline:3px solid #5685ac;outline-offset:3px; }
#widget-accent-name { float:right;font-weight:400;color:#788c9d;font-size:.72rem; }
.widget-save-status { font-size:.68rem;color:#718775;padding-top:12px;border-top:1px solid #edf1f4; }
/* Branded editor shell; the preview retains the user's chosen widget theme. */
.widget-controls { position:relative;isolation:isolate;overflow:hidden;color:#f0f3e9;background:#101311;border-color:#30372b;box-shadow:inset 0 1px #ffffff0a,0 8px 24px #14201916; }
.widget-controls::before { content:'';position:absolute;z-index:-1;inset:0 0 auto;height:190px;pointer-events:none;background:linear-gradient(180deg,#10131110 10%,#101311 95%),linear-gradient(90deg,#101311 12%,#10131120 85%),var(--orbit-image) right 62% / 350px auto no-repeat;opacity:.9; }
.widget-controls > header { min-height:68px;padding-top:3px; }
.widget-controls .eyebrow { color:#dff969; }
.widget-controls h2 { color:#fff; }
.widget-controls label,.widget-controls legend,.widget-controls .widget-field-label { color:#e3e9dc; }
.widget-controls input,.widget-controls select { color-scheme:dark;background:#1b211c;border-color:#3c4739;color:#edf2e8;box-shadow:inset 0 1px #ffffff04; }
.widget-controls input::placeholder { color:#a1af9c; }
.widget-controls .field-hint,.widget-controls .widget-selection-choices small { color:#a7b3a1; }
.widget-controls .widget-segmented { background:#191f19e8;border-color:#35402e; }
.widget-controls .widget-segmented button:not([aria-pressed="true"]) { color:#afbea5; }
.widget-controls .widget-segmented button:not([aria-pressed="true"]):hover { background:#293226; }
.widget-controls .widget-selection-choices button,.widget-controls .widget-visual-choices button { background:#191f1a;border-color:#35402f;color:#e4ecdd; }
.widget-controls .widget-selection-choices button:hover,.widget-controls .widget-visual-choices button:hover { border-color:#718455; }
.widget-controls .widget-selection-choices [aria-pressed="true"],.widget-controls .widget-visual-choices [aria-pressed="true"] { background:linear-gradient(135deg,#29331c,#1f281a);border-color:#859b49;box-shadow:inset 0 1px #dff9690c; }
.widget-controls .widget-choice-check { background:#141a14;border-color:#69795c; }
.widget-controls [aria-pressed="true"] > .widget-choice-check { background:#dff969;border-color:#c4dc67;box-shadow:inset 0 0 0 4px #29331c; }
.widget-controls .widget-tag-options .secondary { background:#20291e;border-color:#405136;color:#bfcfb4; }
.widget-controls .widget-tag-options [aria-pressed="true"] { background:#34431e;border-color:#90a954;color:#e3f8aa; }
.widget-controls .widget-layout-art { background:#101710; }.widget-controls .widget-layout-art i { background:#758969; }
.widget-controls .widget-color-options button { border-color:#101311;outline-color:#4c5844; }
.widget-controls .widget-color-options [aria-pressed="true"] { outline-color:#dff969; }
.widget-controls #widget-accent-name { color:#b2c0a6; }
.widget-controls .widget-save-status { border-color:#30392c;color:#a6b69b; }
.widget-controls :focus-visible { outline:2px solid #dff969;outline-offset:3px; }
.widget-preview-panel { min-width:0;padding:18px;border:1px solid #dce5ec;border-radius:18px;background:#fff;box-shadow:0 4px 18px #233e5507; }
@media(min-width:761px) { .widget-preview-panel { position:sticky;top:18px; } }
.widget-preview-panel > header { display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:18px; }
.widget-preview-tools { display:flex;align-items:center;gap:8px; }
.widget-device-controls { margin:0; }
#expand-widget { min-height:44px;padding:8px 10px;border-color:#dce5ec;border-radius:10px;font-size:.8rem;color:#46657b; }
.widget-preview-stage { position:relative;min-width:0;padding:0;background:#eef2f5;border:1px solid #e6ecf0;border-radius:12px;overflow:hidden; }
.widget-preview-stage iframe { display:block;width:100%;height:clamp(480px,65dvh,780px);border:0;background:transparent; }
.widget-preview-stage.is-phone iframe { max-width:375px;margin:auto;box-shadow:0 0 24px #20334b14; }
.widget-preview-stage::before,.widget-preview-stage::after { content:'';position:absolute;left:0;right:0;height:42px;pointer-events:none;z-index:1;opacity:0;transition:opacity .18s; }
.widget-preview-stage::before { top:0;background:linear-gradient(var(--preview-fade,#f5f6f0),transparent); }.widget-preview-stage::after { bottom:0;background:linear-gradient(transparent,var(--preview-fade,#f5f6f0)); }
.widget-preview-stage.has-more-above::before,.widget-preview-stage.has-more-below::after { opacity:1; }
.widget-preview-stage.is-phone::before,.widget-preview-stage.is-phone::after { max-width:375px;margin:auto; }
.widget-preview-stage .testimonial-empty { border:0;border-radius:0;min-height:360px;display:grid;place-content:center;background:#f7f9fb;padding:30px; }
.widget-code { margin-top:14px; }.widget-code summary { cursor:pointer;color:#59778e;font-size:.75rem;font-weight:650; }.widget-code textarea { font:.7rem/1.5 Consolas,monospace;margin:12px 0; }.widget-code .sr-only { position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%); }
.widget-publish-bar { position:sticky;bottom:14px;z-index:4;grid-column:1 / -1;display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;padding:14px 18px;border:1px solid #d2dfe8;border-radius:15px;background:#fffffff5;backdrop-filter:blur(16px);box-shadow:0 5px 24px #203e5814; }
#widget-match-count { display:block;color:#354e60;font-size:.85rem; }
.widget-publish-bar small { display:block;font-size:.7rem;line-height:1.5;color:#7a8c99;margin-top:4px; }
.widget-publish-actions { display:flex;align-items:center;gap:8px; }.widget-publish-actions button { min-height:44px;border-radius:9px;font-size:.8rem; }
.widget-builder button:disabled { opacity:.45;cursor:default; }
dialog.widget-expanded-dialog { width:calc(100% - 32px);max-width:1440px;max-height:calc(100dvh - 32px);padding:18px;border-radius:18px;background:#fff; }
.widget-expanded-dialog .dialog-heading h2 { font-size:1.1rem; }.widget-expanded-dialog .widget-preview-stage iframe { height:calc(100dvh - 140px); }
@media(max-width:1000px) { .widget-builder { grid-template-columns:260px minmax(0,1fr);gap:12px; }.widget-controls { padding:16px; }.widget-preview-panel { padding:12px; }.widget-preview-tools { width:100%;justify-content:space-between; } }
@media(max-width:760px) {
 .testimonial-tabs { max-width:none; }.testimonial-tag-picker .secondary,.testimonial-card .secondary { min-height:44px; }.testimonial-empty { padding:32px 18px; }
 .widget-builder { grid-template-columns:1fr; }.widget-controls { gap:16px; }.widget-preview-panel { padding:14px; }.widget-preview-tools { width:auto; }.widget-segmented button { min-height:40px; }.widget-color-options button { min-height:40px; }.widget-publish-bar { bottom:calc(78px + env(safe-area-inset-bottom,0px));padding:12px;gap:10px; }.widget-publish-actions { width:100%; }.widget-publish-actions button { flex:1;padding-inline:8px;font-size:.75rem; }.widget-preview-stage iframe { height:520px; }.widget-settings-section { gap:16px; }
}
@media(prefers-reduced-motion:reduce) { .widget-preview-stage::before,.widget-preview-stage::after { transition:none; } }
@media(max-width:390px) {
  main:has(.testimonial-tabs) .page-heading h1 { font-size: 1.2rem; }
  main:has(.testimonial-tabs) .page-heading > button { font-size: .75rem; padding-inline: 8px; gap: 5px; }
}
.workspace:has(.kpi-screen) { background: #f4f5f3; }
.kpi-screen {
  --kpi-panel: #fff;
  --kpi-divider: #e3e5e1;
  --kpi-secondary: #636963;
  --kpi-track: #e7e9e5;
  --kpi-active: #344219;
  width: 100%;
  min-width: 0;
  color: #1b201a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
.kpi-page-heading { margin-bottom: 17px; }
.kpi-page-heading h1 {
  font: 760 clamp(2rem, 3.7vw, 3rem)/1.04 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  letter-spacing: -.05em;
  text-transform: none;
}
.kpi-controls {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
  padding-bottom: 15px; margin-bottom: 24px; border-bottom: 1px solid var(--kpi-divider);
}
.kpi-demo-notice { margin: -5px 0 16px; color: var(--kpi-secondary); font-size: .8125rem; line-height: 1.5; }
.kpi-demo-notice > span { display: inline-block; margin-right: 7px; padding: 3px 8px; border-radius: 999px; background: #edf3cf; color: #465417; font-weight: 650; box-shadow: inset 0 1px 0 #ffffff99; }
.kpi-nav {
  display: grid; grid-template-columns: 1fr .65fr 1.4fr 1.4fr; gap: 4px;
  width: min(100%, 436px); padding: 4px; border: 1px solid #dcdfd3; border-radius: 12px; background: #eeefe8;
  box-shadow: inset 0 1px 2px #27311805;
}
.kpi-nav-thumb {
  grid-area: 1 / var(--kpi-tab); border-radius: 8px; background: linear-gradient(180deg, #e8ff87, var(--lime));
  border: 1px solid #c7de60; box-shadow: inset 0 1px 0 #ffffffa6, 0 2px 3px #4f621820, 0 1px 1px #4f62180c; transform-origin: left center; pointer-events: none;
}
.kpi-nav a {
  grid-row: 1; position: relative; justify-content: center; min-height: 40px; border-radius: 8px; padding: 5px 8px;
  color: var(--kpi-secondary); font-size: .865rem; line-height: 1.2; text-align: center;
}
.kpi-nav a:nth-of-type(1) { grid-column: 1; }
.kpi-nav a:nth-of-type(2) { grid-column: 2; }
.kpi-nav a:nth-of-type(3) { grid-column: 3; }
.kpi-nav a:nth-of-type(4) { grid-column: 4; }
.kpi-nav a:hover { color: inherit; background: transparent; }
.kpi-nav a[aria-current] { background: transparent; color: #1b201a; }
.kpi-tab-short { display: none; }
.kpi-period, .kpi-period-controls, .kpi-period-arrows { display: flex; align-items: center; }
.kpi-period { gap: 8px 18px; flex-wrap: wrap; }
.kpi-period-label { display: block; color: var(--kpi-secondary); font-size: .77rem; }
.kpi-period strong { display: block; font-size: .925rem; letter-spacing: -.013em; }
.kpi-period-controls { gap: 6px; }
.kpi-period-controls label { display: flex; align-items: center; gap: 6px; color: var(--kpi-secondary); font-size: .78rem; }
.kpi-period-controls input {
  width: auto; min-width: 0; max-width: 100%; min-height: 44px; padding: 6px 8px;
  border: 1px solid var(--kpi-divider); border-radius: 9px; background: var(--kpi-panel); color: #1b201a; font-size: .85rem;
}
.kpi-period-arrows { border-radius: 9px; background: var(--kpi-track); }
.kpi-period-arrows button {
  display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 4px;
  border: 0; border-radius: 9px; color: #374332; background: transparent;
}
.kpi-period-arrows button:disabled { opacity: .36; cursor: default; }
.kpi-period-arrows button:first-child .kpi-chevron { transform: rotate(225deg); }
.kpi-chevron { display: inline-block; flex: none; width: 7px; height: 7px; border: solid currentColor; border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); }

.kpi-section-heading { margin-bottom: 12px; }
.kpi-section-heading h2, .kpi-log-heading h3 { font-size: clamp(1.18rem, 2.2vw, 1.5rem); font-weight: 740; letter-spacing: -.03em; }
.kpi-section-heading p, .kpi-hint { margin-top: 3px; color: var(--kpi-secondary); font-size: .849rem; }
.kpi-group-title {
  margin: 0 0 7px; padding-inline: 3px; color: #3a4338;
  font-size: .89rem; font-weight: 690; letter-spacing: -.008em;
}
.kpi-group-title small { margin-left: 5px; color: var(--kpi-secondary); font-size: .77rem; font-weight: 450; }
.kpi-metrics, .kpi-channel-list, .kpi-table-scroll, .kpi-fields, .kpi-review-grid, .kpi-rate-details {
  border: 1px solid #e0e3da; border-radius: 14px; background: linear-gradient(180deg, #fff, #fdfdfa);
  box-shadow: inset 0 1px 0 #fff, 0 2px 4px #171b1309, 0 1px 1px #171b1305;
}
.kpi-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 20px; border: 0; background: none; box-shadow: none; }
.kpi-stat {
  min-width: 0; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 5px;
  padding: 13px clamp(12px, 1.8vw, 20px);
  border: 1px solid #e0e3da; border-radius: 13px; background: linear-gradient(180deg, #fff, #fdfdfa);
  box-shadow: inset 0 1px 0 #fff, 0 2px 4px #171b1309, 0 1px 1px #171b1305;
}
.kpi-stat:nth-child(3) { border-color: #dbe5c6; background: linear-gradient(180deg, #faffed, #f1f6e5); }
.performance-card {
  min-width: 0; margin: 24px 0; padding: 24px; border: 1px solid #dde1d6;
  border-radius: 16px; background: linear-gradient(180deg, #fff, #fdfefb);
  box-shadow: inset 0 1px 0 #fff, 0 2px 4px #26321c06, 0 10px 28px #26321c03;
}
.performance-heading, .performance-controls, .performance-summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.performance-heading h3 { font-size: 1.2rem; letter-spacing: -.025em; }
.performance-heading p, .performance-summary span { display: block; color: var(--muted); font-size: .8125rem; margin-top: 4px; }
.performance-card .pill-filters { margin: 0; flex-shrink: 0; }
.performance-ranges { grid-template-columns: repeat(3, 1fr); }
.performance-card .pill-filters button { background: transparent; min-height: 40px; white-space: nowrap; }
.performance-card .pill-filters button:hover { background: #ffffff70; }
.performance-card .pill-filters button[aria-pressed="true"] { background: transparent; }
.performance-card .metric-label { font-size: .8125rem; }
.performance-controls { margin-top: 22px; padding-bottom: 20px; border-bottom: 1px solid #edf0e7; align-items: end; }
.performance-metrics { grid-template-columns: repeat(4, 1fr); overflow-x: auto; max-width: 100%; }
.performance-controls label { display: grid; gap: 5px; color: var(--muted); font-size: .75rem; min-width: 175px; }
.performance-controls select { min-height: 44px; margin: 0; width: 100%; color: #252d20; }
.performance-summary { margin: 22px 0 18px; align-items: end; }
.performance-summary > div:first-child > strong { font-size: 2.3rem; letter-spacing: -.045em; font-weight: 730; line-height: 1.1; font-variant-numeric: tabular-nums; }
.performance-comparison { text-align: right; }
.performance-comparison strong { color: #4e6134; font-size: .9rem; }
.performance-legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: .72rem; color: #60695b; margin-bottom: 14px; }
.performance-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.performance-legend i { display: inline-block; width: 13px; height: 10px; border-radius: 3px; }
.performance-key-bar { background: #80945e; }
.performance-legend .performance-key-line { height: 2px; width: 16px; background: #303c24; }
.performance-key-partial { background: repeating-linear-gradient(135deg, #a1b584 0 2px, #eff4e7 2px 5px); border: 1px solid #9aad80; }
.performance-chart-scroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding: 8px 4px 4px; }
.performance-chart-scroll::-webkit-scrollbar { display: none; }
.performance-canvas { position: relative; min-width: calc(var(--performance-weeks) * 44px + 40px); padding-left: 40px; }
.performance-axis { position: absolute; left: 0; top: 0; height: 220px; width: 30px; font-size: .7rem; color: #75806c; font-variant-numeric: tabular-nums; }
.performance-axis span { position: absolute; right: 0; transform: translateY(-50%); }
.performance-plot { position: relative; height: 220px; }
.performance-grid { position: absolute; inset: 0; pointer-events: none; }
.performance-grid i { position: absolute; left: 0; right: 0; border-top: 1px solid #edf0e8; }
.performance-bars { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--performance-weeks), minmax(0, 1fr)); }
.performance-week { position: relative; display: flex; align-items: end; justify-content: center; padding: 0 6px; border: 0; background: transparent; border-radius: 6px; min-width: 0; }
.performance-week:hover, .performance-week[aria-pressed="true"] { background: #81975d09; }
.performance-week:focus-visible { outline-offset: -2px; }
.performance-bar-fill { display: block; width: 100%; max-width: 52px; height: var(--bar-height); border: 1px solid #728750; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #9bad7d, #788d56); box-shadow: inset 0 1px 0 #ffffff55; }
.performance-week[aria-pressed="true"] .performance-bar-fill { background: linear-gradient(180deg, #e6fc8b, #cce767); border-color: #a1bd42; box-shadow: inset 0 1px 0 #ffffffaa, 0 2px 6px #839e3520; }
.performance-week.is-partial .performance-bar-fill { background: repeating-linear-gradient(135deg, #a4b88a 0 3px, #edf3e5 3px 7px); border-color: #91a675; }
.performance-week.is-partial[aria-pressed="true"] .performance-bar-fill { background: repeating-linear-gradient(135deg, #d1ed74 0 3px, #f1f8d8 3px 7px); border-color: #a1bd42; }
.performance-week.is-zero .performance-bar-fill { height: 4px; background: #fff; }
.performance-week.is-missing .performance-bar-fill { display: none; }
.performance-missing-mark { color: #849076; line-height: 1; padding-bottom: 3px; }
.performance-trend { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; color: #303c24; }
.performance-dates { display: grid; grid-template-columns: repeat(var(--performance-weeks), minmax(0, 1fr)); margin-top: 10px; color: #68725f; font-size: .68rem; text-align: center; white-space: nowrap; min-height: 20px; }
.performance-inspector { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 18px; padding: 15px 17px; background: #f3f5ed; border: 1px solid #e7ebdd; border-radius: 10px; }
.performance-inspector strong { font-size: .8125rem; }
.performance-state { display: block; font-size: .72rem; color: #6b765f; margin-top: 3px; }
.performance-inspector dl { display: flex; flex-wrap: wrap; gap: 24px; margin: 0; }
.performance-inspector dt { font-size: .7rem; color: #6b765f; }
.performance-inspector dd { margin: 3px 0 0; font-size: .9rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.performance-footnote { margin-top: 12px; color: #6b7561; font-size: .7rem; line-height: 1.5; max-width: 100ch; }
@media (max-width: 1100px) {
  .performance-heading, .performance-controls { align-items: stretch; flex-direction: column; gap: 14px; }
  .performance-heading .performance-ranges { align-self: start; }
  .performance-controls label { grid-template-columns: auto minmax(150px, 220px); align-items: center; justify-content: end; gap: 10px; }
}
@media (max-width: 600px) {
  .performance-card { padding: 16px; margin: 18px 0; }
  .performance-heading .performance-ranges { align-self: stretch; }
  .performance-card .pill-filters button { min-height: 44px; padding-inline: 10px; }
  .performance-controls { margin-top: 16px; padding-bottom: 16px; }
  .performance-metrics { grid-template-columns: repeat(4, max-content); }
  .performance-summary { flex-direction: column; align-items: start; gap: 12px; }
  .performance-comparison { text-align: left; }
  .performance-summary > div:first-child > strong { font-size: 2rem; }
  .performance-legend { gap: 10px; }
  .performance-inspector { padding: 12px; }
  .performance-inspector dl { width: 100%; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  .performance-bar-fill { transition: height 260ms ease, background-color 180ms ease, box-shadow 180ms ease; }
}
.kpi-stat dt { color: var(--kpi-secondary); font-size: .84rem; line-height: 1.25; }
.kpi-stat dd { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 720; line-height: 1.05; letter-spacing: -.04em; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.kpi-channel-list { padding: 4px; }
.kpi-channel-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px;
  min-height: 52px; padding: 9px 12px; border-radius: 10px; color: inherit; text-decoration: none;
}
.kpi-channel-row + .kpi-channel-row { border-top: 1px solid #eef0e9; }
.kpi-channel-row strong { font-size: .94rem; font-weight: 650; }
.kpi-channel-row small, .kpi-channel-row .kpi-chevron { color: var(--kpi-secondary); }
.kpi-channel-row small { padding: 4px 8px; border-radius: 999px; background: #f0f3e8; box-shadow: inset 0 1px 0 #ffffff99; font-size: .75rem; }
.kpi-channel-row:hover { background: #f3f6eb; }
.kpi-channel-row:focus-visible { outline-offset: -2px; }
.kpi-totals { margin-top: 24px; }
.kpi-table-scroll { overflow-x: auto; }
.kpi-table { width: 100%; border-collapse: collapse; font-size: .8rem; font-variant-numeric: tabular-nums; }
.kpi-table th, .kpi-table td { padding: 10px 12px; text-align: right; min-width: 4rem; }
.kpi-table thead tr { background: #eef0ec; }
.kpi-table th:first-child { position: sticky; left: 0; text-align: left; white-space: nowrap; background: inherit; }
.kpi-table tbody tr { background: var(--kpi-panel); border-top: 1px solid var(--kpi-divider); }

.kpi-scorecard { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 11px 18px; }
.kpi-channel-heading { margin: 0; }
.kpi-week-picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; border: 1px solid #dcdfd3; border-radius: 12px; background: #eeefe8; box-shadow: inset 0 1px 2px #27311805; }
.kpi-week-picker button {
  position: relative; min-height: 44px; padding: 5px 11px; border: 1px solid var(--kpi-divider); border-radius: 9px;
  color: var(--kpi-secondary); background: transparent; border-color: transparent; font-size: .85rem; font-weight: 630; white-space: nowrap;
}
.kpi-week-picker button:hover { color: #1b201a; border-color: #acb4a7; }
.kpi-week-picker button[aria-pressed="true"] { color: #222c0b; border-color: #c7de60; background: linear-gradient(180deg, #e8ff87, var(--lime)); box-shadow: inset 0 1px 0 #ffffffa6, 0 2px 3px #4f621820; }
.kpi-week-picker button:is([data-kpi-week-state="Logged"], [data-kpi-week-state="Unsaved"]) { padding-right: 17px; }
.kpi-week-picker button:is([data-kpi-week-state="Logged"], [data-kpi-week-state="Unsaved"])::after {
  content: ""; position: absolute; top: 50%; right: 6px; translate: 0 -50%; width: 5px; height: 5px;
  border-radius: 50%; background: currentColor;
}
.kpi-week-picker button[data-kpi-week-state="Unsaved"]::after { background: #b06c22; }
.kpi-week-picker button[data-kpi-week-state="Unsaved"][aria-pressed="true"]::after { background: #96571c; }
.kpi-rate-details, .kpi-form { grid-column: 1 / -1; min-width: 0; }
.kpi-rate-details { padding: 0 13px; }
.kpi-rate-details summary, .kpi-review-card summary { min-height: 44px; align-content: center; list-style: none; cursor: pointer; }
.kpi-rate-details summary::-webkit-details-marker, .kpi-review-card summary::-webkit-details-marker { display: none; }
.kpi-rate-details summary {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .9rem; font-weight: 650;
}
.kpi-scorecard summary .kpi-chevron { margin-right: 3px; transform: rotate(135deg); color: var(--kpi-secondary); }
.kpi-scorecard details[open] > summary .kpi-chevron { transform: rotate(-45deg); }
.kpi-rate-details[open] { padding-bottom: 10px; }
.kpi-rates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; margin: 0; }
.kpi-rate { border-top: 1px solid var(--kpi-divider); padding: 8px 0 4px; }
.kpi-rate dt { font-size: .855rem; font-weight: 650; }
.kpi-rate dd { display: flex; flex-wrap: wrap; gap: 3px 12px; margin: 3px 0 0; color: var(--kpi-secondary); font-size: .82rem; font-variant-numeric: tabular-nums; }
.kpi-rate dd strong { margin-left: 2px; color: #1b201a; }

.kpi-form { display: block; margin-top: 7px; }
.kpi-log-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 1px 8px; }
.kpi-log-heading p { color: var(--kpi-secondary); font-size: .84rem; }
.kpi-log-tip { margin-bottom: 15px; }
.kpi-log-layout { display: grid; gap: 16px; }
.kpi-log-section { min-width: 0; --kpi-section-accent: #65783f; }
.kpi-log-section[data-kpi-group="sales"] { --kpi-section-accent: #397361; }
.kpi-log-section[data-kpi-group="week-end"] { --kpi-section-accent: #556c8a; }
.kpi-log-section[data-kpi-group="review"] { --kpi-section-accent: #79618d; }
.kpi-log-section > .kpi-group-title { display: flex; align-items: center; gap: 7px; }
.kpi-log-section > .kpi-group-title::before { content: ""; width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: var(--kpi-section-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--kpi-section-accent) 10%, transparent); }
.kpi-log-section > :is(.kpi-fields, .kpi-review-grid) { border-top-color: color-mix(in srgb, var(--kpi-section-accent) 35%, #e0e3da); }
.kpi-fields:focus-within, .kpi-review-grid:focus-within { box-shadow: inset 0 1px 0 #fff, 0 4px 10px #171b1310; }
.kpi-fields, .kpi-review-grid { padding-inline: 12px; }
.kpi-input {
  display: flex; align-items: center; justify-content: space-between; gap: 8px 12px;
  min-height: 64px; padding-block: 7px;
}
.kpi-input + .kpi-input, .kpi-review-card + .kpi-review-card { border-top: 1px solid #eef0e9; }
.kpi-input-copy { min-width: 0; }
.kpi-input h5, .kpi-review-card h5 { margin: 0; font-size: .935rem; line-height: 1.22; font-weight: 660; }
.kpi-input small, .kpi-field-total { display: block; margin-top: 3px; color: var(--kpi-secondary); font-size: .785rem; line-height: 1.28; }
.kpi-field-total { width: fit-content; padding: 2px 6px; border-radius: 5px; background: #f0f3e8; color: var(--kpi-active); font-variant-numeric: tabular-nums; }
.kpi-counter {
  flex: 0 1 auto; min-width: 132px; max-width: 50%; display: grid; grid-template-columns: 44px minmax(44px, max-content) 44px;
  align-items: stretch; border-radius: 11px; background: #eeefe8; box-shadow: inset 0 1px 2px #27311808;
}
.kpi-counter button, .kpi-pad-keys button {
  min-width: 0; min-height: 44px; border: 0; border-radius: 10px; padding: 4px;
  color: var(--kpi-active); background: transparent; font-size: 1.18rem; font-weight: 660; line-height: 1.1;
}
.kpi-counter [data-kpi-set] {
  border-radius: 8px; border: 1px solid #e0e3d8; color: #1b201a; padding-inline: 5px;
  background: linear-gradient(180deg, #fff, #fdfdfa); box-shadow: inset 0 1px 0 #fff, 0 1px 3px #17201412;
  font-size: .94rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.kpi-counter [data-kpi-step="1"] { background: linear-gradient(180deg, #eff6db, #e9f0d4); border-radius: 0 11px 11px 0; }
.kpi-counter button:hover:not([aria-disabled="true"]), .kpi-period-arrows button:hover:enabled { background: #e0e4dc; }
.kpi-counter button[aria-disabled="true"] { color: #777d75; cursor: default; }
.kpi-review-card { min-width: 0; padding-block: 10px 4px; }
.kpi-review-card h5 { margin-bottom: 6px; }
.kpi-review-options button {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px;
  padding: 8px 10px; margin-bottom: 6px; border: 1px solid #e4e7dd; border-radius: 9px; color: #353d34;
  background: #fafbf7; font-size: .855rem; text-align: start; box-shadow: inset 0 1px 0 #fff;
}
.kpi-review-options button:hover { color: var(--kpi-active); }
.kpi-review-options button[aria-pressed="true"] { color: #344219; border-color: #d5e2b3; background: linear-gradient(180deg, #f1f9df, #eaf3d1); box-shadow: inset 0 1px 0 #ffffff99, 0 1px 2px #17201409; font-weight: 650; }
.kpi-check { visibility: hidden; flex: 0 0 6px; height: 12px; margin-right: 4px; border: solid currentColor; border-width: 0 1.7px 1.7px 0; transform: rotate(45deg); }
.kpi-review-options button[aria-pressed="true"] .kpi-check { visibility: visible; }
.kpi-review-card summary {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  color: var(--kpi-active); font-size: .85rem; font-weight: 630;
}
.kpi-review-card details[open] { padding-bottom: 6px; }
.kpi-review-card textarea { display: block; margin: 0; }

.kpi-form-actions {
  position: sticky; bottom: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; margin-top: 16px; padding: 7px 9px 7px 12px; border: 1px solid var(--kpi-divider); border-radius: 13px;
  background: #ffffffed; box-shadow: 0 2px 9px #1d221314;
}
.kpi-form-actions .primary, .kpi-pad-apply { min-height: 44px; border: 0; border-radius: 9px; flex-shrink: 0; box-shadow: none; }
.kpi-form-actions .primary:not([aria-disabled="true"]), .kpi-pad-apply { background: linear-gradient(180deg, #e8ff87, var(--lime)); box-shadow: inset 0 1px 0 #ffffffa6, 0 1px 3px #4f621820; }
.kpi-form-actions .primary[aria-disabled="true"] { color: #686d66; background: #eef0eb; cursor: default; }
.kpi-form-feedback { min-width: 0; }
.kpi-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.kpi-pad {
  width: min(360px, calc(100% - 24px)); padding: 16px; border: 0; border-radius: 20px;
  color: inherit; background: #f6f7f5; box-shadow: 0 18px 58px #11170f38; overscroll-behavior: contain;
}
.kpi-pad::backdrop { background: #141a1466; }
.kpi-pad .dialog-heading { gap: 8px; padding-bottom: 9px; margin-bottom: 9px; border-color: var(--kpi-divider); }
.kpi-pad .dialog-heading h2 { font-size: 1.17rem; font-weight: 730; }
.kpi-pad .dialog-heading button {
  flex-shrink: 0; min-height: 44px; padding: 4px 6px; border: 0; border-radius: 7px;
  background: transparent; color: var(--kpi-active); font-size: .92rem; font-weight: 660;
}
.kpi-pad-value {
  padding: 7px 8px 12px; color: #242b22; font-size: 1.9rem; font-weight: 680; letter-spacing: -.045em;
  text-align: center; font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.kpi-pad-value:focus { outline: 0; }
.kpi-pad-keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.kpi-pad-keys button { min-height: 48px; border: 1px solid #e0e3da; color: #222b20; background: linear-gradient(180deg, #fff, #fdfdfa); box-shadow: inset 0 1px 0 #fff, 0 2px 4px #171b1309; }
.kpi-pad-keys button:hover { background: #e7eae4; }
.kpi-pad-keys [data-kpi-pad="unknown"] { font-size: .78rem; color: var(--kpi-active); }
.kpi-pad-apply { width: 100%; min-height: 46px; margin-top: 10px; }
.kpi-scorecard :is(button, summary, textarea) {
  scroll-margin-bottom: calc(64px + var(--mobile-nav-height, 0px) + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 1080px) {
  .kpi-log-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto 1fr auto; align-items: start;
    grid-template-areas: "activity sales" "week-end sales" "review review";
  }
  .kpi-log-section[data-kpi-group="activity"] { grid-area: activity; }
  .kpi-log-section[data-kpi-group="sales"] { grid-area: sales; }
  .kpi-log-section[data-kpi-group="week-end"] { grid-area: week-end; }
  .kpi-log-section[data-kpi-group="review"] { grid-area: review; }
  .kpi-review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .kpi-review-card + .kpi-review-card { border-top: 0; border-left: 1px solid var(--kpi-divider); padding-left: 16px; }
}

@media (prefers-reduced-motion: no-preference) {
  .kpi-content-enter { animation: kpi-content-in 165ms ease-out; }
  .kpi-nav a, .kpi-week-picker button, .kpi-counter button, .kpi-pad-keys button { transition: color 120ms, background-color 120ms, box-shadow 120ms; }
  .kpi-counter button:active:not([aria-disabled="true"]), .kpi-pad-keys button:active { transform: scale(.95); }
  .kpi-pad[open] { animation: kpi-pad-in 215ms cubic-bezier(.22, .73, .2, 1); }
  .kpi-pad[open]::backdrop { animation: kpi-dim-in 170ms ease-out; }
  @keyframes kpi-content-in { from { opacity: .65; transform: translateY(4px); } }
  @keyframes kpi-pad-in { from { opacity: .35; transform: translateY(12px); } }
  @keyframes kpi-dim-in { from { opacity: 0; } }
}

@media (max-width: 760px) {
  dialog.stage-color-dialog {
    inset: auto 0 0; width: min(440px, 100%); max-width: none; margin: 0 auto;
    border-radius: 22px 22px 0 0; padding: 14px 18px max(14px, env(safe-area-inset-bottom, 0px));
  }
  .stage-color-dialog::backdrop { background: #11170e55; }
  :root { --mobile-nav-height: 64px; scroll-padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom, 0px) + 12px); }
  body { display: block; }
  .sidebar {
    position: sticky; top: 0; z-index: 10; height: auto; display: flex; flex-direction: row;
    gap: 8px; align-items: center; justify-content: space-between; overflow: visible;
    padding: calc(8px + env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) 8px max(12px, env(safe-area-inset-left, 0px));
    border-right: 0; border-bottom: 1px solid var(--dark-line);
  }
  .sidebar .brand { padding: 0; font-size: 1.03rem; }
  .sidebar .brand img { width: 30px; height: 30px; }
  .sidebar-art, .workspace-status, .topbar { display: none; }
  .sidebar-footer { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; border-top: 0; }
  .sidebar nav {
    position: fixed; inset: auto 0 0; grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom, 0px));
    padding: 5px max(8px, env(safe-area-inset-right, 0px)) calc(5px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
    border-top: 1px solid var(--dark-line); background: var(--dark); box-shadow: 0 -5px 15px #14171323;
  }
  .sidebar nav a { flex-direction: column; justify-content: center; min-height: 50px; padding: 5px 3px; gap: 3px; font-size: .8125rem; }
  .sidebar nav .nav-label-full { display: none; }
  .sidebar nav .nav-label-short { display: inline; }
  .sidebar nav a .nav-icon { flex: 0 0 auto; }
  main {
    padding: 20px max(14px, env(safe-area-inset-right, 0px)) calc(var(--mobile-nav-height) + env(safe-area-inset-bottom, 0px) + 20px) max(14px, env(safe-area-inset-left, 0px));
  }
  .page-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 10px; margin-bottom: 16px; }
  .page-heading > div { display: contents; }
  .page-heading h1 { font-size: clamp(1.4rem, 5.9vw, 1.95rem); }
  .page-heading p { grid-column: 1 / -1; grid-row: 2; margin-top: 0; font-size: .9375rem; }
  .page-heading > button { grid-column: 2; grid-row: 1; padding-inline: 9px; }
  .page-heading > button, .queue-button, .contact-chat-cell .secondary, .template-library .template .secondary,
  .template-favorite, .contact-name-button, .board-stage-control select { min-height: 44px; }
  .template-favorite { width: 44px; }
  .follow-up-panel { grid-template-columns: minmax(0, 1fr); gap: 11px; background-size: auto, cover; }
  .follow-up-item { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; }
  .follow-up-item .due { justify-self: start; }
  .follow-up-item .queue-button { grid-column: 2; grid-row: 1 / span 2; }
  .follow-up-panel:not([data-expanded]) .follow-up-item:not(:first-child) { display: none; }
  .queue-button.mobile-queue-toggle { display: inline-flex; justify-self: start; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters button { min-height: 56px; }
  .pill-filters button { min-height: 44px; padding: 8px; }
  .filters.contact-filters { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); overflow-x: auto; scroll-snap-type: x proximity; }
  .contact-filters button { scroll-snap-align: start; white-space: nowrap; }
  .pipeline-toolbar { grid-template-columns: minmax(0, 1fr) minmax(0, 132px); }
  .board-stage-control { display: grid; max-width: 18rem; margin-bottom: 9px; }
  .board { grid-auto-columns: 89%; scroll-snap-type: x mandatory; }
  .board.is-dragging { scroll-snap-type: none; }
  #status { top: auto; right: 10px; bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom, 0px) + 8px); }
  dialog { max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); }
  .contact-drawer .dialog-heading { padding-top: calc(14px + env(safe-area-inset-top, 0px)); }
  .contact-drawer .dialog-content { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
  .kpi-page-heading { margin-bottom: 12px; }
  .kpi-page-heading h1 { font-size: clamp(2rem, 8vw, 2.55rem); }
  .kpi-controls { gap: 10px; margin-bottom: 16px; padding-bottom: 11px; }
  .kpi-nav { width: 100%; grid-template-columns: 1fr .65fr 1fr 1fr; }
  .kpi-nav a { padding-inline: 4px; min-height: 44px; }
  .kpi-tab-full { display: none; }
  .kpi-tab-short { display: inline; }
  .kpi-period { flex: 1; justify-content: space-between; }
  .kpi-period-controls { justify-content: space-between; }
  .kpi-scorecard { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .kpi-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-form-actions { bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom, 0px) + 4px); }
  .kpi-table th, .kpi-table td { padding: 8px; }
  .kpi-pad {
    position: fixed; inset: auto 0 0; width: min(100%, 480px); max-width: none; margin: 0 auto;
    max-height: calc(100dvh - max(8px, env(safe-area-inset-top, 0px)));
    padding: 12px max(16px, env(safe-area-inset-right, 0px)) max(14px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    border-radius: 22px 22px 0 0;
  }
}

@media (max-width: 550px) {
  .drawer-template-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .drawer-template-toolbar > label:first-child { grid-column: 1 / -1; }
  .kpi-period-controls { width: 100%; }
  .kpi-period-controls input { padding-inline: 6px; }
  .kpi-week-picker button { padding-inline: 5px; font-size: .8rem; }
  .kpi-week-picker button:is([data-kpi-week-state="Logged"], [data-kpi-week-state="Unsaved"]) { padding-right: 12px; }
  .kpi-week-picker button:is([data-kpi-week-state="Logged"], [data-kpi-week-state="Unsaved"])::after { right: 4px; width: 4px; height: 4px; }
  .kpi-input { gap: 7px; }
  .kpi-fields, .kpi-review-grid { padding-inline: 10px; }
}

@media (max-width: 390px) {
  .stage-color-dialog .stage-color-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .fields { grid-template-columns: 1fr; }
  .kpi-period-controls label span { max-width: 3.4em; line-height: 1.18; }
}

@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  .stage-color-dialog[open] { animation: kpi-sheet-in 230ms cubic-bezier(.22, .73, .2, 1); }
  .kpi-pad[open] { animation-name: kpi-sheet-in; animation-duration: 260ms; }
  @keyframes kpi-sheet-in { from { transform: translateY(100%); } }
}

@media (prefers-reduced-motion: no-preference) {
  .contact-table tbody tr { transition: box-shadow 140ms ease, transform 140ms ease; }
  .contact-table tbody td { transition: border-color 140ms ease; }
  .contact-name-button { transition: transform 120ms ease; }
  .contact-name-button:active { transform: scale(.985); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .contact-table tbody tr:hover { transform: translateY(-1px); }
}

@media (prefers-reduced-motion: no-preference) {
  .template { transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease; }
  .template .secondary, .template-favorite { transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 120ms ease; }
  .template .secondary:active, .template-favorite:active { transform: scale(.97); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .template:hover { transform: translateY(-2px); }
}

@media (prefers-reduced-motion: no-preference) {
  .kpi-channel-row, .kpi-fields, .kpi-review-grid { transition: background-color 140ms ease, box-shadow 140ms ease; }
  .kpi-counter button, .kpi-week-picker button, .kpi-review-options button, .kpi-pad-keys button { transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 120ms ease; }
  .kpi-counter button:not([aria-disabled="true"]):active, .kpi-week-picker button:active, .kpi-review-options button:active, .kpi-pad-keys button:active { transform: scale(.97); }
}

/* Local testimonial collection and review workspace. */
.collection-hero { display:flex;align-items:center;justify-content:space-between;gap:24px;padding:28px;border-radius:18px;margin-bottom:20px;border:1px solid #30392b;color:#f3f6eb;background:linear-gradient(90deg,#101311 35%,#10131170),var(--orbit-image) right 57% / 600px auto no-repeat,#101311; }
.collection-hero .eyebrow { color:#dff969;font-size:.65rem;letter-spacing:.12em;font-weight:700; }.collection-hero h2 { margin:8px 0;font-size:clamp(1.3rem,2.5vw,1.85rem);letter-spacing:-.035em; }.collection-hero p { color:#b2bda9;font-size:.9rem;line-height:1.6; }
.local-preview-badge { display:inline-block;margin-top:14px;padding:5px 9px;border:1px solid #c8d9e6;border-radius:7px;color:#57758b;background:#eef5fa;font-size:.7rem;font-weight:600; }
.collection-hero .local-preview-badge,.collection-customer-hero .local-preview-badge { background:#22301d99;border-color:#5b6d42;color:#c7daa8; }
.collection-workspace { display:grid;grid-template-columns:300px minmax(0,1fr);gap:24px;align-items:start; }
.collection-form-card,.collection-request-panel { background:linear-gradient(180deg,#fff,#fdfefb);border:1px solid #e0e3d9;border-radius:14px;box-shadow:0 2px 4px #17201409;min-width:0;padding:20px; }.collection-request-panel { background:#f8f8f3;box-shadow:none; }
.collection-form-card header { margin-bottom:24px; }.collection-request-panel > header { display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px;flex-wrap:wrap; }
.collection-form-card h2,.collection-request-panel h2 { font-family:inherit;font-size:1.0625rem;font-weight:650;letter-spacing:-.02em;color:#202322;display:flex;align-items:center;gap:8px; }
.collection-total { font-size:.75rem;font-weight:500;color:#626765;background:#f1f2f1;padding:2px 7px;border-radius:5px;letter-spacing:0; }
.collection-panel-description { color:#646a67;font-size:.8125rem;line-height:1.5;margin-top:5px; }
.review-heading h2 { font-size:1.3rem;letter-spacing:-.025em; }.review-heading .eyebrow { color:#536c7c;font-size:.6875rem;letter-spacing:.12em;font-weight:700;display:block;margin-bottom:8px; }
#collection-settings { display:grid;gap:20px; }#collection-settings label { color:#333835;font-size:.8125rem;font-weight:550; }#collection-settings input,#collection-settings textarea { border:1px solid #d3d7d4;border-radius:6px;font-size:.875rem;color:#303632;background:#fff;line-height:1.6;box-shadow:0 1px 2px #18231a04; }
#collection-settings input:focus,#collection-settings textarea:focus { outline:2px solid #77855b;outline-offset:2px; }
#collection-settings .field-hint { color:#666c68;font-size:.75rem;line-height:1.6;margin:0; }#collection-settings .form-error:empty { display:none; }
#collection-settings > button { justify-self:start;min-height:36px;padding:7px 13px;font-size:.8125rem;border-radius:6px;background:linear-gradient(180deg,#effbcf,#e7f8ad);border:1px solid #d7e98f;color:#283506;box-shadow:inset 0 1px #ffffffa6,0 1px 2px #4f621814;font-weight:650;border-radius:8px; }#collection-settings > button:hover { background:var(--lime);border-color:#b3c655; }
.collection-link-note { display:block;border:0;border-top:1px solid #e8eae8;border-radius:0;margin-top:24px;padding:18px 0 0;color:#69716b;background:none; }.collection-link-note strong { font-size:.75rem;font-weight:550;color:#535c55; }.collection-link-note p { margin-top:5px;font-size:.75rem;line-height:1.6; }
.collection-stats { display:flex;align-items:center;flex-wrap:wrap;gap:10px 24px;padding:0 0 20px;border-bottom:1px solid #e5e8e5;margin-bottom:0; }
.collection-stat { display:flex;align-items:center;gap:8px; }.collection-stats strong { font-size:.8125rem;line-height:1.3;font-weight:600;color:#343c36;font-variant-numeric:tabular-nums;background:#f2f3f1;padding:2px 6px;border-radius:4px; }.collection-stats span { display:flex;align-items:center;gap:6px;font-size:.8125rem;color:#606a63; }.collection-stat i { width:5px;height:5px;border-radius:50%;background:#8b928d;flex-shrink:0; }.collection-stat.requested i { background:#ae8035; }.collection-stat.submitted i { background:#557d96; }.collection-stat.approved i { background:#628349; }
.collection-requests { display:grid;grid-template-columns:repeat(auto-fit,minmax(min(245px,100%),1fr));gap:14px;padding-top:16px; }
.collection-request { display:flex;flex-direction:column;gap:16px;min-width:0;padding:16px;border:1px solid #e0e3d9;border-radius:14px;background:linear-gradient(180deg,#fff,#fdfefb);box-shadow:inset 0 1px #fff,0 2px 4px #1720140b; }
.collection-request:hover { border-color:#cbd3b8;box-shadow:0 3px 8px #17201410; }
.collection-card-meta { display:flex;align-items:center;justify-content:space-between;gap:10px; }
.collection-request-identity { display:flex;align-items:center;gap:10px;min-width:0; }.collection-request h3 { font-size:1rem;line-height:1.4;font-weight:650;letter-spacing:-.015em;color:#23291f;overflow-wrap:anywhere; }.collection-request .testimonial-avatar { flex:0 0 32px;height:32px;border-radius:9px;background:#eef2df;color:#4b572f;border:1px solid #e4e9d5;box-shadow:inset 0 1px #ffffffb0;font-size:.8125rem;font-weight:650; }
.collection-example-label { color:#68715f;font-size:.6875rem; }
.collection-date-button { display:flex;flex-direction:column;align-items:flex-start;gap:3px;width:100%;padding:10px;border:1px solid transparent;border-radius:8px;text-align:left;background:#f3f5ee;color:#5b6452;font-size:.8125rem;line-height:1.5;font-weight:400;overflow-wrap:anywhere;box-shadow:inset 0 1px #ffffff80; }.collection-date-button strong { font-weight:650;color:#414d36; }.collection-date-button:hover { background:#edf1e3;border-color:#dce3cf; }.collection-date-button > span { display:flex;justify-content:space-between;gap:12px;width:100%; }
.collection-state { display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border:0;border-radius:999px;background:#eff1e9;color:#3e4938;font-size:.75rem;font-weight:650;line-height:1.25;text-transform:capitalize;box-shadow:inset 0 1px #ffffff99,inset 0 0 0 1px #29351b06; }.collection-state::before { content:'';width:5px;height:5px;border-radius:50%;background:currentColor;opacity:.8; }.collection-state.requested { background:#f6edd9;color:#62482c; }.collection-state.submitted { background:#e1edf0;color:#3e5360; }.collection-state.approved { background:#e2f1e6;color:#2c5941; }
.collection-request-actions { display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:auto;padding-top:12px;border-top:1px solid #eceee5; }.collection-request-actions .secondary { display:inline-flex;align-items:center;gap:5px;min-height:37px;font-size:.8125rem;font-weight:650;padding:5px 9px;color:#465417;border:1px solid #dfe3d6;border-radius:8px;background:linear-gradient(180deg,#fff,#f5f7ee);box-shadow:inset 0 1px #fff,0 1px 2px #17201409; }.collection-request-actions .secondary:hover { background:#eff3e5;border-color:#c9d39f; }
.collection-request-actions [data-request-copy]::before { content:'';width:10px;height:11px;flex-shrink:0;margin-right:2px;border:1.2px solid currentColor;border-radius:2px;box-shadow:3px -3px 0 -1px #fff,3px -3px 0 0 currentColor;opacity:.8; }
.collection-request-actions [data-request-preview] { color:#283506;background:linear-gradient(180deg,#effbcf,#e7f8ad);border-color:#d7e98f;box-shadow:inset 0 1px #ffffffa6,0 1px 2px #4f621814; }.collection-request-actions [data-request-preview]:hover { background:var(--lime);border-color:#b3c655; }
.collection-request-panel #new-testimonial-request { border-radius:8px;min-height:37px;padding:7px 12px;font-size:.8125rem;box-shadow:inset 0 1px #ffffff80,0 1px 2px #35451e0a; }
.collection-text-button { border:0;padding:7px 9px;background:transparent;color:#425e72;font-size:.8125rem;text-decoration:underline;text-underline-offset:3px; }
.collection-customer-hero { padding:24px;margin-bottom:24px;border-radius:14px;background:linear-gradient(90deg,#101311 35%,#10131180),var(--orbit-image) right 58% / 340px auto no-repeat,#101311;color:#fff; }.collection-customer-hero .local-preview-badge { margin-top:0; }.collection-customer-hero h2 { font-size:1.55rem;letter-spacing:-.035em;line-height:1.2;margin:16px 0 10px; }.collection-customer-hero p { color:#b8c6ad;font-size:.9rem;line-height:1.6; }
#customer-testimonial-form { display:grid;gap:20px; }#customer-testimonial-form .fields { margin:0; }#customer-testimonial-form label { font-size:.82rem; }#customer-testimonial-form small { font-weight:400;color:#788b99; }#customer-testimonial-form fieldset { min-width:0;margin:0;padding:0;border:0; }#customer-testimonial-form legend { font-size:.82rem;font-weight:650; }
.collection-prompts { background:#edf4fa!important;padding:14px!important;border-radius:12px; }.collection-prompts .testimonial-tag-picker { margin:8px 0 12px; }.collection-prompts p { font-size:.8rem;color:#56768e;line-height:1.5; }.collection-prompts .secondary[aria-pressed="true"] { background:#dcebf7;border-color:#a8c4db;color:#315f81; }
.collection-rating > div { display:flex;align-items:center;margin-top:8px; }.collection-rating [data-submission-rating] { width:44px;height:44px;border:0;border-radius:8px;background:transparent;color:#bfcbd3;font-size:1.6rem; }.collection-rating [data-submission-rating].is-filled { color:#d97706; }.collection-rating [data-submission-rating]:hover { background:#fff1db; }
.collection-consent { display:flex;align-items:start;gap:12px;padding:14px;border:1px solid #dce6cf;border-radius:12px;background:#f2f7e9;color:#475f35;line-height:1.5; }.collection-consent input { flex:0 0 20px;width:20px;min-height:20px;margin:2px 0 0;accent-color:#667d35; }.collection-consent small { display:block;margin-top:6px; }
.collection-media-preview { border:1px dashed #c8d9e5;border-radius:10px;padding:12px;font-size:.8rem;color:#5a778c; }.collection-media-preview summary { cursor:pointer;font-weight:650; }.collection-media-preview input { font-size:.75rem; }.collection-media-preview img,.collection-media-preview video { display:block;max-width:100%;max-height:240px;border-radius:10px;margin-top:12px; }
.collection-success { padding:48px 20px;text-align:center; }.collection-success > span { display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:#e9f7c1;color:#66832d;font-size:2rem;margin:0 auto 20px; }.collection-success p { margin:14px 0 24px;color:#708493;line-height:1.7; }
.review-heading { display:flex;justify-content:space-between;align-items:center;gap:16px;margin:24px 0 20px; }.review-heading p { margin-top:8px;color:#768b9b;font-size:.85rem; }.review-heading .local-preview-badge { margin:0; }
.review-filters { max-width:550px;margin-bottom:20px; }.review-filters span { margin-left:5px;opacity:.65; }
.review-grid { columns:300px;column-gap:16px; }.review-card { display:inline-flex;flex-direction:column;gap:16px;width:100%;break-inside:avoid;vertical-align:top;padding:22px;margin:0 0 16px;border:1px solid #d6e3ed;border-radius:17px;background:linear-gradient(145deg,#fff,#f2f7fc);box-shadow:0 4px 16px #203b5407; }.review-card header { display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px; }.review-card blockquote,.review-full-quote { margin:0;border-left:3px solid #83a9c5;padding:0 0 0 14px;color:#3d586e;font-size:.95rem;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere; }.review-full-quote { margin:24px 0; }
.review-permission { padding:12px;border-radius:10px;line-height:1.5;background:#eef5e3;color:#577235; }.review-permission strong { display:block;font-size:.75rem; }.review-permission small { display:block;font-size:.7rem;margin-top:4px; }.review-permission p { font-size:.82rem;margin:8px 0; }.review-permission.is-missing { background:#fff2df;color:#946928; }
.review-card footer { display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #e1e9f0;padding-top:14px; }.review-card footer small { color:#7f93a1;font-size:.68rem; }.review-card .actions button { padding:7px 10px;min-height:38px;font-size:.75rem;border-radius:8px; }
#review-submission-form > label { margin-top:20px; }#review-submission-form > button:disabled { opacity:.5;cursor:default; }
@media(max-width:1000px) { .collection-workspace { grid-template-columns:1fr; }.collection-hero { flex-wrap:wrap; }.collection-request-panel { padding:18px; } }
@media(max-width:760px) { .testimonial-tabs { grid-template-columns:repeat(2,minmax(0,1fr)); }.collection-hero { padding:20px; }.collection-hero > button { width:100%; }.collection-form-card { padding:18px; }.collection-stats { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px; }.collection-stat { justify-content:space-between; }.collection-request-actions .secondary { min-height:44px; }.collection-date-button { min-height:30px; }.review-heading { flex-wrap:wrap; }.review-filters button { font-size:.7rem;padding-inline:8px; }.review-card { padding:18px; }.review-card .actions button { min-height:44px; }.collection-customer-hero { padding:18px; } }

/* Sign-in screen (online version, also the Worker's /api/auth pages): light canvas, dark orbit banner, lime action. */
.sign-in-screen { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; overflow-y: auto; padding: max(24px, env(safe-area-inset-top, 0px)) 16px max(24px, env(safe-area-inset-bottom, 0px)); background: #f4f4ee; }
.sign-in-card { width: min(420px, 100%); overflow: hidden; border: 1px solid #dfe4d7; border-radius: 14px; background: var(--surface); box-shadow: 0 2px 4px #26321c06, 0 18px 40px #26321c12; }
.sign-in-banner { display: flex; align-items: flex-end; min-height: 128px; padding: 20px 22px; color: #f5f6ef; background: linear-gradient(90deg, var(--dark) 34%, #111213b3 100%), var(--orbit-image) right 55% / 360px auto no-repeat, var(--dark); border-bottom: 1px solid #292c24; }
.sign-in-banner .brand { padding: 0; }
.sign-in-body { display: grid; gap: 14px; padding: 24px 22px 22px; }
.sign-in-body h1 { font-size: clamp(1.35rem, 5vw, 1.6rem); }
.sign-in-body p { color: var(--muted); font-size: .9375rem; overflow-wrap: anywhere; }
.sign-in-body p strong { color: #30362b; }
.sign-in-body .primary { width: 100%; min-height: 48px; margin-top: 4px; }
.sign-in-body .sign-in-note { font-size: .8125rem; }
