/* Readable, responsive presentation shared by all sections. */
:root{--bg:#f3f6f7;--text:#172b36;--muted:#526674;--soft:#657682;--line:#dfe7e9;--line2:#c8d5d9;--dark:#133d3b;--blue:#0f766e;--bluebg:#edf8f6;--red:#ad3828;--shadow:0 5px 24px rgba(24,55,62,.045)}
body{line-height:1.65;letter-spacing:.01em;background:radial-gradient(ellipse at 0 0,#e5f1ee 0,transparent 45%),var(--bg)}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
button:focus-visible,a:focus-visible{outline:3px solid #32a997;outline-offset:3px}
.app{max-width:1320px;padding:28px 28px 60px}
header{align-items:center;margin-bottom:24px}
.brandlogo{width:54px;height:54px;border-radius:15px}
.brandlockup{gap:14px}.brandmeta h1{font-size:23px;letter-spacing:.02em}.by{font-size:13px;color:var(--muted);margin-top:2px}
.btn{min-height:44px;padding:10px 15px;border-radius:11px;font-size:14px;font-weight:650;line-height:1.4;gap:6px}
.btn:hover{border-color:#8baaa4;background:#f0f8f6}.btn.primary{background:#0f766e;border-color:#0f766e}.btn.primary:hover{background:#115e59}
.hero{position:relative;overflow:hidden;grid-template-columns:1.1fr 1fr;background:linear-gradient(118deg,#123d3b,#1a5350);border:0;border-radius:24px;padding:32px 34px;gap:40px;color:#fff;box-shadow:0 12px 40px #0b4b3814}
.hero:after{content:"";position:absolute;width:280px;height:280px;border:1px solid #ffffff13;border-radius:50%;right:-100px;top:-100px;pointer-events:none}
.eyebrow{font-size:13px;font-weight:650;letter-spacing:.12em;color:#aee3d7;margin-bottom:10px}
.hero h2{font-size:32px;line-height:1.45;letter-spacing:.025em;margin-bottom:12px}.hero p{font-size:15px;line-height:1.8;color:#d0e3df;max-width:440px}
.hero-links{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.hero-links .btn{background:#ffffff12;border-color:#ffffff33;color:#fff}.hero-links .btn:hover{background:#ffffff24}.hero-links .btn:first-child{background:#effaf6;color:#124741;border-color:transparent}
.stats{gap:12px}.stat{padding:17px 20px;border-radius:14px;border:1px solid #ffffff22;background:#ffffff08}.stat span{font-size:13px;color:#c8dfda}.stat b{font-size:28px;color:#fff;font-weight:750;margin-top:3px}
.nav{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:5px;padding:10px 0 15px;overflow:visible;background:#f3f6f7ee;top:0;border-bottom:1px solid var(--line);margin-bottom:22px}
.nav button{white-space:normal;min-height:52px;padding:8px 3px;border:0;border-radius:11px;font-size:14px;font-weight:650;background:transparent;color:#526674;line-height:1.4}.nav button:hover{background:#e6eeeb}.nav button.active{background:#133d3b;color:#fff;box-shadow:0 3px 10px #153d3b13}.navico{font-size:17px;width:20px;margin-right:4px}
.section{scroll-margin-top:90px}.notice{font-size:14px;padding:15px 18px;border-radius:13px;background:#edf5f4;border-color:#d5e6e1;color:#405e5a;line-height:1.8}.notice a{color:#0f766e;text-decoration:underline}
.source-details{margin-bottom:18px}.source-details summary{cursor:pointer;font-size:14px;font-weight:650;padding:12px 16px;border:1px solid var(--line);border-radius:11px;background:#fff;color:#526674}.source-details .notice{margin-top:8px}
.toolbar{grid-template-columns:1.5fr .75fr .75fr;gap:12px}.control{border-radius:12px;min-height:48px;font-size:16px;background:#fff;padding:12px 14px}.control:focus{border-color:#0f766e;box-shadow:0 0 0 3px #0f766e18}
.summary{font-size:14px;gap:12px;flex-wrap:wrap;margin:16px 2px}.grid{gap:18px}.card{border-radius:18px}.cc{padding:21px}.cc h3{font-size:20px;line-height:1.45}.bank{font-size:14px}.badge{font-size:12px;padding:3px 8px;line-height:1.6}.star{width:44px;height:44px;flex-shrink:0;font-size:22px;color:#7d8d98;border-radius:12px}.rate{font-size:34px;margin:20px 0 7px}.rate small{font-size:14px}.desc{font-size:15px;line-height:1.8}.label,.value{font-size:14px;line-height:1.65}.value{max-width:70%}.cardbuttons{margin-top:18px;gap:8px}.cardbuttons .btn{font-size:14px;padding:10px 14px}.cardbuttons .btn:first-child{flex:1}
.panel,.wherebox{padding:22px}.titlebar h3{font-size:22px;line-height:1.4}.titlebar{margin-bottom:18px}.empty{font-size:15px;padding:32px 20px;color:#526674;line-height:1.8}.cat b{font-size:16px}.cat span{font-size:14px}.cat{padding:18px}.chipbtn{font-size:14px;min-height:44px;padding:8px 13px}.field label{font-size:14px;font-weight:650;color:#405563}.metric span{font-size:13px}.metric b{font-size:20px;overflow-wrap:anywhere}.metrics{gap:12px}.break p{font-size:15px;line-height:1.8}.break h4{font-size:17px}
.wherebox p,.scenario-summary p{font-size:15px;line-height:1.8}.wherebox h3{font-size:21px}.quickchips button{font-size:14px;min-height:44px;padding:8px 14px}.dealbank,.dealscheme{font-size:14px}.dealcard{padding:20px}.dealcard h4,.scenario-card h4{font-size:19px;line-height:1.5}.dealrate{font-size:27px}.dealrate small{font-size:13px}.dealmeta span,.dealmerchants span{font-size:13px;line-height:1.6}.dealnote{font-size:15px;line-height:1.8}.dealhead>div:first-child{min-width:0}.dealrate{white-space:normal;flex-shrink:0;max-width:42%;overflow-wrap:anywhere}
.section-kicker{color:#0f766e;font-size:13px;font-weight:750;letter-spacing:.1em;margin-bottom:5px}.section-intro{font-size:15px;color:var(--muted);margin:6px 0 0;line-height:1.8}
.week-toolbar{grid-template-columns:auto 1fr auto;gap:16px;background:#fff;padding:14px;border-radius:15px;border:1px solid var(--line)}.week-toolbar strong{font-size:17px;line-height:1.5}.week-toolbar .btn{font-size:14px}.week-day-picker{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px;margin:16px 0}.week-day-picker button{border:1px solid var(--line);border-radius:11px;padding:9px 5px;min-height:52px;background:#fff;color:var(--muted);font-size:14px;line-height:1.5}.week-day-picker button.active{color:#0d5b51;background:#e2f2ec;border-color:#8dbbae;font-weight:750}.week-day-picker small{display:block;font-size:13px}.week-summary{font-size:14px;color:var(--muted);margin:8px 0 15px}.weekly-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;overflow:visible}.week-day{min-height:0;padding:17px;border-radius:18px;scroll-margin-top:100px}.week-day.today{border-color:#79b6a8;box-shadow:0 0 0 2px #d5eee5}.week-day-head{padding-bottom:12px;margin-bottom:12px;align-items:center}.week-day-head b{font-size:19px}.week-date{font-size:14px}.week-offer{display:block;width:100%;text-align:left;color:var(--text);background:#f8faf9;padding:15px;margin-top:12px;border-radius:13px;line-height:1.65}.week-icon{width:36px;height:36px;flex-basis:36px;font-size:20px;background:#eaf3ef}.week-offer-top>div{min-width:0}.week-cardname{font-size:13px;line-height:1.6}.week-offer h4{font-size:16px;line-height:1.65;margin-top:3px}.week-value{font-size:22px;margin:11px 0 8px;color:#a23b2c}.week-meta,.week-pay{font-size:14px;line-height:1.75}.week-empty{font-size:14px;color:#687985;padding:25px 10px}.week-detail-link{display:block;margin-top:12px;font-size:14px;font-weight:650;color:#0f766e}.today-pill{font-size:12px;border-radius:20px;padding:3px 8px;background:#e5f5ef;color:#0f766e;margin-left:8px}
.scenario-category-bar{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.scenario-category-bar button{border:1px solid var(--line);background:#fff;border-radius:25px;min-height:44px;padding:8px 15px;font-size:14px;color:var(--muted)}.scenario-category-bar button.active{background:#133d3b;border-color:#133d3b;color:#fff}.scenario-list{gap:12px;grid-template-columns:repeat(4,minmax(0,1fr));max-height:400px;overflow-y:auto;padding:3px 4px 10px 0}.scenario-btn{padding:16px;border-radius:14px;min-width:0}.scenario-btn b{font-size:16px;line-height:1.6}.scenario-btn span{font-size:14px;line-height:1.7}.scenario-btn.active{border-color:#0f766e;background:#edf8f3;box-shadow:0 0 0 1px #0f766e}.scenario-emoji{font-size:23px;margin-right:5px}.scenario-tools{margin-top:18px;grid-template-columns:1.2fr .7fr .8fr;align-items:end}.scenario-tools .field{margin-bottom:0}.scenario-summary{padding:22px;border-radius:18px;margin-top:16px}.scenario-summary h3{font-size:22px;line-height:1.6}.scenario-title{font-size:21px;margin-top:24px}.scenario-card{padding:20px}.scenario-card .owned{font-size:13px}.scenario-action{font-size:15px;line-height:1.8;padding:13px}.scenario-result{gap:16px}.scenario-advice{margin-top:12px;padding-top:12px;border-top:1px solid var(--line);font-size:15px;line-height:1.8;color:#405e5a}
.drawer{width:min(920px,90vw)}.dhead h2{font-size:27px;line-height:1.5}.close{min-width:44px;min-height:44px}.dbody{overscroll-behavior:contain}.drawer .key span{font-size:14px}.drawer .key b{font-size:18px}.drawer .tabs2 button{font-size:14px;min-height:44px}.drawer .mg-rate,.drawer .merchant,.drawer .limit span,.drawer .day p,.drawer .day b{font-size:14px}.drawer .stackrow>div{font-size:14px}.drawer .weekgrid{grid-template-columns:repeat(3,minmax(0,1fr))}.offer-cond span{font-size:13px}.offer-cond b{font-size:15px}.condition-chip{font-size:12px;padding:5px 9px}.offer{border-radius:15px}.offer-top>div:first-child{min-width:0}.pct{font-size:26px;max-width:38%;overflow-wrap:anywhere}.drawer .searchbox input{font-size:16px}.resultbox span{font-size:14px}.inline-help{font-size:14px!important;line-height:1.8!important}
.card-facts{background:#f7faf8;border:1px solid #dce9e2;border-radius:16px;padding:20px;margin-bottom:20px}.card-facts h3{font-size:21px;margin:0 0 13px}.facts-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;margin:0}.fact-item{padding:12px 0;border-bottom:1px solid var(--line)}.fact-item dt{font-size:13px;color:var(--muted);margin-bottom:4px}.fact-item dd{margin:0;font-size:15px;line-height:1.8;font-weight:650}.facts-notes{font-size:15px;line-height:1.8;margin:14px 0;padding-left:21px}.facts-sources{display:flex;gap:10px;flex-wrap:wrap;font-size:14px}.facts-verified{font-size:13px;color:var(--muted);margin-top:12px}.facts-missing{font-size:14px;color:var(--muted);line-height:1.8;margin-top:12px}
.cloud-card{margin-bottom:20px}.cloud-card h3{font-size:22px}.cloud-card p,.cloud-card label,.cloud-card details{font-size:15px;line-height:1.8}.cloud-card .cloud-status{border:1px solid var(--line);background:#f5faf7;border-radius:12px;padding:12px 15px;font-size:14px}.cloud-card .cloud-fields{display:grid;grid-template-columns:1.3fr 1fr;gap:14px}.cloud-card .cloud-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}.cloud-card .cloud-status[data-state=error]{background:#fef3f2;color:#b42318}.cloud-token{font-family:inherit}.cloud-card a{text-decoration:underline;color:#0f766e}.cloud-shortcut{color:#0f766e}.cloud-card .field{margin-top:14px}.cloud-card button:disabled{opacity:.55;cursor:wait}
footer{color:#526674;font-size:13px;line-height:1.9;margin-top:36px;border-top:1px solid var(--line);padding-top:22px}.footer-brand{font-weight:750;color:#254f49;margin-bottom:6px}.footer-meta{font-size:12px;margin-top:10px}
@media(min-width:1100px){.navico{display:block;margin:0 auto 3px}.nav button{padding:9px 3px}.nav{padding-top:8px}}
@media(max-width:1050px){.app{padding:22px 20px 50px}.nav{grid-template-columns:repeat(4,minmax(0,1fr))}.hero{gap:25px;padding:26px}.hero h2{font-size:29px}.weekly-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.scenario-list{grid-template-columns:repeat(3,minmax(0,1fr))}.brandmeta h1{font-size:21px}}
@media(max-width:700px){
 .app{padding:18px 16px 38px}header{gap:10px;flex-wrap:wrap;margin-bottom:18px}.brandlogo{width:46px;height:46px;border-radius:12px}.brandlockup{align-items:center;gap:10px}.brandmeta h1{font-size:21px}.by{font-size:12px}.actions{width:100%;gap:8px;flex-wrap:nowrap}.actions .btn{flex:1;font-size:14px;min-height:44px;padding:10px 9px}.actions .btn:not(.primary){display:inline-flex}.actions label.btn{display:none!important}
 .hero{padding:23px;border-radius:20px;grid-template-columns:1fr;gap:24px}.hero h2{font-size:27px}.hero p{font-size:15px}.hero-links{gap:8px;margin-top:16px}.hero-links .btn{font-size:14px;padding:10px 12px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.stat{padding:12px 15px}.stat b{font-size:25px}.stat span{font-size:13px}
 .nav{gap:5px;padding:9px 0 12px;margin-bottom:18px;grid-template-columns:repeat(4,minmax(0,1fr))}.nav button{min-height:53px;font-size:13px;line-height:1.4;padding:7px 2px}.navico{display:block;margin:0 auto 3px;font-size:17px}.section{scroll-margin-top:135px}.notice{font-size:14px;padding:13px 15px}.toolbar{grid-template-columns:1fr 1fr;gap:10px}.toolbar input{grid-column:1/-1}.summary{font-size:13px;line-height:1.7}.summary>span:last-child{width:100%}.grid{grid-template-columns:1fr;gap:14px}.cc{padding:20px}.titlebar{align-items:flex-start;gap:12px}.titlebar h3{font-size:23px}.titlebar .btn{flex-shrink:0}.section-intro{font-size:15px}.panel{padding:20px}.form2{grid-template-columns:1fr}.metrics{grid-template-columns:1fr}.catgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.cat{padding:14px}.cat b{font-size:15px}
 .week-toolbar{grid-template-columns:1fr 1fr;padding:12px;gap:10px}.week-toolbar strong{grid-row:1;grid-column:1/-1;font-size:18px}.week-toolbar .btn{font-size:15px;min-height:44px}.week-day-picker{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.week-day-picker button{font-size:14px;min-height:57px}.weekly-grid{grid-template-columns:1fr;gap:16px}.week-day{padding:18px;scroll-margin-top:145px}.week-offer{padding:15px}.week-offer h4{font-size:17px}.week-cardname{font-size:14px}.week-meta,.week-pay{font-size:14px}.week-summary{font-size:14px}
 .scenario-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-height:410px}.scenario-btn{padding:13px;min-height:120px}.scenario-btn b{font-size:15px}.scenario-btn span{font-size:13px}.scenario-tools{grid-template-columns:1fr;gap:12px}.scenario-category-bar{gap:7px}.scenario-category-bar button{font-size:14px;padding:8px 12px}.scenario-summary{padding:19px}.scenario-summary h3{font-size:20px}.scenario-result{grid-template-columns:1fr}.dealrate{font-size:23px}.where-toolbar,.merchant-picker,.dealgrid{gap:12px}.drawer{width:100%}.dhead{padding:18px}.dbody{padding:18px 16px 40px}.dhead h2{font-size:23px}.keypoints{grid-template-columns:1fr}.drawer .weekgrid{grid-template-columns:1fr}.drawer .stackrow{grid-template-columns:repeat(2,minmax(0,1fr))}.facts-grid{grid-template-columns:1fr}.card-facts{padding:17px}.facts-grid dd{font-size:16px}.drawer .offer h4{font-size:18px}.offer-cond b{font-size:15px}.offer-conditions{grid-template-columns:1fr}.drawer .topnote{font-size:15px}.dialog{width:calc(100vw - 28px);max-height:90dvh;overflow:auto;padding:20px}.cloud-card .cloud-fields{grid-template-columns:1fr}.cloud-card .cloud-actions .btn{flex:1;min-width:130px}.cloud-card input{font-size:16px}.cloud-card .row{flex-wrap:wrap}footer{font-size:13px}
}
@media(max-width:360px){.app{padding-left:12px;padding-right:12px}.hero{padding:19px}.hero h2{font-size:24px}.nav button{font-size:12px}.actions .btn{font-size:13px}.scenario-list{grid-template-columns:1fr}.dealhead{flex-wrap:wrap}.dealrate{text-align:left;max-width:none}.hero-links .btn{flex:1}.week-offer h4{font-size:16px}}
.scenario-btn .scenario-emoji{display:inline;font-size:22px;margin-right:5px;line-height:1}
.cloud-card.credit-cloud{margin-top:0;border-color:var(--line);color:var(--text)}.cloud-card .cloud-guide{background:#f1f7f4;border-color:#dce9e1}.cloud-card .cloud-eyebrow,.cloud-card .cloud-badge{color:#356b60}.cloud-card .cloud-badge{background:#edf7f2;border-color:#d5e7de}.cloud-card .cloud-intro,.cloud-card .cloud-meta,.cloud-card .cloud-privacy{color:var(--muted)}
.drawer .dbody>*{min-width:0;max-width:100%}.benefits{grid-template-columns:minmax(0,1fr)}.offer,.merchant-groups,.mg,.offer-top>div,.condition-chips{min-width:0}.offer{overflow-wrap:anywhere}.drawer .pct{white-space:normal}.drawer .merchant{max-width:100%;overflow-wrap:anywhere}.drawer .tabs2{flex-wrap:wrap;overflow:visible}.drawer .mghead{flex-wrap:wrap}
@media(max-width:700px){.hero{gap:20px}.stat{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 12px}.stat span{font-size:12px}.stat b{font-size:23px;margin-top:0}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}

/* A unified workspace: calm surfaces, clear hierarchy and no nested list scrolling. */
body{background:#f4f6f8}
.nav{grid-template-columns:repeat(6,minmax(0,1fr));background:#f4f6f8f5;padding:12px 0;gap:8px}
.nav button{min-height:62px;border-radius:12px;font-weight:650}.nav button.active{background:#163c40;box-shadow:0 4px 12px #163c4018}
.titlebar h3{letter-spacing:-.025em;font-size:28px}.section-kicker{font-size:12px;letter-spacing:.16em;color:#337a78;margin-bottom:8px}.section-intro{max-width:740px;line-height:1.8}
.scenario-workspace,.scenario-settings{background:#fff;border:1px solid var(--line);border-radius:20px;padding:26px;margin-top:22px;box-shadow:0 4px 16px #172b3603}
.workspace-heading{display:flex;align-items:center;gap:14px;margin-bottom:20px}.workspace-heading h4{font-size:19px;margin:0;color:var(--text)}.workspace-heading p{font-size:14px;color:var(--muted);margin:3px 0 0}.step-number{display:grid;place-items:center;flex-shrink:0;width:42px;height:42px;background:#eef5f4;color:#206460;border-radius:12px;font-weight:750;font-size:16px;font-variant-numeric:tabular-nums}
.scenario-search{margin:18px 0 10px}.scenario-search .control{background:#f8fafb;min-height:54px;font-size:16px}.scenario-category-bar{gap:7px;margin:0 0 16px}.scenario-category-bar button{border-radius:9px;font-size:14px;padding:8px 12px;background:#f8fafb;min-height:40px}.scenario-category-bar button.active{background:#eaf4f1;color:#205e58;border-color:#a7c9bd}
#scenarioSearchCount{font-size:14px;color:var(--muted);margin:14px 0 18px}
.scenario-list{grid-template-columns:repeat(3,minmax(0,1fr));max-height:none;overflow:visible;padding:0;gap:12px;margin-bottom:18px}
.scenario-btn{position:relative;display:flex;flex-direction:column;gap:10px;text-align:left;background:#fff;border:1px solid #dfe6e9;border-radius:12px;padding:18px;min-height:144px;transition:border-color .15s,background .15s;box-shadow:none}
.scenario-btn:hover{border-color:#6d9c94;background:#f8fcfa}.scenario-btn.active{border-color:#267b70;background:#eff8f4;box-shadow:inset 3px 0 #267b70}.scenario-btn b{display:block;font-size:16px;line-height:1.5;color:#243c48}.scenario-btn span:not(.scenario-emoji){font-size:14px;line-height:1.7;color:#61727c}.scenario-btn .scenario-emoji{display:inline;font-size:19px;opacity:.85}
#scenarioMore{display:flex;margin:0 auto;min-width:190px;justify-content:center;background:#f8fafb}#scenarioMore[hidden]{display:none}
.scenario-tools{margin-top:0;gap:18px}.scenario-tools label{font-size:14px}.scenario-tools .control{background:#f8fafb;font-size:17px;min-height:52px}
.scenario-summary{background:#edf5f3;border:1px solid #d3e5de;border-radius:16px;margin-top:24px}.scenario-summary p{font-size:15px;line-height:1.9}.scenario-title{margin-top:30px;font-size:21px}.scenario-card{border-radius:16px;box-shadow:0 3px 14px #172b3604}.scenario-card h4{font-size:18px;line-height:1.6}.scenario-money{font-size:25px;color:#17665f;font-weight:750}.scenario-card .owned{display:inline-block;background:#f0f5f7;padding:4px 9px;border-radius:6px;color:#526674;font-size:12px;margin-bottom:12px}.scenario-action{border-radius:10px;background:#f6f9fa}
.week-toolbar{border-radius:14px;background:#fff;border:1px solid var(--line);box-shadow:none}.week-toolbar strong{font-size:22px;font-variant-numeric:tabular-nums}.week-day-picker{gap:8px}.week-day-picker button{border-radius:10px;background:#fff}.week-day-picker button.active{background:#163c40;color:#fff;border-color:#163c40}.week-summary{font-size:14px;color:var(--muted);margin:20px 0}.weekly-grid{gap:16px}.week-day{border-radius:16px;padding:20px;box-shadow:0 3px 14px #172b3604}.week-day.today{border-color:#78aa9f;box-shadow:inset 0 3px #267b70}.week-offer{background:#f8fafb;border-radius:12px;padding:16px}.week-offer h4{font-size:17px;line-height:1.65}.week-meta,.week-pay{font-size:14px;line-height:1.8}.week-cardname{font-size:13px}
@media(max-width:1050px){.nav{grid-template-columns:repeat(4,minmax(0,1fr))}.scenario-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.nav{gap:5px}.nav button{font-size:12px;min-height:62px;padding:7px 3px}.nav button[data-tab=scenario]{grid-column:span 2}.titlebar h3{font-size:24px}.scenario-workspace,.scenario-settings{padding:18px;border-radius:16px;margin-top:18px}.workspace-heading{gap:10px}.workspace-heading h4{font-size:18px}.workspace-heading p{font-size:14px}.scenario-list{grid-template-columns:1fr;max-height:none;overflow:visible;gap:10px}.scenario-btn{min-height:0;padding:16px;gap:7px}.scenario-btn b{font-size:16px}.scenario-btn span:not(.scenario-emoji){font-size:14px}.scenario-category-bar{gap:6px}.scenario-category-bar button{font-size:13px;min-height:40px;padding:8px 10px}.scenario-tools{grid-template-columns:1fr;gap:14px}.scenario-summary{padding:18px}.scenario-summary h3{font-size:20px}.week-toolbar strong{font-size:18px}.weekly-grid{grid-template-columns:1fr}.week-day{padding:18px}.week-offer h4{font-size:17px}.week-cardname{font-size:14px}}

.scenario-settings{scroll-margin-top:110px}@media(max-width:700px){.scenario-settings{scroll-margin-top:170px}}

@media(max-width:700px){.scenario-category-bar{flex-wrap:nowrap;overflow-x:auto;padding-bottom:8px;scrollbar-width:thin}.scenario-category-bar button{flex-shrink:0}.scenario-search{margin-top:0}.scenario-workspace .control{width:100%}}

/* Stronger text hierarchy on light surfaces. Keep fonts local to avoid loading flashes. */
:root{--bg:#f0f3f5;--text:#142832;--muted:#354b57;--soft:#4b606b;--line:#c7d3d8;--line2:#adbec5;--dark:#12393d;--blue:#0b625c;--bluebg:#e5f2ee}
body{font-family:"Segoe UI Variable","Microsoft JhengHei UI","Noto Sans TC","PingFang TC",sans-serif;font-size:16px;font-weight:400;letter-spacing:0;line-height:1.7;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit;color:var(--text)}
h1,h2,h3,h4,.workspace-heading h4,.scenario-btn b,.week-offer h4{font-weight:700;letter-spacing:-.015em}
header .by,.desc,.bank,.label,.summary,.section-intro,.week-cardname,.week-meta,.week-pay,.dealscheme,.dealnote,.scenario-card .dealmeta,.scenario-card .dealnote,.card-facts .facts-verified,.cloud-card .cloud-meta{color:var(--muted)}
.nav{background:#f0f3f5f7;border-bottom-color:var(--line)}.nav button{color:#314956;font-size:15px;font-weight:650}.nav button.active{background:#12393d;color:#fff;font-weight:750}
.section-kicker{color:#075c56;font-weight:800}.section-intro,.workspace-heading p,#scenarioSearchCount,.week-summary{color:var(--muted);font-size:15px}
.control,.scenario-search .control,.scenario-tools .control{color:var(--text);border-color:#aebfc7;background:#fff}.control::placeholder,input::placeholder{color:#586b75;opacity:1}.control:focus-visible{border-color:#0b625c;box-shadow:0 0 0 3px #0b625c24}
.scenario-workspace,.scenario-settings,.card,.week-toolbar,.week-day{border-color:var(--line)}
.scenario-category-bar button,.week-day-picker button{color:#304957;border-color:#b9c8cf;background:#fff;font-weight:600}.scenario-category-bar button.active{color:#fff;background:#13463f;border-color:#13463f}.week-day-picker button.active{background:#12393d;color:#fff}
.scenario-btn{border-color:#b9c8cf}.scenario-btn b{color:#172f39}.scenario-btn span:not(.scenario-emoji){color:#344d59;font-size:15px}.scenario-btn.active{background:#e4f3ec;border-color:#1b6a5c}.scenario-btn:hover{background:#f1f8f5}
.scenario-summary{background:#e3f0eb;border-color:#b2cec2}.scenario-summary p,.scenario-advice,.scenario-action{color:#23433f}.scenario-card .owned{color:#2c4e54;background:#e8f0f2;font-weight:700;font-size:13px}.scenario-card .dealmeta span{font-size:14px}.scenario-money{color:#075b52}
.week-offer{background:#f3f7f8;border:1px solid #d3dfe3}.week-cardname{font-size:14px}.week-meta,.week-pay{font-size:15px}.week-summary,.week-date{color:#344d59}.week-detail-link,.notice a{color:#075b56}
.field label,.scenario-tools label{font-size:15px;color:#253d4a;font-weight:700}.notice,.empty,.break p{color:#294752}.stat span{color:#edf8f4}
@media(max-width:700px){.nav button{font-size:13px}.scenario-btn span:not(.scenario-emoji){font-size:15px}.scenario-category-bar button{font-size:14px}.week-cardname,.week-meta,.week-pay{font-size:15px}.week-day-picker button{font-size:15px}.section-intro{font-size:16px}}

.google-panel{padding:26px;margin-bottom:18px;border:1px solid #9fc5b6;background:linear-gradient(160deg,#fff 0%,#f5faf7 100%)}
.google-panel .cloud-heading h3{font-size:24px}.google-panel .cloud-intro{max-width:880px;font-size:16px;line-height:1.8}
.google-main{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}.google-main .btn{min-height:48px;font-size:15px}.google-main .btn:first-child{background:#155d54;color:#fff;border-color:#155d54}.google-main .btn:first-child:hover{background:#104c45}
.google-panel .cloud-status{padding:13px 16px;border:1px solid #d0ddd7;background:#f1f6f3;border-radius:10px;font-size:15px;color:#284e47}.google-panel .cloud-status[data-level=error]{background:#fff1f0;color:#982b21;border-color:#ebbbb5}.google-panel .cloud-status[data-level=success]{background:#e7f5eb;color:#175b36;border-color:#add7b9}.google-panel .cloud-status[data-level=dirty]{background:#fff8e5;color:#74521c;border-color:#e5cf9c}
.google-panel .cloud-meta,.google-panel .cloud-privacy{font-size:14px;color:#405d5a;line-height:1.8}
.google-setup{margin-top:18px;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:#fff}.google-setup summary{cursor:pointer;font-size:15px;font-weight:700;color:#294a49}.google-setup p{font-size:14px;line-height:1.8;color:var(--muted)}.google-setup label{display:grid;gap:7px;margin:14px 0;font-size:14px;font-weight:700}.google-setup input{max-width:620px}.google-setup code{overflow-wrap:anywhere}
.legacy-cloud{margin-bottom:18px}.legacy-cloud>summary{padding:13px 16px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--muted);font-size:15px;font-weight:650;cursor:pointer}.legacy-cloud[open]>summary{border-radius:10px 10px 0 0}.legacy-cloud .credit-cloud{margin-top:0;border-radius:0 0 14px 14px}
@media(max-width:700px){.google-panel{padding:18px}.google-main{display:grid;grid-template-columns:1fr 1fr}.google-main .btn:first-child{grid-column:1/-1}.google-main .btn:last-child{grid-column:1/-1}.google-main .btn{font-size:14px;min-width:0}.google-panel .cloud-heading h3{font-size:21px}}

.toolbar{grid-template-columns:1.35fr .8fr .8fr .8fr}
.mode-notice{display:flex;flex-wrap:wrap;align-items:center;gap:5px 9px;margin:10px 0;padding:10px 12px;border:1px solid #d99d45;border-left:4px solid #b66a00;border-radius:9px;background:#fff6df;color:#633b05;font-size:14px;line-height:1.65}.mode-notice b{font-weight:800}.mode-notice span{font-weight:650}
@media(max-width:700px){.toolbar{grid-template-columns:1fr 1fr}.toolbar input{grid-column:1/-1}.nav{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* Compact mobile navigation, direct tag filters and a quieter single-accent palette. */
@media(max-width:700px){
 .nav{display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;gap:7px;padding:7px 2px 9px;margin:0 -2px 14px;scrollbar-width:none}
 .nav::-webkit-scrollbar{display:none}
 .nav button,.nav button[data-tab=scenario]{flex:0 0 auto;min-width:92px;min-height:46px;padding:8px 11px;scroll-snap-align:start;border:1px solid var(--line);border-radius:10px;font-size:13px;line-height:1.25}
 .nav button[data-tab=scenario]{min-width:124px}
 .navico{display:inline-block;width:auto;margin:0 5px 0 0;font-size:14px}
 .section{scroll-margin-top:84px}
 header{margin-bottom:12px}.app{padding-top:12px}
 .brandlogo{width:44px;height:44px}.brandmeta h1{font-size:19px}.by{display:none}
}
.badge{font-size:12px;font-family:inherit;font-weight:600}
.badge.reward,.badge.digital,.badge.travel,.badge.lifestyle,.badge.brand,.badge.done{background:#f0f4f5;border-color:#d2dde1;color:#344b57}
.condition-chip{border:1px solid #c7d3d8;background:#f4f7f8;color:#344b57;border-radius:999px;padding:5px 9px;font-size:13px;line-height:1.4}
.condition-chip.no-calc,.condition-chip.expired{background:#f3f4f5;border-color:#cbd5d9;color:#455963}
.mobile-pay-requirement{grid-column:1/-1;display:flex;flex-direction:column;gap:4px;padding:12px 14px;border:1px solid #e3b772;border-radius:11px;background:#fff7e9;color:#593d17;font-size:14px;line-height:1.65}
.mobile-pay-requirement b{font-size:14px;color:#6e430d}
.drawer .merchant{font-family:inherit}
.detail-week-overview{margin-top:18px;border:1px solid var(--line);border-radius:12px;background:#f7f9fa;overflow:hidden}
.detail-week-overview>summary{padding:13px 15px;cursor:pointer;font-weight:700;color:#314956}
.detail-week-overview[open]>summary{border-bottom:1px solid var(--line);background:#eef3f4}
.detail-week-overview>.weekgrid,.detail-week-overview>.merchant-list,.detail-week-overview>.notice{margin:12px}
.search-hit{outline:3px solid #8baea7;outline-offset:2px;scroll-margin-top:18px}
.drawer .day.hot{background:#edf4f2;border-color:#c3d7d1}.day.hot b{color:#315f58}
.offer{border-left-color:#b9ccc8}.limit>div{border-color:#d5e0e3;background:#f5f8f9}.limit b{color:#28514c}
.rate,.pct,.dealrate,.scenario-money{color:#a43f34}
@media(max-width:700px){.drawer .detail-week-overview .weekgrid{grid-template-columns:1fr 1fr}.detail-week-overview>summary{font-size:15px}}

/* Keep descriptive tags visually consistent; search is performed in the text field. */
.condition-chip,.condition-chip.type,.condition-chip.no-calc,.condition-chip.expired{
 background:#f1f4f5;border-color:#d1dade;color:#354c57;font-size:13px;font-weight:550
}
.merchant{border-radius:999px;color:#354c57;padding:6px 11px;font-size:13px}
.badges .badge{font-size:11px}
.searchbox{padding-right:0;position:sticky}
.searchbox input{padding-right:46px}
#clearMerchantSearch{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:34px;height:34px;border:0;border-radius:50%;background:#eef2f3;color:#435963;font-size:23px;line-height:1;cursor:pointer}
#clearMerchantSearch:hover{background:#e0e9e8;color:#173f3b}
#clearMerchantSearch[hidden]{display:none}
@media(max-width:700px){.condition-chip{font-size:12px;padding:5px 9px}.merchant{font-size:12px;padding:6px 10px}}
