/* Sales (our own CRM): only what the shell (crm-shell.css) doesn't have. Ink, light; flat; phone first. */
@font-face { font-family: "Kit Sans"; src: url("fonts/kit-sans.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root { --sh-ui: "Kit Sans", system-ui, sans-serif; --sh-display: "Kit Sans", system-ui, sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--sh-ground); color: var(--sh-ink); font-family: var(--sh-ui); -webkit-font-smoothing: antialiased; overflow-x: clip; }
button { -webkit-appearance: none; appearance: none; font: inherit; color: inherit; }   /* iOS Safari's own button look off */
.sl-boot { margin: 0; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; font: 700 28px/1 var(--sh-display); color: var(--sh-muted); }

/* internal: no signature, no "Made by" (brief §5.6) */
.sh-frame[data-app="sales"] .sh-made, .sh-frame[data-app="sales"] .sh-pfoot { display: none; }
.sh-frame[data-app="sales"] .sh-brand { font-weight: 700; letter-spacing: -0.01em; }

/* the page */
.sl-page { max-width: 100%; }
.sl-page > .ap-msg { margin: 0; }
.sl-box .ap-box__hd h2 { font: 600 13.5px/1.3 var(--sh-ui); }
.sl-box .ap-box__bd { gap: 12px; }
.sl-box .ap-list { margin: 0 -18px -18px; border: 0; border-top: 1px solid var(--sh-line); border-radius: 0 0 var(--sh-radius) var(--sh-radius); }
.sl-box .ap-box__bd > .ap-list:first-child { margin-top: -18px; border-top: 0; }
.sl-box .ap-box__bd > .ap-list:not(:last-child) { margin-bottom: 0; border-bottom: 1px solid var(--sh-line); border-radius: 0; }
.sl-empty { margin: 0; }
.sl-time { display: inline-block; min-width: 44px; font: 600 14px/1 var(--sh-ui); font-variant-numeric: tabular-nums; }
.sl-type, .sl-done { font: 500 12.5px/1 var(--sh-ui); color: var(--sh-muted); white-space: nowrap; }
.sl-done { color: var(--sh-ink); }
.sl-lines { display: grid; gap: 2px; margin-top: 8px; font-size: 14px; color: var(--sh-quiet); }
.sl-lines p { overflow-wrap: anywhere; }
.sl-calm { padding: 22px; border: 1px solid var(--sh-line); border-radius: var(--sh-radius); display: grid; gap: 4px; }
.sl-calm__t { font: 600 17px/1.35 var(--sh-ui); }
.sh-frame .sl-call { gap: 8px; }
.sh-frame .sl-call .sh-i { width: 15px; height: 15px; }

/* the next thing: one card, roomy, Call first */
.sh-frame .sl-page > .sh-card .sh-card__t { font-size: 19px; }
.sh-frame .sl-page > .sh-card .sh-card__f { flex-wrap: wrap; }
@media (max-width: 600px) {
  .sh-frame .sl-page > .sh-card .sh-card__f > :is(.sh-btn, a.sh-btn) { flex: 1 1 auto; height: 44px; }
}

/* the search on a phone (the sidebar has its own) */
.sl-psearch { display: none; }
.sh-frame .sl-psearch .sh-find { margin: 0; height: 44px; }
.sh-frame .sl-psearch .sh-find__l { width: 100%; }
.sh-frame .sl-psearch .sh-find kbd { display: none; }
@media (max-width: 900px) { .sl-psearch { display: block; } }

/* the record: the call sheet and the timeline on the left, who and what next on the right */
.sl-rec { grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); align-items: start; }
.sl-main, .sl-side { display: grid; gap: 20px; min-width: 0; align-content: start; }
/* one column: who, the call sheet, what next, the stage, the timeline (brief 5.6: the pinned call sheet first) */
@media (max-width: 1100px) {
  .sl-rec { grid-template-columns: minmax(0, 1fr); }
  .sl-main, .sl-side { display: contents; }
  .sl-rec [data-k="who"] { order: 1; } .sl-rec [data-k="sheet"] { order: 2; } .sl-rec [data-k="next"] { order: 3; }
  .sl-rec [data-k="stage"] { order: 4; } .sl-rec [data-k="deals"] { order: 5; } .sl-rec [data-k="tl"] { order: 6; }
}
.sl-rich { font-size: 14.5px; line-height: 1.55; overflow-wrap: anywhere; }
.sl-rich :is(ul, ol) { padding-left: 1.2em; list-style: disc; }
.sl-rich ol { list-style: decimal; }
.sl-rich a { text-underline-offset: 3px; }
.sl-pin { padding-top: 12px; border-top: 1px solid var(--sh-line); }
.sl-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; margin: 0; font-size: 14.5px; }
.sl-dl dt { color: var(--sh-muted); }
.sl-dl dd { margin: 0; overflow-wrap: anywhere; }
.sl-dl a { text-underline-offset: 3px; }
.sl-flag { font-size: 14px; font-weight: 600; color: var(--sh-err); }
.sh-frame .sl-box .sh-ctlw { display: block; }

/* the sheets: the note box is the main thing */
.sh-frame .sl-wi { width: min(760px, 100%); margin: 24px auto; }
.sh-frame .sl-note { min-height: 160px; font-size: 16px; line-height: 1.5; }
.sh-frame .sl-wi input[type="text"] { font-size: 16px; }   /* 16 px: iOS doesn't zoom into the field */
.sl-next { display: grid; gap: 14px; min-width: 0; }
.sl-wi .ap-wi__ft { position: sticky; bottom: 0; background: var(--sh-bg); border-top: 1px solid var(--sh-line); border-radius: 0 0 var(--sh-radius) var(--sh-radius); }
@media (max-width: 600px) {
  .sh-frame .sl-wi { margin: 0; border: 0; border-radius: 0; }
  .sh-frame .sl-wi .ap-wi__ft .ap-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .sh-frame .sl-wi .ap-wi__ft .sh-btn { height: 44px; }
}

/* sign in */
.sl-gate { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: var(--sh-ground); }
.sl-gate__in { width: min(380px, 100%); display: grid; gap: 12px; padding: 28px; background: var(--sh-bg); border: 1px solid var(--sh-line); border-radius: var(--sh-radius); }
.sl-gate__brand { margin: 0 0 8px; font: 700 26px/1 var(--sh-display); }
.sl-gate h1 { margin: 0; font: 600 17px/1.3 var(--sh-ui); }
.sl-gate p { margin: 0; font-size: 14.5px; color: var(--sh-muted); }
.sl-gate__b { margin-top: 8px; height: 46px; padding: 0 16px; font-weight: 600; font-size: 15px; color: var(--sh-bg); background: var(--sh-ink); border: 0; border-radius: 8px; cursor: pointer; transition: transform 120ms ease, background-color 150ms ease; }
.sl-gate__b:hover { background: color-mix(in srgb, var(--sh-ink) 86%, var(--sh-bg)); }
.sl-gate__b:active { transform: scale(0.97); }
@media (prefers-reduced-motion: reduce) { .sl-gate__b { transition: none; } }
