:root { --studio-ink: #50473f; --studio-paper: #f8f4ee; --studio-accent: #883944; }
.collection-card { position: relative; min-width: 0; }
.collection-card .box-card { width: 100%; }
.collection-card strong, .collection-card small { padding-right: 42px; }
.collection-options { position: absolute; right: 0; top: calc((100% - 48px)); z-index: 3; }
.collection-options[open] { z-index: 5; }
.collection-options summary { list-style: none; cursor: pointer; padding: 4px 10px; font-size: 24px; line-height: 1; }
.collection-options summary::-webkit-details-marker { display: none; }
.collection-options > div { position: absolute; right: 0; min-width: 190px; display: grid; padding: 5px; background: #fffdfa; border-radius: 12px; box-shadow: 0 8px 30px #43362825; }
.collection-options button { justify-content: flex-start; white-space: nowrap; border: 0; }
.collection-options button:last-child { color: #8d3840; border-top: 1px solid #eae1da; border-radius: 0; }
.folder-preview { position: relative; max-width: 360px; margin: 1rem auto; }
.folder-preview img { display: block; width: 100%; border-radius: 12px; }
.collection-card .box-card { position: relative; }
.folder-preview::after, .box-card[data-theme]:not([data-theme='classic'])::after { content: ''; pointer-events: none; position: absolute; inset: 27% 0 0; border-radius: 10px; opacity: .42; mix-blend-mode: multiply; }
.box-card[data-theme]:not([data-theme='classic'])::after { top: 0; bottom: auto; width: 100%; aspect-ratio: 1.32; }
[data-theme='paper']::after, .theme-choices [data-theme='paper'] { background: url('assets/paper.webp') center / cover; }
[data-theme='plaid']::after, .theme-choices [data-theme='plaid'] { background: repeating-linear-gradient(0deg,#78674c50 0 1px,transparent 1px 11px), repeating-linear-gradient(90deg,#78674c50 0 1px,#ebe4d4 1px 11px); }
[data-theme='dots']::after, .theme-choices [data-theme='dots'] { background: radial-gradient(#6e5a47 1px, #ebe0d3 1px) 0 0 / 7px 7px; }
.theme-choices { display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; }
.theme-choices legend { margin-bottom: 8px; }
.theme-choices label { display: flex; align-items: center; gap: 5px; }
.theme-choices span { padding: 8px; border-radius: 8px; }
.studio-dialog { width: min(540px, calc(100% - 28px)); background: var(--studio-paper); }
.studio-dialog h2, .support-page h1, .admin-page h1 { color: var(--studio-ink); font-family: var(--serif); font-style: italic; }
.drop-zone { position: relative; min-height: 140px; border: 1px dashed #b9aa9e; border-radius: 10px; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; cursor: pointer; padding: 15px; }
.drop-zone:hover, .drop-zone:focus-within { background: #eee5db; }
.drop-zone .icon { width: 30px; height: 30px; }
.drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-divider { text-align: center; margin: 24px 0 12px; color: #796a5f; }
.audio-actions { display: grid; grid-template-columns: repeat(auto-fit,minmax(125px,1fr)); gap: 12px; margin-bottom: 12px; }
.audio-actions button { min-height: 64px; }
.floating-photo { position: absolute; right: -9%; top: 62%; width: 28%; padding: 1.4%; aspect-ratio: 4 / 5; background: #fffdf9; transform: rotate(7deg); box-shadow: 0 4px 14px #20190f35; pointer-events: none; }
.floating-photo img, .photo-thumb { display: block; width: 100%; height: 100%; object-fit: cover; background: #e7e4e0; }
.photo-thumb { width: 100%; height: auto; aspect-ratio: 4 / 3; margin-bottom: 8px; border-radius: 8px; }
.support-page, .admin-page { width: min(94%, 840px); margin: clamp(24px, 6vw, 75px) auto; padding: clamp(22px, 5vw, 54px); background: #fffaf4; border: 1px solid #eaded5; border-radius: 18px; }
.support-page { max-width: 620px; }
.support-page figure { margin: 28px 0; }
.support-page figure img { display: block; width: min(240px, 100%); background: white; padding: 8px; border: 1px solid #eaded5; border-radius: 8px; }
.support-page figcaption { margin-top: 10px; }
.plain-copy { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; }
.admin-page { max-width: 1100px; }
.admin-grid { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(0, 3fr); gap: 26px; }
.admin-grid nav { display: grid; align-content: start; gap: 4px; }
.admin-grid nav a { padding: 9px 12px; border-radius: 8px; text-decoration: none; }
.admin-grid nav a[aria-current] { color: var(--studio-accent); background: #f2e3df; font-weight: 600; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px,1fr)); gap: 9px; }
.admin-stats div, .admin-row { border: 1px solid #e9e0d9; border-radius: 10px; background: #fffdf9; padding: 12px; }
.admin-stats dd { margin: 4px 0 0; font-size: 1.25rem; font-weight: 600; }
.admin-row { display: flex; align-items: center; gap: 12px; justify-content: space-between; margin: 10px 0; }
.admin-row img { width: 44px; height: 44px; object-fit: contain; vertical-align: middle; margin-right: 10px; }
.file-row { display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; margin: 9px 0; }
.file-row input { width: auto; flex-shrink: 0; }
@media (max-width: 650px) { .admin-grid { grid-template-columns: 1fr; } .admin-grid nav { grid-template-columns: repeat(2, minmax(0,1fr)); } .floating-photo { right: 0; } }
