:root {
  color-scheme: light;
  --bg: #f1f3ef;
  --surface: rgba(255, 255, 255, 0.8);
  --surface-solid: #ffffff;
  --surface-soft: #e8ece6;
  --ink: #17201b;
  --muted: #657069;
  --line: rgba(23, 32, 27, 0.12);
  --accent: #5ee68d;
  --accent-strong: #1e9b54;
  --accent-ink: #0b301b;
  --shadow: 0 24px 60px rgba(37, 50, 41, 0.1);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 14px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d120f;
  --surface: rgba(25, 32, 27, 0.82);
  --surface-solid: #191f1b;
  --surface-soft: #202923;
  --ink: #eef7f0;
  --muted: #9ba9a0;
  --line: rgba(228, 244, 233, 0.12);
  --accent: #6eee9a;
  --accent-strong: #45ce76;
  --accent-ink: #072414;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--bg); overflow-x: hidden; }
button, textarea { font: inherit; }
button { color: inherit; }
input { font: inherit; color: var(--ink); }
.hidden { display: none !important; }

.ambient { position: fixed; border-radius: 999px; filter: blur(4px); pointer-events: none; opacity: .7; }
.ambient-one { width: 38vw; height: 38vw; left: -16vw; top: 18vh; background: radial-gradient(circle, rgba(94,230,141,.22), transparent 68%); }
.ambient-two { width: 34vw; height: 34vw; right: -14vw; top: -12vw; background: radial-gradient(circle, rgba(95,151,255,.14), transparent 68%); }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; position: relative; }
.loading-view { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 18px; color: var(--muted); }
.loading-view p { font-size: 13px; }
.loading-mark { width: 50px; height: 50px; border-radius: 16px; background: var(--ink); display: grid; place-content: center; gap: 5px; animation: breathe 1.8s ease-in-out infinite; }
.loading-mark span { width: 20px; height: 3px; display: block; border-radius: 9px; background: var(--accent); }
.loading-mark span:last-child { width: 12px; margin-left: 8px; }
@keyframes breathe { 50% { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(69,206,118,.18); } }
.auth-view { width: min(1180px, calc(100% - 40px)); min-height: 100vh; margin: 0 auto; position: relative; padding: 26px 0 60px; }
.auth-brand { min-height: 66px; display: inline-flex; align-items: center; gap: 12px; }
.auth-brand > span:last-child { display: grid; gap: 2px; }
.auth-brand strong { font-size: 16px; }
.auth-brand small { color: var(--muted); font-size: 11px; }
.auth-layout { min-height: calc(100vh - 152px); display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: clamp(50px, 8vw, 120px); align-items: center; }
.auth-intro h1 { font-size: clamp(48px, 6vw, 78px); }
.auth-intro > p:not(.eyebrow) { max-width: 500px; margin: 25px 0 0; color: var(--muted); line-height: 1.75; }
.auth-points { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.auth-points span { padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface); font-size: 12px; }
.auth-card { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow); backdrop-filter: blur(24px); }
.auth-card-head { margin-bottom: 25px; }
.auth-card h2, .settings-dialog h2 { margin: 0; font-size: 28px; letter-spacing: -.04em; }
.auth-card-head > p:last-child { margin: 9px 0 0; color: var(--muted); line-height: 1.6; font-size: 13px; }
.field-label { display: flex; justify-content: space-between; margin: 15px 2px 7px; color: var(--muted); font-size: 12px; font-weight: 650; }
.field-label span { font-weight: 400; }
.auth-card input, .account-form input { width: 100%; height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-md); outline: none; background: var(--surface-soft); }
.auth-card input:focus, .account-form input:focus { border-color: var(--accent-strong); box-shadow: 0 0 0 4px rgba(69,206,118,.12); }
.password-field { position: relative; }
.password-field input { padding-right: 60px; }
.password-toggle { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); }
.form-error { min-height: 20px; margin: 11px 2px 5px; color: #e15757; font-size: 12px; line-height: 1.5; }
.button.wide { width: 100%; }
.auth-footnote { color: var(--muted); text-align: center; font-size: 10px; margin: 14px 0 0; }
.topbar { height: 92px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 12px; }
.brand > span:last-child { display: grid; gap: 2px; }
.brand strong { font-size: 16px; letter-spacing: -.02em; }
.brand small { color: var(--muted); font-size: 11px; }
.brand-mark { width: 40px; height: 40px; border-radius: 13px; background: var(--ink); display: grid; place-content: center; gap: 4px; transform: rotate(-3deg); }
.brand-mark span { display: block; width: 17px; height: 3px; border-radius: 9px; background: var(--accent); }
.brand-mark span:last-child { width: 11px; margin-left: 6px; }
.top-actions { display: flex; align-items: center; gap: 9px; }
.status-pill, .limit-chip, .coming-chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; color: var(--muted); font-size: 12px; padding: 8px 12px; backdrop-filter: blur(18px); }
.status-pill { display: inline-flex; align-items: center; gap: 7px; }
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-strong); box-shadow: 0 0 0 4px rgba(69,206,118,.14); }
.icon-button, .avatar-button { border: 1px solid var(--line); background: var(--surface); width: 42px; height: 42px; border-radius: 14px; cursor: pointer; backdrop-filter: blur(18px); transition: transform .18s ease, background .18s ease; }
.icon-button:hover, .avatar-button:hover { transform: translateY(-2px); background: var(--surface-solid); }
.avatar-button { background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 800; border-color: transparent; }
main { padding: 70px 0 52px; }
.hero-copy { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 42px; gap: 30px; }
.eyebrow, .section-kicker { margin: 0 0 12px; color: var(--accent-strong); font-weight: 800; font-size: 11px; letter-spacing: .16em; }
h1 { margin: 0; max-width: 720px; font-size: clamp(45px, 6.6vw, 84px); line-height: .98; letter-spacing: -.065em; font-weight: 680; }
h1 span { color: var(--muted); }
.hero-note { color: var(--muted); max-width: 300px; line-height: 1.7; margin: 0 0 8px; font-size: 14px; }
.hero-side { display: grid; justify-items: start; gap: 10px; }
.last-sync { color: var(--muted); font-size: 11px; border-bottom: 1px dashed var(--line); padding-bottom: 3px; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); gap: 18px; }
.panel, .future-panel { border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); backdrop-filter: blur(24px); }
.panel { border-radius: var(--radius-xl); padding: 28px; min-height: 440px; }
.panel-heading { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 22px; }
.panel-heading h2, .future-panel h2 { margin: 0; font-size: 25px; letter-spacing: -.035em; }
.section-kicker { margin-bottom: 7px; }
textarea { width: 100%; height: 230px; resize: vertical; border: 1px solid var(--line); background: var(--surface-soft); color: var(--ink); border-radius: var(--radius-lg); padding: 20px; outline: none; line-height: 1.65; transition: border-color .2s ease, box-shadow .2s ease; }
textarea::placeholder { color: var(--muted); opacity: .72; }
textarea:focus { border-color: var(--accent-strong); box-shadow: 0 0 0 4px rgba(69,206,118,.12); }
.composer-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; padding: 10px 5px 18px; }
.primary-actions { display: grid; grid-template-columns: 1fr 1.15fr; gap: 10px; }
.button { min-height: 49px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface-solid); color: var(--ink); cursor: pointer; font-weight: 720; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }
.button:hover { transform: translateY(-2px); }
.button:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.button.primary { border-color: transparent; background: var(--accent); color: var(--accent-ink); box-shadow: 0 12px 28px rgba(47,191,99,.2); }
.button.primary:hover { background: var(--accent-strong); color: #fff; }
.button.secondary span { margin-right: 5px; }
.button.compact { min-height: 40px; padding: 0 14px; font-size: 12px; }
.privacy-line { display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--muted); font-size: 11px; margin: 17px 0 0; }
.history-panel { display: flex; flex-direction: column; }
.history-list { display: grid; gap: 8px; max-height: 560px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.record-card { padding: 13px 14px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 16px; }
.record-card.latest { border-color: rgba(69,206,118,.38); box-shadow: inset 3px 0 0 var(--accent-strong); }
.record-head, .record-foot, .record-meta, .record-actions { display: flex; align-items: center; }
.record-head, .record-foot { justify-content: space-between; gap: 12px; }
.record-meta { gap: 8px; }
.record-index { padding: 4px 7px; border-radius: 999px; background: var(--surface-solid); color: var(--accent-strong); font-weight: 800; font-size: 10px; }
.record-head time, .record-expiry, .record-foot > span { color: var(--muted); font-size: 10px; }
.record-content { margin: 10px 0; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 240px; overflow-y: auto; color: var(--ink); font: 12px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; }
.record-actions { justify-content: flex-end; gap: 8px; }
.text-button { border: 0; padding: 5px 7px; color: var(--muted); background: transparent; font: inherit; font-size: 11px; cursor: pointer; }
.text-button:hover { color: var(--accent-strong); }
.delete-text-button { color: #d95757; }
.delete-text-button:hover { color: #ef6a6a; }
.record-copy { min-height: 32px; padding: 0 10px; font-size: 10px; border-radius: 10px; }
.history-state { flex: 1; display: grid; place-items: center; align-content: center; text-align: center; padding: 25px; }
.empty-orbit { width: 72px; height: 72px; border: 1px dashed var(--line); border-radius: 50%; display: grid; place-items: center; margin-bottom: 18px; position: relative; }
.empty-orbit::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--surface-soft); }
.empty-orbit span { z-index: 1; color: var(--accent-strong); font-size: 24px; }
.history-state h3 { margin: 0 0 8px; font-size: 16px; }
.history-state p { margin: 0; color: var(--muted); max-width: 260px; line-height: 1.65; font-size: 13px; }
.future-panel { margin-top: 18px; border-radius: var(--radius-lg); min-height: 135px; padding: 25px 28px; display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; box-shadow: none; }
.future-panel p:last-child { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.future-icon { width: 58px; height: 58px; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: 18px; color: var(--muted); font-size: 24px; }
.coming-chip { opacity: .72; }
.site-footer { min-height: 94px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 18px; color: var(--muted); font-size: 11px; }
.legal-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 18px; }
.legal-footer a { color: var(--muted); text-decoration: none; }
.legal-footer a:hover { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
.auth-legal { position: absolute; left: 0; right: 0; bottom: 24px; justify-content: center; font-size: 11px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 999px; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast[data-tone="success"] { background: var(--accent); color: var(--accent-ink); }
.toast[data-tone="error"] { background: #d95757; color: #fff; }
.limit-error { color: #e15757 !important; font-weight: 700; }
.settings-dialog { width: min(560px, calc(100% - 28px)); max-height: min(780px, calc(100vh - 28px)); padding: 0; color: var(--ink); background: var(--surface-solid); border: 1px solid var(--line); border-radius: 26px; box-shadow: 0 35px 100px rgba(0,0,0,.34); overflow: auto; }
.settings-dialog::backdrop { background: rgba(5,11,7,.56); backdrop-filter: blur(8px); }
.dialog-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 24px 26px; border-bottom: 1px solid var(--line); background: var(--surface-solid); }
.settings-section { padding: 24px 26px; border-bottom: 1px solid var(--line); }
.settings-section h3 { margin: 0 0 14px; font-size: 14px; }
.theme-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.theme-options label { cursor: pointer; }
.theme-options input { position: absolute; opacity: 0; pointer-events: none; }
.theme-options span { display: grid; gap: 3px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; font-size: 12px; font-weight: 720; }
.theme-options small { color: var(--muted); font-weight: 400; }
.theme-options input:checked + span { border-color: var(--accent-strong); background: rgba(69,206,118,.1); box-shadow: inset 0 0 0 1px var(--accent-strong); }
.settings-title { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.settings-title > span { color: var(--muted); font-size: 11px; }
.account-form { margin-top: 4px; }
.button.danger { margin: 20px 26px 26px; width: calc(100% - 52px); border-color: rgba(217,87,87,.25); color: #d95757; background: rgba(217,87,87,.06); }
.history-link, .back-link { white-space: nowrap; }
.compact-content { max-height: 84px; overflow: hidden; }
.compact-record .record-foot { min-height: 32px; }
.history-main { padding-top: 58px; }
.history-hero { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: end; margin-bottom: 36px; }
.history-hero h1 { font-size: clamp(44px, 6vw, 72px); }
.history-hero > p { margin: 0 0 5px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.history-browser { min-height: 500px; padding: 24px; }
.history-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.search-form { display: grid; grid-template-columns: minmax(220px, 1fr) 90px 90px; gap: 8px; flex: 1; max-width: 760px; }
.search-form input { min-width: 0; height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 13px; outline: none; background: var(--surface-soft); }
.search-form input:focus { border-color: var(--accent-strong); box-shadow: 0 0 0 4px rgba(69,206,118,.1); }
.history-total { color: var(--muted); font-size: 12px; white-space: nowrap; }
.selection-bar { min-height: 58px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.check-control { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; cursor: pointer; }
.check-control input, .record-select { width: 17px; height: 17px; accent-color: var(--accent-strong); }
.danger-inline { min-height: 38px !important; border-color: rgba(217,87,87,.25); color: #d95757; background: rgba(217,87,87,.06); }
.full-history-list { display: grid; gap: 9px; }
.full-record { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 13px; padding: 14px 16px; transition: border-color .18s ease, background .18s ease; }
.full-record.selected { border-color: var(--accent-strong); background: rgba(69,206,118,.08); }
.record-select { margin-top: 3px; }
.full-record-body { min-width: 0; }
.history-content { max-height: 108px; overflow: hidden; }
.history-content.expanded { max-height: 480px; overflow: auto; }
.record-id { color: var(--muted); font: 10px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; padding-left: 7px; border-left: 1px solid var(--line); }
.load-more { width: 100%; margin-top: 14px; }
.retention-form { display: grid; gap: 12px; }
.retention-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.retention-options label { cursor: pointer; }
.retention-options input { position: absolute; opacity: 0; pointer-events: none; }
.retention-options span { min-height: 43px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 13px; font-size: 12px; font-weight: 700; }
.retention-options input:checked + span { border-color: var(--accent-strong); color: var(--accent-strong); background: rgba(69,206,118,.1); box-shadow: inset 0 0 0 1px var(--accent-strong); }
.custom-retention { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; color: var(--muted); font-size: 12px; }
.custom-retention input { height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.setting-help { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.file-transfer-panel { margin-top: 18px; min-height: auto; }
.file-panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.file-panel-heading h2 { margin: 0; font-size: 27px; letter-spacing: -.04em; }
.file-panel-heading p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.file-heading-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px; }
.quota-label { color: var(--muted); font: 11px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: nowrap; }
.quota-track { height: 5px; overflow: hidden; border-radius: 999px; background: var(--surface-soft); }
.quota-track > span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--accent-strong); transition: width .3s ease, background .3s ease; }
.quota-track > span.warning { background: #e39a3b; }
.file-transfer-panel > .quota-track { margin: 18px 0 22px; }
.file-transfer-grid { display: grid; grid-template-columns: minmax(280px, 1.2fr) minmax(260px, .9fr) auto; gap: 12px; align-items: stretch; }
.file-dropzone { min-height: 104px; display: flex; align-items: center; gap: 16px; padding: 18px; border: 1px dashed var(--line); border-radius: 19px; background: var(--surface-soft); cursor: pointer; outline: none; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.file-dropzone:hover, .file-dropzone:focus-visible, .file-dropzone.dragging { border-color: var(--accent-strong); background: rgba(69,206,118,.09); transform: translateY(-2px); }
.file-drop-icon { width: 46px; height: 46px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 15px; color: var(--accent-ink); background: var(--accent); font-size: 21px; font-weight: 800; }
.file-dropzone div, .selected-file-empty { display: grid; gap: 5px; }
.file-dropzone strong, .selected-file strong { font-size: 13px; }
.file-dropzone small, .selected-file small, .selected-file span { color: var(--muted); font-size: 11px; }
.selected-file { min-width: 0; min-height: 104px; display: flex; align-items: center; gap: 13px; padding: 18px; border: 1px solid var(--line); border-radius: 19px; background: var(--surface-soft); }
.selected-file .file-card-body { min-width: 0; }
.file-upload-actions { display: grid; gap: 8px; min-width: 130px; }
.file-upload-actions .button { height: 100%; }
.upload-progress { grid-column: 1 / -1; position: relative; height: 28px; overflow: hidden; border-radius: 10px; background: var(--surface-soft); }
.upload-progress > span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--accent-strong), var(--accent)); transition: width .15s linear; }
.upload-progress small { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink); font-size: 10px; font-weight: 700; }
.recent-files-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 28px 0 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.recent-files-heading h3 { margin: 0; font-size: 16px; }
.recent-files-heading > span { color: var(--muted); font-size: 11px; }
.recent-file-list, .full-file-list { display: grid; gap: 8px; }
.file-empty-state { padding: 20px; border: 1px dashed var(--line); border-radius: 16px; color: var(--muted); text-align: center; font-size: 12px; }
.file-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 13px; align-items: center; min-width: 0; padding: 13px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-soft); }
.selectable-file-card { grid-template-columns: auto auto minmax(0, 1fr) auto; transition: border-color .18s ease, background .18s ease; }
.selectable-file-card.selected { border-color: var(--accent-strong); background: rgba(69,206,118,.08); }
.file-kind { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 13px; background: var(--surface-solid); color: var(--accent-strong); font: 800 9px/1 ui-monospace, SFMono-Regular, Consolas, monospace; border: 1px solid var(--line); }
.file-card-body { min-width: 0; display: grid; gap: 5px; }
.file-card-body strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.file-card-body span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.file-card-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.history-tabs { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 12px; padding: 4px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-soft); }
.history-tab { min-width: 130px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 11px; color: var(--muted); background: transparent; cursor: pointer; font-weight: 720; font-size: 12px; }
.history-tab.active { color: var(--accent-ink); background: var(--accent); box-shadow: 0 8px 20px rgba(47,191,99,.18); }
.file-history-quota { display: grid; grid-template-columns: minmax(180px, 320px) 1fr; gap: 18px; align-items: center; padding: 18px 0 5px; }
.file-history-quota > div:first-child { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; }
.file-history-quota strong { color: var(--ink); font: 11px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; }
.quota-dialog { width: min(590px, calc(100% - 28px)); max-height: calc(100vh - 28px); padding: 28px; color: var(--ink); background: var(--surface-solid); border: 1px solid var(--line); border-radius: 26px; box-shadow: 0 35px 100px rgba(0,0,0,.34); }
.quota-dialog::backdrop { background: rgba(5,11,7,.62); backdrop-filter: blur(8px); }
.quota-dialog-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 15px; color: #7b3d10; background: #ffc878; font-size: 22px; font-weight: 900; }
.quota-dialog h2 { margin: 0; font-size: 27px; letter-spacing: -.04em; }
.quota-dialog > p:not(.section-kicker) { margin: 10px 0 18px; color: var(--muted); line-height: 1.65; font-size: 13px; }
.quota-delete-list { display: grid; gap: 7px; max-height: 260px; overflow-y: auto; }
.quota-delete-list > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px; border: 1px solid rgba(217,87,87,.18); border-radius: 13px; background: rgba(217,87,87,.06); }
.quota-delete-list > div > div { min-width: 0; display: grid; gap: 4px; }
.quota-delete-list strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.quota-delete-list span, .quota-delete-list small { color: var(--muted); font-size: 10px; }
.quota-dialog-summary { margin-top: 14px; padding: 12px; border-radius: 13px; color: var(--muted); background: var(--surface-soft); font-size: 11px; line-height: 1.6; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 9px; margin-top: 18px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 840px) {
  .shell { width: min(100% - 26px, 680px); }
  .status-pill { display: none; }
  main { padding-top: 46px; }
  .hero-copy { display: block; }
  .hero-note { margin-top: 20px; }
  .workspace-grid { grid-template-columns: 1fr; }
  .auth-view { width: min(100% - 28px, 680px); }
  .auth-layout { grid-template-columns: 1fr; gap: 35px; padding: 55px 0; }
  .auth-intro h1 { font-size: clamp(44px, 11vw, 70px); }
  .auth-card { max-width: 520px; width: 100%; }
  .panel { min-height: auto; }
  .history-panel { min-height: 380px; }
  .history-hero { grid-template-columns: 1fr; gap: 18px; }
  .history-hero > p { max-width: 520px; }
  .file-transfer-grid { grid-template-columns: 1fr 1fr; }
  .file-upload-actions { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .topbar { height: 76px; }
  .brand small { display: none; }
  .auth-brand small { display: none; }
  .auth-view { width: calc(100% - 24px); padding-top: 16px; }
  .auth-layout { min-height: auto; padding: 56px 0 30px; }
  .auth-intro > p:not(.eyebrow), .auth-points { display: none; }
  .auth-card { padding: 23px 20px; border-radius: 24px; }
  main { padding-top: 36px; }
  h1 { font-size: clamp(40px, 13.4vw, 58px); }
  .hero-copy { margin-bottom: 30px; }
  .panel { padding: 20px; border-radius: 24px; }
  .panel-heading { align-items: center; }
  .panel-heading h2 { font-size: 22px; }
  .limit-chip { font-size: 10px; padding: 7px 9px; }
  textarea { height: 210px; padding: 16px; }
  .primary-actions { grid-template-columns: 1fr; }
  .record-head { align-items: flex-start; }
  .record-foot { display: grid; }
  .record-actions { justify-content: stretch; }
  .record-copy { flex: 1; }
  .theme-options { grid-template-columns: 1fr; }
  .site-footer { display: grid; padding: 25px 0; }
  .legal-footer { justify-content: flex-start; }
  .auth-legal { position: static; margin-top: 20px; padding-bottom: 20px; }
  .search-form { grid-template-columns: 1fr auto; }
  .search-form #clearSearch, .search-form #clearFileSearch { grid-column: 1 / -1; }
  .history-toolbar { align-items: flex-end; }
  .history-hero h1 { font-size: clamp(38px, 12vw, 54px); }
  .history-browser { padding: 16px; }
  .full-record { padding: 12px; gap: 9px; }
  .retention-options { grid-template-columns: repeat(2, 1fr); }
  .back-link { min-width: 42px; width: 42px; overflow: hidden; color: transparent; position: relative; }
  .back-link::after { content: "←"; position: absolute; color: var(--ink); inset: 0; display: grid; place-items: center; }
  .file-panel-heading { display: grid; }
  .file-heading-actions { justify-content: space-between; }
  .file-transfer-grid { grid-template-columns: 1fr; }
  .file-upload-actions { grid-column: auto; grid-template-columns: 1fr 1fr; }
  .upload-progress { grid-column: auto; }
  .file-card { grid-template-columns: auto minmax(0, 1fr); }
  .file-card-actions { grid-column: 2; justify-content: flex-start; }
  .selectable-file-card { grid-template-columns: auto auto minmax(0, 1fr); }
  .selectable-file-card .file-card-actions { grid-column: 3; }
  .history-tabs { width: 100%; }
  .history-tab { min-width: 0; }
  .file-history-quota { grid-template-columns: 1fr; gap: 9px; }
  .quota-dialog { padding: 22px; }
  .dialog-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
