:root {
  color-scheme: light;
  --blue: #27614f;
  --blue-dark: #1a493a;
  --ink: #29382f;
  --muted: #7b877f;
  --line: #e8ece6;
  --bg: #f6f7f4;
  --radius: 16px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, box-shadow .15s; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button:disabled { opacity: .42; cursor: not-allowed; }
button:focus-visible, a:focus-visible { outline: 3px solid #83b49b; outline-offset: 4px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid #83b49b; outline-offset: 2px; }
[hidden] { display: none !important; }
a { color: var(--blue); }
::selection { background: #dcebdc; color: #254d35; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.page { max-width: 1260px; margin: 0 auto; padding: 44px 40px 32px; }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.page-title { display: flex; align-items: center; gap: 15px; }
.title-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 15px; background: #285d49; color: #6e6e6b; box-shadow: inset 0 0 0 1px #ffffff16; }
.title-icon .icon { width: 29px; height: 29px; stroke-width: 1.5; }
.eyebrow { margin: 0 0 2px; color: #677160; font-size: 10px; letter-spacing: 2px; }
.page-title h1 { margin: 0; font-size: 29px; line-height: 1.45; font-weight: 650; letter-spacing: -.6px; color: #2e4232; }
.account-button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; color: #65735e; background: #ffffffc0; border: 1px solid #dce4d5; border-radius: 9px; font-size: 12px; white-space: nowrap; }
.account-button:hover { background: #edf3e7; border-color: #c6d7ba; color: #3c633d; }
.account-button.admin { background: #eaf2e2; color: var(--blue); border-color: #cbdcbd; }
.account-button .icon { width: 15px; height: 15px; }
.page-description { margin: 23px 0 26px; color: #697262; font-size: 12px; letter-spacing: .2px; }
.page-description > span { margin-left: 5px; }
.files-panel { overflow: hidden; border: 1px solid #dfe6d8; border-radius: var(--radius); background: #fff; box-shadow: 0 8px 30px #32462504, 0 1px 3px #32462503; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 25px 28px 20px; }
.panel-title { display: flex; align-items: center; gap: 11px; min-width: 0; }
.panel-title h2 { margin: 0; font-size: 17px; font-weight: 650; white-space: nowrap; }
.count-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border: 1px solid #e1ead8; border-radius: 20px; background: #f4f8ee; color: #657355; font-size: 11px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.search-field { display: flex; align-items: center; gap: 10px; width: 345px; height: 42px; padding: 0 12px; border: 1px solid #dfe7d5; border-radius: 9px; background: #fafcf7; transition: border-color .15s, box-shadow .15s; }
.search-field .icon { width: 17px; height: 17px; color: #67725b; }
.search-field input { width: 100%; min-width: 0; border: 0; outline: none; background: transparent; font-size: 12px; }
.search-field input::placeholder { color: #697160; }
.search-field kbd { padding: 2px 5px; flex-shrink: 0; border: 1px solid #e3eadc; border-radius: 4px; background: #fff; color: #6a7260; font: 9px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; }
.search-field:focus-within { border-color: #90af7c; background: #fff; box-shadow: 0 0 0 3px #edf4e6; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 28px 22px; }
.toolbar-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 15px; border: 1px solid transparent; border-radius: 8px; line-height: 1.5; font-size: 12px; font-weight: 500; white-space: nowrap; }
.button .icon { width: 16px; height: 16px; }
.button-primary { color: #fff; background: var(--blue); border-color: var(--blue); box-shadow: 0 2px 3px #173c2510; }
.button-primary:hover:not(:disabled) { background: var(--blue-dark); border-color: var(--blue-dark); }
.button-outline { color: #657458; background: #fff; border-color: #dce6d2; }
.button-outline:hover:not(:disabled) { color: #3d6539; background: #f3f8ec; border-color: #c7d9b8; }
#bundleButton:not(:disabled) { background: var(--blue); border-color: var(--blue); color: white; }
#bundleButton:hover:not(:disabled) { background: var(--blue-dark); border-color: var(--blue-dark); }
#bundleButton:disabled { background: #f3f5ee; color: #697161; border-color: #e7eddf; opacity: 1; }
.button-danger { background: #c46450; border-color: #c46450; color: #fff; }
.button-danger:hover:not(:disabled) { background: #ae503f; border-color: #ae503f; }
.text-button { color: var(--blue); font-size: 12px; padding: 9px 4px; }
.text-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.toolbar-hint { display: inline-flex; align-items: center; gap: 6px; color: #697161; font-size: 11px; white-space: nowrap; }
.toolbar-hint .icon { width: 14px; height: 14px; color: #67715e; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid transparent; border-radius: 7px; color: #657457; flex-shrink: 0; }
.icon-button .icon { width: 17px; height: 17px; }
.icon-button:hover { background: #eff6e7; color: #4d743b; }
.list-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; padding: 14px 28px; border-top: 1px solid var(--line); }
.breadcrumb { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; min-width: 0; font-size: 12px; }
.breadcrumb > button { display: inline-flex; align-items: center; gap: 7px; color: #536f45; padding: 4px 0; font-weight: 500; white-space: nowrap; }
.breadcrumb > button .icon { width: 15px; height: 15px; color: #637354; }
.breadcrumb button:hover { color: var(--blue-dark); }
.breadcrumb > #folderCrumb { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.breadcrumb > #folderCrumb > span { color: #6a7164; }
.breadcrumb > #folderCrumb > button { max-width: 190px; padding: 4px 0; color: #637359; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.breadcrumb > #folderCrumb > button:last-child { color: #405f32; font-weight: 500; }
.selection-summary { color: var(--blue); background: #edf5e5; border-radius: 5px; padding: 3px 7px; font-size: 11px; }
.list-filters { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.filter-label { display: flex; align-items: center; gap: 7px; color: #69725d; font-size: 10px; }
.list-filters select { padding: 7px 6px; min-height: 34px; max-width: 110px; background: #fff; border: 1px solid #e1e9d8; border-radius: 6px; color: #627354; font-size: 11px; cursor: pointer; }
.list-filters .icon-button { border-color: #e1e9d8; }
.table-wrap { overflow-x: auto; }
.file-table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; }
.file-table th { height: 43px; background: #f8faf5; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #67725e; font-size: 11px; font-weight: 400; letter-spacing: .3px; white-space: nowrap; }
.file-table td { height: 85px; border-bottom: 1px solid #edf1e7; vertical-align: middle; color: #66735a; font-size: 12px; font-variant-numeric: tabular-nums; }
.file-table tbody tr:last-child td { border-bottom: 0; }
.file-row { transition: background .15s; }
.file-row:hover { background: #fafcf7; }
.file-row.selected { background: #eff6e7; }
.file-row.selected:hover { background: #e9f3dd; }
.check-column { width: 59px; text-align: center; }
input[type=checkbox] { width: 16px; height: 16px; margin: 0; accent-color: var(--blue); vertical-align: middle; cursor: pointer; }
input[type=checkbox]:disabled { cursor: not-allowed; opacity: .5; }
.size-column { width: 100px; }
.uploader-column { width: 100px; }
.date-column { width: 128px; }
.action-column { width: 172px; }
.file-cell { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 14px 18px 14px 0; }
.file-info { min-width: 0; flex: 1; }
.filename { display: block; max-width: 100%; padding: 0; color: #405233; font-size: 14px; font-weight: 500; line-height: 1.6; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.filename:hover { color: var(--blue); }
.file-subtitle { display: flex; align-items: center; gap: 7px; margin-top: 4px; min-width: 0; color: #6a725d; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-subtitle .mobile-meta { display: none; }
.folder-type { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; background: #fcf5e1; border: 1px solid #f0e5c4; border-radius: 11px; color: #836c37; }
.folder-type .icon { width: 27px; height: 27px; fill: #f0d99c; stroke-width: 1.25; }
.file-type { position: relative; display: grid; place-items: center; width: 38px; height: 43px; margin: 0 2px; flex-shrink: 0; border: 1px solid #dbe6cf; border-radius: 7px; background: #eff4e8; color: #5f7649; font-size: 17px; font-weight: 600; line-height: 1; }
.file-type:after { content: ""; position: absolute; right: 0; top: 0; width: 9px; height: 9px; background: #dce6cd; border-radius: 0 5px 0 4px; }
.file-type .icon { width: 21px; height: 21px; stroke-width: 1.4; }
.file-type.archive { background: #fcf7e6; color: #7f6d3a; border-color: #eee4c6; }
.file-type.archive:after { background: #ede0b9; }
.file-type.text { background: #edf4f3; color: #5a7378; border-color: #d8e7e4; }
.file-type.text:after { background: #d8e7e4; }
.file-type.software { background: #f0f1f8; color: #676d87; border-color: #e0e2ef; }
.file-type.software:after { background: #dfe1ef; }
.file-type.image { background: #eff6ef; color: #587665; border-color: #dbeadb; }
.file-type.pdf { background: #fcf0eb; color: #916459; border-color: #f1ddd3; }
.file-type.pdf:after { background: #efd9cd; }
.demo-badge, .draft-badge { flex-shrink: 0; font-size: 9px; padding: 0 4px; border: 1px solid #e2e9d8; border-radius: 4px; color: #6a725c; }
.draft-badge { color: #866b33; background: #fdf6e2; border-color: #ecdbaf; }
.location-link { max-width: 170px; padding: 0; color: #647455; font-size: 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.location-link:hover { color: var(--blue); text-decoration: underline; }
.uploader { display: flex; align-items: center; gap: 5px; color: #67715e; font-size: 11px; }
.uploader .icon { width: 12px; height: 12px; color: #687062; }
.row-actions { display: flex; align-items: center; gap: 8px; padding-right: 15px; white-space: nowrap; }
.row-action { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 32px; padding: 5px 7px; border: 1px solid transparent; border-radius: 6px; color: #657457; font-size: 11px; }
.row-action .icon { width: 14px; height: 14px; }
.row-action:hover:not(:disabled) { background: #eef6e5; color: #4b7339; }
.row-action[data-action=download], .row-action[data-action=download-folder] { color: #5b7643; background: #f7fbf2; border-color: #e0ead4; }
.row-actions .icon-button { width: 27px; height: 31px; }
.list-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 58px; padding: 15px 28px; border-top: 1px solid var(--line); color: #68725d; font-size: 11px; }
.pagination { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.pagination button { padding: 4px 9px; border: 1px solid #e0e8d5; border-radius: 6px; background: #fff; color: #647457; font-size: 11px; }
.pagination button:hover:not(:disabled), .pagination button.active { color: #4b7133; background: #eff5e8; border-color: #c8dbb5; }
.page-note { display: flex; justify-content: space-between; gap: 20px; margin: 21px 5px 0; color: #69725d; font-size: 10px; }
.page-note > span { display: flex; align-items: center; gap: 6px; }
.page-note .icon { width: 12px; height: 12px; }
.footer-right { color: #6a7160; }
.empty-state { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; padding: 44px 24px; min-height: 270px; color: #67715d; text-align: center; }
.empty-state > .icon { width: 44px; height: 44px; stroke-width: 1.1; color: #68715e; margin-bottom: 4px; }
.empty-state h3 { margin: 0; color: #627553; font-size: 16px; font-weight: 500; }
.empty-state p { margin: 0 0 7px; font-size: 12px; line-height: 1.9; }
.spinner { display: inline-block; width: 23px; height: 23px; border: 2px solid #e6eddd; border-top-color: #7e9c68; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Existing dialogs share the same controls and visual language. */
.modal { width: 460px; max-width: calc(100vw - 36px); max-height: calc(100dvh - 56px); padding: 0; border: 1px solid #dfe7d5; border-radius: 17px; color: var(--ink); background: #fff; box-shadow: 0 24px 100px #1d342c30; overflow: auto; }
.modal.wide { width: 780px; }
.modal::backdrop { background: #263b3459; backdrop-filter: blur(4px); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 26px 28px 20px; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 0; font-size: 19px; font-weight: 650; line-height: 1.6; overflow-wrap: anywhere; }
.modal-header p { margin: 6px 0 0; color: #67735d; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.modal-header .icon-button { margin: -2px -5px 0 0; }
.modal-body { padding: 25px 28px; }
.modal-footer { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 18px 28px; border-top: 1px solid var(--line); background: #fafcf7; }
.modal-footer .preview-selection { display: flex; align-items: center; gap: 7px; margin-right: auto; color: #657455; font-size: 12px; }
.form-stack { display: flex; flex-direction: column; gap: 20px; }
.field-label { display: block; margin-bottom: 8px; color: #607450; font-size: 12px; font-weight: 500; }
.field-label small { float: right; color: #6a7160; font-size: 10px; font-weight: 400; }
.form-input { display: block; width: 100%; padding: 11px 12px; border: 1px solid #dfe7d5; border-radius: 8px; background: #fdfefa; font-size: 13px; line-height: 1.6; transition: border-color .15s; }
.form-input:focus { border-color: #9db587; background: #fff; }
.form-input::placeholder { color: #6a7260; }
textarea.form-input { resize: vertical; min-height: 86px; }
.form-input option { color: var(--ink); }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 3px; }
.form-error { padding: 9px 12px; color: #9a6148; background: #fff3e9; border: 1px solid #f1dcc8; border-radius: 7px; font-size: 12px; }
.form-note { margin: 0; color: #66725b; font-size: 11px; line-height: 1.9; }
.drop-zone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 30px 17px; background: #f6faef; border: 1px dashed #c0d4a7; border-radius: 12px; text-align: center; }
.drop-zone > .icon { width: 34px; height: 34px; padding: 7px; box-sizing: content-box; border: 1px solid #e2ecd5; border-radius: 12px; background: #fff; color: #64744c; stroke-width: 1.3; margin-bottom: 3px; }
.drop-zone b { color: #607549; font-size: 14px; font-weight: 500; }
.drop-zone small { color: #68735a; font-size: 11px; }
.drop-zone.dragging { border-color: #7e9f5a; background: #eaf4dd; }
.picker-actions { display: flex; justify-content: center; gap: 9px; flex-wrap: wrap; margin-top: 8px; }
.picker-actions .button { min-height: 35px; font-size: 11px; padding: 7px 11px; }
.upload-selection-info:empty { display: none; }
.upload-selection-info { margin-top: 10px; }
.upload-files { display: flex; flex-direction: column; gap: 7px; max-height: 170px; overflow: auto; margin-top: 12px; }
.upload-file { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border: 1px solid #e7eddc; border-radius: 7px; font-size: 12px; }
.upload-file > .icon { width: 16px; height: 16px; color: #68735b; }
.upload-file > span:first-of-type { min-width: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upload-file > span:last-of-type { color: #68715c; font-size: 10px; }
.upload-file .icon-button { width: 26px; height: 26px; }
.upload-file .icon-button .icon { width: 14px; height: 14px; }
.upload-progress { display: flex; align-items: center; gap: 10px; color: #617646; font-size: 12px; }
.upload-progress progress { flex: 1; height: 8px; accent-color: var(--blue); }
.preview-details { display: flex; gap: 22px; margin: 0 0 17px; color: #68735d; font-size: 11px; }
.preview-text { margin: 0; padding: 20px; min-height: 220px; max-height: 420px; border: 1px solid #e3ead9; border-radius: 9px; background: #f8faf5; color: #60744d; font: 12px/1.95 ui-monospace, SFMono-Regular, Consolas, "PingFang SC", monospace; white-space: pre-wrap; overflow-wrap: anywhere; overflow: auto; }
.preview-note { margin: 12px 0 0; color: #68715b; font-size: 11px; }
.preview-description { margin: 18px 0 0; padding-top: 15px; border-top: 1px solid var(--line); color: #677358; font-size: 12px; max-height: 95px; overflow: auto; overflow-wrap: anywhere; white-space: pre-wrap; }
.preview-image { display: block; width: 100%; height: 350px; object-fit: contain; background: #f8faf5; border-radius: 9px; }
.unsupported { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 17px; min-height: 220px; padding: 15px; text-align: center; color: #687356; font-size: 12px; line-height: 1.9; }
.unsupported > .icon { width: 46px; height: 46px; color: #69725b; stroke-width: 1.1; }
.sha-box { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #f8faf5; border: 1px solid #e2ead7; border-radius: 8px; text-align: left; }
.sha-box > span { flex: 1; min-width: 0; }
.sha-box small { display: block; color: #69715c; font-size: 10px; margin-bottom: 4px; }
.sha-box code { display: block; color: #667451; font-size: 10px; line-height: 1.8; word-break: break-all; }
.sha-box .icon { width: 16px; height: 16px; color: #627452; }
.archive-table { padding: 2px 14px; border: 1px solid #e4ebd9; border-radius: 8px; max-height: 380px; overflow: auto; }
.archive-entry { display: flex; align-items: center; gap: 9px; padding: 11px 0; border-bottom: 1px solid #eaf0e0; color: #677357; font-size: 12px; }
.archive-entry:last-child { border: 0; }
.archive-entry .icon { width: 15px; height: 15px; color: #667255; }
.archive-entry span { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.archive-entry small { color: #68715b; font-size: 10px; white-space: nowrap; }
.manage-file { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.manage-file strong { display: block; font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.manage-file small { color: #677358; font-size: 11px; }
.manage-actions { display: flex; flex-direction: column; gap: 9px; }
.manage-actions .button { justify-content: flex-start; min-height: 44px; padding-left: 13px; }
.manage-actions .button-danger { color: #99614d; border-color: #eedcd0; background: #fdf5ef; }
.manage-actions .button-danger:hover { background: #faeae0; border-color: #e1bdab; }
.folder-delete-note { margin-top: 17px; }
.toast-container { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 9px; max-width: calc(100vw - 32px); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 9px; padding: 13px 17px; min-width: 180px; max-width: 430px; color: #5f7644; background: #fff; border: 1px solid #d9e6ca; border-radius: 10px; box-shadow: 0 5px 28px #34452716; font-size: 12px; }
.toast .icon { width: 17px; height: 17px; }
.toast.error { color: #98624c; border-color: #eed8c9; background: #fffcf9; }
.visually-hidden { 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: 1050px) {
  .page { padding: 32px 28px 26px; }
  .uploader-column, .uploader-cell { display: none; }
  .date-column { width: 118px; }
  .size-column { width: 85px; }
  .action-column { width: 165px; }
  .toolbar-hint { display: none; }
  .filter-label > span { display: none; }
}
@media (max-width: 760px) {
  .page { padding: 27px 20px 24px; }
  .title-icon { width: 46px; height: 46px; border-radius: 13px; }
  .title-icon .icon { width: 26px; height: 26px; }
  .page-title { gap: 12px; }
  .page-title h1 { font-size: 25px; }
  .eyebrow { font-size: 9px; letter-spacing: 1.5px; }
  .account-button { padding: 9px 12px; font-size: 11px; }
  .page-description { margin: 21px 0 22px; font-size: 11px; }
  .files-panel { border-radius: 13px; }
  .panel-heading { padding: 21px 20px 17px; gap: 18px; }
  .panel-title { gap: 9px; }
  .panel-title h2 { font-size: 16px; }
  .count-badge { font-size: 10px; padding: 2px 8px; }
  .search-field { width: 265px; height: 40px; }
  .search-field kbd { display: none; }
  .toolbar { padding: 0 20px 19px; }
  .toolbar-actions { gap: 7px; }
  .button { min-height: 39px; padding: 9px 12px; font-size: 11px; gap: 6px; }
  .text-button { font-size: 11px; }
  .list-meta { padding: 13px 20px; min-height: 63px; flex-wrap: wrap; gap: 10px; }
  .breadcrumb, .breadcrumb > #folderCrumb > button { font-size: 11px; }
  .breadcrumb > #folderCrumb > button { max-width: 145px; }
  .list-filters { gap: 6px; }
  .list-filters select { max-width: 100px; }
  .date-column, .date-cell { display: none; }
  .check-column { width: 48px; }
  .action-column { width: 150px; }
  .file-cell { gap: 11px; padding-right: 12px; }
  .filename { font-size: 13px; }
  .file-table td { height: 81px; }
  .row-actions { gap: 4px; padding-right: 10px; }
  .row-action { padding: 5px; }
  .folder-type { width: 38px; height: 38px; border-radius: 10px; }
  .folder-type .icon { width: 25px; height: 25px; }
  .file-type { width: 33px; height: 39px; }
  .list-footer { padding: 15px 20px; font-size: 10px; gap: 10px; }
  .page-note { font-size: 9px; margin: 18px 2px 0; gap: 10px; }
  .modal-header { padding: 22px 23px 18px; }
  .modal-header h2 { font-size: 18px; }
  .modal-body { padding: 23px; }
  .modal-footer { padding: 17px 23px; }
  .preview-details { gap: 9px 17px; flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .page-description > span { display: block; margin-left: 0; margin-top: 2px; }
  .panel-heading { flex-wrap: wrap; gap: 16px; }
  .panel-title { width: 100%; justify-content: space-between; }
  .search-field { width: 100%; height: 43px; }
  .toolbar-actions { gap: 7px; }
  .toolbar-actions .button { min-height: 42px; }
  .size-column, .size-cell { display: none; }
  .file-subtitle .category-label { display: none; }
  .file-subtitle .mobile-meta { display: inline; }
  .file-subtitle .location-link { display: none; }
  .check-column { width: 42px; }
  .action-column { width: 119px; }
  .row-actions { gap: 4px; padding-right: 8px; }
  .row-action { flex-direction: column; gap: 2px; min-width: 36px; min-height: 44px; padding: 4px; font-size: 9px; line-height: 1.4; }
  .row-action .icon { width: 16px; height: 16px; }
  .row-actions .icon-button { width: 25px; min-height: 42px; }
  .file-row.admin-row .row-actions { gap: 1px; }
  .filename { font-size: 12px; white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .file-cell { gap: 9px; padding-right: 7px; }
  .folder-type { width: 34px; height: 36px; border-radius: 9px; }
  .folder-type .icon { width: 23px; height: 23px; }
  .file-type { width: 29px; height: 35px; font-size: 15px; }
  .file-type .icon { width: 18px; height: 18px; }
  .file-subtitle { font-size: 9px; }
  .footer-right { display: none !important; }
  .preview-image { height: 270px; }
  .preview-text { font-size: 11px; padding: 16px; }
  .modal-footer .preview-selection { font-size: 11px; }
}
@media (max-width: 420px) {
  .page { padding: 23px 12px 22px; }
  .page-header { gap: 12px; padding: 0 4px; }
  .title-icon { width: 40px; height: 44px; border-radius: 12px; }
  .page-title { gap: 10px; }
  .page-title h1 { font-size: 23px; }
  .eyebrow { font-size: 8px; letter-spacing: 1px; }
  .account-button { padding: 9px 10px; font-size: 10px; gap: 5px; }
  .account-button .icon { width: 13px; height: 13px; }
  .page-description { margin: 19px 5px 21px; font-size: 10px; line-height: 1.9; }
  .panel-heading { padding: 19px 16px 16px; }
  .toolbar { padding: 0 16px 18px; }
  .toolbar-actions { gap: 6px; }
  .toolbar-actions .button { padding: 9px 10px; font-size: 11px; gap: 5px; }
  .toolbar-actions .button .icon { width: 15px; height: 15px; }
  .list-meta { padding: 12px 16px; gap: 10px; }
  .list-filters { width: 100%; }
  .list-filters .icon-button { margin-left: auto; }
  .list-filters select { min-height: 36px; }
  .breadcrumb > #folderCrumb > button { max-width: 130px; }
  .check-column { width: 36px; }
  .action-column { width: 112px; }
  .file-cell { gap: 8px; }
  .row-action { min-width: 34px; }
  .row-actions { padding-right: 5px; }
  .list-footer { padding: 15px 16px; font-size: 9px; }
  .pagination { gap: 5px; }
  .pagination button { font-size: 9px; padding: 3px 6px; }
  .modal { max-width: calc(100vw - 24px); max-height: calc(100dvh - 30px); border-radius: 13px; }
  .modal-header { padding: 20px 19px 17px; }
  .modal-header h2 { font-size: 17px; }
  .modal-body { padding: 20px 19px; }
  .modal-footer { padding: 16px 19px; gap: 7px; }
  .modal-footer .button { padding: 9px 10px; }
  .drop-zone { padding: 25px 11px; }
  .drop-zone small { font-size: 10px; }
  .picker-actions { gap: 7px; }
  .picker-actions .button { padding: 8px 9px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Readable text sizes and neutral metadata keep the file list easy to scan. */
.title-icon { color: #fff; }
.page-description { color: #66725f; font-size: 13px; }
.page-title h1 { font-size: 31px; }
.panel-title h2 { font-size: 18px; }
.button, .account-button { font-size: 13px; }
.search-field input { font-size: 13px; }
.file-table th { font-size: 12px; color: #707b67; }
.file-table td { font-size: 13px; color: #687560; }
.filename { font-size: 15px; color: #33452c; }
.file-subtitle { font-size: 11px; color: #748168; }
.uploader, .row-action { font-size: 12px; }
.breadcrumb, .breadcrumb > #folderCrumb > button { font-size: 13px; }
.list-filters select { font-size: 12px; color: #68795a; }
.list-footer { font-size: 12px; color: #728166; }
.page-note { font-size: 11px; color: #78856e; }
.form-note, .preview-note { font-size: 12px; color: #708361; }
@media (max-width: 760px) {
  .page-title h1 { font-size: 27px; }
  .page-description { font-size: 12px; }
  .button, .account-button { font-size: 12px; }
  .filename { font-size: 14px; }
  .list-footer { font-size: 11px; }
  .breadcrumb, .breadcrumb > #folderCrumb > button { font-size: 12px; }
}
@media (max-width: 600px) {
  .row-action { font-size: 10px; }
  .filename { font-size: 13px; }
  .file-subtitle { font-size: 10px; }
  .file-table th { font-size: 11px; }
  .page-note { font-size: 10px; }
}
@media (max-width: 420px) {
  .page-title h1 { font-size: 24px; }
  .page-description { font-size: 11px; }
  .account-button { font-size: 11px; }
  .toolbar-actions .button { font-size: 12px; padding-left: 10px; padding-right: 10px; }
  .list-footer { font-size: 10px; }
  .breadcrumb, .breadcrumb > #folderCrumb > button { font-size: 11px; }
}
