:root{
  color-scheme:light dark;
  --paper:#FBFAF7;--paper-2:#F5F3EE;--surface:#FFFFFF;--surface-2:#F3F1EC;
  --ink:#0B0F16;--muted:#66707F;--line:rgba(11,15,22,.11);--hair:rgba(11,15,22,.07);
  --amber:#C47A2C;--amber-deep:#8E5318;--amber-soft:#F4E6CF;
  --indigo:#334B8E;--indigo-deep:#23366B;--indigo-soft:#E2E7F5;
  --good:#177A5A;--warn:#9B5C18;--danger:#A63B32;
  --shadow-1:0 1px 2px rgba(10,15,25,.04),0 8px 24px rgba(10,15,25,.055);
  --shadow-2:0 1px 2px rgba(10,15,25,.05),0 14px 36px rgba(10,15,25,.09);
  --tab-h:72px;--radius:18px;--ease:cubic-bezier(.2,.9,.3,1);
}
@media(prefers-color-scheme:dark){
  :root{--paper:#0B0F16;--paper-2:#101722;--surface:#121A26;--surface-2:#172130;--ink:#EDF1F6;--muted:#9AA6B7;--line:rgba(255,255,255,.11);--hair:rgba(255,255,255,.07);--amber:#E0A85F;--amber-deep:#F0BF7B;--amber-soft:#2B241B;--indigo:#8FA4E3;--indigo-deep:#B2C1ED;--indigo-soft:#18213A;--good:#5BC49C;--warn:#E4AF69;--danger:#F08B82;--shadow-1:0 1px 0 rgba(255,255,255,.035) inset,0 10px 26px rgba(0,0,0,.2);--shadow-2:0 1px 0 rgba(255,255,255,.05) inset,0 18px 44px rgba(0,0,0,.28)}}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--paper);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Hiragino Sans","Yu Gothic UI","Noto Sans JP",sans-serif;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}body{overscroll-behavior-y:none;background-image:radial-gradient(rgba(80,90,110,.045) .6px,transparent .6px);background-size:4px 4px}.svg-sprite{position:absolute;overflow:hidden}.app-shell{width:min(100%,760px);height:100dvh;margin:0 auto;padding:max(10px,env(safe-area-inset-top)) 10px calc(var(--tab-h) + env(safe-area-inset-bottom) + 8px);display:flex;flex-direction:column;overflow:hidden}.city-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;flex:none}.city-card{appearance:none;text-align:left;color:inherit;border:1px solid var(--line);border-radius:20px;padding:13px 12px 11px;background:var(--surface);box-shadow:var(--shadow-1);min-width:0;position:relative;overflow:hidden;cursor:pointer}.city-card:before{content:"";position:absolute;inset:0 0 auto 0;height:3px;background:currentColor;opacity:.9}.city-card.davis{color:var(--amber-deep);background:linear-gradient(155deg,var(--surface),color-mix(in srgb,var(--amber-soft) 45%,var(--surface)))}.city-card.tokyo{color:var(--indigo-deep);background:linear-gradient(155deg,var(--surface),color-mix(in srgb,var(--indigo-soft) 45%,var(--surface)))}.city-card>*{color:var(--ink)}.city-head{display:flex;align-items:center;gap:8px}.city-mark,.mini-mark{display:grid;place-items:center;border:1px solid currentColor;color:inherit;font-weight:750;letter-spacing:.06em}.city-mark{width:28px;height:28px;border-radius:8px;font-size:11px}.city-card.davis .city-mark,.mini-mark.davis{color:var(--amber-deep)}.city-card.tokyo .city-mark,.mini-mark.tokyo{color:var(--indigo-deep)}.city-head strong{display:block;font-size:15px;line-height:1.1;font-weight:700;letter-spacing:-.01em}.city-head small{display:block;font-size:11px;color:var(--muted);margin-top:3px}.city-clock{display:block;margin-top:10px;font-size:48px;line-height:.95;font-weight:720;letter-spacing:-.035em;font-variant-numeric:tabular-nums}.city-date{font-size:11px;color:var(--muted);margin-top:6px}.current-weather{display:flex;align-items:center;gap:7px;margin-top:11px}.weather-symbol svg,.wx-svg{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.current-weather b{font-size:20px;font-weight:700;letter-spacing:-.02em;font-variant-numeric:tabular-nums}.current-weather span:last-child{font-size:11px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.city-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;margin-top:10px;padding-top:9px;border-top:1px solid var(--hair)}.city-metrics span,.sun-meta span{font-size:11px;color:var(--muted);white-space:nowrap}.city-metrics b,.sun-meta b{color:var(--ink);font-weight:650;font-variant-numeric:tabular-nums}.sun-meta{display:flex;justify-content:space-between;gap:6px;margin-top:8px}.sun-meta span{display:flex;align-items:center;gap:4px}.sun-meta svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.status-row{display:flex;align-items:center;justify-content:space-between;height:38px;padding:0 3px;flex:none}.status-row>span{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}.icon-button,.ghost-btn,.seg button,.periods button,.primary-btn{font:inherit}.icon-button{border:0;background:transparent;color:var(--muted);width:44px;height:36px;border-radius:12px;display:grid;place-items:center}.icon-button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.content{min-height:0;flex:1;position:relative}.panel{height:100%;overflow-y:auto;overscroll-behavior:contain;padding:1px 1px 8px;opacity:0;transform:translateY(4px);transition:opacity 180ms var(--ease),transform 180ms var(--ease)}.panel.active{opacity:1;transform:none}.panel[hidden]{display:none}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:10px;margin:5px 3px 10px}.section-heading b{display:block;font-size:15px;font-weight:720}.section-heading small{display:block;font-size:11px;color:var(--muted);margin-top:3px}.ghost-btn{min-height:44px;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:12px;padding:0 13px;font-size:11px;font-weight:650;box-shadow:0 1px 0 rgba(255,255,255,.04) inset}.data-source{font-size:11px;letter-spacing:.1em;color:var(--muted);font-weight:650}.seg{display:grid;grid-template-columns:1fr 1fr;padding:3px;border-radius:12px;background:var(--surface-2);border:1px solid var(--hair)}.seg button{min-width:64px;height:36px;border:0;border-radius:9px;background:transparent;color:var(--muted);font-size:11px;font-weight:650}.seg button.active{background:var(--surface);color:var(--ink);box-shadow:var(--shadow-1)}
/* time table */
.time-table-shell{border:1px solid var(--line);border-radius:18px;background:var(--surface);overflow:hidden;box-shadow:var(--shadow-1)}.time-table-sticky{position:relative;z-index:3;background:color-mix(in srgb,var(--surface) 94%,transparent);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}.table-cities,.table-cols{display:grid;grid-template-columns:1fr 1fr}.table-cities span{display:flex;align-items:center;gap:6px;padding:10px 11px 6px;font-size:13px;font-weight:700}.table-cities span:last-child{justify-content:flex-end}.mini-mark{display:inline-grid;width:22px;height:18px;border-radius:6px;font-size:11px;font-style:normal}.table-cols span{font-size:11px;color:var(--muted);padding:0 11px 8px}.table-cols span:last-child{text-align:right}.rows-scroll{height:calc(100dvh - 370px);min-height:300px;max-height:610px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;scroll-snap-type:y proximity}.rows-scroll::-webkit-scrollbar{display:none}.hour-row{display:grid;grid-template-columns:1fr 1fr;min-height:48px;border-top:1px solid var(--hair);position:relative;scroll-snap-align:center}.hour-row:first-child{border-top:0}.hour-row.current:after{content:"";position:absolute;left:6px;right:6px;top:50%;height:1px;background:color-mix(in srgb,var(--amber) 52%,var(--indigo));box-shadow:0 0 0 1px color-mix(in srgb,var(--surface) 70%,transparent);pointer-events:none}.hour-side{display:grid;align-items:center;gap:5px;padding:0 10px;position:relative;min-width:0}.hour-side.us{grid-template-columns:54px minmax(78px,1fr) 56px;padding-left:14px}.hour-side.jp{grid-template-columns:56px minmax(78px,1fr) 54px;padding-right:14px;border-left:1px solid var(--hair)}.dayrail{position:absolute;top:0;bottom:0;width:6px;background:var(--rail);box-shadow:0 0 0 .5px rgba(0,0,0,.05) inset}.hour-side.us .dayrail{left:0}.hour-side.jp .dayrail{right:0}.cell-date{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}.jp .cell-date{text-align:right}.cell-time{font-size:20px;font-weight:700;letter-spacing:-.02em;font-variant-numeric:tabular-nums;white-space:nowrap}.us .cell-time{text-align:right}.cell-weather{display:flex;align-items:center;justify-content:center;gap:4px;font-size:11px;min-width:0;white-space:nowrap}.cell-weather svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;color:var(--muted)}.cell-weather b{font-size:13px;font-weight:700;font-variant-numeric:tabular-nums}.cell-weather small{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}.current-tag{display:inline-block;margin-left:3px;border-radius:5px;padding:2px 4px;background:var(--ink);color:var(--paper);font-size:11px;vertical-align:2px}
/* cards */
.weather-hero,.forecast-card,.today-card,.rain-card,.rate-hero,.commentary-card,.rate-chart-card,.compare-card,.transfer-card,.settings-card,.notice-source,.notice-summary,.notice-empty{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-1)}.weather-hero,.rate-hero{padding:17px;margin-bottom:9px}.weather-now{display:flex;align-items:flex-start;justify-content:space-between}.city-label,.eyebrow{font-size:11px;color:var(--muted);font-weight:650;letter-spacing:.04em}.big-temp{font-size:48px;line-height:.98;font-weight:720;letter-spacing:-.035em;margin-top:6px;font-variant-numeric:tabular-nums}.condition{font-size:13px;font-weight:600;margin-top:5px}.wx-big svg{width:42px;height:42px;fill:none;stroke:currentColor;stroke-width:1.35;stroke-linecap:round;stroke-linejoin:round}.weather-facts{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:15px}.weather-facts div,.transfer-grid div{background:var(--surface-2);border-radius:12px;padding:9px 5px;text-align:center}.weather-facts small,.transfer-grid small,.rate-stats small{display:block;font-size:11px;color:var(--muted)}.weather-facts b{display:block;font-size:13px;margin-top:3px}.forecast-card,.today-card,.rain-card,.rate-chart-card,.compare-card,.transfer-card{padding:14px;margin-bottom:9px}.card-title,.chart-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:9px}.card-title b,.chart-head b,.compare-card h3,.transfer-card h3{font-size:13px;font-weight:700;margin:0}.card-title small,.chart-head small{font-size:11px;color:var(--muted)}.week-row{display:grid;grid-template-columns:48px 28px 38px 1fr 38px 42px;align-items:center;gap:5px;min-height:44px;border-top:1px solid var(--hair)}.week-row:first-child{border-top:0}.week-day,.week-low,.week-high,.week-rain{font-size:11px;font-variant-numeric:tabular-nums}.week-day{font-weight:650}.week-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.week-low{color:var(--muted);text-align:right}.week-high{font-weight:700}.week-rain{color:var(--muted);text-align:right}.temp-range{position:relative;height:5px;border-radius:99px;background:var(--surface-2)}.temp-range span{position:absolute;height:5px;border-radius:99px;background:linear-gradient(90deg,var(--indigo),var(--amber));min-width:7px}.hours-scroll{display:flex;gap:7px;overflow-x:auto;padding:1px 1px 5px;scrollbar-width:none}.hours-scroll::-webkit-scrollbar{display:none}.hour-card{flex:0 0 68px;background:var(--surface-2);border:1px solid var(--hair);border-radius:13px;padding:9px 4px;text-align:center}.hour-card.now{border-color:color-mix(in srgb,var(--amber) 55%,var(--indigo));background:var(--surface)}.hour-card small,.hour-card span{display:block;font-size:11px;color:var(--muted)}.hour-card svg{width:21px;height:21px;margin:6px auto;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.hour-card b{display:block;font-size:15px;font-weight:700}.hour-card span{margin-top:4px}.rain-bars{height:92px;display:flex;align-items:end;gap:5px;padding-top:7px}.rain-col{flex:1;min-width:0;text-align:center}.rain-bar-wrap{height:58px;display:flex;align-items:end;justify-content:center}.rain-bar{width:min(18px,72%);min-height:2px;border-radius:5px 5px 2px 2px;background:linear-gradient(180deg,var(--indigo),color-mix(in srgb,var(--indigo) 25%,transparent))}.rain-col small,.rain-col b{display:block;font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}.rain-col b{color:var(--ink);margin-top:2px}
/* rate */
.rate-hero{background:linear-gradient(145deg,var(--surface),color-mix(in srgb,var(--indigo-soft) 35%,var(--surface)))}.rate-main{display:flex;align-items:end;justify-content:space-between;margin-top:4px}.rate-number{font-size:48px;line-height:1;font-weight:720;letter-spacing:-.035em;font-variant-numeric:tabular-nums}.rate-change{text-align:right;font-size:11px;font-weight:650}.good{color:var(--good)!important}.warn{color:var(--warn)!important}.danger{color:var(--danger)!important}.rate-date{font-size:11px;color:var(--muted);margin-top:8px}.commentary-card{padding:15px;margin-bottom:9px;background:linear-gradient(145deg,#172238,#101722);color:#F4F6FA;border-color:rgba(255,255,255,.07);box-shadow:var(--shadow-2)}.commentary-card .kicker{font-size:11px;color:#9DAAC2;letter-spacing:.11em;font-weight:650}.commentary-card h3{font-size:20px;letter-spacing:-.01em;margin:6px 0}.commentary-card p{font-size:11px;line-height:1.65;color:#BCC6D6;margin:0}.position-track{height:5px;border-radius:99px;background:rgba(255,255,255,.14);margin:14px 0 6px;position:relative}.position-track span{position:absolute;top:50%;width:11px;height:11px;border-radius:50%;background:#fff;transform:translate(-50%,-50%);box-shadow:0 0 0 3px rgba(255,255,255,.12)}.position-labels{display:flex;justify-content:space-between;font-size:11px;color:#A7B2C5}.rate-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:13px}.rate-stats div{border-top:1px solid rgba(255,255,255,.12);padding-top:8px}.rate-stats b{display:block;font-size:13px;margin-top:3px;font-variant-numeric:tabular-nums}.rate-chart-wrap{height:190px;position:relative;touch-action:pan-y;user-select:none;-webkit-user-select:none}.rate-chart{display:block;width:100%;height:100%;overflow:visible}.rate-chart .grid{stroke:var(--line);stroke-width:.75}.rate-chart .line{fill:none;stroke:var(--indigo-deep);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}.rate-chart .area{fill:url(#rateArea)}.rate-chart .current-dot{fill:var(--surface);stroke:var(--indigo-deep);stroke-width:2;vector-effect:non-scaling-stroke}.rate-chart .axis-label{fill:var(--muted);font-size:11px}.crosshair{position:absolute;inset:0;pointer-events:none;opacity:0;transition:opacity 100ms}.crosshair.active{opacity:1}.crosshair-line{position:absolute;top:9px;bottom:25px;width:1px;background:color-mix(in srgb,var(--ink) 38%,transparent)}.crosshair-dot{position:absolute;width:9px;height:9px;border-radius:50%;background:var(--surface);border:2px solid var(--indigo-deep);transform:translate(-50%,-50%)}.crosshair-tip{position:absolute;top:7px;transform:translateX(-50%);background:var(--ink);color:var(--paper);border-radius:8px;padding:5px 7px;font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap}.periods{display:grid;grid-template-columns:repeat(4,1fr);gap:3px;background:var(--surface-2);border:1px solid var(--hair);border-radius:12px;padding:3px;margin-bottom:9px}.periods button{height:38px;border:0;background:transparent;border-radius:9px;font-size:11px;font-weight:650;color:var(--muted)}.periods button.active{background:var(--surface);color:var(--ink);box-shadow:var(--shadow-1)}.compare-row{display:grid;grid-template-columns:88px 1fr auto;align-items:center;gap:7px;border-top:1px solid var(--hair);padding:11px 0}.compare-row:first-of-type{border-top:0}.compare-row small{font-size:11px;color:var(--muted)}.compare-row b{font-size:13px;font-variant-numeric:tabular-nums}.compare-row span{font-size:11px;font-weight:650;font-variant-numeric:tabular-nums}.transfer-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.transfer-grid div{text-align:left}.transfer-grid b{display:block;font-size:15px;margin-top:4px;font-variant-numeric:tabular-nums}.settings-card{padding:13px 14px;margin-top:9px}.settings-card summary{font-size:13px;font-weight:700;cursor:pointer;min-height:30px}.settings-card label{display:block;font-size:11px;font-weight:650;margin:11px 0}.settings-card input{width:100%;height:44px;border:1px solid var(--line);border-radius:11px;padding:0 11px;margin-top:5px;background:var(--surface-2);color:var(--ink);font:inherit;font-size:15px}.primary-btn{width:100%;min-height:44px;border:0;border-radius:12px;background:var(--ink);color:var(--paper);font-size:13px;font-weight:700}.fineprint{font-size:11px;line-height:1.55;color:var(--muted);margin:9px 2px 0}
/* notices */
.notice-summary{padding:14px;margin-bottom:9px}.notice-summary-row{display:flex;align-items:center;gap:10px}.notice-status-dot{width:9px;height:9px;border-radius:50%;background:var(--muted);flex:none}.notice-status-dot.ok{background:var(--good)}.notice-status-dot.warn{background:var(--warn)}.notice-summary b{font-size:13px}.notice-summary p{margin:4px 0 0;font-size:11px;color:var(--muted);line-height:1.45}.notice-source{margin-bottom:9px;overflow:hidden}.notice-source-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:12px;background:var(--surface-2);border-bottom:1px solid var(--hair)}.notice-source-head b{font-size:13px}.notice-source-head small{display:block;font-size:11px;color:var(--muted);margin-top:2px}.health-pill{border-radius:99px;padding:4px 7px;font-size:11px;font-weight:650;white-space:nowrap;background:var(--surface);border:1px solid var(--line)}.health-pill.ok{color:var(--good)}.health-pill.warn{color:var(--warn)}.notice-item{display:block;text-decoration:none;color:inherit;padding:12px;border-top:1px solid var(--hair)}.notice-item:first-of-type{border-top:0}.notice-item .badge{display:inline-block;padding:3px 6px;border-radius:6px;background:var(--surface-2);color:var(--muted);font-size:11px;font-weight:650;margin-right:5px}.notice-item .badge.important{background:color-mix(in srgb,var(--amber-soft) 70%,var(--surface));color:var(--amber-deep)}.notice-item .badge.alert{background:color-mix(in srgb,var(--danger) 12%,var(--surface));color:var(--danger)}.notice-item b{display:block;font-size:13px;line-height:1.45;margin-top:5px}.notice-item small{display:block;font-size:11px;color:var(--muted);margin-top:4px}.notice-link{display:flex;justify-content:space-between;align-items:center;text-decoration:none;color:var(--ink);padding:12px;font-size:11px;font-weight:650;border-top:1px solid var(--hair)}.notice-link svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.notice-empty{padding:22px;text-align:center}.notice-empty b{font-size:13px}.notice-empty p{font-size:11px;color:var(--muted);line-height:1.6;margin-bottom:0}
/* bottom nav */
.tabbar{position:fixed;z-index:20;left:50%;bottom:0;transform:translateX(-50%);width:min(100%,760px);height:calc(var(--tab-h) + env(safe-area-inset-bottom));padding:7px 8px env(safe-area-inset-bottom);display:grid;grid-template-columns:repeat(4,1fr);gap:4px;background:color-mix(in srgb,var(--paper) 92%,transparent);backdrop-filter:blur(18px) saturate(1.1);border-top:1px solid var(--line);box-shadow:0 -12px 36px rgba(7,12,20,.055)}.tabbar button{appearance:none;border:0;background:transparent;color:var(--muted);min-height:56px;border-radius:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font:inherit;font-size:11px;font-weight:650}.tabbar button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}.tabbar button.active{color:var(--ink);background:var(--surface);box-shadow:var(--shadow-1)}
/* loading */
.skeleton-block{height:180px;border-radius:18px;background:linear-gradient(100deg,var(--surface-2) 25%,color-mix(in srgb,var(--surface) 85%,var(--surface-2)) 40%,var(--surface-2) 55%);background-size:220% 100%;animation:shimmer 1.4s infinite var(--ease);border:1px solid var(--hair)}.skeleton-block.tall{height:280px}@keyframes shimmer{to{background-position-x:-220%}}
@media(max-width:430px){.app-shell{padding-left:7px;padding-right:7px}.city-card{padding-left:9px;padding-right:9px}.hour-side.us{grid-template-columns:50px minmax(68px,1fr) 51px}.hour-side.jp{grid-template-columns:51px minmax(68px,1fr) 50px}.week-row{grid-template-columns:43px 25px 34px 1fr 34px 38px}.compare-row{grid-template-columns:78px 1fr auto}}
@media(max-width:375px){.city-head strong{font-size:13px}.city-head small,.city-date,.city-metrics span,.sun-meta span{font-size:11px}.current-weather b{font-size:20px}.hour-side{gap:3px;padding-left:8px;padding-right:8px}.hour-side.us{grid-template-columns:45px minmax(62px,1fr) 47px;padding-left:12px}.hour-side.jp{grid-template-columns:47px minmax(62px,1fr) 45px;padding-right:12px}.cell-time{font-size:20px}.cell-weather small{display:none}.table-cols span{font-size:11px;padding-left:8px;padding-right:8px}.rows-scroll{height:calc(100dvh - 358px)}}
@media(min-width:560px){.rows-scroll{height:60dvh}.city-card{padding-left:16px;padding-right:16px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* =========================================================
   v11.1 CLEAR UI — cheerful, obvious, phone-first
   ========================================================= */
:root{
  --paper:#F7FAFC;
  --paper-2:#EEF4F8;
  --surface:#FFFFFF;
  --ink:#121821;
  --muted:#6D7785;
  --line:rgba(20,35,55,.13);
  --hair:rgba(20,35,55,.08);
  --davis:#33A9D6;
  --davis-deep:#0879A8;
  --davis-soft:#E8F8FF;
  --tokyo:#E86A9A;
  --tokyo-deep:#B53868;
  --tokyo-soft:#FFF0F5;
  --action:#1769E0;
  --action-2:#0C8B73;
  --now:#F3B41B;
  --shadow-1:0 2px 5px rgba(25,45,70,.08),0 10px 24px rgba(25,45,70,.08);
  --shadow-2:0 4px 10px rgba(25,45,70,.10),0 18px 38px rgba(25,45,70,.12);
}
@media(prefers-color-scheme:dark){
  :root{
    --paper:#101722;--paper-2:#172130;--surface:#182434;--ink:#F4F7FB;--muted:#A9B4C2;
    --line:rgba(255,255,255,.14);--hair:rgba(255,255,255,.08);
    --davis:#58C4EA;--davis-deep:#8AD9F5;--davis-soft:#153746;
    --tokyo:#F08CB2;--tokyo-deep:#FFB2CE;--tokyo-soft:#432235;
    --action:#4C93F7;--action-2:#35B89F;--now:#F6C84A;
  }
}
html,body{overflow-x:hidden}
body{background-image:none}
.app-shell{padding-top:max(7px,env(safe-area-inset-top));padding-left:8px;padding-right:8px}

/* Top: compact, colorful, clearly separate from content */
.city-grid{gap:8px}
.city-card{
  border-width:2px;border-radius:18px;padding:8px 9px 7px;box-shadow:var(--shadow-2);
  min-height:0;
}
.city-card:before{height:5px;opacity:1}
.city-card.davis{color:var(--davis-deep);border-color:color-mix(in srgb,var(--davis) 45%,transparent);background:var(--davis-soft)}
.city-card.tokyo{color:var(--tokyo-deep);border-color:color-mix(in srgb,var(--tokyo) 45%,transparent);background:var(--tokyo-soft)}
.city-head{gap:7px;min-height:27px}
.city-mark.flag{width:31px;height:25px;border:0;background:rgba(255,255,255,.72);border-radius:8px;font-size:20px;line-height:1;box-shadow:0 1px 4px rgba(0,0,0,.08)}
.city-head strong{font-size:15px;font-weight:800;line-height:1.05}
.city-head small{font-size:11px;margin-top:1px;font-weight:650}
.city-clock{margin-top:4px;font-size:38px;line-height:.92;font-weight:780;letter-spacing:-.03em}
.city-date{margin-top:3px;font-size:11px;font-weight:650}
.current-weather{margin-top:5px;gap:5px;min-height:23px}
.weather-symbol svg{width:19px;height:19px;stroke-width:1.8}
.current-weather b{font-size:20px;font-weight:800}
.current-weather span:last-child{font-size:11px;font-weight:650}
.city-metrics{margin-top:5px;padding-top:5px;gap:2px}
.city-metrics span,.sun-meta span{font-size:11px}
.city-metrics span{display:flex;flex-direction:column;gap:0}
.city-metrics b{font-size:13px;font-weight:800}
.sun-meta{margin-top:4px}
.sun-meta svg{width:12px;height:12px}
.sun-meta b{font-size:11px;font-weight:750}

/* Status and actions must look tappable */
.status-row{height:46px;padding:4px 2px 3px}
.status-row>span{font-size:11px;font-weight:650;color:var(--muted)}
.icon-button.refresh-button{
  width:auto;height:38px;min-width:86px;padding:0 14px;border:1px solid color-mix(in srgb,var(--action-2) 70%,transparent);
  background:var(--action-2);color:#fff;border-radius:13px;display:flex;gap:7px;align-items:center;justify-content:center;
  box-shadow:0 4px 12px color-mix(in srgb,var(--action-2) 24%,transparent);font-weight:800;
}
.icon-button.refresh-button svg{width:17px;height:17px}.icon-button.refresh-button span{font-size:13px}
.section-heading{align-items:center;margin:6px 3px 9px}
.section-heading b{font-size:20px;font-weight:820;letter-spacing:-.02em}
.section-heading small{font-size:11px;font-weight:650}
.ghost-btn{
  min-height:42px;border:1px solid color-mix(in srgb,var(--action) 60%,transparent);background:var(--action);color:#fff;
  border-radius:13px;padding:0 16px;font-size:13px;font-weight:800;box-shadow:0 5px 14px color-mix(in srgb,var(--action) 22%,transparent)
}
.ghost-btn:active,.icon-button.refresh-button:active{transform:translateY(1px);filter:brightness(.96)}

/* Time table: fixed to phone width, no horizontal movement */
.time-table-shell{width:100%;max-width:100%;border:2px solid var(--line);border-radius:18px;box-shadow:var(--shadow-2);overflow:hidden;background:var(--surface)}
.time-table-sticky{background:var(--surface);backdrop-filter:none}
.table-cities{background:linear-gradient(90deg,var(--davis-soft) 0 50%,var(--tokyo-soft) 50% 100%)}
.table-cities span{padding:8px 9px 6px;font-size:13px;font-weight:800}
.mini-mark.flag-mark{width:24px;height:20px;border:0;background:rgba(255,255,255,.75);font-size:15px;line-height:1}
.table-cols span{font-size:11px;font-weight:650;padding:0 8px 7px}
.rows-scroll{width:100%;max-width:100%;overflow-y:auto!important;overflow-x:hidden!important;height:calc(100dvh - 330px);min-height:300px}
.rows{width:100%;max-width:100%;overflow:hidden}
.hour-row{width:100%;max-width:100%;grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-height:52px;overflow:hidden}
.hour-side{min-width:0;max-width:100%;gap:2px;padding-top:0;padding-bottom:0;overflow:hidden}
.hour-side.us{grid-template-columns:46px minmax(60px,1fr) 51px;padding-left:8px;padding-right:4px}
.hour-side.jp{grid-template-columns:51px minmax(60px,1fr) 46px;padding-left:4px;padding-right:8px}
.dayrail{width:7px}
.cell-date{font-size:11px;line-height:1.15;white-space:normal;overflow:hidden}
.cell-time{font-size:20px;font-weight:820;letter-spacing:-.025em;overflow:hidden}
.cell-weather{gap:2px;font-size:11px;overflow:hidden}
.cell-weather svg{width:16px;height:16px;flex:none}
.cell-weather b{font-size:13px;font-weight:800}
.cell-weather small{font-size:11px}
/* Current row: highlight, never draw a strike-through line */
.hour-row.current:after{display:none!important}
.hour-row.current{background:color-mix(in srgb,var(--now) 16%,var(--surface));box-shadow:inset 0 0 0 2px var(--now);z-index:1}
.hour-row.current .cell-time{color:#B56A00}
@media(prefers-color-scheme:dark){.hour-row.current .cell-time{color:#FFD76D}}
.hour-row.current .dayrail{box-shadow:0 0 0 1px var(--now) inset,0 0 10px color-mix(in srgb,var(--now) 55%,transparent)}

/* Bottom tab: selected tab is obvious and colorful */
.tabbar{background:color-mix(in srgb,var(--surface) 95%,transparent);border-top:2px solid var(--line);box-shadow:0 -8px 28px rgba(20,35,55,.13);padding-top:6px}
.tabbar button{font-size:11px;font-weight:800;border:1px solid transparent;transition:background 120ms ease,color 120ms ease,transform 120ms ease}
.tabbar button svg{width:22px;height:22px;stroke-width:1.8}
.tabbar button.active{background:#E9F4FF;color:#1769E0;border-color:#BBD7FA;box-shadow:0 3px 10px rgba(23,105,224,.13)}
.tabbar button:nth-child(2).active{background:#E8FAFF;color:#0783AE;border-color:#B4E5F4}
.tabbar button:nth-child(3).active{background:#EAF8F1;color:#137A59;border-color:#BDE5D3}
.tabbar button:nth-child(4).active{background:#FFF0F5;color:#B53868;border-color:#F3C5D6}
@media(prefers-color-scheme:dark){
  .tabbar button.active{background:#17345A;color:#93C2FF;border-color:#295A91}
  .tabbar button:nth-child(2).active{background:#123642;color:#7DD9F4;border-color:#245D6D}
  .tabbar button:nth-child(3).active{background:#16392F;color:#7AD1AE;border-color:#285C4D}
  .tabbar button:nth-child(4).active{background:#452338;color:#FFB2CE;border-color:#6C3654}
}

@media(max-width:430px){
  .app-shell{padding-left:6px;padding-right:6px}
  .city-card{padding-left:8px;padding-right:8px}
  .hour-side.us{grid-template-columns:44px minmax(56px,1fr) 49px;padding-left:8px;padding-right:3px}
  .hour-side.jp{grid-template-columns:49px minmax(56px,1fr) 44px;padding-left:3px;padding-right:8px}
}
@media(max-width:375px){
  .city-clock{font-size:34px}.city-head strong{font-size:13px}.current-weather b{font-size:18px}
  .city-metrics span,.sun-meta span,.city-date,.city-head small{font-size:11px}
  .hour-side.us{grid-template-columns:41px minmax(52px,1fr) 46px;padding-left:8px;padding-right:2px}
  .hour-side.jp{grid-template-columns:46px minmax(52px,1fr) 41px;padding-left:2px;padding-right:8px}
  .cell-time{font-size:18px}.cell-weather small{display:none}.table-cols span{padding-left:6px;padding-right:6px}
  .rows-scroll{height:calc(100dvh - 314px)}
}


/* =========================================================
   v11.2 MOBILE FIT — remove redundant controls, lift timetable,
   guarantee two-city rows fit within phone width
   ========================================================= */

/* The app refreshes automatically. Keep these nodes in DOM for JS,
   but remove them from the visual layout. */
.status-row{display:none!important}
#panel-time>.section-heading{display:none!important}

/* Pull timetable directly under the city cards. */
.content{margin-top:7px}
#panel-time{padding-top:0}
#panel-time .time-table-shell{margin-top:0}

/* Allocate more vertical space to the actual timetable. */
.rows-scroll{
  height:calc(100dvh - 252px)!important;
  min-height:360px;
  max-height:none;
  overflow-x:hidden!important;
  touch-action:pan-y;
}

/* Hard containment: neither city half may push the other half sideways. */
.hour-row{
  grid-template-columns:minmax(0,50%) minmax(0,50%)!important;
  width:100%!important;
  min-width:0!important;
}
.hour-side{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  overflow:hidden!important;
}

/* Phone-first column allocation.
   Time gets a guaranteed width so HH:MM can never clip at center. */
.hour-side.us{
  grid-template-columns:minmax(38px,42px) minmax(0,1fr) 62px!important;
  gap:2px!important;
  padding-left:9px!important;
  padding-right:3px!important;
}
.hour-side.jp{
  grid-template-columns:62px minmax(0,1fr) minmax(38px,42px)!important;
  gap:2px!important;
  padding-left:3px!important;
  padding-right:9px!important;
}
.cell-time{
  width:62px;
  min-width:62px;
  max-width:62px;
  font-size:18px!important;
  line-height:1;
  font-weight:820;
  letter-spacing:-.04em!important;
  overflow:visible!important;
  text-overflow:clip;
}
.us .cell-time{text-align:right}
.jp .cell-time{text-align:left}
.cell-date{
  min-width:0;
  font-size:11px!important;
  line-height:1.12;
  overflow:hidden!important;
  text-overflow:clip;
  white-space:normal!important;
}
.cell-weather{
  min-width:0!important;
  width:100%;
  gap:2px!important;
  justify-content:center;
  overflow:hidden!important;
}
.cell-weather svg{
  width:15px!important;
  height:15px!important;
}
.cell-weather b{
  font-size:13px!important;
  letter-spacing:-.02em;
  flex:none;
}
.cell-weather small{
  font-size:11px!important;
  flex:none;
}

/* Current row is a block highlight only; no line through text. */
.hour-row.current:after{display:none!important}
.hour-row.current{
  background:color-mix(in srgb,var(--now) 14%,var(--surface))!important;
  box-shadow:inset 0 0 0 2px var(--now)!important;
}

/* On normal iPhones, precipitation percentage in each hourly cell is
   secondary information; hiding it frees enough room for stable HH:MM. */
@media(max-width:430px){
  .cell-weather small{display:none!important}
  .table-cities span{padding-top:7px;padding-bottom:5px}
  .table-cols span{padding-bottom:6px}
  .rows-scroll{height:calc(100dvh - 244px)!important}
}

/* Narrow iPhones: shrink only the non-time columns, never HH:MM. */
@media(max-width:375px){
  .hour-side.us{
    grid-template-columns:34px minmax(0,1fr) 58px!important;
    padding-left:8px!important;
    padding-right:2px!important;
  }
  .hour-side.jp{
    grid-template-columns:58px minmax(0,1fr) 34px!important;
    padding-left:2px!important;
    padding-right:8px!important;
  }
  .cell-time{
    width:58px;
    min-width:58px;
    max-width:58px;
    font-size:17px!important;
  }
  .cell-weather svg{width:14px!important;height:14px!important}
  .cell-weather b{font-size:12px!important}
  .rows-scroll{height:calc(100dvh - 238px)!important}
}

/* v12 app layout: fixed frame, compact persistent clocks, internal scrolling */
html,body{height:100%;overflow:hidden}.app-shell{height:100dvh;max-height:100dvh;display:grid;grid-template-rows:auto 1fr auto;overflow:hidden}.city-grid{padding:8px 10px 6px;gap:8px}.city-card{min-height:0!important;height:126px!important;padding:10px 12px!important;border-radius:20px!important}.city-head{display:grid!important;grid-template-columns:auto 1fr auto!important;align-items:center!important;gap:7px!important}.city-head strong{font-size:17px!important;white-space:nowrap}.city-head small{display:none!important}.city-date{margin:0!important;font-size:13px!important;font-weight:800!important;justify-self:end}.city-clock{font-size:42px!important;line-height:1!important;margin:5px 0 3px!important;letter-spacing:-2px}.current-weather{margin:0!important;gap:6px!important;font-size:14px!important}.current-weather b{font-size:22px!important}.current-weather .weather-symbol svg{width:23px!important;height:23px!important}.hidden-summary,.status-row{display:none!important}.content{min-height:0!important;height:auto!important;overflow:hidden!important;margin:0!important;padding:0 10px 8px!important}.panel{height:100%!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:6px 0 12px!important}.tabbar{position:relative!important;bottom:auto!important;height:76px!important;padding:7px 8px calc(7px + env(safe-area-inset-bottom))!important;gap:7px!important;background:rgba(255,255,255,.96)!important}.tabbar button{border:1px solid var(--line)!important;border-radius:16px!important;background:#fff!important;box-shadow:0 4px 14px rgba(15,30,50,.07)!important;font-size:12px!important;font-weight:850!important}.tabbar button svg{width:24px!important;height:24px!important}.tabbar button:nth-child(1){color:#526273}.tabbar button:nth-child(2){color:#e56b13}.tabbar button:nth-child(3){color:#0a8f70}.tabbar button:nth-child(4){color:#7047c8}.tabbar button.active{transform:translateY(-2px);box-shadow:0 8px 18px rgba(15,30,50,.13)!important}.tabbar button:nth-child(1).active{background:#eef4fb!important}.tabbar button:nth-child(2).active{background:#fff3e8!important}.tabbar button:nth-child(3).active{background:#e8f8f2!important}.tabbar button:nth-child(4).active{background:#f2ecff!important}.weather-switch{display:grid!important;grid-template-columns:1fr 1fr;gap:6px;margin:0 0 7px!important;padding:4px!important;border-radius:16px;background:#eef1f4}.weather-switch button{height:42px;border:0;border-radius:12px;font-weight:850;font-size:14px;background:transparent}.weather-switch button.active[data-city=davis]{background:#dff4ff;color:#126f9d;box-shadow:0 2px 8px #9fdcf077}.weather-switch button.active[data-city=tokyo]{background:#ffe7f0;color:#a52e61;box-shadow:0 2px 8px #f1abc777}.weather-hero.compact{padding:12px!important;margin-bottom:8px!important}.weather-now{min-height:0!important}.big-temp{font-size:46px!important;line-height:1!important}.hero-emoji{font-size:34px;vertical-align:5px}.weather-facts.six{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:6px!important;margin-top:9px!important}.weather-facts.six>div{padding:7px!important;background:var(--surface-2);border-radius:10px}.weather-facts.six small{display:block}.weather-facts.six b{font-size:15px!important}.compact-card,.compact-rain{padding:11px!important;margin:8px 0!important}.days-scroll,.hours-scroll{display:flex;gap:8px;overflow-x:auto;padding:3px 1px 7px;scroll-snap-type:x proximity;scrollbar-width:none}.days-scroll::-webkit-scrollbar,.hours-scroll::-webkit-scrollbar{display:none}.day-card,.compact-hours .hour-card{flex:0 0 86px!important;min-width:86px!important;height:100px!important;border-radius:15px!important;padding:8px 6px!important;display:flex!important;flex-direction:column;align-items:center;justify-content:space-between;scroll-snap-align:start;background:var(--surface-2);border:1px solid var(--line)}.day-card.now,.compact-hours .hour-card.now{background:#eef8ff;border-color:#9edcf4}.emoji-wx{font-size:25px;line-height:1}.day-temps{display:flex;gap:5px;align-items:baseline}.day-temps b{font-size:18px}.day-temps span{font-size:13px;color:var(--muted)}.day-card em{font-size:11px;color:var(--muted);font-style:normal}.sat{color:#2875d4!important}.sun{color:#d74848!important}.compact-hours .hour-card b{font-size:18px!important}.compact-hours .hour-card span:last-child{font-size:11px!important}.compact-rain .rain-bars{height:78px!important;align-items:end!important}.compact-rain .rain-bar-wrap{height:36px!important}.compact-rain .rain-col{gap:2px!important}.compact-rain .rain-col b{font-size:12px!important}.app-rate{padding:14px!important;margin-bottom:8px!important}.rate-topline{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}.rate-topline>span{font-size:11px;color:var(--muted);text-align:right}.rate-main{align-items:end!important}.rate-number{font-size:56px!important;line-height:1!important}.rate-change small{display:block;font-size:10px;margin-top:3px}.meaning-card,.scenario-card,.range-card,.rate-chart-card.light{background:var(--surface)!important;color:var(--ink)!important;border:1px solid var(--line)!important;border-radius:18px!important;padding:13px!important;margin:8px 0!important;box-shadow:var(--shadow-1)!important}.meaning-head{display:flex;justify-content:space-between;align-items:center;gap:8px}.meaning-head small{color:var(--muted)}.meaning-head h3{margin:2px 0 0;font-size:18px}.trend-pill{padding:6px 9px;border-radius:999px;background:#eef2f5;font-size:11px;font-weight:850;white-space:nowrap}.trend-pill.good{background:#e4f6ef;color:var(--good)}.trend-pill.warn{background:#fff1df;color:var(--warn)}.meaning-card p{font-size:13px;line-height:1.65;margin:9px 0}.quick-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.quick-stats>div{background:var(--surface-2);border-radius:11px;padding:8px;min-width:0}.quick-stats small,.quick-stats em{display:block;font-size:10px;color:var(--muted);font-style:normal}.quick-stats b{display:block;font-size:13px;margin:2px 0;white-space:nowrap}.scenario-scale{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-top:8px}.scenario-item{padding:7px 3px;border-radius:11px;background:var(--surface-2);text-align:center;min-width:0}.scenario-item.current{background:#e7f7f1;outline:2px solid #75cdb1}.scenario-item span{display:block;height:13px;font-size:9px;color:var(--good);font-weight:900}.scenario-item b,.scenario-item strong,.scenario-item small{display:block}.scenario-item b{font-size:13px}.scenario-item strong{font-size:14px;margin:3px 0}.scenario-item small{font-size:9px;color:var(--muted)}.scenario-note{font-size:10px!important;color:var(--muted);margin:7px 0 0!important}.rate-chart-card.light .chart-head{margin-bottom:5px}.rate-chart-card.light .chart-head small{display:block;color:var(--muted);font-size:10px}.periods.inline{margin:5px 0 7px!important}.periods.inline button{height:30px!important;border-radius:9px!important}.range-labels{display:grid;grid-template-columns:repeat(3,1fr);margin-top:8px}.range-labels span:nth-child(2){text-align:center}.range-labels span:last-child{text-align:right}.range-labels small,.range-labels b{display:block}.range-labels small{font-size:10px;color:var(--muted)}.range-labels b{font-size:14px}.position-track.friendly{margin-top:8px;background:linear-gradient(90deg,#86b7ff,#f1e3a4,#f39bb4)!important}.settings-card{margin-bottom:10px!important}.section-heading{margin:0 0 6px!important}.time-table-shell{height:100%!important}.rows-scroll{height:calc(100% - 58px)!important;max-height:none!important}
@media(max-width:375px){.city-card{height:118px!important;padding:8px 9px!important}.city-clock{font-size:38px!important}.city-head strong{font-size:15px!important}.city-date{font-size:11px!important}.tabbar{height:70px!important}.tabbar button{font-size:11px!important}.day-card,.compact-hours .hour-card{flex-basis:80px!important;min-width:80px!important}.rate-number{font-size:50px!important}}


/* v12.1 mobile frame: clocks + navigation stay visible; content owns all remaining height */
.app-shell{grid-template-rows:auto auto minmax(0,1fr)!important;padding-bottom:max(5px,env(safe-area-inset-bottom))!important}
.city-grid{padding-bottom:4px!important}
.tabbar{order:0!important;height:64px!important;padding:4px 8px 5px!important;border-top:0!important;border-bottom:1px solid var(--line)!important;box-shadow:0 7px 18px rgba(20,35,55,.08)!important}
.tabbar button{height:54px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:2px!important}
.tabbar button svg{width:21px!important;height:21px!important}.tabbar button span{line-height:1.05}
.content{min-height:0!important;height:100%!important;padding:6px 10px 4px!important;overflow:hidden!important}
.panel{height:100%!important;max-height:100%!important;padding:0 0 6px!important;overflow-y:auto!important}
.time-table-shell{height:100%!important;display:flex!important;flex-direction:column!important}.time-table-sticky{flex:0 0 auto}.rows-scroll{flex:1 1 auto!important;height:auto!important;min-height:0!important}
/* Make the two simultaneous times visually separate at the center. */
.hour-row{position:relative}.hour-row:before{content:"";position:absolute;z-index:3;left:50%;top:8px;bottom:8px;width:1px;background:rgba(75,92,115,.24);pointer-events:none}.hour-side.us{padding-right:9px!important}.hour-side.jp{padding-left:9px!important}.us .cell-time{padding-right:3px}.jp .cell-time{padding-left:3px}
/* Weather: dense current conditions; distinct forecast families. */
.weather-hero.compact{padding:9px 11px!important}.weather-now.dense{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(150px,.92fr)!important;align-items:center!important;gap:10px!important}.big-temp{font-size:44px!important}.weather-facts.side{display:grid!important;grid-template-columns:1fr 1fr!important;gap:5px!important;margin:0!important}.weather-facts.side>div{padding:6px 7px!important;background:var(--surface-2);border-radius:10px;min-width:0}.weather-facts.side>div:first-child,.weather-facts.side>div:last-child{grid-column:1/-1}.weather-facts.side small{display:block;font-size:9px;color:var(--muted)}.weather-facts.side b{display:block;font-size:13px;white-space:nowrap}.weekly-card{background:#eaf8ef!important;border:1px solid #b9e2c7!important}.hourly-card{background:#fff0f5!important;border:1px solid #f3c2d3!important}.weekly-card .day-card{background:rgba(255,255,255,.78)!important}.hourly-card .hour-card{background:rgba(255,255,255,.8)!important}.weekly-card .day-card.now{background:#d8f1e1!important;border-color:#72bd8b!important}.hourly-card .hour-card.now{background:#ffe0eb!important;border-color:#e993b2!important}.compact-card{border-radius:18px!important}.day-card,.compact-hours .hour-card{height:94px!important;flex-basis:82px!important;min-width:82px!important}.compact-rain .rain-bars{height:66px!important}.compact-rain .rain-bar-wrap{height:29px!important}
/* Rate commentary should read like market context, not a review score. */
.meaning-head h3{font-size:19px!important}.meaning-head small{font-weight:800!important;color:var(--muted)!important}
@media(max-width:390px){.city-card{height:112px!important}.city-clock{font-size:36px!important}.tabbar{height:60px!important}.tabbar button{height:50px!important}.weather-now.dense{grid-template-columns:minmax(0,1fr) minmax(136px,.9fr)!important}.big-temp{font-size:40px!important}.weather-facts.side b{font-size:12px!important}.hour-side.us{padding-right:8px!important}.hour-side.jp{padding-left:8px!important}}
@media(prefers-color-scheme:dark){.weekly-card{background:#173326!important;border-color:#2e6244!important}.hourly-card{background:#3b2230!important;border-color:#6c3952!important}.weekly-card .day-card,.hourly-card .hour-card{background:rgba(255,255,255,.06)!important}}


/* v12.2 visual refinement: white canvas, stronger pastel separation, lighter numerals */
:root{--paper:#fff!important;--surface:#fff!important;--surface-2:#f6f8fb!important;--line:#dbe3ec!important;--hair:#e8edf3!important}
html,body{background:#fff!important;background-image:none!important}
.app-shell{grid-template-rows:auto auto minmax(0,1fr)!important;padding-bottom:0!important;background:#fff!important}
.city-grid{padding:7px 10px 5px!important}
.city-card{height:118px!important;padding:9px 11px!important;border-width:1.5px!important}
.city-card.davis{background:#d9f3ff!important;border-color:#91d8f4!important;color:#16769e!important}
.city-card.tokyo{background:#ffe0eb!important;border-color:#f3a9c2!important;color:#a83261!important}
.city-head{grid-template-columns:auto 1fr auto!important}.city-head strong{font-size:16px!important}
.city-clock{text-align:center!important;font-size:40px!important;font-weight:520!important;letter-spacing:-.045em!important;font-variant-numeric:tabular-nums!important}
.current-weather{justify-content:center!important;text-align:center!important}.current-weather b{font-weight:560!important}.top-wx{font-size:22px!important;line-height:1!important}
.city-date{font-weight:700!important}
.tabbar{height:64px!important;padding:5px 10px!important;display:grid!important;grid-template-columns:repeat(4,1fr)!important;border-top:0!important;border-bottom:1px solid #dbe3ec!important;box-shadow:none!important;background:#fff!important}
.tabbar button{height:52px!important;border-width:1.5px!important;border-radius:14px!important;box-shadow:0 2px 8px rgba(25,45,70,.07)!important}.tabbar button.active{transform:none!important;box-shadow:0 3px 10px rgba(25,45,70,.12)!important}
.content{padding:5px 10px max(7px,env(safe-area-inset-bottom))!important}
.panel{padding:0 0 8px!important}
.rows-scroll{height:100%!important;min-height:0!important}.time-table-shell{height:100%!important;display:flex!important;flex-direction:column!important}.time-table-sticky{flex:none}.rows-scroll{flex:1!important}
.cell-time{font-weight:540!important;letter-spacing:-.025em!important}.cell-weather b{font-weight:560!important}.table-wx{font-size:16px;line-height:1;flex:none}
.hour-side.jp{border-left:0!important}.hour-row:after{content:"";position:absolute;top:5px;bottom:5px;left:50%;width:1px;background:#b9c7d6;pointer-events:none}.hour-side.us{padding-right:7px!important}.hour-side.jp{padding-left:7px!important}
.weather-switch{margin:0 0 5px!important;padding:3px!important;border:1px solid #d6dee8!important;background:#f2f5f8!important}.weather-switch button{height:36px!important}
.weather-hero.compact{padding:9px!important;margin-bottom:6px!important;border-color:#cbd8e5!important}.weather-now.dense{display:grid!important;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)!important;gap:9px!important;align-items:center!important}.weather-primary{text-align:center!important}.big-temp{font-size:43px!important;font-weight:520!important;letter-spacing:-.045em!important;margin-top:2px!important}.condition{margin-top:2px!important}.hero-emoji{font-size:30px!important}
.weather-facts.six{grid-template-columns:repeat(2,1fr)!important;gap:5px!important;margin:0!important}.weather-facts.six>div{padding:5px 4px!important;border:1px solid #dce4ec!important;background:#f7f9fb!important;border-radius:9px!important;text-align:center}.weather-facts.six small{font-size:10px!important}.weather-facts.six b{font-size:13px!important;font-weight:600!important;margin-top:1px!important;font-variant-numeric:tabular-nums}
.compact-card{padding:9px!important;margin:6px 0!important}.card-title{margin-bottom:5px!important}.weekly-card{background:#e5f7e9!important;border-color:#9bd6a8!important}.hourly-card{background:#ffe8ef!important;border-color:#f2a9c0!important}.weekly-card .day-card{background:#f7fff8!important;border-color:#b9dfc1!important}.hourly-card .hour-card{background:#fff8fa!important;border-color:#efbfd0!important}
.days-scroll,.hours-scroll{gap:7px!important;padding:2px 1px 4px!important}.day-card,.compact-hours .hour-card{height:94px!important;flex-basis:82px!important;min-width:82px!important;padding:7px 5px!important}.week-start{margin-left:15px!important;position:relative}.week-start:before{content:"";position:absolute;left:-12px;top:5px;bottom:5px;width:2px;border-radius:2px;background:#62a876}
.emoji-wx{filter:saturate(1.12)}
.rate-number{font-weight:520!important;letter-spacing:-.045em!important}.quick-stats b,.scenario-item strong,.range-labels b{font-weight:560!important;font-variant-numeric:tabular-nums}
@media(max-width:390px){.city-card{height:112px!important}.city-clock{font-size:37px!important}.tabbar{height:60px!important}.tabbar button{height:48px!important;font-size:11px!important}.weather-now.dense{grid-template-columns:.86fr 1.14fr!important}.big-temp{font-size:40px!important}.weather-facts.six>div{padding:4px 3px!important}.day-card,.compact-hours .hour-card{height:90px!important;flex-basis:78px!important;min-width:78px!important}}

/* v12.3 polish: desktop light safety, compact header/weather, stronger rate sections */
html,body,.app-shell{background:#fff!important;color:#10151d!important;color-scheme:light!important}
@media (prefers-color-scheme:dark){html,body,.app-shell{background:#fff!important;color:#10151d!important}.panel,.content{color:#10151d!important}}
.city-card,.city-card *,.tabbar button,.panel,.panel *{text-shadow:none}
.city-card{height:122px!important;padding:9px 12px 8px!important}
.city-head{grid-template-columns:auto minmax(0,1fr) auto!important;gap:6px!important}
.city-head strong{font-size:17px!important;line-height:1!important}
.city-date{font-size:12px!important;line-height:1!important;white-space:nowrap!important;margin:0!important}
.city-mark{border:0!important;background:transparent!important;box-shadow:none!important;width:auto!important;height:auto!important;border-radius:0!important;font-size:24px!important;line-height:1!important}
.city-clock{text-align:center!important;font-size:42px!important;font-weight:480!important;line-height:.98!important;margin:7px 0 6px!important;letter-spacing:-.045em!important;font-variant-numeric:tabular-nums!important}
.current-weather{justify-content:center!important;margin:0!important;gap:7px!important;line-height:1!important}.current-weather b{font-size:21px!important}.current-weather span:last-child{font-size:11px!important}
.weather-switch{margin-bottom:5px!important;padding:3px!important}.weather-switch button{height:36px!important}
.weather-hero.compact{padding:7px 10px!important;margin-bottom:5px!important}
.weather-now.dense{grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr)!important;gap:9px!important}
.weather-primary{padding:1px 0!important}.city-label{font-size:11px!important}.big-temp{font-size:41px!important}.hero-emoji{font-size:27px!important}.condition{font-size:12px!important}
.weather-facts.six{display:grid!important;grid-template-columns:1fr 1fr!important;gap:0 12px!important;margin:0!important;border-top:1px solid #d7e0e8!important;border-bottom:1px solid #d7e0e8!important}
.weather-facts.six>div{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:5px!important;padding:5px 2px!important;background:transparent!important;border:0!important;border-bottom:1px solid #e5ebf0!important;border-radius:0!important;text-align:left!important;min-width:0!important}
.weather-facts.six>div:nth-last-child(-n+2){border-bottom:0!important}.weather-facts.six small{font-size:9px!important;white-space:nowrap}.weather-facts.six b{font-size:12px!important;white-space:nowrap}
.compact-card{padding:8px!important;margin:5px 0!important}.card-title{margin-bottom:4px!important}.day-card,.compact-hours .hour-card{height:90px!important}
.meaning-card{border:2px solid #8fc7ed!important}.scenario-card{border:2px solid #e6bd78!important}.rate-chart-card.light{border:2px solid #8fb4ef!important}.range-card{border:2px solid #91d3bd!important}.rate-hero.app-rate{border:2px solid #8fd1bc!important}
.meaning-card,.scenario-card,.rate-chart-card.light,.range-card,.rate-hero.app-rate{box-shadow:0 5px 14px rgba(30,50,75,.07)!important}
@media(min-width:761px){body,.app-shell,.content,.panel{background:#fff!important;color:#10151d!important}.city-card,.weather-hero,.forecast-card,.today-card,.rain-card,.rate-hero,.meaning-card,.scenario-card,.range-card,.rate-chart-card,.time-table-shell{color:#10151d!important}.muted,small,.fineprint{color:#657284!important}}
@media(max-width:390px){.city-card{height:118px!important}.city-clock{font-size:39px!important;margin-top:6px!important;margin-bottom:5px!important}.city-date{font-size:11px!important}.city-mark{font-size:22px!important}.weather-switch button{height:34px!important}.weather-hero.compact{padding:6px 8px!important}.big-temp{font-size:39px!important}.weather-facts.six>div{padding:4px 1px!important}.day-card,.compact-hours .hour-card{height:88px!important}}


/* v12.4: compact non-overlapping header, remove redundant table labels, desktop light hardening */
:root{
  --paper:#fff!important;--paper-2:#fff!important;--surface:#fff!important;--surface-2:#f6f8fb!important;
  --ink:#10151d!important;--muted:#657284!important;--line:#dbe3ec!important;--hair:#e8edf3!important;
}
html,body,.app-shell,.content,.panel{background:#fff!important;color:#10151d!important;-webkit-text-fill-color:initial!important;color-scheme:light!important}
@media (prefers-color-scheme:dark){
  :root{--paper:#fff!important;--paper-2:#fff!important;--surface:#fff!important;--surface-2:#f6f8fb!important;--ink:#10151d!important;--muted:#657284!important;--line:#dbe3ec!important;--hair:#e8edf3!important}
  html,body,.app-shell,.content,.panel{background:#fff!important;color:#10151d!important;-webkit-text-fill-color:initial!important}
  .weekly-card{background:#e5f7e9!important;border-color:#9bd6a8!important}.hourly-card{background:#ffe8ef!important;border-color:#f2a9c0!important}
  .weekly-card .day-card{background:#f7fff8!important;color:#10151d!important}.hourly-card .hour-card{background:#fff8fa!important;color:#10151d!important}
}
.city-head{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;align-items:center!important;column-gap:4px!important;width:100%!important}
.city-head strong{min-width:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:clip!important}
.city-date{justify-self:end!important;white-space:nowrap!important;font-variant-numeric:tabular-nums!important}
.time-table-sticky{border-bottom:1px solid var(--line)!important}
.table-cols{display:none!important}
.rows-scroll{height:calc(100% - 36px)!important}
.rate-topline{align-items:center!important}.rate-topline .eyebrow{font-size:12px!important;font-weight:800!important;letter-spacing:.04em!important}.rate-topline>span{font-size:10px!important}
@media(max-width:430px){
  .city-card{padding-left:9px!important;padding-right:9px!important}
  .city-head{column-gap:3px!important}
  .city-mark{font-size:20px!important}
  .city-head strong{font-size:15px!important;letter-spacing:-.025em!important}
  .city-date{font-size:10px!important;letter-spacing:-.02em!important}
}
@media(max-width:375px){
  .city-head strong{font-size:14px!important}.city-date{font-size:9.5px!important}.city-mark{font-size:19px!important}
}
@media(min-width:761px){
  body,body *{color:inherit}
  .city-card,.city-card *,.tabbar button,.time-table-shell,.time-table-shell *,.weather-hero,.weather-hero *,.compact-card,.compact-card *,.rate-hero,.rate-hero *,.meaning-card,.meaning-card *,.scenario-card,.scenario-card *,.rate-chart-card,.rate-chart-card *,.range-card,.range-card *{color:#10151d}
  .muted,small,.fineprint,.cell-date,.card-title small,.chart-head small,.rate-topline>span{color:#657284!important}
  .sat{color:#2875d4!important}.sun{color:#d74848!important}.good{color:#0a8f70!important}.warn{color:#a66a19!important}
}

/* v12.7 — stable mobile structure + UCKaiba header + readable notices + desktop dashboard */
.brandbar{flex:none;min-height:68px;margin:0 0 7px;border-radius:18px;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;overflow:hidden;background:linear-gradient(118deg,#071729 0%,#12385f 48%,#3d294f 100%);box-shadow:0 5px 16px rgba(9,28,52,.15);color:#fff!important}
.brandbar:after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 25% -50%,rgba(69,183,255,.34),transparent 48%),radial-gradient(circle at 84% 135%,rgba(255,113,165,.25),transparent 45%);pointer-events:none}
.brand-symbol{position:relative;z-index:1;width:105px;height:38px;object-fit:contain;filter:drop-shadow(0 1px 2px rgba(0,0,0,.22))}.brand-route{position:relative;z-index:1;margin-top:2px;font-size:14px;line-height:1;font-weight:760;letter-spacing:.055em;color:#fff!important}
/* fixed order: brand -> clocks -> nav -> content */
.app-shell{display:grid!important;grid-template-rows:auto auto auto minmax(0,1fr)!important}.brandbar{grid-row:1}.city-grid{grid-row:2}.tabbar{grid-row:3}.content{grid-row:4}.status-row{display:none!important}
.notice-nav-badge{position:absolute;right:13%;top:5px;min-width:14px;height:14px;padding:0 3px;border-radius:99px;background:#f0a020;color:#fff;font-style:normal;font-size:9px;line-height:14px;font-weight:900;text-align:center}.notice-nav-badge.emergency{background:#d92d36;font-size:11px}
/* notices must be readable on phones */
#panel-notices{font-size:15px}.safety-summary,.safety-source{background:#fff;border:1.5px solid #dce5ee;border-radius:18px;margin:9px 0;overflow:hidden;box-shadow:0 3px 12px rgba(20,40,65,.06)}.safety-summary{padding:14px}.safety-summary>div{display:flex;gap:10px;align-items:center}.safety-summary-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#e8f7f2;color:#087c60;font-weight:900;flex:none}.safety-summary.emergency .safety-summary-icon{background:#ffe5e6;color:#b92329}.safety-summary b{font-size:17px}.safety-summary p{font-size:14px;line-height:1.6;margin:4px 0;color:#596777}.safety-summary>small{display:block;font-size:12px;line-height:1.5;color:#718096;margin-top:8px}.safety-source-head{padding:13px 14px;background:#f7f9fc;border-bottom:1px solid #e4eaf0}.safety-source-head b{display:block;font-size:16px}.safety-source-head small{display:block;font-size:13px;line-height:1.5;color:#66758a;margin-top:3px}.safety-source.quiet>p{font-size:14px;line-height:1.65;padding:12px 14px 0;margin:0;color:#596777}.safety-clear{display:flex;gap:10px;align-items:center;padding:15px 14px}.safety-clear>span{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#e8f7f2;color:#087c60;font-weight:900}.safety-clear b{font-size:16px}.safety-clear p{font-size:14px;line-height:1.55;margin:3px 0 0;color:#66758a}.safety-card{display:block;padding:15px 14px;border-bottom:1px solid #e5eaf0;color:#10151d!important;text-decoration:none;background:#fff}.safety-card.emergency{background:#fff6f6}.safety-card-top{display:flex;justify-content:space-between;align-items:center;gap:8px}.safety-card-top small{font-size:12px;color:#66758a}.safety-level{display:inline-flex;padding:4px 8px;border-radius:99px;background:#fff0d8;color:#8d5200;font-size:12px;font-weight:850}.safety-card.emergency .safety-level{background:#ffe0e1;color:#b92329}.safety-card h3{font-size:17px;line-height:1.5;margin:10px 0}.safety-explain{padding:11px 12px;border-radius:12px;background:#f4f7fa;margin-top:8px}.safety-explain.action{background:#edf8f4}.safety-explain b{font-size:13px;color:#526174}.safety-explain p{font-size:15px;line-height:1.65;margin:4px 0 0}.safety-original{display:flex;justify-content:flex-end;align-items:center;gap:4px;margin-top:11px;font-size:14px;font-weight:750;color:#356b9f}.safety-original svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.7}.notice-link{display:flex!important;align-items:center!important;font-size:14px!important;min-height:48px!important;padding:12px 14px!important}
@media(max-width:430px){.app-shell{padding-top:max(7px,env(safe-area-inset-top))!important}.brandbar{min-height:64px;margin-left:2px;margin-right:2px;border-radius:16px}.brand-symbol{width:108px;height:38px}.brand-route{font-size:14px}.city-grid{padding-top:0!important}.safety-card h3{font-size:17px}.safety-explain p{font-size:15px}}
/* desktop is a real wide dashboard, not a stretched phone column */
@media(min-width:761px){html,body{overflow:hidden!important}.app-shell{width:min(1240px,calc(100% - 40px))!important;max-width:1240px!important;margin:0 auto!important;padding:16px 0 14px!important;grid-template-rows:92px 150px 74px minmax(0,1fr)!important;gap:10px!important}.brandbar{width:100%;height:92px;margin:0;border-radius:24px}.brand-symbol{width:150px;height:50px}.brand-route{font-size:18px;margin-top:3px}.city-grid{padding:0!important;gap:14px!important}.city-card{height:150px!important;border-radius:24px!important;padding:14px 20px!important}.city-head strong{font-size:20px!important}.city-mark{font-size:28px!important}.city-date{font-size:14px!important}.city-clock{font-size:58px!important;margin:8px 0 7px!important}.current-weather b{font-size:24px!important}.current-weather span:last-child{font-size:13px!important}.tabbar{height:74px!important;padding:7px 0!important;gap:12px!important;background:transparent!important}.tabbar button{height:60px!important;border-radius:18px!important;font-size:14px!important;box-shadow:0 5px 16px rgba(15,30,50,.08)!important}.tabbar button svg{width:25px!important;height:25px!important}.content{padding:0!important;overflow:hidden!important}.panel{padding:4px 2px 12px!important}.section-heading{margin:3px 3px 10px}.section-heading b{font-size:18px!important}.section-heading small{font-size:12px!important}.time-table-shell{max-width:none!important;border-radius:22px!important}.table-cities{font-size:17px!important}.hour-row{min-height:58px!important}.cell-time{font-size:22px!important}.cell-date{font-size:13px!important}.cell-weather b{font-size:14px!important}.weather-switch{max-width:420px;margin:0 auto 10px!important}.weather-hero.compact,.compact-card,.rate-hero,.meaning-card,.scenario-card,.rate-chart-card,.range-card{border-radius:20px!important}.weather-now.dense{grid-template-columns:.7fr 1.3fr!important}.big-temp{font-size:58px!important}.weather-facts.six small{font-size:11px!important}.weather-facts.six b{font-size:15px!important}.days-scroll,.hours-scroll{gap:10px!important}.day-card,.compact-hours .hour-card{flex-basis:96px!important;min-width:96px!important}.rate-number{font-size:64px!important}#panel-notices{max-width:920px;margin:0 auto}.safety-card{padding:17px 20px}.safety-card h3{font-size:19px}.safety-explain p{font-size:16px}}

/* === v12.8 compact white brand header + reclaimed mobile space === */
.brandbar{
  min-height:48px!important;height:48px!important;margin:0 2px 4px!important;border-radius:0!important;
  background:#fff!important;box-shadow:none!important;color:#10151d!important;overflow:visible!important;
}
.brandbar:after{display:none!important}
.brand-symbol{width:96px!important;height:30px!important;filter:none!important}
.brand-route{margin-top:0!important;font-size:13px!important;line-height:1!important;font-weight:760!important;letter-spacing:.045em!important;color:#24354a!important}
.city-grid{padding-top:2px!important;padding-bottom:3px!important}
.city-card{height:116px!important;padding:8px 10px!important}
.city-clock{font-size:39px!important;margin:4px 0 2px!important}
.current-weather{margin-top:0!important}
.tabbar{height:56px!important;padding:3px 8px 4px!important}
.tabbar button{height:47px!important;min-height:47px!important;gap:1px!important;font-size:11px!important;border-radius:12px!important}
.tabbar button svg{width:19px!important;height:19px!important}
.content{padding-bottom:5px!important}
@media(max-width:390px){
  .brandbar{min-height:44px!important;height:44px!important;margin-bottom:3px!important}
  .brand-symbol{width:88px!important;height:27px!important}.brand-route{font-size:12px!important}
  .city-card{height:108px!important;padding:7px 8px!important}.city-clock{font-size:36px!important;margin:3px 0 1px!important}
  .city-head strong{font-size:15px!important}.city-date{font-size:11px!important}.current-weather b{font-size:19px!important}
  .tabbar{height:52px!important;padding:2px 7px 3px!important}.tabbar button{height:45px!important;min-height:45px!important}.tabbar button svg{width:18px!important;height:18px!important}
}
@media(min-width:761px){
  .app-shell{grid-template-rows:72px 142px 62px minmax(0,1fr)!important;gap:8px!important}
  .brandbar{height:72px!important;min-height:72px!important;margin:0!important;border-radius:0!important;border-bottom:1px solid #e5eaf0!important}
  .brand-symbol{width:132px!important;height:40px!important}.brand-route{font-size:16px!important;margin-top:1px!important}
  .city-card{height:142px!important}.city-clock{font-size:54px!important}
  .tabbar{height:62px!important;padding:4px 0!important}.tabbar button{height:54px!important;min-height:54px!important}
}
