/* Локальный визуальный макет. Текущий ориентир — присланные скриншоты. */
:root {
  color-scheme: dark;
  --bg: #14161b;
  --panel: #1d2027;
  --shell: #191c22;
  --line: #323641;
  --muted: #99a1b2;
  --text: #e8eaf0;
  --accent: #64cbd4;
  --hover: rgba(151,169,187,.055);
  --success: #91bfa9;
  --warning: #d9b573;
  --danger: #e99a9a;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; border: 0; background: transparent; }
a { color: inherit; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button, input, select { border-radius: 3px; }
input:not([type=checkbox]), select { min-width: 0; border: 1px solid #3c4250; background: #181b22; color: var(--text); padding: 10px 12px; }
input:focus, select:focus { outline: 1px solid var(--accent); outline-offset: 0; }
input::placeholder { color: #788294; opacity: 1; }
input[type=checkbox] { appearance: none; width: 14px; height: 14px; margin: 0; border: 1px solid #505a6c; border-radius: 2px; background: transparent; cursor: pointer; position: relative; vertical-align: middle; accent-color: var(--accent); }
input[type=checkbox]:checked, input[type=checkbox]:indeterminate { border-color: var(--accent); background: var(--accent); }
input[type=checkbox]:checked::after { content: ''; position: absolute; left: 3px; top: 0; width: 4px; height: 8px; border: solid #15292c; border-width: 0 2px 2px 0; transform: rotate(45deg); }
input[type=checkbox]:indeterminate::after { content: ''; position: absolute; top: 5px; left: 2px; height: 2px; width: 8px; background: #15292c; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 28px; line-height: 1.3; font-weight: 600; letter-spacing: -.5px; }
h2 { font-size: 22px; font-weight: 600; }
h3 { font-size: 14px; font-weight: 500; line-height: 1.5; }
.icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; vertical-align: middle; }
.muted { color: var(--muted); }
.app { display: grid; grid-template-columns: 250px minmax(0,1fr); min-height: 100vh; }
.sidebar { display: flex; flex-direction: column; background: var(--shell); border-right: 1px solid var(--line); padding: 30px 16px 28px; min-width: 0; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; padding: 0 10px; font-size: 19px; font-weight: 700; }
.brand-symbol { display: grid; place-items: center; width: 38px; height: 42px; border: 2px solid var(--accent); color: var(--accent); font-size: 25px; font-weight: 600; clip-path: polygon(0 0,75% 0,100% 25%,100% 100%,25% 100%,0 75%); flex-shrink: 0; }
.brand small { display: block; font-size: 9px; font-weight: 400; color: var(--muted); margin-top: 5px; }
.workspace-label { font-size: 9px; letter-spacing: 1.1px; color: #8993a5; margin: 46px 12px 14px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 12px; margin-bottom: 5px; text-align: left; font-size: 13px; line-height: 1.5; color: #a2acbc; }
.nav-item .icon { width: 20px; height: 20px; color: var(--muted); }
.nav-item:hover { background: var(--hover); }
.nav-item.active { background: rgba(100,185,194,.08); color: var(--text); box-shadow: inset 2px 0 var(--accent); }
.nav-item.active .icon { color: var(--accent); }
.sidebar-foot { margin-top: auto; padding: 70px 12px 0; font-size: 10px; color: var(--muted); }
.sidebar-foot small { display: block; margin: 8px 0 0 13px; font-size: 9px; }
.connection-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-right: 8px; }
.shell { min-width: 0; }
.topbar { height: 82px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 16px; padding: 0 34px; background: var(--shell); }
.breadcrumb { font-size: 11px; color: #a2acbc; }
.breadcrumb > span { padding: 0 15px; color: #536479; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 6px; color: var(--muted); flex-shrink: 0; }
.icon-button:hover { background: var(--hover); color: var(--accent); }
.icon-button .icon { width: 17px; height: 17px; }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #465167; background: #343c50; color: #c4ccde; border-radius: 50%; font-size: 9px; }
.theme-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; }
.theme-toggle > .icon { width: 15px; height: 15px; color: var(--muted); }
.theme-toggle > .icon:first-child { color: var(--accent); }
.theme-track { position: relative; display: block; width: 46px; height: 26px; border: 1px solid var(--line); border-radius: 14px; background: #303744; }
.theme-thumb { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #dce5f2; border-radius: 50%; }
main { padding: 32px 34px 24px; max-width: 1900px; margin: auto; }
.section-navigation { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-tabs { display: flex; align-items: center; gap: 6px; }
.section-tabs > button { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--muted); border: 1px solid transparent; border-radius: 0; padding: 9px 12px; min-height: 39px; font-size: 13px; }
.section-tabs > button.active { color: var(--text); border-bottom-color: var(--accent); }
.section-tabs > button.active .icon { color: var(--accent); }
.section-tabs > button:hover { color: var(--text); }
.section-tabs .icon { width: 17px; height: 17px; }
.tab-count { font-size: 10px; color: var(--muted); margin-left: 3px; font-weight: 400; }
.storage-summary { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #bcc3d0; }
.storage-summary > .icon { width: 15px; height: 15px; color: var(--muted); }
.catalog { max-width: 1160px; margin: 0; }
.folder-directory { max-width: 520px; margin: 10px 0 0; }
.directory-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.directory-heading h1 { font-size: 23px; font-weight: 550; }
.directory-heading .button { min-height: 34px; padding: 7px 10px; font-size: 11px; }
.directory-heading .button .icon { width: 14px; height: 14px; }
.search.directory-search { margin-bottom: 14px; }
.search.directory-search input { height: 36px; font-size: 11px; }
.directory-search > .icon { top: 10px; width: 14px; height: 14px; }
.folder-tree { display: flex; flex-direction: column; gap: 6px; }
.folder-node { min-width: 0; }
.folder-node-row { display: flex; gap: 6px; align-items: stretch; }
.folder-node-row > .folder-card { min-width: 0; flex: 1; }
.create-link-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 5px 7px; border: 1px solid #3c5961; color: #add7db; font-size: 10px; white-space: nowrap; }
.create-link-button:hover { border-color: var(--accent); background: #233137; }
.create-link-button > .icon { width: 12px; height: 12px; }
.folder-card > .create-link-button { margin-left: 2px; min-height: 25px; }
.files-share { min-height: 27px; font-size: 10px; padding: 4px 6px; border: 1px solid #3c5961; color: #add7db; margin-right: 6px; }
#folder-content td:last-child, #folder-content th:last-child { width: 210px; }
.folder-node > summary { list-style: none; cursor: pointer; }
.folder-node > summary::-webkit-details-marker { display: none; }
.folder-node > summary > .icon:last-child { transform: rotate(-90deg); }
.folder-node[open] > summary > .icon:last-child { transform: none; }
.folder-node[open] > summary { border-color: #43575e; }
.folder-children { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 6px 16px; padding-left: 15px; border-left: 1px solid #35444d; }
.folder-files { display: flex; align-items: center; gap: 10px; min-height: 30px; padding: 6px 11px; text-align: left; color: var(--muted); font-size: 11px; }
.folder-files > .icon { width: 14px; height: 14px; }
.folder-files > .icon:last-child { width: 11px; height: 11px; margin-left: auto; }
.folder-files:hover { color: var(--accent); background: var(--hover); }
.folder-card { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 3px; background: var(--panel); text-align: left; font-size: 12px; }
.folder-card > .icon:first-child { width: 16px; height: 16px; color: var(--accent); stroke-width: 1.4; }
.folder-card-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder-card-count { margin-left: auto; padding-left: 10px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.folder-card > .icon:last-child { width: 12px; height: 12px; color: #748094; }
.folder-card:hover, .folder-card:focus-visible { background: #242b32; border-color: #52757c; }
.new-folder-card { margin-top: 9px; border-style: dashed; background: transparent; color: var(--muted); font-size: 11px; }
.new-folder-card > .icon:first-child { color: #8290a3; }
.directory-empty { padding: 24px 0; font-size: 12px; color: var(--muted); }
.links-register { max-width: 1160px; margin: 10px 0 0; }
.register-heading h1 { font-size: 23px; font-weight: 550; }
.register-heading p { margin-top: 9px; color: var(--muted); font-size: 12px; }
.register-toolbar { display: flex; align-items: center; gap: 12px; margin: 23px 0 20px; }
.register-toolbar .search input { height: 40px; }
.register-toolbar select { min-width: 160px; height: 40px; font-size: 12px; }
.register-table table { min-width: 820px; }
.register-table th:first-child, .register-table td:first-child { width: 29%; text-align: left; padding: 14px 18px; }
.register-table th:nth-child(2) { width: 25%; }
.register-table th:nth-child(3) { width: 20%; }
.register-table th:nth-child(4) { width: 16%; }
.register-table th:last-child, .register-table td:last-child { width: 10%; }
.register-table td { height: 69px; }
.register-table strong { font-size: 12px; font-weight: 500; }
.register-table small { display: block; margin-top: 5px; font-size: 10px; color: var(--muted); }
.register-url { color: #9eb1bc; font-size: 11px; }
.register-footer { display: flex; justify-content: space-between; gap: 15px; margin-top: 14px; color: var(--muted); font-size: 10px; }
.register-empty { padding: 24px 0; font-size: 12px; color: var(--muted); }
.disabled-status { color: #8993a5; }
.folder-path > [data-action="folders"] .icon { transform: rotate(180deg); }
body:has(#folder-directory:not([hidden])) .page-footer { max-width: 520px; margin: 23px 0 0; font-size: 8px; }
body:has(#folder-content[hidden]) .page-footer > span:last-child { display: none; }
.folder-path { display: flex; align-items: center; gap: 12px; font-size: 11px; color: var(--muted); margin: 3px 0 20px; }
.folder-path > button { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; padding: 0; }
.folder-path > button:hover { color: var(--accent); }
.folder-path .icon { width: 13px; height: 13px; }
.folder-path > span:not(:last-child) { color: #536075; }
.catalog-heading { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 23px; }
.catalog-heading p { font-size: 13px; line-height: 1.6; color: var(--muted); margin-top: 8px; }
.catalog-actions { display: flex; align-items: center; gap: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 10px 14px; border: 1px solid var(--line); background: #282c35; color: var(--text); font-size: 12px; line-height: 1.5; white-space: nowrap; }
.button:hover { background: #343a46; }
.button > .icon { width: 16px; height: 16px; }
.button.primary { background: var(--accent); border-color: var(--accent); color: #13252a; font-weight: 500; padding-left: 18px; padding-right: 18px; }
.button.primary:hover { background: #8bd8df; border-color: #8bd8df; }
.catalog-toolbar { display: flex; align-items: center; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.search { position: relative; flex: 1; min-width: 150px; margin: 0; display: block; }
.search > .icon { position: absolute; left: 12px; top: 12px; width: 16px; height: 16px; color: #7e899c; }
.search input { width: 100%; height: 41px; padding: 10px 32px 10px 37px; font-size: 12px; }
.search kbd { position: absolute; right: 12px; top: 13px; color: #647086; font-family: inherit; font-size: 11px; }
.catalog-toolbar select { width: 172px; height: 41px; font-size: 12px; }
.catalog-toolbar .share-button { background: transparent; height: 41px; }
.catalog-toolbar .share-button:hover { border-color: #596475; }
.catalog-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 0; color: var(--muted); font-size: 11px; }
.catalog-summary strong { font-weight: 400; color: #b6becd; }
.summary-separator { margin: 0 9px; color: #596477; }
#selection-count { color: #8490a3; }
.table-wrap { position: relative; border: 1px solid var(--line); border-radius: 3px; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; white-space: nowrap; }
th { font-weight: 400; color: var(--muted); font-size: 11px; height: 45px; background: transparent; }
th .icon { width: 11px; height: 11px; margin-left: 5px; color: #7d8b9c; }
th:first-child, td:first-child { width: 46px; text-align: center; padding-left: 13px; padding-right: 10px; }
th:nth-child(3) { width: 112px; }
th:nth-child(4) { width: 165px; }
th:last-child, td:last-child { width: 92px; text-align: right; padding-right: 13px; }
td { height: 65px; font-size: 12px; border-top: 1px solid var(--line); }
td:nth-child(3), td:nth-child(4) { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
tbody tr:hover, tbody tr:focus-within { background: var(--hover); }
tbody tr:has(input:checked) { background: rgba(100,185,194,.07); }
.file-name { display: flex; align-items: center; gap: 13px; padding: 0; color: var(--text); text-align: left; font-size: 13px; line-height: 1.5; }
.file-name:hover { color: var(--accent); }
.file-name small { display: block; margin-top: 3px; color: #8993a5; font-size: 10px; }
.file-icon { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 30px; flex-shrink: 0; color: #9aa8b9; }
.file-icon .icon { width: 22px; height: 25px; stroke-width: 1.35; }
.file-icon.folder { color: #acbac7; }
.file-icon.pdf { color: #b58f93; }
.file-icon.image { color: #92afaf; }
.file-icon.sheet { color: #91ac9c; }
.file-icon.archive { color: #aa9cbb; }
.file-icon.doc { color: #97a9c3; }
td:last-child .icon-button { width: 30px; height: 30px; }
td:last-child .icon { width: 15px; height: 15px; }
.folder-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 0; font-size: 10px; color: #8792a4; }
.folder-footer > span { display: flex; align-items: center; gap: 7px; }
.folder-footer .icon { width: 13px; height: 13px; }
.text-button { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted); padding: 5px 0; }
.text-button:hover { color: var(--accent); }
.text-button .icon { width: 14px; height: 14px; }
.transfers { margin-top: 19px; border-top: 1px solid var(--line); }
.transfers summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; list-style: none; cursor: pointer; font-size: 12px; color: #b3bdcc; }
.transfers summary::-webkit-details-marker { display: none; }
.transfer-summary-title { display: inline-flex; align-items: center; gap: 8px; }
.transfer-summary-title > .icon { width: 16px; height: 16px; color: var(--muted); }
.transfer-indicator { width: 4px; height: 4px; background: var(--accent); border-radius: 50%; margin-left: 12px; }
.transfer-summary-speed { font-size: 10px; color: var(--muted); }
.transfer-toggle { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }
.transfer-toggle .icon { width: 12px; height: 12px; }
.transfers[open] .transfer-toggle .icon { transform: rotate(180deg); }
.transfer-row { display: flex; align-items: center; gap: 14px; padding: 17px 0; border-top: 1px solid var(--line); }
.transfer-body { min-width: 0; flex: 1; }
.transfer-name { display: flex; justify-content: space-between; gap: 15px; font-size: 12px; margin-bottom: 10px; }
.transfer-name > span:last-child { font-size: 10px; color: var(--muted); }
.meter { height: 3px; background: #323a46; }
.meter > span { display: block; height: 100%; background: var(--accent); }
.transfer-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 10px; color: var(--muted); margin-top: 9px; }
.queued .transfer-name { margin-bottom: 0; }
.page-footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 25px; font-size: 9px; color: var(--muted); }
#empty-search { text-align: center; padding: 55px 20px; }
#empty-search strong { font-size: 15px; font-weight: 500; }
#empty-search p { font-size: 12px; color: var(--muted); margin-top: 10px; }
.sr-only { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }
/* Dialogs share the workspace palette and restrained borders. */
dialog { background: var(--panel); color: var(--text); border: 1px solid #4c566b; border-radius: 4px; padding: 0; width: min(480px,calc(100% - 32px)); max-height: 90vh; overflow: auto; box-shadow: 0 18px 65px #0005; }
dialog::backdrop { background: rgba(9,12,18,.7); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 25px 28px; border-bottom: 1px solid var(--line); }
.eyebrow { font-size: 9px; color: var(--accent); letter-spacing: 1.7px; margin-bottom: 8px; }
.dialog-body { padding: 26px 28px; }
.dialog-body input { width: 100%; min-height: 42px; font-size: 13px; }
label:not(.search) { display: block; color: #b4bccb; font-size: 12px; margin-bottom: 8px; }
label > span { font-size: 10px; color: #8691a4; margin-left: 5px; }
.dialog-note { color: var(--muted); font-size: 11px; margin-top: 13px; line-height: 1.7; }
.dialog-feedback { padding: 13px 24px; border-top: 1px solid var(--line); color: var(--accent); font-size: 11px; line-height: 1.7; }
.dialog-footer { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 18px 28px; border-top: 1px solid var(--line); }
.dialog-footer > .danger { margin-right: auto; color: #c39b9e; }
.links-dialog { width: min(850px,calc(100% - 32px)); }
.links-content { display: grid; grid-template-columns: 1fr 1fr; padding: 28px; gap: 30px; }
.links-existing { min-width: 0; }
.links-existing > h3 { display: flex; align-items: center; gap: 8px; }
.section-description { font-size: 11px; color: var(--muted); line-height: 1.7; margin-top: 8px; margin-bottom: 22px; }
.link-entry { border-top: 1px solid var(--line); padding: 20px 0; }
.link-entry-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.link-entry-heading h3 { font-size: 13px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; white-space: nowrap; }
.status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.active-status { color: var(--success); }
.expired-status { color: var(--warning); }
.link-url { display: flex; gap: 7px; align-items: center; margin: 15px 0; color: #95a6bb; font-size: 11px; }
.link-url .icon { width: 13px; height: 13px; }
dl { margin: 0; font-size: 11px; }
dl > div { display: flex; justify-content: space-between; gap: 10px; margin: 10px 0; }
dt { color: var(--muted); }
dd { margin: 0; color: #bec7d5; }
.link-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; }
.button.small { min-height: 32px; padding: 6px 10px; font-size: 11px; }
.button.small .icon { width: 14px; height: 14px; }
.expired-entry > .text-button { margin-top: 8px; }
.link-form { border-left: 1px solid var(--line); padding-left: 30px; }
.link-form input { width: 100%; height: 42px; font-size: 12px; margin-bottom: 20px; }
.link-form input[type=datetime-local] { margin-bottom: 10px; }
.timezone { display: flex; align-items: center; gap: 6px; color: #8d9bb0; font-size: 10px; margin-bottom: 23px; }
.timezone .icon { width: 13px; height: 13px; }
.full-width { width: 100%; }
.link-hint { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); margin-top: 20px; }
.link-hint > .icon { width: 14px; height: 14px; margin-top: 3px; }
.link-hint p { font-size: 11px; line-height: 1.8; }
.toast { position: fixed; right: 25px; bottom: 25px; max-width: calc(100% - 40px); background: #243439; color: #d6e9eb; padding: 14px 22px; border: 1px solid #446e74; border-radius: 4px; font-size: 12px; z-index: 20; }
.preview-dialog { width: min(1000px,calc(100% - 32px)); }
.preview-dialog h2 { font-size: 14px; }
.preview-dialog .dialog-header { padding: 14px 20px; }
.preview-tools { display: flex; align-items: center; gap: 16px; }
.preview-tools > span { color: var(--muted); font-size: 11px; }
.preview-stage { background: var(--bg); min-height: 450px; max-height: 70vh; overflow: auto; padding: 28px; display: flex; justify-content: center; }
.paper { width: 470px; background: #eeeae3; color: #343a42; padding: 46px; min-height: 580px; font-family: Georgia,serif; }
.paper-kicker { font: 9px 'Segoe UI',sans-serif; color: #77828d; letter-spacing: 2px; border-bottom: 1px solid #bfc4c7; padding-bottom: 15px; }
.paper h3 { font-size: 23px; line-height: 1.4; margin: 35px 0 20px; }
.paper p { font-size: 12px; line-height: 1.9; color: #606873; margin: 15px 0; }
.paper h4 { font-size: 13px; margin: 28px 0 10px; }
.paper-rule { height: 1px; background: #a5adb3; margin: 30px 0; }
.preview-caption { text-align: center; color: var(--muted); padding: 12px; font-size: 10px; border-top: 1px solid var(--line); }
.drawing { width: min(640px,100%); background: #d9ddd7; min-height: 400px; display: grid; place-items: center; padding: 40px; }
.drawing svg { width: 100%; height: 100%; max-height: 430px; }
.facade-art { background: #9aadb9; }
.pulse { animation: panel-pulse .7s ease; }
@keyframes panel-pulse { 50% { background: rgba(100,203,212,.07); } }
@media (max-width: 1250px) {
  .app { grid-template-columns: 210px minmax(0,1fr); }
  .sidebar { padding-left: 12px; padding-right: 12px; }
  .brand { font-size: 16px; padding: 0; gap: 9px; }
  .brand small { font-size: 8px; }
  main { padding: 26px 24px 20px; }
  .topbar { padding: 0 24px; }
  .catalog-actions { gap: 8px; }
  .button { font-size: 11px; padding-left: 11px; padding-right: 11px; }
  th:nth-child(4) { width: 135px; }
  th:nth-child(3) { width: 85px; }
}
@media (max-width: 1000px) {
  .catalog-heading { flex-wrap: wrap; gap: 18px; }
  .catalog-actions { width: 100%; }
  .catalog-toolbar { flex-wrap: wrap; }
  .search { flex-basis: calc(100% - 184px); }
  .catalog-toolbar .share-button { margin-left: auto; }
  .table-wrap table { min-width: 660px; }
  .storage-summary { font-size: 10px; }
}
@media (max-width: 800px) {
  .app { display: block; }
  .sidebar { padding: 18px 20px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { font-size: 17px; }
  .brand-symbol { width: 31px; height: 33px; font-size: 20px; }
  .brand small, .workspace-label, .sidebar-foot { display: none; }
  .sidebar nav { display: flex; overflow-x: auto; margin-top: 17px; gap: 6px; }
  .nav-item { white-space: nowrap; width: auto; padding: 10px; font-size: 11px; margin-bottom: 0; gap: 8px; }
  .nav-item .icon { width: 16px; height: 16px; }
  .topbar { height: 58px; padding: 0 22px; }
  .topbar-actions { gap: 14px; }
  .breadcrumb { font-size: 10px; }
  main { padding: 23px 22px 20px; }
  .section-tabs > button { font-size: 12px; padding: 9px 10px; }
  .section-navigation { margin-bottom: 25px; }
  .storage-summary { display: none; }
  h1 { font-size: 25px; }
  .links-content { gap: 22px; padding: 22px; }
  .link-form { padding-left: 22px; }
}
@media (max-width: 560px) {
  .folder-card-count { display: none; }
  .folder-card-name { margin-right: auto; }
  .folder-node > summary { padding-left: 9px; padding-right: 7px; gap: 6px; }
  .folder-directory { margin-top: 6px; }
  .directory-heading { margin-bottom: 18px; }
  .folder-card { min-height: 42px; }
  .sidebar { padding: 16px 12px 10px; }
  .brand { padding-left: 5px; }
  .nav-item { padding: 10px 8px; font-size: 10px; gap: 6px; }
  .nav-item .icon { width: 14px; height: 14px; }
  .topbar { padding: 0 16px; }
  .topbar-actions { gap: 10px; }
  .theme-toggle { gap: 5px; }
  .theme-track { width: 37px; height: 23px; }
  .theme-thumb { width: 15px; height: 15px; }
  .theme-toggle > .icon { width: 12px; height: 12px; }
  main { padding: 21px 16px; }
  .section-tabs { gap: 3px; }
  .section-tabs > button { font-size: 11px; padding: 8px; }
  .folder-path { gap: 9px; font-size: 10px; margin-bottom: 18px; }
  .folder-path > button { font-size: 10px; }
  .catalog-heading p { font-size: 12px; }
  .catalog-actions > .button { flex: 1; font-size: 11px; padding: 10px; }
  .catalog-actions > .button .icon { width: 14px; height: 14px; }
  .search { flex-basis: 100%; }
  .catalog-toolbar select { width: auto; flex: 1; font-size: 11px; }
  .catalog-toolbar .share-button { font-size: 11px; padding: 8px; }
  .catalog-summary { font-size: 10px; }
  .folder-footer > span { font-size: 9px; max-width: 65%; line-height: 1.7; }
  .folder-footer > span > .icon { display: none; }
  .folder-footer .text-button { font-size: 10px; }
  .transfer-summary-title { font-size: 11px; gap: 6px; }
  .transfer-summary-speed { font-size: 9px; }
  .transfer-indicator { margin-left: 3px; }
  .transfer-toggle { font-size: 0; }
  .transfer-name { font-size: 10px; }
  .transfer-meta { font-size: 9px; }
  .transfer-name > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .queued .transfer-meta > span:last-child { display: none; }
  .page-footer { font-size: 8px; }
  .page-footer > span:last-child { display: none; }
  .dialog-header { padding: 20px; }
  .dialog-body { padding: 22px 20px; }
  .dialog-footer { padding: 16px 20px; }
  .links-content { display: block; padding: 22px 20px; }
  .link-form { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .link-entry:last-child { padding-bottom: 22px; }
  .dialog-footer > .danger { font-size: 10px; }
  .preview-stage { padding: 12px; min-height: 330px; }
  .paper { padding: 25px; min-height: 480px; }
  .preview-tools { gap: 7px; }
  .preview-tools > span { display: none; }
  .preview-tools .button { font-size: 0; gap: 0; }
  .preview-dialog h2 { font-size: 11px; }
  .preview-caption { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; }
}
