.files-view #content { padding: 0; overflow: hidden; min-height: 0; display: flex; }
.files-view .topbar { padding: 18px 26px; gap: 16px; min-height: 84px; }
.files-view .topbar h1 { margin-top: 5px; }
.files-view #top-actions { align-items: center; flex-wrap: wrap; gap: 6px; }
.files-view #top-actions button { padding: 7px 10px; font-size: 11px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.files-view #top-actions .file-icon { width: 15px; height: 15px; }
.files-view #top-actions .finder-create-menu { display: none; }
.files-workspace { --file-accent: #246e65; --file-selection: #e5f0eb; display: flex; flex-direction: column; flex: 1; min-width: 0; min-height: 0; color: #34443f; background: #fff; font-size: 12px; }
.files-workspace [hidden] { display: none !important; }
.file-icon { width: 20px; height: 20px; flex: none; }
.finder-toolbar { min-height: 71px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #dde5e0; background: #f8faf8; padding: 12px 20px; }
.finder-navigation { display: flex; align-items: center; gap: 3px; }
button.finder-tool { display: inline-flex; align-items: center; justify-content: center; padding: 6px; border: 1px solid transparent; color: #697972; background: transparent; border-radius: 5px; min-width: 30px; min-height: 30px; }
button.finder-tool .file-icon { width: 18px; height: 18px; }
button.finder-tool:hover { background: #e5eae6; color: #23483c; }
button.finder-tool:disabled { opacity: .28; cursor: default; }
.files-workspace button:focus-visible, .finder-menu :focus-visible { outline: 2px solid #418f81; outline-offset: -2px; box-shadow: none; }
.finder-heading { min-width: 60px; flex: 1; }
.finder-heading h2 { font-size: 15px; font-weight: 650; letter-spacing: -.2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0 0 4px; }
.finder-heading > span { display: block; font-size: 10px; color: #809087; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.finder-view-switch { display: flex; align-items: center; border: 1px solid #dce4de; border-radius: 6px; padding: 2px; background: #edf1ed; }
.finder-view-switch .finder-tool { min-width: 29px; min-height: 26px; padding: 4px 6px; }
.finder-view-switch .finder-tool[aria-pressed=true] { background: #fff; box-shadow: 0 1px 3px #183b2520; color: #2d5c4b; }
.finder-toolbar > .finder-tool[aria-pressed=true] { color: var(--file-accent); background: #e6ede7; }
.finder-search { display: flex; align-items: center; gap: 7px; background: #fff; border: 1px solid #dce4df; border-radius: 6px; padding-left: 9px; width: clamp(135px, 18vw, 235px); }
.finder-search .file-icon { width: 15px; height: 15px; color: #93a096; }
.finder-search input { min-width: 0; width: 100%; background: transparent; border: 0; border-radius: 5px; font-size: 11px; padding: 8px 6px 8px 0; box-shadow: none; }
.finder-search:focus-within { outline: 2px solid #82b2a0; outline-offset: 1px; }
.finder-search input::placeholder { color: #94a098; }
.finder-body { display: flex; flex: 1; min-width: 0; min-height: 0; }
.finder-sidebar { width: 178px; flex: none; background: #f3f6f2; border-right: 1px solid #dfe6df; padding: 17px 9px 10px; display: flex; flex-direction: column; gap: 4px; overflow: auto; }
.finder-sidebar h3 { color: #8a968d; text-transform: uppercase; font-size: 9px; font-weight: 650; letter-spacing: .85px; padding: 0 10px; margin: 9px 0 6px; }
.finder-sidebar h3:not(:first-child) { margin-top: 27px; }
button.finder-location { display: flex; gap: 9px; align-items: center; border: 0; border-radius: 6px; background: transparent; text-align: left; padding: 9px 10px; font-size: 12px; font-weight: 500; color: #607768; }
.finder-location .file-icon { width: 17px; height: 17px; color: #7e9583; }
.finder-location span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
button.finder-location:hover { background: #e8eee5; }
button.finder-location[aria-current=true] { background: #dfe9dd; color: #295b40; }
.finder-location[aria-current=true] .file-icon { color: #537e59; }
.finder-sidebar-note { color: #a0aa9e; font-size: 10px; line-height: 1.65; border-top: 1px solid #e1e8df; margin: auto 8px 0; padding: 20px 2px 5px; display: grid; gap: 5px; }
.finder-sidebar-note .file-icon { margin: 0 0 5px; color: #9cafa0; }
.finder-sidebar-note strong { color: #869783; font-weight: 500; }
.finder-browser { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.finder-controls { display: flex; gap: 4px; align-items: center; padding: 8px 13px; min-height: 44px; border-bottom: 1px solid #e5eae4; }
.finder-path { display: flex; align-items: center; gap: 1px; min-width: 0; flex: 1; overflow: auto; scrollbar-width: none; }
.finder-path .file-icon { width: 12px; height: 12px; color: #a6b0a6; }
.finder-path button { padding: 4px 6px; font-size: 10px; background: transparent; border: 0; color: #91a08f; flex: none; max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.finder-path button:hover { color: #3d795b; background: #f1f5ef; }
.finder-path button[aria-current=page] { color: #4c6b4f; font-weight: 500; }
.finder-path > span { color: #788d78; font-size: 11px; }
.finder-controls > select { font-size: 10px; padding: 5px 4px; border: 0; background: transparent; width: 112px; color: #758574; }
.finder-controls > #files-location { display: none; }
.finder-controls > .finder-tool { padding: 3px; min-width: 23px; min-height: 24px; }
.finder-controls > .finder-tool .file-icon { width: 14px; height: 14px; }
.finder-controls > .is-descending .file-icon { transform: rotate(180deg); }
.finder-scroll { overflow: auto; min-height: 0; flex: 1; overscroll-behavior: contain; scrollbar-width: thin; background: #fff; }
.files-workspace .files-table { table-layout: fixed; width: 100%; border-collapse: separate; border-spacing: 0; font-size: 11px; }
.files-table thead { position: sticky; top: 0; z-index: 1; }
.files-workspace .files-table th { font-size: 10px; font-weight: 500; background: #fafbf9; letter-spacing: 0; padding: 6px 11px; color: #97a292; border-bottom: 1px solid #e7ece4; text-transform: none; }
.files-table th > button { border: 0; background: transparent; padding: 2px 0; font-size: inherit; font-weight: inherit; color: inherit; white-space: nowrap; }
.files-table th[aria-sort=ascending] > button, .files-table th[aria-sort=descending] > button { color: #5b7257; }
.files-table th[aria-sort=ascending] > button::after { content: ' ↑'; font-size: 10px; }
.files-table th[aria-sort=descending] > button::after { content: ' ↓'; font-size: 10px; }
.files-table th.finder-column-name { padding-left: 22px; }
.files-table .finder-column-modified { width: 114px; }
.files-table .finder-column-kind { width: 113px; }
.files-table .finder-column-size { width: 77px; }
.files-table .finder-column-actions { width: 36px; }
.files-workspace .files-table td { padding: 6px 11px; border: 0; height: 43px; line-height: 1.45; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #71816a; font-size: 11px; }
.files-table tbody tr:nth-child(even) { background: #f9fbf7; }
.files-table tbody tr:hover { background: #f1f5ec; }
.files-table tbody tr.is-selected { background: var(--file-selection); }
.files-table tbody tr.is-selected .finder-filename { color: #28543a; }
.files-table .finder-cell-name { padding-left: 17px !important; }
.files-workspace .file-name { display: inline-flex; gap: 10px; align-items: center; padding: 2px 5px; border: 0; background: transparent; font-size: 12px; font-weight: 500; min-width: 0; max-width: 100%; color: #4b6246; border-radius: 4px; text-align: left; }
.finder-filename { text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
.file-name > span:first-child { display: flex; flex: none; }
.file-picture { display: inline-flex; align-items: center; justify-content: center; color: #8caa9c; }
.file-picture .file-icon { width: 23px; height: 23px; }
.file-picture.folder { color: #7fa7bd; }
.file-picture.folder .file-icon { fill: #d4e6ec; stroke-width: 1.25; }
.file-picture.sheet { color: #6d9b75; }
.file-picture.sheet .file-icon { fill: #eef5e9; stroke-width: 1.25; }
.file-picture.image { color: #b397b6; }
.file-picture.image .file-icon { fill: #f3eaf3; }
.file-picture.code { color: #b3955f; }
.file-picture.archive { color: #b6997e; }
.file-picture.media { color: #869dc3; }
.files-workspace .files-table td.finder-cell-actions { padding: 3px 5px 3px 0; overflow: visible; }
.finder-cell-actions .finder-tool { opacity: 0; min-width: 25px; min-height: 25px; padding: 4px; }
.files-table tr:hover .finder-row-more, .files-table tr.is-selected .finder-row-more, .files-table tr:focus-within .finder-row-more { opacity: 1; }
.finder-empty { text-align: center; padding: 88px 25px 50px; color: #95a48e; }
.finder-empty > span > .file-icon { width: 55px; height: 55px; stroke-width: 1; color: #b9cbb3; }
.finder-empty h3 { color: #647e56; font-size: 16px; font-weight: 500; margin: 19px 0 8px; }
.finder-empty p { font-size: 11px; line-height: 1.8; max-width: 280px; margin: 0 auto 18px; }
.finder-empty button { font-size: 11px; padding: 7px 10px; }
.finder-status { border-top: 1px solid #e2e8dd; padding: 10px 17px; background: #fafcf7; font-size: 10px; color: #8d9d81; min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.finder-keyboard-hint { color: #a3ae9b; font-size: 9px; }
.finder-hide-sidebar .finder-sidebar { display: none; }
.finder-inspector { width: clamp(290px, 25vw, 360px); flex: none; display: none; min-height: 0; overflow: auto; overscroll-behavior: contain; border-left: 1px solid #e2e8de; background: #fcfdfb; scrollbar-width: thin; }
.finder-show-preview .finder-inspector { display: block; }
.finder-inspector .file-detail { border: 0; border-radius: 0; padding: 20px 16px; margin: 0; background: transparent; min-width: 0; }
.finder-inspector .file-detail-heading { gap: 6px; align-items: flex-start; }
.file-detail-heading > div { display: flex; align-items: center; gap: 9px; min-width: 0; }
.file-detail-heading > div > .file-picture { flex: none; }
.finder-inspector .file-detail-heading h2 { font-size: 13px; font-weight: 600; line-height: 1.6; margin: 0; }
.file-detail-meta { display: flex; flex-direction: column; align-items: flex-start; color: #98a38f; gap: 7px; margin: 10px 0 15px; font-size: 10px; }
.file-detail-meta .badge { margin: 0; font-size: 9px; }
.finder-inspector .file-detail > .toolbar { gap: 6px; margin: 13px 0 18px; }
.finder-inspector .file-detail .toolbar button, .finder-inspector .file-download { font-size: 10px; padding: 6px 8px; min-width: 0; min-height: 0; }
.file-detail .file-download { display: inline-flex; align-items: center; border: 1px solid #dfe7d9; border-radius: 5px; padding: 5px 9px; color: #5e8457; background: white; white-space: nowrap; }
.file-detail-tabs { display: flex; gap: 2px; border-bottom: 1px solid #e0e8d9; margin-bottom: 15px; }
.file-detail-tabs > button { flex: 1; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; padding: 10px 3px; font-size: 10px; color: #91a082; white-space: nowrap; }
.file-detail-tabs > button[aria-selected=true] { border-bottom-color: #608b4f; color: #4e773c; font-weight: 600; }
.file-detail-panel { min-width: 0; }
.file-detail-panel[hidden] { display: none; }
.file-detail-panel .file-content-preview { margin: 0; }
.finder-inspector .file-text-preview { border: 0; padding: 13px; background: #f4f7ef; font-size: 11px; line-height: 1.8; max-height: 55vh; }
.file-image-preview { width: 100%; max-height: 60vh; object-fit: contain; border-radius: 5px; background: #f2f5ed; }
.file-inspector-picture { display: flex; padding: 30px 10px 20px; }
.file-inspector-picture .file-icon { width: 80px; height: 80px; stroke-width: 1; }
.file-facts { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px 10px; margin: 16px 0; font-size: 10px; line-height: 1.6; }
.file-facts dt { color: #9ca791; }
.file-facts dd { margin: 0; color: #657c54; overflow-wrap: anywhere; }
.file-detail-panel > button { font-size: 10px; padding: 6px 9px; }
.file-identity { border-top: 1px solid #e6ecdf; padding-top: 13px; margin-top: 20px; font-size: 10px; color: #9aa68c; }
.file-identity summary { cursor: pointer; }
.file-identity code { display: block; color: #839371; white-space: pre-wrap; font-size: 9px; overflow-wrap: anywhere; padding-top: 9px; }
.file-versions { list-style: none; margin: 0; padding: 0; }
.file-version { border-top: 1px solid #e7ecdf; padding: 14px 0; }
.file-version-heading { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.file-version-heading strong { font-size: 10px; font-weight: 500; }
.file-version .hint { margin: 6px 0 10px; font-size: 10px; }
.file-version-actions { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.file-version-actions button { font-size: 9px; padding: 5px 7px; }
.file-version-actions .file-download { font-size: 9px; }
.finder-inspector .sheet-rich-frame { height: 430px; min-height: 300px; max-height: 56vh; }
.finder-inspector .sheet-toolbar { padding: 5px; gap: 4px; }
.finder-inspector .sheet-save-state { display: none; }
.finder-inspector .sheet-workbook-hint, .finder-inspector .sheet-help { display: none; }
.finder-inspector .sheet-source { font-size: 10px; padding: 8px; min-height: 240px; }
.finder-inspector .sheet-viewport { min-height: 240px; max-height: 52vh; }
.file-workbook-copy { margin-top: 10px; }
.finder-menu { position: fixed; z-index: 100; display: flex; flex-direction: column; min-width: 190px; max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); overflow-y: auto; padding: 5px; border: 1px solid #dbe3d3; border-radius: 8px; background: #fff; box-shadow: 0 8px 30px #233f2525; }
.finder-menu > button, .finder-menu > a { text-align: left; display: block; padding: 8px 10px; font-size: 11px; border: 0; border-radius: 4px; color: #4f6841; background: transparent; line-height: 1.4; text-decoration: none; }
.finder-menu > button:hover, .finder-menu > a:hover, .finder-menu > :focus { background: #e7f0de; outline: none; }
.finder-menu .has-divider { margin-top: 5px; border-top: 1px solid #e9eee2; border-top-left-radius: 0; border-top-right-radius: 0; padding-top: 10px; }
.finder-menu .is-danger { color: #a45d48; }
#dialog:has(.file-detail) { width: min(1200px, calc(100vw - 32px)); }
#dialog .file-detail { border: 0; margin: 10px 0 0; padding: 0; }
#dialog .file-detail-heading { display: none; }
#dialog .file-detail > .toolbar { margin: 10px 0 15px; }
#dialog .file-detail-meta { flex-direction: row; align-items: center; }
#dialog .file-detail-tabs { max-width: 380px; }
#dialog .file-detail-panel { max-height: 62vh; overflow: auto; }
#dialog .file-detail .file-facts { max-width: 450px; }
#dialog .file-image-preview { max-height: 55vh; }
.finder-icons .files-table { display: block; }
.finder-icons .files-table thead { display: none; }
.finder-icons .files-table tbody { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 9px; padding: 20px 14px; }
.finder-icons .files-table tbody tr { position: relative; display: block; border-radius: 7px; min-width: 0; background: transparent; padding: 6px 2px; }
.finder-icons .files-table tbody tr:hover { background: #f5f8ef; }
.finder-icons .files-table tbody tr.is-selected { background: #ebf2e2; }
.finder-icons .files-table td.finder-cell-name { display: block; padding: 0 !important; height: auto; overflow: visible; }
.finder-icons .files-table td:not(.finder-cell-name):not(.finder-cell-actions) { display: none; }
.finder-icons .file-name { width: 100%; max-width: none; flex-direction: column; gap: 9px; text-align: center; padding: 9px 4px; min-height: 120px; }
.finder-icons .file-name .file-picture > .file-icon { width: 59px; height: 59px; stroke-width: 1; }
.finder-icons .finder-filename { white-space: normal; word-break: break-word; overflow: hidden; max-width: 100%; line-height: 1.5; font-size: 11px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.finder-icons .files-table td.finder-cell-actions { position: absolute; right: 3px; top: 3px; padding: 0; height: auto; }
@media(max-width:1250px) {
  .finder-toolbar { gap: 8px; padding: 10px 12px; flex-wrap: wrap; }
  .finder-heading { flex-basis: 120px; }
  .finder-sidebar { width: 155px; }
  .finder-show-preview .finder-sidebar { width: 137px; padding-left: 5px; padding-right: 5px; }
  .finder-show-preview .finder-column-kind, .finder-show-preview .finder-cell-kind { display: none; }
  .finder-show-preview .finder-column-modified, .finder-show-preview .finder-cell-modified { display: none; }
  .finder-show-preview .finder-inspector { width: 290px; }
  .finder-keyboard-hint { display: none; }
}
@media(max-width:1050px) {
  .files-view .topbar { padding: 15px 18px; align-items: flex-start; }
  .files-view #top-actions { max-width: 350px; }
  .finder-toolbar .finder-search { width: 100%; flex-basis: 100%; }
  .finder-show-preview .finder-sidebar { display: none; }
  .finder-column-kind, .finder-cell-kind { display: none; }
  .finder-column-modified, .finder-cell-modified { display: none; }
  .finder-heading { flex-basis: 70px; }
  .finder-controls > #files-location { display: block; width: auto; max-width: 135px; min-width: 85px; }
  .finder-controls > .finder-path { display: none; }
  .finder-controls > select[aria-label='Sort files'] { margin-left: auto; }
  .finder-show-preview .finder-column-size, .finder-show-preview .finder-cell-size { display: none; }
  .finder-show-preview .finder-controls > select[aria-label='Sort files'] { width: 32px; padding-right: 0; }
}
@media(max-width:800px) {
  .finder-sidebar { display: none; }
  .finder-toolbar { gap: 6px; }
  .finder-navigation > .finder-tool:first-child { display: none; }
  .finder-show-preview .finder-inspector { width: 100%; border-left: 0; }
  .finder-show-preview .finder-browser { display: none; }
  .finder-show-preview .finder-status { display: none; }
  .finder-inspector .file-detail { padding: 18px; }
  .finder-inspector .file-text-preview { max-height: 52vh; }
  .finder-inspector .sheet-rich-frame { height: 53vh; }
  .finder-inspector .file-detail-heading h2 { font-size: 15px; }
  .finder-inspector .file-detail-heading > .finder-tool { border: 1px solid #dce5d3; }
  .finder-inspector .file-detail-meta { flex-direction: row; align-items: center; gap: 10px; }
  .finder-inspector .file-detail > .toolbar { margin: 14px 0; }
  .finder-inspector .file-facts { grid-template-columns: 90px minmax(0, 1fr); font-size: 11px; }
  .finder-cell-actions .finder-tool { opacity: 1; }
  .files-workspace .files-table thead { display: table-header-group; }
  .files-workspace .files-table tbody tr { display: table-row; }
  .files-workspace .files-table tbody tr + tr { border-top: 0; }
  .files-workspace .files-table td { display: table-cell; }
  .files-workspace .files-table td.finder-cell-modified, .files-workspace .files-table td.finder-cell-kind { display: none; }
  .files-workspace .files-table td.finder-cell-size { display: table-cell; }
  .files-workspace.finder-icons .files-table thead { display: none; }
  .files-workspace.finder-icons .files-table tbody tr { display: block; }
  .files-workspace.finder-icons .files-table td.finder-cell-name { display: block; }
  .files-workspace.finder-icons .files-table td:not(.finder-cell-name):not(.finder-cell-actions) { display: none; }
  .finder-icons .files-table tbody { grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)); gap: 6px; padding: 14px 10px; }
}
@media(max-width:700px) {
  .files-view .topbar { flex-direction: column; gap: 13px; padding: 15px 16px; }
  .files-view .topbar > div:first-child { display: none; }
  .files-view #top-actions { max-width: none; width: 100%; justify-content: flex-start; gap: 5px; }
  .files-view #top-actions button { padding: 6px 8px; font-size: 10px; }
  .files-view #top-actions .finder-create-action { display: none; }
  .files-view #top-actions .finder-create-menu { display: inline-flex; }
  .finder-toolbar { padding: 9px 11px; }
  .finder-heading { flex-basis: 60px; }
  .finder-heading > span { display: none; }
  .finder-heading h2 { font-size: 13px; margin: 0; }
  .finder-navigation { gap: 0; }
  .finder-navigation .finder-tool { min-width: 24px; padding: 3px; }
  .finder-navigation .finder-tool[aria-label='Enclosing folder'] { display: none; }
  .finder-status { padding: 9px 13px; }
  .finder-controls { padding: 8px; }
  .finder-controls > #files-location { max-width: 130px; }
  .finder-controls > select[aria-label='Sort files'] { width: 110px; }
  .finder-path button { max-width: 100px; }
}
