@charset "UTF-8";
/* Threshold look: warm white, navy for text and buttons, gold as the one accent. */
:root {
  --bg: #F9F9F9;
  --card: #FFFFFF;
  --tint: #EEF2F7;
  --line: #E2E2E2;
  --ink: #16202B;
  --navy: #1B2A3A;
  --muted: #5F6670;
  --label: #6E747E;
  --gold: #C8A96B;
  --seg-done: #46658C;
  --seg-next: #E4E7EB;
  --st-urgent: #C0503A;
  --st-soon: #C9962F;
  --st-ready: #2F8F5B;
  --st-calm: #8A96A3;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', system-ui, -apple-system, Segoe UI, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15px; }
button, input, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--seg-done); outline-offset: 2px; }

.wrap { max-width: 1240px; margin: 0 auto; padding-block: 20px 56px; padding-inline: max(16px, 2.5vw); }
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.brand { display: flex; align-items: baseline; gap: 12px; }
.brand b { font-family: var(--serif); font-size: 34px; font-weight: 600; }
.brand span { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--label); }
.who { display: flex; align-items: center; gap: 12px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: #E9EDF2; box-shadow: 0 0 0 1px var(--gold); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 18px; color: var(--navy); }
button.avatar { border: 0; padding: 0; transition: box-shadow .15s; }
button.avatar:hover { box-shadow: 0 0 0 2px var(--gold); }

.btn { border: 0; border-radius: 999px; height: 46px; padding: 0 22px; font-weight: 500; background: var(--navy); color: #fff; }
.btn.ghost { background: var(--card); color: var(--ink); border: 1px solid #CDD3DA; }
.btn.small { height: 36px; padding: 0 14px; font-size: 13px; }
.btn.link { background: none; border: 0; color: var(--muted); padding: 0 6px; text-decoration: underline; }

.hello { display: flex; flex-direction: column; gap: 6px; margin-bottom: 24px; }
.eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--label); }
h1 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 6vw, 52px); line-height: 1.05; }
h1 i { font-style: italic; }
.sub { margin: 0; font-size: 17px; color: var(--muted); }

