:root{--font-ui: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;--line-height: 1.5;--surface-page: #f6f8fb;--surface-card: #ffffff;--surface-subtle: #f3f5f8;--surface-warning: #fff7e6;--surface-overlay: rgba(15, 23, 42, .45);--text-primary: #15202b;--text-muted: #425466;--text-warning: #5a3b00;--border-default: #cfd8e3;--border-strong: #9bb0c8;--border-success: #1b8f52;--border-danger: #b42318;--border-warning: #b36b00;--shadow-splash: rgba(15, 23, 42, .2);--splash-surface: #f7f9fc;--splash-border: #ccd7e6;--splash-heading: #1b2738;--splash-body: #27384d;--splash-muted: #4d617b;--splash-warning: #9a5e00;--radius-sm: 8px;--radius-md: 10px;--radius-lg: 14px;--space-1: 4px;--space-2: 8px;--space-3: 12px;--space-4: 16px;--space-5: 24px}*,*:before,*:after{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;font-family:var(--font-ui);line-height:var(--line-height);color:var(--text-primary);background:var(--surface-page)}h1{margin:0;font-size:2rem;line-height:1.2}.app-frame{min-height:100vh;display:flex;flex-direction:column}body.theme-dark{--surface-page: #0f172a;--surface-card: #111827;--surface-subtle: #1f2937;--surface-overlay: rgba(2, 6, 23, .75);--text-primary: #e5e7eb;--text-muted: #b8c6dd;--border-default: #334155;--border-strong: #5c6f90;--shadow-splash: rgba(2, 6, 23, .45);--splash-surface: #1a2436;--splash-border: #3a4c6f;--splash-heading: #eef4ff;--splash-body: #dce6f8;--splash-muted: #adbdd8;--splash-warning: #f4bf4f}.app-header{border-bottom:1px solid var(--border-default);background:var(--surface-card)}.app-header-inner{display:flex;align-items:center;flex-wrap:wrap;gap:var(--space-2)}.topbar-brand{font-size:1rem;font-weight:700;padding:6px 8px;margin-right:var(--space-3)}.topbar-field{display:inline-flex;align-items:center;gap:var(--space-2)}.topbar-field-label{font-size:.9rem;font-weight:600}.topbar-select{border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface-card);color:var(--text-primary);padding:6px 10px}.topbar-metric{font-size:.9rem;color:var(--text-muted);padding:0 6px}.topbar-btn{padding:6px 10px;display:inline-flex;align-items:center;gap:6px}.topbar-icon{display:block;width:18px;height:18px}.app-main{flex:1}.app-footer{border-top:1px solid var(--border-default);background:var(--surface-card)}.app-footer-inner{color:var(--text-muted);font-size:.9rem;text-align:center}.app-footer-inner p{margin:0}.app-footer-inner p+p{margin-top:var(--space-1)}.app-shell{max-width:1100px;margin:0 auto;padding:var(--space-4)}.status-box{margin-top:var(--space-3);padding:var(--space-3) 14px;border:1px solid var(--border-default);border-radius:var(--radius-md);background:var(--surface-card)}.status-box.success{border-color:var(--border-success)}.status-box.error{border-color:var(--border-danger)}.deck-row{margin-top:var(--space-3);display:flex;align-items:center;gap:var(--space-2)}.deck-label{font-weight:600}.deck-select{border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface-card);padding:6px 10px;color:var(--text-primary)}.control-row{margin-top:var(--space-4);display:flex;align-items:center;flex-wrap:wrap;gap:10px}.control-counter{min-width:140px;text-align:center;color:var(--text-muted)}.btn{border:1px solid var(--border-strong);border-radius:var(--radius-sm);padding:8px 12px;background:var(--surface-card);color:var(--text-primary);font-size:.95rem;font-weight:600;cursor:pointer}.btn:disabled{opacity:.45;cursor:not-allowed}.status-inline{margin-top:var(--space-2);color:var(--text-muted)}.journal-card{margin-top:var(--space-5);padding:20px;border:1px solid var(--border-strong);border-radius:var(--radius-lg);background:var(--surface-card);display:grid;grid-template-columns:280px 1fr;gap:var(--space-5)}.journal-image-pane{width:100%;height:320px;border-radius:var(--radius-md);background:var(--surface-subtle);border:1px solid var(--border-default);display:flex;align-items:center;justify-content:center;color:var(--text-muted);font-size:14px}.journal-image{width:100%;height:100%;object-fit:contain;border-radius:var(--radius-md)}.journal-questions{display:flex;flex-direction:column;gap:18px}.card-guidance-hint{margin:0;font-size:.9rem;line-height:1.35;color:var(--text-muted)}.question-label{font-weight:700;margin-bottom:6px}.question-text{font-size:16px;line-height:1.5;margin-bottom:10px}.answer-textarea{width:100%;resize:none;overflow:hidden;padding:10px 12px;border-radius:var(--radius-md);border:1px solid var(--border-strong);background:var(--surface-card);color:var(--text-primary);font-size:15px;line-height:1.4}.checkbox-grid{display:grid;gap:var(--space-2)}.checkbox-row{display:flex;align-items:center;gap:10px;padding:var(--space-2) 10px;border-radius:var(--radius-md);border:1px solid var(--border-strong);background:var(--surface-card);cursor:pointer;-webkit-user-select:none;user-select:none}.checkbox-input{width:18px;height:18px}.checkbox-label{font-size:15px;line-height:1.4}.dialog-overlay{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;padding:var(--space-4);background:var(--surface-overlay)}.launch-splash-overlay{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;padding:var(--space-4);background:var(--surface-overlay);z-index:30}.launch-splash-card{width:min(440px,100%);padding:24px 24px 20px;border:1px solid var(--splash-border);border-radius:var(--radius-lg);background:var(--splash-surface);color:var(--splash-body);text-align:center;box-shadow:0 14px 34px var(--shadow-splash)}.launch-splash-icon-wrap{width:54px;height:54px;border-radius:999px;margin:0 auto 10px;display:flex;align-items:center;justify-content:center;background:var(--surface-subtle);color:var(--splash-muted);opacity:.88}.launch-splash-icon{width:24px;height:24px}.launch-splash-card h2{margin:0 0 8px;font-size:2rem;line-height:1.2;color:var(--splash-heading)}.launch-splash-card p{margin:0}.launch-splash-intro{margin-bottom:14px;font-size:1rem;color:var(--splash-muted)}.launch-splash-actions{margin:0 auto 14px;display:flex;flex-direction:column;width:min(250px,100%);gap:10px}.launch-splash-actions .btn{justify-content:center}.launch-splash-info{margin-top:10px}.launch-splash-info p+p{margin-top:16px}.launch-splash-warning{margin-top:0;font-size:1rem;font-weight:700;color:var(--splash-warning)}.launch-splash-copy{font-size:.98rem;line-height:1.38;color:var(--splash-muted)}.launch-splash-gap{height:16px}.launch-splash-device-note{margin-top:0;font-size:.66rem;line-height:1.35;color:var(--splash-muted);opacity:.82}@media(max-width:640px){.launch-splash-card{padding:20px 18px 16px}.launch-splash-icon-wrap{width:48px;height:48px;margin-bottom:8px}.launch-splash-icon{width:21px;height:21px}.launch-splash-card h2{font-size:1.7rem}.launch-splash-intro{font-size:.96rem}.launch-splash-warning,.launch-splash-copy{font-size:.94rem}.launch-splash-device-note{font-size:.6rem;line-height:1.3}.launch-splash-gap{height:14px}}.dialog-card{width:min(520px,100%);padding:var(--space-4);border:1px solid var(--border-strong);border-radius:var(--radius-lg);background:var(--surface-card)}.dialog-card h2{margin:0 0 var(--space-3);font-size:1.2rem}.dialog-card p{margin:0}.help-content{margin-top:8px}.help-section+.help-section{margin-top:14px}.help-section h3{margin:0 0 8px;font-size:1rem}.help-section ul{margin:0;padding-left:20px}.help-section li+li{margin-top:6px}.help-strong{font-weight:700}.dialog-actions{margin-top:var(--space-4);display:flex;gap:var(--space-2);justify-content:flex-end}.settings-fieldset{margin:0 0 var(--space-3);padding:var(--space-2);border:1px solid var(--border-strong);border-radius:var(--radius-sm)}.settings-option{display:flex;align-items:center;gap:var(--space-2);margin-top:var(--space-2)}.settings-content{margin-top:10px}.settings-section+.settings-section{margin-top:14px}.settings-section h3{margin:0 0 8px}.settings-section p+p{margin-top:8px}@media(max-width:900px){.journal-card{grid-template-columns:1fr;gap:var(--space-4)}.journal-image-pane{height:260px}}@media(max-width:640px){.app-shell{padding:var(--space-3)}h1{font-size:1.7rem}.control-row{gap:var(--space-2)}.control-counter{width:100%;order:10;text-align:left}.btn{padding:8px 10px}.journal-image-pane{height:220px}.dialog-actions{justify-content:stretch}.dialog-actions .btn{flex:1}}
