:root { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; color: #20272b; background: #f7f9f8; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button { cursor: pointer; border-radius: 4px; min-height: 36px; padding: 6px 12px; }
button:disabled { opacity: .45; cursor: default; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #148063; outline-offset: 2px; }
.topbar { height: 64px; padding: 0 max(24px, calc((100vw - 1160px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #dce3df; background: #fff; }
.brand, .top-actions { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.brand { font-weight: 700; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; background: #148063; color: white; font-size: 12px; border-radius: 4px; }
.brand-sub, .muted { color: #68757a; font-size: 13px; font-weight: 400; }
.badge { padding: 3px 8px; background: #e9f4ef; color: #116c51; border-radius: 3px; font-size: 12px; }
main { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
.login-view { min-height: calc(100vh - 64px); display: grid; place-items: center; }
.login-view[hidden], [hidden] { display: none !important; }
.login-form { width: min(100%, 360px); display: grid; gap: 16px; }
h1 { font-size: 24px; margin: 0; font-weight: 650; }
h2 { font-size: 18px; margin: 0; }
label { display: grid; gap: 6px; font-size: 13px; color: #526065; }
input:not([type=file]), select { min-height: 38px; border: 1px solid #bdcac4; border-radius: 4px; background: white; padding: 7px 10px; color: #20272b; }
.primary { background: #148063; border: 1px solid #148063; color: #fff; font-weight: 600; }
.primary:hover { background: #0d6d53; }
.quiet { background: transparent; border: 1px solid #cbd6d1; color: #2e4146; }
.quiet:hover { background: #eaf0ed; }
.danger { color: #b24135; border-color: #e7c0ba; }
.error { color: #b24135; font-size: 13px; min-height: 1em; margin: 0; }
.tabs { height: 54px; display: flex; gap: 24px; border-bottom: 1px solid #dce3df; }
.tabs button { background: none; border: none; border-radius: 0; color: #68757a; padding: 0 2px; }
.tabs button.active { color: #116c51; border-bottom: 2px solid #148063; font-weight: 650; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 28px 0 22px; }
.section-head p { margin: 4px 0 0; }
.filters { display: flex; align-items: end; gap: 12px; margin-bottom: 16px; }
.filters label { min-width: 128px; }
.upload-status { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; padding: 12px 0; border-top: 1px solid #dce3df; border-bottom: 1px solid #dce3df; font-size: 13px; }
.upload-status progress { flex: 1; accent-color: #148063; }
.table-scroll { overflow-x: auto; border-top: 1px solid #dce3df; }
table { border-collapse: collapse; width: 100%; min-width: 670px; table-layout: fixed; }
th, td { text-align: left; padding: 13px 10px; border-bottom: 1px solid #e2e8e5; font-size: 13px; overflow-wrap: anywhere; }
th { color: #68757a; font-weight: 600; background: #f1f5f3; }
th:first-child { width: 32%; }
td:first-child { font-weight: 550; }
td .quiet { margin-right: 6px; }
.state-ready { color: #116c51; }
.state-deleted, .state-failed { color: #b24135; }
.state-pending { color: #a76022; }
.empty { padding: 60px 0; text-align: center; color: #68757a; font-size: 14px; }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 16px 0 40px; font-size: 13px; color: #68757a; }
dialog { width: min(900px, calc(100% - 32px)); border: 1px solid #cbd6d1; border-radius: 6px; padding: 18px; background: white; }
dialog::backdrop { background: #1d2d31b8; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
video { display: block; width: 100%; max-height: 72vh; background: #111; }
@media (max-width: 600px) { .topbar { padding: 0 16px; } main { width: calc(100% - 32px); } .brand-sub, #username { display: none; } .section-head { margin-top: 20px; } h1 { font-size: 21px; } .pager { justify-content: space-between; } }
.action-group { display: flex; flex-wrap: wrap; gap: 8px; }
#bucketTitle { margin-top: 16px; }
.prefix-field { flex: 1; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; color: #68757a; }
.breadcrumbs button { border: 0; min-height: 28px; padding: 2px 6px; color: #116c51; }
.drop-zone { padding: 22px; border: 1px dashed #96b4a6; border-radius: 4px; text-align: center; color: #116c51; background: #f0f7f3; cursor: pointer; margin-bottom: 16px; }
.drop-zone .muted { display: block; margin-top: 7px; }
.drop-zone.dragging { background: #dceee4; border-color: #148063; }
.drop-zone[aria-disabled=true] { cursor: default; color: #68757a; background: #f1f3f2; }
.section-meta { margin: 16px 0 10px; }
.download { display: inline-block; text-decoration: none; border-radius: 4px; padding: 7px 10px; margin-right: 6px; }
#objectRows td:last-child { white-space: normal; }
#objectRows .quiet { margin-bottom: 5px; padding: 5px 8px; min-height: 30px; }
#objectRows th:first-child { width: 30%; }
#queuePanel { border-top: 1px solid #dce3df; padding-bottom: 32px; }
.queue-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid #e2e8e5; font-size: 13px; }
.queue-row > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.queue-row p { margin: 6px 0 0; }
.queue-row progress { width: 140px; accent-color: #148063; }
.small-dialog { max-width: 540px; }
.dialog-form { display: grid; gap: 16px; }
#previewMedia img { display: block; max-width: 100%; max-height: 72vh; margin: auto; object-fit: contain; }
#previewMedia audio { width: 100%; }
#detailFields { display: grid; grid-template-columns: 90px 1fr; gap: 14px; font-size: 13px; }
#detailFields dt { color: #68757a; }
#detailFields dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 700px) { .section-head { align-items: flex-start; flex-wrap: wrap; } .filters { flex-wrap: wrap; } .prefix-field { min-width: 100%; } .queue-row { flex-wrap: wrap; } .queue-row > div { flex-basis: 100%; } .queue-row progress { flex: 1; } }