.banner { background: var(--tint); border: 1px solid #DCE3EC; border-radius: 24px; padding: 22px 26px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.banner .tag { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #9A3324; }
.banner h2 { margin: 4px 0 0; font-family: var(--serif); font-size: 28px; font-weight: 500; line-height: 1.15; }
.banner p { margin: 4px 0 0; color: #4E5662; }
.banner.clear .tag { color: #1F6B41; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }

.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.section-head h2 { margin: 0; font-family: var(--serif); font-size: 32px; font-weight: 500; }
.legend { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.legend span.sw { width: 18px; height: 10px; border-radius: 3px; display: inline-block; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.card { text-align: left; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; color: var(--ink); }
.card:hover { box-shadow: 0 8px 24px rgba(22, 32, 43, .08); }
.tile { height: 150px; overflow: hidden; width: 100%; position: relative; display: grid; place-items: center; }
.pill { position: absolute; top: 12px; left: 12px; display: flex; align-items: center; gap: 7px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 600; border-radius: 999px; padding: 6px 12px; }
.pill.sample { left: auto; right: 12px; color: var(--muted); font-weight: 500; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; width: 100%; }
.addr { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.1; }
.meta { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--muted); }
.meta b { color: var(--ink); white-space: nowrap; }
.segs { display: flex; gap: 4px; }
.segs span { flex: 1; height: 5px; border-radius: 999px; background: var(--seg-next); }
.segs span.done { background: var(--seg-done); }
.segs span.now { background: var(--gold); }
.next { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #F4F5F7; border-radius: 14px; padding: 11px 14px; font-size: 14px; }
.next .when { font-weight: 600; white-space: nowrap; }

.empty { background: var(--card); border: 1.5px dashed #B9C3CE; border-radius: 24px; padding: 48px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty h2 { margin: 0; font-family: var(--serif); font-size: 32px; font-weight: 500; }

/* Modals */
.overlay { position: fixed; inset: 0; background: rgba(22, 32, 43, .5); overflow-y: auto; padding: 28px 16px; display: flex; justify-content: center; align-items: flex-start; z-index: 50; }
.dialog { width: 100%; max-width: 860px; background: var(--bg); border-radius: 26px; overflow: hidden; box-shadow: 0 30px 80px rgba(22, 32, 43, .3); }
.dialog.narrow { max-width: 680px; }
.dialog-head { height: 220px; overflow: hidden; position: relative; display: grid; place-items: center; }
.close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; }
.dialog-body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 20px; }
.dialog-body h2 { margin: 0; font-family: var(--serif); font-size: 38px; font-weight: 500; line-height: 1.05; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.fact { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.fact small { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--label); }
.fact b { font-size: 20px; font-weight: 600; }
.box { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.box h3 { margin: 0; font-family: var(--serif); font-size: 24px; font-weight: 600; }
.cols { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.cols > * { flex: 1 1 280px; }
.cols > .box:first-child { flex: 2 1 440px; }
.step .right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }

.flag { display: flex; gap: 12px; align-items: flex-start; background: #F2F2F2; border: 1px solid #D5D5D5; border-radius: 14px; padding: 12px 14px; color: #5A4A2E; font-size: 14px; line-height: 1.5; }

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.step { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 12px; }
.step input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--seg-done); }
.step .label { font-weight: 500; }
.step.done .label { color: var(--muted); text-decoration: line-through; }
.step .src { font-size: 12px; color: var(--label); }
.step .src.unsure { color: #7A5418; font-weight: 600; }
.step input[type=date] { border: 1px solid #CDD3DA; border-radius: 10px; padding: 6px 8px; background: #fff; }

.person { display: flex; align-items: center; gap: 12px; }
.initials { width: 40px; height: 40px; flex: none; border-radius: 50%; background: #E9EDF2; color: var(--navy); font-weight: 600; font-size: 14px; display: grid; place-items: center; }
.person small { display: block; color: var(--muted); font-size: 13px; }

.drop { border: 1.5px dashed #B9C3CE; background: #fff; border-radius: 20px; padding: 30px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.drop.over { border-color: var(--seg-done); background: var(--tint); }
.samples { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
textarea { width: 100%; min-height: 140px; border: 1px solid #CDD3DA; border-radius: 14px; padding: 12px; background: #fff; resize: vertical; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field input { border: 1px solid #CDD3DA; border-radius: 10px; height: 44px; padding: 0 12px; background: #fff; }
.note { font-size: 13px; color: var(--muted); }
.row-end { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.error { color: #9A3324; font-size: 14px; }

@media (max-width: 560px) {
  .dialog-body { padding: 20px 18px 24px; }
  .dialog-body h2 { font-size: 30px; }
  .step { grid-template-columns: 24px 1fr; }
  .step .right { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Navigation and extra pages */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 26px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { background: none; border: 0; padding: 12px 16px; font-size: 15px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.tab:hover { color: var(--ink); }
.tab.on { color: var(--ink); border-bottom-color: var(--gold); }
.badge { background: var(--st-urgent); color: #fff; font-size: 11px; font-weight: 600; border-radius: 999px; min-width: 18px; height: 18px; padding: 0 5px; display: inline-grid; place-items: center; }
.page { animation: pageIn .25s ease; }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat { text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; transition: box-shadow .15s, transform .15s; }
.stat:hover { box-shadow: 0 8px 24px rgba(22, 32, 43, .08); transform: translateY(-1px); }
.stat small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--label); }
.stat b { font-family: var(--serif); font-size: 38px; font-weight: 600; line-height: 1.1; }
.stat span { font-size: 13px; color: var(--muted); }

.box-head { display: flex; justify-content: space-between; align-items: baseline; }
.rows { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 14px; background: none; border: 0; border-top: 1px solid var(--line); padding: 11px 4px; text-align: left; width: 100%; border-radius: 0; }
.row:first-child { border-top: 0; }
.row:hover { background: #F7F8FA; }
.row-date { width: 42px; flex: none; text-align: center; line-height: 1.05; }
.row-date b { display: block; font-family: var(--serif); font-size: 22px; }
.row-date small { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--label); }
.row-date.late b { color: #9A3324; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row-main small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-title { font-weight: 500; }
.row-title.struck { text-decoration: line-through; color: var(--muted); }
.row-when { font-size: 13px; font-weight: 600; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.swatch { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { border: 1px solid #CDD3DA; background: var(--card); border-radius: 999px; padding: 7px 14px; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.chip span { color: var(--label); font-size: 12px; }
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip.on span { color: #C9D2DD; }
.chip:hover:not(.on) { border-color: var(--seg-done); }

.month-nav { display: flex; align-items: center; gap: 10px; }
.month-nav b { font-family: var(--serif); font-size: 22px; font-weight: 600; min-width: 150px; text-align: center; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--line); gap: 1px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.dow { background: #F4F5F7; padding: 8px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--label); text-align: center; }
.day { background: var(--card); min-height: 104px; padding: 6px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.day.blank { background: #FFFFFF; }
.day.past .num { color: #A4AAB2; }
.day .num { font-size: 13px; font-weight: 600; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.day.today .num { background: var(--gold); color: #fff; }
.ev { display: flex; align-items: center; gap: 5px; border: 0; background: var(--tint); border-radius: 6px; padding: 3px 6px; font-size: 12px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ev .dot { width: 6px; height: 6px; }
.ev.late { background: #F6E3DF; color: #9A3324; }
.ev.done { background: #F1F2F4; color: var(--muted); text-decoration: line-through; }
.ev:hover { filter: brightness(.96); }
.more { font-size: 11px; color: var(--muted); padding-left: 4px; }

.grid.people { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.pname { font-weight: 600; }
.pdeals { display: flex; flex-wrap: wrap; gap: 6px; }
.pdeals .chip { font-size: 13px; padding: 5px 11px; }

@media (max-width: 640px) {
  .day { min-height: 54px; padding: 4px; }
  .ev { font-size: 0; padding: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--seg-done); }
  .ev .dot { display: none; }
  .ev.late { background: var(--st-urgent); }
  .ev.done { background: #C5CBD3; }
  .day { flex-direction: row; flex-wrap: wrap; align-content: flex-start; }
  .day .num { width: 100%; height: auto; place-items: start; border-radius: 0; }
  .day.today .num { background: none; color: var(--gold); }
  .month-nav b { min-width: 0; font-size: 18px; }
  .who .btn { padding: 0 16px; }
}

/* House pictures */
.scene, .photo { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.photo { object-fit: cover; }
.tile .pill, .dialog-head .pill, .dialog-head .close, .photo-btn { z-index: 1; }
.photo-btn { display: inline-flex; align-items: center; position: absolute; left: 12px; bottom: 12px; top: auto; background: rgba(255,255,255,.92); }
.dialog-head .pill { top: 14px; left: 14px; }
.swatch, .thumb { position: relative; overflow: hidden; border-radius: 12px; flex: none; }
.swatch { width: 56px; height: 42px; }
.thumb { width: 88px; height: 60px; }

/* Contacts */
.search { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid #CDD3DA; border-radius: 999px; padding: 0 18px; height: 50px; margin-bottom: 18px; color: var(--muted); }
.search input { flex: 1; border: 0; outline: 0; background: none; height: 100%; font-size: 16px; color: var(--ink); min-width: 0; }
.search:focus-within { border-color: var(--seg-done); box-shadow: 0 0 0 3px var(--tint); }
.cgroups { display: flex; flex-direction: column; gap: 16px; }
.cgroup { background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.cgroup-head { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: #FFFFFF; border: 0; border-bottom: 1px solid var(--line); padding: 12px 18px; }
.cgroup-head:hover { background: var(--tint); }
.crow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 12px 18px; border-top: 1px solid var(--line); }
.crow:first-child { border-top: 0; }
.crow .person { min-width: 220px; }
.ctag { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8A6A2B; background: #ECECEC; border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: 2px; }
.clinks { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.clink { display: inline-flex; align-items: center; gap: 6px; color: var(--seg-done); text-decoration: none; font-size: 14px; overflow-wrap: anywhere; }
.clink:hover { text-decoration: underline; }
.cedit { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cedit input { border: 1px solid #CDD3DA; border-radius: 10px; height: 36px; padding: 0 10px; background: #fff; width: 190px; max-width: 100%; }

/* Performance */
.stats.hero .stat b { font-size: 42px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .gridline { stroke: var(--line); stroke-width: 1; }
.chart .baseline { stroke: #B9C0C8; stroke-width: 1; }
.chart .axis { font-size: 12px; fill: var(--label); font-family: var(--sans); }
.chart .bar { fill: var(--seg-done); }
.chart .barhit:hover .bar { fill: var(--navy); }
.tip { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; background: var(--navy); color: #fff; font-size: 13px; padding: 7px 11px; border-radius: 10px; white-space: nowrap; box-shadow: 0 6px 18px rgba(22,32,43,.2); }
.table-wrap { overflow-x: auto; margin: 0 -4px; }
.ptable { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.ptable th { text-align: left; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--label); font-weight: 500; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.ptable td { padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ptable tr:last-child td { border-bottom: 0; }
.ptable td small { display: block; color: var(--muted); font-size: 12px; }
.ptable .num { text-align: right; white-space: nowrap; }
.dbar { display: inline-block; width: 70px; height: 6px; background: var(--seg-next); border-radius: 999px; margin-right: 8px; vertical-align: middle; overflow: hidden; }
.dbar span { display: block; height: 100%; background: var(--gold); border-radius: 999px; }
.split { display: flex; gap: 2px; height: 12px; border-radius: 999px; overflow: hidden; }
.split-key { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); }
.split-key i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
@media (max-width: 560px) { .stats.hero .stat b { font-size: 32px; } .thumb { width: 64px; height: 48px; } .cgroup-head .row-when { display: none; } }

/* Calendar: day / week / month */
.cal-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.cal-bar .month-nav b { text-align: left; min-width: 0; margin-left: 6px; }
.seg { display: inline-flex; background: #ECEDEF; border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; border-radius: 999px; padding: 7px 16px; font-size: 14px; color: var(--muted); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(22,32,43,.12); font-weight: 500; }
.type-key { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.type-key i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

.tgrid-wrap { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow-x: auto; }
.tgrid { display: flex; flex-direction: column; min-width: 100%; }
.tgrid.week { min-width: 820px; }
.thead, .allday, .tbody { display: grid; grid-template-columns: 58px repeat(var(--days), minmax(0, 1fr)); }
.thead { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--card); z-index: 3; }
.dhead { border: 0; background: none; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 1px; border-left: 1px solid var(--line); }
.dhead small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--label); }
.dhead b { font-family: var(--serif); font-size: 24px; font-weight: 600; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; }
.dhead span { font-size: 12px; color: var(--muted); }
.dhead.today b { background: var(--gold); color: #fff; }
.dhead:hover { background: #F7F8FA; }
.allday { border-bottom: 1px solid var(--line); background: #FFFFFF; }
.allday .corner { display: grid; place-items: center; }
.allday .corner small { font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--label); }
.adcell { border-left: 1px solid var(--line); padding: 4px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.deadline { border: 0; background: var(--navy); color: #fff; border-radius: 6px; padding: 3px 7px; font-size: 12px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deadline.done { background: #C5CBD3; color: var(--ink); text-decoration: line-through; }
.gutter .hr { position: relative; }
.gutter .hr span { position: absolute; top: -8px; right: 8px; font-size: 11px; color: var(--label); background: var(--card); padding: 0 2px; }
.gutter .hr:first-child span { top: 3px; }
.tcol { position: relative; border-left: 1px solid var(--line); background-image: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 56px); }
.tcol.today { background-color: #FFFFFF; }
.slot { display: block; width: 100%; height: 56px; border: 0; background: none; padding: 0; }
.slot:hover { background: rgba(70,101,140,.06); }
.evb { position: absolute; z-index: 1; border: 0; text-align: left; border-radius: 7px; padding: 4px 7px; overflow: hidden; display: flex; flex-direction: column; gap: 1px;
  background: color-mix(in srgb, var(--c) 14%, #fff); border-left: 3px solid var(--c); color: var(--ink); box-shadow: 0 0 0 1px #fff; }
.evb:hover { background: color-mix(in srgb, var(--c) 24%, #fff); z-index: 2; }
.evb.short { flex-direction: row; align-items: center; padding: 1px 6px; }
.evb-title { font-size: 12px; font-weight: 600; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evb-meta { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tgrid.day .evb-title { font-size: 14px; }
.tgrid.day .evb-meta { font-size: 12px; }
.now { position: absolute; left: 0; right: 0; height: 2px; background: var(--st-urgent); z-index: 2; pointer-events: none; }
.now::before { content: ''; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--st-urgent); }

.day { position: relative; }
.day .num { border: 0; background: none; cursor: pointer; }
.day .num:hover { background: var(--tint); }
.ev { --c: var(--navy); background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--ink); }
.ev b { font-weight: 600; }
.evdot { width: 6px; height: 6px; border-radius: 50%; background: var(--c); flex: none; }
.deadline-ev { background: var(--navy); color: #fff; }
.more { border: 0; background: none; text-align: left; cursor: pointer; }
.more:hover { color: var(--ink); text-decoration: underline; }
.count { display: none; }

.today-strip { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; }
.tcard { flex: 0 0 200px; scroll-snap-align: start; text-align: left; border: 1px solid var(--line); border-top: 3px solid var(--c); background: #fff; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.tcard small { font-size: 12px; color: var(--muted); }
.tcard b { font-weight: 600; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tcard span { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.tcard i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.tcard.past { opacity: .55; }
.tcard.next { box-shadow: 0 0 0 2px var(--c); }
.tcard:hover { box-shadow: 0 6px 16px rgba(22,32,43,.08); }

.type-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.tchip { border: 1px solid #CDD3DA; background: #fff; border-radius: 999px; padding: 7px 13px; font-size: 14px; display: inline-flex; align-items: center; gap: 7px; }
.tchip i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.tchip.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, #fff); font-weight: 500; }
.form-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; }
.field select { border: 1px solid #CDD3DA; border-radius: 10px; height: 44px; padding: 0 10px; background: #fff; font: inherit; }
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .form-row .field:first-child { grid-column: 1 / -1; }
  .day .ev:not(.deadline-ev) { background: var(--c); }
  .count { display: block; position: absolute; top: 4px; right: 5px; font-size: 10px; color: var(--muted); }
  .day .num { width: auto; }
}

/* ===================== Luxe look (black, ivory, champagne gold) ===================== */
:root {
  --bg: #F4F4F4;
  --card: #FFFFFF;
  --tint: #E9E9E9;
  --line: #E0E0E0;
  --ink: #101010;
  --navy: #101010;
  --muted: #606060;
  --label: #7C7C7C;
  --gold: #C8A96B;
  --gold-ink: #8A6A32;
  --gold-hi: #F3E3BC;
  --gold-grad: linear-gradient(135deg, #E6CF9A, #C8A96B 55%, #A88550);
  --night: #0A0A0A;
  --seg-done: #8A6A32;
  --seg-next: #E4E4E4;
  --st-calm: #979797;
  --sans: 'Hanken Grotesk', 'Jost', system-ui, -apple-system, Segoe UI, sans-serif;
  --caps: 'Montserrat', 'Jost', system-ui, sans-serif;
}
body { background: var(--bg); }
:focus-visible { outline-color: var(--gold); }
::selection { background: #EBD7A8; }

/* Masthead: brand, menu and page title on black with a soft gold glow */
.masthead { position: relative; overflow: hidden; background: var(--night); color: #fff; padding-top: env(safe-area-inset-top, 0px); }
.masthead::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 380px at 8% -10%, rgba(200,169,107,.28), transparent 70%), radial-gradient(600px 360px at 100% 120%, rgba(154,111,79,.22), transparent 70%); }
.masthead::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%); -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%); }
.masthead-in { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding-block: 18px 36px; padding-inline: max(16px, 2.5vw); }
.masthead .top { margin-bottom: 22px; }
.brand { align-items: center; }
.brand .mark { width: 34px; height: 34px; border-radius: 50%; background: var(--gold-grad); display: grid; place-items: center; box-shadow: 0 0 24px rgba(200,169,107,.35); }
.masthead .brand b { color: #fff; font-size: 32px; letter-spacing: .01em; }
.masthead .brand span { color: #A9A9A9; font-family: var(--caps); font-size: 10px; letter-spacing: .3em; }
.masthead .avatar { background: #161616; color: var(--gold-hi); box-shadow: 0 0 0 1px rgba(200,169,107,.6); }
.masthead button.avatar:hover { box-shadow: 0 0 0 2px var(--gold), 0 0 20px rgba(200,169,107,.4); }

.masthead .tabs { border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.04); border-radius: 999px; padding: 4px; gap: 2px; margin: 0 0 30px; width: max-content; max-width: 100%; backdrop-filter: blur(8px); }
.masthead .tab { border: 0; margin: 0; border-radius: 999px; padding: 9px 18px; color: #A9A9A9; font-family: var(--caps); font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; transition: color .2s, background .2s; }
.masthead .tab:hover { color: #fff; }
.masthead .tab.on { background: var(--gold-grad); color: #101010; box-shadow: 0 6px 20px rgba(200,169,107,.25); }
.masthead .tab.on .badge { background: #101010; color: var(--gold-hi); }
.badge { background: #B4553E; }

.masthead .hello, .masthead .page-head { margin: 0; }
.masthead h1 { color: #fff; font-size: clamp(44px, 7vw, 76px); line-height: .98; letter-spacing: -0.01em; }
.masthead h1 i { background: linear-gradient(100deg, #F3E3BC, #C8A96B 60%, #9A7444); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .05em; }
.masthead .eyebrow { color: var(--gold); }
.masthead .sub, .masthead .note { color: #A9A9A9; }
.masthead .chip { background: transparent; color: #E3E3E3; border-color: rgba(255,255,255,.16); }
.masthead .chip span { color: #A9A9A9; }
.masthead .chip:hover:not(.on) { border-color: var(--gold); }
.masthead .chip.on { background: var(--gold-grad); color: #101010; border-color: transparent; }
.masthead .chip.on span { color: #313131; }
.masthead .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }
.masthead .btn.ghost:hover { border-color: var(--gold); }
.masthead .btn.link { color: #E6CF9A; }
.masthead .seg { background: rgba(255,255,255,.06); }
.masthead .seg button { color: #A9A9A9; }
.masthead .seg button.on { background: var(--gold-grad); color: #101010; }
.masthead .month-nav b { color: #fff; }
.masthead .search { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); color: #A9A9A9; }
.masthead .search input { color: #fff; }

.body-wrap { padding-top: 32px; }

/* Type and labels */
.eyebrow, .stat small, .fact small, .ptable th, .dow, .dhead small, .ctag { font-family: var(--caps); letter-spacing: .2em; font-weight: 600; }
.eyebrow { font-size: 11px; color: var(--gold-ink); }
h1, .section-head h2, .box h3, .dialog-body h2, .empty h2 { letter-spacing: -0.005em; }
.box h3 { font-size: 28px; }

/* Buttons */
.btn { background: var(--gold-grad); color: #101010; font-family: var(--caps); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; box-shadow: 0 8px 22px rgba(168,133,80,.22), inset 0 1px 0 rgba(255,255,255,.45); transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(168,133,80,.32), inset 0 1px 0 rgba(255,255,255,.45); }
.btn.ghost { background: var(--card); color: var(--ink); border: 1px solid #D9CDB8; box-shadow: none; }
.btn.ghost:hover { border-color: var(--gold); }
.btn.small { font-size: 11px; }
.btn.link { background: none; box-shadow: none; color: var(--gold-ink); font-family: var(--caps); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.btn.link:hover { color: var(--ink); transform: none; box-shadow: none; }

/* Cards and boxes */
.card, .box, .stat, .pcard, .cgroup, .fact, .tgrid-wrap, .cal { border-color: var(--line); }
.box { background: var(--card); border-radius: 24px; padding: 24px; box-shadow: 0 1px 0 rgba(20,17,13,.02); }
.card { background: var(--card); border-radius: 24px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); border-color: #DCC9A4; box-shadow: 0 24px 50px rgba(20,17,13,.10); }
.card .tile { height: 168px; }
.addr { font-size: 26px; }
.next { background: #F0F0F0; }
.pill { font-family: var(--caps); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; box-shadow: 0 4px 14px rgba(20,17,13,.15); }

.stat { position: relative; overflow: hidden; background: var(--card); border-radius: 22px; padding: 20px 22px; }
.stat::before { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 2px; background: var(--gold-grad); opacity: .7; }
.stat small { font-size: 10px; color: var(--label); }
.stat b { font-size: 46px; font-weight: 500; }
.stat span { color: var(--gold-ink); }
.stat:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(20,17,13,.08); border-color: #DCC9A4; }
.stats.hero .stat { background: var(--night); color: #fff; border-color: #242424; }
.stats.hero .stat::before { opacity: 1; }
.stats.hero .stat small { color: #A9A9A9; }
.stats.hero .stat b { font-size: 50px; background: linear-gradient(100deg, #F3E3BC, #C8A96B); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats.hero .stat span { color: #A9A9A9; }
.stats.hero .stat:first-child { background: radial-gradient(260px 160px at 0% 0%, rgba(200,169,107,.25), transparent 70%), var(--night); }
.fact { background: var(--card); border-radius: 16px; }
.fact b { font-family: var(--serif); font-size: 28px; font-weight: 600; }

/* "Needs you" banner: black card with gold */
.banner { position: relative; overflow: hidden; background: var(--night); border: 1px solid #242424; border-radius: 28px; padding: 26px 30px; color: #fff; }
.banner::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px 220px at 100% 0%, rgba(200,169,107,.25), transparent 70%); }
.banner > * { position: relative; }
.banner .tag { color: #E8A08F; font-family: var(--caps); font-size: 10.5px; letter-spacing: .22em; }
.banner.clear .tag { color: #A9D3B5; }
.banner h2 { color: #fff; font-size: 36px; }
.banner p { color: #A9A9A9; }

/* Rows, chips, tables */
.row:hover, .dhead:hover, .cgroup-head:hover { background: #F6F6F6; }
.row-date b { color: var(--ink); }
.chip { background: var(--card); border-color: #D9CDB8; }
.chip.on { background: var(--night); color: var(--gold-hi); border-color: var(--night); }
.chip.on span { color: #A9A9A9; }
.chip:hover:not(.on) { border-color: var(--gold); }
.ptable td b { font-weight: 600; }
.dbar span { background: var(--gold-grad); }
.clink { color: var(--gold-ink); }
.ctag { color: var(--gold-ink); background: #E9E9E9; }
.initials { background: var(--night); color: var(--gold-hi); font-family: var(--serif); font-size: 16px; }
.avatar { font-family: var(--serif); }
.seg { background: #E5E5E5; }
.flag { background: #F8F0E1; border-color: #CFCFCF; color: #5A4A2E; }

/* Charts */
.chart .bar { fill: url(#goldbar); }
.chart .barhit:hover .bar { fill: #8A6A32; }
.tip { background: var(--night); color: var(--gold-hi); border: 1px solid #313131; font-family: var(--sans); }

/* Calendar */
.day.today .num, .dhead.today b { background: var(--gold-grad); color: #101010; }
.tcol.today { background-color: #F6F6F6; }
.deadline, .deadline-ev { background: var(--night); color: var(--gold-hi); }
.dow, .allday { background: #F6F6F6; }
.slot:hover { background: rgba(200,169,107,.08); }

/* Dialogs */
.overlay { background: rgba(11,10,9,.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.dialog { background: var(--bg); box-shadow: 0 40px 100px rgba(0,0,0,.45); }
.close { background: rgba(255,253,249,.95); }
.step input[type=checkbox] { accent-color: var(--gold-ink); }
.field input, .field select, textarea, .step input[type=date], .cedit input { border-color: #D9CDB8; background: #FFFFFF; }
.field input:focus, .field select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,169,107,.18); }
.field label { font-size: 13px; color: var(--muted); }

/* Past sale form */
.sale-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; align-items: end; }
.sale-form .wide { grid-column: span 2; }
.manual-tag { font-family: var(--caps); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); background: #E9E9E9; border-radius: 999px; padding: 2px 7px; margin-left: 6px; vertical-align: 2px; }
.x-btn { border: 0; background: none; color: var(--label); padding: 4px; border-radius: 8px; line-height: 0; }
.x-btn:hover { color: #9A3324; background: #F6E3DF; }

/* Motion: page sections rise in one after another */
.page > * { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
.page > *:nth-child(2) { animation-delay: .06s; } .page > *:nth-child(3) { animation-delay: .12s; } .page > *:nth-child(4) { animation-delay: .18s; } .page > *:nth-child(5) { animation-delay: .24s; } .page > *:nth-child(n+6) { animation-delay: .3s; }
.masthead .hello, .masthead .page-head { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.page { animation: none; }

@media (max-width: 640px) {
  .masthead-in { padding-block: 14px 28px; }
  .masthead .brand > span:not(.mark) { display: none; }
  .masthead .brand b { font-size: 28px; }
  .masthead .tab { padding: 8px 13px; font-size: 10.5px; letter-spacing: .1em; }
  .masthead .who .btn { padding: 0 14px; height: 40px; font-size: 10.5px; letter-spacing: .08em; }
  .stat b { font-size: 38px; }
  .stats.hero .stat b { font-size: 38px; }
  .banner { padding: 22px; }
  .banner h2 { font-size: 30px; }
  .sale-form .wide { grid-column: auto; }
  .day.today .num { background: none; color: var(--gold-ink); }
}
@media (prefers-reduced-motion: reduce) { .page > *, .masthead .hello, .masthead .page-head { animation: none; } }
.fact small { font-size: 9.5px; letter-spacing: .12em; }

/* Today: day console */
.day-console { position: relative; overflow: hidden; background: var(--night); color: #fff; border: 1px solid #242424; border-radius: 26px; padding: 22px 24px 18px; box-shadow: 0 30px 70px rgba(20,17,13,.18); }
.day-console::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(to bottom, #000, transparent 90%); -webkit-mask-image: linear-gradient(to bottom, #000, transparent 90%); }
.day-console::after { content: ""; position: absolute; width: 420px; height: 260px; right: -120px; top: -140px; background: radial-gradient(closest-side, rgba(200,169,107,.25), transparent); pointer-events: none; }
.day-console > * { position: relative; z-index: 1; }
.dc-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.dc-label { font: 600 10.5px var(--caps); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 8px; }
.dc-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(200,169,107,.7); animation: dcping 1.8s infinite; }
@keyframes dcping { 70% { box-shadow: 0 0 0 9px rgba(200,169,107,0); } 100% { box-shadow: 0 0 0 0 rgba(200,169,107,0); } }
.day-console h3 { margin: 4px 0 0; font-family: var(--serif); font-size: 34px; font-weight: 500; color: #fff; }
.day-console h3 i { background: linear-gradient(100deg, #F3E3BC, #C8A96B); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dc-actions { display: flex; align-items: center; gap: 8px; }
.dc-pct { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: #808080; margin-right: 6px; }
.dc-pct b { color: #F3E3BC; font-weight: 600; }
.day-console .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.22); }
.ruler { margin: 4px 0 16px; }
.ruler-track { position: relative; height: 14px; border-radius: 7px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); }
.ruler-track i { position: absolute; top: 3px; height: 6px; border-radius: 3px; background: var(--c); opacity: .9; box-shadow: 0 0 8px color-mix(in srgb, var(--c) 60%, transparent); }
.ruler-track i.past { opacity: .3; box-shadow: none; }
.ruler-now { position: absolute; top: -6px; bottom: -6px; width: 2px; margin-left: -1px; background: #F3E3BC; box-shadow: 0 0 12px #C8A96B; border-radius: 2px; }
.ruler-now::before { content: "NOW"; position: absolute; top: -16px; left: 50%; translate: -50% 0; font: 600 9px var(--caps); letter-spacing: .14em; color: #E6CF9A; }
.ruler-ticks { position: relative; height: 16px; margin-top: 6px; }
.ruler-ticks span { position: absolute; translate: -50% 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10.5px; color: #636363; }
.ruler-ticks span:first-child { translate: 0 0; } .ruler-ticks span:last-child { translate: -100% 0; }
.day-console .tcard { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); border-top: 2px solid var(--c); color: #E3E3E3; backdrop-filter: blur(6px); transition: transform .2s, background .2s; }
.day-console .tcard small { color: #808080; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.day-console .tcard b { color: #fff; }
.day-console .tcard span { color: #9C9C9C; }
.day-console .tcard i { box-shadow: 0 0 8px var(--c); }
.day-console .tcard:hover { background: rgba(255,255,255,.08); transform: translateY(-2px); box-shadow: none; }
.day-console .tcard.past { opacity: .4; }
.day-console .tcard.next { background: linear-gradient(160deg, rgba(200,169,107,.22), rgba(200,169,107,.05)); border-color: rgba(200,169,107,.5); box-shadow: 0 0 0 1px rgba(200,169,107,.35), 0 10px 30px rgba(200,169,107,.15); }
.day-console .today-strip { scrollbar-width: thin; scrollbar-color: #313131 transparent; }
@media (max-width: 640px) { .day-console { padding: 18px 16px 14px; } .day-console h3 { font-size: 28px; } .dc-pct { display: none; } }
@media (prefers-reduced-motion: reduce) { .dc-label::before { animation: none; } }
.day-console .today-strip { position: relative; }
.day-console .ruler { margin-top: 22px; }
/* Progress segment for the current step: keep it inside the card (it shares the "now" class with the calendar time line). */
.segs span.now { position: static; height: 5px; left: auto; right: auto; background: var(--gold-grad); box-shadow: 0 0 8px rgba(200,169,107,.5); z-index: auto; pointer-events: auto; }
.segs span.now::before { content: none; }

/* Listings box on Performance */
.lb { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.lb .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lb-chart { display: flex; align-items: flex-end; gap: 10px; background: var(--night); border-radius: 18px; padding: 16px 16px 10px; min-height: 170px; }
.lb-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; min-height: 140px; }
.lb-col i { width: 100%; max-width: 34px; border-radius: 6px 6px 0 0; background: linear-gradient(#F3E3BC, #A88550); box-shadow: 0 0 14px rgba(200,169,107,.3); min-height: 3px; }
.lb-col:not(:last-child) i { opacity: .55; }
.lb-n { font-family: var(--serif); font-size: 18px; color: #F3E3BC; }
.lb-col small { font: 600 10px var(--caps); letter-spacing: .12em; text-transform: uppercase; color: #808080; }
@media (max-width: 720px) { .lb { grid-template-columns: 1fr; } }
.closed-card { cursor: default; } .closed-card:hover { transform: none; }
.sample-bar { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sample-confirm { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; background: #F8F0E1; border: 1px solid #CFCFCF; color: #5A4A2E; border-radius: 14px; padding: 10px 14px; }

/* Territory map */
:root { --t0: #F6F2EC; --t1: #EDE3D4; --t2: #DECBB0; --t3: #CBB18D; --t4: #B39570; --t5: #977A56; }
.t-caps { font: 600 10.5px var(--caps); letter-spacing: .22em; text-transform: uppercase; color: var(--label); }
.t-bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.t-modes { display: inline-flex; border: 1px solid var(--line); background: var(--card); }
.t-modes button { border: 0; background: none; color: var(--muted); font: 600 11px var(--caps); letter-spacing: .14em; text-transform: uppercase; padding: 12px 16px; }
.t-modes button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.t-bar select { font: 500 14px var(--sans); color: var(--ink); background: var(--card); border: 1px solid var(--line); padding: 10px 12px; margin-left: 8px; }
.t-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.t-mapbox { background: #EEEEEE; padding: 22px; border-radius: 4px; }
.t-map svg { display: block; width: 100%; height: auto; }
.t-co { fill: var(--t0); stroke: #fff; stroke-width: 1.4; cursor: pointer; transition: fill .25s, opacity .2s; }
.t-co:hover { opacity: .82; }
.t-co:focus-visible { outline: none; stroke: var(--gold-ink); stroke-width: 3; }
.t-co.thin { stroke-width: .6; }
.t-co.raised { stroke: rgba(255,255,255,.55); stroke-width: 1; }
.t-wall { filter: brightness(.68); pointer-events: none; stroke: none; }
.t-drop { fill: #000; opacity: .22; filter: url(#t-soft); pointer-events: none; }
.t-sheen { fill: url(#t-sheen); pointer-events: none; }
.t-ring { fill: none; stroke: #fff; stroke-width: 4; stroke-linejoin: round; pointer-events: none; filter: drop-shadow(0 0 1.5px rgba(0,0,0,.4)) drop-shadow(0 0 4px rgba(255,255,255,.7)); animation: tglow 3s ease-in-out infinite; }
@keyframes tglow { 50% { opacity: .9; } }
.t-edge { fill: none; stroke: var(--ink); stroke-width: 1.2; opacity: .35; pointer-events: none; }
.t-lbl { pointer-events: none; text-anchor: middle; }
.t-lbl text { font: 600 var(--fs, 10px) var(--caps); letter-spacing: .04em; fill: var(--ink); }
.t-lbl .nm { text-transform: uppercase; }
.t-tip { position: fixed; z-index: 40; pointer-events: none; background: var(--ink); color: #fff; font: 500 12px var(--sans); padding: 6px 10px; transform: translate(-50%, -130%); white-space: nowrap; }
.t-legend { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 12px; color: var(--muted); }
.t-legend i { width: 26px; height: 10px; display: inline-block; }
.t-note { color: var(--muted); font-size: 12px; margin-top: 14px; }
.t-panel { border-top: 2px solid var(--ink); padding-top: 18px; }
.t-panel h2 { font: 500 40px/1 var(--serif); margin: 8px 0 4px; }
.t-sub { color: var(--muted); margin: 0 0 18px; }
.t-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.t-kpis div { background: var(--card); padding: 14px; }
.t-kpis b { display: block; font: 500 30px/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.t-share { margin: 18px 0; }
.t-track { height: 6px; background: var(--t1); margin-top: 8px; }
.t-track i { display: block; height: 100%; background: var(--gold-ink); }
.t-rank { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.t-rank li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.t-rank li button { all: unset; cursor: pointer; }
.t-rank li button:hover { color: var(--gold-ink); }
@media (max-width: 820px) { .t-grid { grid-template-columns: 1fr; } .t-mapbox { padding: 12px; } }
@media (prefers-reduced-motion: reduce) { .t-co { transition: none; } .t-ring { animation: none; } }

/* ===================== Signature look (matches thresholdpilot.com) =====================
   White and stone, ink for text and buttons, bronze as the one accent. Hairlines instead of shadows,
   square corners, Cormorant for numbers and headings, Montserrat caps for labels. */
:root {
  --bg: #FFFFFF; --card: #FFFFFF; --stone: #F2F2F2; --tint: #F2F2F2; --line: #E1E1E1;
  --ink: #111111; --navy: #111111; --muted: #727272; --label: #808080;
  --gold: #9A7444; --gold-ink: #9A7444; --gold-hi: #C8A96B; --gold-grad: #9A7444; --night: #111111;
  --seg-done: #9A7444; --seg-next: #E7E7E7;
}
html body { background: var(--bg); }
::selection { background: #E0E0E0; }

/* Header: white bar with a hairline, brand in spaced caps, menu as caps text links */
.masthead { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); }
.masthead::before, .masthead::after { content: none; }
.masthead-in { padding-block: 18px 40px; }
.brand .mark { background: none; box-shadow: none; border: 1px solid var(--ink); }
.masthead .brand b { color: var(--ink); font: 500 26px var(--serif); letter-spacing: .18em; text-transform: uppercase; }
.masthead .brand span { color: var(--label); }
.masthead .avatar, .avatar { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.masthead button.avatar:hover { box-shadow: 0 0 0 1px var(--gold); color: var(--gold); }
.masthead .tabs { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0; gap: 30px; width: 100%; backdrop-filter: none; margin: 0 0 40px; }
.masthead .tab { padding: 14px 0; border-radius: 0; color: var(--muted); font-size: 11px; letter-spacing: .26em; border-bottom: 1px solid transparent; margin-bottom: -1px; background: none; }
.masthead .tab:hover { color: var(--ink); }
.masthead .tab.on { background: none; color: var(--ink); box-shadow: none; border-bottom-color: var(--ink); }
.badge, .masthead .tab.on .badge { background: var(--gold); color: #fff; border-radius: 0; }
.masthead h1 { color: var(--ink); font-weight: 400; font-size: clamp(46px, 7vw, 88px); line-height: .95; }
.masthead h1 i { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--gold); }
.masthead .eyebrow, .eyebrow { color: var(--label); }
.masthead .sub, .masthead .note { color: var(--muted); font-size: 19px; font-family: var(--serif); }
.masthead .chip, .chip { background: #fff; color: var(--ink); border-color: var(--line); border-radius: 0; }
.masthead .chip span, .chip span { color: var(--label); }
.masthead .chip.on, .chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.masthead .chip.on span, .chip.on span { color: #B2B2B2; }
.masthead .chip:hover:not(.on), .chip:hover:not(.on) { border-color: var(--ink); }
.masthead .btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.masthead .btn.link { color: var(--gold); }
.masthead .seg, .seg { background: #fff; border: 1px solid var(--line); border-radius: 0; }
.masthead .seg button, .seg button { color: var(--muted); border-radius: 0; }
.masthead .seg button.on, .seg button.on { background: var(--ink); color: #fff; }
.masthead .month-nav b { color: var(--ink); }
.masthead .search { background: #fff; border-color: var(--line); color: var(--muted); border-radius: 0; }
.masthead .search input { color: var(--ink); }
.body-wrap { padding-top: 44px; }

/* Buttons: ink rectangles with caps; hover turns them outline */
.btn { background: var(--ink); color: #fff; border: 1px solid var(--ink); border-radius: 0; box-shadow: none; font: 500 11px var(--caps); letter-spacing: .24em; height: 48px; padding: 0 26px; transition: background .25s, color .25s; }
.btn:hover { background: #fff; color: var(--ink); transform: none; box-shadow: none; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.small { height: 36px; padding: 0 14px; font-size: 10px; }
.btn.link { color: var(--gold); border: 0; background: none; height: auto; padding: 0 0 4px; border-bottom: 1px solid currentColor; letter-spacing: .22em; font-size: 10.5px; }
.btn.link:hover { color: var(--ink); background: none; }

/* Surfaces: hairline boxes, square corners, no glow */
.box, .card, .stat, .pcard, .fact, .cal, .tgrid-wrap, .cgroup, .empty { border-radius: 0; box-shadow: none; border-color: var(--line); background: #fff; }
.box { padding: 26px; }
.box h3, .section-head h2 { font-weight: 400; }
.card:hover { transform: translateY(-3px); border-color: var(--ink); box-shadow: 0 24px 50px rgba(18,17,16,.08); }
.card .tile, .dialog-head, .swatch { border-radius: 0; }
.pill { border-radius: 0; box-shadow: none; font-size: 10px; letter-spacing: .16em; }
.next { background: var(--stone); border-radius: 0; }
.segs span { border-radius: 0; height: 3px; }
.segs span.now { background: var(--gold); box-shadow: none; height: 3px; }

/* Stat row: one hairline band of numbers, like the site's plan cards */
.stats { gap: 0; border: 1px solid var(--line); background: #fff; }
.stat { border: 0; border-right: 1px solid var(--line); padding: 24px 26px; }
.stat:last-child { border-right: 0; }
.stat::before { content: none; }
.stat:hover { transform: none; box-shadow: none; background: var(--stone); }
.stat small { font-family: var(--caps); font-size: 10px; letter-spacing: .26em; color: var(--label); }
.stat b { font-weight: 400; font-size: 54px; line-height: 1; margin: 6px 0 4px; }
.stat span { color: var(--gold); font-size: 13px; }
.stats.hero .stat, .stats.hero .stat:first-child { background: #fff; color: var(--ink); border-color: var(--line); }
.stats.hero .stat b { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--ink); }
.stats.hero .stat small, .stats.hero .stat span { color: var(--label); }

/* "Needs you" banner: a stone panel with an ink rule */
.banner { background: var(--stone); border: 0; border-left: 2px solid var(--ink); border-radius: 0; color: var(--ink); padding: 28px 32px; }
.banner::before { content: none; }
.banner .tag { color: #9A3324; }
.banner.clear .tag { color: #1F6B41; }
.banner h2 { color: var(--ink); font-weight: 400; font-size: 38px; }
.banner p { color: var(--muted); }

/* Today: the day console becomes a light stone panel */
.day-console { background: var(--stone); color: var(--ink); border: 0; border-radius: 0; box-shadow: none; padding: 26px 28px 20px; }
.day-console::before, .day-console::after { content: none; }
.dc-label { color: var(--gold); }
.dc-label::before { background: var(--gold); }
.day-console h3 { color: var(--ink); font-weight: 400; font-size: 38px; }
.day-console h3 i { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--gold); }
.dc-pct { color: var(--muted); } .dc-pct b { color: var(--ink); }
.day-console .btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.ruler-track { background: #fff; border: 1px solid var(--line); border-radius: 0; }
.ruler-track i { box-shadow: none; border-radius: 0; }
.ruler-now { background: var(--ink); box-shadow: none; }
.ruler-now::before { color: var(--ink); }
.ruler-ticks span { color: var(--label); }
.day-console .tcard { background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--c); color: var(--ink); border-radius: 0; backdrop-filter: none; }
.day-console .tcard small { color: var(--label); }
.day-console .tcard b { color: var(--ink); }
.day-console .tcard span { color: var(--muted); }
.day-console .tcard i { box-shadow: none; }
.day-console .tcard:hover { background: #fff; border-color: var(--ink); border-top-color: var(--c); }
.day-console .tcard.next { background: #fff; border-color: var(--ink); border-top-color: var(--c); box-shadow: 0 14px 30px rgba(18,17,16,.08); }
.day-console .today-strip { scrollbar-color: var(--line) transparent; }

/* Rows, tables, calendar */
.row:hover, .dhead:hover, .cgroup-head:hover { background: var(--stone); }
.initials { background: var(--stone); color: var(--ink); border-radius: 0; }
.ctag, .manual-tag { background: var(--stone); color: var(--gold); border-radius: 0; }
.day.today .num, .dhead.today b { background: var(--ink); color: #fff; }
.tcol.today { background-color: #FFFFFF; }
.dow, .allday { background: var(--stone); }
.deadline, .deadline-ev { background: var(--ink); color: #fff; border-radius: 0; }
.ev { border-radius: 0; }
.flag, .sample-confirm { background: var(--stone); border-color: var(--line); color: var(--ink); border-radius: 0; }

/* Charts keep the dark plate, like the tracker card on the site */
.lb-chart { border-radius: 0; }
.lb-col i { border-radius: 0; box-shadow: none; }
.tip { border-radius: 0; }

/* Dialogs */
.overlay { background: rgba(18,17,16,.45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.dialog { background: #fff; border-radius: 0; box-shadow: 0 40px 100px rgba(0,0,0,.25); }
.close { border-radius: 0; background: #fff; }
.field input, .field select, textarea, .step input[type=date], .cedit input { border-radius: 0; border-color: var(--line); background: #fff; }
.field input:focus, .field select:focus, textarea:focus { border-color: var(--ink); box-shadow: none; }

/* Territory sits on the same white */
.t-mapbox { background: var(--stone); border-radius: 0; }
.t-modes button[aria-pressed="true"] { background: var(--ink); }

@media (max-width: 640px) {
  .masthead .tabs { gap: 20px; }
  .masthead .tab { padding: 12px 0; font-size: 10px; letter-spacing: .18em; }
  .masthead .brand b { font-size: 22px; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat b { font-size: 38px; } .stat { padding: 18px; }
  .banner h2, .day-console h3 { font-size: 30px; }
}

/* Signature, tightened: warm stone page behind white cards, less empty space, pill tabs */
:root { --bg: #F2F2F2; }
html body { background: var(--bg); }
.masthead { background: #fff; }
.masthead-in { padding-block: 14px 26px; }
.masthead .top { margin-bottom: 14px; }
.masthead .tabs { border-bottom: 0; gap: 8px; margin: 0 0 22px; padding: 2px 0; }
.masthead .tab { padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; margin: 0; font-size: 10.5px; letter-spacing: .2em; color: var(--muted); background: #fff; transition: border-color .2s, color .2s, background .2s; }
.masthead .tab:hover { border-color: var(--ink); color: var(--ink); }
.masthead .tab.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.masthead .tab.on .badge { background: #fff; color: var(--ink); }
.badge { border-radius: 999px; }
.masthead h1 { font-size: clamp(40px, 5.6vw, 66px); }
.masthead .sub, .masthead .note { font-size: 17px; }
.body-wrap { padding-top: 22px; }
.stats { margin-bottom: 18px; }
.stat { padding: 18px 22px; }
.stat b { font-size: 46px; }
.banner { padding: 20px 26px; margin-bottom: 18px; background: #fff; }
.banner h2 { font-size: 32px; }
.day-console { background: #fff; border: 1px solid var(--line); padding: 20px 22px 16px; }
.box { padding: 20px 22px; }
.cols { gap: 18px; }
.grid { gap: 14px; }
.t-mapbox { background: #fff; border: 1px solid var(--line); }
@media (max-width: 640px) {
  .masthead .tabs { gap: 6px; flex-wrap: nowrap; }
  .masthead .tab { padding: 8px 13px; font-size: 9.5px; letter-spacing: .14em; }
}
@media (max-width: 640px) { .stat b { font-size: 34px; } .stat { padding: 16px; } }

/* AI assistant: the proof of work */
.a-card { background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--ink); padding: 22px 24px; margin-bottom: 18px; }
.a-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 14px; }
.a-head h3 { margin: 6px 0 2px; font: 400 36px/1.05 var(--serif); }
.a-head h3 i { color: var(--gold); }
.a-head .note { margin: 0; color: var(--muted); }
.a-live { display: inline-flex; align-items: center; gap: 8px; font: 600 10.5px var(--caps); letter-spacing: .24em; text-transform: uppercase; color: #1F6B41; }
.a-live span { width: 8px; height: 8px; border-radius: 50%; background: #2F8F5B; box-shadow: 0 0 0 0 rgba(47,143,91,.6); animation: alive 2s infinite; }
@keyframes alive { 70% { box-shadow: 0 0 0 8px rgba(47,143,91,0); } 100% { box-shadow: 0 0 0 0 rgba(47,143,91,0); } }
.a-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); margin: 18px 0 6px; }
.a-nums div { padding: 14px 16px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.a-nums div:last-child { border-right: 0; }
.a-nums b { font: 400 36px/1 var(--serif); }
.a-nums small { font: 600 9.5px var(--caps); letter-spacing: .2em; text-transform: uppercase; color: var(--label); }
.a-nums .warn b { color: #9A3324; }
.a-feed { list-style: none; margin: 0; padding: 0; }
.a-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); align-items: start; }
.a-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-top: 7px; }
.a-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.a-title { font-size: 14.5px; } .a-title b { font-weight: 600; }
.a-main small { color: var(--muted); font-size: 12.5px; }
.a-q { font-family: var(--serif); font-style: italic; font-size: 17px; }
.a-text { color: var(--muted); font-size: 13.5px; background: var(--stone); padding: 8px 11px; margin-top: 4px; border-radius: 12px 12px 12px 3px; max-width: 64ch; }
.a-when { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; white-space: nowrap; }
.a-when small { color: var(--label); font-size: 12px; }
.a-tag { font: 600 9.5px var(--caps); letter-spacing: .18em; text-transform: uppercase; color: #1F6B41; border: 1px solid #CFE3D6; padding: 3px 8px; }
.a-tag.warn { color: #9A3324; border-color: #EBCFC8; }
.a-day { font: 600 10.5px var(--caps); letter-spacing: .22em; text-transform: uppercase; color: var(--label); margin: 18px 0 2px; }
.a-cols { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; }
.a-side { display: flex; flex-direction: column; gap: 18px; }
.a-up, .a-rules { list-style: none; margin: 10px 0 0; padding: 0; }
.a-up li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.a-up li b { font-weight: 600; white-space: nowrap; }
.a-up li span { color: var(--muted); text-align: right; }
.a-rules li { padding: 9px 0 9px 18px; border-top: 1px solid var(--line); font-size: 14px; position: relative; }
.a-rules li::before { content: "\2713"; position: absolute; left: 0; color: var(--gold); }
@media (max-width: 760px) { .a-nums { grid-template-columns: 1fr 1fr; } .a-nums div:nth-child(2) { border-right: 0; } .a-nums div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } .a-cols { grid-template-columns: 1fr; } .a-row { grid-template-columns: 10px minmax(0, 1fr); } .a-when { grid-column: 2; flex-direction: row; align-items: center; } .a-head h3 { font-size: 28px; } }
@media (prefers-reduced-motion: reduce) { .a-live span { animation: none; } }
/* Assistant, airier */
.a-card { padding: 24px 28px; }
.a-nums { margin: 20px 0 10px; }
.a-nums div { padding: 16px 18px; }
.a-feed.compact .a-row { padding: 12px 0; align-items: center; }
.a-feed.compact .a-dot { margin-top: 0; }
.a-feed.compact .a-main small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-feed:not(.compact) .a-row { padding: 18px 0; }
.a-text { margin-top: 8px; }
.a-cols .chips { margin: 14px 0 6px; }
.a-cols .chip { font-size: 13px; padding: 6px 12px; }
/* Assistant, friendlier */
.a-nums button { all: unset; box-sizing: border-box; cursor: pointer; padding: 16px 18px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; transition: background .2s; }
.a-nums button:last-child { border-right: 0; }
.a-nums button:hover { background: var(--stone); }
.a-nums button:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.a-nums button.warn b { color: #9A3324; }
.a-clear { margin: 14px 0 0; color: #1F6B41; font-size: 14.5px; }
.a-title { font-size: 15px; line-height: 1.4; }
.a-more { margin-top: 6px; }
.a-more summary { cursor: pointer; font-size: 12.5px; color: var(--gold); list-style: none; }
.a-more summary::-webkit-details-marker { display: none; }
.a-more summary::before { content: "+ "; }
.a-more[open] summary::before { content: "\2212 "; }
.a-names { display: block; font-size: 13px; color: var(--muted); margin: 8px 0 0; line-height: 1.6; }
.a-row { grid-template-columns: 10px minmax(0, 1fr) auto; }
.a-needs { margin-bottom: 18px; border-top: 2px solid #9A3324; }
.a-count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 999px; background: #9A3324; color: #fff; font: 600 13px var(--sans); vertical-align: 6px; margin-left: 6px; }
.a-asks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.a-ask { border: 1px solid var(--line); padding: 16px 18px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.a-ask.done { opacity: .55; }
.a-ask-who { font: 600 10px var(--caps); letter-spacing: .18em; text-transform: uppercase; color: var(--label); }
.a-ask-q { font: italic 400 24px/1.2 var(--serif); margin: 6px 0; }
.a-ask small { color: var(--muted); }
.a-ask-btns { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 760px) { .a-nums button:nth-child(2) { border-right: 0; } .a-nums button:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
.a-row.link { cursor: pointer; } .a-row.link:hover { background: var(--stone); }

/* Assistant tab: calm, minimal, a little futuristic */
.ai-hero { display: flex; align-items: center; gap: 40px; padding: 26px 0 30px; }
.ai-orb { position: relative; width: 150px; height: 150px; flex: none; }
.ai-orb i { position: absolute; inset: 0; border-radius: 50%; }
.ai-orb i:nth-child(1) { background: radial-gradient(circle at 35% 30%, #F6F6F6, #E2CFAE 42%, #9A7444 78%, #4A3720); box-shadow: 0 30px 60px rgba(154,116,68,.35), inset 0 -10px 30px rgba(0,0,0,.25); animation: orb 6s ease-in-out infinite; }
.ai-orb i:nth-child(2) { inset: -14px; border: 1px solid rgba(154,116,68,.35); animation: ring 3.2s ease-out infinite; }
.ai-orb i:nth-child(3) { inset: -14px; border: 1px solid rgba(154,116,68,.35); animation: ring 3.2s ease-out 1.6s infinite; }
@keyframes orb { 50% { transform: scale(1.04); filter: brightness(1.06); } }
@keyframes ring { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.ai-say h1 { font: 400 clamp(46px, 6vw, 76px)/1 var(--serif); margin: 8px 0 10px; }
.ai-say h1 i { color: var(--gold); }
.ai-say p { margin: 0; color: var(--muted); font-size: 17px; }
.ai-state { display: inline-flex; align-items: center; gap: 8px; font: 600 10.5px var(--caps); letter-spacing: .24em; text-transform: uppercase; color: var(--ink); }
.ai-state span { width: 8px; height: 8px; border-radius: 50%; background: #2F8F5B; animation: alive 2s infinite; }
.ai-asks { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.ai-asks li { background: #fff; border: 1px solid var(--line); border-left: 2px solid #9A3324; padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.ai-ask-q { font: italic 400 26px/1.2 var(--serif); }
.ai-ask-who { color: var(--muted); font-size: 13.5px; }
.ai-ask-btns { display: flex; gap: 8px; margin-top: 6px; }
.ai-strip { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: stretch; margin-bottom: 18px; }
.ai-recent { background: #fff; border: 1px solid var(--line); padding: 8px 20px; }
.ai-line { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.ai-line:first-child { border-top: 0; }
.ai-line .a-dot { margin: 0; }
.ai-line small { color: var(--label); font-size: 12px; white-space: nowrap; }
.ai-next { background: var(--ink); color: #fff; padding: 20px 24px; display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 240px; }
.ai-next small { font: 600 10px var(--caps); letter-spacing: .24em; text-transform: uppercase; color: #B2B2B2; }
.ai-next b { font: 400 28px var(--serif); }
.ai-next span { color: #D2D2D2; font-size: 14px; }
.ai-log { background: #fff; border: 1px solid var(--line); padding: 16px 22px; }
.ai-log summary { cursor: pointer; font: 600 10.5px var(--caps); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); list-style: none; }
.ai-log summary::-webkit-details-marker { display: none; }
.ai-log summary::before { content: "+ "; } .ai-log[open] summary::before { content: "\2212 "; }
@media (max-width: 760px) { .ai-hero { flex-direction: column; align-items: flex-start; gap: 24px; } .ai-orb { width: 96px; height: 96px; } .ai-strip { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .ai-orb i { animation: none !important; } .ai-orb i:nth-child(n+2) { display: none; } }
.page-head.ai-hero { justify-content: flex-start; flex-wrap: nowrap; padding: 6px 0 0; margin: 0; }
.ai-orb { margin: 14px 10px 14px 14px; width: 128px; height: 128px; }
.ai-state.wait span { background: #9A3324; }
.ai-say h1 { color: var(--ink); }
@media (max-width: 760px) { .page-head.ai-hero { flex-wrap: wrap; } }
/* Assistant mark: thin rotating rings around a quiet core, ink on white */
.ai-orb i:nth-child(1) { inset: 0; background: none; box-shadow: none; border: 1px dashed rgba(18,17,16,.28); filter: none; animation: spin 40s linear infinite; }
.ai-orb i:nth-child(2) { inset: 16px; border: 1px solid var(--line); border-top-color: var(--ink); border-right-color: var(--ink); animation: spin 6s linear infinite; opacity: 1; transform: none; }
.ai-orb i:nth-child(3) { inset: 44px; border: 0; background: var(--ink); box-shadow: 0 0 0 0 rgba(18,17,16,.25); animation: core 2.6s ease-in-out infinite; opacity: 1; transform: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes core { 50% { box-shadow: 0 0 0 10px rgba(18,17,16,0); transform: scale(.92); } }
@media (max-width: 760px) { .ai-orb i:nth-child(2) { inset: 12px; } .ai-orb i:nth-child(3) { inset: 32px; } }
@media (prefers-reduced-motion: reduce) { .ai-orb i:nth-child(n+2) { display: block; } }
/* Assistant mark: a friendly sparkle on a soft stone circle */
.ai-mark { width: 120px; height: 120px; flex: none; border-radius: 50%; background: var(--stone); display: grid; place-items: center; margin: 10px 8px 10px 0; animation: float 5s ease-in-out infinite; }
.ai-mark svg { width: 64px; height: 64px; }
.ai-mark .big { fill: var(--ink); }
.ai-mark .small { fill: var(--gold); transform-origin: 47px 45px; animation: twinkle 2.8s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-4px); } }
@keyframes twinkle { 50% { transform: scale(.7); opacity: .6; } }
@media (max-width: 760px) { .ai-mark { width: 84px; height: 84px; } .ai-mark svg { width: 46px; height: 46px; } }
@media (prefers-reduced-motion: reduce) { .ai-mark, .ai-mark .small { animation: none; } }
/* Assistant mark: a house with little lights orbiting it in 3D */
.ai-mark3d { position: relative; width: 140px; height: 140px; flex: none; margin: 4px 8px 4px 0; perspective: 520px; transform-style: preserve-3d; display: grid; place-items: center; }
.ai-mark3d::before { content: ""; position: absolute; width: 96px; height: 96px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #fff, var(--stone) 70%); box-shadow: 0 18px 30px rgba(18,17,16,.10); }
.ai-mark3d .house { position: relative; width: 50px; height: 50px; color: var(--ink); transform: translateZ(0); animation: bob 4s ease-in-out infinite; }
.ai-mark3d .orbit { position: absolute; inset: 6px; border-radius: 50%; border: 1px solid rgba(18,17,16,.14); transform-style: preserve-3d; }
.ai-mark3d .o1 { transform: rotateX(72deg) rotateZ(0); animation: orbit1 7s linear infinite; }
.ai-mark3d .o2 { inset: 20px; border-color: rgba(154,116,68,.3); transform: rotateX(72deg) rotateY(28deg); animation: orbit2 10s linear infinite; }
.ai-mark3d .dot { position: absolute; top: -6px; left: calc(50% - 6px); width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, var(--gold) 55%, #6E5130); box-shadow: 0 0 10px rgba(154,116,68,.45); animation: face1 7s linear infinite; }
.ai-mark3d .d2 { top: auto; bottom: -5px; width: 9px; height: 9px; left: calc(50% - 4.5px); background: radial-gradient(circle at 35% 35%, #fff, #454545 55%, #111111); box-shadow: none; }
.ai-mark3d .o2 .dot { animation-name: face2; animation-duration: 10s; width: 9px; height: 9px; top: -4.5px; left: calc(50% - 4.5px); }
.ai-mark3d .o2 .d3 { top: auto; bottom: -4px; background: radial-gradient(circle at 35% 35%, #fff, #454545 55%, #111111); }
@keyframes orbit1 { to { transform: rotateX(72deg) rotateZ(360deg); } }
@keyframes orbit2 { from { transform: rotateX(72deg) rotateY(28deg) rotateZ(0); } to { transform: rotateX(72deg) rotateY(28deg) rotateZ(-360deg); } }
@keyframes face1 { from { transform: rotateZ(0) rotateX(-72deg); } to { transform: rotateZ(-360deg) rotateX(-72deg); } }
@keyframes face2 { from { transform: rotateZ(0) rotateX(-72deg); } to { transform: rotateZ(360deg) rotateX(-72deg); } }
@keyframes bob { 50% { transform: translateY(-3px); } }
@media (max-width: 760px) { .ai-mark3d { width: 100px; height: 100px; } .ai-mark3d::before { width: 70px; height: 70px; } .ai-mark3d .house { width: 36px; height: 36px; } }
@media (prefers-reduced-motion: reduce) { .ai-mark3d *, .ai-mark3d .orbit { animation: none !important; } }

/* ===================== Dashboard bento ===================== */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.bt { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px 24px; text-align: left; color: var(--ink); font: inherit; transition: transform .25s, box-shadow .25s, border-color .25s; }
button.bt { cursor: pointer; }
button.bt:hover, .bt-list:hover { transform: translateY(-2px); box-shadow: 0 24px 50px rgba(18,17,16,.08); }
.bt-link { all: unset; cursor: pointer; font: 600 10.5px var(--caps); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.bt-link:hover { color: var(--ink); }
.bt-link.light { color: #E6CF9A; position: relative; } .bt-link.light:hover { color: #fff; }

/* Assistant hero: dark glass with a slow warm glow */
.bt-ai { grid-column: span 3; grid-row: span 1; background: #0E0E0E; color: #F0F0F0; border-color: #0E0E0E; padding: 30px 34px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "live asks" "num asks" "sub asks" "stats link"; column-gap: 32px; align-content: start; min-height: 300px; }
.bt-glow { position: absolute; inset: -40%; background: conic-gradient(from 0deg at 30% 60%, rgba(200,169,107,.0), rgba(200,169,107,.28), rgba(120,140,170,.18), rgba(200,169,107,.0) 70%); filter: blur(60px); animation: glowspin 18s linear infinite; pointer-events: none; }
@keyframes glowspin { to { transform: rotate(360deg); } }
.bt-ai > *:not(.bt-glow) { position: relative; }
.bt-ai .a-live { grid-area: live; color: #8FCB9E; }
.bt-ai-num { grid-area: num; font: 400 clamp(64px, 8vw, 112px)/1 var(--serif); letter-spacing: -.02em; margin-top: 10px; background: linear-gradient(100deg, #FFFFFF, #E6CF9A 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bt-ai-sub { grid-area: sub; font: italic 400 24px var(--serif); color: #B2B2B2; margin-top: 2px; }
.bt-ai-stats { grid-area: stats; display: flex; gap: 8px; flex-wrap: wrap; align-self: end; margin-top: 24px; }
.bt-ai-stats button { all: unset; cursor: pointer; font-size: 13px; color: #D2D2D2; padding: 8px 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; background: rgba(255,255,255,.04); backdrop-filter: blur(6px); }
.bt-ai-stats button:hover { border-color: rgba(230,207,154,.6); }
.bt-ai-stats b { font: 400 18px var(--serif); color: #fff; margin-right: 6px; }
.bt-ai-asks { grid-area: asks; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.bt-ask { all: unset; box-sizing: border-box; cursor: pointer; display: block; padding: 16px 18px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); font: italic 400 21px/1.25 var(--serif); color: #fff; backdrop-filter: blur(8px); transition: background .2s, border-color .2s; }
.bt-ask:hover { background: rgba(255,255,255,.1); border-color: rgba(230,207,154,.5); }
.bt-ask span { display: block; font: 600 9.5px var(--caps); font-style: normal; letter-spacing: .22em; text-transform: uppercase; color: #E8A08F; margin-bottom: 6px; }
.bt-ask.clear { font-style: normal; font-size: 16px; color: #A9D3B5; cursor: default; }
.bt-ai .bt-link { grid-area: link; justify-self: end; align-self: end; }

/* Next up */
.bt-next { grid-column: span 1; display: flex; flex-direction: column; gap: 6px; background: linear-gradient(160deg, #FFFFFF, #F2F2F2); }
.bt-label { display: inline-flex; align-items: center; gap: 8px; font: 600 10px var(--caps); letter-spacing: .22em; text-transform: uppercase; color: var(--label); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: alive 2s infinite; }
.bt-when { font: italic 400 34px/1 var(--serif); color: var(--gold); margin-top: 14px; }
.bt-next-title { all: unset; cursor: pointer; font: 500 19px/1.3 var(--sans); }
.bt-next-title:hover { text-decoration: underline; }
.bt-time { color: var(--muted); font-size: 13px; }
.bt-prog { height: 3px; background: var(--line); border-radius: 3px; margin: 12px 0 6px; overflow: hidden; }
.bt-prog i { display: block; height: 100%; background: var(--ink); }
.bt-after { list-style: none; margin: 4px 0 auto; padding: 0; font-size: 13px; color: var(--muted); }
.bt-after li { padding: 6px 0; border-top: 1px solid var(--line); display: flex; gap: 10px; }
.bt-after li span { color: var(--ink); min-width: 58px; font-variant-numeric: tabular-nums; }
.bt-next .bt-link { margin-top: 12px; }

/* Numbers */
.bt-kpi { display: flex; flex-direction: column; gap: 6px; min-height: 150px; }
.bt-kpi small { font: 600 10px var(--caps); letter-spacing: .22em; text-transform: uppercase; color: var(--label); }
.bt-kpi b { font: 400 54px/1 var(--serif); margin-top: auto; }
.bt-kpi span { font-size: 13px; color: var(--gold); }
.bt-kpi::after { content: "\2192"; position: absolute; top: 20px; right: 22px; color: var(--line); transition: color .2s, transform .2s; }
.bt-kpi:hover::after { color: var(--ink); transform: translateX(3px); }

/* Lists */
.bt-list { grid-column: span 2; padding: 22px 24px 10px; }
.bt-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.bt-head h3 { margin: 0; font: 400 28px var(--serif); }
.bt-list .row { padding: 12px 4px; }
.bt-list .swatch { border-radius: 10px; overflow: hidden; }

@media (max-width: 1000px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bt-ai { grid-column: span 2; } .bt-next { grid-column: span 2; } .bt-list { grid-column: span 2; } }
@media (max-width: 640px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .bt { border-radius: 18px; padding: 18px; }
  .bt-ai { grid-template-columns: 1fr; grid-template-areas: "live" "num" "sub" "stats" "asks" "link"; padding: 24px 20px; }
  .bt-ai-asks { margin-top: 18px; }
  .bt-ai .bt-link { justify-self: start; margin-top: 14px; }
  .bt-kpi { min-height: 120px; } .bt-kpi b { font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) { .bt-glow { animation: none; } }
.bt-when::first-letter { text-transform: uppercase; }

/* Numbers in the serif headings: modern lining digits, so 0 never reads as "o". */
.ai-say h1, .bt-ai-num, .stat b, .fact b { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.ai-empty { margin: 10px 0; font-size: 14.5px; color: var(--label); line-height: 1.5; }

/* Take-home by year */
.yr-bars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; align-items: end; height: 220px; margin-top: 8px; }
.yr { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: var(--ink); }
.yr-val { font-size: 12px; font-weight: 600; font-variant-numeric: lining-nums; white-space: nowrap; }
.yr-col { position: relative; flex: 1; width: 100%; max-width: 56px; }
.yr-gross, .yr-take { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 4px 4px 0 0; }
.yr-gross { background: var(--line); }
.yr-take { background: linear-gradient(#E6CF9A, #A88550); }
.yr-y { font-size: 12px; color: var(--label); letter-spacing: .04em; }
.yr.on .yr-y, .yr:hover .yr-y { color: var(--ink); font-weight: 600; }
.yr.on .yr-col { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
select.chip { appearance: none; padding-right: 14px; cursor: pointer; }
@media (max-width: 640px) { .yr-bars { gap: 4px; height: 180px; } .yr-val { font-size: 10px; } }
.cols > * { min-width: 0; max-width: 100%; }

/* Assistant: time saved, top right */
.page-head.ai-hero { justify-content: space-between; }
.ai-saved { flex: none; width: 260px; background: #101010; color: #F0F0F0; padding: 18px 20px; border-radius: 14px; }
.ai-saved small { display: block; font: 600 10.5px/1 var(--sans, inherit); letter-spacing: .14em; text-transform: uppercase; color: #E6CF9A; }
.ai-saved b { display: block; font: 400 44px/1.05 var(--serif); margin: 10px 0 2px; font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.ai-saved > span { font-size: 13px; color: #B0B0B0; }
.ai-saved ul { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid rgba(255,255,255,.12); display: grid; gap: 8px; }
.ai-saved li { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.ai-saved em { font-style: normal; color: #E6CF9A; font-variant-numeric: lining-nums; }
.ai-saved p { margin: 12px 0 0; font-size: 11.5px; color: #828282; line-height: 1.45; }
@media (max-width: 760px) { .ai-saved { width: 100%; box-sizing: border-box; } }

.firm { padding: 12px 0; border-top: 1px solid var(--line); }
.firm:first-of-type { border-top: 0; }
.firm-h { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.firm-h small { color: var(--label); font-size: 12px; }
.firm-f { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.firm-f .field { margin-top: 8px; }

.setup-steps { text-align: left; max-width: 560px; margin: 18px auto 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; }
.setup-steps li { counter-increment: s; display: grid; gap: 6px; padding: 14px 16px 14px 52px; position: relative; border: 1px solid var(--line); background: #fff; }
.setup-steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; display: grid; place-items: center; }
.setup-steps li.done::before { content: '\2713'; background: #2E7D4F; }
.setup-steps span { color: var(--label); font-size: 14px; }
.setup-steps input { padding: 10px 12px; border: 1px solid var(--line); font: inherit; }

.yr-table td small { display: block; color: var(--label); font-size: 11.5px; font-weight: 400; }
.yr-table .btn.link { padding: 0; font-size: 14px; }
.yr-table tr.on td { background: #F6F6F6; }
.yr-table tr.total td { border-top: 2px solid var(--ink); }
.firm-f { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .firm-f input { min-width: 0; width: 100%; box-sizing: border-box; }

.chips.mini { gap: 6px; flex-wrap: wrap; }
.chips.mini .chip { padding: 5px 10px; font-size: 12px; }

.adj { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.adj-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; margin-top: 6px; }
.adj-form { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 6px; margin-top: 8px; }
.adj-form select, .adj-form input { min-width: 0; padding: 8px; border: 1px solid var(--line); font: inherit; font-size: 14px; }

/* Ask Threshold */
.ask-fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 0; border-radius: 999px; background: #101010; color: #F0F0F0; font: 600 13px/1 var(--sans, inherit); letter-spacing: .02em; box-shadow: 0 10px 30px rgba(20,17,13,.25); cursor: pointer; }
.ask-fab.hide { display: none; }
.ask-fab kbd { font: 500 11px/1 inherit; color: #B0B0B0; border: 1px solid rgba(255,255,255,.18); border-radius: 6px; padding: 3px 5px; }
.ask-dot { width: 8px; height: 8px; border-radius: 50%; background: #E6CF9A; box-shadow: 0 0 0 4px rgba(230,207,154,.18); }
.ask-scrim { position: fixed; inset: 0; z-index: 70; background: rgba(20,17,13,.28); }
.ask-panel { position: fixed; z-index: 71; right: 20px; bottom: 20px; width: min(440px, calc(100vw - 32px)); height: min(640px, calc(100vh - 40px)); display: flex; flex-direction: column; background: #fff; border-radius: 16px; box-shadow: 0 24px 60px rgba(20,17,13,.3); overflow: hidden; }
.ask-panel header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.ask-panel header b { font: 400 22px/1 var(--serif); }
.ask-panel header span { display: flex; align-items: center; gap: 8px; }
.ask-x { border: 0; background: none; font-size: 24px; line-height: 1; cursor: pointer; color: var(--label); }
.ask-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ask-hint { color: var(--label); margin: 0; font-size: 14px; }
.ask-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ask-chips button { border: 1px solid var(--line); background: #F9F9F9; border-radius: 999px; padding: 8px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.ask-q { align-self: flex-end; max-width: 85%; background: #101010; color: #F0F0F0; padding: 9px 13px; border-radius: 14px 14px 4px 14px; font-size: 14px; }
.ask-a { max-width: 100%; font-size: 14.5px; line-height: 1.5; }
.ask-a p { margin: 0 0 8px; }
.ask-think { color: var(--label); }
.ask-note { color: var(--label); font-size: 12.5px; }
.ask-cards { display: grid; gap: 8px; }
.ask-card { position: relative; text-align: left; display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; cursor: pointer; }
.ask-card:hover { border-color: var(--gold); }
.ask-card b { font-size: 14px; }
.ask-card small { color: var(--label); font-size: 12px; }
.ask-tag { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink, #8A6A35); font-weight: 600; }
.ask-doc { justify-self: start; margin-top: 4px; font-size: 12px; font-weight: 600; text-decoration: underline; }
.ask-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.ask-form input { flex: 1; min-width: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 15px; }
.doc-text { white-space: pre-wrap; font-size: 13.5px; line-height: 1.55; max-height: 60vh; overflow-y: auto; padding: 14px; background: #F9F9F9; border: 1px solid var(--line); }
@media (max-width: 640px) { .ask-fab kbd { display: none; } .ask-panel { right: 0; bottom: 0; width: 100vw; height: 92vh; border-radius: 16px 16px 0 0; } }

.deal-search { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.deal-search input { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 15px; }
.page .grid > [hidden] { display: none !important; }

.doc-pdf iframe { width: 100%; height: 62vh; border: 1px solid var(--line); background: #F2F2F2; }
.doc-pdf { margin-bottom: 10px; }
.ask-links { display: flex; gap: 14px; }
.doc-pdf { max-height: 62vh; overflow-y: auto; background: #F2F2F2; border: 1px solid var(--line); }
.doc-pdf canvas { display: block; margin: 0 auto 8px; box-shadow: 0 1px 3px rgba(0,0,0,.12); background: #fff; }

/* Home: the year at a glance from the agent's own history */
.snap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1px; background: #252525; color: #ECECEC; margin: 0 0 22px; border-radius: 18px; overflow: hidden; position: relative;
  box-shadow: 0 40px 80px -30px rgba(40,25,10,.35); }
.snap > div { background: radial-gradient(90% 120% at 0% 0%, #1E1E1E, #111111 70%); padding: clamp(22px, 3.2vw, 38px); min-width: 0; }
.snap .snap-side { background: radial-gradient(90% 90% at 100% 100%, rgba(200,169,107,.18), transparent 70%), #111111; display: flex; flex-direction: column; gap: 16px; }
.snap-k { display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: #A9A9A9; }
.snap-big { font: 400 clamp(54px, 7.5vw, 96px)/1 var(--serif); color: #E6CF9A; margin: 14px 0 6px; font-variant-numeric: lining-nums tabular-nums; }
.snap-sub { color: #8F8F8F; font-size: 14px; }
.snap-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #252525; margin-top: 26px; border: 1px solid #252525; }
.snap-row div { background: #121212; padding: 14px; min-width: 0; }
.snap-row b { display: block; font: 400 28px/1.05 var(--serif); font-variant-numeric: lining-nums; color: #ECECEC; white-space: nowrap; }
.snap-row small { display: block; margin-top: 4px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #848484; line-height: 1.35; }
.snap-bars { flex: 1; min-height: 150px; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; align-items: end; border-bottom: 1px solid #2A2A2A; }
.snap-bars > div { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.snap-bars i { width: 100%; background: #333333; border-radius: 4px 4px 0 0; transform-origin: bottom; animation: snapGrow 1.1s cubic-bezier(.2,.8,.2,1) both; }
.snap-bars .cur i { background: linear-gradient(180deg, #F3E3BC, #C8A96B); box-shadow: 0 0 26px rgba(200,169,107,.35); }
.snap-bars span { position: absolute; bottom: -22px; font-size: 10.5px; color: #666666; }
.snap-bars .cur span { color: #E6CF9A; }
@keyframes snapGrow { from { transform: scaleY(0); } }
.snap-last { margin: 18px 0 0; color: #8F8F8F; font-size: 13px; }
.snap-last b { color: #ECECEC; font-weight: 500; }
.snap-go { align-self: flex-start; background: none; border: 0; border-bottom: 1px solid #E6CF9A; color: #E6CF9A; padding: 0 0 4px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; }
.snap-go:hover { color: #fff; border-color: #fff; }
.empty.setup.compact { padding: 26px 24px 30px; }
.setup-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; }
.setup-head h2 { margin: 0; }
.setup-meter { width: 140px; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.setup-meter i { display: block; height: 100%; background: var(--gold); border-radius: 4px; transition: width .6s; }
@media (max-width: 860px) {
  .snap { grid-template-columns: 1fr; }
  .snap-row { grid-template-columns: 1fr 1fr; }
  .snap-bars { min-height: 120px; margin-bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) { .snap-bars i { animation: none; } }

/* Phones: room for the Ask button, and a hint that the tabs scroll */
@media (max-width: 700px) {
  body { padding-bottom: 76px; }
  .masthead .tabs { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
  .masthead .tabs .tab:last-child { margin-right: 28px; }
}
.setup-steps { width: 100%; }
.setup-steps li { min-width: 0; }
.setup-steps li input { min-width: 0; width: 100%; }
@media (max-width: 700px) {
  .empty.setup { padding-inline: 14px; }
  .setup-steps li { padding: 14px 14px 14px 46px; }
  .setup-steps li::before { left: 12px; }
  .ask-fab { padding: 11px 14px; font-size: 12.5px; right: 14px; bottom: 14px; }
}
@media (max-width: 480px) {
  .masthead .top { flex-wrap: nowrap; gap: 10px; }
  .masthead .brand { gap: 8px; min-width: 0; }
  .masthead .brand b { font-size: 19px; letter-spacing: .12em; }
  .masthead .brand > span:not(.mark) { display: none; }
  .masthead .who { gap: 8px; flex: none; }
  .masthead .who .btn { height: 38px; padding: 0 12px; font-size: 10.5px; letter-spacing: .14em; }
  .masthead .avatar { width: 38px; height: 38px; font-size: 15px; }
}
.tgrid > .thead, .tgrid > .allday, .tgrid > .tbody { width: 100%; align-self: stretch; }

/* Start here: the first thing a new agent sees. A still, dark panel with three aligned steps.
   Nothing moves on its own; a step lifts slightly on hover or while a file is dragged over it. */
.start { position: relative; overflow: hidden; isolation: isolate; color: #EEEEEE; border-radius: 22px; padding: 40px 40px 30px; margin: 0 0 24px;
  background: radial-gradient(90% 70% at 50% 0%, #242424 0%, #131313 60%, #0E0E0E 100%);
  box-shadow: 0 24px 60px rgba(20, 15, 8, .22), inset 0 1px 0 rgba(255, 255, 255, .05); }
.start::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image: linear-gradient(rgba(200, 169, 107, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(200, 169, 107, .07) 1px, transparent 1px);
  background-size: 40px 40px; mask-image: radial-gradient(70% 60% at 50% 20%, #000 20%, transparent 80%); }
.start-head { text-align: center; margin-bottom: 30px; }
.start-eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--caps, inherit); font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: #D9BE86; }
.start-meter { width: 64px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.start-meter i { display: block; height: 100%; background: #D9BE86; transition: width .6s; }
.start-head h2 { margin: 12px 0 8px; font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 4.2vw, 50px); line-height: 1.02; letter-spacing: -.005em; color: #F6F6F6; }
.start-head p { margin: 0; color: rgba(244, 238, 227, .58); font-size: 15px; }

.start-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.sc { position: relative; display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding: 20px 22px 22px; border-radius: 16px; cursor: pointer;
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015)); border: 1px solid rgba(217, 190, 134, .18);
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.sc:hover, .sc:focus-within { transform: translateY(-3px); border-color: rgba(217, 190, 134, .5); background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025)); box-shadow: 0 16px 36px rgba(0, 0, 0, .3); }
.sc.over { border-color: #E6CF9A; background: rgba(214, 178, 110, .12); box-shadow: 0 0 0 1px #E6CF9A, 0 16px 40px rgba(0, 0, 0, .35); }
.sc-top { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.sc-num { font-family: var(--serif); font-size: 22px; color: #D9BE86; letter-spacing: .02em; }
.sc-kind { font-family: var(--caps, inherit); font-size: 10px; font-weight: 600; letter-spacing: .2em; color: rgba(244, 238, 227, .55); padding: 4px 8px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 6px; }
.sc-art { width: 100%; height: 140px; margin: 10px 0 14px; display: grid; place-items: center; border-radius: 12px; background: rgba(0, 0, 0, .18); border: 1px solid rgba(255, 255, 255, .05); }
.sc-art svg { width: 100%; max-width: 220px; height: 132px; display: block; }
.sc h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 26px; font-weight: 500; line-height: 1.1; color: #F6F6F6; }
.sc p { margin: 0 0 18px; font-size: 14px; line-height: 1.5; color: rgba(244, 238, 227, .6); }
.sc-cta { margin-top: auto; align-self: stretch; text-align: center; font-family: var(--caps, inherit); font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #121212;
  background: linear-gradient(135deg, #F0DCAE, #C8A96B 60%, #B08B53); padding: 14px 18px; border-radius: 10px; }
.sc-or { align-self: stretch; text-align: center; margin-top: 8px; font-size: 12px; color: rgba(244, 238, 227, .42); }
.sc.done { cursor: default; border-color: rgba(111, 211, 154, .28); }
.sc.done:hover { transform: none; box-shadow: none; }
.sc.done .sc-art { opacity: .55; }
.sc-check { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; color: #10251A; background: #8FE0B2; }
.sc-donetag { margin-top: auto; align-self: stretch; text-align: center; padding: 13px 18px; border-radius: 10px; font-size: 13px; color: #8FE0B2; border: 1px solid rgba(143, 224, 178, .3); background: rgba(143, 224, 178, .06); }

.start-foot { margin-top: 18px; text-align: center; }
.start-help { display: inline-block; max-width: 640px; text-align: left; font-size: 14px; color: rgba(244, 238, 227, .7); }
.start-help summary { cursor: pointer; text-align: center; color: #D9BE86; text-decoration: underline; text-underline-offset: 3px; }
.start-help ol { margin: 10px 0 0; padding-left: 20px; line-height: 1.6; }
.linkish { background: none; border: 0; padding: 0; color: #F0DCAE; text-decoration: underline; font: inherit; cursor: pointer; }
.start-msg { margin: 12px 0 0; text-align: center; color: #1F6B41; font-weight: 500; }
.start .start-msg { color: #8FE0B2; }
.start-more { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; justify-content: center; margin: 24px 0 0; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08); }
.start-name { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: rgba(244, 238, 227, .6); text-align: left; }
.start-name input { min-width: 300px; padding: 11px 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05); font: inherit; color: #F6F6F6; }
.start-name input::placeholder { color: rgba(244, 238, 227, .4); }
.start-name input:focus { outline: none; border-color: #D9BE86; box-shadow: 0 0 0 3px rgba(217, 190, 134, .2); }
.start-ghost { height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .18); background: transparent; color: #EEEEEE; font-size: 13px; }
.start-ghost:hover { border-color: #D9BE86; color: #F0DCAE; }
.bulk { display: grid; gap: 10px; }
.bulk-paste textarea { width: 100%; margin-top: 8px; padding: 10px 12px; border: 1px solid var(--line); font: inherit; resize: vertical; }
@media (max-width: 960px) { .start-row { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } .sc p { min-height: 0; } }
@media (max-width: 720px) {
  .start { padding: 28px 16px 22px; border-radius: 18px; }
  .start-name input { min-width: 0; width: 100%; }
  .start-more { align-items: stretch; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { .sc { transition: none; } .sc:hover, .sc:focus-within { transform: none; } }

/* ===== Light & warm theme (Oct 2026) =====
   Linen and white surfaces, dusty-rose accents, sage green for actions and "done", warm charcoal text.
   Replaces the dark panels; everything above this line still sets layout. */
:root {
  --linen: #F9F9F9; --blush: #EEEEEE; --rose: #B9776A; --rose-soft: #E7B9AA;
  --sage: #5E8C6E; --sage-deep: #4A7559; --sage-soft: #E3EFE6; --warm-ink: #2A2A2A; --warm-muted: #727272;
}
body { background: var(--linen); }

/* Start here */
.start { color: var(--warm-ink); background: radial-gradient(80% 90% at 50% 0%, #FFFFFF 0%, #F6F6F6 55%, #F2F2F2 100%); border: 1px solid #E6E6E6; box-shadow: 0 24px 60px -30px rgba(150, 100, 80, .25); }
.start::before { opacity: .6; background-image: radial-gradient(rgba(185, 119, 106, .14) 1px, transparent 1.2px); background-size: 22px 22px; mask-image: radial-gradient(70% 60% at 50% 15%, #000 15%, transparent 75%); }
.start-eyebrow { color: var(--rose); }
.start-meter { background: #E2E2E2; } .start-meter i { background: var(--sage); }
.start-head h2 { color: var(--warm-ink); }
.start-head p { color: var(--warm-muted); }
.sc { background: #FFFFFF; border: 1px solid #E7E7E7; box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 10px 30px -18px rgba(120, 80, 60, .35); }
.sc:hover, .sc:focus-within { background: #FFFFFF; border-color: #D8B8AC; box-shadow: 0 18px 40px -18px rgba(120, 80, 60, .4); }
.sc.over { background: #F4FAF5; border-color: var(--sage); box-shadow: 0 0 0 2px rgba(94, 140, 110, .35), 0 18px 40px -18px rgba(60, 100, 75, .4); }
.sc-num { color: var(--rose); }
.sc-kind { color: var(--warm-muted); border-color: #E2E2E2; background: var(--linen); }
.sc-art { background: linear-gradient(180deg, #FFFFFF, #F2F2F2); border-color: #EAEAEA; }
.sc h3 { color: var(--warm-ink); }
.sc p { color: var(--warm-muted); }
.sc-cta { color: #fff; background: linear-gradient(135deg, #6E9C7E, var(--sage) 55%, var(--sage-deep)); box-shadow: 0 8px 18px -8px rgba(74, 117, 89, .6); }
.sc:hover .sc-cta { background: linear-gradient(135deg, #78A688, #659676 55%, #4F7D60); }
.sc-or { color: #979797; }
.sc.done { border-color: #CFE2D4; }
.sc.done .sc-art { opacity: .7; }
.sc-check { color: #fff; background: var(--sage); }
.sc-donetag { color: var(--sage-deep); background: var(--sage-soft); border-color: #CFE2D4; }
.start-help { color: var(--warm-muted); } .start-help summary { color: var(--rose); }
.linkish { color: var(--rose); }
.start .start-msg { color: var(--sage-deep); }
.start-more { border-top-color: #E7E7E7; }
.start-name { color: var(--warm-muted); }
.start-name input { background: #fff; border-color: #DDDDDD; color: var(--warm-ink); }
.start-name input::placeholder { color: #A9A9A9; }
.start-name input:focus { border-color: var(--sage); box-shadow: 0 0 0 3px rgba(94, 140, 110, .18); }
.start-ghost { color: var(--warm-ink); border-color: #D8D8D8; background: #fff; }
.start-ghost:hover { border-color: var(--rose); color: var(--rose); }

/* Assistant tile */
.bt-ai { background: linear-gradient(140deg, #FFFFFF 0%, #F9EDE6 60%, #EAEAEA 100%); color: var(--warm-ink); border-color: #E4E4E4; }
.bt-glow { background: conic-gradient(from 0deg at 30% 60%, rgba(231, 185, 170, 0), rgba(231, 185, 170, .35), rgba(170, 205, 182, .3), rgba(231, 185, 170, 0) 70%); }
.bt-ai .a-live { color: var(--sage-deep); }
.bt-ai-num { background: linear-gradient(100deg, #8E5546, var(--rose) 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bt-ai-sub { color: var(--warm-muted); }
.bt-ai-stats button { color: var(--warm-ink); border-color: #DDDDDD; background: rgba(255, 255, 255, .7); }
.bt-ai-stats button:hover { border-color: var(--rose); }
.bt-ai-stats b { color: var(--warm-ink); }
.bt-ask { background: rgba(255, 255, 255, .75); border-color: #E0E0E0; color: var(--warm-ink); }
.bt-ask:hover { background: #fff; border-color: var(--rose-soft); }

/* Year at a glance */
.snap { background: #E6E6E6; color: var(--warm-ink); box-shadow: 0 30px 60px -34px rgba(150, 100, 80, .35); }
.snap > div { background: radial-gradient(90% 120% at 0% 0%, #FFFFFF, #F6F6F6 70%); }
.snap .snap-side { background: radial-gradient(90% 90% at 100% 100%, rgba(231, 185, 170, .25), transparent 70%), #FAFAFA; }
.snap-k { color: var(--warm-muted); }
.snap-big { color: var(--rose); }
.snap-sub { color: var(--warm-muted); }
.snap-row { background: #E0E0E0; border-color: #E0E0E0; }
.snap-row div { background: #FFFFFF; }
.snap-row b { color: var(--warm-ink); }
.snap-row small { color: var(--warm-muted); }
.snap-bars { border-bottom-color: #DDDDDD; }
.snap-bars i { background: #E0E0E0; }
.snap-bars .cur i { background: linear-gradient(180deg, var(--rose-soft), var(--rose)); box-shadow: 0 0 22px rgba(185, 119, 106, .3); }
.snap-bars span { color: #979797; }

/* Other dark pieces */
.stats.hero .stat { background: #FFFFFF; color: var(--warm-ink); border-color: #E7E7E7; }
.stats.hero .stat:first-child { background: radial-gradient(260px 160px at 0% 0%, rgba(231, 185, 170, .3), transparent 70%), #FFFFFF; }
.stats.hero .stat small, .stats.hero .stat span { color: var(--warm-muted); }
.stats.hero .stat b { background: linear-gradient(100deg, #8E5546, var(--rose)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.banner { background: linear-gradient(140deg, #FFFFFF, #F9EDE6); border-color: #E4E4E4; color: var(--warm-ink); }
.banner p { color: var(--warm-muted); }
.lb-chart { background: linear-gradient(180deg, #FFFFFF, #F2F2F2); border: 1px solid #EAEAEA; }
.lb-col i { background: linear-gradient(var(--rose-soft), var(--rose)); box-shadow: none; }
.chip.on { background: var(--sage); border-color: var(--sage); color: #fff; }
.masthead .avatar, .initials { background: var(--blush); color: var(--rose); box-shadow: 0 0 0 1px #D6D6D6; }
.deadline, .deadline-ev { background: var(--sage-soft); color: var(--sage-deep); }
.btn { background: linear-gradient(135deg, #6E9C7E, var(--sage) 55%, var(--sage-deep)); color: #fff; box-shadow: 0 8px 20px -8px rgba(74, 117, 89, .55); }
.btn:hover { box-shadow: 0 12px 26px -8px rgba(74, 117, 89, .6); }
.btn.ghost { background: #fff; color: var(--warm-ink); border-color: #D8D8D8; box-shadow: none; }
.btn.ghost:hover { border-color: var(--rose); }
.eyebrow { color: var(--rose); }
.bt-ask.clear { color: var(--sage-deep); background: rgba(255, 255, 255, .6); }
.bt-link { color: var(--rose); } .bt-link:hover { color: var(--warm-ink); }
.bt-link.light { color: var(--rose); } .bt-link.light:hover { color: var(--warm-ink); }
.yr-take { background: linear-gradient(180deg, var(--rose-soft), var(--rose)) !important; }
.yr-gross { background: #E7E7E7 !important; }
.yr.on .yr-take { background: linear-gradient(180deg, #8FB79C, var(--sage)) !important; }
.split-key i[style*="var(--gold)"] { background: var(--rose) !important; }
.tab.on, .masthead .tab.on { background: var(--warm-ink); border-color: var(--warm-ink); }
/* Name field: an arrow points at it until it's filled in, then a check */
.start-name-row { display: flex; align-items: center; gap: 10px; margin-left: -36px; }
.start-arrow { width: 26px; display: grid; place-items: center; color: var(--rose); animation: startNudge 1.4s ease-in-out infinite; }
@keyframes startNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
.start-ok { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; color: #fff; background: var(--sage); }
@media (max-width: 720px) { .start-name-row { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .start-arrow { animation: none; } }
/* Listing photos: the thumbnail in Active listings is a button to add or change the photo */
.swatch-photo { position: relative; cursor: pointer; overflow: hidden; }
.swatch-photo img, .thumb img, .tile img.photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.swatch-add { position: absolute; inset: auto 0 0 0; padding: 2px 0; text-align: center; font-size: 9.5px; font-weight: 600; letter-spacing: .04em; color: #fff; background: rgba(46, 41, 37, .55); opacity: 0; transition: opacity .15s; }
.swatch-photo:hover .swatch-add, .swatch-photo:focus-within .swatch-add { opacity: 1; }
.thumb { overflow: hidden; }
.tile, .thumb, .swatch { position: relative; }
.photo-over { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Calendar: connect your iPhone calendar, step by step */
.cal-connect { background: radial-gradient(80% 100% at 50% 0%, #FFFFFF, #F6F6F6 60%, #F2F2F2); border: 1px solid #E6E6E6; border-radius: 22px; padding: 30px 30px 24px; margin: 0 0 22px; color: var(--warm-ink); }
.cal-connect-head { text-align: center; max-width: 640px; margin: 0 auto 22px; }
.cal-connect-head h2 { margin: 8px 0 6px; font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3.6vw, 42px); line-height: 1.05; }
.cal-connect-head p { margin: 0; color: var(--warm-muted); font-size: 15px; line-height: 1.5; }
.cal-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cal-steps li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 18px 14px 18px; background: #fff; border: 1px solid #E7E7E7; border-radius: 16px; box-shadow: 0 10px 26px -20px rgba(120, 80, 60, .4); }
.cal-steps li > b { font-family: var(--serif); font-size: 21px; font-weight: 500; margin-top: 6px; }
.cal-steps li > span:last-child b { color: var(--warm-ink); font-weight: 600; }
.cal-steps li > span:last-child { font-size: 13.5px; line-height: 1.45; color: var(--warm-muted); }
.cal-n { position: absolute; top: 12px; left: 12px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 600; color: #fff; background: var(--rose); }
/* tiny iPhone */
.ph { width: 104px; height: 176px; border-radius: 20px; background: #1C1C1C; padding: 6px; position: relative; box-shadow: 0 10px 22px -12px rgba(46, 41, 37, .5); margin-top: 6px; }
.ph-notch { position: absolute; top: 9px; left: 50%; width: 32px; height: 7px; margin-left: -16px; border-radius: 6px; background: #1C1C1C; z-index: 2; }
.ph-screen { height: 100%; border-radius: 15px; background: #FFFFFF; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 22px 7px 7px; font-size: 8.5px; color: #2A2A2A; text-align: left; }
.ph .hl { outline: 2px solid var(--sage); outline-offset: 1px; border-radius: 5px; background: var(--sage-soft); animation: phPulse 2.4s ease-in-out infinite; }
@keyframes phPulse { 50% { outline-color: rgba(94, 140, 110, .35); } }
.ph-cal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.ph-cal i { height: 14px; border-radius: 3px; background: #EBEBEB; }
.ph-cal i:nth-child(6) { background: var(--rose-soft); }
.ph-bar { display: flex; justify-content: space-between; gap: 2px; padding-top: 6px; border-top: 1px solid #E9E9E9; color: #E5484D; font-weight: 600; }
.ph-bar span { padding: 2px 3px; }
.ph-list { display: flex; flex-direction: column; gap: 5px; margin-top: 6px; }
.ph-list > div { display: flex; align-items: center; gap: 5px; padding: 6px 5px; background: #fff; border: 1px solid #EAEAEA; border-radius: 5px; }
.ph-list > div i { width: 7px; height: 7px; border-radius: 50%; }
.ph-list > div span { margin-left: auto; color: #3E7BFA; font-size: 10px; }
.ph-toggle { width: 18px; height: 10px; border-radius: 6px; background: #34C759; position: relative; }
.ph-toggle::after { content: ''; position: absolute; right: 1px; top: 1px; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.ph-blue { color: #3E7BFA; }
.ph-sheet { margin-top: auto; background: #fff; border: 1px solid #EAEAEA; border-radius: 8px; padding: 7px 5px; display: flex; flex-direction: column; gap: 7px; }
.ph-url { font-size: 7.5px; color: #727272; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-row { display: flex; justify-content: space-between; gap: 3px; }
.ph-row span { padding: 3px 3px; font-weight: 600; }
/* paste */
.cal-paste { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-top: 16px; padding: 16px 18px 16px 54px; background: #fff; border: 1.5px solid var(--sage); border-radius: 16px; box-shadow: 0 10px 26px -20px rgba(60, 100, 75, .5); }
.cal-paste .cal-n { top: 50%; margin-top: -13px; left: 16px; background: var(--sage); }
.cal-paste label b { font-family: var(--serif); font-size: 20px; font-weight: 500; white-space: nowrap; }
.cal-paste input { min-width: 0; padding: 12px 14px; border: 1px solid #D8D8D8; border-radius: 10px; font: inherit; background: #FFFFFF; }
.cal-paste input:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(94, 140, 110, .18); }
.cal-other { margin-top: 14px; font-size: 14px; color: var(--warm-muted); }
.cal-other summary { cursor: pointer; color: var(--rose); text-decoration: underline; text-underline-offset: 3px; }
.cal-other p { margin: 8px 0 0; line-height: 1.55; }
.cal-linked { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 18px; margin: 0 0 18px; background: var(--sage-soft); border: 1px solid #CFE2D4; border-radius: 14px; color: var(--sage-deep); font-size: 14px; }
.cal-linked-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px rgba(94, 140, 110, .18); }
.cal-linked-actions { margin-left: auto; display: flex; gap: 14px; }
.cal-linked-actions { flex-wrap: wrap; }
.cal-list { flex-basis: 100%; list-style: none; margin: 4px 0 0; padding: 10px 0 0; border-top: 1px solid #CFE2D4; display: grid; gap: 8px; }
.cal-list li { display: flex; align-items: center; gap: 10px; }
.cal-list li .linkish { margin-left: auto; }
.cal-list-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); flex: none; }
.cal-list-dot.bad { background: #C2410C; }
.linkish.dark { color: var(--sage-deep); }
@media (max-width: 960px) { .cal-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) {
  .cal-connect { padding: 22px 14px 18px; }
  .cal-steps { grid-template-columns: 1fr; }
  .cal-paste { grid-template-columns: 1fr; padding: 16px; }
  .cal-paste .cal-n { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ph .hl { animation: none; } }
/* Step cards: the file picker is the card body; the "all at once" guide sits under it (outside the picker) */
.sc { cursor: default; padding: 0; }
.sc-main { display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding: 20px 22px 18px; cursor: pointer; flex: 1; }
.sc.done { padding: 20px 22px 22px; }
.sc-how { margin: 0 14px 14px; padding: 10px 12px; border-radius: 10px; background: var(--linen); border: 1px solid #E7E7E7; font-size: 13.5px; color: var(--warm-muted); }
.sc-how summary { cursor: pointer; color: var(--rose); font-weight: 600; list-style: none; display: flex; align-items: center; gap: 8px; }
.sc-how summary::-webkit-details-marker { display: none; }
.sc-how summary::before { content: '?'; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; color: #fff; background: var(--rose); flex: none; }
.sc-how summary::after { content: '\25BE'; margin-left: auto; transition: transform .2s; }
.sc-how[open] summary::after { transform: rotate(180deg); }
.sc-how ol { margin: 10px 0 2px; padding-left: 18px; line-height: 1.5; display: grid; gap: 6px; }
.sc-how b { color: var(--warm-ink); }
.start-row { align-items: start; }
.sc { align-items: stretch; }
.sc-main { width: 100%; box-sizing: border-box; }
.sc-main p { min-height: 3em; }
/* Commission plan on Performance */
.plan-link { all: unset; cursor: pointer; display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--sage-deep); text-decoration: underline; text-underline-offset: 3px; }
.plan-link:hover { color: var(--rose); }
.plan { background: #fff; border: 1px solid #E7E7E7; border-radius: 18px; padding: 22px 24px; margin: 18px 0 18px; box-shadow: 0 10px 26px -20px rgba(120, 80, 60, .35); }
.plan-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.plan-head h3 { margin: 6px 0 4px; font-family: var(--serif); font-size: 28px; font-weight: 500; }
.plan-head .plan-link { margin-top: 0; }
.plan-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.plan-f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--warm-muted); }
.plan-f > span:first-child { font-weight: 600; color: var(--warm-ink); }
.plan-in { display: flex; align-items: center; gap: 6px; padding: 0 14px; border: 1.5px solid #D8D8D8; border-radius: 12px; background: var(--linen); }
.plan-in:focus-within { border-color: var(--sage); box-shadow: 0 0 0 3px rgba(94, 140, 110, .18); background: #fff; }
.plan-in input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 0; font: 500 26px/1 var(--serif); color: var(--warm-ink); outline: none; }
.plan-in em { font-style: normal; font: 500 20px var(--serif); color: var(--rose); }
.plan-f small { font-size: 12px; }
.plan-min { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 20px; font-size: 14px; color: var(--warm-muted); }
.plan-min b { color: var(--warm-ink); margin-right: 6px; }
.plan-min .plan-link { margin-top: 0; }
@media (max-width: 720px) { .plan-fields { grid-template-columns: 1fr; } }
/* Assistant: schedule a text ahead of time */
.sched { background: radial-gradient(80% 100% at 50% 0%, #FFFFFF, #F6F6F6 60%, #F2F2F2); border: 1px solid #E6E6E6; border-radius: 20px; padding: 26px 26px 22px; margin: 22px 0; color: var(--warm-ink); }
.sched-head h2 { margin: 6px 0 4px; font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3.2vw, 38px); line-height: 1.05; }
.sched-head p { margin: 0 0 16px; color: var(--warm-muted); font-size: 15px; }
.sched-form { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .8fr); gap: 12px 14px; background: #fff; border: 1px solid #E7E7E7; border-radius: 16px; padding: 18px; }
.sched-f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--warm-ink); }
.sched-f.wide { grid-column: 1 / -1; }
.sched-f select, .sched-f input, .sched-f textarea { font: 400 15px var(--sans); padding: 11px 12px; border: 1.5px solid #D8D8D8; border-radius: 10px; background: var(--linen); color: var(--warm-ink); }
.sched-f textarea { resize: vertical; min-height: 78px; }
.sched-f select:focus, .sched-f input:focus, .sched-f textarea:focus { outline: none; border-color: var(--sage); background: #fff; box-shadow: 0 0 0 3px rgba(94, 140, 110, .18); }
.sched-f small { font-weight: 400; color: var(--warm-muted); }
.sched-ideas { display: flex; flex-wrap: wrap; gap: 6px; }
.sched-idea { all: unset; cursor: pointer; font-weight: 400; font-size: 12.5px; padding: 5px 10px; border-radius: 999px; background: var(--blush); color: #8E5546; }
.sched-idea:hover { background: #E1E1E1; }
.sched-go { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sched-empty { margin: 0; padding: 16px 18px; background: #fff; border: 1px dashed #D8D8D8; border-radius: 14px; color: var(--warm-muted); }
.sched-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.sched-list li { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 12px 16px; background: #fff; border: 1px solid #E7E7E7; border-radius: 12px; font-size: 14px; }
.sched-when { font-weight: 600; color: var(--rose); }
.sched-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sched-main span { color: var(--warm-muted); overflow-wrap: anywhere; }
.sched-main small { color: #9A6A2E; }
.sched-list li.sent .sched-state { color: var(--sage-deep); font-weight: 600; }
.sched-list li.failed .sched-state { color: #9A3324; font-weight: 600; }
@media (max-width: 720px) { .sched-form { grid-template-columns: 1fr; } .sched-list li { grid-template-columns: 1fr; gap: 4px; } }
/* Agent profile photo */
.avatar { overflow: hidden; }
.avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.avatar-up { position: relative; cursor: pointer; flex: none; }
.avatar-cam { position: absolute; inset: auto 0 0 0; padding: 3px 0 5px; text-align: center; font: 600 10.5px var(--sans); letter-spacing: .02em; color: #fff; background: rgba(40, 30, 26, .55); opacity: 0; transition: opacity .15s; }
.avatar-up:hover .avatar-cam, .avatar-up:focus-within .avatar-cam { opacity: 1; }
.photo-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.photo-row .btn { color: #fff !important; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; margin: 0; }
/* Assistant: all-time proof of work */
.proof { margin: 22px 0; padding: 26px; background: #fff; border: 1px solid #E7E7E7; border-radius: 20px; color: var(--warm-ink); }
.proof-head h2 { margin: 6px 0 4px; font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 3vw, 34px); line-height: 1.08; }
.proof-head p { margin: 0 0 18px; color: var(--warm-muted); font-size: 15px; }
.proof-head .eyebrow { color: var(--rose); }
.proof-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.proof-tile { display: flex; flex-direction: column; gap: 4px; padding: 20px 20px 18px; border-radius: 16px; background: linear-gradient(180deg, #F6FAF7, #EEF5F0); border: 1px solid #DCE9E0; }
.proof-tile b { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 4.6vw, 56px); line-height: 1; color: var(--sage-deep, #3F6B50); }
.proof-tile span { font-weight: 600; font-size: 15px; }
.proof-tile small { color: var(--warm-muted); font-size: 13px; }
@media (max-width: 720px) { .proof-tiles { grid-template-columns: 1fr; } .proof { padding: 20px; } }
/* Assistant: CUSTOM REQUESTS chat */
.cr { position: relative; overflow: hidden; margin: 22px 0; padding: 32px 30px 26px; border-radius: 24px; color: var(--warm-ink); background: linear-gradient(135deg, #EAF3EC 0%, #F2F2F2 55%, #FBE9E2 100%); border: 1px solid #D9E7DD; box-shadow: 0 18px 40px -28px rgba(62, 92, 72, .45); }
.cr-glow { position: absolute; right: -80px; top: -90px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(94, 140, 110, .22), transparent 70%); pointer-events: none; }
.cr-head { position: relative; max-width: 780px; }
.cr-badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid #D9E7DD; font: 600 12px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: #3F6B50; }
.cr-badge span { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px rgba(94, 140, 110, .2); }
.cr-head h2 { margin: 14px 0 8px; font-family: var(--serif); font-weight: 600; font-size: clamp(38px, 5.2vw, 64px); letter-spacing: .02em; line-height: 1; color: #2E4A39; }
.cr-head p { margin: 0 0 20px; font-size: 16.5px; line-height: 1.5; color: var(--warm-muted); }
.cr-chat { position: relative; display: flex; flex-direction: column; gap: 14px; max-height: 620px; overflow-y: auto; padding: 18px; background: rgba(255, 255, 255, .72); border: 1px solid #E3EDE6; border-radius: 18px 18px 0 0; border-bottom: 0; }
.cr-msg { display: flex; gap: 10px; align-items: flex-start; }
.cr-msg.me { justify-content: flex-end; }
.cr-av { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #3F6B50; color: #fff; font: 600 15px var(--serif); box-shadow: 0 0 0 3px rgba(94, 140, 110, .18); }
.cr-bub { max-width: 82%; padding: 12px 15px; border-radius: 16px; font-size: 15.5px; line-height: 1.5; }
.cr-bub p { margin: 0; }
.cr-msg.ai .cr-bub { background: #fff; border: 1px solid #E2E2E2; border-top-left-radius: 4px; display: grid; gap: 10px; flex: 1 1 auto; }
.cr-msg.me .cr-bub { background: #3F6B50; color: #fff; border-top-right-radius: 4px; white-space: pre-wrap; }
.cr-ex { display: flex; flex-wrap: wrap; gap: 6px; }
.cr-chip { all: unset; cursor: pointer; font: 400 13px var(--sans); padding: 7px 12px; border-radius: 999px; background: #EEF5F0; color: #3F6B50; border: 1px solid #DCE9E0; }
.cr-chip:hover { background: #E1EEE5; }
.cr-facts { display: grid; gap: 3px; padding: 10px 12px; border-radius: 10px; background: #F6FAF7; border: 1px solid #DCE9E0; font-size: 13.5px; }
.cr-facts small { font-weight: 600; color: #3F6B50; text-transform: uppercase; letter-spacing: .05em; font-size: 11px; }
.cr-draft { background: #FFFFFF; border: 1px solid #E6E6E6; border-radius: 12px; padding: 12px; display: grid; gap: 8px; }
.cr-draft textarea { width: 100%; box-sizing: border-box; font: 400 15px/1.45 var(--sans); padding: 10px 12px; border: 1.5px solid #D8D8D8; border-radius: 10px; background: #fff; color: var(--warm-ink); resize: vertical; }
.cr-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; }
.cr-to { flex: 1 1 200px; color: var(--warm-muted); }
.cr-to b { color: var(--warm-ink); }
.cr-meta input { font: 400 13.5px var(--sans); padding: 6px 8px; border: 1.5px solid #D8D8D8; border-radius: 8px; background: #fff; color: var(--warm-ink); }
.cr-draft textarea:focus, .cr-meta input:focus, .cr-compose textarea:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(94, 140, 110, .18); }
.cr-warn { color: #9A6A2E; }
.cr-old { color: var(--warm-muted); }
.cr-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cr-actions small { color: var(--warm-muted); max-width: 420px; }
.cr-typing { display: flex !important; align-items: center; gap: 5px; flex: 0 1 auto !important; }
.cr-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); animation: crDot 1s infinite ease-in-out; }
.cr-typing span:nth-child(2) { animation-delay: .15s; } .cr-typing span:nth-child(3) { animation-delay: .3s; }
.cr-typing em { margin-left: 8px; font-style: normal; color: var(--warm-muted); font-size: 14px; }
@keyframes crDot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .cr-typing span { animation: none; } }
.cr-compose { position: relative; display: flex; gap: 10px; align-items: flex-end; padding: 12px; background: #fff; border: 1px solid #E3EDE6; border-radius: 0 0 18px 18px; box-shadow: 0 10px 28px -22px rgba(46, 74, 57, .5); }
.cr-compose textarea { flex: 1; font: 400 16px/1.45 var(--sans); padding: 12px 14px; border: 1.5px solid #DCE7DF; border-radius: 12px; background: #FBFDFB; color: var(--warm-ink); resize: none; }
.cr-go { flex: none; padding-left: 26px; padding-right: 26px; }
.cr-attach { position: relative; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 54px; height: 54px; border: 1.5px solid #DCE7DF; border-radius: 12px; background: #FBFDFB; color: #3F6B50; font: 600 11px var(--sans); cursor: pointer; }
.cr-attach:hover { background: #EEF5F0; }
.cr-attach:focus-within { border-color: var(--sage); box-shadow: 0 0 0 3px rgba(94, 140, 110, .18); }
.cr-attach.off { opacity: .5; cursor: default; }
.cr-attach svg { width: 20px; height: 20px; }
.cr-attach input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: inherit; }
.cr-file { position: relative; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; padding: 10px 14px; background: #EEF5F0; border: 1px solid #DCE9E0; border-bottom: 0; color: #2E4A39; font-size: 14px; }
.cr-filetag { display: block; margin-bottom: 4px; opacity: .8; font-size: 12px; }
.cr-go[disabled] { opacity: .6; cursor: default; }
.cr-note, .cr-err { position: relative; margin: 10px 2px 0; font-size: 14px; color: var(--warm-muted); }
.cr-err { color: #9A3324; }
.cr-done { margin: 0; padding: 10px 14px; border-radius: 12px; background: #fff; color: #3F6B50; font-weight: 600; }
.cr-new { position: relative; margin-top: 10px; }
@media (max-width: 720px) { .cr { padding: 24px 16px; } .cr-bub { max-width: 100%; } .cr-msg.me .cr-bub { max-width: 88%; } .cr-av { display: none; } }
.cr-compose textarea { min-height: 54px; height: 54px; max-height: 160px; }
.cr-draft textarea { min-height: 84px; }
/* Upload a whole deal folder */
.folder-pick { position: relative; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 12px 0 4px; padding: 14px 16px; border: 1px solid #DCE9E0; border-radius: 14px; background: #F6FAF7; cursor: pointer; }
.folder-pick .btn { flex: none; color: #fff !important; display: inline-flex; align-items: center; justify-content: center; margin: 0; }
.folder-pick .note { flex: 1 1 260px; margin: 0; }
.folder-pick:focus-within { box-shadow: 0 0 0 3px rgba(94, 140, 110, .25); }
.sc-folder { position: relative; display: block; margin: -4px 0 10px; text-align: center; font-size: 13.5px; font-weight: 600; color: #3F6B50; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.reading { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #F6FAF7; border: 1px solid #DCE9E0; color: #2E4A39; font-size: 15px; overflow-wrap: anywhere; }
.spin { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid rgba(94, 140, 110, .25); border-top-color: var(--sage); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }
/* Add a deal: first-time walkthrough */
.add-guide { margin: 4px 0 14px; border: 1px solid #DCE9E0; border-radius: 14px; background: #F6FAF7; }
.add-guide summary { cursor: pointer; padding: 12px 16px; font-weight: 600; color: #2E4A39; }
.add-guide ol { list-style: none; margin: 0; padding: 0 16px 14px; display: grid; gap: 8px; }
.add-guide .ag-step { position: static; display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid #E8EFEA; opacity: .8; }
.add-guide .ag-step.ag-now { opacity: 1; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(94, 140, 110, .15); }
.add-guide .ag-step.ag-done { opacity: .6; }
.add-guide .ag-t { display: block; font-weight: 600; font-size: 15px; color: var(--warm-ink); }
.add-guide .ag-step p { margin: 2px 0 0; font-size: 14px; line-height: 1.45; color: var(--warm-muted); }
.add-guide .ag-step p b { display: inline; font-weight: 600; color: var(--warm-ink); }
.ag-n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #E1EEE5; color: #3F6B50; font-weight: 700; font-size: 13px; }
.add-guide .ag-now .ag-n, .add-guide .ag-done .ag-n { background: #3F6B50; color: #fff; }
/* Which side the agent represents */
.side-pick { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; font-size: 14.5px; color: var(--warm-muted); }
.side-pick b { color: #9A3324; }
.side-btn { all: unset; cursor: pointer; padding: 6px 12px; border-radius: 999px; border: 1.5px solid #DCE7DF; background: #fff; color: var(--warm-ink); font-size: 14px; }
.side-btn:hover { border-color: var(--sage); }
.side-btn.on { background: #3F6B50; border-color: #3F6B50; color: #fff; }
.side-btn:focus-visible { box-shadow: 0 0 0 3px rgba(94, 140, 110, .3); }
/* PENDING / SOLD rider on a deal's picture */
.rider { position: absolute; left: 10px; bottom: 10px; z-index: 2; padding: 6px 13px 5px; background: #C8352A; color: #fff; border: 0; border-radius: 4px; font: 700 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 4px 10px rgba(0, 0, 0, .2); }
.rider.sold { background: #C8352A; color: #fff; }
.dialog-head .rider { left: auto; right: 74px; top: 16px; bottom: auto; font-size: 16px; padding: 7px 16px 6px; }
.thumb .rider, .swatch .rider { left: 0; right: 0; bottom: 0; padding: 3px 0 2px; border: 0; border-radius: 0; text-align: center; font-size: 8.5px; letter-spacing: .1em; box-shadow: none; background: #C8352A; color: #fff; }
.thumb .rider { font-size: 9.5px; }
/* Many deals at once */
.batch-bar { height: 8px; border-radius: 999px; background: #E6EEE8; overflow: hidden; margin: 6px 0 14px; }
.batch-bar i { display: block; height: 100%; background: linear-gradient(90deg, #5E8C6E, #3F6B50); transition: width .3s; }
.batch-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 14px 0; }
.batch-sum div { padding: 12px 14px; border-radius: 12px; background: #F6FAF7; border: 1px solid #DCE9E0; display: grid; gap: 2px; }
.batch-sum b { font-family: var(--serif); font-size: 30px; font-weight: 500; color: #2E4A39; line-height: 1; }
.batch-sum span { font-size: 13px; color: var(--warm-muted); }
.batch-sum .bad b { color: #9A3324; }
.batch-list { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14.5px; }
/* Add a person to a deal */
.person-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.person-x { all: unset; cursor: pointer; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; color: var(--warm-muted); }
.person-x svg { width: 14px; height: 14px; }
.person-x:hover { background: #EEEEEE; color: #9A3324; }
.person-form { display: grid; gap: 8px; margin: 10px 0; padding: 12px; border-radius: 12px; background: #F6FAF7; border: 1px solid #DCE9E0; }
.person-form label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--warm-ink); }
.person-form input, .person-form select { font: 400 14.5px var(--sans); padding: 8px 10px; border: 1.5px solid #DCE7DF; border-radius: 9px; background: #fff; color: var(--warm-ink); }
.pf-go { display: flex; gap: 8px; }
/* Text in black, not rose gold (accents stay in buttons, borders and badges) */
.a-head h3 i,
.a-more summary,
.ai-log summary,
.ai-say h1 i,
.btn.link,
.cal-other summary,
.clink,
.ctag,
.eyebrow,
.initials,
.linkish,
.manual-tag,
.masthead .btn.link,
.masthead .eyebrow,
.masthead h1 i,
.plan-in em,
.proof-head .eyebrow,
.sc-how summary,
.sc-num,
.sched-idea,
.sched-when,
.snap-big,
.start-arrow,
.start-eyebrow,
.start-help summary,
.stat span { color: #1A1A1A !important; }
.masthead h1 i, .ai-say h1 i, .a-head h3 i { -webkit-text-fill-color: #1A1A1A; }
.stats.hero .stat b { background: none !important; -webkit-text-fill-color: #1A1A1A !important; color: #1A1A1A !important; }
.masthead button.avatar, button.avatar { color: #1A1A1A !important; }
/* Your deals: Pending / Live */
.deal-state { flex: none; padding: 5px 11px 4px; border-radius: 4px; font: 700 11.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.deal-state.pending { background: #C8352A; }
.deal-state.live { background: #3F6B50; }
/* Corner note after files are sorted; whole page accepts drops */
#toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; display: flex; align-items: flex-start; gap: 12px; max-width: min(560px, calc(100vw - 32px)); padding: 14px 16px; border-radius: 14px; background: #2E4A39; color: #fff; font-size: 15px; line-height: 1.45; box-shadow: 0 16px 40px rgba(0, 0, 0, .25); transition: opacity .2s, transform .2s; }
#toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
#toast button { all: unset; cursor: pointer; flex: none; opacity: .8; }
#toast button svg { width: 16px; height: 16px; }
body.dropping::after { content: "Drop it anywhere. I\2019ll figure out what it is."; position: fixed; inset: 12px; z-index: 80; display: grid; place-items: center; border: 3px dashed #5E8C6E; border-radius: 24px; background: rgba(246, 250, 247, .88); color: #2E4A39; font: 500 clamp(22px, 3vw, 34px) var(--serif); pointer-events: none; }
/* Deal progress lines in black: done steps solid, the next one a bit lighter */
.segs span.done { background: #1A1A1A !important; }
.segs span.now { background: #666666 !important; box-shadow: none !important; }
.start-first { max-width: 720px; margin: 0 auto 22px; padding: 16px 20px; border-radius: 16px; background: #fff; border: 1.5px solid var(--sage); box-shadow: 0 0 0 4px rgba(94, 140, 110, .12); text-align: center; color: var(--warm-ink); }
.start-first .start-more { justify-content: center; margin-top: 10px; }
/* Contacts: upload a contact list */
.contact-drop { position: relative; display: flex !important; flex-direction: row !important; align-items: center; justify-content: space-between; gap: 18px; text-align: left !important; padding: 18px 22px !important; margin: 0 0 18px; border-radius: 16px; background: #F6FAF7; border: 1.5px dashed #9CC1A8; }
.contact-drop .cd-text { display: grid; gap: 4px; }
.contact-drop .cd-text b { font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--warm-ink); }
.contact-drop .btn { flex: none; color: #fff !important; display: inline-flex; align-items: center; }
.contact-drop.over { background: #E6F1E9; border-color: var(--sage); }
@media (max-width: 640px) { .contact-drop { flex-direction: column !important; align-items: stretch; } }
/* Every checkbox and check mark in green */
input[type="checkbox"], input[type="radio"] { accent-color: #3F6B50 !important; }
.a-rules li::before { color: #3F6B50 !important; }
.cr-sent { background: #F3F8F4; border-color: #D5E5D9; }
.cr-sent .cr-when { color: #3F6B50; font-weight: 600; font-size: 13px; }
.cr-sent .cr-body { margin: 0; font-size: 15px; line-height: 1.45; color: #1B1B1B; white-space: pre-wrap; }
/* Schedule-a-text box in black and white (no reddish brown) */
.sched { background: #FFFFFF !important; border-color: #DEDEDE !important; }
.sched-form { border-color: #DEDEDE !important; }
.sched-f select, .sched-f input, .sched-f textarea { background: #fff !important; border-color: #1A1A1A !important; color: #1A1A1A !important; }
.sched-f select:focus, .sched-f input:focus, .sched-f textarea:focus { box-shadow: 0 0 0 3px rgba(28, 26, 23, .15) !important; }
.sched-idea { background: #1A1A1A !important; color: #fff !important; }
.sched-idea:hover { background: #373737 !important; }
.sched-empty, .sched-list li { border-color: #DEDEDE !important; }
/* SCHEDULED TEXT heading with a clock */
.sched-title { display: flex; align-items: center; gap: 14px; font-family: var(--sans) !important; font-weight: 800 !important; letter-spacing: .06em; color: #1A1A1A; }
.sched-clock { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #1A1A1A; color: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .18); }
.sched-clock svg { width: 26px; height: 26px; }
.sched-clock path { transform-origin: 12px 12px; animation: schedTick 6s linear infinite; }
@keyframes schedTick { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sched-clock path { animation: none; } }
.ai-strip > .ai-next:only-child { grid-column: 1 / -1; }
/* Upload privacy note and "Your data" box */
.up-promise { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--warm-muted); text-align: left; }
.up-promise svg { flex: none; width: 15px; height: 15px; margin-top: 1px; color: #3F6B50; }
.up-promise a { color: #1A1A1A; }
.start-foot .up-promise { justify-content: center; max-width: 760px; margin: 14px auto 0; }
.data-box { margin-top: 18px; padding: 16px 18px; border: 1px solid #DEDEDE; border-radius: 14px; background: #FFFFFF; }
.data-head b { font-size: 15px; color: #1A1A1A; }
.data-list { margin: 8px 0 12px; padding-left: 18px; font-size: 14px; color: #373737; display: grid; gap: 3px; }
.data-confirm p { margin: 0 0 10px; font-size: 14px; color: #1A1A1A; }
.data-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.data-del { background: #9A3324 !important; border-color: #9A3324 !important; color: #fff !important; }
/* ---------- Settings: dark mode, button color, page background ---------- */
/* Dark mode flips the whole page to black and white; photos are flipped back so they look normal. */
html[data-theme="dark"] { filter: invert(1) hue-rotate(180deg); background: #fff; }
html[data-theme="dark"] img, html[data-theme="dark"] video, html[data-theme="dark"] .sw i, html[data-theme="dark"] .pdf-frame, html[data-theme="dark"] canvas.pdf { filter: invert(1) hue-rotate(180deg); }
html[data-theme="dark"] * { box-shadow: none !important; text-shadow: none !important; }
html[data-theme="dark"] body { background: #fff !important; }
html[data-theme="dark"] .masthead, html[data-theme="dark"] .masthead-in { background: #fff !important; }
/* Page background */
html[data-backdrop]:not([data-theme="dark"]) body { background: var(--backdrop) !important; }
/* Button color */
html[data-accent] .btn:not(.ghost):not(.link):not(.data-del) { background: var(--accent) !important; border-color: var(--accent) !important; color: #fff !important; }
html[data-accent] .tab.on { background: var(--accent) !important; border-color: var(--accent) !important; color: #fff !important; }
html[data-accent] input[type="checkbox"], html[data-accent] input[type="radio"] { accent-color: var(--accent) !important; }
html[data-accent] .cr-msg.me .cr-bub { background: var(--accent) !important; }
/* Gear button */
.gear { all: unset; cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #DEDEDE; background: #fff; color: #1A1A1A; }
.gear svg { width: 21px; height: 21px; transition: transform .4s; }
.gear:hover svg { transform: rotate(60deg); }
.gear:focus-visible { outline: 2px solid #1A1A1A; outline-offset: 2px; }
/* Settings panel */
.settings .set-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 16px 0; border-top: 1px solid #EBEBEB; flex-wrap: wrap; }
.settings .set-row > div:first-child { display: grid; gap: 2px; min-width: 170px; }
.settings .set-row b { font-size: 15px; color: #1A1A1A; }
.seg-pick { display: inline-flex; border: 1px solid #1A1A1A; border-radius: 999px; overflow: hidden; }
.seg-pick button { all: unset; cursor: pointer; padding: 9px 18px; font-size: 14px; color: #1A1A1A; }
.seg-pick button.on { background: #1A1A1A; color: #fff; }
.sw-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sw { all: unset; cursor: pointer; position: relative; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 2px solid transparent; }
.sw i { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); display: block; }
.sw.on { border-color: #1A1A1A; }
.sw:focus-visible { outline: 2px solid #1A1A1A; outline-offset: 2px; }
.sw-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
html[data-accent] .sc-cta, html[data-accent] .sc:hover .sc-cta { background: var(--accent) !important; color: #fff !important; }
html[data-accent] .start-meter i, html[data-accent] .proof-num, html[data-accent] .cr-badge span { background: var(--accent) !important; }
/* AI background design */
html[data-bgart]:not([data-theme="dark"]) body { background: var(--bgart) !important; background-size: var(--bgart-size) !important; background-attachment: fixed !important; }
html[data-bgart]:not([data-theme="dark"]) .masthead, html[data-bgart]:not([data-theme="dark"]) .masthead-in { background: rgba(255, 255, 255, .88) !important; }
.set-art { display: grid !important; grid-template-columns: 1fr; }
.art-form { display: flex; gap: 8px; }
.art-form input { flex: 1; min-width: 0; font: 400 15px var(--sans); padding: 10px 12px; border: 1.5px solid #1A1A1A; border-radius: 10px; background: #fff; color: #1A1A1A; }
.art-ideas { display: flex; flex-wrap: wrap; gap: 6px; }
.art-now { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid #DEDEDE; border-radius: 12px; background: #fff; }
.art-tile { flex: none; width: 64px; height: 44px; border-radius: 8px; border: 1px solid rgba(0,0,0,.12); }
.art-now span:nth-child(2) { flex: 1; display: grid; gap: 2px; min-width: 0; }
.art-now small { color: var(--warm-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Deal summary PDF bar */
.sum-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 14px 0 6px; padding: 12px 14px; border: 1px solid #DEDEDE; border-radius: 12px; background: #FFFFFF; }
.sum-bar > div { display: grid; gap: 2px; min-width: 220px; flex: 1; }
.sum-bar b { font-size: 14.5px; color: #1A1A1A; }
.sum-bar.fresh { border-color: #3F6B50; background: #F3F8F4; box-shadow: 0 0 0 3px rgba(63, 107, 80, .12); }
/* One-click summary download: on every deal card and in the deal */
.card-wrap { position: relative; display: flex; }
.card-wrap > .card { flex: 1; }
.card-dl { position: absolute; top: 12px; right: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px; border: 1px solid rgba(255,255,255,.7); background: rgba(255,255,255,.94); color: #1A1A1A; font: 600 12.5px/1 inherit; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.12); transition: transform .25s, background .15s; }
.card-dl:hover { background: #fff; }
.card-wrap:hover > .card-dl { transform: translateY(-3px); }
.card-dl.busy { opacity: .6; cursor: progress; }
.card-dl.busy span::after { content: '\2026'; }
.sum-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; font-size: 14.5px; }
/* MLS photo credit (the listing brokerage), required wherever an MLS photo is shown */
.photo-credit { position: absolute; left: 8px; top: 8px; z-index: 1; max-width: calc(100% - 130px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 2px 7px; border-radius: 6px; background: rgba(0,0,0,.55); color: #fff; font-size: 10.5px; line-height: 1.5; pointer-events: none; }
.found-photo { display: flex; align-items: center; gap: 14px; margin: 14px 0 8px; padding: 10px; border: 1px solid #DEDEDE; border-radius: 12px; background: #FFFFFF; }
.found-photo img { width: 132px; height: 84px; object-fit: cover; border-radius: 8px; flex: none; }
.found-photo span { font-size: 14px; color: #393939; }

/* ---------- Broker team dashboard ---------- */
.tm-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.tm-pick { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.tm-pick select { min-width: 220px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; font-size: 14px; color: var(--ink); }
.tm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; margin-top: 18px; }
.tm-box { margin-top: 18px; padding: 20px 22px; }
.tm-grid > .tm-box { margin-top: 0; }
.tm-box .box-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.tm-box h3 .note { font-weight: 400; font-size: 13px; margin-left: 6px; }
.tm-box h4 { margin: 0 0 6px; font-size: 14px; }
.tm-health { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.tm-health.good { background: #E7F1EA; color: #2F5D41; }
.tm-health.warn { background: #FBF0D9; color: #7A5410; }
.tm-health.bad { background: #FBE4DF; color: #9A3324; }
.tm-health.idle { background: #EFEFEF; color: #646464; }
.tm-trend { font-size: 11.5px; font-weight: 600; margin-left: 4px; }
.tm-trend.up { color: #2F5D41; } .tm-trend.down { color: #9A3324; }
.tm-top { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--accent, #3F6B50); color: #fff; font-size: 11px; font-weight: 600; vertical-align: 1px; }
.tm-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tm-table th { text-align: left; font-weight: 500; font-size: 12.5px; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tm-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tm-table tr:last-child td { border-bottom: 0; }
.tm-click { cursor: pointer; }
.tm-click:hover td, .tm-click:focus td { background: rgba(0,0,0,.025); }
.tm-click:focus { outline: 2px solid var(--accent, #3F6B50); outline-offset: -2px; }
.tm-att ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tm-att li button { width: 100%; text-align: left; background: none; border: 0; border-left: 3px solid var(--line); padding: 7px 10px; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; border-radius: 0 6px 6px 0; }
.tm-att li button:hover { background: rgba(0,0,0,.03); }
.tm-att li.bad button { border-left-color: #C2412D; } .tm-att li.warn button { border-left-color: #D69A2D; } .tm-att li.good button { border-left-color: #4C8A62; } .tm-att li.idle button { border-left-color: #B3B3B3; }
.tm-dl { display: grid; }
.tm-dl-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.tm-dl-row:last-child { border-bottom: 0; }
.tm-dl-date { width: 64px; flex: none; font-size: 13px; font-weight: 600; }
.tm-dl-row.late .tm-dl-date { color: #9A3324; }
.tm-dl-main { flex: 1; min-width: 0; display: grid; }
.tm-dl-main small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-bars { display: grid; gap: 6px; }
.tm-bar-row { display: grid; grid-template-columns: 130px 1fr 80px; align-items: center; gap: 10px; background: none; border: 0; padding: 4px 0; font: inherit; font-size: 13.5px; color: var(--ink); cursor: pointer; text-align: left; }
.tm-bar-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-bar { height: 10px; background: #EFEFEF; border-radius: 999px; overflow: hidden; }
.tm-bar i { display: block; height: 100%; background: var(--accent, #3F6B50); border-radius: 999px; min-width: 2px; }
.tm-bar-val { text-align: right; font-weight: 600; font-size: 13px; }
.tm-search { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 14px; margin: 4px 0 12px; background: #fff; }
.tm-invite { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tm-invite code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 8px 10px; background: #F4F4F4; border-radius: 6px; font-size: 12.5px; }
.tm-results { margin-bottom: 8px; }
.tm-msg { margin: 12px 0 0; color: #2F5D41; font-size: 14px; }
.tm-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.tm-ask { border-left: 3px solid var(--accent, #3F6B50); }
.tm-banner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 16px 0 0; padding: 12px 16px; border: 1px solid var(--line); border-left: 3px solid var(--accent, #3F6B50); border-radius: 8px; background: #fff; font-size: 14px; }
@media (max-width: 640px) {
  .tm-bar-row { grid-template-columns: 96px 1fr 64px; }
  .tm-pick select { min-width: 0; width: 100%; }
  .tm-pick { width: 100%; }
}
.tm-table a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.tm-table a:hover { border-bottom-color: var(--ink); }
.tm-back { background: none; border: 0; padding: 0; font: inherit; color: var(--accent, #3F6B50); cursor: pointer; font-weight: 600; }
/* Text / Email switch in custom requests */
.cr-switch { display: inline-flex; gap: 2px; padding: 3px; margin: 6px 0 4px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.cr-switch button { border: 0; background: none; padding: 6px 16px; border-radius: 6px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.cr-switch button.on { background: var(--accent, #3F6B50); color: #fff; }
.cr-subject { width: 100%; box-sizing: border-box; margin: 6px 0; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 14px; font-weight: 600; background: #fff; }
.sched-kind { display: block; font-style: normal; font-size: 12.5px; color: var(--muted); }
.ask-act { display: inline-block; margin: 2px 0 8px; }
.tm-add { display: grid; gap: 8px; }
.tm-add .btn { justify-self: start; }
/* Background deal reading: a small status pill while the agent keeps working */
#job-pill:empty { display: none; }
.job-pill { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 60; width: min(440px, calc(100vw - 32px)); padding: 12px 12px 12px 16px; background: #1A1A1A; color: #fff; border-radius: 16px; box-shadow: 0 14px 40px rgba(0,0,0,.28); font-size: 14.5px; display: grid; gap: 10px; }
.job-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.job-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-pct { font-variant-numeric: tabular-nums; font-weight: 600; }
.job-pill .btn { flex: none; background: #fff; color: #1A1A1A; border-color: #fff; }
.job-pill .spin { flex: none; border-color: rgba(255,255,255,.35); border-top-color: #fff; }
.job-bar { height: 10px; border-radius: 999px; background: #E3EDE6; overflow: hidden; margin: 6px 0 12px; }
.job-bar > i { display: block; height: 100%; width: 0; border-radius: 999px; background-color: #2F9E5B; transition: width .45s ease-out; }
.job-bar.on-dark { margin: 0; height: 7px; background: rgba(255,255,255,.18); }
.bg-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 8px; }
.card-photo { position: absolute; top: 12px; left: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px; border: 1px solid rgba(255,255,255,.7); background: rgba(255,255,255,.94); color: #1A1A1A; font: 600 12.5px/1 inherit; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.12); transition: transform .25s, background .15s; }
.card-photo:hover { background: #fff; }
.card-wrap:hover > .card-photo { transform: translateY(-3px); }
.card-photo:focus-within { outline: 2px solid #3F6B50; outline-offset: 2px; }
/* 24-hour calendar: the hours scroll inside the grid */
.tbody { max-height: min(68vh, 720px); overflow-y: auto; overscroll-behavior: contain; }
.thead, .allday { position: relative; z-index: 2; }
.feed-box { margin: 16px 0 0; padding: 18px 20px; border: 1px solid var(--line, #E2E2E2); border-radius: 12px; background: var(--card, #fff); display: grid; gap: 10px; }
.feed-box h3 { margin: 2px 0 4px; }
.feed-steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.feed-steps .btn { margin-left: 6px; vertical-align: middle; }
.feed-linked { margin-top: 12px; }
/* Assistant: compact "time saved" corner with the work behind it */
.ai-corner { min-width: 280px; }
.sc-stats { list-style: none; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line, #E2E2E2); display: grid; gap: 7px; }
.sc-stats li { display: grid; grid-template-columns: 22px 1fr auto; grid-template-rows: auto 4px; column-gap: 8px; row-gap: 3px; align-items: center; font-size: 13.5px; }
.sc-ic { grid-row: 1 / span 2; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: #EEF4F0; color: #2F7A4F; font-style: normal; }
.sc-l { color: var(--muted, #616161); }
.sc-stats em { font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink, #1A1A1A); }
.sc-bar { grid-column: 2 / span 2; height: 4px; border-radius: 4px; background: #EEF1EE; overflow: hidden; }
.sc-bar > span { display: block; height: 100%; border-radius: 4px; background-color: #3E9A63; }
.split-list { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 8px; }
.split-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 14px; border: 1px solid var(--line, #E2E2E2); border-radius: 10px; background: var(--card, #fff); }
.split-list li > span { color: var(--muted, #616161); font-size: 14px; }
.split-list details { grid-column: 1 / -1; font-size: 13px; color: var(--muted, #616161); }
.split-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.sched-switch { margin-top: 10px; }

/* Your email signature: the walkthrough, and a preview drawn by the same code that builds the real emails. */
.sig-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .sig-grid { grid-template-columns: 1fr; } }
.sig-preview { border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; text-align: left; }
.sig-preview p, .sig-preview div, .sig-preview td, .sig-preview a { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif; letter-spacing: normal; }
.sig-preview table { width: auto; }
.sig-preview img { max-width: 100%; }
#app .su-banner.sig-banner { flex-wrap: wrap; }
.sig-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .sig-choices { grid-template-columns: 1fr; } }
.sig-choice { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; background: #fff; }
.sig-choice.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.sig-choice p { margin: 0; font-size: 13px; color: var(--muted); flex: 1; }
.sig-choice em { font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #1F6F43; background: #E6F3EB; border-radius: 999px; padding: 2px 8px; margin-left: 6px; }
.sig-on { font-size: 13px; font-weight: 600; color: #1F6F43; }
.sig-wiz { display: flex; flex-direction: column; gap: 16px; }
.sig-dots { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.sig-dots li { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); text-align: center; min-width: 0; }
.sig-dots button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--muted); font-weight: 600; cursor: pointer; }
.sig-dots li.sig-done button { background: #1F6F43; border-color: #1F6F43; color: #fff; }
.sig-dots li.sig-now button { background: var(--ink); border-color: var(--ink); color: #fff; }
.sig-dots li.sig-now { color: var(--ink); font-weight: 600; }
.sig-pic-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.sig-face { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; }
.sig-logo { height: 72px; width: auto; max-width: 220px; flex: none; }
.sig-card { width: 220px; height: auto; border: 1px solid var(--line); border-radius: 8px; flex: none; }
.sig-empty { display: flex; align-items: center; justify-content: center; background: #F3F3F3; border: 1px dashed #C4C4C4; color: var(--muted); font-size: 13px; }
div.sig-logo.sig-empty { width: 150px; border-radius: 8px; }
div.sig-card.sig-empty { height: 126px; }
.sig-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sig-nav .note { flex: 1 1 160px; text-align: right; }

/* Password boxes: a Show / Hide button inside the box, and "Forgot your password?" under it on sign-in */
/* The Show button sits beside the box, not inside it: Safari and password managers put their own key icon
   inside the right edge of a password box, and an overlaid button would collide with it. */
.pw-wrap { display: flex; align-items: stretch; gap: 8px; min-width: 0; }
.pw-wrap input { flex: 1 1 auto; min-width: 0; width: auto; box-sizing: border-box; }
.pw-show { flex: none; border: 1px solid rgba(128, 128, 128, .45); background: transparent; padding: 0 14px; min-width: 64px; font-size: 13px; font-weight: 600; color: inherit; cursor: pointer; border-radius: 10px; opacity: .85; }
.pw-show:hover, .pw-show:focus-visible { opacity: 1; border-color: currentColor; outline: none; }
.pw-forgot { align-self: flex-end; margin: 6px 0 0; border: 0; background: none; padding: 2px 0; font-size: 13.5px; font-weight: 600; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; opacity: .8; }
.pw-forgot:hover, .pw-forgot:focus-visible { opacity: 1; }
.pw-forgot:disabled { opacity: .5; cursor: default; }
