:root{--nav:#102c30;--ink:#18363a;--muted:#6a7b7e;--green:#087f72;--pale:#edf7f3;--border:#dfe7e5;--bg:#f5f7f6;--amber:#956316}*{box-sizing:border-box}body{margin:0;font:14px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;background:var(--bg);color:var(--ink)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer}button{border:1px solid var(--border);border-radius:7px;background:white;padding:9px 14px;color:var(--ink);font-weight:600}button:hover{border-color:var(--green);background:var(--pale)}button.primary{background:var(--green);border-color:var(--green);color:white}a{color:var(--green);text-underline-offset:3px}.app{display:grid;grid-template-columns:212px 1fr;min-height:100vh}aside{background:var(--nav);color:#bacdcb;padding:28px 18px;position:fixed;width:212px;height:100vh;display:flex;flex-direction:column}.brand{color:white;font-size:25px;font-weight:750;letter-spacing:-1px;padding:0 12px}.brand span{color:#77d5ac}.subbrand{font-size:10px;letter-spacing:1.8px;padding:4px 12px 32px;color:#8aaba6}.navlabel{padding:12px;font-size:10px;letter-spacing:1.5px;color:#83a49f}.navitem{display:block;text-align:left;border:0;background:none;color:#b8ceca;padding:12px;border-radius:6px;width:100%;margin:3px 0;font-weight:500}.navitem.active{background:#244b4b;color:white}.navitem:hover{background:#244b4b}.navitem .symbol{display:inline-block;width:27px;color:#7bc5b2}.sidebarfoot{margin-top:auto;border-top:1px solid #365250;padding:18px 10px 0;font-size:12px}.avatar{display:inline-grid;place-items:center;border-radius:50%;background:#d1e6df;width:32px;height:32px;color:#21483f;margin-right:8px;font-weight:700}.workspace{grid-column:2;min-width:0}header{height:66px;background:white;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;padding:0 34px}.breadcrumb{color:var(--muted);font-size:12px}.breadcrumb strong{color:var(--ink);font-weight:500}.pill{display:inline-block;padding:4px 9px;border-radius:5px;font-size:11px;font-weight:600;background:var(--pale);color:var(--green)}.pill.amber{background:#fcf3df;color:var(--amber)}.pill.gray{background:#eff2f3;color:#66787e}.pill.blue{background:#edf2fb;color:#526e9a}main{padding:30px 34px 50px;max-width:1720px;margin:auto}.heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:24px}h1{font-size:29px;line-height:1.25;letter-spacing:-.8px;margin:5px 0 7px}h2{font-size:18px;margin:0 0 6px}h3{font-size:15px;margin:0 0 7px}p{margin:0 0 12px}.muted{color:var(--muted)}.small{font-size:12px}.eyebrow{font-size:10px;letter-spacing:1.7px;color:var(--green);font-weight:750}.actions{display:flex;gap:8px;align-items:center}.notice{padding:12px 16px;background:#fff9e9;border:1px solid #eee2bf;border-radius:8px;font-size:12px;color:#756237;margin-bottom:20px}.filters{display:flex;align-items:end;gap:14px;background:white;border:1px solid var(--border);padding:17px 20px;border-radius:9px;margin-bottom:20px;flex-wrap:wrap}label.field{display:grid;gap:5px;font-size:11px;color:var(--muted)}input,select,textarea{border:1px solid #d3dedb;border-radius:6px;padding:9px 10px;background:white;color:var(--ink)}select{min-width:140px}.filter-count{margin-left:auto;font-size:12px;padding-bottom:10px}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:24px}.metric{background:white;border:1px solid var(--border);border-radius:8px;padding:16px 20px}.metric .value{font-size:27px;letter-spacing:-.7px;font-weight:650;margin:6px 0 2px}.metric .label{font-size:11px;color:var(--muted)}.metric .foot{font-size:11px;color:var(--muted)}.tabs{display:flex;gap:25px;border-bottom:1px solid var(--border);margin-bottom:22px;overflow:auto}.tab{border:0;background:none;border-radius:0;padding:11px 1px 13px;white-space:nowrap;color:var(--muted)}.tab.active{color:var(--green);border-bottom:3px solid var(--green)}.panel{background:white;border:1px solid var(--border);border-radius:9px;margin-bottom:20px;overflow:hidden}.panel-head{padding:20px 22px;display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid var(--border)}.panel-body{padding:22px}.comparison{overflow:auto}table{border-collapse:separate;border-spacing:0;width:100%;font-size:12px}th,td{padding:16px;vertical-align:top;border-bottom:1px solid var(--border);text-align:left;min-width:205px;line-height:1.65}th{background:#fafcfb;font-weight:500}th:first-child,td:first-child{min-width:150px;width:150px;position:sticky;left:0;background:white;z-index:1;border-right:1px solid var(--border);font-weight:600;color:#657974}th.own,td.own{background:#f0f8f4}th .tourtitle{font-size:14px;font-weight:650;line-height:1.5;margin:10px 0 7px}td strong{font-size:14px;font-weight:650;display:block}td .sub{display:block;color:var(--muted);font-size:11px;margin-top:4px}.table-link{font-size:10px}.table-footer{padding:13px 20px;font-size:11px;color:var(--muted);background:#fafcfb}.insight-strip{display:grid;grid-template-columns:1.5fr 1fr;gap:18px}.insight{background:var(--pale);border:1px solid #d4e7de;border-radius:8px;padding:19px 22px}.insight.amber{background:#fcf8ed;border-color:#eee3c7}.insight p{font-size:12px;margin:6px 0 0}.dot{color:var(--green);margin-right:6px}.empty{padding:30px;text-align:center;color:var(--muted)}.grid2{display:grid;grid-template-columns:1.3fr 1fr;gap:20px}.summary-price{display:flex;align-items:center;gap:15px;margin:20px 0}.summary-price b{font-size:32px;letter-spacing:-1px}.bars{display:grid;gap:20px}.bar-label{display:flex;justify-content:space-between;font-size:12px;margin-bottom:7px}.track{height:12px;background:#f0f4f2;border-radius:10px;overflow:hidden}.fill{height:100%;background:#69a99b;border-radius:10px}.fill.own{background:#087f72}.datechip{display:inline-block;border:1px solid var(--border);border-radius:5px;padding:6px 8px;margin:3px;font-size:11px}.steps{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}.step{background:#f1f6f4;padding:9px 12px;border-radius:6px;font-size:12px}.step:after{content:' →';color:#86a59c;margin-left:6px}.step:last-child:after{content:''}.routecard{padding:20px 22px;border-bottom:1px solid var(--border)}.routecard:last-child{border:0}.risk{border-left:3px solid #cba350;padding:11px 14px;background:#fcf8ed;font-size:12px;margin-top:14px}.recommendations{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.rec{border:1px solid var(--border);border-radius:8px;padding:20px;background:white}.rec .num{font-size:12px;color:var(--green);margin-bottom:15px}.rec p{font-size:12px}.rec ul{padding-left:16px;font-size:12px}.evidenceitem{padding:20px 22px;border-bottom:1px solid var(--border)}.evidenceitem:last-child{border:0}.evidenceitem summary{cursor:pointer;font-weight:650}.evidenceitem p{font-size:12px;margin:10px 0}.check{display:flex;gap:9px;align-items:flex-start;font-size:12px;margin:12px 0}.check input{accent-color:var(--green);margin-top:4px}dialog{border:1px solid var(--border);border-radius:12px;width:min(660px,94vw);padding:0;color:var(--ink);box-shadow:0 20px 100px #102c3030}dialog::backdrop{background:#102c3060}.dialoghead{padding:22px 25px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center}form .fields{padding:22px 25px;display:grid;grid-template-columns:1fr 1fr;gap:16px}form .field.wide{grid-column:1/-1}textarea{width:100%;min-height:100px;resize:vertical}.dialogfoot{padding:18px 25px;border-top:1px solid var(--border);display:flex;justify-content:space-between;align-items:center}.toast{position:fixed;bottom:25px;right:25px;background:var(--nav);color:white;border-radius:8px;padding:13px 20px;z-index:10;box-shadow:0 4px 20px #0002}.footer{font-size:11px;color:var(--muted);display:flex;justify-content:space-between;margin-top:26px;gap:16px}.hidden{display:none!important}.badge-row{display:flex;gap:5px;flex-wrap:wrap}.decision{font-size:12px;padding:14px 18px;background:#eff5fb;border-radius:7px;margin-bottom:18px}.info-line{font-size:11px;color:var(--muted);margin-top:12px}.switchlabel{display:flex;align-items:center;gap:7px;font-size:11px}.switchlabel input{accent-color:var(--green)}@media(min-width:1550px){main{padding:34px 48px}header{padding:0 48px}}@media(max-width:1050px){.app{grid-template-columns:74px 1fr}aside{width:74px;padding:25px 10px}.brand{font-size:23px;padding:0;text-align:center}.brand .brandtext,.subbrand,.navlabel,.navitem .navtext,.sidebarfoot{display:none}.navitem{text-align:center;padding:13px 0}.navitem .symbol{width:auto;font-size:20px}.navitem:first-of-type{margin-top:30px}main{padding:25px 20px}header{padding:0 20px}.metrics{gap:10px}.metric{padding:14px}.grid2,.insight-strip{grid-template-columns:1fr}.recommendations{grid-template-columns:1fr}.heading{flex-wrap:wrap}}@media(max-width:650px){.app{display:block}aside{display:none}.workspace{grid-column:auto}header{height:55px;padding:0 16px}header .small{display:none}main{padding:20px 14px}.metrics{grid-template-columns:1fr 1fr}.heading h1{font-size:25px}.filters{gap:10px;padding:15px}.filters .field{width:calc(50% - 5px)}select{width:100%;min-width:0}.filter-count{margin-left:0}.panel-head{align-items:flex-start;flex-wrap:wrap}.tabs{gap:20px}.footer{flex-direction:column}form .fields{grid-template-columns:1fr}form .field.wide{grid-column:auto}}@media print{aside,header,.actions,.filters,.tabs,button,.notice,.footer{display:none!important}.app{display:block}.workspace{display:block}main{padding:0}.panel{overflow:visible;break-inside:avoid}.comparison{overflow:visible}th,td{min-width:0!important;padding:7px;font-size:9px}th:first-child,td:first-child{position:static;min-width:80px!important}.metrics{grid-template-columns:repeat(4,1fr)}body{background:white}.heading{margin-top:0}@page{size:A4 landscape;margin:12mm}}

body{font-family:-apple-system,BlinkMacSystemFont,"PingFang HK","Microsoft JhengHei",sans-serif}.brand{font-size:23px}.subbrand{letter-spacing:2px}.navitem{font-size:13px}.version-links{display:flex;gap:5px;background:#eef3f1;border-radius:8px;padding:4px}.version-links a{font-size:12px;text-decoration:none;padding:7px 12px;border-radius:5px;color:#54716a;white-space:nowrap}.version-links a.current{background:white;color:var(--green);box-shadow:0 1px 4px #0001}.provenance{display:block;font-size:10px;color:#7c918b;margin-top:9px}.raw{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}.raw.short{font-size:12px}.cell-head{font-size:11px;color:#749087;display:block;margin:10px 0 4px}.cell-head:first-child{margin-top:0}.detailbtn{border:0;background:transparent;padding:0;color:var(--green);font-size:10px;text-decoration:underline;font-weight:400}.datatable th:not(:first-child),.datatable td:not(:first-child){min-width:260px;max-width:360px}.datatable td{font-size:12px}.datatable th{vertical-align:top}.datatable th:first-child,.datatable td:first-child{min-width:100px;width:100px}.tourname{font-size:13px;font-weight:650;line-height:1.6;margin:10px 0}.sourcebadge{display:inline-block;border:1px solid #d7e9df;color:#4b7a63;border-radius:4px;font-size:10px;padding:1px 5px;margin-right:5px}.data-note{font-size:11px;color:#72837e;margin-top:12px}.subtabs{display:flex;gap:7px;padding:14px 20px;border-bottom:1px solid var(--border);flex-wrap:wrap}.subtabs button{padding:7px 11px;font-size:12px;font-weight:500}.subtabs button.active{background:var(--pale);color:var(--green);border-color:#9dc9bb}.recordlist{max-height:65vh;overflow:auto}.record{border-bottom:1px solid var(--border);padding:17px 22px}.record h3{font-size:13px}.code{font:11px/1.7 ui-monospace,Menlo,monospace;background:#f1f5f3;padding:4px 6px;border-radius:4px;overflow-wrap:anywhere}pre{white-space:pre-wrap;overflow-wrap:anywhere;font:11px/1.7 ui-monospace,Menlo,monospace;max-height:400px;overflow:auto;background:#f5f8f6;padding:15px}.dayfilter{width:95px;min-width:95px}.records-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.cost-box{padding:18px;border:1px solid var(--border);border-radius:7px;margin-bottom:14px}.cost-box strong{display:inline;font-size:16px}.checkline{display:flex;gap:8px;align-items:center;font-size:12px}.checkline input{accent-color:var(--green)}.ai-tag{background:#eef0ff;color:#6264a4;border:1px solid #e0e2fa}.emptyfield{color:#a18e61;font-size:11px}.evidence-body{padding:24px}.sourceaction{border-top:1px solid var(--border);padding:16px 22px;display:flex;justify-content:space-between}.numbers{font-variant-numeric:tabular-nums}.tableTitle{font-weight:700;font-size:12px}#evidenceDialog{width:min(760px,95vw)}.factual{padding:10px 15px;background:#f0f7f4;border-left:3px solid var(--green);font-size:12px;margin:12px 0}.aiwork{border-top:3px solid #747ab8}.metric .value{font-size:24px}.modal-scroll{max-height:65vh;overflow:auto}.reading{font-size:12px;line-height:1.9}.reading li{margin-bottom:9px}@media(max-width:700px){.version-links a{padding:6px 8px;font-size:11px}header{height:auto;min-height:65px;gap:10px;flex-wrap:wrap;padding:12px 16px}.metric .value{font-size:22px}.heading .actions{flex-wrap:wrap}.datatable td:not(:first-child),.datatable th:not(:first-child){min-width:240px}}

.portfolio-table th,.portfolio-table td{min-width:110px;font-size:12px;padding:13px}.portfolio-table th:first-child,.portfolio-table td:first-child{min-width:65px;width:65px}.portfolio-table .product-col{min-width:260px;max-width:350px}.portfolio-table td strong{font-size:13px}.basket{position:sticky;bottom:12px;z-index:3;display:flex;justify-content:space-between;align-items:center;gap:12px;background:#163e3e;color:white;border-radius:9px;padding:14px 20px;margin:15px 0;box-shadow:0 6px 25px #153e3e24}.basket button{background:#e9f6ef}.basket .pill{margin:2px}.decision-hero{background:linear-gradient(120deg,#e7f5ee,#f4f8ef);padding:26px;border-radius:9px;border:1px solid #cfe4d6;margin-bottom:22px}.decision-hero h2{font-size:24px;line-height:1.5;margin:10px 0}.decision-hero p{font-size:13px;max-width:1000px}.evidence-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin:18px 0}.attribute-card{background:white;border:1px solid var(--border);border-radius:8px;padding:18px}.attribute-card .big{font-size:26px;font-weight:700;margin:5px 0}.attribute-card p{font-size:12px}.recommendation-row{display:grid;grid-template-columns:145px 1fr 1fr;gap:18px;padding:20px 22px;border-bottom:1px solid var(--border)}.recommendation-row:last-child{border:0}.recommendation-row p,.recommendation-row li{font-size:12px;line-height:1.8}.recommendation-row ul{margin:0;padding-left:16px}.recommendation-row .label{font-weight:700;font-size:13px}.scenario-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:18px}.scenario{border:1px solid var(--border);padding:19px;border-radius:8px;background:white}.scenario.active{border:2px solid var(--green);background:#f2faf5;padding:18px}.scenario h3{margin-top:12px}.scenario .price{font-size:27px;font-weight:750;letter-spacing:-1px}.scenario p{font-size:12px}.scenario button{width:100%;margin-top:10px}.planning-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.control-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.control-grid input,.control-grid select{width:100%;min-width:0}.control-grid .wide{grid-column:1/-1}.resultline{display:flex;justify-content:space-between;padding:9px 0;border-bottom:1px solid var(--border);gap:12px;font-size:12px}.resultline strong{font-size:16px}.resultline:last-child{border:0}.ledger th,.ledger td{min-width:175px;font-size:12px}.ledger th:first-child,.ledger td:first-child{min-width:170px;width:170px}.price-protocol{background:#f0f5f4;padding:16px;border-radius:8px;margin-bottom:18px}.chipline{display:flex;gap:7px;flex-wrap:wrap;margin:8px 0}.subtle{font-size:11px;color:var(--muted)}.thin-rule{border:0;border-top:1px solid var(--border);margin:16px 0}.pair-settings{display:flex;gap:14px;flex-wrap:wrap;align-items:end;padding:18px 22px;border-bottom:1px solid var(--border)}.pair-settings input,.pair-settings select{min-width:160px}.confidence{font-size:10px;display:inline-block;border-radius:4px;padding:3px 6px;background:#eef3fb;color:#587496}.status-unknown{color:#a17b31}.rank-note{font-size:11px;color:#74847d}.layout-row{background:#f8f9fc;color:#76818d}.layout-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.seg-label{font-size:10px;letter-spacing:1px;color:var(--green);font-weight:750}.reading strong{color:#244c42}.compare-limit{background:#eef5f3;padding:12px 18px;border-radius:7px;font-size:12px;margin-bottom:15px}.sourcepopover{font-size:11px}.attribute-summary th,.attribute-summary td{min-width:185px;font-size:12px}.attribute-summary th:first-child,.attribute-summary td:first-child{min-width:140px}.valuebox{background:#f6f8f6;padding:13px;border-radius:7px;margin:10px 0}.gate-list{font-size:12px;margin:0;padding-left:18px}.gate-list li{margin:7px 0}@media(max-width:1100px){.evidence-grid{grid-template-columns:1fr 1fr}.recommendation-row{grid-template-columns:110px 1fr 1fr}.scenario-grid{grid-template-columns:1fr}.planning-grid{grid-template-columns:1fr}}@media(max-width:650px){.evidence-grid{grid-template-columns:1fr 1fr;gap:8px}.attribute-card{padding:13px}.attribute-card .big{font-size:22px}.recommendation-row{grid-template-columns:1fr;gap:8px}.basket{flex-wrap:wrap}.decision-hero{padding:20px}.decision-hero h2{font-size:21px}.control-grid{grid-template-columns:1fr}.control-grid .wide{grid-column:auto}}

/* TourScope additions (live data version) */
button[disabled]{opacity:.45;cursor:not-allowed}
.header-user{color:var(--muted);display:flex;gap:10px;align-items:center}
.brandchecks{display:flex;gap:6px 14px;flex-wrap:wrap;padding:8px 0;color:var(--ink)}
.pager{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:13px 20px;border-top:1px solid var(--border)}
.pillx{border:0;background:transparent;padding:0 0 0 6px;font-size:12px;line-height:1;color:inherit;font-weight:700}
.pillx:hover{background:transparent;color:#b3412e}
.portfolio-table tr.own-row td{background:#f0f8f4}
.portfolio-table input{accent-color:var(--green);width:16px;height:16px}
.raw.clip{max-height:320px;overflow:auto;padding-right:6px}
tr.own td{background:#f0f8f4}
.evidenceitem p{overflow-wrap:anywhere}
@media(max-width:650px){.filters .field.wide{width:100%}
.pager{padding:12px 14px}
header .header-user{display:flex;font-size:11px}
}
.destname{display:block;font-weight:650;color:var(--ink)}
.destpill{margin:4px 0 2px;font-size:10px;padding:2px 6px}
#destSubregion:disabled{opacity:.55}
/* Filter bar: search + brands, then six equal filter columns, then the toggle row. */
#filters.filters{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px 16px;align-items:end}
#filters .field{min-width:0}
#filters .field select,#filters .field input:not([type=checkbox]){width:100%;min-width:0}
#filters .checkline{white-space:nowrap}
#filters .f-search{grid-column:span 2}
#filters .f-brands{grid-column:span 4}
#filters .brandchecks{padding:9px 0}
#filters .filter-count{grid-column:1/-1;margin:0;padding:12px 0 0;border-top:1px solid var(--border)}
@media(max-width:1050px){#filters.filters{grid-template-columns:repeat(3,minmax(0,1fr))}#filters .f-search{grid-column:1/-1}#filters .f-brands{grid-column:1/-1}}
@media(max-width:650px){#filters.filters{grid-template-columns:1fr 1fr}#filters .field{width:auto}}
/* Clear-selection button in the basket bar. */
.basket-actions{display:flex;gap:8px;flex-wrap:wrap}
.basket .clearbtn{background:transparent;color:#d6ebe2;border-color:#4f7472}
.basket .clearbtn:hover:not([disabled]){background:#244b4b;color:white}
/* Sync button while a sync runs. */
#syncButton[disabled]{opacity:.6;cursor:wait}
/* No sidebar: the brand sits in the header; the account menu opens from the avatar (top right). */
.app{display:block}
header{position:relative;z-index:15}
.headleft{display:flex;align-items:center;gap:18px;min-width:0}
.topbrand{font-size:20px;font-weight:750;letter-spacing:-.6px;color:var(--ink);white-space:nowrap}
.topbrand span{color:var(--green)}
.usermenu{position:relative}
.avatarbtn{margin:0;padding:0;border:0;cursor:pointer}
.avatarbtn:hover,.avatarbtn[aria-expanded="true"]{background:#bfdcd2}
.usermenu-pop{position:absolute;right:0;top:calc(100% + 8px);min-width:220px;background:white;border:1px solid var(--border);border-radius:9px;box-shadow:0 10px 40px #102c3022;padding:6px;z-index:20}
.usermenu-pop[hidden]{display:none}
.usermenu-who{padding:10px 12px;border-bottom:1px solid var(--border);margin-bottom:4px;display:grid;gap:2px;font-size:12px}
.usermenu-who span{color:var(--muted);overflow-wrap:anywhere}
.usermenu-pop a{display:block;padding:9px 12px;border-radius:6px;text-decoration:none;color:var(--ink);font-size:13px}
.usermenu-pop a:hover{background:var(--pale);color:var(--green)}
@media(max-width:650px){.headleft .breadcrumb{display:none}}
/* Green header bar (same colour as the old sidebar). */
header{background:var(--nav);border-bottom-color:var(--nav)}
header .topbrand{color:white}
header .topbrand span{color:#77d5ac}
header .breadcrumb{color:#9fbcb7}
header .breadcrumb strong{color:white}
header .avatarbtn:hover,header .avatarbtn[aria-expanded="true"]{background:white}
/* TourScope logo links back to the candidate list. */
a.topbrand{text-decoration:none}
a.topbrand:hover{opacity:.85}
/* One colour per selected tour (app.js tourCls): baseline green, then competitors blue, violet, rose.
   --tc is the strong colour (bars, dots, pill text), --tbg the faint cell tint, --tpill the pill fill. */
.tour0{--tc:#087f72;--tbg:#f0f8f4;--tpill:#dcefe7;--tline:#c9e0d6}
.tour1{--tc:#3b6db3;--tbg:#f2f6fc;--tpill:#dfe8f6;--tline:#d0dcef}
.tour2{--tc:#7a52b3;--tbg:#f7f3fc;--tpill:#e9e0f6;--tline:#ddd2ee}
.tour3{--tc:#c0436a;--tbg:#fdf3f6;--tpill:#f7dee6;--tline:#eccfd9}
.pill.tpill{background:var(--tpill);color:var(--tc)}
th.tcol{background:var(--tbg);box-shadow:inset 0 4px 0 var(--tc),inset 1px 0 0 var(--tline)}
td.tcol{background:var(--tbg);box-shadow:inset 1px 0 0 var(--tline)}
tr.trow td:first-child{box-shadow:inset 4px 0 0 var(--tc)}
/* Row lines that still show on tinted cells; the label column gets a matching neutral line. */
.datatable th,.datatable td,.ledger th,.ledger td{border-bottom-color:#d3ddda}
.tcol,tr.trow td{border-bottom-color:var(--tline)}
/* Departures list and candidate list: a selected tour's rows take its colour. */
tr.trow td,.portfolio-table tr.trow td{background:var(--tbg)}
.portfolio-table tr.trow input{accent-color:var(--tc)}
.tdot{display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--tc);margin-right:6px;vertical-align:baseline}
.evidenceitem.tcard{box-shadow:inset 4px 0 0 var(--tc)}
.basket .pill.tpill{border:1px solid #ffffff55}
.compare-limit .legend{display:inline-flex;margin:0 0 0 10px;vertical-align:middle}
.tcol,.trow td,.tpill,.tdot,.tcard{-webkit-print-color-adjust:exact;print-color-adjust:exact}
/* Hotel / meal tabs: a text-only tour's day text starts folded (it is shown in full on 逐日行程). */
.rawfold summary{cursor:pointer;color:#a18e61;font-size:11px}
.rawfold[open] summary{margin-bottom:8px}
/* The source section is the link to its record (was a separate 查看資料紀錄 link). */
.provenance .sourcelink{font-size:10px;color:#5f8178;text-decoration:underline dotted;text-underline-offset:3px;text-align:left}
.provenance .sourcelink:hover{color:var(--green);text-decoration-style:solid;background:transparent}
/* 逐日行程: the day's 景點、交通及備註 fold-out, between the route and its source line. */
.dayextra{margin-top:10px}
.dayextra summary{cursor:pointer;color:var(--green)}
/* 成團狀態 highlight (app.js statusPill): 已成團 solid green, 快成團／將成團 amber. */
.pill.st-ok{background:var(--green);color:white}
.pill.st-near{background:#fcebc4;color:#8a5a0c}
/* Candidate-list multi-select dropdowns (app.js multiSelect); look like the old selects. */
div.field{display:grid;gap:5px;font-size:11px;color:var(--muted)}
.ms{position:relative;min-width:0}
.ms-btn{position:relative;width:100%;text-align:left;font-weight:400;padding:9px 28px 9px 10px;border-color:#d3dedb;border-radius:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ms-btn::after{content:'▾';position:absolute;right:10px;color:var(--muted)}
.ms-btn.ms-on{border-color:var(--green);color:var(--green);font-weight:600}
.ms-pop{position:absolute;left:0;top:calc(100% + 4px);z-index:20;min-width:100%;width:max-content;max-width:min(320px,90vw);max-height:320px;overflow:auto;background:white;border:1px solid var(--border);border-radius:8px;box-shadow:0 10px 40px #102c3022;padding:6px}
.ms-pop[hidden]{display:none}
.ms-pop .checkline{padding:6px 8px;border-radius:5px;color:var(--ink);cursor:pointer;white-space:nowrap}
.ms-pop .checkline:hover{background:var(--pale)}
.ms-count{margin-left:auto;padding-left:14px;color:var(--muted);font-size:11px}
.ms-group{font-size:10px;letter-spacing:1px;color:var(--green);font-weight:700;padding:8px 8px 2px}
.ms-foot{border-top:1px solid var(--border);margin-top:4px;padding:6px 2px 0}
.ms-foot button{width:100%;padding:6px;font-size:12px;font-weight:500}
/* Filter bar, 12 columns: search | brands; 地區 | 目的地 | 成團狀態; 天數 | 月份 | 最低價 | 最高價; toggle. */
#filters.filters{grid-template-columns:repeat(12,minmax(0,1fr))}
#filters .f-search{grid-column:span 4}
#filters .f-brands{grid-column:span 8}
#filters .f-row2{grid-column:span 4}
#filters .f-row3{grid-column:span 3}
@media(max-width:1050px){#filters.filters{grid-template-columns:repeat(6,minmax(0,1fr))}#filters .f-search,#filters .f-brands{grid-column:1/-1}#filters .f-row2{grid-column:span 2}#filters .f-row3{grid-column:span 3}}
@media(max-width:650px){#filters.filters{grid-template-columns:1fr 1fr}#filters .f-row2,#filters .f-row3{grid-column:auto}}
/* Candidate list: upcoming 成團狀態 counts under 未來出發. */
.cst{display:block;font-size:11px;font-weight:600;margin-top:3px}
.cst-ok{color:var(--green)}
.cst-near{color:#8a5a0c}
/* 無 AI notice: a fold-out, one line by default. */
details.notice summary{cursor:pointer;list-style:none}
details.notice summary::-webkit-details-marker{display:none}
.notice-more::before{content:'▸ 詳情';margin-left:8px;white-space:nowrap;text-decoration:underline dotted;text-underline-offset:3px}
details.notice[open] .notice-more::before{content:'▾ 收起'}
.notice-body{margin-top:6px}
/* Compare / fees table header: tour code first, title cut to 2 lines (full title on hover and in 基本欄位). */
.tourcode{font-size:13px;font-weight:700;color:var(--ink);margin:10px 0 4px}
th .tourname{margin:0 0 8px;font-size:12px;font-weight:500;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
/* Key values shown bold (旅行天數, 基本成人團費). */
.raw.strong{font-size:14px;font-weight:650}
/* Wide screens: the table fits without sideways scrolling, so its header row can stick to the top of the window. */
@media(min-width:1280px){
  .panel:has(> .comparison > .datatable),.panel:has(> .comparison > .ledger),
  .comparison:has(> .datatable),.comparison:has(> .ledger){overflow:visible}
  .datatable thead th,.ledger thead th{position:sticky;top:0;z-index:2}
  .datatable thead th:first-child,.ledger thead th:first-child{z-index:3}
  .panel:has(> .comparison > .datatable) > .table-footer:last-child,
  .panel:has(> .comparison > .ledger) > .table-footer:last-child{border-radius:0 0 9px 9px}
}
/* Not prod: a tag beside the brand (app.js envTag) and a different header colour: dark blue on staging, deep purple on dev (a laptop). Prod keeps the green header. Header text stays as on prod. */
.envtag{display:inline-flex;align-items:center;gap:7px;padding:3px 9px;border-radius:5px;font-size:11px;font-weight:700;letter-spacing:.4px;background:#fcf3df;color:var(--amber);white-space:nowrap}
.envtag .envbuild{font:500 10px ui-monospace,Menlo,monospace;letter-spacing:0;opacity:.85}
body.env-staging header{background:#1e3a8a;border-bottom-color:#1e3a8a}
body.env-staging header .breadcrumb{color:#c7d7fe}
body.env-staging .envtag{background:#dbeafe;color:#1e3a8a}
body.env-dev header{background:#4c1d95;border-bottom-color:#4c1d95}
body.env-dev .envtag{background:#ede9fe;color:#4c1d95}
@media(max-width:650px){.envtag .envbuild{display:none}}
