:root { color-scheme: light; font: 16px/1.5 system-ui, sans-serif; color: #192920; background: #f8f6ed; }
* { box-sizing: border-box; }
body { margin: 0; }
header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; max-width: 72rem; margin: auto; padding: 1.2rem clamp(1rem, 5vw, 4rem); border-bottom: 1px solid #d8dbcc; }
a { color: #245542; text-underline-offset: 4px; }
header a:first-child { font: bold 1.45rem Georgia, serif; text-decoration: none; }
main { width: min(100% - 2rem, 43rem); margin: clamp(2rem, 7vw, 5rem) auto; }
h1,h2 { font-family: Georgia, serif; font-weight: normal; line-height: 1.05; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.6rem, 8vw, 5rem); letter-spacing: -.065em; margin: 0 0 1rem; }
h2 { font-size: 2rem; margin: 0 0 1rem; letter-spacing: -.035em; }
p { margin: 0 0 1rem; }
.panel { background: #fffdf7; border: 1px solid #d8dbcc; border-radius: 12px; padding: clamp(1rem, 4vw, 2rem); margin: 1.6rem 0; }
label { display: block; font-weight: 650; margin-top: 1rem; }
input,textarea,button { font: inherit; }
input,textarea { display: block; width: 100%; margin: .4rem 0 .85rem; border: 1px solid #aebcae; border-radius: 6px; padding: .7rem; background: white; color: inherit; }
textarea { resize: vertical; }
button { cursor: pointer; border: 1px solid #aebcae; border-radius: 6px; padding: .55rem .75rem; min-height: 44px; background: #f4f6ed; color: inherit; }
button.primary { background: #234c3c; color: white; border-color: #234c3c; padding-inline: 1rem; font-weight: 650; }
button:hover:not(:disabled) { filter: brightness(.93); }
button:disabled { opacity: .42; cursor: default; }
:focus-visible { outline: 3px solid #af6426; outline-offset: 2px; }
.rows { list-style: none; padding: 0; margin: 1rem 0; }
.row { display: flex; align-items: center; gap: .65rem; min-height: 58px; border-bottom: 1px solid #d8dbcc; padding: .3rem 0; }
.position { flex: 0 0 2ch; color: #476354; font-variant-numeric: tabular-nums; }
.option { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.move { display: flex; gap: .3rem; }
.move button { min-width: 44px; padding: .4rem; font-size: .9rem; }
#app .drag-handle { display: grid; place-items: center; flex: 0 0 44px; height: 44px; touch-action: none; cursor: grab; color: #476354; }
.drag-handle::before { content: ''; width: 12px; height: 18px; background: radial-gradient(circle, currentColor 1.35px, transparent 1.7px) 0 0 / 6px 6px; }
.drag-handle:hover, .row.picked-up { background: #e2eddb; border-radius: 6px; }
.rows.dragging { user-select: none; cursor: grabbing; }
#app .rows.dragging .drag-handle { cursor: grabbing; }
.row.drop-before { box-shadow: inset 0 3px #27664d; }
.row.drop-after { box-shadow: inset 0 -3px #27664d; }
.arrow-button { display: grid; place-items: center; }
.arrow-icon { position: relative; width: 14px; height: 14px; }
.arrow-icon::before { content: ''; position: absolute; left: 4px; top: 2px; width: 6px; height: 6px; border-top: 2px solid; border-left: 2px solid; transform: rotate(45deg); }
.arrow-icon::after { content: ''; position: absolute; left: 7px; top: 3px; width: 2px; height: 10px; background: currentColor; }
.arrow-icon.down { transform: rotate(180deg); }
@media (forced-colors: active) {
  .drag-handle::before, .arrow-icon::after { forced-color-adjust: none; color: ButtonText; }
  .row.drop-before { border-top: 3px solid Highlight; }
  .row.drop-after { border-bottom: 3px solid Highlight; }
}
.status { margin-top: .8rem; overflow-wrap: anywhere; }
.status:empty { display: none; }
.muted { color: #495e50; }
.ballot { border-top: 1px solid #d8dbcc; padding: .8rem 0; overflow-wrap: anywhere; }
.ballot ol { margin: .4rem 0; }
.links { display: flex; gap: .5rem; align-items: stretch; margin: .4rem 0 .8rem; }
.links input { margin: 0; min-width: 0; }
