/* The app layer on top of theme.css (Claude Design's bm-sleek.css, copied UNCHANGED from docs/design/).
   theme.css draws inside fixed-size mockup frames; this file pins the dock, menu sheet and toast to a real screen
   and adds the few things the mockups don't draw. No inline style="" anywhere (the demo's CSP blocks it). */
html.sk, html.sk body { margin: 0; min-height: 100%; background: var(--bg); }
.sk body { color: var(--ink); }
.sk a.btn, .sk a.chip, .sk a.tile, .sk a.li, .sk a.card, .sk a.rw { text-decoration: none; }
.sk input, .sk select, .sk textarea { color: var(--ink); }
.sk select.fv { appearance: none; cursor: pointer; }
.sk [hidden] { display: none !important; }
.sk .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sk button { cursor: pointer; }
.sk button:disabled { cursor: default; opacity: .6; }

/* ---------- phone shell ---------- */
.sk .phoneshell { max-width: 640px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
.sk .phoneshell .page { padding-bottom: calc(140px + env(safe-area-inset-bottom)); }
.sk .phoneshell .page.nodock { padding-bottom: 40px; }
.sk .phoneacts { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 16px 0; }
.sk .phoneacts .btn { background: var(--surface); flex: 1 1 auto; }
.sk .dock { position: fixed; left: 50%; right: auto; transform: translateX(-50%); width: calc(100% - 32px); max-width: 608px; bottom: calc(22px + env(safe-area-inset-bottom)); }
.sk .dock.two { height: 76px; }
.sk .dock .side, .sk .dock a.pill { text-decoration: none; }
.sk .scrim { position: fixed; z-index: 7; }
.sk .sheet { position: fixed; z-index: 8; left: 50%; right: auto; transform: translateX(-50%); width: calc(100% - 16px); max-width: 624px; bottom: calc(8px + env(safe-area-inset-bottom)); max-height: calc(100dvh - 24px); overflow-y: auto; }
.sk .sheet .circ { background: var(--fill); box-shadow: none; }
.sk .tile .i { width: 24px; height: 24px; }

/* ---------- desk shell ---------- */
.sk .rail { position: sticky; top: 0; align-self: flex-start; min-height: 100vh; }
@media (max-width: 760px) { .sk .rail { position: static; min-height: 0; } }
.sk .nav a .go { width: 16px; height: 16px; color: var(--ink-3); }
.sk .biz .logo, .sk .brand .logo { text-transform: uppercase; }

/* ---------- toast ---------- */
.sk .toast { position: fixed; bottom: calc(132px + env(safe-area-inset-bottom)); opacity: 0; pointer-events: none; transition: opacity .18s; max-width: calc(100% - 32px); white-space: normal; height: auto; min-height: 48px; padding-top: 8px; padding-bottom: 8px; line-height: 1.3; width: max-content; z-index: 9; }
.sk .toast.show { opacity: 1; pointer-events: auto; }
.sk .toast.low { bottom: 28px; }

/* ---------- forms ---------- */
.sk .field input[type=date].fv { min-height: 24px; }
.sk .wordin input, .sk .money input { border: 0; background: transparent; font: inherit; color: inherit; width: 100%; min-width: 0; outline: none; text-align: inherit; padding: 0; }
.sk .money input { text-align: right; width: 64px; }
.sk .li .wordin.edit { padding: 0 12px; }
.sk label.li { cursor: text; }
.sk .li.click { cursor: pointer; }
.sk .addrow { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto auto; gap: 8px; padding: 10px 16px; align-items: center; box-shadow: inset 0 -1px 0 var(--line); }
@media (max-width: 760px) { .sk .addrow { grid-template-columns: 1fr 1fr; } }
.sk .addrow .cell select { border: 0; background: transparent; font: inherit; color: inherit; width: 100%; outline: none; }

/* sign-in code: six boxes drawn from one real input laid over them */
.sk .codewrap { position: relative; }
.sk .codewrap input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; }
.sk .phonein input { border: 0; background: transparent; font: inherit; color: inherit; outline: none; width: 100%; min-width: 0; }
.sk .signin { max-width: 480px; width: 100%; margin: 0 auto; min-height: 100vh; }

