/* Accepted V5-3. Decorative masthead crops only scenery, never content/poster art. */
:root { --tabbar-h:52px; --chrome:#074b36; }
.shell::before { background:var(--chrome); }
.desktop-nav,.context-pane,.carousel-arrow { display:none; }
.work-pane { min-width:0; }
.tabbar { min-height:calc(52px + env(safe-area-inset-bottom,0px)); }
.tabbar { padding-top:4px; padding-bottom:env(safe-area-inset-bottom,0px); }
.tab,.tab-pay { min-height:48px; }
.has-tabbar .page.paypage { padding-bottom:calc(var(--nav-clear) + var(--payment-clear,160px)); }
.selected-payment-rows { display:none; }
@media (max-width:1023px) {
  .welcome.desktop-layout { display:flex; }
  .welcome .work-pane { display:contents; }
  .welcome-art { order:0; }
  .welcome .welcome-context { order:1; }
  .welcome .wacts { order:2; }
}
.tab-surface { bottom:0; }
.chip { white-space:nowrap; flex-shrink:0; }
.uchips { flex-wrap:wrap; }
.hc-head { display:flex; flex-wrap:wrap; }
.hc-head .tile--soft { flex:none; }
.hc-head .row-main { flex:1 1 100px; }
.hc-head .hc-account { order:4; flex:1 0 100%; padding-left:44px; }
.hc-head .chip { justify-self:start; max-width:none; }
.v5-requests .svc-h { display:flex; align-items:center; gap:8px; margin-top:20px; margin-bottom:8px; }
.service-title { display:flex; align-items:center; gap:8px; }
.service-title .ic { width:36px; height:36px; flex:none; }
.context-link { text-decoration:none; }
.context-link small { display:block; color:var(--ink-soft); font-size:13px; }
.context-tabs a { display:grid; place-items:center; min-height:44px; padding:8px; text-decoration:none; border-radius:8px; }
.context-tabs a[aria-current] { background:var(--brand-ink); color:var(--on-brand); }
.payment-summary-hero,.payment-summary-note,.bill-back,.notice-extra { display:none; }
.pay-list-header { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; margin-bottom:16px; }
.pay-list-header h2 { font-size:18px; }
.pay-group > summary { display:flex; align-items:center; gap:8px; min-height:48px; padding:8px 12px; font-weight:700; cursor:pointer; list-style:none; }
.pay-group > summary::-webkit-details-marker { display:none; }
.pay-group > summary small { display:block; color:var(--ink-soft); font-size:13px; }
.pay-group:not([open]) > summary > .ic { transform:rotate(-90deg); }
.pay-group .per { display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; min-width:0; }
.pay-group .per small { flex-basis:100%; }
.usage-mini { display:flex; align-items:end; gap:6px; min-height:120px; }
.usage-mini > * { flex:1; min-width:0; display:flex; flex-direction:column; align-items:center; gap:4px; text-decoration:none; font-size:13px; min-height:44px; }
.usage-mini i { display:block; width:70%; background:var(--brand-ink); }
.usage-mini i.abnormal { background:var(--gold); }
.usage-mini small { white-space:nowrap; }
.hc-track { gap:16px; }
.hcard { flex-basis:100%; min-width:100%; scroll-snap-align:start; }
.hc-head { gap:8px; }
.hero,.row,.btn { gap:8px; }
.v5-requests .svc-grid { display:block; background:var(--white); border:1px solid var(--line); border-radius:var(--radius); }
.v5-requests .svc { grid-template-columns:36px minmax(0,1fr) 20px; gap:8px; border:0; border-bottom:1px solid var(--line-soft); border-radius:0; background:none; padding:8px; font-size:16px; }
.v5-requests .svc:last-child { border-bottom:0; }
.v5-requests .svc .tile { background:none; }
.v5-requests .svc:focus-visible { outline-offset:2px; }
.v5-scan:has([data-manual]:not([hidden])) [data-manual-toggle] { display:none; }
.v5-scan [data-ferr] { min-height:42px; }
.v5-scan [data-ferr][hidden] { display:block !important; visibility:hidden; }
.v5-scan input:focus { outline:2px solid var(--focus); outline-offset:2px; }
.ncard-img { align-self:center; }
.ncard-open small,.nd-meta { color:var(--ink-soft); }
.nt-row { border-radius:var(--radius); }
picture img { width:100%; height:auto; object-fit:contain; }
.welcome-art img { max-height:inherit; }
.welcome .welcome-context { display:block; background:none; border:0; padding:0; box-shadow:none; }
.home-empty picture { display:block; max-width:420px; margin:auto; }
.awaiting-art { display:block; margin:auto; max-width:270px; }
.awaiting-art img { max-height:180px; }
.skeleton { animation:none; }
.notify-pref input::before { transition:background-color 150ms ease; }
.notify-pref input::after { transition:left 150ms ease; }
.hist-selected { margin:12px 0; }
.chart-average-label { fill:var(--brand-ink); font-size:13px; }
.chart a:focus-visible { outline:2px solid var(--focus); }
.chart .chart-gap { fill:var(--ink-soft); }
.chart-bar { cursor:pointer; }
.history-empty { display:block; width:120px; height:120px; margin:16px auto; }
@keyframes paid-in { from { opacity:0; } to { opacity:1; } }
@media (prefers-reduced-motion:no-preference) {
  .done.is-paid { animation:paid-in 180ms ease-out both; }
}
@media (prefers-color-scheme:dark) {
  :root { --cream:#0d1c17; --white:#172e25; --ink:#ddf5e8; --chrome:#0d1c17; --line:#36594a; --gold:#ba9654; --gold-bar:#ba9654; }
  .hero::before { background-image:url(../assets/06-art-dusk-header.webp); }
  .amtblock::after { background-image:url(../assets/06-art-wave.webp); }
}
@media (min-width:1024px) {
  :root { --app-width:100%; --nav-clear:24px; }
  html,body { background:var(--cream); }
  .shell { max-width:none; padding-left:200px; }
  .shell::before { display:none; }
  .desktop-nav { display:flex; flex-direction:column; gap:8px; position:fixed; inset:0 auto 0 0; height:100dvh; margin:0; width:200px; padding:16px 12px; background:var(--white); border-right:1px solid var(--line); overflow-y:auto; z-index:25; }
  .desktop-nav a { display:flex; align-items:center; gap:8px; min-height:48px; padding:12px; border-radius:12px; text-decoration:none; }
  .desktop-nav a[aria-current] { background:var(--amount-gradient); color:var(--on-brand); }
  .desktop-nav .desktop-brand { padding:8px 0 24px; font-weight:700; }
  .desktop-brand small { display:block; font-size:13px; }
  .desktop-brand .ic { width:32px; height:40px; color:var(--brand-ink); }
  .tabbar { display:none; }
  .hero { min-height:88px; border-radius:0; padding:16px 24px; }
  .hero h1,.hero--back h1 { font-size:24px; }
  .page,.has-tabbar .page { padding:24px; }
  .page.desktop-layout { display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:24px; align-items:start; }
  .context-pane { display:block; min-width:0; padding:16px; border:1px solid var(--line-soft); border-radius:var(--radius); background:var(--white); box-shadow:var(--surface-shadow); }
  .context-pane > * + * { margin-top:16px; }
  .context-pane .amount { flex-wrap:wrap; }
  .context-pane .row { padding:10px; min-height:48px; border:1px solid var(--line-soft); border-radius:10px; }
  .context-pane .row .ic { flex:none; }
  .context-pane .kv > span { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
  .context-pane h2 { font-size:18px; }
  .context-pane .ucard { display:flex; flex-direction:column; align-items:stretch; }
  .context-pane .ucard-open { width:100%; }
  .context-pane .ucard-img { width:100%; }
  .context-pane .ucard-img img { max-height:320px; }
  .context-pane .ucard-go { min-height:44px; }
  .context-pane .uchips { display:flex; flex-wrap:wrap; }
  .context-pane .ubadge { white-space:nowrap; flex-shrink:0; }
  .notice-extra { display:flex; flex-direction:column; align-items:start; gap:6px; margin-bottom:8px; }
  .notice-extra .ubadge { white-space:nowrap; }
  .bill-back { display:flex; align-items:center; gap:8px; min-height:44px; margin-bottom:12px; text-decoration:none; }
  .bill-back .ic { transform:rotate(180deg); }
  .payment-summary-hero,.payment-summary-note { display:block; }
  .payment-summary-hero h2 { margin-bottom:12px; }
  .payment-summary-hero .amount { font-size:32px; }
  .paybar > .lbl,.paybar > .amount { display:none; }
  .payment-test { color:var(--red-ink); font-weight:700; text-align:center; margin:12px 0; }
  .payment-summary-note .note { align-items:start; margin-top:16px; }
  .context-pane .ncard { display:flex; flex-direction:column; align-items:stretch; }
  .context-pane .ncard-img { width:100%; max-width:none; }
  .context-pane .ncard-img img { width:100%; max-height:420px; object-fit:contain; }
  .context-pane .uimg img { max-height:420px; }
  .houses { position:relative; margin:0; padding:0 48px; }
  .hc-track { padding:0 0 4px; scroll-padding:0; }
  .carousel-arrow { display:grid; place-items:center; position:absolute; top:40%; width:44px; height:44px; border:1px solid var(--line); border-radius:50%; background:var(--white); color:var(--brand-ink); }
  .carousel-arrow[data-step="-1"] { left:0; }
  .carousel-arrow[data-step="1"] { right:0; }
  .carousel-arrow[data-step="-1"] .ic { transform:rotate(180deg); }
  .quick { margin:16px 0; }
  .home-more { display:none; }
  .bill-row { grid-template-columns:minmax(0,1fr) minmax(95px,auto) minmax(110px,auto) 20px; }
  .paybar { position:static; transform:none; width:auto; max-width:none; margin:0; padding:16px; display:block; border:0; }
  .paybar .btn { width:100%; margin-top:16px; }
  .selected-payment-rows { display:block; }
  .selected-payment-rows p { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; margin-top:12px; }
  #view:has(> .paybar) { display:grid; grid-template-columns:minmax(0,1fr) 344px; align-content:start; align-items:start; }
  #view:has(> .paybar) > .hero { grid-column:1/-1; }
  #view:has(> .paybar) > .paybar { margin:24px 24px 24px 0; }
  .has-tabbar .page.paypage { padding-bottom:24px; }
  .v5-requests [data-cat] { columns:2; column-gap:16px; }
  .v5-requests .svc-group { break-inside:avoid; display:inline-block; width:100%; margin:0 0 16px; }
  .v5-requests .svc { font-size:16px; }
  .qrpage .context-pane .amtblock { margin:0; }
  .welcome-art { max-height:440px; }
  .welcome .wlist { margin:0; }
  .welcome .welcome-context { background:var(--white); padding:16px; border:1px solid var(--line); }
  .welcome .wacts { max-width:420px; margin:auto; }
  .home-empty img { max-height:340px; width:100%; }
  .udetail-img img,.nd-img img { max-height:560px; object-fit:contain; }
  .page:not(.desktop-layout):not(.paypage) > .formcard { max-width:760px; margin-inline:auto; }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; }
}
