:root{color:#e2e8f0;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:#020817;font-family:Inter,Segoe UI,sans-serif;font-weight:400;line-height:1.5}*{box-sizing:border-box}html,body,#app{background:radial-gradient(circle at top,#a78bfa33,#0000 35%),linear-gradient(#020817 0%,#0f172a 60%,#111827 100%);width:100%;min-height:100vh;margin:0}body{min-height:100vh}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}.app-shell{width:100%;min-height:100vh;padding:32px}.locked-wrap{max-width:560px;margin:8vh auto 0;padding:8px 0}.auth-panel{-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);background:#0f172acc;border:1px solid #94a3b833;border-radius:24px;padding:30px 28px;box-shadow:0 28px 60px #02061773}.auth-panel h1{color:#f8fafc;margin-top:0;margin-bottom:12px;font-size:clamp(1.9rem,2vw,2.6rem)}.eyebrow{color:#a78bfa;text-transform:uppercase;letter-spacing:.12em;margin:0 0 8px;font-size:.76rem;font-weight:700}.muted{color:#cbd5e1}.auth-form{gap:16px;width:100%;margin-top:26px;display:grid}.auth-form label{color:#e2e8f0;gap:9px;font-weight:600;display:grid}.auth-form input,.auth-form select{color:#f8fafc;background:#02061799;border:1px solid #94a3b847;border-radius:12px;outline:none;width:100%;padding:12px 14px}.auth-form input:focus,.auth-form select:focus{border-color:#a78bfae6;box-shadow:0 0 0 3px #a78bfa2e}.action-row{gap:12px;margin-top:4px;display:flex}.primary-btn,.secondary-btn,.danger-btn{border:none;border-radius:12px;padding:10px 16px;font-weight:700;transition:transform .15s,opacity .15s}.primary-btn:hover,.secondary-btn:hover,.danger-btn:hover{transform:translateY(-1px)}.primary-btn{color:#fff;background:linear-gradient(135deg,#8b5cf6 0%,#a78bfa 100%)}.secondary-btn{color:#f8fafc;background:#94a3b81f;border:1px solid #94a3b82e}.danger-btn{color:#fecaca;background:#ef44441f}.full-width{width:100%;margin-top:12px}.error-message{color:#fecaca;background:#7f1d1d47;border:1px solid #f8717159;border-radius:10px;margin-top:16px;padding:10px 12px}.success-message{color:#bbf7d0;background:#14532d47;border:1px solid #4ade8059;border-radius:10px;margin-top:16px;padding:10px 12px}.storage-notice{color:#fde68a;background:#78530c2e;border:1px solid #fbbf2452;border-radius:14px;gap:3px;padding:12px 42px 12px 14px;font-size:.88rem;display:grid;position:relative}.storage-notice-close{color:#fde68a;background:#78530c47;border:1px solid #fde68a47;border-radius:8px;place-items:center;width:28px;height:28px;font-size:1.2rem;line-height:1;display:grid;position:absolute;top:8px;right:8px}.storage-notice-close:hover{background:#78530c8c}.storage-notice-close:focus-visible{outline-offset:2px;outline:2px solid #fde68a}.locked-wrap>.storage-notice{margin-top:18px}.journal-layout>.storage-notice{grid-column:1/-1}.backup-import{border-top:1px solid #94a3b833;justify-items:start;gap:8px;margin-top:24px;padding-top:18px;display:grid}.backup-import p{margin:0}.visually-hidden{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.recovery-panel{gap:16px;display:grid}.recovery-box{overflow-wrap:anywhere;background:#0f172ad1;border:1px solid #a78bfa4d;border-radius:14px;padding:16px}.recovery-box code{white-space:pre-wrap;word-break:break-word;color:#f8fafc;letter-spacing:.08em;font-family:SFMono-Regular,Consolas,monospace;display:block}.recovery-actions{justify-content:flex-end;display:flex}.copy-feedback{color:#86efac;margin:-8px 0 0;font-size:.9rem}.copy-feedback-error{color:#fecaca}.save-check{color:#e2e8f0;align-items:center;gap:10px;display:flex}.save-check input{width:18px;height:18px}.journal-layout{grid-template-columns:280px minmax(0,1fr);gap:20px;width:100%;max-width:none;min-height:calc(100vh - 64px);margin:0 auto;display:grid}.entry-list{background:#0f172acc;border:1px solid #94a3b833;border-radius:22px;min-width:0;min-height:540px;padding:18px 14px}.entry-list ul{gap:8px;margin:16px 0 0;padding:0;list-style:none;display:grid}.entry-list li button{text-align:left;overflow-wrap:anywhere;color:#e2e8f0;background:#0f172a80;border:1px solid #0000;border-radius:12px;width:100%;padding:12px}.entry-list li.active button{background:#8b5cf633;border-color:#a855f773}.editor-panel{background:#0f172acc;border:1px solid #94a3b833;border-radius:22px;flex-direction:column;width:100%;min-width:0;min-height:540px;padding:18px;display:flex}.editor-header{border-bottom:1px solid #94a3b833;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px;padding-bottom:12px;display:flex}.editor-header h2{color:#f8fafc;margin:0}.password-change-panel{margin-bottom:18px}.password-change-panel h2{color:#f8fafc;margin:0}.editor-header-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:10px;display:flex}.editor-shell{flex-direction:column;flex:1;gap:18px;display:flex}.editor-toolbar{flex-wrap:wrap;justify-content:flex-end;gap:10px;display:flex}.privacy-hint{color:#cbd5e1;margin:-6px 0 0;font-size:.85rem}.title-field,.body-field{min-width:0;position:relative}.body-field{flex:1;min-height:420px}.title-input{z-index:1;color:#f8fafc;background:#02061799;border:1px solid #94a3b847;border-radius:14px;width:100%;padding:12px 14px;font-size:1.1rem;position:relative}.title-mask{z-index:2;color:#f8fafc;white-space:pre;pointer-events:none;font:inherit;border-radius:13px;padding:12px 14px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;position:absolute;inset:1px;overflow:hidden}.title-input.is-masked{color:#0000;caret-color:#f8fafc;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.title-input.is-masked::placeholder{color:#0000}.editor-body{z-index:1;resize:none;color:#f8fafc;background:#02061799;border:1px solid #94a3b847;border-radius:16px;width:100%;height:100%;min-height:420px;padding:16px;position:relative}.body-mask{z-index:2;color:#f8fafc;white-space:pre-wrap;overflow-wrap:break-word;word-break:break-word;pointer-events:none;font:inherit;border-radius:15px;padding:16px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;line-height:normal;position:absolute;inset:1px;overflow:hidden}.editor-body.is-masked{color:#0000;caret-color:#f8fafc;scrollbar-gutter:stable;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.editor-body.is-masked::placeholder{color:#0000}.editor-body.is-masked::selection{background:#a78bfa73}.title-input.is-masked::selection{background:#a78bfa73}.editor-empty{color:#cbd5e1;flex:1;place-items:center;display:grid}.text-button{color:#c4b5fd;text-align:left;text-underline-offset:3px;background:0 0;border:0;margin-top:18px;padding:0;text-decoration:underline}.form-hint{margin:-10px 0 0;font-size:.85rem}.error-text{color:#fecaca}.save-status{color:#e2e8f0;background:#94a3b81f;border:1px solid #94a3b833;border-radius:999px;padding:6px 10px;font-size:.82rem;font-weight:700}.save-status[data-status=saving],.save-status[data-status=unsaved]{color:#fbbf24;background:#fbbf241a}.save-status[data-status=saved]{color:#86efac;background:#22c55e1f}.save-status[data-status=failed]{color:#fca5a5;background:#ef44441f}@media (width<=900px){.journal-layout{grid-template-columns:minmax(0,1fr);align-content:start;min-height:auto}.app-shell{padding:18px}.entry-list{min-height:0;max-height:min(28vh,240px);overflow-y:auto}.editor-panel{min-height:68vh}.body-field{min-height:48vh}}@media (width<=560px){.app-shell{padding:12px}.auth-panel{border-radius:18px;padding:24px 18px}.action-row{flex-wrap:wrap}.action-row>button{flex:auto}.journal-layout{gap:12px}.entry-list,.editor-panel{border-radius:16px;padding:14px 12px}.entry-list{max-height:180px}.entry-list ul{grid-template-columns:minmax(0,1fr)}.editor-panel{min-height:72vh}.editor-header{flex-direction:column;align-items:flex-start}.editor-header-actions{justify-content:flex-start}.editor-header-actions>button{flex:auto}.editor-toolbar{justify-content:flex-start}.editor-toolbar>button{flex:auto}.body-field,.editor-body{min-height:48vh}.storage-notice{font-size:.82rem}.recovery-actions{justify-content:flex-start}}
