:root {
    color-scheme: dark;
    --sky: #090b10;
    --surface: #13161c;
    --raised: #1b1f26;
    --line: #2b3038;
    --line-soft: #22262e;
    --text: #e9edf1;
    --muted: #969ca8;
    --dim: #828b98;
    --accent: #9bdcde;
    --accent-ink: #122a2d;
    --gold: #dfc091;
    --danger: #f199a1;
    --success: #9bcbb0;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: var(--sky); scrollbar-gutter: stable; }
body { margin: 0; color: var(--text); font: 14px/1.6 "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; letter-spacing: 0; }
button, input, textarea, select { font: inherit; letter-spacing: 0; }
button, a, input, textarea, summary { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: var(--raised); cursor: pointer; line-height: 1.4; font-weight: 500; transition: background .15s, border-color .15s, color .15s; }
button:hover, .button:hover { background: #262c34; border-color: #4b555f; color: var(--text); }
button:disabled { opacity: .48; cursor: default; }
.primary, .button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 650; }
.primary:hover { background: #b5e9e9; border-color: #b5e9e9; color: var(--accent-ink); }
.danger { color: var(--danger); border-color: #694149; background: #302126; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
input, textarea { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 6px; background: #101319; color: var(--text); padding: 11px 13px; outline-offset: 2px; }
input::placeholder, textarea::placeholder { color: var(--dim); }
input:focus, textarea:focus { border-color: var(--accent); }
input[type="radio"], input[type="checkbox"] { width: auto; accent-color: var(--accent); }
textarea { resize: vertical; min-height: 110px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 28px; font-weight: 600; line-height: 1.35; margin-bottom: 0; }
h2 { font-size: 18px; font-weight: 600; line-height: 1.45; margin-bottom: 0; }
h3 { font-size: 15px; font-weight: 600; }
svg.lucide, i[data-lucide] { width: 18px; height: 18px; flex: 0 0 18px; stroke-width: 1.7; vertical-align: middle; }
img, video { max-width: 100%; }
.muted, .subtle { color: var(--muted); }
.mono, code, pre { font-family: "Cascadia Code", Consolas, monospace; }
.icon-button { width: 38px; min-height: 38px; flex: 0 0 38px; padding: 8px; background: transparent; border: 1px solid transparent; }
.text-button { border: 0; padding: 4px 0; min-height: 32px; background: transparent; color: var(--muted); }
.text-button:hover { background: transparent; color: var(--text); }
#starfield { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.page-shell { position: relative; z-index: 1; width: min(1120px, calc(100% - 64px)); margin: 0 auto; min-height: 100svh; display: flex; flex-direction: column; }
.page-shell.layout-wide { width: min(1320px, calc(100% - 64px)); }
.site-header { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid #ffffff0d; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; font-size: 18px; font-weight: 600; }
.brand span { overflow-wrap: anywhere; }
.brand img { object-fit: contain; border-radius: 6px; flex-shrink: 0; }
.site-nav { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.site-nav a { min-height: 38px; display: flex; align-items: center; gap: 7px; padding: 8px 13px; font-size: 13px; color: var(--muted); border-radius: 6px; }
.site-nav a[aria-current] { color: var(--text); background: #ffffff09; }
.site-nav a:hover { color: var(--accent); background: #ffffff07; }
#main { width: min(960px, 100%); margin: 58px auto 72px; flex: 1; min-width: 0; }
.layout-wide #main { width: 100%; }
.workspace-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.eyebrow { display: flex; align-items: center; gap: 7px; font-size: 10px; color: var(--muted); margin-bottom: 11px; }
.status-dot, .footer-dot { display: inline-block; width: 5px; height: 5px; background: var(--accent); border-radius: 50%; }
.heading-period { color: var(--accent); margin-left: 3px; }
.pickup-form { width: 248px; flex: 0 0 248px; }
.pickup-form > label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 7px; }
.pickup-input { display: flex; align-items: center; gap: 4px; padding: 0 5px 0 12px; background: #101319ee; border: 1px solid var(--line); border-radius: 6px; height: 43px; }
.pickup-input > svg { color: var(--dim); width: 16px; }
.pickup-input input { border: 0; background: none; padding: 9px 7px; }
.pickup-input button { color: var(--accent); }
.composer-tabs { display: flex; align-items: center; gap: 22px; border-bottom: 1px solid var(--line); height: 53px; }
.composer-tabs > button { position: relative; background: transparent; border: 0; border-radius: 0; padding: 14px 3px; min-height: 53px; color: var(--muted); gap: 8px; }
.composer-tabs > button[aria-selected="true"] { color: var(--accent); }
.composer-tabs > button[aria-selected="true"]::after { content: ""; height: 2px; background: var(--accent); position: absolute; bottom: -1px; left: 0; right: 0; }
.tab-end { margin-left: auto; font-size: 12px; color: var(--dim); }
.mode-panel { padding-top: 22px; min-width: 0; }
.dropzone { position: relative; min-height: 270px; display: flex; flex-direction: column; justify-content: center; align-items: center; border: 1px dashed #3b444e; border-radius: 6px; background: #12161cdb; transition: border-color .15s, background .15s; text-align: center; padding: 30px; }
.dropzone.is-dragging { background: #192f32; border-color: var(--accent); }
.upload-symbol { margin-bottom: 14px; color: var(--accent); }
.upload-symbol svg { width: 34px; height: 34px; stroke-width: 1.2; }
.dropzone h2 { font-size: 16px; font-weight: 500; }
.dropzone p { font-size: 12px; margin: 6px 0 20px; }
.choose-file { min-width: 124px; background: #20272f; }
.dropzone:focus-within { border-color: var(--accent); }
.dropzone.has-files { min-height: 108px; flex-direction: row; gap: 15px; justify-content: flex-start; padding: 22px; }
.dropzone.has-files .upload-symbol { margin: 0; }
.dropzone.has-files h2 { flex: 1; text-align: left; }
.dropzone.has-files p { display: none; }
.file-queue { max-height: 330px; overflow: auto; }
.queue-row { display: flex; align-items: center; gap: 13px; padding: 15px 2px; border-bottom: 1px solid var(--line-soft); }
.file-thumb { display: grid; place-items: center; width: 40px; height: 44px; flex: 0 0 40px; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; color: var(--gold); background: var(--surface); }
.file-thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-info { flex: 1; min-width: 0; }
.file-info strong { display: block; font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
.file-info small { color: var(--muted); font-size: 11px; }
.queue-row.invalid { color: var(--danger); }
.attachment-note { padding: 17px 0; }
.attachment-note summary { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; cursor: pointer; color: var(--muted); list-style: none; }
.attachment-note summary::-webkit-details-marker { display: none; }
.attachment-note textarea { margin-top: 12px; }
.text-editor { min-height: 310px; border: 0; border-radius: 6px 6px 0 0; background: #12161cf2; font: 14px/1.8 "Cascadia Code", Consolas, monospace; padding: 22px; }
.editor-status { background: #12161cf2; padding: 8px 20px; text-align: right; color: var(--dim); font-size: 11px; border-radius: 0 0 6px 6px; }
.link-editor { min-height: 312px; background: #12161ceb; padding: 60px 48px; border-radius: 6px; }
.link-editor > svg { color: var(--accent); width: 26px; height: 26px; margin-bottom: 14px; }
.link-editor label { display: block; margin-bottom: 10px; }
.link-editor input { font-family: "Cascadia Code", Consolas, monospace; }
.send-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 0; border-top: 1px solid var(--line); margin-top: 6px; }
.settings-button { background: transparent; padding: 8px 0; border: 0; gap: 9px; font-size: 12px; min-width: 0; }
.settings-button:hover { background: transparent; }
.settings-button > svg { color: var(--muted); }
.settings-summary { color: var(--dim); font-size: 11px; }
.send-actions { display: flex; align-items: center; gap: 12px; }
.send-actions > .password-wrap { width: 164px; }
.password-wrap { position: relative; display: flex; align-items: center; min-width: 0; }
.password-wrap input { padding-right: 40px; min-height: 42px; font-size: 13px; }
.password-wrap > button { position: absolute; right: 2px; color: var(--muted); }
#send-button { min-width: 138px; min-height: 44px; }
.upload-progress { margin: 12px 0 20px; padding: 18px 0; }
.progress-top, .progress-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.progress-top { margin-bottom: 9px; font-size: 13px; }
.progress-bottom { margin-top: 6px; font-size: 11px; }
.progress-bottom button { font-size: 11px; }
progress { width: 100%; height: 5px; display: block; border: 0; border-radius: 0; accent-color: var(--accent); background: var(--line); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--line); }
progress::-webkit-progress-value { background: var(--accent); transition: width .16s; }
progress::-moz-progress-bar { background: var(--accent); }
progress:indeterminate { background: repeating-linear-gradient(90deg, var(--line) 0 35%, var(--accent) 45% 65%, var(--line) 75% 100%); background-size: 200% 100%; animation: progress-pulse 1.5s linear infinite; }
@keyframes progress-pulse { to { background-position: -200% 0; } }
.notice { font-size: 13px; padding: 12px 15px; border-left: 2px solid var(--gold); background: #25221cf2; margin: 0 0 20px; overflow-wrap: anywhere; }
.notice.error { border-color: var(--danger); color: #f1bdc2; background: #291d24f5; }
.notice.success { border-color: var(--success); color: #b9ddc8; background: #192820f5; }
dialog { color: var(--text); background: #15181f; border: 1px solid #383f49; border-radius: 8px; padding: 0; box-shadow: 0 24px 70px #0008; max-width: calc(100% - 32px); }
dialog::backdrop { background: #03050ab8; }
.dialog-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.dialog-top h2 { font-size: 18px; }
.dialog-body { padding: 25px; overflow-y: auto; flex: 1; }
.dialog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 18px 24px; border-top: 1px solid var(--line); }
.settings-dialog { margin: 0 0 0 auto; max-height: 100svh; height: 100svh; width: 430px; max-width: 100%; border-radius: 0; }
.settings-dialog[open] { display: flex; flex-direction: column; }
fieldset { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
legend, .field-label { font-size: 13px; font-weight: 600; padding: 0; margin-bottom: 12px; }
.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.choice { position: relative; cursor: pointer; min-width: 0; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice > span { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 38px; padding: 8px 7px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.choice input:checked + span { color: var(--accent); border-color: #558b90; background: #1d3034; }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.privacy-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.privacy-choices .choice > span { justify-content: flex-start; padding: 11px; }
.field { margin-bottom: 22px; }
.field > label { display: block; font-size: 13px; margin-bottom: 8px; color: var(--muted); }
.switch-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.switch-row .field-label { margin: 0; }
.switch { position: relative; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch span { display: block; width: 34px; height: 20px; background: #353b45; border-radius: 20px; position: relative; }
.switch span::after { content: ""; position: absolute; width: 14px; height: 14px; top: 3px; left: 3px; background: #b6bbc3; border-radius: 50%; transition: transform .15s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { background: var(--accent-ink); transform: translateX(14px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 4px; }
.language-search { margin-bottom: 10px; font-size: 12px; }
.language-choices { max-height: 210px; overflow-y: auto; padding: 2px; }
.confirm-dialog { width: 400px; }
.confirm-dialog > p { padding: 25px; margin: 0; color: var(--muted); }
.page-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 22px 0; color: var(--dim); font-size: 11px; border-top: 1px solid #ffffff0c; }
.page-footer > span, .page-footer a { display: inline-flex; align-items: center; gap: 7px; }
.page-footer svg { width: 14px; height: 14px; }
.footer-dot { background: #697982; width: 4px; height: 4px; }
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 100; background: #293239; color: var(--text); border: 1px solid #46535b; padding: 12px 22px; border-radius: 6px; box-shadow: 0 8px 28px #0006; max-width: calc(100% - 32px); font-size: 13px; }
.visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 100; background: var(--surface); padding: 12px; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 28px; }
.page-heading h1 { font-size: 26px; }
.page-heading p { margin: 6px 0 0; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.share-header { padding-bottom: 26px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.share-title { display: flex; align-items: center; gap: 10px; }
.share-title > svg { width: 24px; height: 24px; color: var(--gold); }
.share-receipt { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 25px; }
.pickup-code { display: flex; align-items: center; gap: 13px; }
.pickup-code > span { color: var(--muted); font-size: 12px; }
.pickup-code strong { font-size: 25px; color: var(--gold); font-weight: 500; }
.share-url { display: flex; align-items: center; flex: 1; max-width: 550px; min-width: 0; border-bottom: 1px solid var(--line); gap: 8px; }
.share-url input { border: 0; background: transparent; color: var(--muted); font: 12px/1.5 Consolas, monospace; padding-left: 0; }
.content-section { margin: 28px 0; min-width: 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-heading h2 { font-size: 15px; }
.section-heading .count { color: var(--dim); margin-left: 9px; font-size: 12px; }
.segmented { display: inline-flex; gap: 2px; border: 1px solid var(--line); padding: 2px; border-radius: 6px; }
.segmented button { min-height: 32px; width: 34px; padding: 7px; background: none; border: 0; }
.segmented button[aria-pressed="true"] { background: #2a343c; color: var(--accent); }
.file-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.file-card { min-width: 0; background: #14181ff5; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.file-preview { height: 158px; display: flex; align-items: center; justify-content: center; background: #101319; border-bottom: 1px solid var(--line-soft); color: var(--gold); position: relative; }
.file-preview img, .file-preview video { width: 100%; height: 100%; object-fit: contain; }
.file-preview > svg { width: 34px; height: 34px; stroke-width: 1.2; }
.file-extension { position: absolute; bottom: 10px; left: 12px; color: var(--dim); font-size: 10px; }
.file-meta { display: flex; align-items: center; gap: 8px; padding: 13px; }
.file-text { flex: 1; min-width: 0; }
.file-name { display: block; overflow-wrap: anywhere; font-size: 12px; }
.file-size { font-size: 11px; color: var(--dim); }
.file-grid[data-view="list"] { display: flex; flex-direction: column; gap: 0; }
.file-grid[data-view="list"] .file-card { display: flex; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: #11151cdd; }
.file-grid[data-view="list"] .file-preview { width: 60px; height: 64px; flex: 0 0 60px; border: 0; }
.file-grid[data-view="list"] .file-preview > svg { width: 24px; height: 24px; }
.file-grid[data-view="list"] .file-extension { display: none; }
.file-grid[data-view="list"] .file-meta { flex: 1; min-width: 0; }
.file-grid[data-view="stream"] { grid-template-columns: minmax(0,1fr); }
.file-grid[data-view="stream"] .file-preview { height: auto; min-height: 180px; max-height: 600px; }
.file-grid[data-view="stream"] .file-preview img, .file-grid[data-view="stream"] .file-preview video { max-height: 600px; }
.code-shell { background: #14171ef5; border: 1px solid var(--line); border-radius: 6px; overflow: auto; }
.code-shell pre { margin: 0; padding: 22px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.8; }
.code-shell code.hljs { padding: 0; background: transparent; }
.code-shell pre[style] { background: transparent !important; }
.metadata { display: flex; gap: 22px; flex-wrap: wrap; padding-top: 22px; margin-top: 30px; border-top: 1px solid var(--line-soft); color: var(--dim); font-size: 11px; }
.action-menu { position: relative; }
.action-menu summary { display: grid; place-items: center; list-style: none; cursor: pointer; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.action-menu summary::-webkit-details-marker { display: none; }
.menu-items { position: absolute; right: 0; top: 45px; min-width: 154px; background: #20252d; border: 1px solid #3a424e; border-radius: 6px; padding: 5px; z-index: 5; box-shadow: 0 10px 30px #0006; }
.menu-items > a { display: flex; gap: 10px; padding: 9px; font-size: 12px; }
.menu-items > a:hover { background: #2e3540; border-radius: 4px; }
.menu-items .delete-link { color: var(--danger); }
.unlock-panel { display: flex; align-items: flex-end; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.unlock-panel .field { flex: 1; max-width: 330px; margin: 0; }
.auth-page { max-width: 370px; margin: 25px auto 90px; }
.auth-mark { color: var(--accent); margin-bottom: 25px; }
.auth-mark svg { width: 32px; height: 32px; stroke-width: 1.3; }
.auth-page h1 { font-size: 25px; margin-bottom: 12px; }
.auth-page > .muted { margin-bottom: 28px; font-size: 13px; }
.auth-page form { padding-top: 15px; }
.auth-page form > .primary { width: 100%; margin-top: 6px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 22px; }
.edit-form .text-editor { border: 1px solid var(--line); min-height: 350px; }
.edit-actions { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; margin-top: 22px; }
.edit-actions .field { margin: 0; max-width: 300px; flex: 1; }
.qr-page { text-align: center; max-width: 370px; margin: 20px auto 70px; }
.qr-frame { background: white; width: 256px; height: 256px; padding: 18px; margin: 30px auto; border-radius: 6px; }
.qr-frame svg { width: 100%; height: 100%; }
.qr-page .mono { color: var(--gold); }
.filter-bar { display: flex; gap: 16px; justify-content: space-between; align-items: center; margin: 20px 0; }
.filter-tabs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.filter-tabs button { min-height: 34px; background: none; border-color: transparent; padding: 7px 12px; font-size: 12px; color: var(--muted); }
.filter-tabs button[aria-pressed="true"] { background: #252d34; color: var(--accent); }
.search-input { width: 220px; padding: 8px 12px; font-size: 12px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; background: #11151de8; }
thead th { color: var(--dim); font-weight: 500; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
tbody td { padding: 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
tbody tr:hover { background: #ffffff03; }
.item-title { max-width: 340px; overflow-wrap: anywhere; font-weight: 500; color: var(--text); }
.item-title a { display: inline-flex; align-items: center; gap: 9px; }
.item-title svg { color: var(--gold); }
.item-subtitle { font-size: 11px; color: var(--dim); display: block; margin: 4px 0 0 27px; }
.row-actions { display: flex; gap: 2px; justify-content: flex-end; }
.status-tag { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.status-tag svg { width: 13px; height: 13px; }
.empty-state { padding: 72px 20px; text-align: center; color: var(--muted); border-top: 1px solid var(--line); }
.empty-state > svg { width: 30px; height: 30px; margin-bottom: 14px; color: var(--dim); }
.empty-state p { margin-bottom: 22px; }
.admin-tabs { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.system-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 25px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.system-stats small { display: block; color: var(--muted); font-size: 12px; }
.system-stats strong { display: block; font-size: 20px; font-weight: 500; margin-top: 8px; overflow-wrap: anywhere; }
.config-table { margin-top: 25px; }
.config-table td { overflow-wrap: anywhere; }
.guide-page { max-width: 700px; margin: 0 auto; }
.guide-page article { padding: 25px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 25px; }
.guide-page article h2 { font-size: 16px; margin-bottom: 10px; }
.guide-page article p { color: var(--muted); font-size: 13px; margin-bottom: 0; }
@media (min-width: 1500px) { #main { margin-top: 80px; } }
@media (max-width: 900px) {
    .page-shell { width: calc(100% - 48px); }
    .send-bar { flex-wrap: wrap; }
    .send-actions { margin-left: auto; }
    .settings-summary { display: none; }
    .file-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .optional-column { display: none; }
}
@media (max-width: 600px) {
    .page-shell, .page-shell.layout-wide { width: calc(100% - 32px); }
    .site-header { min-height: 74px; gap: 12px; }
    .brand { font-size: 16px; gap: 8px; }
    .brand img { width: 25px; height: 25px; }
    .site-nav { gap: 1px; }
    .site-nav a { padding: 8px; min-width: 34px; justify-content: center; }
    .site-nav a span { display: none; }
    #main { margin-top: 35px; margin-bottom: 45px; }
    .workspace-heading { flex-direction: column; align-items: stretch; gap: 25px; margin-bottom: 20px; }
    h1 { font-size: 25px; }
    .pickup-form { width: 100%; flex: auto; display: flex; align-items: center; gap: 15px; }
    .pickup-form > label { flex-shrink: 0; margin: 0; }
    .pickup-input { flex: 1; min-width: 0; }
    .composer-tabs { gap: 20px; }
    .composer-tabs > button { font-size: 13px; }
    .tab-end { font-size: 10px; }
    .dropzone { min-height: 245px; padding: 25px 15px; }
    .dropzone.has-files { padding: 15px; gap: 10px; }
    .dropzone.has-files .upload-symbol { display: none; }
    .dropzone.has-files h2 { font-size: 13px; }
    .dropzone.has-files .choose-file { min-width: 100px; padding: 8px; font-size: 12px; }
    .text-editor { min-height: 280px; padding: 16px; }
    .link-editor { padding: 45px 20px; min-height: 290px; }
    .send-bar { gap: 10px; }
    .settings-button { padding: 4px 0; min-height: 30px; }
    .settings-summary { display: inline; }
    .send-actions { width: 100%; justify-content: flex-end; }
    .send-actions > .password-wrap { flex: 1; width: auto; }
    #send-button { min-width: 130px; }
    .settings-dialog { width: 100%; height: auto; max-height: 89svh; margin: auto 0 0; border-radius: 8px 8px 0 0; }
    .dialog-top { padding: 15px 20px; }
    .dialog-body { padding: 20px; }
    .dialog-actions { padding: 14px 20px; }
    .share-receipt { flex-direction: column; align-items: stretch; gap: 15px; }
    .pickup-code strong { font-size: 23px; }
    .share-url { max-width: none; }
    .page-heading { gap: 12px; }
    .page-heading h1 { font-size: 24px; }
    .page-heading .button { font-size: 12px; padding: 8px 12px; }
    .file-grid { grid-template-columns: minmax(0,1fr); }
    .file-preview { height: 205px; }
    .metadata { gap: 10px 20px; }
    .unlock-panel { flex-wrap: wrap; }
    .unlock-panel .field { flex: 1 0 100%; max-width: none; }
    .filter-bar { flex-direction: column; align-items: stretch; gap: 12px; }
    .search-input { width: 100%; }
    thead th { padding: 11px 8px; }
    tbody td { padding: 14px 8px; }
    .date-column, .size-column { display: none; }
    .item-title { max-width: 190px; }
    .item-title a { align-items: flex-start; }
    .row-actions .icon-button { width: 30px; min-height: 34px; flex-basis: 30px; padding: 5px; }
    .system-stats { grid-template-columns: minmax(0,1fr); gap: 20px; }
    .system-stats strong { font-size: 18px; }
    .edit-actions { flex-wrap: wrap; }
    .edit-actions .field { flex-basis: 100%; max-width: none; }
    .edit-actions .primary { margin-left: auto; }
    .page-footer { padding: 20px 0; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
