/* SPDX-License-Identifier: Apache-2.0 */
:root { color-scheme: light; --bg:#f7f8fb; --surface:#fff; --surface-alt:#f0f2f7; --text:#1d2433; --muted:#727b8c; --border:#e3e7ef; --accent:#5665db; --accent-hover:#4555c6; --accent-soft:#edf0ff; --green:#39a888; --danger:#bd4456; --danger-soft:#fceef1; --shadow:0 16px 60px #2429470d; --radius:20px; font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; font-synthesis:none; }
:root[data-theme="dark"] { color-scheme:dark; --bg:#15181f; --surface:#1d222d; --surface-alt:#252c38; --text:#f0f2f8; --muted:#a0a9bd; --border:#303847; --accent:#a4adff; --accent-hover:#bec5ff; --accent-soft:#2c3354; --green:#72c5a7; --danger:#ff96a5; --danger-soft:#3b2932; --shadow:0 16px 60px #0002; }
@media(prefers-color-scheme:dark) { :root:not([data-theme]) { color-scheme:dark; --bg:#15181f; --surface:#1d222d; --surface-alt:#252c38; --text:#f0f2f8; --muted:#a0a9bd; --border:#303847; --accent:#a4adff; --accent-hover:#bec5ff; --accent-soft:#2c3354; --green:#72c5a7; --danger:#ff96a5; --danger-soft:#3b2932; --shadow:0 16px 60px #0002; } }
* { box-sizing:border-box; }
.drive-nav { display:flex; flex-wrap:wrap; gap:8px; margin:16px 0; }
.drive-nav button { background:transparent; border:0; border-radius:24px; padding:10px 20px; color:var(--muted); }
.drive-nav button[aria-pressed="true"] { background:var(--accent-soft); color:var(--accent); }
.breadcrumbs { display:flex; align-items:center; flex-wrap:wrap; gap:6px; margin:16px 0; overflow-wrap:anywhere; }
.breadcrumbs button { max-width:100%; overflow-wrap:anywhere; }
.icon-button[aria-pressed="true"] { color:var(--accent); }
.icon-button[aria-pressed="true"] use[href="#icon-star"] { fill:var(--accent); }
#move-parent { width:100%; padding:12px; color:var(--text); background:var(--surface); border:1px solid var(--border); border-radius:10px; }
#trash-note { margin-bottom:16px; }
body { margin:0; background:var(--bg); color:var(--text); line-height:1.55; font-size:15px; min-height:100vh; display:flex; flex-direction:column; }
a { color:var(--accent); text-underline-offset:3px; }
button,input { font:inherit; }
button,a,input { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }
button:disabled { opacity:.5; cursor:not-allowed; }
button:focus-visible,a:focus-visible,input:focus-visible { outline:3px solid var(--accent); outline-offset:4px; }
button,a { touch-action:manipulation; }
[hidden] { display:none !important; }
h1,h2,p { margin:0; }
h1 { font-weight:620; letter-spacing:-.05em; line-height:1.12; }
h2 { font-size:19px; font-weight:600; letter-spacing:-.025em; }
.icon-definitions { width:0; height:0; position:absolute; pointer-events:none; }
.icon { width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; }
.skip-link { position:fixed; top:-80px; left:20px; z-index:10; padding:12px 20px; background:var(--surface); border:1px solid var(--accent); border-radius:12px; }
.skip-link:focus { top:16px; }
.site-header { width:min(1200px,100%); padding:30px 44px; margin:0 auto; display:flex; align-items:center; justify-content:space-between; gap:20px; }
.brand { display:flex; align-items:center; gap:11px; color:var(--text); text-decoration:none; font-size:22px; font-weight:650; letter-spacing:-.045em; white-space:nowrap; }
.brand-mark { width:40px; height:40px; display:grid; place-items:center; border:1px solid var(--border); background:var(--surface); border-radius:13px; }
.brand-mark .icon { width:25px; height:25px; color:var(--accent); }
.brand-dot { color:var(--accent); }
.header-links { display:flex; align-items:center; gap:26px; font-size:13px; }
.header-links a,.site-footer a { color:var(--muted); text-decoration:none; }
.header-links a:hover,.site-footer a:hover { color:var(--text); }
.icon-button { width:38px; height:38px; display:inline-flex; align-items:center; justify-content:center; border:1px solid transparent; background:transparent; color:var(--muted); border-radius:10px; flex-shrink:0; }
.icon-button:hover { color:var(--text); background:var(--surface-alt); }
.main-shell { width:min(1200px,100%); margin:0 auto; padding:20px 44px 60px; flex:1; }
.status-message { margin:0 0 22px; padding:14px 18px; border:1px solid var(--border); background:var(--surface); border-radius:13px; overflow-wrap:anywhere; }
.status-message[data-kind="error"] { color:var(--danger); background:var(--danger-soft); border-color:transparent; }
.status-message[data-kind="success"] { border-color:var(--green); }
.public-panel { display:grid; grid-template-columns:1.3fr 1fr; align-items:center; gap:48px; padding-top:42px; }
.eyebrow { display:flex; align-items:center; gap:8px; color:var(--muted); font-size:12px; font-weight:550; letter-spacing:.025em; margin-bottom:18px; }
.status-dot { height:7px; width:7px; border-radius:50%; background:var(--green); box-shadow:0 0 0 4px color-mix(in srgb,var(--green) 12%,transparent); }
.hero-copy h1 { font-size:clamp(44px,5.8vw,72px); }
.muted-heading { color:var(--muted); }
.hero-description { max-width:510px; font-size:18px; line-height:1.7; color:var(--muted); margin-top:26px; }
.hero-actions { display:flex; flex-wrap:wrap; gap:10px; margin:32px 0 16px; }
.button { min-height:44px; display:inline-flex; align-items:center; justify-content:center; gap:9px; padding:11px 18px; border-radius:11px; border:1px solid transparent; text-decoration:none; font-size:14px; font-weight:550; line-height:1.4; }
.button-primary { background:var(--accent); color:var(--surface); }
:root[data-theme="dark"] .button-primary { color:#161e45; }
@media(prefers-color-scheme:dark) { :root:not([data-theme]) .button-primary { color:#161e45; } }
.button-primary:hover:not(:disabled) { background:var(--accent-hover); }
.button-secondary { background:var(--surface); color:var(--text); border-color:var(--border); }
.button-secondary:hover:not(:disabled) { background:var(--surface-alt); }
.button-quiet,.button-text { background:transparent; color:var(--muted); }
.button-quiet:hover,.button-text:hover { color:var(--text); background:var(--surface-alt); }
.button-small { min-height:34px; padding:6px 11px; font-size:13px; }
.button-danger { color:var(--surface); background:var(--danger); }
:root[data-theme="dark"] .button-danger { color:#40212a; }
.subtle { color:var(--muted); font-size:13px; line-height:1.65; }
.hero-visual { min-height:355px; position:relative; display:grid; place-items:center; overflow:hidden; }
.vault-orbit { position:absolute; border:1px solid var(--border); border-radius:50%; width:330px; height:330px; }
.orbit-two { width:255px; height:255px; border-style:dashed; }
.vault-object { position:relative; width:163px; height:183px; display:grid; place-items:center; background:linear-gradient(145deg,var(--surface),var(--accent-soft)); border:1px solid color-mix(in srgb,var(--accent) 20%,var(--border)); border-radius:40px; transform:rotate(-9deg); box-shadow:14px 24px 60px color-mix(in srgb,var(--accent) 13%,transparent); }
.vault-object svg { width:69px; height:69px; fill:none; stroke:var(--accent); stroke-width:1; stroke-linecap:round; stroke-linejoin:round; }
.visual-label { position:absolute; bottom:8px; font-family:ui-monospace,SFMono-Regular,monospace; font-size:11px; color:var(--muted); letter-spacing:.035em; }
.feature-row { grid-column:1/-1; display:grid; grid-template-columns:repeat(3,1fr); padding:34px 0; margin-top:15px; gap:35px; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.feature > .icon { color:var(--accent); margin-bottom:15px; }
.feature h2 { font-size:15px; margin-bottom:7px; letter-spacing:-.015em; }
.feature p { font-size:13px; color:var(--muted); max-width:270px; line-height:1.7; }
.browser-note { grid-column:1/-1; padding:0; color:var(--muted); font-size:12px; line-height:1.8; max-width:900px; margin-top:-19px; }
.browser-note strong { color:var(--text); font-weight:550; }
.browser-note a { white-space:normal; }
.site-footer { width:min(1200px,100%); display:flex; justify-content:space-between; margin:0 auto; padding:22px 44px 30px; font-size:11px; color:var(--muted); gap:16px; }
.site-footer > div { display:flex; flex-wrap:wrap; gap:20px; }
.footer-divider { margin:0 9px; color:var(--border); }
.account-toolbar { display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--border); padding:0 0 18px; margin-bottom:36px; font-size:12px; gap:14px; }
.account-label { color:var(--muted); min-width:0; overflow-wrap:anywhere; }
.account-label strong { color:var(--text); font-weight:550; margin-left:5px; }
.account-actions { display:flex; align-items:center; gap:15px; flex-shrink:0; }
.account-actions > a { color:var(--muted); text-decoration:none; }
.account-actions form { margin:0; }
.setup-panel { display:grid; grid-template-columns:1fr 1fr; gap:65px; padding:26px 0; align-items:start; }
.setup-intro { max-width:410px; }
.large-icon { width:57px; height:57px; display:grid; place-items:center; background:var(--accent-soft); border-radius:18px; color:var(--accent); margin-bottom:25px; }
.large-icon .icon { width:27px; height:27px; }
.setup-intro h1,.unlock-panel h1 { font-size:36px; margin-bottom:18px; }
.setup-intro > p,.unlock-panel > p { color:var(--muted); margin-bottom:18px; }
.setup-intro > .button { margin-top:10px; }
.recovery-section { padding:25px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); }
.step-heading { display:flex; gap:12px; align-items:flex-start; }
.step-number { height:24px; width:24px; display:grid; place-items:center; color:var(--accent); background:var(--accent-soft); border-radius:50%; flex-shrink:0; font-size:12px; }
.step-heading h2 { font-size:16px; margin-bottom:6px; }
.step-heading p { color:var(--muted); font-size:12px; line-height:1.7; }
.recovery-code { display:block; border:1px solid var(--border); background:var(--bg); font-family:ui-monospace,SFMono-Regular,monospace; font-size:14px; line-height:1.8; overflow-wrap:anywhere; padding:15px; border-radius:11px; margin:20px 0 13px; user-select:all; }
.button-row { display:flex; gap:6px; flex-wrap:wrap; }
.confirm-step { margin-top:29px; padding-top:23px; border-top:1px solid var(--border); }
form > label:not(.checkbox-label) { display:block; font-size:12px; font-weight:550; margin:20px 0 8px; }
input:not([type="checkbox"]):not([type="file"]):not([type="hidden"]) { border:1px solid var(--border); border-radius:10px; padding:12px 14px; width:100%; background:var(--bg); color:var(--text); min-width:0; font-size:14px; }
input::placeholder { color:var(--muted); opacity:.7; }
.code-input { font-family:ui-monospace,SFMono-Regular,monospace; }
.checkbox-label { display:flex; align-items:flex-start; gap:10px; font-size:12px; color:var(--muted); line-height:1.65; margin:16px 0 20px; cursor:pointer; }
.checkbox-label input { flex-shrink:0; margin:4px 0 0; accent-color:var(--accent); width:15px; height:15px; }
#create-vault-button { width:100%; }
.unlock-panel { max-width:420px; margin:65px auto 70px; }
.unlock-panel > .large-icon { margin-inline:auto; }
.unlock-panel > .eyebrow { justify-content:center; }
.unlock-panel > h1,.unlock-panel > p { text-align:center; }
.unlock-panel form { margin:28px 0 22px; }
.unlock-panel .button { width:100%; margin-top:16px; }
.vault-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:34px; }
.vault-heading h1 { font-size:37px; margin-bottom:9px; }
.vault-heading .eyebrow { margin-bottom:13px; }
.file-toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:20px; }
.file-toolbar-actions { display:flex; align-items:center; gap:9px; }
.view-switch { display:flex; padding:3px; background:var(--surface-alt); border-radius:11px; }
.view-switch .icon-button { width:33px; height:31px; border-radius:8px; }
.view-switch .icon { width:17px; height:17px; }
.view-switch [aria-pressed="true"] { color:var(--text); background:var(--surface); box-shadow:0 1px 3px #0001; }
.drop-area { min-height:280px; background:var(--surface); border:1px solid var(--border); border-radius:16px; overflow:hidden; transition:border-color .15s,background .15s; }
.drop-area.dragging { border-color:var(--accent); background:var(--accent-soft); outline:3px solid var(--accent-soft); }
.list-heading,.file-row { display:grid; grid-template-columns:minmax(160px,1fr) 95px 125px 125px; align-items:center; gap:16px; }
.list-heading { font-size:11px; color:var(--muted); background:color-mix(in srgb,var(--surface-alt) 50%,var(--surface)); padding:12px 22px; border-bottom:1px solid var(--border); }
.file-row { padding:14px 22px; border-bottom:1px solid var(--border); min-width:0; }
.file-row:last-child { border-bottom:0; }
.file-row:hover { background:color-mix(in srgb,var(--surface-alt) 40%,var(--surface)); }
.file-main { display:flex; gap:14px; align-items:center; min-width:0; }
.file-icon { display:grid; place-items:center; color:var(--accent); width:36px; height:40px; background:var(--accent-soft); border-radius:8px; flex-shrink:0; }
.file-icon.image-icon { color:var(--green); background:color-mix(in srgb,var(--green) 12%,var(--surface)); }
.file-icon .icon { width:21px; height:21px; }
.file-name { display:block; font-size:13px; font-weight:500; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.file-name-wrap { min-width:0; }
.file-type { display:block; font-size:10px; color:var(--muted); margin-top:3px; }
.file-size,.file-date { font-size:12px; color:var(--muted); }
.file-actions { display:flex; justify-content:flex-end; gap:2px; }
.file-actions .icon-button { width:34px; height:34px; }
.file-actions .icon { width:17px; height:17px; }
.file-actions .delete-file:hover { color:var(--danger); background:var(--danger-soft); }
.file-row.invalid-file { color:var(--danger); }
.file-row.invalid-file .file-type { color:var(--danger); }
.file-list[data-view="grid"] { display:grid; grid-template-columns:repeat(auto-fill,minmax(170px,1fr)); padding:18px; gap:12px; }
.file-list[data-view="grid"] .file-row { display:flex; flex-direction:column; align-items:stretch; border:1px solid var(--border); border-radius:12px; padding:18px 13px 10px; gap:7px; }
.file-list[data-view="grid"] .file-main { flex-direction:column; align-items:center; gap:14px; text-align:center; }
.file-list[data-view="grid"] .file-icon { width:55px; height:62px; border-radius:13px; }
.file-list[data-view="grid"] .file-icon .icon { width:29px; height:29px; }
.file-list[data-view="grid"] .file-name-wrap { max-width:100%; }
.file-list[data-view="grid"] .file-size { text-align:center; }
.file-list[data-view="grid"] .file-date { display:none; }
.file-list[data-view="grid"] .file-actions { justify-content:center; margin-top:4px; }
.empty-state { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:280px; padding:35px 20px; text-align:center; }
.empty-icon { display:grid; place-items:center; height:57px; width:57px; background:var(--surface-alt); color:var(--muted); border-radius:17px; margin-bottom:19px; }
.empty-state h2 { font-size:17px; margin-bottom:8px; }
.empty-state p { font-size:13px; color:var(--muted); margin-bottom:8px; }
.empty-state > .subtle { font-size:11px; }
.storage-footer { display:flex; justify-content:space-between; gap:40px; margin-top:27px; align-items:center; }
.storage-footer > p { font-size:11px; color:var(--muted); text-align:right; }
.quota { max-width:330px; width:100%; }
.quota-label { display:flex; justify-content:space-between; gap:16px; font-size:11px; color:var(--muted); margin-bottom:7px; }
.quota-label strong { font-weight:500; color:var(--text); }
progress { appearance:none; -webkit-appearance:none; width:100%; height:5px; display:block; border:0; border-radius:5px; background:var(--border); overflow:hidden; color:var(--accent); }
progress::-webkit-progress-bar { background:var(--border); }
progress::-webkit-progress-value { background:var(--accent); border-radius:5px; }
progress::-moz-progress-bar { background:var(--accent); border-radius:5px; }
.vault-footer { display:flex; justify-content:space-between; align-items:center; margin-top:45px; padding-top:22px; border-top:1px solid var(--border); font-size:11px; }
.vault-footer > a { text-decoration:none; color:var(--muted); }
.text-button { border:0; padding:5px 0; background:none; font-size:11px; }
.danger-text { color:var(--danger); }
.upload-progress { padding:13px 16px; margin-bottom:16px; border:1px solid var(--border); background:var(--surface); border-radius:11px; display:flex; align-items:center; gap:12px; font-size:12px; overflow-wrap:anywhere; }
.spinner { display:inline-block; width:18px; height:18px; border-radius:50%; border:2px solid var(--border); border-top-color:var(--accent); animation:spin .8s linear infinite; flex-shrink:0; }
@keyframes spin { to { transform:rotate(360deg); } }
@media(prefers-reduced-motion:reduce) { .spinner { animation:none; } * { scroll-behavior:auto !important; transition:none !important; } }
.center-panel { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:18px; min-height:50vh; color:var(--muted); font-size:13px; }
dialog { color:var(--text); background:var(--surface); border:1px solid var(--border); border-radius:20px; padding:28px; box-shadow:0 20px 120px #0003; max-width:calc(100vw - 32px); }
dialog::backdrop { background:#10132399; backdrop-filter:blur(4px); }
.preview-dialog { width:min(900px,calc(100vw - 40px)); }
.dialog-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:18px; }
.dialog-heading h2 { font-size:15px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.preview-dialog img { max-width:100%; max-height:65vh; display:block; margin:auto; border-radius:7px; }
.preview-dialog > p { margin-top:15px; font-size:11px; }
.file-name:is(button) { display:block; padding:0; border:0; background:none; color:inherit; text-align:left; font:inherit; font-weight:600; cursor:pointer; max-width:100%; }
.file-name:is(button):hover { text-decoration:underline; }
.preview-text { --code-bg:#fff; --code-text:#000; --code-keyword:#0000ff; --code-string:#a31515; --code-comment:#008000; --code-number:#098658; --code-function:#795e26; --code-type:#267f99; --code-variable:#001080; margin:16px 0 0; padding:18px; max-height:65vh; min-height:180px; overflow:auto; overscroll-behavior:contain; border:1px solid var(--border); border-radius:8px; background:var(--code-bg); color:var(--code-text); text-align:left; tab-size:4; white-space:pre; font:13px/1.6 Consolas,'Cascadia Code','Liberation Mono',monospace; }
:root[data-theme="dark"] .preview-text { --code-bg:#1e1e1e; --code-text:#d4d4d4; --code-keyword:#569cd6; --code-string:#ce9178; --code-comment:#6a9955; --code-number:#b5cea8; --code-function:#dcdcaa; --code-type:#4ec9b0; --code-variable:#9cdcfe; }
@media(prefers-color-scheme:dark) { :root:not([data-theme]) .preview-text { --code-bg:#1e1e1e; --code-text:#d4d4d4; --code-keyword:#569cd6; --code-string:#ce9178; --code-comment:#6a9955; --code-number:#b5cea8; --code-function:#dcdcaa; --code-type:#4ec9b0; --code-variable:#9cdcfe; } }
.preview-text code { font:inherit; }
.preview-text .hljs-keyword, .preview-text .hljs-literal, .preview-text .hljs-selector-tag, .preview-text .hljs-name { color:var(--code-keyword); }
.preview-text .hljs-string, .preview-text .hljs-regexp, .preview-text .hljs-template-tag { color:var(--code-string); }
.preview-text .hljs-comment, .preview-text .hljs-quote { color:var(--code-comment); }
.preview-text .hljs-number { color:var(--code-number); }
.preview-text .hljs-title, .preview-text .hljs-section { color:var(--code-function); }
.preview-text .hljs-type, .preview-text .hljs-built_in, .preview-text .hljs-title.class_ { color:var(--code-type); }
.preview-text .hljs-attr, .preview-text .hljs-attribute, .preview-text .hljs-variable, .preview-text .hljs-property { color:var(--code-variable); }
.preview-text .hljs-emphasis { font-style:italic; }
.preview-text .hljs-strong { font-weight:bold; }
.preview-text .hljs-addition { color:var(--code-comment); }
.preview-text .hljs-deletion { color:var(--code-string); }
.action-dialog { width:450px; }
.action-dialog > h2 { font-size:24px; margin-bottom:14px; }
.action-dialog > p { color:var(--muted); font-size:14px; line-height:1.75; overflow-wrap:anywhere; }
.action-dialog > p + p { margin-top:12px; }
.action-dialog .large-icon { margin-bottom:20px; }
.danger-icon { color:var(--danger); background:var(--danger-soft); }
.dialog-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:10px; margin-top:25px; }
.full-width { width:100%; margin-top:23px; }
.dialog-note { margin-top:19px; font-size:12px !important; }
.dialog-error { padding:11px 13px; border-radius:10px; color:var(--danger) !important; background:var(--danger-soft); font-size:12px !important; }
#password-settings-button { color:var(--muted); font-size:12px; }
.noscript-message { position:fixed; left:16px; right:16px; bottom:16px; padding:20px; background:var(--surface); border:1px solid var(--border); border-radius:14px; z-index:10; }
.document-shell { max-width:810px; padding-top:35px; }
.document-shell h1 { font-size:42px; margin-bottom:25px; }
.document-shell .document-lead { font-size:18px; color:var(--muted); line-height:1.8; margin-bottom:32px; }
.document-shell section { padding-top:28px; margin-top:25px; border-top:1px solid var(--border); }
.document-shell h2 { margin-bottom:14px; font-size:22px; }
.document-shell p,.document-shell li { color:var(--muted); line-height:1.8; }
.document-shell p + p { margin-top:15px; }
.document-shell strong { color:var(--text); font-weight:550; }
.document-shell ol,.document-shell ul { padding-left:22px; }
.document-shell li + li { margin-top:10px; }
.document-shell code { font-size:12px; padding:3px 5px; background:var(--surface-alt); border-radius:5px; overflow-wrap:anywhere; }
.document-shell pre { padding:18px; background:var(--surface-alt); border:1px solid var(--border); border-radius:12px; overflow:auto; }
.document-shell pre code { padding:0; background:none; }
.document-shell .back-link { display:inline-block; margin-bottom:30px; font-size:13px; text-decoration:none; }
@media(max-width:850px) {
  .site-header { padding:24px 28px; }
  .main-shell { padding:18px 28px 45px; }
  .site-footer { padding:22px 28px; }
  .public-panel { gap:35px; padding-top:27px; }
  .hero-description { font-size:16px; }
  .hero-visual { min-height:300px; }
  .vault-orbit { width:260px; height:260px; }
  .orbit-two { width:200px; height:200px; }
  .vault-object { width:135px; height:150px; border-radius:33px; }
  .vault-object svg { width:60px; height:60px; }
  .visual-label { bottom:0; font-size:9px; }
  .feature-row { gap:20px; }
  .feature h2 { font-size:14px; }
  .setup-panel { gap:30px; grid-template-columns:1fr 1.1fr; }
  .setup-intro h1 { font-size:30px; }
  .recovery-section { padding:20px; }
  .list-heading,.file-row { grid-template-columns:minmax(120px,1fr) 75px 115px; gap:12px; }
  .list-heading > :nth-child(3),.file-date { display:none; }
}
@media(max-width:600px) {
  body { font-size:14px; }
  .site-header { padding:20px; gap:12px; align-items:center; flex-wrap:wrap; }
  .brand { font-size:20px; gap:9px; }
  .brand-mark { width:34px; height:34px; border-radius:11px; }
  .brand-mark .icon { width:23px; height:23px; }
  .header-links { gap:14px; font-size:11px; }
  .header-links .icon-button { width:30px; height:30px; }
  .header-links .icon { width:18px; height:18px; }
  .main-shell { padding:15px 20px 35px; }
  .public-panel { display:block; padding-top:32px; }
  .hero-copy h1 { font-size:51px; }
  .hero-description { font-size:16px; margin-top:24px; }
  .hero-actions { margin-top:28px; gap:6px; }
  .hero-actions .button { padding:11px 14px; font-size:13px; }
  .hero-visual { display:none; }
  .feature-row { display:block; margin-top:45px; padding:24px 0; }
  .feature { display:grid; grid-template-columns:25px 1fr; column-gap:14px; margin:0 0 22px; }
  .feature:last-child { margin-bottom:0; }
  .feature > .icon { grid-row:1/3; margin-top:2px; }
  .feature h2 { font-size:14px; }
  .feature p { max-width:none; font-size:12px; }
  .browser-note { margin-top:25px; font-size:11px; }
  .site-footer { padding:20px; flex-direction:column; gap:12px; font-size:10px; }
  .account-toolbar { align-items:flex-start; margin-bottom:27px; gap:10px; font-size:11px; }
  .account-actions { gap:6px; align-items:flex-end; flex-direction:column; }
  .account-actions .button { min-height:30px; padding:5px 8px; }
  .setup-panel { display:block; padding-top:5px; }
  .setup-intro { max-width:none; }
  .setup-intro h1,.unlock-panel h1 { font-size:31px; }
  .setup-intro > p { font-size:14px; }
  .setup-intro > .subtle { font-size:12px; }
  .recovery-section { margin-top:30px; padding:20px; }
  .recovery-code { font-size:12px; }
  .button-row .button { font-size:12px; padding:10px 12px; }
  .unlock-panel { margin:38px auto 40px; }
  input:not([type="checkbox"]):not([type="file"]):not([type="hidden"]) { font-size:16px; }
  .vault-heading { align-items:flex-start; gap:12px; margin-bottom:26px; }
  .vault-heading h1 { font-size:30px; }
  .vault-heading .eyebrow { font-size:10px; margin-bottom:11px; }
  .vault-heading > .button { min-height:35px; padding:8px 10px; font-size:11px; max-width:132px; gap:7px; }
  .vault-heading > .button .icon { width:16px; height:16px; }
  .file-toolbar { margin-bottom:15px; gap:10px; }
  #upload-button { font-size:12px; padding:10px 12px; gap:8px; }
  #upload-button .icon { width:18px; height:18px; }
  .file-toolbar-actions { gap:2px; }
  #refresh-button { width:31px; height:34px; }
  .view-switch { padding:2px; }
  .view-switch .icon-button { width:29px; }
  .list-heading { display:none; }
  .file-row { grid-template-columns:minmax(0,1fr) auto; gap:4px 7px; padding:14px 12px; }
  .file-main { grid-column:1; gap:10px; }
  .file-size { grid-column:1; font-size:10px; margin-left:42px; }
  .file-actions { grid-column:2; grid-row:1/3; }
  .file-actions .icon-button { width:30px; height:34px; }
  .file-icon { width:32px; height:37px; }
  .file-name { font-size:12px; }
  .file-type { display:none; }
  .file-list[data-view="grid"] { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; padding:12px; }
  .file-list[data-view="grid"] .file-row { padding:16px 8px 9px; }
  .file-list[data-view="grid"] .file-size { margin-left:0; }
  .file-list[data-view="grid"] .file-type { display:none; }
  .file-list[data-view="grid"] .file-actions .icon-button { width:32px; }
  .empty-state { min-height:245px; padding-inline:15px; }
  .empty-state h2 { font-size:15px; }
  .empty-state p { font-size:12px; }
  .storage-footer { flex-direction:column; align-items:stretch; gap:18px; margin-top:23px; }
  .quota { max-width:none; }
  .storage-footer > p { text-align:left; font-size:10px; }
  .vault-footer { margin-top:30px; font-size:10px; }
  .text-button { font-size:10px; }
  dialog { padding:22px; max-width:calc(100vw - 28px); }
  .action-dialog > h2 { font-size:22px; }
  .dialog-actions > .button { flex:1; font-size:13px; }
  .preview-dialog { padding:18px; }
  .document-shell h1 { font-size:33px; }
  .document-shell .document-lead { font-size:16px; }
  .document-shell h2 { font-size:21px; }
}
@media(max-width:370px) {
  .site-header,.main-shell,.site-footer { padding-inline:16px; }
  .site-header { gap:13px; }
  .header-links { width:100%; justify-content:flex-end; gap:19px; }
  .header-links .icon-button { margin-left:auto; }
  .hero-copy h1 { font-size:45px; }
  .public-panel { padding-top:21px; }
  .file-actions .icon-button { width:26px; }
  #upload-button { padding-inline:10px; }
}

.onboarding-panel { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:64px; align-items:start; padding:20px 0 45px; }
.onboarding-intro h1 { font-size:36px; margin-bottom:18px; }
.onboarding-intro > p { color:var(--muted); max-width:420px; }
.setup-steps { list-style:none; padding:0; margin:32px 0 0; display:grid; gap:22px; }
.setup-steps li { display:flex; gap:14px; color:var(--muted); align-items:center; }
.setup-steps li > span { width:34px; height:34px; border:1px solid var(--border); border-radius:50%; display:grid; place-items:center; flex-shrink:0; font-size:13px; }
.setup-steps strong,.setup-steps small { display:block; }
.setup-steps strong { font-size:14px; font-weight:550; }
.setup-steps small { font-size:12px; margin-top:3px; }
.setup-steps [data-state="current"] { color:var(--text); }
.setup-steps [data-state="current"] > span { background:var(--accent); color:var(--surface); border-color:var(--accent); }
.setup-steps [data-state="complete"] > span { background:var(--accent-soft); color:var(--accent); border-color:transparent; }
.onboarding-card { min-width:0; padding:30px; border:1px solid var(--border); border-radius:20px; background:var(--surface); box-shadow:var(--shadow); }
.onboarding-card h2 { font-size:24px; margin:0 0 16px; }
.onboarding-card p { color:var(--muted); line-height:1.75; }
.onboarding-card .subtle { margin-top:20px; font-size:12px; }
.onboarding-card .button { white-space:normal; text-align:center; }
@media(max-width:700px) {
  .onboarding-panel { grid-template-columns:minmax(0,1fr); gap:28px; padding-top:5px; }
  .onboarding-intro h1 { font-size:30px; }
  .setup-steps { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 10px; margin-top:24px; }
  .setup-steps li { gap:8px; align-items:flex-start; }
  .setup-steps li > span { width:27px; height:27px; }
  .setup-steps strong { font-size:12px; }
  .setup-steps small { font-size:10px; }
  .onboarding-card { padding:23px; }
  .onboarding-card h2 { font-size:22px; }
}

.upload-note { padding:20px; border:1px solid var(--border); border-radius:14px; margin-bottom:24px; background:var(--accent-soft); }
.upload-note p { margin-bottom:12px; color:var(--muted); }

.onboarding-card .status-message[data-kind="error"] { color:var(--danger); }

.totp-qr { display:block; width:260px; max-width:100%; height:auto; margin:20px auto; background:#fff; image-rendering:pixelated; }
#totp-manual { margin:20px 0; overflow-wrap:anywhere; }
#totp-manual summary { cursor:pointer; color:var(--muted); line-height:1.5; }

.button-skip { background:#fff; color:#242032; border-color:#d7d2e3; margin-top:12px; }
.button-skip:hover:not(:disabled) { background:#f1edf8; }
#skip-passkey-dialog .button + .button { margin-top:12px; }
#skip-passkey-dialog .button-danger { background:#b42336; color:#fff; }
.file-toolbar-actions { flex-wrap:wrap; }
.file-actions { flex-wrap:wrap; max-width:180px; }
@media(min-width:761px) { .list-heading,.file-row { grid-template-columns:minmax(120px,1fr) 85px 110px 180px; } }
@media(max-width:760px) { .file-actions { max-width:100px; } .file-toolbar { align-items:flex-start; } }
