:root{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","PingFang TC","Noto Sans TC",sans-serif;color:#202722;background:#ecefec;font-synthesis:none;-webkit-tap-highlight-color:transparent;--green:#19644e;--soft:#e6f1eb;--muted:#626c66;--line:#e3e8e3;--red:#a23d36;--surface:#fff;--safe:env(safe-area-inset-bottom,0px)}
*{box-sizing:border-box}body{margin:0;font-size:16px;line-height:1.5;-webkit-text-size-adjust:100%;touch-action:manipulation}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer;border:0;color:inherit;background:none}button:disabled{opacity:.5;cursor:default}a{color:var(--green)}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #66a68a;outline-offset:2px}h1,h2,h3,h4,p{margin:0}svg{display:block;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}button{min-height:44px}input,select{font-size:16px}input[type=search]{appearance:none;-webkit-appearance:none}.app{max-width:560px;min-height:100dvh;margin:auto;background:#f5f7f4;padding-bottom:calc(84px + var(--safe))}.topbar{position:relative;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:calc(12px + env(safe-area-inset-top,0px)) 18px 10px;background:#f5f7f4f5;border-bottom:1px solid #ebefea;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}.topbar h1{font-size:20px;font-weight:700;letter-spacing:-.5px;line-height:1.3}.icon-button{display:inline-flex;align-items:center;justify-content:center;min-width:44px;width:44px;height:44px;border-radius:50%;flex-shrink:0}.icon-button:active{background:#e2e8e2}.top-title{display:flex;align-items:center;gap:2px}.back-button{margin-left:-12px}main{padding:0 16px}.search-box{display:flex;align-items:center;gap:8px;background:#e9eee8;border:1px solid transparent;border-radius:13px;padding:0 12px;margin:14px 0 10px;height:48px}.search-box:focus-within{border-color:#91b7a4;background:white}.search-box svg{width:21px;color:#6b776e;flex-shrink:0}.search-box input{border:0;outline:none!important;min-width:0;width:100%;background:transparent;height:46px;color:#17251c}.search-box button{min-width:30px;padding:0;font-size:24px;color:#738078}.search-box input::placeholder{color:#737d75}.entry-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:10px}.entry-actions button{display:flex;justify-content:center;align-items:center;gap:8px;border-radius:13px;padding:11px 7px;font-weight:650;font-size:15px;min-height:48px;background:white;border:1px solid var(--line)}.entry-actions .primary{background:var(--green);border-color:var(--green);color:#fff}.entry-actions button:active{transform:scale(.985)}.entry-actions svg{width:20px;height:20px}.count-dot{display:inline-grid;place-items:center;background:#d9e9df;color:#174c3b;border-radius:12px;padding:0 6px;font-size:12px;min-width:20px}.entry-actions .primary .count-dot{background:#ffffff30;color:white}.data-note{display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:12px;color:#6b726c;margin:6px 2px 12px}.data-note button{min-height:30px;font-size:12px;padding:0;color:#6b726c;text-decoration:underline;text-underline-offset:3px}.result-head{display:flex;align-items:center;justify-content:space-between;margin:14px 2px 10px;gap:8px}.result-head h2{font-size:17px;font-weight:650}.result-head small{font-size:13px;color:var(--muted);font-weight:400}.text-button{font-size:14px;font-weight:550;color:var(--green);padding:4px 8px;min-height:44px}.chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}.filter-chip{font-size:13px;background:#e5eee7;color:#345343;border-radius:9px;padding:5px 9px;display:flex;align-items:center;gap:7px;min-height:44px}.filter-chip.exclude{background:#faebe7;color:#8c433b}.filter-chip svg{width:13px;height:13px}.school-list{display:grid;gap:10px}.school-card{background:#fff;border:1px solid #e5e9e3;border-radius:17px;padding:14px 15px 12px;content-visibility:auto;contain-intrinsic-size:auto 170px}.card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:6px}.card-open{text-align:left;flex:1;padding:0 0 5px;min-width:0;display:block}.school-name{display:block;font-size:13px;color:#657167;margin-bottom:3px}.dept-name{display:block;font-size:17px;font-weight:650;line-height:1.45;color:#1d2c22;overflow-wrap:anywhere}.save{width:44px;height:44px;min-width:44px;display:grid;place-items:center;margin:-7px -8px 0 2px;border-radius:50%;color:#6c786e}.save svg{width:22px;height:22px}.save[aria-pressed=true]{color:var(--green)}.save[aria-pressed=true] svg{fill:#19644e;stroke:#19644e}.save:active{background:#edf4ed}.subject-line{display:flex;align-items:flex-start;gap:8px;margin-top:8px}.route-label{font-size:12px;color:#667669;flex-shrink:0;min-width:30px;line-height:27px}.pills{display:flex;flex-wrap:wrap;gap:5px}.pill{font-size:13px;line-height:24px;padding:0 8px;border-radius:7px;background:#eef2ed;color:#3d4e40;white-space:nowrap}.pill.needed{background:#dceee2;color:#16563d;font-weight:600}.pill.blocked{background:#fae8e3;color:#96463c}.pill.difference{box-shadow:inset 0 0 0 1px #d1ad72;background:#fff5e6;color:#7b5727}.card-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:8px;gap:8px}.routes-note{font-size:12px;color:#647064}.card-detail{display:flex;align-items:center;gap:3px;font-size:13px;color:var(--green);min-height:44px;padding:0}.card-detail svg{width:15px;height:15px}.pending-card{border-color:#e6d6b7}.pending-text{font-size:12px;color:#805d2d;margin-top:7px}.pending-switch{width:100%;display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border:1px solid #eadcbd;border-radius:13px;background:#fffaef;color:#7c5d2c;font-size:14px;text-align:left;margin:10px 0}.pending-banner{background:#fff8e8;color:#785a2e;border-radius:12px;padding:12px;font-size:14px;margin:10px 0}.empty{padding:36px 14px;text-align:center;background:white;border-radius:16px;border:1px solid var(--line)}.empty svg{width:34px;height:34px;margin:0 auto 14px;color:#7b8b7e}.empty h3{font-size:18px;font-weight:600;margin-bottom:7px}.empty p{font-size:15px;color:var(--muted);margin-bottom:14px}.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:#e6eee7;color:var(--green);border-radius:12px;min-height:46px;padding:10px 18px;font-weight:600;font-size:15px;text-decoration:none}.button.primary{background:var(--green);color:white}.full{width:100%}.load-more{width:100%;margin:14px 0 10px}.list-end{text-align:center;color:#687265;font-size:12px;margin:18px 0}.bottom-tabs{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:560px;display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:6px 12px calc(7px + var(--safe));background:#fafcf9f5;border-top:1px solid #dfe6df;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);z-index:20}.bottom-tabs button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;position:relative;min-height:52px;font-size:11px;color:#6b756d;padding:4px;border-radius:11px}.bottom-tabs button[aria-current=page]{color:var(--green);font-weight:650}.bottom-tabs svg{width:23px;height:23px}.bottom-tabs .tab-count{position:absolute;top:0;left:calc(50% + 9px);font-size:10px;line-height:17px;min-width:17px;border-radius:9px;background:var(--green);color:white;padding:0 4px}.bottom-tabs button:active{background:#e7eee6}.saved-note{font-size:13px;color:#68736a;margin:14px 2px}.more-menu{margin-top:16px;background:white;border:1px solid var(--line);border-radius:16px;overflow:hidden}.menu-row{width:100%;display:flex;align-items:center;gap:13px;text-align:left;padding:14px 16px;min-height:62px;border-bottom:1px solid #edf0eb;font-size:16px}.menu-row:last-child{border:0}.menu-row>.menu-icon{width:30px;display:flex;justify-content:center;color:var(--green)}.menu-row .row-text{flex:1}.menu-row .row-text small{display:block;color:#6e786f;font-size:12px;margin-top:2px}.menu-row .chevron{width:18px;color:#8a948c}.menu-row:active{background:#f0f5ef}.section-caption{font-size:13px;color:#64705f;margin:22px 8px 7px}.more-foot{font-size:12px;color:#64705f;margin:20px 8px}.stats-panel{background:white;border:1px solid var(--line);border-radius:16px;padding:16px;margin:14px 0}.stats-panel h3{font-size:16px;margin-bottom:16px}.stat-note{font-size:13px;color:#667267;margin:12px 2px;line-height:1.65}.bar-row{display:grid;grid-template-columns:40px 1fr 76px;align-items:center;gap:9px;font-size:14px;margin:14px 0}.bar-track{height:8px;background:#edf3ec;border-radius:5px;overflow:hidden}.bar-track i{display:block;height:100%;border-radius:5px;background:#6d9d82}.bar-row strong{font-variant-numeric:tabular-nums;text-align:right;font-size:13px}.bar-row small{color:#647064;font-weight:400;margin-left:3px}.combo-row{display:flex;gap:10px;align-items:center;justify-content:space-between;font-size:14px;padding:11px 0;border-bottom:1px solid #edf0e9}.combo-row:last-child{border:0}.combo-row strong{font-size:14px;white-space:nowrap}.note{font-size:13px;color:#6b756d;line-height:1.65;margin-top:10px}.difference-title{display:flex;align-items:center;justify-content:space-between;margin:14px 0}.toggle{display:flex;gap:8px;font-size:14px;align-items:center;min-height:44px}.toggle input{width:20px;height:20px;accent-color:var(--green)}
dialog.sheet{padding:0;border:0;position:fixed;inset:auto 0 0;margin:0 auto;width:100%;max-width:560px;max-height:94dvh;height:auto;border-radius:24px 24px 0 0;color:#202722;background:#f7f9f5;box-shadow:0 -10px 60px #182b1e20;overscroll-behavior:contain;overflow:hidden}dialog.sheet[open]{display:flex;flex-direction:column;animation:sheet-in .22s cubic-bezier(.2,.8,.2,1)}dialog::backdrop{background:#13251c65}.sheet-header{padding:19px 18px 10px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e3e9df;gap:12px;background:#f8faf6;position:relative;flex-shrink:0}.sheet-header:before{content:"";position:absolute;top:7px;width:34px;height:4px;border-radius:3px;background:#c9d1c7;left:calc(50% - 17px)}.sheet-header h2{font-size:19px;font-weight:650;line-height:1.4}.sheet-header .subhead{font-size:12px;color:#71806f;margin-bottom:3px}.sheet-close{background:#e8ede5;width:32px;height:32px;min-width:44px;min-height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:25px;color:#626e60}.sheet-scroll{overflow:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding:16px 18px;min-height:0;flex:1}.sheet-footer{padding:10px 18px calc(12px + var(--safe));border-top:1px solid #e3e8df;background:#f7f9f4;flex-shrink:0}.sheet-footer .button{min-height:50px}.sheet-footer .draft-note{text-align:center;font-size:12px;color:#7c663f;margin-bottom:7px}.subject-section+ .subject-section{margin-top:24px}.subject-section h3{font-size:17px;margin-bottom:10px}.subject-options{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.subject-option{font-size:16px;min-height:49px;background:white;border:1px solid #dde5da;border-radius:12px;display:flex;align-items:center;justify-content:center;gap:5px}.subject-option[aria-pressed=true]{background:var(--green);border-color:var(--green);color:white;font-weight:600}.subject-section.exclude .subject-option[aria-pressed=true]{background:#a44b40;border-color:#a44b40}.subject-option svg{width:17px;height:17px}.sheet-help{font-size:14px;color:#62705f;margin:16px 0 0}.sheet-actions{display:flex;justify-content:flex-end;margin-top:16px}.filter-section{background:#fff;border:1px solid var(--line);border-radius:13px;margin-bottom:10px;overflow:hidden}.filter-section>summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:13px 14px;min-height:53px;font-size:16px;cursor:pointer}.filter-section>summary::-webkit-details-marker{display:none}.filter-section>summary>span{font-size:13px;color:#606e5b;flex:1;text-align:right}.filter-section>summary svg{width:16px;height:16px;color:#7d8977}.filter-section[open]>summary svg{transform:rotate(90deg)}.filter-panel{padding:0 13px 13px}.picker-search{width:100%;border:1px solid #dce5d7;border-radius:10px;background:#f7faf4;padding:10px 12px;margin-bottom:10px;outline:none}.choice-list{max-height:40dvh;overflow:auto;overscroll-behavior:contain}.check-row{display:flex;align-items:center;gap:10px;min-height:46px;font-size:15px;border-bottom:1px solid #eef2e9;padding:9px 2px}.check-row input{accent-color:var(--green);width:20px;height:20px;flex-shrink:0}.check-row:has(input:checked){color:var(--green);font-weight:600}.advanced{margin-top:18px}.advanced summary{font-size:15px;color:#5b7056;min-height:44px;padding:10px 0}.advanced fieldset{margin:12px 0;border:0;padding:0}.advanced legend{font-size:14px;color:#64735e;margin-bottom:7px}.advanced select{width:100%;padding:10px;border-radius:10px;border:1px solid #dce4d5;background:white;color:#374f31;min-height:46px}.route-choices{display:flex;gap:10px}.route-choices label{display:flex;align-items:center;gap:7px;font-size:15px;min-height:44px}.route-choices input{width:19px;height:19px;accent-color:var(--green)}.detail-route{background:white;border:1px solid var(--line);border-radius:14px;padding:14px;margin-bottom:10px}.detail-route h3{font-size:16px;display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.match-label{font-size:12px;font-weight:400;color:#687565}.match-label.yes{color:var(--green)}.match-label.no{color:#a45346}.match-label.unknown{color:#8f6c2d}.detail-difference{font-size:14px;padding:10px 13px;background:#eef4e9;color:#4f6545;border-radius:11px;margin-bottom:14px}.detail-fold{border-top:1px solid #dfe7d9;margin-top:10px}.detail-fold summary{min-height:51px;display:flex;align-items:center;justify-content:space-between;cursor:pointer;font-size:15px;font-weight:550;list-style:none}.detail-fold summary::-webkit-details-marker{display:none}.detail-fold summary svg{width:17px;height:17px;color:#839078}.detail-fold[open] summary svg{transform:rotate(90deg)}.detail-fold .fold-body{font-size:14px;color:#5a6855;line-height:1.8;padding:0 0 14px}.detail-fold p+p{margin-top:9px}.detail-fold a{word-break:break-word}.detail-table{border-collapse:collapse;width:100%;font-size:14px}.detail-table th,.detail-table td{padding:10px 6px;text-align:left;border-bottom:1px solid #e4eade;vertical-align:top}.detail-table th{width:37%;font-weight:500}.source-item{padding:10px 0}.source-item a{display:inline-block;min-height:40px}.about-section{margin-bottom:23px}.about-section h3{font-size:16px;margin-bottom:8px}.about-section p,.about-section li{font-size:14px;line-height:1.8;color:#5e6c56}.about-section ol{padding-left:23px}.standalone-tip{padding:13px;background:#edf3e7;border-radius:12px;margin:12px 0;font-size:14px}.toast{position:fixed;bottom:calc(88px + var(--safe));left:50%;transform:translateX(-50%) translateY(10px);background:#253a2e;color:white;padding:11px 17px;border-radius:13px;font-size:14px;max-width:min(92%,500px);width:max-content;box-shadow:0 4px 20px #112d2520;opacity:0;pointer-events:none;z-index:90;transition:opacity .15s,transform .15s}.toast.visible{opacity:1;transform:translateX(-50%) translateY(0)}.loading{padding:35px 15px;color:#677460;text-align:center}.spinner{display:inline-block;width:20px;height:20px;border:2px solid #d1ddca;border-top-color:var(--green);border-radius:50%;animation:spin .8s linear infinite;margin-right:8px;vertical-align:middle}.skeleton{height:156px;background:linear-gradient(100deg,#edf1e9,#f8faf5,#edf1e9);border-radius:15px;margin:10px 0}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}.offline{color:#845921;background:#fff5e3;padding:8px 12px;font-size:13px;border-radius:9px;margin-top:10px}
@keyframes sheet-in{from{transform:translateY(40px);opacity:.4}to{transform:translateY(0);opacity:1}}@keyframes spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}@media(min-width:561px){.app{box-shadow:0 0 0 1px #dbe3d8}.bottom-tabs{border-left:1px solid #dbe3d8;border-right:1px solid #dbe3d8}}@media(max-width:350px){.topbar{padding-left:14px;padding-right:12px}.topbar h1{font-size:18px}main{padding:0 12px}.entry-actions{gap:7px}.entry-actions button{font-size:14px;gap:5px}.school-card{padding:12px}.subject-options{gap:7px}.sheet-scroll{padding:14px}.sheet-header{padding-left:14px}.sheet-footer{padding-left:14px;padding-right:14px}}

.data-note{flex-wrap:wrap}

.sheet-header{touch-action:none}.sheet-header button{touch-action:manipulation}

.back-button{font-size:30px;font-weight:300}

.choice-list{height:min(40dvh,300px)}

.install-section{padding:4px 0 18px}.install-section+.install-section{padding-top:18px;border-top:1px solid var(--line)}.install-section h3{font-size:17px;margin-bottom:8px}.install-section p{font-size:15px;line-height:1.8}.install-section .note{font-size:13px;margin-top:5px}

/* Formal admissions conditions: compact, readable tables inside the existing sheet. */
.condition-route+ .condition-route{margin-top:28px;padding-top:20px;border-top:1px solid var(--line)}
.condition-route>h4{font-size:16px;color:#2250BB;margin:6px 0 14px;font-weight:700}
.condition-section{margin:0 0 20px}.condition-section h5{font-size:14px;color:#24334B;margin:0 0 7px;font-weight:700}
.condition-table{border-collapse:collapse;width:100%;table-layout:fixed;font-size:14px;line-height:1.65;color:#293444}
.condition-table th,.condition-table td{border-bottom:1px solid rgba(31,68,135,.12);padding:9px 6px;text-align:left;vertical-align:top;overflow-wrap:anywhere}
.condition-table thead th{font-size:12px;color:#617087;font-weight:500;background:rgba(36,77,172,.04)}
.condition-table tbody th{font-weight:500}.condition-table th:first-child{width:58%}.condition-table td{font-variant-numeric:tabular-nums}
.condition-order{padding-left:26px;margin:0;color:#293444}.condition-order li{padding:4px 0 4px 3px;overflow-wrap:anywhere}
.condition-note{font-size:13px;color:#526680;margin:-8px 0 20px!important}
.condition-notes{border-top:1px solid rgba(31,68,135,.12);margin-top:12px;padding:4px 0}
.condition-notes summary{font-size:14px;min-height:44px;padding:10px 0;cursor:pointer;font-weight:500;color:#314666;display:list-item!important}
.condition-notes p{white-space:pre-line;overflow-wrap:anywhere;margin:7px 0 12px!important;font-size:13px;line-height:1.8;color:#526073}
