@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;600;700;800&display=swap');
:root{--ink:#153e35;--muted:#77827d;--paper:#f7f7f2;--line:#e2e6de;--green:#d8e9c3;--orange:#d8784d}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:14px 'Noto Sans TC',system-ui,sans-serif}button,input,select{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}a{color:inherit}button:disabled{opacity:.6;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #d8784d;outline-offset:3px}.top{height:90px;max-width:1200px;margin:auto;padding:0 36px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{text-decoration:none;display:flex;align-items:center;gap:12px;font-size:28px}.brand strong{letter-spacing:-1px}.brand span{font-size:11px;letter-spacing:2px;margin-left:12px;color:var(--muted);border-left:1px solid var(--line);padding-left:20px}.top nav{display:flex;gap:24px;align-items:center;font-size:12px}.top nav a{text-decoration:none}.text-button{background:transparent;border:0;color:var(--ink);padding:8px 0;font-size:12px}.text-button:hover{text-decoration:underline}main{max-width:1128px;margin:auto;padding:0 24px}.hero{display:flex;justify-content:space-between;align-items:center;padding:64px 0 48px;gap:30px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:700;color:#7a8b6e;margin:0 0 18px}h1{font-size:48px;letter-spacing:-1.8px;line-height:1.3;margin:0;font-weight:600}h1 span{color:var(--orange)}.intro{font-size:14px;color:#758078;line-height:1.9;margin:22px 0 0}.boarding{width:390px;background:#e8eddd;border:1px solid #d9dfcc;transform:rotate(-5deg);border-radius:16px;box-shadow:8px 18px 0 #ebede5;padding:22px 26px}.ticket-head{font-size:9px;letter-spacing:2px;display:flex;justify-content:space-between}.ticket-head span{font-size:18px}.ticket-route{display:flex;align-items:center;justify-content:space-between;padding:36px 0;gap:12px}.ticket-route b{font-size:38px;font-weight:500;letter-spacing:1px}.ticket-route span{color:#879777}.ticket-bottom{border-top:1px dashed #b7c3a6;padding-top:20px;display:flex;align-items:center;justify-content:space-between;font-size:8px;line-height:2;letter-spacing:1px}.ticket-bottom b{font-size:11px;letter-spacing:0}.barcode{font-size:20px;letter-spacing:-2px}.search-card{background:white;border:1px solid var(--line);border-radius:18px;padding:26px 30px;box-shadow:0 8px 25px #153e3506}.section-top{display:flex;align-items:center;gap:16px;margin-bottom:20px}h2{font-size:21px;font-weight:500;margin:0}.pill{background:#f0f3eb;border-radius:20px;font-size:10px;padding:5px 10px;color:#79846d}label{display:flex;flex-direction:column;gap:9px;font-size:11px;color:#738078}input,select{border:1px solid #e2e7df;background:#fcfcf9;border-radius:9px;color:var(--ink);height:47px;padding:10px 14px;min-width:0;width:100%;font-size:14px}.route-inputs{display:grid;grid-template-columns:1fr 42px 1fr;gap:14px;align-items:end}.route-inputs input{font-size:18px;font-weight:500}.route-inputs button{background:white;border:1px solid var(--line);border-radius:50%;height:38px;font-size:23px;line-height:1;color:#829373;margin-bottom:4px}.other-inputs{display:grid;grid-template-columns:1.1fr 1fr .6fr 1.5fr;gap:16px;align-items:end;margin-top:20px}.primary{border:0;background:var(--ink);color:white;height:47px;border-radius:9px;padding:10px 18px;text-align:left;display:flex;justify-content:space-between;align-items:center;font-size:13px}.primary:hover{background:#24604f}.primary span{font-size:19px}.connection{display:flex;align-items:center;gap:8px;margin-top:18px;font-size:11px;color:var(--muted)}.connection .text-button{margin-left:auto}.dot{height:7px;width:7px;border-radius:50%;background:#c5aa77}.dot.online{background:#6d9765}#form-message{margin:4px 0 0;font-size:12px;color:#a65839;line-height:1.6}.results-top{margin:48px 0 22px;display:flex;justify-content:space-between;align-items:center}.results-top .eyebrow{margin-bottom:12px}.results-top p:last-child{font-size:12px;color:var(--muted);margin-bottom:0}.providers{display:grid;grid-template-columns:1fr 1fr;gap:22px}.provider{background:#fff;border:1px solid var(--line);border-radius:16px;padding:24px;min-width:0}.provider-heading{display:flex;align-items:center;gap:12px}.airline-icon{height:42px;width:42px;display:grid;place-items:center;border-radius:10px;font-size:13px;font-weight:700;flex-shrink:0}.eva{background:#eef4e6;color:#53834c}.cathay{background:#e6f0ed;color:#1e695d}h3{font-size:16px;font-weight:600;margin:0}.provider-heading p{font-size:9px;letter-spacing:.2px;margin:5px 0 0;color:var(--muted)}.status{margin-left:auto;border:1px solid var(--line);border-radius:20px;padding:4px 8px;font-size:9px;white-space:nowrap}.status.ready{color:#438259;background:#eef5e8;border-color:#dcebcf}.status.attention,.status.login,.status.error{color:#aa683d;background:#fff4e8;border-color:#f5e5cd}.status.running{background:#edf3f8;color:#47738d}.mileage{display:flex;align-items:end;justify-content:space-between;margin:30px 0 20px;gap:10px}.mileage small{font-size:10px;color:var(--muted);display:block}.mileage strong{font-size:31px;font-weight:500;letter-spacing:-1px;display:block;margin-top:9px}.mileage p{font-size:9px;color:var(--muted);max-width:170px;text-align:right;line-height:1.7}.provider-message{font-size:12px;line-height:1.7;color:#6b7971;min-height:40px}.flight-list{max-height:380px;overflow:auto}.flight{border-top:1px solid var(--line);padding:14px 0}.flight .line{display:flex;justify-content:space-between;gap:12px;font-size:12px}.flight .line b{font-size:13px;font-weight:500}.flight p{font-size:10px;color:var(--muted);line-height:1.6;margin:8px 0 0}.flight .available{color:#44804a}.flight .waitlist,.flight .mixed{color:#b1783d}.flight .unknown,.flight .unavailable{color:#8d8f8a}.provider footer{border-top:1px solid var(--line);padding-top:14px;margin-top:14px;display:flex;justify-content:space-between;align-items:center;gap:10px}.provider footer small{font-size:9px;color:var(--muted)}.note{margin-top:24px;background:#edf0e6;border-radius:12px;padding:20px 24px;font-size:11px;display:flex;align-items:center;gap:20px;flex-wrap:wrap}.note b{font-size:12px}.note p{color:#74806c;line-height:1.8;flex:1;min-width:250px;margin:0}.note a{font-size:10px;white-space:nowrap}.note small{width:100%;font-size:9px;color:#849078}.how{display:grid;grid-template-columns:repeat(3,1fr);gap:45px;padding:48px 0}.how span{font-size:11px;color:#a2ad91}.how h3{font-size:13px;margin:10px 0}.how p{font-size:11px;line-height:1.9;color:var(--muted)}.site-footer{border-top:1px solid var(--line);max-width:1128px;margin:auto;padding:23px 24px;display:flex;justify-content:space-between;font-size:9px;color:#8d968b}dialog{width:min(620px,92vw);border:1px solid var(--line);border-radius:18px;padding:32px;color:var(--ink);box-shadow:0 24px 90px #0003}dialog::backdrop{background:#183b3566}dialog p,dialog li{font-size:13px;line-height:1.9}dialog li{margin:10px 0}dialog h2{font-size:22px}dialog code{background:#edf0e6;padding:3px 6px;border-radius:4px}.close{float:right;background:none;border:0;font-size:25px;color:#7c8779}.help-note{background:#f4f2e9;padding:14px;border-radius:8px}dialog>a{font-size:12px}@media(max-width:800px){.top{padding:0 24px;height:75px}.brand span{display:none}.hero{padding-top:38px}h1{font-size:38px}.boarding{width:300px;padding:20px}.ticket-route b{font-size:28px}.other-inputs{grid-template-columns:1fr 1fr 1fr}.primary{grid-column:1/-1}.provider{padding:18px}.provider-heading{gap:8px}.provider-heading p{font-size:8px}.status{font-size:8px;padding:4px}.mileage{display:block}.mileage p{text-align:left;max-width:none}.how{gap:25px}}@media(max-width:600px){main{padding:0 18px}.top{padding:0 18px}.top nav{gap:14px}.brand{font-size:24px}.hero{padding:34px 4px}.hero h1{font-size:35px}.boarding{display:none}.intro{font-size:13px;margin-top:16px}.search-card{padding:22px 18px}.section-top h2{font-size:18px}.route-inputs{gap:8px;grid-template-columns:1fr 30px 1fr}.route-inputs button{height:30px;font-size:18px}.route-inputs input{font-size:15px;padding:10px}.other-inputs{gap:10px;grid-template-columns:1.2fr 1fr}.other-inputs label:last-of-type{grid-column:1}.primary{grid-column:1/-1}.providers{grid-template-columns:1fr}.provider{padding:23px}.provider-heading p{font-size:9px}.status{font-size:9px}.mileage{display:flex}.mileage p{text-align:right;max-width:160px}.results-top{margin-top:34px}.results-top h2{font-size:20px}.how{grid-template-columns:1fr;gap:16px;padding:32px 5px}.how>div{padding-left:36px;position:relative}.how span{position:absolute;left:0;top:10px}.how h3{margin:6px 0}.how p{margin:5px 0}.site-footer{display:block;line-height:2.2}.site-footer span{display:block}.note{gap:10px}.connection{flex-wrap:wrap}.connection #connection-text{max-width:220px;font-size:10px}}

/* Simple date and route search */
.other-inputs{grid-template-columns:1fr 1fr}.provider-message{margin-top:24px}.status.ready{font-weight:700}.flight p:empty{display:none}

[hidden]{display:none!important}.other-inputs{grid-template-columns:repeat(2,minmax(0,1fr))}.leg-result{margin-top:18px;padding-top:16px;border-top:1px solid #dce4de}.leg-result h4{margin:0 0 8px}.leg-result .text-button{margin-top:8px}.leg-result .status{display:inline-block;margin-bottom:8px}@media(max-width:600px){.other-inputs{grid-template-columns:1fr}}

.calendar-leg{background:white;border:1px solid #dfe5dc;border-radius:18px;padding:20px;margin:20px 0;overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:center}caption{text-align:left;padding:8px 0;color:#687a72}th,td{padding:14px 8px;border-bottom:1px solid #e6ebe3}thead th{background:#edf1e7}.selected-date{background:#f0f4e9}td small{display:block;font-size:12px;max-width:260px;margin:auto}.availability-symbol{font-size:28px;font-weight:700}.available{color:#256a40}.waitlist{color:#996b18}.unavailable{color:#747b77}