/* quote/invoice line editor on a phone: two columns, description across */
@media (max-width: 760px) {
  .sk .line { grid-template-columns: 1fr 1fr 44px; }
  .sk .line .ldesc { grid-column: 1 / -1; }
  .sk .line.head { display: none; }
  .sk .line .cell.unit, .sk .line .cell.price { display: none; }
}
.sk .cell.unit input { text-align: left; }

/* ---------- the assistant ---------- */
.sk .chat { display: flex; flex-direction: column; gap: 10px; }
.sk .msg { max-width: 640px; padding: 12px 16px; border-radius: 20px; font-size: 15.5px; line-height: 1.5; font-weight: 500; }
.sk .msg.me { align-self: flex-end; background: var(--ink); color: var(--bg); border-bottom-right-radius: 6px; }
.sk .msg.ai { align-self: flex-start; background: var(--surface); box-shadow: var(--shadow-card); border-bottom-left-radius: 6px; }
.sk .msg.ai.wait { color: var(--ink-3); }
.sk .done { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.sk .done .i { width: 16px; height: 16px; color: var(--accent-ink); }
.sk .card.proposal { box-shadow: 0 0 0 2px var(--accent), var(--shadow-card); gap: 12px; }
.sk .card.proposal .t1 { font-size: 16.5px; line-height: 1.4; }
.sk .askbar { display: flex; gap: 8px; align-items: center; }
.sk .askbar .field { flex: 1; }

/* ---------- print view ---------- */
.sk .printwrap { padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.sk .letter .doc h1 { color: #0B0D12; }
@media print {
  html.sk, html.sk body { background: #fff; }
  .sk .printwrap { padding: 0; }
  .sk .toast, .sk .demo { display: none !important; }
}
@media (prefers-reduced-motion: reduce) { .sk .toast { transition: none; } }
.sk a.nm, .sk .rw a.nm { text-decoration: none; color: var(--ink); }
.sk .dock .pill { white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.sk .sheet > .spread { flex-wrap: nowrap; align-items: center; }
.sk .sheet .brand { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk .letter .spread.start { flex-wrap: nowrap; align-items: flex-start; margin-top: 22px; align-self: stretch; }
.sk .letter .paynote { max-width: 300px; }
.sk .letter .totals { max-width: 330px; }

/* ---------- alerts (the bell) ---------- */
.sk .toast a { color: inherit; text-decoration: none; }
.sk .bellbtn { position: relative; }
.sk .bellbtn .dot { position: absolute; top: 4px; right: 2px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.sk .alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; box-shadow: inset 0 1px 0 var(--line); text-decoration: none; color: var(--ink); }
.sk .alert:first-child { box-shadow: none; }
.sk .alert .pip { width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.sk .alert.read .pip { background: transparent; }
.sk .alert .nm { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sk .alert .nm b { font-size: 15.5px; font-weight: 650; }
.sk .alert.read .nm b { font-weight: 550; color: var(--ink-2); }
.sk .alert .nm small { font-size: 14px; color: var(--ink-3); font-weight: 500; }
.sk .alert time { font-size: 13px; color: var(--ink-3); font-weight: 500; white-space: nowrap; }
.sk .rulechips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; max-width: 60%; }
@media (max-width: 760px) { .sk .li.rule { flex-direction: column; align-items: flex-start; } .sk .rulechips { max-width: none; justify-content: flex-start; } }
.sk .askbar .mic.sm { flex: none; }
.sk #vpanel { margin-bottom: 4px; }
.sk .listen .stop.link { color: var(--on-dock); text-decoration: none; min-height: 32px; }
.sk .filled span:not(.vmark) { flex: 1; min-width: 0; }
.sk .field select.fv { min-height: 24px; }
.sk .field.voice input[type=date] ~ .vmark { right: 48px; }
.sk .listen .lh { flex-wrap: wrap; }
.sk .listen .stop.link { margin-left: auto; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 650; }

.sk #vpanel .wave i { transition: height .08s linear; height: 3px; }
