:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #edf1f1;
  background: #141819;
  --sidebar: #191e1f;
  --surface: #202627;
  --raised: #272f30;
  --border: #333c3e;
  --muted: #a7b3b3;
  --accent: #a3e5cd;
  --accent-strong: #b9f5de;
  --wash: #243732;
  --negative: #ffb5a5;
  --radius: 12px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 300px; line-height: 1.55; font-size: 14px; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--muted); }
.stack { display: grid; gap: 8px; }
.stack label { font-weight: 600; }
.stack input, .stack select { width: 100%; }
input:not([type="checkbox"], [type="file"], [type="hidden"]), select {
  min-height: 42px; min-width: 0; border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 11px; color: inherit; background: var(--sidebar);
}
input::placeholder { color: var(--muted); opacity: 1; }
input[type="checkbox"] { width: 17px; height: 17px; flex: none; margin: 0; accent-color: var(--accent); cursor: pointer; }
select { padding-right: 25px; }
.button, .primary, .icon-button, .text-button {
  display: inline-flex; justify-content: center; align-items: center; gap: 8px;
  border: 1px solid var(--border); border-radius: 8px; min-height: 42px;
  padding: 8px 14px; font-weight: 600; color: inherit; background: var(--surface);
}
.button:hover:not(:disabled), .icon-button:hover, .text-button:hover { background: var(--raised); }
.primary { color: #112821; background: var(--accent); border-color: var(--accent); }
.primary:hover:not(:disabled) { background: var(--accent-strong); }
.icon-button { width: 34px; min-height: 34px; padding: 0; font-size: 24px; line-height: 1; }
.text-button { background: none; border-color: transparent; color: var(--muted); padding-inline: 9px; }

.icon { display: inline-block; position: relative; width: 16px; height: 16px; flex: 0 0 16px; color: inherit; }
.icon::before, .icon::after { content: ""; position: absolute; box-sizing: border-box; }
.i-plus::before, .i-plus::after { background: currentColor; border-radius: 2px; }
.i-plus::before { width: 12px; height: 1.5px; left: 2px; top: 7px; }
.i-plus::after { width: 1.5px; height: 12px; left: 7px; top: 2px; }
.i-photos::before { inset: 2px 1px; border: 1.5px solid currentColor; border-radius: 3px; }
.i-photos::after { width: 7px; height: 6px; left: 4px; bottom: 4px; border-top: 1.5px solid; border-left: 1.5px solid; transform: rotate(42deg); }
.i-folder::before { inset: 5px 0 1px; border: 1.5px solid currentColor; border-radius: 2px; }
.i-folder::after { width: 7px; height: 4px; left: 0; top: 2px; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 2px 2px 0 0; }
.i-link { transform: rotate(-43deg); }
.i-link::before, .i-link::after { width: 9px; height: 6px; top: 5px; border: 1.5px solid; border-radius: 5px; }
.i-link::before { left: 0; }
.i-link::after { right: 0; }
.i-exit::before { inset: 1px 7px 1px 1px; border: 1.5px solid; border-right: 0; border-radius: 2px 0 0 2px; }
.i-exit::after { width: 11px; height: 9px; right: 0; top: 4px; background: currentColor; clip-path: polygon(60% 0, 100% 50%, 60% 100%, 50% 85%, 71% 60%, 0 60%, 0 40%, 71% 40%, 50% 15%); }
.i-search::before { width: 11px; height: 11px; left: 0; top: 0; border: 1.5px solid; border-radius: 50%; }
.i-search::after { height: 1.5px; width: 6px; top: 11px; left: 9px; background: currentColor; transform: rotate(45deg); }
.i-upload::before { inset: 9px 1px 1px; border: 1.5px solid; border-top: 0; border-radius: 0 0 3px 3px; }
.i-upload::after { width: 10px; height: 11px; top: 0; left: 3px; background: currentColor; clip-path: polygon(50% 0, 100% 43%, 88% 54%, 58% 28%, 58% 100%, 42% 100%, 42% 28%, 12% 54%, 0 43%); }
.i-sort::before { inset: 3px 2px; background: currentColor; clip-path: polygon(0 0, 100% 0, 100% 15%, 0 15%, 0 42%, 75% 42%, 75% 57%, 0 57%, 0 84%, 46% 84%, 46% 100%, 0 100%); }
.i-check::before { inset: 1px; border: 1.5px solid; border-radius: 3px; }
.i-check::after { width: 7px; height: 4px; left: 4.5px; top: 5px; border-left: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(-45deg); }

.layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  display: flex; flex-direction: column; padding: 30px 16px 19px; background: var(--sidebar);
  border-right: 1px solid var(--border); position: sticky; top: 0; align-self: start;
  height: 100vh; min-height: 0; overflow: auto;
}
.brand { display: flex; align-items: center; gap: 11px; font-size: 18px; font-weight: 750; width: fit-content; }
.sidebar > .brand { margin: 2px 9px 44px; }
.mark { width: 35px; height: 35px; flex: 0 0 35px; background: var(--accent); border-radius: 10px; position: relative; }
.mark::before { content: ""; position: absolute; width: 8px; height: 7px; border: 1.75px solid #102820; border-bottom: 0; left: 12px; top: 8px; border-radius: 7px 7px 0 0; }
.mark::after { content: ""; position: absolute; width: 16px; height: 12px; left: 9.5px; top: 15px; background: #102820; border-radius: 3px; }
.nav-heading { display: flex; justify-content: space-between; align-items: center; padding: 0 5px 8px 10px; }
.nav-heading h2 { color: var(--muted); font-size: 12px; font-weight: 650; letter-spacing: .13em; }
.nav-heading .icon-button { width: 25px; min-height: 25px; background: transparent; border-color: transparent; color: var(--muted); }
.nav-heading .icon-button:hover { color: var(--accent); background: var(--raised); border-color: var(--border); }
.album-nav { display: grid; gap: 3px; }
.folder {
  display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 10px; min-height: 42px; border: 1px solid transparent; border-radius: 8px; color: var(--muted); background: transparent;
}
.folder > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder:hover { background: var(--raised); color: #fff; }
.folder.active { color: var(--accent); background: var(--wash); border-color: #345147; font-weight: 650; }
.folder-count { font-size: 12px; font-variant-numeric: tabular-nums; }
.side-actions { margin-top: auto; padding-top: 16px; }
.side-actions > a { border-top-color: var(--border); border-radius: 0; padding-top: 17px; }
.side-actions > a:hover { border-radius: 8px; }

.library { padding: 43px clamp(22px, 3vw, 46px) 42px; max-width: 1880px; width: 100%; min-width: 0; }
.library-heading { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 30px; }
.library-title { min-width: 0; overflow-wrap: anywhere; }
.library-title h1 { font-size: clamp(27px, 3vw, 38px); line-height: 1.25; font-weight: 720; letter-spacing: -.035em; }
.library-title p { margin-top: 8px; }
.heading-actions, .header-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.search { position: relative; display: flex; align-items: center; }
.search-submit {
  position: absolute; display: grid; place-items: center; left: 4px; width: 30px; height: 32px;
  border: 0; border-radius: 6px; background: transparent; color: var(--muted); padding: 0;
}
.search-submit:hover { color: var(--accent); background: var(--raised); }
.search input[type="search"] { padding-left: 37px; width: min(24vw, 288px); }
.case-summary {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  margin-bottom: 12px; padding: 12px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--surface);
}
.case-summary img { object-fit: cover; border-radius: 6px; }
.case-text { flex: 1 1 230px; min-width: 0; overflow-wrap: anywhere; }
.case-text p + p { margin-top: 4px; white-space: pre-line; }
#case-notes { padding: 8px 11px; border: 1px solid var(--border); border-radius: 8px; color: inherit; background: var(--sidebar); }
.library-tools {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  border-bottom: 1px solid var(--border); margin-bottom: 22px; min-height: 47px;
}
.state-nav { display: flex; align-self: stretch; gap: clamp(13px, 2vw, 28px); margin-right: auto; }
.state-tab { display: inline-flex; align-items: center; padding: 0 2px; min-height: 46px; border-bottom: 2px solid transparent; color: var(--muted); }
.state-tab:hover { color: #fff; }
.state-tab.active { font-weight: 680; color: var(--accent); border-bottom-color: var(--accent); }
.feature-filter { white-space: nowrap; }
.photo-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 7px; min-width: 0; }
.tag-chip { display: inline-block; max-width: 100%; padding: 1px 7px; border: 1px solid var(--border); border-radius: 6px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.tag-chip:hover { color: var(--accent); border-color: var(--accent); }
.embed-heading + form { margin-top: 8px; }
.choose-toggle { min-height: 35px; }
.choose-toggle[aria-pressed="true"] { color: var(--accent); }
.sort-control { position: relative; display: flex; align-items: center; gap: 8px; margin-left: auto; }
.choose-toggle + .sort-control { margin-left: 0; }
.sort-control .i-sort { position: absolute; left: 9px; color: var(--muted); pointer-events: none; }
.sort-control select { min-height: 34px; padding: 3px 7px 3px 30px; }
.notice { padding: 10px 13px; margin-bottom: 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.notice.success { background: var(--wash); color: var(--accent); }
.notice.error { border-color: #6c4843; color: var(--negative); background: #3b2928; }
.feedback { color: var(--accent); }
.batch-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 10px 12px; border: 1px solid #3b574e; border-radius: 8px; background: var(--wash); margin-bottom: 16px;
}
.batch-bar select { margin-left: auto; }
.select-page, .pick-image { display: flex; align-items: center; gap: 7px; cursor: pointer; }

.collection { display: grid; min-width: 0; align-items: start; }
.collection.has-detail { grid-template-columns: minmax(0, 1fr) minmax(270px, 330px); gap: 21px; }
.collection-main { min-width: 0; }
.inspector { grid-column: 2; grid-row: 1; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 218px), 1fr)); gap: 17px; }
.has-detail .gallery { grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); }
.has-detail .image-frame { aspect-ratio: 1.8; }
.photo-card { position: relative; min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.photo-card:hover { border-color: #546765; }
.photo-card.inspected, .photo-card:has(.batch-item:checked) { border-color: var(--accent); }
.image-frame { display: block; aspect-ratio: 1.55; overflow: hidden; background: #374044; }
a.image-frame:focus-visible { outline-offset: -3px; }
.image-frame img, .detail-preview img { display: block; width: 100%; height: 100%; object-fit: contain; }
.image-frame img { object-fit: cover; }
a.image-frame:hover img { opacity: .88; }
.batch-item {
  position: absolute; z-index: 1; width: 21px !important; height: 21px !important; top: 10px; left: 10px;
  outline: 4px solid #15211e9e; border-radius: 3px;
}
.photo-info { padding: 12px 13px 13px; }
.photo-info h2 { font-size: 15px; line-height: 1.4; font-weight: 660; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.photo-info h2 a:hover { color: var(--accent); }
.photo-info h2 a:focus-visible { outline-offset: -1px; }
.photo-meta { font-size: 12px; margin-top: 4px; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.photo-meta > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.status { display: inline-flex; align-items: center; gap: 6px; color: #c0cbcb; font-size: 11px; font-weight: 550; line-height: 1; }
.status::before { content: ""; width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: #879596; }
.status.available { color: var(--accent); }
.status.available::before { background: #83d7af; }
.photo-info .status { margin-top: 9px; }
.pick-image { margin-top: 9px; color: var(--accent); }
.paging { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 21px; }
.empty { display: grid; justify-items: center; gap: 9px; padding: clamp(45px, 9vw, 112px) 22px; text-align: center; border: 1px dashed #475658; border-radius: var(--radius); background: var(--sidebar); }
.empty h2 { font-size: 19px; }
.empty .button { margin-top: 6px; }
.empty-icon, .drop-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 12px; color: var(--accent); background: var(--wash); }
.empty-icon .icon, .drop-icon .icon { transform: scale(1.22); }

.inspector { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.inspector-header, .modal-header {
  display: flex; justify-content: space-between; align-items: start; gap: 15px; padding: 14px 17px;
  border-bottom: 1px solid var(--border);
}
.inspector-header { align-items: center; }
.inspector-header h2 { font-size: 17px; }
.inspector-header .icon-button, .modal-header .icon-button { color: var(--muted); background: transparent; border-color: transparent; flex-shrink: 0; }
.inspector-header .icon-button:hover, .modal-header .icon-button:hover { background: var(--raised); }
.inspector-body { padding: 16px 17px 18px; }
.detail-preview { aspect-ratio: 1.6; overflow: hidden; border-radius: 7px; background: #374044; }
.image-spec { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px; font-size: 12px; margin-top: 7px; }
.detail-form { margin-top: 15px; gap: 6px; }
.detail-form label:not(:first-of-type) { margin-top: 4px; }
.save-button { margin-top: 4px; width: 100%; }
.embed-section { padding-top: 15px; border-top: 1px solid var(--border); margin-top: 16px; }
.embed-heading, .embed-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.embed-heading { justify-content: space-between; }
.embed-heading h3 { font-size: 14px; }
.embed-section > p { font-size: 12px; margin: 7px 0 12px; }
.embed-actions .button, .embed-actions .primary { min-height: 37px; font-size: 12px; padding-inline: 9px; }
#copy-status { margin-bottom: 0; }
#embed-code { width: 100%; padding: 7px; margin-top: 6px; border: 1px solid var(--border); border-radius: 6px; background: var(--sidebar); color: inherit; }

.modal {
  position: fixed; inset: 0; margin: auto; width: min(460px, calc(100vw - 28px)); max-height: calc(100dvh - 36px); padding: 0;
  border: 1px solid #485556; border-radius: 16px; color: inherit; background: var(--surface); box-shadow: 0 24px 90px #050706a8;
}
.modal:not(:modal) { z-index: 3; }
.modal::backdrop { background: #080d0ed2; }
.upload-modal { width: min(590px, calc(100vw - 28px)); }
.modal-header { padding: 20px 22px 16px; }
.modal-header h2 { font-size: 23px; }
.modal-header p { margin-top: 4px; }
.modal-body { padding: 18px 22px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--border); padding: 14px 22px; }
.dropzone {
  position: relative; display: grid; justify-items: center; gap: 6px; padding: 22px 12px;
  text-align: center; border: 1px dashed #59716a; border-radius: 9px; background: var(--sidebar); margin-top: 5px;
}
.dropzone:hover, .dropzone.drag-over { border-color: var(--accent); background: var(--wash); }
.dropzone:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.dropzone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dropzone strong { font-size: 15px; }
.drop-pick { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.drop-icon { margin-bottom: 3px; }
.upload-limits { font-size: 12px; }
.upload-modal .notice { margin: 0; }
.queue, .sites { padding: 0; margin: 5px 0 0; list-style: none; }
.queue { display: grid; gap: 5px; max-height: 168px; overflow: auto; }
.queue li, .sites li { padding: 7px 10px; border: 1px solid var(--border); border-radius: 7px; background: var(--sidebar); }
.queue li { display: flex; align-items: center; gap: 12px; }
.queue li > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.queue li > .muted { margin-left: auto; white-space: nowrap; font-size: 12px; }
.queue li button { min-height: 29px; width: 29px; flex: 0 0 29px; font-size: 19px; }
.sites { display: grid; gap: 6px; margin-top: 12px; overflow-wrap: anywhere; }
.login { background: var(--surface); width: min(430px, calc(100% - 28px)); margin: clamp(28px, 12vh, 130px) auto; padding: clamp(22px, 6vw, 36px); border: 1px solid var(--border); border-radius: 16px; }
.login .brand, .login form { margin-bottom: 19px; }
.login form { margin-top: 19px; }
.login .primary, .login .button { margin-top: 10px; }

@media (min-width: 1280px) {
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .has-detail .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1050px) {
  .layout { grid-template-columns: 193px minmax(0, 1fr); }
  .collection.has-detail { grid-template-columns: minmax(0, 1fr) minmax(240px, 290px); gap: 13px; }
  .gallery { gap: 12px; }
}
@media (max-width: 760px) {
  .layout { display: block; }
  .sidebar { position: static; height: auto; padding: 13px 15px; border-right: 0; border-bottom: 1px solid var(--border); }
  .sidebar > .brand { margin: 0 0 10px; }
  .album-nav { display: flex; align-items: center; gap: 5px; padding-right: 2px; overflow-x: auto; }
  .nav-heading { padding: 0 2px 0 0; }
  .nav-heading h2 { display: none; }
  .nav-heading .icon-button { width: 35px; min-height: 35px; background: var(--surface); }
  .folder { grid-template-columns: minmax(0, 1fr) auto; width: auto; min-width: fit-content; gap: 6px; padding: 5px 8px; min-height: 35px; font-size: 12px; }
  .folder .icon { display: none; }
  .side-actions { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 6px; }
  .side-actions > a { border-top-color: transparent; border-radius: 8px; padding: 5px 8px; }
  .library { padding: 19px 15px 32px; }
  .library-heading { align-items: flex-start; flex-wrap: wrap; gap: 13px; margin-bottom: 14px; }
  .library-title { width: 100%; }
  .heading-actions { width: 100%; gap: 7px; }
  .search { flex: 1; min-width: 140px; }
  .search input[type="search"] { width: 100%; }
  .library-tools { gap: 4px; margin-bottom: 13px; }
  .state-nav { font-size: 12px; gap: 9px; }
  .choose-toggle, .sort-control select { font-size: 12px; }
  .choose-toggle { padding-inline: 4px; gap: 4px; }
  .choose-toggle .icon { display: none; }
  .sort-control select { padding-left: 5px; }
  .sort-control .icon { display: none; }
  .gallery, .has-detail .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .collection.has-detail { grid-template-columns: minmax(0, 1fr); }
  .inspector { grid-column: 1; grid-row: auto; }
  .detail-preview { max-height: 290px; }
  .photo-info { padding: 9px; }
  .photo-info h2 { font-size: 13px; }
  .photo-meta { font-size: 11px; gap: 4px; }
  .batch-bar { gap: 7px; }
  .batch-bar select { margin-left: 0; }
}

.layout {
  grid-template-columns: 178px minmax(0, 1fr) 284px;
  grid-template-areas: "navigation library folders";
}
.sidebar { grid-area: navigation; }
.library { grid-area: library; padding-inline: clamp(18px, 2.4vw, 38px); }
.folder-sidebar {
  grid-area: folders; position: sticky; top: 0; align-self: start;
  display: flex; flex-direction: column; min-height: 0; max-height: 100vh; height: 100vh;
  padding: 24px 14px 16px; background: var(--sidebar); border-left: 1px solid var(--border);
}
.folder-sidebar-header, .folder-actions, .folder-trail, .photo-actions {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.folder-sidebar-header { justify-content: space-between; margin-bottom: 12px; }
.folder-sidebar-header h2 { font-size: 16px; }
.folder-actions { margin-bottom: 12px; }
.folder-actions .button { flex: 1 1 auto; min-height: 33px; font-size: 12px; padding: 4px 8px; }
.folder-tree { display: grid; gap: 3px; overflow: auto; min-height: 0; position: relative; align-content: start; }
.tree-folder {
  grid-template-columns: 24px minmax(0, 1fr) auto; gap: 7px; min-height: 37px; padding: 6px 8px;
  padding-inline-start: calc(8px + var(--folder-indent, 0px));
}
.tree-folder img { object-fit: cover; border-radius: 4px; }
.tree-folder[data-indent="1"] { --folder-indent: 10px; }
.tree-folder[data-indent="2"] { --folder-indent: 20px; }
.tree-folder[data-indent="3"] { --folder-indent: 30px; }
.tree-folder[data-indent="4"] { --folder-indent: 40px; }
.tree-folder[data-indent="5"] { --folder-indent: 50px; }
.tree-folder[data-indent="6"] { --folder-indent: 60px; }
.tree-folder[data-indent="7"] { --folder-indent: 70px; }
.tree-folder[data-indent="8"] { --folder-indent: 80px; }
.folder-trail { color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.folder-trail a:hover, .rename-photo:hover { color: var(--accent); }
.photo-info .photo-date { margin-top: 3px; font-size: 11px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.photo-actions { justify-content: space-between; margin-top: 5px; }
.photo-actions .status { margin-top: 0; }
.rename-photo { font-size: 12px; color: var(--muted); }
.manager-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-bottom: 8px; padding: 9px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface);
}
.manager-row input:not([type="hidden"]) { flex: 1 1 145px; }
.manager-row .button, .manager-row .primary { min-height: 36px; padding-block: 5px; }
.manager-row .tag-chip { white-space: nowrap; }
.new-tag { margin-bottom: 16px; }
.recovery-row { justify-content: space-between; }
.manager-heading { font-size: 17px; margin: 18px 0 9px; }
.delete-action { color: var(--negative); }
.cover-form { margin-top: 12px; padding-top: 15px; border-top: 1px solid var(--border); }
#image-title:target { outline: 2px solid var(--accent); }

@media (max-width: 1120px) {
  .layout { grid-template-columns: 151px minmax(0, 1fr) 229px; }
  .sidebar { padding-inline: 10px; }
  .collection.has-detail { grid-template-columns: minmax(0, 1fr); }
  .inspector { grid-column: 1; grid-row: auto; }
}
@media (max-width: 760px) {
  .layout { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "navigation" "folders" "library"; }
  .folder-sidebar { position: static; height: auto; padding: 11px 15px; border: 0; border-bottom: 1px solid var(--border); }
  .folder-sidebar-header { margin-bottom: 6px; }
  .folder-tree { max-height: 170px; }
  .tree-folder { width: 100%; min-width: 0; }
  .tree-folder .icon { display: block; }
  .library { padding-inline: 15px; }
}
