:root { color-scheme: light; font-family: system-ui, sans-serif; color: #222b28; background: #f5f7f6; }
* { box-sizing: border-box; letter-spacing: 0; }
[hidden] { display: none !important; }
body { margin: 0; }
header { display: flex; align-items: center; gap: 16px; padding: 14px 28px; border-bottom: 1px solid #d9dfdc; background: #fff; }
.brand { display: flex; align-items: center; }
.brand img { width: 70px; height: 36px; object-fit: contain; }
h1 { flex: 1; min-width: 0; font-size: 22px; margin: 0; font-weight: 650; }
h2 { font-size: 20px; margin: 0 0 20px; }
main { max-width: 1280px; margin: auto; padding: 28px; }
.toolbar, .commands, .dialog-actions { display: flex; align-items: center; gap: 12px; }
.toolbar { justify-content: space-between; flex-wrap: wrap; }
.muted { color: #606b65; display: block; font-size: 13px; margin-top: 5px; }
.constraints { margin: 14px 0 22px; color: #606b65; font-size: 13px; }
button, .icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 14px; border: 1px solid #167149; background: #167149; color: #fff; border-radius: 6px; font: inherit; font-size: 14px; text-decoration: none; cursor: pointer; }
button img, .icon-button img { width: 18px; height: 18px; flex: 0 0 18px; filter: brightness(0) invert(1); }
.icon-button { width: 40px; height: 40px; flex: 0 0 40px; padding: 9px; background: #fff; border-color: #d9dfdc; color: #222b28; }
.icon-button img { filter: none; }
.icon-button:hover, .secondary:hover { background: #edf3ef; }
button:hover { filter: brightness(.94); }
button:disabled { opacity: .55; cursor: wait; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #67b592; outline-offset: 3px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 20px; }
.image-item { border: 1px solid #d9dfdc; background: white; border-radius: 8px; overflow: hidden; min-width: 0; }
.preview { display: block; aspect-ratio: 16 / 10; width: 100%; background: #e9eeeb; }
.preview img, .preview video { display: block; width: 100%; height: 100%; object-fit: contain; }
.preview video { background: #18201c; }
.preview-error { color: #ae2727; font-size: 13px; }
.item-details { padding: 16px; }
.item-details h2 { font-size: 15px; margin: 0; overflow-wrap: anywhere; }
.item-actions { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.item-actions .url { flex: 1; min-width: 0; width: 0; font-size: 12px; }
input { display: block; width: 100%; height: 40px; border: 1px solid #c6cfca; background: #fff; color: #222b28; padding: 9px; border-radius: 5px; font: inherit; }
label { display: block; font-size: 14px; margin-bottom: 18px; }
label input { margin-top: 6px; }
#login-form { max-width: 360px; margin: 48px auto; }
#login-error, #status.error { color: #ae2727; }
#status { min-height: 24px; font-size: 14px; overflow-wrap: anywhere; }
#empty { text-align: center; padding: 70px 0; color: #606b65; }
progress { width: 100%; height: 5px; margin-bottom: 15px; accent-color: #167149; }
dialog { width: min(440px, calc(100% - 32px)); padding: 24px; border: 1px solid #d9dfdc; border-radius: 8px; }
dialog::backdrop { background: #0008; }
dialog p { line-height: 1.5; overflow-wrap: anywhere; }
.dialog-actions { justify-content: flex-end; margin-top: 24px; }
.secondary { background: white; border-color: #c6cfca; color: #222b28; }
.danger { background: #b03232; border-color: #b03232; }
@media (max-width: 600px) { header { padding: 12px 16px; gap: 10px; } main { padding: 20px 16px; } .brand img { width: 52px; } h1 { font-size: 20px; } }
