/* Static page headings. No fixed positioning or scroll handlers. */
html body main.phone>header,html body main.auth-page>header,html body main>header,html body .phone .panel>.top{display:flex!important;align-items:center!important;gap:16px!important;height:44px!important;min-height:44px!important;margin:0 0 24px!important;padding:0!important;position:relative!important;top:auto!important;left:auto!important;transform:none!important;background:transparent!important;box-shadow:none!important}
html body main.phone>header :is(h1,h2),html body main.auth-page>header h1,html body main>header h1,html body .phone .panel>.top h2{font-size:22px!important;line-height:1.35!important;font-weight:600!important;letter-spacing:0!important;margin:0!important;padding:0!important}
html body main.phone,html body main.auth-page,html body main:not(.layout):not(.phone):not(.auth-page){padding-top:max(24px,env(safe-area-inset-top,0px))!important}
html body .layout>.phone{padding-top:0!important}
html body .layout>.phone>.app{padding-top:max(24px,env(safe-area-inset-top,0px))!important}
html body :is(.back,.settings-back,.unified-back,.top-settings,.settings-top,a[aria-label="設定"]){width:44px!important;height:44px!important;min-width:44px!important;flex-shrink:0!important;border:0!important;border-radius:14px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:0!important;background:var(--theme-surface,#eee7dd)!important;color:var(--theme-accent,#76624f)!important;text-decoration:none!important;line-height:1!important}
html body :is(.back,.settings-back,.unified-back){font-size:26px!important}
html body :is(header,.panel>.top) :is(.top-settings,.settings-top,a[aria-label="設定"]){position:static!important;top:auto!important;right:auto!important;transform:none!important;margin-left:auto!important;order:2}
html body :is(.top-settings,.settings-top,a[aria-label="設定"]) svg{width:22px!important;height:22px!important;color:inherit!important;stroke:currentColor!important}
html body :is(.top-settings,.settings-top,a[aria-label="設定"]) svg circle[fill]{fill:var(--theme-surface,#eee7dd)!important}
/* Explicit shared center line for labels and settings glyphs. */
html body main.phone>header h1,html body main.auth-page>header h1,html body main>header h1,html body .phone .panel>.top h2{height:44px!important;display:flex!important;align-items:center!important;line-height:1!important;align-self:center!important}
html body :is(.top-settings,.settings-top,a[aria-label="設定"]){align-self:center!important;vertical-align:middle!important}
html body :is(.top-settings,.settings-top,a[aria-label="設定"]) svg :is(path,circle){stroke:var(--theme-accent,#76624f)!important}

html body main>header .back,html body main>header .auth-settings{display:inline-flex!important;visibility:visible!important;opacity:1!important;position:static!important;transform:none!important;width:44px!important;height:44px!important;border-radius:14px!important;background:var(--theme-surface,#eee7dd)!important;color:var(--theme-accent,#76624f)!important;align-items:center;justify-content:center;flex-shrink:0}html body main>header h2{font-size:22px!important;line-height:1.35!important;margin:0!important}

html body .phone #details.panel>.top h2,html body .phone #home.panel>.top h2{font-size:22px!important;line-height:1.35!important;font-weight:600!important}

/* Fixed original title row. Background covers the top inset while scrolling. */
.fixed-top-row-space{display:block;height:68px!important;min-height:68px!important;margin:0!important;padding:0!important;flex-shrink:0;pointer-events:none}
html body [data-original-row-fixed="1"]{background:var(--theme-bg,#faf7f0)!important;isolation:isolate;overflow:visible!important}
html body [data-original-row-fixed="1"]::before{content:"";position:fixed;top:0;left:0;right:0;height:calc(max(24px,env(safe-area-inset-top,0px)) + 56px);background:var(--theme-bg,#faf7f0);z-index:-1;pointer-events:none}
html body [data-original-row-fixed="1"] :is(h1,h2){font-size:22px!important;font-weight:600!important;line-height:1.35!important;height:44px!important;display:flex!important;align-items:center!important;margin:0!important;padding:0!important;white-space:nowrap}
html body [data-original-row-fixed="1"] :is(.top-settings,.settings-top,a[aria-label="設定"]){color:var(--theme-accent,#76624f)!important;background:var(--theme-surface,#eee7dd)!important}
