/* App layer on top of theme.css (Claude Design's "Sleek" stylesheet, copied unchanged from design/app-sleek.css).
   theme.css draws inside fixed-size mockup phones (position: absolute); this file pins the dock, sheets and toast
   to a real phone screen, adds the few classes the mockups styled inline, real form inputs, motion and print. */

@font-face { font-family: "Geist"; src: url("/fonts/geist-latin-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

html.sk { -webkit-text-size-adjust: 100%; min-height: 100%; }
html.sk body { margin: 0; background: var(--bg); color: var(--ink); min-height: 100vh; min-height: 100dvh; }
#app { max-width: 640px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding-top: env(safe-area-inset-top); }
.sk .loading { padding: 80px 16px; text-align: center; color: var(--ink-3); }
.sk a { color: inherit; }
.sk .hidden { display: none !important; }
.sk .page { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
.sk .page.nodock { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }

/* Fixed to the phone, centred on wide screens */
.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 { grid-template-columns: minmax(0,1fr) minmax(0,1fr); height: 76px; }
.sk .dock .side { text-decoration: none; }
.sk .dock .side.dim { pointer-events: none; }
.sk .dock a.pill { text-decoration: none; }
.sk .dock .pill.off { pointer-events: none; }
.sk .scrim { position: fixed; z-index: 4; }
.sk .sheet { position: fixed; 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 .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; }
.sk .toast.show { opacity: 1; pointer-events: auto; }
.sk .toast.low { bottom: calc(24px + env(safe-area-inset-bottom)); }
.sk .toast .act { border: 0; background: none; color: inherit; font: inherit; cursor: pointer; padding: 8px 0 8px 6px; }
.sk .viewer { position: fixed; padding-top: env(safe-area-inset-top); }
.sk .viewer .vt b { font-size: 15px; font-weight: 600; }
.sk .viewer .vimg { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.sk .viewer .vimg img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sk .viewer .vb { padding: 16px 16px calc(28px + env(safe-area-inset-bottom)); display: flex; justify-content: center; }
.sk .viewer .vb .btn { background: rgba(255,255,255,.12); color: #fff; }
.sk .viewer .vb .btn.confirm { background: #E5484D; }

/* Header bits the mockups drew inline */
.sk .top .circ { text-decoration: none; }
.sk .top .textact { text-decoration: none; display: inline-flex; align-items: center; cursor: pointer; }
.sk .top:empty { min-height: 40px; }
.sk .mk { width: 28px; height: 28px; display: block; flex: none; }
.sk .mk.big { width: 52px; height: 52px; }
.sk .qa { display: flex; gap: 8px; padding: 14px 16px 0; }
.sk .qa .btn { flex: 1; background: var(--surface); text-decoration: none; }

/* Real inputs inside the design's filled fields */
.sk .field { cursor: text; }
.sk .field input.fv, .sk .field textarea.fv { display: block; width: 100%; border: 0; padding: 0; margin: 0; background: transparent; font-family: inherit; letter-spacing: inherit; outline: none; color: var(--ink); -webkit-appearance: none; appearance: none; }
.sk .field textarea.fv { resize: none; min-height: 52px; }
.sk .field input.fv::placeholder, .sk .field textarea.fv::placeholder { color: var(--ink-3); font-weight: 400; opacity: 1; }
.sk .field:focus-within { box-shadow: 0 0 0 2px var(--ink); z-index: 1; }
.sk .group .field:focus-within { box-shadow: inset 0 0 0 2px var(--ink); }
.sk .field.voice { padding-right: 46px; }
.sk .field input.fv:disabled, .sk .field textarea.fv:disabled { -webkit-text-fill-color: var(--ink); opacity: 1; }
.sk .money input { width: 5.5ch; border: 0; background: transparent; text-align: right; font: inherit; color: inherit; padding: 0; outline: none; }
.sk .money input::placeholder { color: var(--warn); font-weight: 600; font-size: 14px; opacity: 1; }
.sk .money:focus-within { box-shadow: 0 0 0 2px var(--ink); }
.sk .money.plain input::placeholder { color: var(--ink-3); }
.sk .money button { border: 0; background: none; font: inherit; color: inherit; padding: 0; cursor: pointer; }
.sk .stepper input { width: 48px; border: 0; background: transparent; text-align: center; font-family: inherit; font-size: 20px; font-weight: 650; color: var(--ink); padding: 0; outline: none; }
.sk .stepper button:disabled { color: var(--ink-3); }
.sk .phonein input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--ink); letter-spacing: inherit; outline: none; padding: 0; }
.sk .phonein:focus-within { box-shadow: 0 0 0 2px var(--ink); }
.sk .code { position: relative; }
.sk .code input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; font-size: 16px; color: transparent; caret-color: transparent; }
.sk .st { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.sk .signin .empty-ico { width: 64px; height: 64px; border-radius: 20px; background: var(--surface); display: flex; align-items: center; justify-content: center; color: var(--accent); }
.sk .signin .back { margin: -48px 0 0 -8px; align-self: flex-start; }
.sk .signin .phonein .cc { padding-right: 12px; border-right: 1.5px solid var(--line); }

/* Piece form blocks and bits */
.sk .blk { background: var(--surface); border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.sk .blk .q { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.sk .gs { font-size: 14px; color: var(--ink-3); font-weight: 500; padding: 0 4px; display: flex; align-items: center; gap: 8px; }
.sk .gs .sz { font-size: 18px; color: var(--ink); }
.sk .li.sw-row { cursor: pointer; border: 0; background: transparent; width: 100%; font: inherit; color: inherit; text-align: left; }
.sk .li .k b { font-weight: 600; }
.sk .addrow { display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 0 16px; font-size: 15px; font-weight: 600; color: var(--ink); border: 0; background: transparent; width: 100%; cursor: pointer; font-family: inherit; }
.sk .xbtn { width: 48px; height: 48px; border: 0; background: transparent; color: var(--ink-3); display: flex; align-items: center; justify-content: center; border-radius: 12px; cursor: pointer; flex: none; }
.sk .tiny { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.sk .tiny > span, .sk .tiny > button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 999px; background: var(--fill); font-size: 13px; font-weight: 600; color: var(--ink); border: 0; font-family: inherit; }
.sk .tiny i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.sk .tiny .rm { border: 0; background: none; color: var(--ink-3); padding: 0; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.sk .li input.name { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--ink); outline: none; padding: 0; }
.sk .li input.name:focus { text-decoration: underline; text-underline-offset: 4px; }
.sk .card .chev { position: absolute; right: 14px; top: 50%; margin-top: -11px; }
.sk .srow { display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 0 6px; border: 0; background: transparent; width: 100%; font-family: inherit; text-align: left; color: var(--ink); font-size: 16.5px; font-weight: 600; text-decoration: none; cursor: pointer; }
.sk .srow .ic { width: 44px; height: 44px; border-radius: 14px; background: var(--fill); display: flex; align-items: center; justify-content: center; flex: none; }
.sk .srow small { display: block; font-size: 13.5px; color: var(--ink-3); font-weight: 500; margin-top: 2px; }
.sk .sh-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 0 6px; }
.sk .sh-head h2 { margin: 0; font-size: 19px; font-weight: 650; letter-spacing: -0.02em; }
.sk .sheet .circ { background: var(--fill); box-shadow: none; }
.sk .say-hint { font-size: 14px; color: var(--ink-3); margin: 0; text-align: center; }

/* Inline voice panel */
.sk .listen textarea.said { width: 100%; min-height: 96px; border: 0; border-radius: 14px; background: rgba(255,255,255,.08); color: var(--on-dock); padding: 12px; font: inherit; font-size: 17px; line-height: 1.45; resize: none; outline: none; }
.sk.dark .listen textarea.said { background: var(--fill); }
.sk .listen .said:empty::before { content: "Start talking…"; color: var(--on-dock-2); }
.sk .listen .lh button.stop { border: 0; background: none; cursor: pointer; font-family: inherit; padding: 6px 0; }
.sk .listen .btn.primary { background: var(--accent); color: #0B0D12; }
.sk .listen .note { margin: 0; }
.sk .wave i { height: 8px; animation: wave .9s ease-in-out infinite alternate; }
.sk .wave i:nth-child(3n) { animation-duration: .7s; } .sk .wave i:nth-child(4n+1) { animation-duration: 1.1s; } .sk .wave i:nth-child(5n) { animation-delay: -.4s; }
@keyframes wave { from { height: 6px; } to { height: 26px; } }
.sk .mic.on { animation: breathe 1.4s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 0 9px var(--accent); } }
.sk .mic.blocked { background: var(--surface); color: var(--ink-3); }
.sk .spin { display: inline-block; animation: spin .8s linear infinite; flex: none; }
.sk .listen .spin, .sk .st .spin { border-color: rgba(255,255,255,.25); border-top-color: var(--accent); }
.sk:not(.dark) .st .spin { border-color: rgba(11,13,18,.15); border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }
.sk .card.forming .badge.acc { margin-left: auto; }
.sk .review .rp .note { margin-top: 8px; padding: 12px 14px; }
.sk .review > .note { margin: 0 0 6px; }
.sk .dimmed { opacity: .55; pointer-events: none; }

/* Demo banner */
.sk .demo-banner { display: flex; align-items: center; gap: 10px; padding: calc(8px + env(safe-area-inset-top)) 16px 8px; background: var(--accent-soft); color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.35; }
.sk .demo-banner .link { margin-left: auto; min-height: 40px; font-size: 14px; flex: none; }
#banner:not(:empty) + #app { padding-top: 0; }

@media (prefers-reduced-motion: reduce) {
  .sk .mic.on, .sk .wave i, .sk .spin { animation: none !important; }
  .sk .toast { transition: none; }
}

/* PDF / print: the paper only, black on white, US Letter */
@page { size: letter; margin: 0.6in; }
@media print {
  html.sk, html.sk.dark { --bg: #fff; --surface: #fff; --ink: #0B0D12; --ink-2: #3B3F47; --ink-3: #5F646D; background: #fff !important; }
  html.sk body { background: #fff !important; }
  #banner, .sk .top, .sk .title, .sk .subtitle, .sk .dock, .sk .noprint, .sk .toast, .sk .sheet, .sk .scrim { display: none !important; }
  .sk .page { padding: 0 !important; }
  #app { max-width: none; padding: 0; }
  .sk .paper { box-shadow: none; border-radius: 0; padding: 0; font-size: 12pt; }
  .sk .paper::before { content: ""; display: block; width: 56px; height: 4px; background: #FFC933; margin-bottom: 18px; }
  .sk .paper .qt { font-size: 40px; }
  .sk .qtot span { font-size: 36px; }
  .sk .ql { break-inside: avoid; }
}
.sk .seg.sm { padding: 3px; border-radius: 14px; }
.sk .seg.sm button { min-height: 36px; font-size: 13px; padding: 0 10px; border-radius: 11px; }
.sk .label .link { font-size: 14px; }
.sk .toast { width: max-content; }

/* Recording for AI transcription: the meter follows the real sound level, so no fake animation */
.sk .wave.level i { animation: none; height: 4px; transition: height .08s linear; }
