:root{color-scheme:light;--blue:#1766ff;--ink:#172842;--muted:#6b7d98;--line:#dfe7f2;--paper:#f0f5fb;--teal:#0ca680;--orange:#f28a2a;--violet:#7b5df2;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;font-size:16px;background:var(--paper);color:var(--ink)}
*{box-sizing:border-box}body{margin:0;line-height:1.45;-webkit-text-size-adjust:100%;overflow-wrap:break-word}button,input,textarea,select{font:inherit}button{cursor:pointer;touch-action:manipulation;border:1px solid var(--line);background:white;color:var(--ink);min-height:44px;border-radius:9px;padding:8px 12px}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #ffb547;outline-offset:2px}button:active{filter:brightness(.96)}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h1{font-size:24px;line-height:1.25;letter-spacing:.3px}h2{font-size:19px}h3{font-size:16px}.icon-definitions{position:absolute;width:0;height:0;overflow:hidden}.icon{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none;vertical-align:middle}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.app-shell{max-width:620px;margin:auto;min-height:100dvh;position:relative;background:var(--paper)}.page{padding-bottom:calc(90px + env(safe-area-inset-bottom))}.blue-header{background:linear-gradient(115deg,#0a65ff,#2467f8);color:white;padding:calc(18px + env(safe-area-inset-top)) 16px 15px;border-radius:0 0 15px 15px}.title-row{display:flex;align-items:center;justify-content:space-between;gap:8px}.header-edit{color:white;background:transparent;border-color:#8db4ff;padding:6px 12px;min-height:38px;font-size:15px;white-space:nowrap}.date-label{font-size:15px;margin:3px 0 11px;opacity:.95}.leaders{display:grid;grid-template-columns:1fr 1fr;gap:10px}.leader{border:1px solid #ffffff25;background:#ffffff17;color:white;padding:8px 6px;min-height:64px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}.leader span{font-size:13px}.leader strong{font-size:23px;line-height:1.3;white-space:pre-wrap;word-break:break-word}.date-controls{display:grid;grid-template-columns:1fr 1fr 1.1fr 1fr;gap:7px;padding:9px 10px 5px}.date-controls button{padding:7px 3px;font-size:14px;color:#506787;white-space:nowrap}.date-controls .active{background:var(--blue);border-color:var(--blue);color:white}.page-content{padding:9px 12px 20px}.section-title{display:flex;align-items:center;gap:8px;margin:4px 0 8px;font-size:19px}.section-title:before{content:"";height:22px;width:5px;background:var(--blue);border-radius:3px;flex:none}.section-title.orange:before{background:var(--orange)}.section-title.teal:before{background:var(--teal)}.section-title.violet:before{background:var(--violet)}.center-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.center-card{min-width:0;border:1px solid #dce7f6;border-radius:10px;background:#fff;padding:9px 10px;text-align:left;display:flex;flex-direction:column;justify-content:flex-start;min-height:90px}.center-label{font-size:16px;font-weight:700;color:var(--blue);margin-bottom:4px;line-height:1.3}.center-card.teal .center-label{color:var(--teal)}.center-names{font-size:19px;font-weight:700;line-height:1.4;white-space:pre-wrap;word-break:break-word}.coverage{font-size:12px;line-height:1.4;color:#6d80a1;white-space:pre-wrap;margin-top:4px}.center-detail{display:flex;flex-direction:column;gap:3px;line-height:1.35;flex:1}.center-detail div{display:flex;align-items:baseline;gap:5px;flex-wrap:wrap}.center-detail small{font-size:13px;color:#6b7d98}.center-detail b{font-size:16px}.section-block{margin-top:16px}.shift-row{display:grid;grid-template-columns:minmax(88px,.9fr) minmax(0,1.2fr);align-items:center;gap:10px;width:100%;text-align:left;background:#fff7ee;border-color:#ffe8cf;border-left:4px solid var(--orange);margin-bottom:7px;padding:10px;border-radius:9px}.shift-row.teal{background:#edfaf6;border-color:#d5f1e8;border-left-color:var(--teal)}.shift-row small{color:#a96a2b;font-size:13px;white-space:pre-wrap}.shift-row.teal small{color:#368b78}.shift-row b{font-size:20px;white-space:pre-wrap;word-break:break-word}.subsection-title{font-size:16px;margin:11px 0 7px}.rule-lines{font-size:12px;color:#ad6c35;background:#fff2e6;border-radius:7px;padding:7px 10px;margin:0 0 10px}.rule-lines p+p{margin-top:3px}.mini-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.mini-card{border:1px solid var(--line);background:#fff;border-radius:9px;padding:10px;text-align:left;min-height:76px;min-width:0}.mini-card small{display:block;font-size:13px;color:var(--muted);margin-bottom:4px}.mini-card b{font-size:19px;white-space:pre-wrap;word-break:break-word}.mini-card em{font-size:12px;color:var(--muted);font-style:normal;margin-left:4px}.mini-card.purple{background:#f1eeff;border-color:#e5dfff;border-left:4px solid var(--violet)}.mini-card.green{background:#edfaf6;border-color:#d8f1e9;border-left:4px solid var(--teal)}.full-width{grid-column:1/-1}.empty-schedule{padding:11px;background:#fff8df;color:#875f0c;border:1px solid #f2de9b;border-radius:9px;font-size:14px;margin-bottom:12px}.empty-schedule button{font-size:13px;background:#fffdf4;border-color:#e6ce89;color:#875f0c;margin-top:8px;min-height:36px;display:block}.persistent-warning{background:#fff3d9;border-bottom:1px solid #eac16f;padding:10px 14px;color:#865708;font-size:14px}.search-header{padding-bottom:14px}.search-header h1{margin-bottom:14px;font-size:23px}.search-box{display:flex;align-items:center;gap:9px;background:#fff;border-radius:11px;padding:6px 7px 6px 12px;color:#667a97}.search-box input{width:0;flex:1;min-width:0;min-height:43px;border:0;outline:0!important;box-shadow:none;background:transparent;color:var(--ink);font-size:19px;padding:6px 0;font-weight:600}.search-box .query-button{background:var(--teal);border-color:var(--teal);color:#fff;font-weight:700;min-width:72px;padding:9px 12px}.search-chips{display:grid;grid-template-columns:1fr 1.2fr .8fr;gap:7px;padding:7px 11px 0}.search-chips button{font-size:13px;padding:7px 3px;color:#4c5e7b;min-height:39px;white-space:nowrap}.search-chips button[aria-pressed=true]{border-color:#bcd2fd;color:var(--blue);background:#fafdff}.search-content{padding-top:12px}.result-count{font-size:14px;color:var(--muted);margin:3px 2px 10px;min-height:1em}.result-card{background:#fff;border:1px solid #dce7f6;border-radius:12px;padding:16px;margin-bottom:10px}.result-card-header{display:flex;justify-content:space-between;align-items:start;gap:8px;margin-bottom:10px}.result-name{font-size:23px;font-weight:750;line-height:1.35;word-break:break-word;min-width:0}.station-tag{background:#e9faf5;color:#008e76;border:1px solid #ace8d6;border-radius:7px;padding:5px 7px;font-size:13px;font-weight:700;white-space:nowrap;flex:none}.result-field{display:grid;grid-template-columns:76px minmax(0,1fr);gap:10px;border-top:1px solid #edf1f7;padding:8px 0;font-size:16px}.result-field span{color:var(--muted)}.result-field b{font-weight:650;white-space:pre-wrap;word-break:break-word}.result-provenance{font-size:12px;color:#7c8ca7;margin:7px 0 12px;word-break:break-word}.result-actions{display:grid;grid-template-columns:1fr 1.3fr;gap:9px}.result-actions button{font-size:15px;font-weight:650;border-color:var(--blue);color:var(--blue);padding:10px 5px}.result-actions .primary{color:white}.source-warning{background:#fff5df;border:1px solid #f6dea2;color:#8d6a21;border-radius:7px;font-size:13px;padding:8px;margin-bottom:10px}.primary{background:var(--blue);border-color:var(--blue)!important;color:white!important}.danger{color:#c13939;border-color:#f0bebe}.wide-button{display:block;width:100%;min-height:46px;padding:11px 15px;font-weight:650;margin-top:12px}.simple-header{padding-bottom:19px}.note-input{display:block;width:100%;min-height:330px;border:1px solid #eadba6;border-radius:12px;background:#fffbed;color:#57461e;padding:16px;font-size:23px;line-height:1.5;resize:vertical}.quiet{color:var(--muted);font-size:13px;line-height:1.6;margin:8px 1px}.settings-group{background:#fff;border:1px solid var(--line);border-radius:12px;margin:6px 0 16px;overflow:hidden}.settings-group h2{font-size:14px;color:var(--muted);padding:11px 15px 7px}.settings-row{display:flex;align-items:center;gap:10px;width:100%;border:0;border-bottom:1px solid #edf1f7;border-radius:0;text-align:left;min-height:55px;padding:13px 15px;font-size:16px;background:white}.settings-row:last-child{border-bottom:0}.settings-row span{flex:1}.settings-row>.icon:first-child{color:var(--blue);width:21px;height:21px}.settings-row .chevron{width:16px;height:16px;color:#8b9ab2}.settings-info{padding:0 6px;color:#71819b;font-size:12px;line-height:1.75}.settings-info p+p{margin-top:7px}.bottom-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:fixed;z-index:10;left:50%;bottom:0;transform:translateX(-50%);width:100%;max-width:620px;padding:6px 4px calc(7px + env(safe-area-inset-bottom));background:#ffffffed;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border-top:1px solid #e2e9f4}.bottom-nav button{border:0;min-height:54px;padding:3px;display:flex;flex-direction:column;gap:3px;align-items:center;justify-content:center;color:#667894;font-size:11px;border-radius:6px;background:transparent}.bottom-nav .active{color:var(--blue);font-weight:700}.bottom-nav .icon{width:24px;height:24px}.sheet-backdrop{position:fixed;z-index:50;inset:0;background:#11213b70;display:flex;align-items:flex-end;justify-content:center;padding-top:calc(20px + env(safe-area-inset-top))}.sheet{background:#f7f9fc;border-radius:18px 18px 0 0;width:100%;max-width:620px;max-height:90dvh;display:flex;flex-direction:column;box-shadow:0 -6px 30px #13254222;padding-bottom:env(safe-area-inset-bottom)}.sheet-header{padding:12px 14px 10px 18px;display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);flex:none}.sheet-header h2{flex:1;font-size:20px}.sheet-header button{border:0;background:transparent;min-height:44px;min-width:44px;padding:8px;color:#526782}.sheet-content{overflow:auto;overscroll-behavior:contain;padding:14px 18px 24px}.sheet-content p{margin-bottom:10px;font-size:15px;line-height:1.6}.form-group-title{font-size:16px;margin:17px 0 9px;font-weight:750}.form-group-title:first-child{margin-top:0}.form-field{display:block;margin-bottom:13px;font-size:14px;font-weight:600}.form-field span{display:block;margin:0 0 5px;color:#566882}.form-field input,.form-field textarea,.form-field select{border:1px solid #ccd9ea;background:#fff;border-radius:8px;width:100%;min-height:46px;padding:10px 11px;font-size:17px;color:var(--ink)}.form-field textarea{min-height:85px;resize:vertical;line-height:1.5}.form-footer{position:sticky;bottom:-24px;margin:15px -18px -24px;padding:12px 18px 18px;background:#f7f9fcf5;border-top:1px solid #e1e7f0;display:flex;gap:9px}.form-footer button{flex:1;min-height:47px;font-weight:650}.station-options{display:flex;flex-direction:column;gap:7px}.station-options button{text-align:left;display:flex;justify-content:space-between;gap:10px;padding:12px}.station-options button.active{color:var(--blue);background:#edf4ff;border-color:#8ab6ff}.choice-label{display:flex;align-items:start;gap:8px;padding:10px 0;font-size:15px}.choice-label input{width:20px;height:20px;margin-top:1px}.import-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}.import-stats div{background:white;border:1px solid var(--line);padding:10px;border-radius:8px;font-size:13px;color:var(--muted)}.import-stats b{display:block;font-size:22px;color:var(--ink);margin-bottom:2px}.toast{position:fixed;z-index:100;bottom:calc(96px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100vw - 32px);border-radius:10px;background:#15283df2;color:#fff;font-size:15px;line-height:1.5;padding:11px 16px;box-shadow:0 4px 20px #132d4b30}.toast.error{background:#942f2ff5}.help-list{padding-left:22px;margin:0 0 12px}.help-list li{margin-bottom:10px;line-height:1.6;font-size:15px}body.sheet-open{overflow:hidden}
.coverage span{display:inline-block;white-space:nowrap;max-width:100%;overflow-wrap:anywhere}
.download-link{text-align:center;text-decoration:none;border-radius:9px;border:1px solid var(--blue)}
/* Older Safari ignores dvh/inset. Keep long forms inside the viewport. */
@supports not (height:100dvh){.app-shell{min-height:100vh}.sheet{max-height:90vh}}
.sheet-backdrop{top:0;right:0;bottom:0;left:0}
@media(max-width:359px){:root{font-size:15px}.blue-header{padding-left:13px;padding-right:13px}.page-content{padding-left:9px;padding-right:9px}.center-card{padding:8px}.center-names{font-size:17px}.center-detail b{font-size:15px}.coverage{font-size:11px}.result-card{padding:12px}.result-name{font-size:21px}.station-tag{font-size:12px;padding:5px}.search-chips button{font-size:12px}.leaders{gap:8px}.leader strong{font-size:21px}}
@media(prefers-reduced-motion:no-preference){.toast{animation:toast-in .16s ease-out}.sheet{animation:sheet-in .18s ease-out}@keyframes toast-in{from{opacity:0;translate:0 5px}to{opacity:1;translate:0 0}}@keyframes sheet-in{from{translate:0 20px;opacity:.7}to{translate:0 0;opacity:1}}}
