:root { color-scheme: light; font: 16px/1.5 system-ui, sans-serif; color: #26323e; background: #f4f6f8; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #155f7a; text-underline-offset: .16em; }
a:hover { color: #083c50; }
nav { display: flex; flex-wrap: wrap; gap: .3rem; padding: .7rem max(1rem, calc((100vw - 1400px)/2)); background: #173e4e; }
nav a { color: #fff; padding: .45rem .7rem; border-radius: .3rem; text-decoration: none; }
nav a:hover, nav a[aria-current] { color: white; background: #2e6070; }
main { max-width: 1400px; padding: 1.25rem; margin: auto; }
h1 { font-size: clamp(1.3rem, 3vw, 1.85rem); } h2 { font-size: 1.3rem; }
table { border-collapse: collapse; background: white; margin: 1rem 0; }
td, th { padding: .55rem .7rem; border: 1px solid #d6dfe4; vertical-align: top; overflow-wrap: anywhere; }
main > table tr:first-child { background: #e9eff3; }
main > table tr:hover { background: #f0f6f8; }
form table { width: 100%; } form table td:first-child { width: 23%; }
input, select, textarea, button { font: inherit; max-width: 100%; }
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]), textarea, select { border: 1px solid #899ba5; border-radius: .3rem; padding: .5rem; background: #fff; color: inherit; }
input[type="text"], textarea { width: min(100%, 58rem); }
textarea { display: block; resize: vertical; min-height: 5rem; }
textarea[name="text"] { font-family: ui-monospace, monospace; font-size: .95rem; line-height: 1.6; }
button, input[type="submit"] { background: #205d72; color: white; border: 1px solid #205d72; border-radius: .3rem; padding: .5rem .85rem; margin: .3rem .35rem .3rem 0; cursor: pointer; }
button:hover, input[type="submit"]:hover { background: #174758; }
input[name="deactivate"] { background: #8d3434; border-color: #8d3434; }
:focus-visible { outline: 3px solid #df9900; outline-offset: 2px; }
label { display: inline-block; } .account-form label, .login label { display: block; }
.account-form input:not([type="checkbox"]), .login input { width: 100%; }
.account-form, .login { max-width: 34rem; } .login { margin: 8vh auto; background: white; border-radius: .5rem; padding: 2rem; }
.login input { margin: .3rem 0 1rem; }
fieldset { border: 1px solid #b5c2ca; border-radius: .3rem; }
.editor-tools { display: flex; gap: .25rem; flex-wrap: wrap; margin-bottom: .5rem; }
.editor-tools button { font-size: .85rem; padding: .3rem .5rem; margin: 0; }
.tooltip { position: relative; display: inline-block; border-bottom: 1px dotted #526773; }
.tooltiptext { display: none; position: absolute; left: 0; top: 100%; z-index: 5; width: min(22rem, 80vw); padding: .7rem; border-radius: .3rem; background: #173e4e; color: white; box-shadow: 0 3px 12px #0003; }
.tooltip:hover .tooltiptext, .tooltip:focus-within .tooltiptext { display: block; }
img { max-width: 100%; height: auto; } td img { max-height: 24rem; object-fit: contain; }
.media-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
figure { margin: 0; background: white; border: 1px solid #d6dfe4; padding: .7rem; }
figure img { width: 100%; height: 160px; object-fit: contain; }
figcaption { overflow-wrap: anywhere; }
.message { background: white; padding: 1rem; border: 1px solid #d6dfe4; margin: 1rem 0; }
.message-body, .log { white-space: pre-wrap; overflow-wrap: anywhere; }
[role="alert"] { background: #fff1ef; border-left: 4px solid #a93623; padding: 1rem; }
[role="status"] { background: #e6f3ec; border-left: 4px solid #237147; padding: 1rem; }
.skip-link { position: absolute; left: -10000px; }.skip-link:focus { left: 1rem; top: 1rem; background: white; padding: .5rem; z-index: 10; }
/* Existing sort icons remain readable without a remote icon font. */
.fa-sort::before { content: '↕'; }.fa-sort-alpha-down::before, .fa-sort-numeric-down::before { content: '↓'; }.fa-sort-alpha-up::before, .fa-sort-numeric-down-alt::before { content: '↑'; }
@media (max-width: 700px) { main { padding: .75rem; } main > table { display: block; overflow-x: auto; } form table td { display: block; width: 100% !important; } form table td:first-child { border-bottom: 0; background: #edf2f5; } }
