/* scrapr — dashboard. Geometry, type scale and colour taken from the supplied design. */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --field:       #EFEFEF;   /* grey surround behind the app card */
  --surface:     #FFFFFF;
  --ink:         #0A0A0A;
  --ink-2:       #4A4A4A;
  --muted:       #8A8A8A;
  --muted-2:     #6B6B6B;
  --line:        #EAEAEA;
  --line-soft:   #F0F0F0;
  --hover:       #F7F7F7;
  --chip:        #F4F4F4;
  --search:      #F5F5F5;

  --lav-bg:      #E9E5FF;  --lav-fg: #4B3DBE;
  --mint-bg:     #D5F5E3;  --mint-fg: #17794A;
  --gold-bg:     #FBF0A8;  --gold-fg: #7D6300;
  --rose-bg:     #FCE0EA;  --rose-fg: #B02A55;
  --yellow:      #FFE24D;
  --blue:        #2F6BFF;
  --green:       #22C55E;
  --bar-track:   #EDEDED;
  --bar-fill:    #5C5C5C;

  --sidebar-w:   240px;
  --row-h:       67px;
  --radius:      6px;

  --font: 'Outfit','Plus Jakarta Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--field); color: var(--ink);
  font-family: var(--font); font-size: 14px; line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; }
svg { display: block; }

/* ---------------------------------------------------------------- shell */
.app {
  display: grid; grid-template-columns: var(--sidebar-w) 1fr;
  background: var(--surface);
  margin: 30px; min-height: calc(100vh - 60px);
  position: relative;
}

/* ---------------------------------------------------------------- sidebar */
.sidebar {
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 26px 0 20px;
}
.brand { display: flex; align-items: center; gap: 9px; padding: 0 22px 30px; }
.brand-mark { width: 26px; height: 26px; }
.brand-name { font-size: 23px; font-weight: 700; letter-spacing: -.035em; }

