:root{font-family:Segoe UI,Helvetica Neue,Arial,sans-serif;color:#1f2937;background:radial-gradient(circle at top left,rgba(255,227,179,.72),transparent 30%),linear-gradient(180deg,#fffdf8,#f8f4ea 46%,#f5efe2);line-height:1.5;font-weight:400;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--surface: rgba(255, 255, 255, .88);--surface-strong: #ffffff;--surface-muted: #f7f1e4;--border: rgba(110, 92, 66, .14);--shadow: 0 22px 48px rgba(97, 74, 33, .12);--text-main: #1f2937;--text-soft: #5c6473;--brand: #c97b18;--brand-strong: #9e5604;--brand-soft: #fff0d8;--success-bg: #e8f7ea;--success-text: #1f6b3a;--error-bg: #fff0ec;--error-text: #b4492f}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;color:var(--text-main)}button,input,textarea{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid rgba(201,123,24,.35);outline-offset:2px}#root{min-height:100vh}.app-shell{width:min(1180px,calc(100% - 32px));margin:0 auto;padding:24px 0 48px}.topbar,.hero-section,.result-card,.history-page{background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.topbar{border-radius:24px;padding:16px 20px;display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.topbar-actions{display:flex;align-items:center;gap:12px}.topbar-title{margin:4px 0 0;font-size:1.2rem}.view-switcher{display:inline-flex;gap:8px;padding:6px;background:#f3ecde;border-radius:16px}.view-button,.tab,.primary-button,.secondary-button,.ghost-button{border:none;border-radius:14px;transition:transform .14s ease,background .14s ease,opacity .14s ease,box-shadow .14s ease}.view-button,.tab{padding:12px 16px;background:transparent;color:var(--text-soft);font-weight:600}.view-button.active,.tab.active{background:#fff;color:var(--text-main);box-shadow:0 8px 18px #6e5c421f}.hero-section{border-radius:32px;padding:28px;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);gap:28px;margin-bottom:24px}.hero-copy-panel{padding:8px 4px}.eyebrow,.section-kicker,.meta-label{text-transform:uppercase;letter-spacing:.14em;font-size:.74rem;color:var(--brand-strong);margin:0 0 10px}.hero-copy-panel h1,.result-card h2,.history-title{margin:0;line-height:.98}.hero-copy-panel h1,.history-title{max-width:11ch;font-size:clamp(2.4rem,5vw,4.6rem)}.hero-copy{margin:20px 0 0;max-width:58ch;color:var(--text-soft);font-size:1.04rem}.hero-meta{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}.status-chip,.meta-chip{border-radius:999px;padding:10px 14px;font-size:.92rem;font-weight:700}.status-chip.ready{background:var(--success-bg);color:var(--success-text)}.status-chip.offline{background:var(--error-bg);color:var(--error-text)}.meta-chip{background:var(--brand-soft);color:var(--brand-strong)}.composer-card{background:var(--surface-strong);border:1px solid rgba(110,92,66,.12);border-radius:26px;padding:22px;display:grid;gap:16px}.tabs{display:inline-flex;gap:8px;padding:6px;background:#f3ecde;border-radius:16px}.record-box,.upload-dropzone,.selected-file,.metric-card,.history-summary-card,.history-item,.history-mini-card{border:1px solid rgba(110,92,66,.12);background:#fffdf9;border-radius:18px}.record-box,.selected-file{display:flex;justify-content:space-between;gap:16px;padding:16px 18px}.record-box strong,.selected-file strong,.metric-card strong,.history-summary-card strong,.history-mini-card strong{display:block;margin-top:4px}.upload-dropzone{position:relative;display:grid;gap:6px;padding:22px}.upload-dropzone input{position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;cursor:pointer}.upload-dropzone span{font-size:1.04rem;font-weight:700}.upload-dropzone small,.selected-file span,.history-item p,.history-summary-card small{color:var(--text-soft)}.button-row{display:flex;align-items:center;gap:12px}.compact{justify-content:flex-end;flex-wrap:wrap}.primary-button,.secondary-button,.ghost-button{padding:13px 18px}.primary-button{background:linear-gradient(135deg,#e29d36,#c97b18);color:#fffdf8;font-weight:800;box-shadow:0 14px 28px #c97b1838}.secondary-button{background:#f5efe3;color:var(--text-main);font-weight:700}.ghost-button{background:transparent;color:var(--text-soft);border:1px solid rgba(110,92,66,.14)}.primary-button:hover,.secondary-button:hover,.ghost-button:hover,.tab:hover,.view-button:hover{transform:translateY(-1px)}.primary-button:disabled,.secondary-button:disabled,.ghost-button:disabled,.tab:disabled,.view-button:disabled{cursor:not-allowed;opacity:.55;transform:none;box-shadow:none}.audio-preview,.full-width{width:100%}.message{margin:0;padding:13px 14px;border-radius:14px;font-weight:600}.message.error{background:var(--error-bg);color:var(--error-text)}.result-card,.history-page{border-radius:28px;padding:24px}.result-header,.history-hero{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:18px}.field{display:grid;gap:8px}.field span{font-weight:700}.field input,.field textarea{width:100%;border-radius:16px;border:1px solid rgba(110,92,66,.14);background:#fffdf9;color:var(--text-main);padding:14px 16px}.field textarea{min-height:280px;resize:vertical}.metrics-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:18px}.metric-card{padding:16px}.metric-card span,.history-summary-card span,.history-mini-card span{color:var(--text-soft);font-size:.92rem}.metric-card strong,.history-summary-card strong{font-size:1.08rem}.metric-card.accent,.history-summary-card{background:var(--brand-soft);border-color:#c97b1833}.history-summary-card{min-width:240px;padding:18px}.login-shell{min-height:calc(100vh - 80px);display:grid;place-items:center}.login-card{width:min(520px,100%);background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);border-radius:28px;padding:28px;display:grid;gap:16px}.history-filters{display:grid;grid-template-columns:minmax(220px,1.3fr) repeat(2,minmax(170px,.8fr)) auto;gap:14px;margin-bottom:18px}.align-end{align-self:end}.history-list{display:grid;gap:14px}.history-empty{padding:24px;border:1px dashed rgba(110,92,66,.24);border-radius:18px;color:var(--text-soft);background:#ffffff73}.history-item{padding:18px}.history-item-header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:14px}.history-item-header h3{margin:0 0 6px}.history-item-header p{margin:0}.history-item-meta{text-align:right}.history-item-meta span{display:block;color:var(--text-soft);margin-bottom:6px}.history-badges{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:8px}.badge{display:inline-flex;align-items:center;border-radius:999px;padding:6px 10px;background:var(--brand-soft);color:var(--brand-strong);font-size:.82rem;font-weight:700}.badge.muted{background:#f5efe3;color:var(--text-soft)}.history-item-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:14px}.history-mini-card{padding:14px}.history-transcript{margin:0;white-space:pre-wrap;line-height:1.6}.history-block{display:grid;gap:8px;margin-top:12px}.history-block span{font-size:.9rem;font-weight:700;color:var(--text-soft)}.small-button{margin-top:10px;padding:10px 12px}.pagination,.stack{display:grid;gap:16px}.pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:18px}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#1f29377a;display:grid;place-items:center;padding:20px}.modal-card{width:min(1180px,100%);max-height:calc(100vh - 40px);overflow:auto;background:var(--surface-strong);border:1px solid var(--border);box-shadow:0 30px 70px #1f29372e;border-radius:28px;padding:24px}.modal-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,.95fr);gap:18px}.modal-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}@media(max-width:980px){.hero-section,.history-filters,.modal-grid{grid-template-columns:1fr}.hero-copy-panel h1,.history-title{max-width:14ch}.metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.history-item-grid{grid-template-columns:1fr}}@media(max-width:640px){.app-shell{width:min(100%,calc(100% - 20px));padding:16px 0 28px}.topbar,.hero-section,.result-card,.history-page{padding:18px;border-radius:24px}.topbar,.result-header,.history-hero,.topbar-actions,.button-row,.record-box,.selected-file,.history-item-header,.pagination{flex-direction:column;align-items:flex-start}.hero-copy-panel h1,.history-title{font-size:2.5rem}.metrics-grid{grid-template-columns:1fr}}
