:root { font-family: "Inter", system-ui, sans-serif; color: #192923; background: #eef2ef; }
main { max-width: 46rem; margin: 2rem auto; padding: clamp(1rem, 4vw, 2rem); background: #fff; border-radius: 1rem; }
h1, h2 { margin: 0 0 1rem; }
header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
form { display: grid; gap: .8rem; max-width: 28rem; }
[hidden] { display: none !important; }
label { display: grid; gap: .3rem; }
.check { display: flex; align-items: center; gap: .5rem; }
input, button { font: inherit; }
input:not([type=checkbox]) { border: 1px solid #80928a; border-radius: .35rem; padding: .55rem; min-width: 0; }
button { justify-self: start; border: 0; border-radius: .35rem; padding: .55rem .85rem; color: #fff; background: #176149; }
button.quiet { color: #176149; background: #eef2ef; }
button:disabled { opacity: .6; }
a { color: #176149; overflow-wrap: anywhere; }
ul { list-style: none; padding: 0; }
li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding: .8rem 0; border-bottom: 1px solid #d9e3dc; }
li span { color: #42584f; }
#folders, .grant-row { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .65rem; }
#upload, #share-policy { margin-top: 1rem; }
select { font: inherit; padding: .45rem; }
#browse-controls, #editor, #image-viewer, #guest-links { margin: 1rem 0; }
#find-files { grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); max-width: none; }
#files.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: .7rem; }
#files.tiles li { display: grid; align-content: start; }
.tile-image { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #eef2ef; }
#view-image { display: block; max-width: 100%; max-height: 65vh; margin: .6rem 0; }
#editor-text { font: 1rem ui-monospace, monospace; width: 100%; box-sizing: border-box; }
#editor-other { white-space: pre-wrap; overflow-wrap: anywhere; }
#backup-admin, #update-admin { margin-bottom: 1rem; padding: .8rem; border: 1px solid #d9e3dc; border-radius: .35rem; }
#backup-admin summary, #update-admin summary { cursor: pointer; font-weight: 600; }
#update-upload { margin-top: .85rem; }
.update-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.update-mode { margin-top: .85rem; }
.update-mode button[aria-pressed="true"] { background: #176149; color: #fff; }
#update-release-list li { align-items: start; }
#update-release-list p { margin: .4rem 0 0; overflow-wrap: anywhere; }
#update-transfer progress { width: min(100%, 28rem); }
#update-transfer p { margin: .45rem 0; overflow-wrap: anywhere; }
.update-capacity-table { overflow-x: auto; }
.update-capacity-table table { width: 100%; border-collapse: collapse; text-align: left; }
.update-capacity-table :is(td, th) { padding: .45rem .55rem; border-bottom: 1px solid #d9e3dc; }
.update-capacity-table td[data-shortage] { color: #8d2424; font-weight: 600; }
#update-plan-result dt { font-weight: 600; }
#update-plan-result dd { margin: 0 0 .45rem; overflow-wrap: anywhere; }
#update-access-form h3 { margin: 0; }
#update-access-code { font-family: ui-monospace, monospace; }
#update-access-result { max-width: 34rem; margin-bottom: .8rem; }
#refresh-backup-status { margin-top: .65rem; }
#backup-status-details dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: .5rem 1rem; }
#backup-status-details dt { font-weight: 600; }
#backup-status-details dd { margin: 0 0 .35rem; overflow-wrap: anywhere; }
#backup-recipient { margin-top: 1rem; }
#backup-recipient p, #backup-recipient h3 { margin: 0; overflow-wrap: anywhere; }
#backup-copy { margin-top: 1rem; }
#backup-copy p, #backup-copy h3 { margin: 0; overflow-wrap: anywhere; }
#backup-copy-proof { display: grid; gap: .6rem; }
#backup-package { margin-top: 1rem; }
#backup-package select { min-width: 0; }
#backup-package-result { max-width: 34rem; }
#backup-package-digest { font-family: ui-monospace, monospace; }
#backup-package-digest-copy { margin-top: .6rem; }
#restore-repository { margin: 1.5rem 0; }
#restore-repository h2, #restore-digest-hint { margin: 0; }
