:root { color-scheme: dark; font: 15px/1.5 system-ui, sans-serif; background: #0d1117; color: #e6edf3; }
* { box-sizing: border-box; }
body { margin: 0; }
header { height: 58px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #30363d; background: #161b22; }
header span { margin-left: 14px; color: #8b949e; font-size: 13px; }
main { width: min(1180px, calc(100% - 32px)); margin: 24px auto 48px; }
.card { background: #161b22; border: 1px solid #30363d; border-radius: 10px; padding: 18px; margin-bottom: 18px; }
.narrow { max-width: 460px; margin: 80px auto; }
h1, h2 { margin: 0 0 12px; }
h2 { font-size: 16px; }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.summary-grid .card p { margin: 0; font-size: 18px; }
label { display: block; margin-bottom: 6px; }
input { width: 100%; padding: 10px; margin-bottom: 12px; color: inherit; background: #0d1117; border: 1px solid #484f58; border-radius: 6px; }
input[type="checkbox"] { width: auto; margin: 0 8px 0 0; padding: 0; }
button { border: 0; border-radius: 6px; padding: 8px 13px; background: #238636; color: white; cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
button.quiet { background: #30363d; }
button.danger { background: #9e2a2b; }
.section-title { display: flex; align-items: center; justify-content: space-between; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 9px 8px; border-top: 1px solid #30363d; text-align: left; white-space: nowrap; }
td:first-child { max-width: 360px; overflow: hidden; text-overflow: ellipsis; }
td button { margin-right: 6px; padding: 5px 8px; }
.button-link { display: inline-block; margin-right: 8px; color: #58a6ff; }
.file-input { width: 170px; margin: 6px 0 0; padding: 4px; }
.muted { color: #8b949e; }
.error { color: #ff7b72; }
.operations { padding-left: 20px; }
#gallery-detail-body { white-space: pre-wrap; overflow-wrap: anywhere; }
#gallery-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 760px) { .summary-grid { grid-template-columns: 1fr 1fr; } header { padding: 0 16px; } }
@media (max-width: 440px) { .summary-grid { grid-template-columns: 1fr; } }
