/* Maya's call dashboard, in the Inn's look (innatbayfortune.com / avoxify.com/innatbayfortune): cream ground, ink, ember accent,
   Libre Caslon for titles, Jost for everything else. Tokens --accent/--ink/--ground come from brand.css. */
@font-face { font-family: "Jost"; src: url("/assets/Jost-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/assets/Jost-500.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/assets/Jost-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Caslon"; src: url("/assets/LibreCaslonText-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
:root { --line: #e8dfd3; --mute: #7c6d62; --soft: #f4eee5; --card: #fff; --ok: #2f7a4f; --ok-bg: #e5f2ea; --warn-bg: #fbe9df; --warn: #8f2f0b; --amber-bg: #fdf1dc; --amber: #7a4b00; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ground); color: var(--ink); font: 15px/1.5 Jost, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
button, input, select { font: inherit; color: inherit; }
.boot { padding: 40px; color: var(--mute); }
.serif { font-family: Caslon, Georgia, serif; font-weight: 400; }

/* sign-in */
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 34px 30px; width: min(420px, 100%); box-shadow: 0 20px 50px -30px rgba(27,20,16,.35); text-align: center; }
.auth-card img.logo { max-width: 260px; width: 100%; margin: 0 auto 18px; display: block; }
.auth-card h1 { font-family: Caslon, Georgia, serif; font-weight: 400; font-size: 26px; margin: 0 0 6px; }
.auth-card p { color: var(--mute); margin: 0 0 18px; }
.auth-card input { width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; background: #fff; margin-bottom: 12px; }
.auth-card input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

/* buttons, chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--accent); background: var(--accent); color: #fff; font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { filter: brightness(.95); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.block { width: 100%; height: 46px; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 14px; }
.btn:disabled { opacity: .5; cursor: default; }
.chip { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 500; background: var(--soft); color: var(--ink); white-space: nowrap; }
.chip.urgent { background: var(--warn-bg); color: var(--warn); }
.chip.allergy { background: var(--amber-bg); color: var(--amber); }
.chip.new { background: #fff; border: 1px solid var(--accent); color: var(--accent); }
.chip.called_back { background: var(--amber-bg); color: var(--amber); }
.chip.done { background: var(--ok-bg); color: var(--ok); }

/* shell */
.top { display: flex; align-items: center; gap: 16px; padding: 12px 24px; border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 5; }
.top img.logo { height: 34px; }
.top .title { font-family: Caslon, Georgia, serif; font-size: 18px; color: var(--mute); padding-left: 16px; border-left: 1px solid var(--line); }
.top .grow { flex: 1; }
.top .who { color: var(--mute); font-size: 14px; }
.main { max-width: 1280px; margin: 0 auto; padding: 18px 24px 60px; }
.tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.seg { display: inline-flex; background: var(--soft); border-radius: 99px; padding: 3px; }
.seg button { border: 0; background: transparent; border-radius: 99px; padding: 6px 14px; cursor: pointer; color: var(--mute); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.tools input, .tools select { height: 38px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: #fff; }
.tools input[type=search] { min-width: 220px; flex: 1; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 18px; align-items: start; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.list .rowx { display: block; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); padding: 14px 16px; cursor: pointer; }
.list .rowx:first-child { border-top: 0; }
.list .rowx:hover { background: #fffdf9; }
.list .rowx.on { background: var(--soft); }
.rowx .l1 { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rowx .name { font-weight: 600; }
.rowx .when { color: var(--mute); font-size: 13px; margin-left: auto; }
.rowx .sum { color: var(--mute); font-size: 14px; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.empty { padding: 34px 20px; text-align: center; color: var(--mute); }
.detail { padding: 20px 22px; position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow: auto; }
.detail h2 { font-family: Caslon, Georgia, serif; font-weight: 400; font-size: 26px; margin: 0; }
.detail .meta { color: var(--mute); font-size: 14px; margin: 4px 0 12px; }
.detail h3 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); font-weight: 600; margin: 20px 0 8px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 14px; }
.kv dt { color: var(--mute); } .kv dd { margin: 0; }
.status { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.status .by { color: var(--mute); font-size: 13px; }
audio { width: 100%; margin-top: 4px; }
.tx { display: flex; flex-direction: column; gap: 8px; }
.tx .b { max-width: 88%; padding: 8px 12px; border-radius: 12px; font-size: 14px; }
.tx .maya { background: var(--soft); align-self: flex-start; }
.tx .guest { background: #fff; border: 1px solid var(--line); align-self: flex-end; }
.tx .who { font-size: 11px; color: var(--mute); display: block; }
.links { display: flex; gap: 14px; font-size: 14px; margin-top: 10px; flex-wrap: wrap; }
.back { display: none; }
.foot { text-align: center; color: var(--mute); font-size: 12px; padding: 30px 0; display: flex; align-items: center; justify-content: center; gap: 8px; }
.foot img { height: 18px; }
.note { background: var(--soft); border-radius: 10px; padding: 10px 12px; font-size: 14px; color: var(--mute); }

@media (max-width: 900px) {
  .top { padding: 10px 14px; } .top .title, .top .who { display: none; } .top img.logo { height: 28px; }
  .main { padding: 14px 12px 60px; }
  .split { grid-template-columns: 1fr; }
  .split.has-detail .list { display: none; }
  .split:not(.has-detail) .detail { display: none; }
  .detail { position: static; max-height: none; }
  .back { display: inline-flex; margin-bottom: 10px; }
  .tools input[type=search] { min-width: 0; width: 100%; flex-basis: 100%; }
}