.nav { padding: 0 12px; display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 13px; width: 100%;
  padding: 11px 11px; border-radius: var(--radius);
  font-size: 15px; font-weight: 400; color: var(--ink); text-align: left;
  white-space: nowrap;
}
/* The label takes the slack so trailing chevrons/badges never squeeze it. */
.nav-item > span:not(.chev):not(.count-pill) { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nav-item > .count-pill { flex: none; margin-left: 8px; }
.nav-item > svg { flex: none; }
.nav-item:hover { background: var(--hover); }
.nav-item .chev { margin-left: auto; color: var(--muted); transition: transform .18s ease; }
.nav-item[aria-expanded="true"] { background: var(--hover); }
.nav-item[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-group { background: var(--hover); border-radius: var(--radius); overflow: hidden; }
.nav-group .nav-item { border-radius: 0; }
.nav-group .nav-item:hover { background: #F2F2F2; }
.sub { display: flex; flex-direction: column; }
.sub-item {
  padding: 11px 12px 11px 49px; font-size: 15px; text-align: left; color: var(--ink);
  white-space: nowrap;
}
.sub-item:hover { background: #F2F2F2; }
.sub-item.active { background: #F0F0F0; font-weight: 500; }
.nav-item.active { background: var(--hover); font-weight: 500; }

.sidebar-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.count-pill {
  margin-left: auto; background: var(--blue); color: #fff; font-size: 12px; font-weight: 500;
  min-width: 24px; height: 22px; border-radius: 4px; display: grid; place-items: center; padding: 0 6px;
}
.count-pill.gold { background: var(--yellow); color: #3A2E00; }

/* collapse handle straddling the sidebar edge */
.collapse {
  position: absolute; left: calc(var(--sidebar-w) - 13px); top: 96px; z-index: 5;
  width: 26px; height: 26px; border-radius: 50%; background: var(--surface);
  border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2);
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

/* ---------------------------------------------------------------- header */
.main { display: flex; flex-direction: column; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 18px; padding: 22px 30px; }
.omni {
  position: relative; width: 450px; max-width: 46vw;
}
.omni svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.omni input {
  width: 100%; height: 46px; border: none; border-radius: 999px; background: var(--search);
  padding: 0 20px 0 50px; font-size: 15px; outline: none;
}
.omni input::placeholder { color: #9A9A9A; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.icon-btn { color: var(--ink); position: relative; }
.icon-btn .dot {
  position: absolute; top: -1px; right: -1px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--ink); border: 1.5px solid #fff;
}
.divider-v { width: 1px; height: 30px; background: var(--line); }
.me { display: flex; align-items: center; gap: 8px; }
.me .avatar { width: 42px; height: 42px; border: 2px solid #E4DEFF; }

/* ---------------------------------------------------------------- page head */
.page { padding: 4px 30px 0; }
.crumb { font-size: 13.5px; color: var(--muted); margin-bottom: 4px; }
.title-row { display: flex; align-items: center; gap: 14px; }
h1 { font-size: 27px; font-weight: 600; letter-spacing: -.025em; margin: 0; }
.chip {
  background: var(--chip); border-radius: 5px; padding: 5px 11px; font-size: 13px; color: var(--ink-2);
}
.title-actions { margin-left: auto; display: flex; gap: 12px; }
.btn {
  padding: 11px 22px; border-radius: 4px; font-size: 14.5px; font-weight: 500;
  border: 1px solid var(--ink); background: var(--surface); color: var(--ink);
}
.btn.solid { background: var(--ink); color: #fff; }
.btn:hover { opacity: .88; }

.tabs { display: flex; gap: 30px; margin-top: 22px; border-bottom: 1px solid var(--line); }
.tab {
  padding: 0 2px 13px; font-size: 15.5px; color: var(--muted-2); position: relative;
}
.tab.active { color: var(--ink); font-weight: 500; }
.tab.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink);
}

/* ---------------------------------------------------------------- toolbar */
.toolbar {
  display: flex; align-items: center; gap: 16px; padding: 18px 30px;
  border-bottom: 1px solid var(--line);
}
.tsearch { position: relative; flex: 1; min-width: 0; }
.tsearch svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.tsearch input {
  width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 999px;
  padding: 0 20px 0 48px; font-size: 14.5px; outline: none; background: var(--surface);
}
.tsearch input:focus { border-color: #D2D2D2; }
.tool-icons { display: flex; align-items: center; gap: 6px; }
.tool {
  width: 40px; height: 40px; border-radius: var(--radius); display: grid; place-items: center; color: var(--ink);
}
.tool:hover, .tool.active { background: var(--hover); }
.tool.pill {
  width: auto; padding: 0 14px; gap: 8px; display: flex; align-items: center;
  border: 1px solid var(--line); border-radius: 999px; height: 42px;
}
.tool .num {
  background: var(--ink); color: #fff; font-size: 11px; width: 18px; height: 18px;
  border-radius: 50%; display: grid; place-items: center;
}
.options {
  display: flex; align-items: center; gap: 10px; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px 16px; font-size: 14.5px;
}

/* ---------------------------------------------------------------- table */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 980px; }
th, td { border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
th:last-child, td:last-child { border-right: none; }
thead th {
  font-size: 11.5px; font-weight: 500; letter-spacing: .085em; text-transform: uppercase;
  color: var(--muted); text-align: left; padding: 15px 16px; background: var(--surface);
  white-space: nowrap; position: sticky; top: 0; z-index: 2;
}
tbody td { padding: 12px 16px; height: var(--row-h); vertical-align: middle; white-space: nowrap; }
tbody tr:hover { background: #FCFCFC; }
.col-check { width: 58px; }
.col-check th, .col-check td { padding-left: 22px; }

input[type="checkbox"] {
  appearance: none; width: 17px; height: 17px; border: 1.5px solid #C9C9C9; border-radius: 3px;
  display: grid; place-items: center; cursor: pointer; background: #fff;
}
input[type="checkbox"]:checked { background: var(--ink); border-color: var(--ink); }
input[type="checkbox"]:checked::after {
  content: ''; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}

.cell-name { display: flex; align-items: center; gap: 13px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-size: 12.5px; font-weight: 600; color: #fff; letter-spacing: .01em; overflow: hidden;
}
.name-main { font-size: 14.5px; font-weight: 500; letter-spacing: -.005em;
             white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.name-sub { font-size: 12.5px; color: var(--muted); }
.stack-line { font-size: 13.5px; }
.stack-line + .stack-line { color: var(--muted-2); font-size: 13px; margin-top: 2px; }
.stack-line a { color: var(--ink); text-decoration: none; }
.stack-line a:hover { text-decoration: underline; }
.num-strong { font-size: 14.5px; font-weight: 500; font-variant-numeric: tabular-nums; }

.badge {
  display: inline-block; padding: 5px 11px; border-radius: 4px; font-size: 12.5px; font-weight: 500;
  white-space: nowrap;
}
.badge.new { background: var(--lav-bg); color: var(--lav-fg); }
.badge.called { background: var(--mint-bg); color: var(--mint-fg); }
.badge.booked { background: var(--gold-bg); color: var(--gold-fg); }
.badge.dead { background: var(--chip); color: var(--muted-2); }
.badge.src { background: var(--chip); color: var(--ink-2); font-weight: 400; }

.progress { display: flex; align-items: center; gap: 12px; }
.bar { width: 72px; height: 5px; border-radius: 3px; background: var(--bar-track); overflow: hidden; flex: none; }
.bar i { display: block; height: 100%; background: var(--bar-fill); border-radius: 3px; }
.pct { font-size: 13.5px; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- pagination */
.pager { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 26px 30px 34px; }
.pager button {
  min-width: 40px; height: 40px; border-radius: 3px; font-size: 14.5px; display: grid; place-items: center;
}
.pager .edge {
  border: 1px solid var(--line); padding: 0 18px; display: flex; align-items: center; gap: 9px;
}
.pager .edge:disabled { opacity: .4; cursor: default; }
.pager .num.active { background: var(--ink); color: #fff; }
.pager .gap { color: var(--muted); }

/* ---------------------------------------------------------------- drawer */
.scrim {
  position: fixed; inset: 0; background: rgba(255,255,255,.72); backdrop-filter: blur(1.5px);
  opacity: 0; pointer-events: none; transition: opacity .2s ease; z-index: 30;
}
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 30px; right: 30px; bottom: 30px; width: 615px; max-width: calc(100vw - 60px);
  background: var(--surface); border-left: 1px solid var(--line); z-index: 40;
  transform: translateX(calc(100% + 34px)); transition: transform .26s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; box-shadow: -18px 0 40px rgba(0,0,0,.06);
}
.drawer.open { transform: none; }
.drawer-hd {
  flex: none;
  display: flex; align-items: center; gap: 16px; padding: 20px 26px; border-bottom: 1px solid var(--line);
}
.drawer-hd h2 { font-size: 21px; font-weight: 600; letter-spacing: -.02em; margin: 0; }
.drawer-hd .btn { margin-left: auto; }
.drawer-body { overflow-y: auto; flex: 1 1 auto; min-height: 0; }
.d-sec { padding: 24px 26px; border-bottom: 1px solid var(--line); }
.d-person { display: flex; align-items: flex-start; gap: 16px; }
.d-person .avatar { width: 62px; height: 62px; font-size: 20px; }
.d-name { font-size: 25px; font-weight: 600; letter-spacing: -.025em; margin: 0 0 4px; }
.d-mail { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted-2); }
.d-actions { margin-left: auto; display: flex; gap: 10px; }
.round {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink);
}
.round:hover { background: var(--hover); }

.d-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); margin-top: 22px; }
.d-cell { padding: 13px 16px; border-right: 1px solid var(--line); }
.d-cell:last-child { border-right: none; }
.d-cell .k { font-size: 12.5px; color: var(--muted); margin-bottom: 3px; }
.d-cell .v { font-size: 15px; font-weight: 500; letter-spacing: -.01em;
             white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.d-progress { border: 1px solid var(--line); padding: 18px 20px; margin-top: 20px; }
.d-progress-hd { display: flex; align-items: center; gap: 11px; font-size: 16px; font-weight: 500; }
.d-progress-hd .pctlab { margin-left: auto; font-size: 14px; color: var(--muted-2); font-weight: 400; }
.track { height: 12px; border-radius: 7px; background: #D9F5E5; margin-top: 14px; position: relative; }
.track i { display: block; height: 100%; border-radius: 7px; background: var(--green); }
.track .knob {
  position: absolute; top: 50%; width: 15px; height: 15px; border-radius: 50%; background: var(--ink);
  transform: translate(-50%, -50%);
}

.sec-hd { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.sec-hd h3 { font-size: 17px; font-weight: 600; letter-spacing: -.015em; margin: 0; }
.sec-hd .tally {
  background: var(--yellow); color: #3A2E00; font-size: 12.5px; font-weight: 600;
  min-width: 26px; height: 24px; border-radius: 999px; display: grid; place-items: center; padding: 0 8px;
}
.sec-hd .link { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); }

.tl { display: flex; flex-direction: column; }
.tl-row { display: grid; grid-template-columns: 36px 1fr; gap: 14px; position: relative; padding-bottom: 20px; }
.tl-row:last-child { padding-bottom: 0; }
.tl-row::before {
  content: ''; position: absolute; left: 17px; top: 36px; bottom: 0; width: 1px; background: var(--line);
}
.tl-row:last-child::before { display: none; }
.tl-ic {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--lav-bg); color: var(--lav-fg); z-index: 1;
}
.tl-ic.warn { background: #FFF3C4; color: #8A6D00; }
.tl-ic.bad { background: var(--rose-bg); color: var(--rose-fg); }
.tl-txt { font-size: 14.5px; }
.tl-txt b { font-weight: 600; }
.tl-meta { font-size: 13px; color: var(--muted); margin-top: 2px; }

.note { border: 1px solid var(--line); margin-top: 12px; }
.note-hd {
  display: flex; align-items: center; gap: 9px; padding: 13px 16px; border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.note-hd .when { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--muted-2); font-size: 13.5px; }
.note-body { padding: 16px; font-size: 14.5px; line-height: 1.55; }
.note-body.script { white-space: pre-wrap; }
.beat { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
.beat-row { display: grid; grid-template-columns: 22px 1fr; gap: 12px; margin-bottom: 14px; }
.beat-n {
  width: 21px; height: 21px; border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center; font-size: 11.5px; color: var(--muted); margin-top: 2px;
}
.reserve { border-left: 2px solid var(--yellow); background: #FFFCEC; padding: 12px 15px; margin-top: 4px; }

.pain li, .solo li { margin-bottom: 5px; font-size: 14px; }
.pain, .solo { margin: 0; padding-left: 18px; }
.pain li::marker { color: #D14343; }
.solo li::marker { color: var(--green); }

.empty { padding: 90px 30px; text-align: center; color: var(--muted); }
.empty h2 { font-size: 19px; font-weight: 600; color: var(--ink); margin: 0 0 8px; letter-spacing: -.02em; }
.empty p { margin: 0 auto 20px; max-width: 420px; font-size: 14.5px; line-height: 1.6; }
.hide { display: none !important; }

/* The menu button, and the scrim behind an open menu. Desktop hides both. */
.nav-toggle { display: none; }
.nav-scrim { display: none; }

@media (max-width: 900px) {
  .app { margin: 0; min-height: 100vh; grid-template-columns: 1fr; }
  .collapse { display: none; }
  .omni { width: auto; flex: 1; }
  .drawer { top: 0; right: 0; bottom: 0; width: 100%; max-width: 100%; }

  /*
   * The sidebar slides over instead of disappearing.
   *
   * `display: none` here meant that under 900px there was no navigation at
   * all: whatever page loaded first was the only page. The owner checking
   * tonight's numbers on a phone could not reach Overview.
   */
  .nav-toggle {
    /* flex:none and border-box, or the flex row shrinks it to a 20px sliver
       that is too small to hit with a thumb. 44px is the tappable minimum. */
    display: flex; flex: none; box-sizing: border-box;
    flex-direction: column; justify-content: center; gap: 4px;
    width: 44px; height: 44px; padding: 0 11px; margin-right: 8px;
    background: none; border: 1px solid var(--line, #eaeaea); border-radius: 10px; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--ink, #0a0a0a); }

  .sidebar {
    display: flex; position: fixed; top: 0; bottom: 0; left: 0; width: 264px; max-width: 82vw;
    z-index: 60; background: var(--surface, #fff); border-right: 1px solid var(--line, #eaeaea);
    overflow-y: auto; transform: translateX(-100%);
    transition: transform .24s cubic-bezier(.4, 0, .2, 1);
  }
  .app.nav-open .sidebar { transform: none; }
  .app.nav-open .nav-scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.35); }

  /* Room for the menu button, and no button pushed off the right edge. */
  .title-row { flex-wrap: wrap; row-gap: 10px; }
  .title-actions { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar { transition: none; }
}

/* ---------------------------------------------------------------- settings */
.modal-scrim {
  position: fixed; inset: 0; background: rgba(10,10,10,.28); z-index: 50;
  opacity: 0; pointer-events: none; transition: opacity .18s ease;
}
.modal-scrim.open { opacity: 1; pointer-events: auto; }
.modal {
  position: fixed; z-index: 51; top: 50%; left: 50%; transform: translate(-50%, -48%) scale(.98);
  width: 540px; max-width: calc(100vw - 40px); max-height: calc(100vh - 80px);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0,0,0,.18);
  opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease;
  display: flex; flex-direction: column;
}
.modal.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.modal-hd {
  flex: none; display: flex; align-items: center; gap: 14px;
  padding: 18px 24px; border-bottom: 1px solid var(--line);
}
.modal-hd h2 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; margin: 0; }
.modal-hd button { margin-left: auto; color: var(--ink); }
.modal-body { overflow-y: auto; flex: 1 1 auto; min-height: 0; padding: 4px 24px 24px; }
.set-group { padding-top: 20px; }
.set-group + .set-group { border-top: 1px solid var(--line-soft); margin-top: 20px; }
.set-group h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
                color: var(--muted); margin: 0 0 14px; }
.set-row { display: grid; grid-template-columns: 148px 1fr; gap: 14px; align-items: center; margin-bottom: 12px; }
.set-row > label { font-size: 14px; color: var(--ink-2); }
.set-row input, .set-row select {
  width: 100%; height: 40px; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 12px; font: inherit; font-size: 14px; outline: none; background: var(--surface);
}
.set-row input:focus, .set-row select:focus { border-color: #C4C4C4; }
.set-hint { grid-column: 2; font-size: 12.5px; color: var(--muted); margin: -6px 0 12px; line-height: 1.5; }
.set-hint a { color: var(--accent); }
.set-actions { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.set-msg { font-size: 13px; }
.set-msg.ok { color: var(--mint-fg); }
.set-msg.bad { color: var(--rose-fg); }
@media (max-width: 560px) {
  .set-row { grid-template-columns: 1fr; gap: 6px; }
  .set-hint { grid-column: 1; }
}

/* Rep identity in the top bar. */
.me-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text, #1a1a1a);
  margin: 0 6px 0 8px;
  white-space: nowrap;
}
@media (max-width: 720px) { .me-name { display: none; } }

/* ---------------------------------------------------------------- overview */
.overview { padding: 0 32px 32px; }
.overview.hide { display: none; }
.ov-head { display: flex; align-items: baseline; gap: 12px; margin: 4px 0 18px; }
.ov-head h2 { font-size: 20px; font-weight: 600; margin: 0; }
.ov-shift { font-size: 13px; color: var(--muted, #6b7280); }
.ov-warn {
  font-size: 13px; color: #92400e; background: #fffbeb;
  border: 1px solid #fde68a; border-radius: 8px; padding: 8px 12px; margin: 0 0 14px;
}
.ov-loading { font-size: 14px; color: var(--muted, #6b7280); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 22px; }
.stat {
  display: flex; flex-direction: column; gap: 4px;
  border: 1px solid var(--line, #e7e7e9); border-radius: 12px; padding: 14px 16px; background: #fff;
}
.stat-label { font-size: 12px; color: var(--muted, #6b7280); text-transform: uppercase; letter-spacing: .04em; }
.stat-value { font-size: 26px; font-weight: 600; line-height: 1.1; }
.stat-sub { font-size: 12px; color: var(--muted, #6b7280); }

.ov-best { border: 1px solid var(--line, #e7e7e9); border-radius: 12px; padding: 16px 18px; background: #fff; }
.ov-best h3 { font-size: 13px; font-weight: 600; margin: 0 0 8px; color: var(--muted, #6b7280);
  text-transform: uppercase; letter-spacing: .04em; }
.ov-best-line { margin: 0 0 4px; font-size: 17px; }
.ov-owner { font-size: 13px; color: var(--muted, #6b7280); margin-left: 8px; }
.ov-best-meta { margin: 0; font-size: 13px; color: var(--muted, #6b7280); }

.ov-table { width: 100%; border-collapse: collapse; background: #fff;
  border: 1px solid var(--line, #e7e7e9); border-radius: 12px; overflow: hidden; }
.ov-table th, .ov-table td { text-align: left; padding: 11px 14px; font-size: 13px;
  border-bottom: 1px solid var(--line, #e7e7e9); }
.ov-table th { font-size: 11px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted, #6b7280); font-weight: 500; }
.ov-table tr:last-child td { border-bottom: 0; }
.ov-table tr.quiet td { color: var(--muted, #9ca3af); }

/* Best-call transcript */
.ov-tag {
  font-size: 11px; font-weight: 500; color: #6b7280; background: #f3f4f6;
  border: 1px solid #e5e7eb; border-radius: 999px; padding: 2px 8px; margin-left: 8px;
  vertical-align: middle;
}
.ov-dim { opacity: .7; }
.ov-toggle {
  margin-top: 12px; font: inherit; font-size: 13px; font-weight: 500;
  color: #1f2937; background: #fff; border: 1px solid var(--line, #e7e7e9);
  border-radius: 8px; padding: 7px 12px; cursor: pointer;
}
.ov-toggle:hover { background: #f9fafb; }
.ov-transcript {
  margin-top: 12px; max-height: 340px; overflow-y: auto;
  border-top: 1px solid var(--line, #e7e7e9); padding-top: 12px;
}
.ov-transcript.hide { display: none; }
.ov-turn { margin: 0 0 8px; font-size: 13px; line-height: 1.5; }
.ov-who {
  display: inline-block; min-width: 68px; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em; color: #9ca3af; vertical-align: top;
}
.ov-turn.rep .ov-who { color: #2563eb; }
.ov-turn.rep { color: #111827; }
.ov-turn.pro { color: #374151; }

/* ------------------------------------------------------------ appointments */
.appt-note { font-size: 13px; color: var(--muted, #6b7280); margin: 0 0 18px; max-width: 70ch; }
.appt {
  border: 1px solid var(--line, #e7e7e9); border-radius: 12px; background: #fff;
  padding: 16px 18px; margin-bottom: 14px;
}
.appt-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.appt-head h3 { margin: 0 0 4px; font-size: 17px; font-weight: 600; }
.appt-meta { margin: 0; font-size: 13px; color: var(--muted, #6b7280); }
.appt-conf {
  flex: none; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em;
  color: #6b7280; background: #f3f4f6; border: 1px solid #e5e7eb;
  border-radius: 999px; padding: 3px 10px; white-space: nowrap;
}
.appt-conf.high { color: #065f46; background: #ecfdf5; border-color: #a7f3d0; }
.appt-facts {
  display: grid; grid-template-columns: 110px 1fr; gap: 6px 14px;
  margin: 14px 0 0; font-size: 13px;
}
.appt-facts dt { color: var(--muted, #6b7280); }
.appt-facts dd { margin: 0; color: #111827; }
.appt-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.appt-actions a.ov-toggle { text-decoration: none; display: inline-block; }
@media (max-width: 640px) {
  .appt-head { flex-direction: column; }
  .appt-facts { grid-template-columns: 1fr; gap: 2px 0; }
  .appt-facts dt { margin-top: 8px; }
}
.appt-bad {
  margin-left: 8px; font-size: 11px; font-weight: 500;
  color: #991b1b; background: #fef2f2; border: 1px solid #fecaca;
  border-radius: 999px; padding: 2px 8px;
}

/* Night heading: the count must not read as part of the date
   ("Wed, Sep 23 2" instead of "Wed, Sep 23  ·  2"). */
.appt-night {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted, #6b7280); margin: 26px 0 12px;
}
.appt-night::after {
  content: ''; flex: 1; height: 1px; background: var(--line, #e7e7e9);
}
.appt-night span {
  order: 1; flex: none;
  font-size: 11px; font-weight: 600; letter-spacing: 0;
  color: #1f2937; background: #f3f4f6; border: 1px solid #e5e7eb;
  border-radius: 999px; padding: 2px 9px;
}
.appt-night:first-of-type { margin-top: 8px; }

/* A stat you can act on looks like it. */
.stat-link {
  font: inherit; text-align: left; cursor: pointer;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.stat-link:hover {
  border-color: #c7cbd1;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .06);
}
.stat-link:hover .stat-sub { color: #2563eb; }
.stat-link:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }

/* ---------------------------------------------------------------- call back */
.warm-table td { vertical-align: top; }
.warm-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.warm-why { color: var(--muted, #6b7280); }
.warm-tier {
  display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em; border-radius: 999px;
  padding: 1px 7px; border: 1px solid transparent; vertical-align: middle;
}
.warm-tier.hot  { color: #065f46; background: #ecfdf5; border-color: #a7f3d0; }
.warm-tier.warm { color: #92400e; background: #fffbeb; border-color: #fde68a; }
.warm-tier.cool { color: #475569; background: #f1f5f9; border-color: #e2e8f0; }
.warm-tier.cold { color: #94a3b8; background: #f8fafc; border-color: #eef2f6; }
.warm-stop {
  display: flex; flex-direction: column; gap: 4px;
  border: 1px solid #fecaca; background: #fef2f2; border-radius: 10px;
  padding: 12px 14px; margin-bottom: 16px; font-size: 13px; color: #991b1b;
}
.warm-stop span { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------- build orders */
.ord-list { display: flex; flex-direction: column; gap: 12px; }
.ord {
  border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px;
  background: var(--card); border-left: 3px solid var(--line);
}
/* The left edge is the deadline, readable without reading anything. */
.ord.overdue { border-left-color: var(--rose-fg); }
.ord.urgent  { border-left-color: #d97706; }
.ord.soon    { border-left-color: #ca8a04; }
.ord.done    { opacity: .55; }
.ord header { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.ord h3 { margin: 0; font-size: 16px; }
.ord h4 { margin: 0 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.ord-sub { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.ord-when { text-align: right; font-size: 12px; display: flex; flex-direction: column; gap: 3px; align-items: flex-end; }
.ord-status { font-size: 11px; padding: 2px 8px; border-radius: 99px; background: var(--chip); }
.ord-status.building { background: #fef3c7; color: #92400e; }
.ord-status.ready { background: var(--mint-bg); color: var(--mint-fg); }
.ord-status.delivered { background: var(--chip); color: var(--muted); }
.ord-due { color: var(--muted); }
.ord-flag { color: var(--rose-fg); font-weight: 600; }
.ord-body { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 12px; font-size: 13px; }
.ord-body ul { margin: 0; padding-left: 16px; color: var(--muted); }
.ord-body li { margin: 2px 0; }
.ord-none { margin: 0; color: var(--rose-fg); }
.ord-notes { margin: 8px 0 0; font-style: italic; color: var(--muted); }
.ord-rep { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.ord footer { display: flex; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
@media (max-width: 720px) { .ord-body { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ shift pace */
.pace {
  border: 1px solid var(--line); border-left: 3px solid var(--line);
  border-radius: 10px; padding: 12px 14px; margin: 0 0 14px; background: var(--card);
}
.pace.absent     { border-left-color: var(--rose-fg); background: var(--rose-bg); }
.pace.behind     { border-left-color: #d97706; }
.pace.ahead,
.pace.on-track { border-left-color: var(--mint-fg); }
.pace-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pace-verdict { font-weight: 650; font-size: 15px; }
.pace-detail { font-size: 13px; color: var(--muted); }
.pace-bar { height: 4px; border-radius: 99px; background: var(--chip); margin: 9px 0 7px; overflow: hidden; }
.pace-bar i { display: block; height: 100%; background: var(--fg); opacity: .35; }
.pace.absent .pace-bar i { background: var(--rose-fg); opacity: .5; }
.pace-foot { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--muted); }
.pace-marks b { font-weight: 600; color: var(--fg); }
.pace-delta { margin-left: 6px; }
.pace-delta.up { color: var(--mint-fg); }
.pace-delta.down { color: var(--rose-fg); }

.pace-callout {
  margin: 0 0 12px; padding: 9px 12px; border-radius: 8px;
  background: var(--rose-bg); color: var(--rose-fg); font-size: 13px;
}
.pace-pill { font-size: 11px; padding: 2px 8px; border-radius: 99px; background: var(--chip); white-space: nowrap; }
.pace-pill.absent { background: var(--rose-bg); color: var(--rose-fg); font-weight: 600; }
/* A weekend is not a failure: neutral, and quieter than every other state. */
.pace-pill.off { background: var(--chip); color: var(--muted); }
.pace-pill.bonus { background: var(--mint-bg); color: var(--mint-fg); font-weight: 600; }
.pace.off { border-left-color: var(--line); background: var(--card); }
.pace.bonus { border-left-color: var(--mint-fg); background: var(--mint-bg); }
.pace-callout.off { color: var(--muted); }
.pace-pill.behind { background: #fef3c7; color: #92400e; }
.pace-pill.ahead { background: var(--mint-bg); color: var(--mint-fg); }

/* ---------------------------------------------------------------- deals */
.deal-stages { display: flex; gap: 10px; margin: 0 0 16px; flex-wrap: wrap; }
.deal-stage {
  flex: 1 1 130px; border: 1px solid var(--line); border-radius: 9px;
  padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; background: var(--card);
}
.deal-stage-name { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.deal-stage-count { font-size: 20px; font-weight: 650; }
.deal-stage-value { font-size: 12px; color: var(--muted); }
.deal-stage.won { border-color: var(--mint-fg); }
.deal-stage.lost { opacity: .6; }
.deal-pill { font-size: 11px; padding: 2px 8px; border-radius: 99px; background: var(--chip); white-space: nowrap; }
.deal-pill.proposal { background: #fef3c7; color: #92400e; }
.deal-pill.won { background: var(--mint-bg); color: var(--mint-fg); font-weight: 600; }
.deal-pill.lost { background: var(--rose-bg); color: var(--rose-fg); }
.deal-who { font-size: 12px; color: var(--muted); }
.deal-move { font-size: 12px; padding: 3px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); }

/* Meetings held somewhere this tool cannot see, waiting on an answer. */
.meet-ask {
  border: 1px solid var(--gold-fg); border-radius: 12px;
  background: var(--gold-bg); padding: 14px 16px; margin: 0 0 16px;
}
.meet-ask h3 { margin: 0; font-size: 14px; }
.meet-note { margin: 4px 0 10px; font-size: 12px; color: var(--muted); }
.meet-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.meet-list li {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
.meet-who { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.meet-quiet { font-size: 12px; color: var(--muted); }
.meet-agreed { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.meet-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.meet-acts input[type=datetime-local] {
  font-size: 12px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--card);
}
.meet-err { margin: 8px 0 0; font-size: 12px; color: var(--rose-fg); }

/* A maybe, waiting on a person to say which it was. */
.appt-settle {
  margin: 10px 0 0; padding: 10px 12px; border: 1px dashed var(--gold-fg);
  border-radius: 10px; background: var(--gold-bg);
}
.appt-settle p { margin: 0; font-size: 12px; }
.appt-settle-acts { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.appt-settle-err { margin-top: 8px !important; color: var(--rose-fg); }
.appt-settled { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.ord-due em { font-style: normal; color: #9a9a9a; font-size: 11px; }
.ord-due.yours { color: var(--muted); }
.ord-brief { align-items: center; gap: 12px; }
.ord-brief .ord-hint { font-size: 12px; color: var(--muted); }

/* What a status is carrying: the link, the date, the reason, the verdict. */
.ord-detail { margin: 10px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--soft, #f7f7f8); }
.ord-detail p { margin: 0 0 4px; font-size: 13px; line-height: 1.5; word-break: break-word; }
.ord-detail p:last-child { margin-bottom: 0; }
.ord-k { display: inline-block; min-width: 68px; font-size: 11px; letter-spacing: .04em;
         text-transform: uppercase; color: var(--muted); }
.ord-late { color: var(--danger, #b02a55); font-weight: 600; }

/* Asking for that detail, in the card rather than over it. */
.ord-form { display: block; width: 100%; }
.ord-form label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.ord-form input, .ord-form textarea {
  width: 100%; box-sizing: border-box; padding: 8px 10px; font: inherit; font-size: 14px;
  border: 1px solid var(--line, #eaeaea); border-radius: 8px; background: #fff; color: inherit;
}
.ord-form textarea { resize: vertical; }
.ord-form .ord-hint { display: block; margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.ord-form .ord-err { margin: 6px 0 0; font-size: 12px; color: var(--danger, #b02a55); }
.ord-form-actions { display: flex; gap: 8px; margin-top: 10px; }
.ord-moves { display: flex; flex-wrap: wrap; gap: 8px; }

/*
 * Tables scroll inside their own box instead of widening the page.
 *
 * `table { min-width: 980px }` above applies to every table on the page, but
 * only the leads table sat in .table-wrap. So on a phone the Overview,
 * Call Back and Pipeline tables pushed the whole layout out to 980px and the
 * owner had to drag the page sideways to read their own numbers.
 */
.ov-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ov-table { min-width: 680px; }
@media (max-width: 560px) {
  .ord-when { align-items: flex-start; }
  .ord-body { display: block; }
  .ord-body > div + div { margin-top: 12px; }
}

/* The topbar's "needs attention" panel — real counts, or nothing at all. */
.alerts-pop {
  position: fixed; z-index: 70; min-width: 260px; max-width: min(380px, 92vw);
  background: var(--surface, #fff); border: 1px solid var(--line, #eaeaea);
  border-radius: 12px; box-shadow: 0 12px 34px rgba(0,0,0,.12); padding: 6px; overflow: hidden;
}
.alert-row {
  display: block; width: 100%; text-align: left; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 13px; line-height: 1.45; padding: 9px 11px; border-radius: 8px; color: inherit;
}
.alert-row:hover { background: var(--soft, #f7f7f8); }
.alert-row.bad  { color: var(--danger, #b02a55); }
.alert-row.warn { color: #9a6700; }
.alert-none { margin: 0; padding: 12px; font-size: 13px; color: var(--muted); }

/* Compact rows: the density toggle in the toolbar actually does this. */
body.compact table td, body.compact table th { padding-top: 6px; padding-bottom: 6px; }
body.compact .avatar { width: 26px; height: 26px; font-size: 11px; }
body.compact .name-sub, body.compact .stack-line + .stack-line { display: none; }

/* Notes on a lead, written by whoever is working it. */
.d-notes { border-top: 1px solid var(--line, #eaeaea); padding-top: 14px; }
.d-note { margin: 0 0 10px; font-size: 13.5px; line-height: 1.5; }
.d-note-when { display: block; font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.d-note-kind { display: inline-block; font-size: 10px; letter-spacing: .05em; text-transform: uppercase;
               color: var(--muted); border: 1px solid var(--line, #eaeaea); border-radius: 4px;
               padding: 0 5px; margin-right: 6px; }
.d-note-none { margin: 0; font-size: 13px; color: var(--muted); }

/* "Updated 40s ago" — a clock that stops is itself the alarm. */
.live-chip {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  border: 1px solid var(--line, #eaeaea); background: none; color: var(--muted);
  font: inherit; font-size: 12px; padding: 5px 10px; border-radius: 999px; white-space: nowrap;
}
.live-chip:hover { background: var(--soft, #f7f7f8); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #2d8a4e; flex: none; }
.live-chip.busy .live-dot { animation: live-pulse 1s ease-in-out infinite; }
.live-chip.stale .live-dot { background: var(--danger, #b02a55); }
.live-chip.stale { color: var(--danger, #b02a55); }
@keyframes live-pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .live-chip.busy .live-dot { animation: none; } }
@media (max-width: 560px) { .live-chip .live-text { display: none; } .live-chip { padding: 6px; } }

/* The dial screen. Keyboard-only on purpose: a hand on the mouse between
   calls is the thing this deletes. */
.dialer { position: fixed; inset: 0; z-index: 90; background: var(--surface, #fff);
          display: flex; flex-direction: column; overflow-y: auto; }
.dial-bar { flex: none; display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
            padding: 14px 24px; border-bottom: 1px solid var(--line, #eaeaea); }
.dial-count { font-size: 13px; color: var(--muted); }
.dial-metric { font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
.dial-metric i { font-style: normal; font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 3px; }
.dial-metric.hit { color: #2d8a4e; }
.dial-rate { font-size: 12px; color: var(--muted); }
.dial-bar .btn { margin-left: auto; }

.dial-main { flex: 1; max-width: 720px; width: 100%; margin: 0 auto; padding: 40px 24px 56px; }
.dial-who { margin: 0; font-size: 34px; font-weight: 600; line-height: 1.15; }
.dial-biz { margin: 4px 0 0; font-size: 16px; color: var(--muted); }
.dial-meta { margin: 10px 0 26px; font-size: 14px; color: var(--muted); }

.dial-label { display: block; font-size: 11px; letter-spacing: .05em; text-transform: uppercase;
              color: var(--muted); margin-bottom: 8px; }
.dial-say { padding: 18px 20px; border-radius: 12px; background: var(--soft, #f7f7f8); margin-bottom: 20px; }
.dial-line { margin: 0 0 6px; font-size: 21px; line-height: 1.45; }
.dial-line.dim { font-size: 16px; color: var(--muted); margin-bottom: 0; }
.dial-pain ul { margin: 0; padding-left: 20px; }
.dial-pain li { font-size: 14px; line-height: 1.6; }

.dial-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.btn.big { font-size: 17px; padding: 13px 26px; text-decoration: none; }
.btn.warn { background: #9a6700; border-color: #9a6700; }
.dial-actions kbd { font: inherit; font-size: 11px; opacity: .65; border: 1px solid currentColor;
                    border-radius: 4px; padding: 0 5px; margin-left: 4px; }
.dial-done { margin: auto; text-align: center; padding: 40px; }
.dial-done h2 { margin: 0 0 8px; }
.tab-cta { margin-left: auto; }
.tabs { display: flex; align-items: center; gap: 8px; }
@media (max-width: 560px) { .dial-who { font-size: 26px; } .dial-line { font-size: 18px; } }

/* What just happened, under the dial buttons. */
.dial-note { margin: 14px 0 0; font-size: 14px; color: var(--muted); min-height: 20px; opacity: 0; transition: opacity .15s; }
.dial-note.show { opacity: 1; }

/* What the call is doing right now, from OpenPhone's own events. */
.dial-state { margin: 26px 0 0; font-size: 15px; color: var(--muted); }
.dial-state.ringing { color: #9a6700; }
.dial-state.ended { color: var(--ink, #0a0a0a); font-weight: 600; }

/* The week's standing, under the night's pace. */
.target { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px;
          margin: 0 0 14px; padding: 11px 14px; border-radius: 10px;
          border: 1px solid var(--line, #eaeaea); border-left-width: 3px; }
.target.due   { border-left-color: #9a6700; background: #fffaf0; }
.target.owed  { border-left-color: var(--danger, #b02a55); background: #fcE0ea; }
.target.done  { border-left-color: #2d8a4e; background: #f1f9f4; }
.target-line { font-size: 14px; font-weight: 500; }
.target-counts { font-size: 12.5px; color: var(--muted); margin-left: auto; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .target-counts { margin-left: 0; } }
.target.evaluating { border-left-color: #0984E3; background: #f2f7fd; }


/* ------------------------------------------------------------------ inbox */
.inbox-connect {
  max-width: 34rem; margin: 24px auto; padding: 24px; text-align: center;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card);
}
.inbox-connect h3 { margin: 0 0 8px; font-size: 16px; }
.inbox-connect p { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.inbox-quiet { font-size: 12px; color: var(--muted); }
.inbox-err { color: var(--rose-fg); font-size: 12px; }
.inbox-ok { color: var(--mint-fg); font-size: 12px; }

.inbox-search { display: flex; gap: 8px; margin: 0 0 12px; }
.inbox-search input {
  flex: 1; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); font: inherit;
}
.inbox-split { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: 16px; align-items: start; }
@media (max-width: 860px) { .inbox-split { grid-template-columns: 1fr; } }

.inbox-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.inbox-list li { display: grid; gap: 2px; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); cursor: pointer; }
.inbox-list li:last-child { border-bottom: 0; }
.inbox-list li:hover { background: var(--hover); }
.inbox-list li.on { background: var(--lav-bg); }
.inbox-list li.unread .inbox-from, .inbox-list li.unread .inbox-subject { font-weight: 650; }
.inbox-from { font-size: 13px; }
.inbox-subject { font-size: 13px; }
.inbox-snippet, .inbox-when { font-size: 11px; color: var(--muted); }
.inbox-none { color: var(--muted); font-size: 13px; cursor: default; }

.inbox-read { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: var(--card); }
.inbox-msg { border-bottom: 1px solid var(--line-soft); padding-bottom: 12px; margin-bottom: 12px; }
.inbox-msg header { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); }
.inbox-msg h4 { margin: 4px 0; font-size: 14px; }
.inbox-msg pre { margin: 0; white-space: pre-wrap; font: inherit; font-size: 13px; }

.inbox-compose { display: grid; gap: 8px; }
.inbox-compose label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.inbox-compose input, .inbox-compose textarea, .inbox-compose select {
  font: inherit; font-size: 13px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: inherit;
}
.inbox-meet { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
.inbox-rule { border: 0; border-top: 1px solid var(--line); margin: 18px 0 12px; }
.inbox-connect form { text-align: left; }
.inbox-connect details { font-size: 12px; color: var(--muted); }
.inbox-connect summary { cursor: pointer; padding: 4px 0; }
.inbox-actions { display: flex; gap: 8px; flex-wrap: wrap; }


/* What the prospect sent after the call. */
.appt-sent {
  margin: 10px 0 0; padding: 10px 12px; border-radius: 10px;
  background: var(--mint-bg); border: 1px solid var(--mint-fg);
}
.appt-sent p { margin: 0; font-size: 13px; color: var(--mint-fg); }
.appt-shots { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.appt-shots a { display: block; width: 92px; height: 92px; border-radius: 8px; overflow: hidden; background: var(--card); }
.appt-shots img { width: 100%; height: 100%; object-fit: cover; display: block; }
.appt-file {
  display: grid; place-items: center; width: 100%; height: 100%;
  font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em;
}


/* The build queue, cut into days. */
.ord-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.ord-chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: var(--card); color: inherit;
  border-radius: 99px; padding: 5px 12px; font: inherit; font-size: 12px; cursor: pointer;
}
.ord-chip:hover { background: var(--hover); }
.ord-chip.on { background: #0A0A0A; color: #fff; border-color: #0A0A0A; }
.ord-chip span { font-size: 11px; opacity: .7; }
.ord-chip.on span { opacity: .85; }
.ord-day {
  display: flex; align-items: baseline; gap: 8px;
  margin: 22px 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
}
.ord-day span { font-size: 12px; letter-spacing: 0; color: var(--muted-2); }
.ord-day.overdue { color: var(--rose-fg); }
.ord-day.done { color: var(--muted); opacity: .8; }

.ord-settime {
  border: 0; background: none; padding: 0; margin-top: 4px;
  font: inherit; font-size: 12px; color: var(--blue); cursor: pointer; text-decoration: underline;
}
.ord-timeform {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: end;
  margin: 10px 0 0; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 10px;
}
.ord-timeform label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.ord-timeform input { font: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.ord-timehint { font-size: 11px; color: var(--muted); }
.ord-timeerr { flex: 1 0 100%; margin: 0; font-size: 12px; color: var(--rose-fg); }

.ord-said { display: block; font-size: 11px; color: var(--muted); font-style: italic; max-width: 22rem; }


/* One thing to change tonight. */
.coach {
  margin: 0 0 16px; padding: 12px 14px;
  border: 1px solid var(--line); border-left: 3px solid var(--blue);
  border-radius: 10px; background: var(--card);
}
.coach.keep-going { border-left-color: var(--mint-fg); }
.coach.never-asked, .coach.stay-on-longer { border-left-color: var(--gold-fg); }
.coach-note { margin: 0; font-size: 13px; }
.coach-facts { margin: 6px 0 0; font-size: 11px; color: var(--muted); }


/* ---------------------------------------------------------------- sign in */
.signin {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: var(--bg, #fafafa);
}
.signin form {
  width: 100%; max-width: 22rem; display: grid; gap: 10px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 28px 26px;
}
.signin h1 { margin: 0; font-size: 20px; letter-spacing: -.01em; }
.signin p { margin: 0; font-size: 13px; color: var(--muted); }
.signin label { font-size: 12px; color: var(--muted); margin-top: 6px; }
.signin input {
  font: inherit; font-size: 15px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--card); color: inherit; width: 100%;
}
.signin input:read-only { color: var(--muted); background: var(--hover); }
.signin #signinCode { letter-spacing: .3em; font-variant-numeric: tabular-nums; }
.signin button {
  margin-top: 10px; font: inherit; font-size: 14px; font-weight: 600;
  padding: 11px 14px; border: 0; border-radius: 9px;
  background: #0A0A0A; color: #fff; cursor: pointer;
}
.signin button:disabled { opacity: .6; cursor: default; }
.signin-msg { margin-top: 10px !important; font-size: 12px; }
.signin-msg.bad { color: var(--rose-fg); }
