* { box-sizing: border-box; }
:root { color-scheme: light; color: #242f32; background: #f5f3ec; font: 17px/1.55 system-ui, sans-serif; }
body { margin: 0; }
main { max-width: 920px; margin: auto; padding: clamp(12px, 4vw, 32px); }
header { background: #dbe9e1; border-radius: 17px; padding: clamp(14px, 4vw, 24px); }
h1 { margin: 4px 0; line-height: 1.18; font-size: clamp(1.6rem, 6vw, 2.4rem); }
h1 span { display: block; font-size: .74em; margin-top: 3px; }
h2, h3 { margin: 6px 0 10px; overflow-wrap: anywhere; }
.series { margin: 0; font-size: .85rem; font-weight: 700; }
header p:last-child { margin: 9px 0 0; }
section { margin: 14px 0; padding: clamp(12px, 4vw, 20px); border: 1px solid #c9d4cd; border-radius: 14px; background: #fffefa; }
.grid { display: grid; gap: 8px; }
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 440px) { .course-controls { grid-template-columns: 1fr; } }
label { display: block; font-weight: 700; margin-top: 8px; }
input:not([type=checkbox]), select, textarea { width: 100%; min-width: 0; padding: 7px; border: 1px solid #81938a; border-radius: 8px; font: inherit; color: inherit; background: #fff; }
.check { display: flex; align-items: center; gap: 7px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 10px; }
button { max-width: 100%; min-height: 44px; padding: 6px 12px; background: #235845; color: white; border: 1px solid #235845; border-radius: 9px; font: inherit; font-weight: 700; cursor: pointer; }
button.secondary { background: white; color: #235845; }
button:disabled { opacity: .53; cursor: default; }
:focus-visible { outline: 3px solid #a35920; outline-offset: 3px; }
a { color: #135f52; overflow-wrap: anywhere; }
.note { background: #f2e8ce; padding: 8px 12px; border-radius: 8px; }
.note[data-error] { background: #f5e2dc; color: #802e27; }
.total { font-weight: 750; }
.pref-list, #stations { list-style: none; padding: 0; }
.pref-list { display: flex; flex-wrap: wrap; gap: 5px 8px; }
.pref-list li { background: #e5eee7; border-radius: 7px; padding: 3px 7px; }
#stations { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); gap: 8px; }
#stations li { background: #f0f6f1; border-radius: 9px; padding: 8px; min-width: 0; overflow-wrap: anywhere; }
#stations p { margin: 5px 0; }
#station-address, #retained, #course-info, #station-status { overflow-wrap: anywhere; }
#stamp-form { margin-top: 14px; border-top: 1px solid #c9d4cd; padding-top: 10px; }
footer { font-size: .88rem; color: #495953; }
dialog { width: min(460px, calc(100% - 24px)); border-radius: 12px; padding: 15px; border: 1px solid #81938a; }
dialog::backdrop { background: #19282488; }
[hidden] { display: none !important; }
