:root{color:#172033;font-synthesis:none;text-rendering:optimizelegibility;background:#eef3f7;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{min-width:320px;margin:0}button,textarea{font:inherit}button{cursor:pointer;border:0}button:disabled{cursor:not-allowed;opacity:.55}.app-shell{min-height:100vh;padding:24px}.workspace{grid-template-columns:minmax(0,1.55fr) minmax(320px,.85fr);align-items:start;gap:18px;max-width:1280px;margin:0 auto;display:grid}.camera-panel,.insight-panel,.records-panel{min-width:0}.topbar,.records-header{justify-content:space-between;align-items:center;gap:16px;margin-bottom:14px;display:flex}.eyebrow{color:#587085;margin:0 0 4px;font-size:.86rem;font-weight:700}h1,h2{color:#101827;letter-spacing:0;margin:0;line-height:1.1}h1{font-size:clamp(2rem,4vw,3.1rem)}h2{font-size:1.45rem}.privacy-badge,.status,.privacy-note{align-items:center;gap:8px;display:inline-flex}.privacy-badge{white-space:nowrap;color:#29445c;background:#fff;border:1px solid #cbd8e4;border-radius:8px;padding:9px 12px;font-size:.9rem;font-weight:800}.stage{aspect-ratio:16/10;background:linear-gradient(135deg,#ffffff14,#0000 38%),#14202b;border:1px solid #c7d4df;border-radius:8px;width:100%;position:relative;overflow:hidden;box-shadow:0 20px 50px #1b2a3b2e}.stage video,.stage canvas{width:100%;height:100%;position:absolute;inset:0}.stage video{object-fit:cover;opacity:0;transform:scaleX(-1)}.stage video.visible{opacity:1}.stage canvas{pointer-events:none;transform:scaleX(-1)}.empty-camera{color:#d7e5ef;text-align:center;place-content:center;gap:12px;font-weight:800;display:grid;position:absolute;inset:0}.mobile-camera-button{display:none}.controls{grid-template-columns:auto 44px minmax(0,1fr);align-items:center;gap:10px;margin-top:12px;display:grid}.mobile-quick-save{display:none}.primary-button,.save-button,.utility-button,.icon-button{border-radius:8px;justify-content:center;align-items:center;gap:8px;min-height:44px;font-weight:800;display:inline-flex}.primary-button,.save-button{color:#fff;background:#155e75;padding:0 16px}.save-button{background:#dc2626}.save-button:hover{background:#b91c1c}.utility-button,.icon-button{color:#203248;background:#fff;border:1px solid #cbd8e4}.utility-button{padding:0 13px}.icon-button{width:44px}.icon-button.subtle{color:#7f1d1d;background:#fff7f7;width:38px;min-height:38px}.status{color:#3d5268;background:#fff;border:1px solid #cbd8e4;border-radius:8px;min-width:0;min-height:44px;padding:0 12px;font-size:.92rem;font-weight:700}.status.running{color:#166534}.status.error{color:#b91c1c}.insight-panel{gap:14px;display:grid}.result-card,.checkin-card,.records-panel{background:#fff;border:1px solid #cbd8e4;border-radius:8px;padding:18px;box-shadow:0 12px 36px #23364b1a}.section-title{color:#29445c;align-items:center;gap:8px;margin-bottom:14px;font-weight:900;display:flex}.emotion-meter{grid-template-columns:92px 1fr;align-items:center;gap:14px;display:grid}.meter-ring{color:#111827;background:radial-gradient(circle at center, #fff 0 57%, transparent 58%), conic-gradient(var(--accent) 0 75%, #e3ebf2 0 100%);border:1px solid #d4dee8;border-radius:50%;place-items:center;width:86px;height:86px;font-weight:900;display:grid}.result-label{color:var(--accent);margin:0 0 8px;font-size:1.8rem;font-weight:950}.result-copy{color:#587085;margin:0;line-height:1.5}.detail-candidates{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:16px;display:grid}.detail-candidates button{color:#26394f;background:#f8fbfd;border:1px solid #d5e0ea;border-radius:8px;min-height:38px;font-size:.92rem;font-weight:850}.detail-candidates button.active{border-color:var(--emotion);box-shadow:inset 0 0 0 2px var(--emotion);background:#fff}.bars{gap:10px;margin-top:18px;display:grid}.bar-row{color:#40566d;grid-template-columns:80px 1fr;align-items:center;gap:10px;font-size:.9rem;font-weight:800;display:grid}.bar-track{background:#e5edf4;border-radius:999px;height:10px;overflow:hidden}.bar-track div{border-radius:inherit;background:#155e75;height:100%}.emotion-grid{grid-template-columns:repeat(auto-fit,minmax(72px,1fr));gap:7px;max-height:210px;padding-right:2px;display:grid;overflow:auto}.emotion-grid button,.emotion-suggestions button{color:#26394f;background:#f8fbfd;border:1px solid #d5e0ea;border-radius:8px;min-height:38px;font-size:.92rem;font-weight:850}.emotion-grid button.selected,.emotion-suggestions button.selected{border-color:var(--emotion);box-shadow:inset 0 0 0 2px var(--emotion);color:#111827;background:#fff}.selected-emotion-panel{border:1px solid #d5e0ea;border-left:6px solid var(--emotion);background:#f8fbfd;border-radius:8px;justify-content:space-between;align-items:center;gap:12px;padding:12px;display:flex}.selected-emotion-panel span{color:#6b7f91;font-size:.82rem;font-weight:800;display:block}.selected-emotion-panel strong{color:#172033;margin-top:3px;font-size:1.24rem;line-height:1.2;display:block}.change-emotion-button,.show-all-button{color:#203248;white-space:nowrap;background:#fff;border:1px solid #cbd8e4;border-radius:8px;min-height:38px;padding:0 12px;font-weight:850}.emotion-picker{gap:9px;margin-top:10px;display:grid}.emotion-picker p{color:#40566d;margin:0;font-size:.88rem;font-weight:900}.emotion-suggestions{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;display:grid}.show-all-button{justify-self:stretch}textarea{resize:vertical;color:#172033;border:1px solid #cbd8e4;border-radius:8px;outline:none;width:100%;margin:12px 0;padding:11px 12px}textarea:focus{border-color:#155e75;box-shadow:0 0 0 3px #155e7529}.capture-toggle{color:#26394f;cursor:pointer;background:#f8fbfd;border:1px solid #cbd8e4;border-radius:8px;align-items:center;gap:10px;margin:0 0 12px;padding:10px 12px;font-size:.94rem;font-weight:850;line-height:1.35;display:flex}.capture-toggle input{opacity:0;pointer-events:none;position:absolute}.toggle-switch{background:#94a3b8;border-radius:999px;flex:none;width:48px;height:28px;transition:background .16s;position:relative}.toggle-switch span{background:#fff;border-radius:50%;width:20px;height:20px;transition:transform .16s;position:absolute;top:4px;left:4px;box-shadow:0 2px 7px #0f172a47}.capture-toggle input:checked+.toggle-switch{background:#155e75}.capture-toggle input:checked+.toggle-switch span{transform:translate(20px)}.capture-toggle input:focus-visible+.toggle-switch{outline-offset:2px;outline:3px solid #155e7547}.toggle-copy{color:#26394f}.save-button{width:100%}.records-panel{max-width:1280px;margin:18px auto 0}.privacy-note{color:#25566a;background:#edf8fc;border:1px solid #bfd9e6;border-radius:8px;width:100%;margin-bottom:12px;padding:10px 12px;font-size:.93rem;font-weight:750;line-height:1.45}.records-list{gap:10px;display:grid}.record-item{background:#fbfdff;border:1px solid #d7e2eb;border-radius:8px;grid-template-columns:150px 1fr auto;align-items:start;gap:12px;padding:12px;display:grid}.record-photo-button{background:#fff;border:0;border-radius:8px;width:150px;height:120px;padding:0}.record-photo-button:focus-visible{outline-offset:2px;outline:3px solid #155e7552}.record-photo{object-fit:contain;background:#fff;border:1px solid #d7e2eb;border-radius:8px;width:150px;height:120px;display:block}.record-photo.placeholder{color:#6b7f91;place-items:center;display:grid}.record-item time{color:#6b7f91;font-size:.83rem;font-weight:750;display:block}.record-item strong{color:#172033;margin:4px 0;font-size:1.06rem;display:block}.record-item p{color:#587085;margin:0}.record-item .note{color:#26394f;margin-top:8px;line-height:1.5}.empty-records{color:#6b7f91;text-align:center;place-items:center;gap:8px;min-height:120px;font-weight:800;display:grid}.preview-backdrop{z-index:20;background:#0f172ab8;place-items:center;padding:18px;display:grid;position:fixed;inset:0}.preview-dialog{background:#fff;border:1px solid #cbd8e4;border-radius:8px;gap:12px;width:min(760px,100%);max-height:min(92vh,860px);padding:12px;display:grid;box-shadow:0 24px 80px #00000052}.preview-toolbar{justify-content:space-between;align-items:center;gap:12px;display:flex}.preview-toolbar time{color:#6b7f91;font-size:.85rem;font-weight:800;display:block}.preview-toolbar strong{color:#172033;margin-top:3px;font-size:1.08rem;display:block}.preview-actions{gap:8px;display:flex}.preview-image{object-fit:contain;background:#f8fbff;border:1px solid #d7e2eb;border-radius:8px;width:100%;max-height:calc(92vh - 104px)}@media (width<=900px){.app-shell{padding:14px}.workspace{grid-template-columns:1fr}.controls{grid-template-columns:44px 1fr}.controls .primary-button{display:none}.mobile-camera-button{z-index:3;color:#fff;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#0f172abd;border:1px solid #ffffff6b;border-radius:8px;justify-content:center;align-items:center;gap:8px;min-height:42px;padding:0 13px;font-weight:900;display:inline-flex;position:absolute;top:10px;left:10px;box-shadow:0 8px 24px #0000003d}.status{grid-column:1/-1}.mobile-quick-save{z-index:4;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#fffffff0;border:1px solid #cbd8e4;border-radius:8px;grid-template-columns:minmax(76px,auto) 1fr;align-items:center;gap:10px;margin-top:10px;padding:10px;display:grid;position:sticky;bottom:10px;box-shadow:0 10px 28px #23364b29}.mobile-quick-save span{color:#172033;text-overflow:ellipsis;white-space:nowrap;font-weight:950;overflow:hidden}}@media (width<=560px){.topbar,.records-header{flex-direction:column;align-items:flex-start}.stage{aspect-ratio:4/5}.emotion-meter{grid-template-columns:1fr}.detail-candidates,.emotion-suggestions,.emotion-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.record-item{grid-template-columns:112px 1fr auto}.record-photo,.record-photo-button{width:112px;height:112px}.preview-backdrop{padding:10px}.preview-toolbar{align-items:flex-start}.preview-actions .utility-button{min-width:74px}}
