:root{--bg:#f5f5f7;--surface:#fff;--ink:#1d1d1f;--muted:#71717a;--line:#e4e4e7;--accent:#2563eb;--accent-soft:#eef4ff;--danger:#a64538;--shadow:0 2px 12px #00000003;color-scheme:light dark;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-size:14px;line-height:1.6}button,input,textarea{font:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;background:none;color:inherit;border-radius:9px;min-height:40px;padding:9px 14px;transition:background .15s,opacity .15s}button:disabled{opacity:.38;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}a{color:var(--accent)}[hidden]{display:none!important}.subtle{color:var(--muted);font-size:13px}.primary{background:var(--accent);color:#fff;font-weight:550;min-width:100px;display:inline-flex;align-items:center;justify-content:space-between;gap:24px}.primary:hover:enabled{filter:brightness(1.12)}.quiet{color:var(--muted)}.quiet:hover{background:var(--accent-soft);color:var(--accent)}.topbar{max-width:780px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:28px 30px 18px}.brand{text-decoration:none;color:var(--ink);font-size:22px;font-weight:650;display:flex;align-items:center;gap:11px;letter-spacing:-.04em}.brand-by{letter-spacing:.13em;font-size:10px;font-weight:500;margin-left:8px;color:var(--muted)}.mini-mark{width:28px;height:28px;display:grid;place-items:center;border-radius:8px;background:var(--accent);color:white;font-weight:400;font-size:22px}.top-actions{display:flex;gap:20px;align-items:center}#connection{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:6px}#connection::before{content:"";width:5px;height:5px;border-radius:50%;background:var(--muted)}#connection.connected::before{background:#729b68}main{max-width:780px;margin:12px auto 0;padding:0 30px 36px}.composer{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:21px 24px;box-shadow:var(--shadow);transition:border-color .15s}.composer.dragging{border:2px dashed var(--accent);padding:20px 23px}.composer-tabs{display:flex;justify-content:space-between;align-items:center}.active-tab{font-size:12px;font-weight:600;color:var(--accent)}textarea{resize:vertical;min-height:124px;max-height:420px;width:100%;border:0;color:var(--ink);background:transparent;padding:20px 0 14px;line-height:1.7;outline-offset:2px!important}textarea::placeholder{color:#a1a1aa}.composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding-top:15px}.attach-actions{display:flex;align-items:center;gap:6px;min-width:0}.attach-button{padding-left:0;font-size:12px}.attach-button span{font-size:21px;font-weight:300;vertical-align:-1px;margin-right:3px}.keyboard-hint{font-size:11px;color:var(--muted)}#attachment{display:flex;align-items:center;gap:12px;padding:10px;background:var(--bg);border-radius:10px;margin-bottom:18px}#local-preview{width:48px;height:48px;border-radius:6px;overflow:hidden;display:grid;place-items:center;background:var(--accent-soft);font-size:24px;flex-shrink:0}#local-preview img{width:100%;height:100%;object-fit:cover}.attachment-info{min-width:0;flex:1;display:grid;gap:2px}.attachment-info strong{font-size:12px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}progress{width:100%;height:4px;accent-color:var(--accent)}#upload-status{padding-top:12px}#progress-text{font-size:12px;color:var(--muted)}[role=alert]:not(:empty){font-size:12px;color:var(--danger);margin-top:12px}.history-heading{display:flex;justify-content:space-between;align-items:center;margin:38px 0 16px;gap:10px}.history-heading h2{font-size:14px;font-weight:600;margin:0}#record-count{font-weight:400;color:var(--muted);font-size:11px;margin-left:6px}#list{display:grid;gap:12px}.record{border:1px solid var(--line);border-radius:13px;background:var(--surface);padding:19px 21px;min-width:0}.record-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:11px}.record-meta{display:flex;gap:10px;align-items:center;color:var(--muted);font-size:11px}.type-tag{font-size:10px;color:var(--accent);background:var(--accent-soft);padding:2px 7px;border-radius:4px}.record-tools{display:flex;gap:2px}.record-tools button{font-size:11px;min-height:32px;padding:4px 8px}.record-text{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;font-size:14px;line-height:1.85;tab-size:4;user-select:text}.record details summary{color:var(--muted);cursor:pointer;font-size:12px;margin-top:10px}.record-file{display:flex;gap:13px;align-items:center;min-width:0}.file-icon{width:42px;height:48px;background:var(--accent-soft);color:var(--accent);border-radius:8px;display:grid;place-items:center;flex-shrink:0}.file-info{min-width:0;flex:1}.file-info a{display:block;overflow-wrap:anywhere;color:var(--ink);text-decoration:none;font-size:13px}.file-info span{font-size:11px;color:var(--muted)}.media-preview{display:block;max-width:100%;max-height:380px;object-fit:contain;border-radius:8px;background:var(--bg);margin-top:12px}.media-image{cursor:zoom-in;width:100%;height:220px;object-fit:contain}.download{font-size:12px;text-decoration:none;padding:10px;white-space:nowrap}.empty{text-align:center;padding:54px 15px 62px;color:var(--muted)}.empty-icon{display:inline-grid;place-items:center;width:50px;height:50px;border:1px solid var(--line);border-radius:15px;font-size:25px;color:#a1a1aa}.empty p{font-size:12px;line-height:1.9}.more{display:block;margin:20px auto;color:var(--muted);font-size:12px}.more:hover{background:var(--accent-soft)}#new-content{position:sticky;z-index:2;top:14px;background:var(--accent);color:#fff;box-shadow:0 4px 15px #0002;display:block;margin:0 auto 15px;font-size:12px}#toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);background:var(--ink);color:var(--surface);padding:10px 20px;border-radius:10px;font-size:13px;max-width:90%;z-index:10;box-shadow:0 4px 20px #0002}.auth-shell{min-height:100svh;display:grid;place-items:center;padding:30px}.auth-card{width:100%;max-width:340px}.mark{width:52px;height:52px;background:var(--accent);color:#fff;font-size:37px;border-radius:15px;display:grid;place-items:center;margin-bottom:30px}.auth-card h1{font-size:40px;font-weight:600;letter-spacing:-.05em;line-height:1.2;margin:0 0 30px}.auth-card label{font-size:12px;display:block;margin-bottom:8px}.auth-card input{display:block;width:100%;padding:13px 15px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);font-size:20px;letter-spacing:.5em;margin-bottom:13px}.auth-card .primary{width:100%;padding:13px 16px}.auth-note{font-size:11px;color:var(--muted);margin-top:30px}dialog{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:15px;padding:25px;max-width:min(90vw,450px)}dialog::backdrop{background:#00000073;backdrop-filter:blur(4px)}dialog h2{font-size:18px;margin-top:0}dialog p{font-size:13px;color:var(--muted)}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}.danger{background:var(--danger);color:#fff}#preview-dialog{max-width:95vw;max-height:95svh}#preview-dialog>button{display:block;margin-left:auto}#preview-content img{display:block;max-width:80vw;max-height:75svh;object-fit:contain}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(prefers-color-scheme:dark){:root{--bg:#111113;--surface:#1c1c1f;--ink:#f4f4f5;--muted:#a1a1aa;--line:#303034;--accent:#76a9fa;--accent-soft:#222e43;--danger:#e18e7d}.primary,.mini-mark,.mark,#new-content{color:#0b1220}.composer{box-shadow:none}textarea::placeholder{color:#71717a}.danger{color:#20100c}}
@media(max-width:600px){.topbar{padding:20px}.brand-by{display:none}.top-actions{gap:6px}main{margin-top:8px;padding:0 20px 28px}.composer{padding:18px}.composer.dragging{padding:17px}.keyboard-hint{display:none}.record{padding:16px}.record-tools button{min-width:42px;min-height:42px}.history-heading{margin-top:30px}.history-heading h2{font-size:13px}.record-head{margin-bottom:8px}.media-image{height:190px}.auth-card{max-width:330px}.composer-bottom .primary{min-width:86px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

.record video{width:100%;aspect-ratio:16/9;max-height:380px}
