/* Phone layout, safe areas and one-handed navigation. */
.mobile-bottom-nav,.mobile-topic-trigger{display:none}
.display-mode-button{width:44px;height:44px;display:grid;place-items:center;border-radius:50%;padding:12px;color:var(--ink);flex:0 0 44px}
.display-mode-button svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.display-mode-button:hover{background:var(--nav-hover)}
.display-mode-button[aria-pressed="true"]{background:var(--nav-hover)}
.display-dialog{width:min(410px,calc(100% - 32px));background-image:none!important}
.display-options{padding:26px}
.display-options>p{font-size:15px;line-height:1.7;color:var(--muted);margin-bottom:22px}
.display-choice{display:flex;align-items:center;gap:14px;border:1px solid var(--line);border-radius:14px;padding:18px;cursor:pointer;margin-top:12px;min-height:80px}
.display-choice:has(input:checked){border-color:var(--ink);background:color-mix(in srgb,var(--ink) 5%,var(--paper))}
.display-choice input{appearance:auto;width:18px;height:18px;padding:0;margin:0;flex:0 0 18px;accent-color:var(--ink)}
.display-choice span{display:flex;flex-direction:column;gap:6px;min-width:0}
.display-choice strong{font-size:16px;font-weight:500}
.display-choice small{font-size:13px;color:var(--muted);line-height:1.6}
.display-options>.button{width:100%;margin-top:22px}
.header .mobile-nav .mobile-display-settings{background:transparent;color:var(--muted);border:1px solid var(--line);font-size:14px;min-height:44px;padding:10px 16px;margin-top:18px}
.mobile-topics-dialog{background-image:none!important}
.mobile-topics-content{padding:18px 22px 25px}
.mobile-topics-content>p{font-size:14px;color:var(--muted);line-height:1.7;margin-bottom:15px}
.mobile-topics-list{display:flex;flex-direction:column;gap:5px}
.mobile-topics-list button{display:flex;align-items:center;gap:12px;min-height:48px;text-align:left;border-radius:10px;padding:12px;color:var(--muted);font-size:15px}
.mobile-topics-list button>span:first-of-type{flex:1}
.mobile-topics-list button>span:last-child{font-size:13px}
.mobile-topics-list svg{width:19px;height:19px;stroke:currentColor;stroke-width:1.5;fill:none;flex:0 0 19px}
.mobile-topics-list button[aria-pressed="true"]{background:var(--ink);color:var(--paper)}
html[data-layout="mobile"]{--mobile-nav-height:68px;scrollbar-gutter:auto}
html[data-layout="mobile"] body{padding-bottom:calc(var(--mobile-nav-height) + env(safe-area-inset-bottom,0px));background-size:cover,min(85vw,420px) auto}
html[data-layout="mobile"] .header .display-mode-button{display:none}
html[data-layout="mobile"] .header .nav-wrap{height:calc(var(--header-height) + env(safe-area-inset-top,0px));padding-top:env(safe-area-inset-top,0px)}
html[data-layout="mobile"] .header .mobile-nav{max-height:calc(100dvh - var(--header-height) - env(safe-area-inset-top,0px))}
html[data-layout="mobile"] .mobile-bottom-nav{position:fixed;bottom:0;left:0;right:0;z-index:38;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));min-height:var(--mobile-nav-height);padding:7px max(8px,env(safe-area-inset-left,0px)) calc(7px + env(safe-area-inset-bottom,0px));background:var(--paper);border-top:1px solid var(--line);box-shadow:0 -5px 24px #00000008}
.mobile-bottom-nav a,.mobile-bottom-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:52px;border-radius:12px;color:var(--muted);font-size:11px;padding:5px 3px;line-height:1.3;position:relative}
.mobile-bottom-nav svg{width:22px;height:22px;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;fill:none}
.mobile-bottom-nav [aria-current],.mobile-bottom-nav button[aria-pressed="true"]{color:var(--ink);background:color-mix(in srgb,var(--ink) 6%,var(--paper))}
.mobile-bottom-nav [data-mobile-saved-count]{position:absolute;top:0;right:17%;font-size:10px;line-height:1;min-width:15px;height:15px;padding:3px;border-radius:10px;background:var(--ink);color:var(--paper)}
html[data-layout="mobile"]:has(dialog[open]) .mobile-bottom-nav,html[data-layout="mobile"].intro-pending .mobile-bottom-nav,html[data-layout="mobile"].menu-open .mobile-bottom-nav,html[data-layout="mobile"].mobile-keyboard-open .mobile-bottom-nav{visibility:hidden;pointer-events:none}
html[data-layout="mobile"] .hero{padding-top:18px}
html[data-layout="mobile"] .hero-top{font-size:10px!important;letter-spacing:.03em;line-height:1.6}
html[data-layout="mobile"] .hero-copy{padding-top:28px}
html[data-layout="mobile"] .hero-copy h1{font-size:clamp(44px,12vw,58px);line-height:1.02}
html[data-layout="mobile"] .hero-description{font-size:16px;margin-top:20px}
html[data-layout="mobile"] .hero-actions{flex-wrap:wrap;gap:16px;margin-top:22px}
html[data-layout="mobile"] .hero-actions .button{font-size:14px;min-height:48px;padding:14px 20px}
html[data-layout="mobile"] .hero-actions .text-link{font-size:14px}
html[data-layout="mobile"] .hero-art{height:290px;margin:20px 0}
html[data-layout="mobile"] .hero-art .hero-seal{width:245px;max-width:85%;top:0;left:50%;right:auto;transform:translateX(-50%)}
html[data-layout="mobile"] .hero-art .hero-phoenix{height:30%;left:13%;bottom:0}
html[data-layout="mobile"] .hero-year{font-size:250px;right:5%;top:0}
html[data-layout="mobile"] .hero-orbit{inset:1% 6% 8%}
html[data-layout="mobile"] .hero-art,html[data-layout="mobile"] .hero-orbit,html[data-layout="mobile"] .scroll-line:after{animation:none}
html[data-layout="mobile"] .hero-bottom{padding-block:20px;gap:18px}
html[data-layout="mobile"] .section{padding-block:55px}
html[data-layout="mobile"] .catalog-intro h2{font-size:42px}
html[data-layout="mobile"] .catalog-capabilities{display:none}
html[data-layout="mobile"] .catalog-intro{gap:20px;margin-bottom:24px}
html[data-layout="mobile"] .catalog-intro-copy>p{font-size:15px;line-height:1.8}
html[data-layout="mobile"] .catalog-totals{margin-top:16px}
html[data-layout="mobile"] .catalog-workspace{margin-top:22px;gap:14px}
html[data-layout="mobile"] .mobile-topic-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;border:1px solid var(--line);border-radius:12px;background:var(--paper);padding:13px 15px;min-height:48px;font-size:14px}
.mobile-topic-trigger>span{display:flex;align-items:center;gap:10px}
.mobile-topic-trigger svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.6;fill:none;flex-shrink:0}
.mobile-topic-trigger>svg{width:15px;height:15px;color:var(--muted)}
html[data-layout="mobile"] .catalog-filters{display:none}
html[data-layout="mobile"] .catalog-command-bar{top:64px;padding:6px 0;background:var(--paper)}
html[data-layout="mobile"] .catalog-suggestions{gap:3px;margin-top:8px}
html[data-layout="mobile"] .catalog-suggestions button{min-height:36px}
html[data-layout="mobile"] .catalog-results-bar{padding-top:22px;gap:12px;margin-bottom:20px}
html[data-layout="mobile"] .catalog-result-tools{gap:10px}
html[data-layout="mobile"] .catalog-view-switch button{width:44px;height:44px;padding:13px}
html[data-layout="mobile"] .proposal-save{width:44px;height:44px}
html[data-layout="mobile"] .proposal-compare{min-height:44px}
html[data-layout="mobile"] .proposal-tile{padding:20px}
html[data-layout="mobile"] .proposal-open h4{font-size:25px}
html[data-layout="mobile"] .proposal-open>p{font-size:16px;line-height:1.7}
html[data-layout="mobile"] .proposal-card-bottom{padding-top:8px;margin-top:12px}
html[data-layout="mobile"] .catalog-list-view .proposal-tile{padding:17px}
html[data-layout="mobile"] dialog{position:fixed;inset:auto 0 0;width:100%;max-width:100%;height:calc(100dvh - max(12px,env(safe-area-inset-top,0px)));max-height:calc(100dvh - max(12px,env(safe-area-inset-top,0px)));margin:0 auto;padding-bottom:env(safe-area-inset-bottom,0px);border-radius:22px 22px 0 0;overscroll-behavior:contain}
html[data-layout="mobile"] dialog[open]{animation:mobile-sheet-in .24s var(--ease)}
html[data-layout="mobile"] .display-dialog,html[data-layout="mobile"] .mobile-topics-dialog{height:auto;max-height:90dvh}
html[data-layout="mobile"] .dialog-bar{min-height:65px;padding:12px 20px}
html[data-layout="mobile"] .close-button{width:44px;height:44px;flex:0 0 44px}
html[data-layout="mobile"] .proposal-detail{padding:25px 23px}
html[data-layout="mobile"] .proposal-detail-actions{gap:7px}
html[data-layout="mobile"] .proposal-detail-actions .detail-save,html[data-layout="mobile"] .proposal-action{min-height:44px;font-size:13px;padding:11px 13px}
html[data-layout="mobile"] .proposal-detail-actions .detail-save{width:auto;height:auto}
html[data-layout="mobile"] .proposal-detail-navigation button{min-height:44px}
html[data-layout="mobile"] .comparison-table{margin-inline:18px}
html[data-layout="mobile"] .comparison-tray{bottom:calc(var(--mobile-nav-height) + env(safe-area-inset-bottom,0px) + 10px)}
html[data-layout="mobile"] .catalog-notice{bottom:calc(var(--mobile-nav-height) + env(safe-area-inset-bottom,0px) + 12px)}
html[data-layout="mobile"] body:has(.comparison-tray:not([hidden])) .catalog-notice{bottom:calc(var(--mobile-nav-height) + env(safe-area-inset-bottom,0px) + 134px)}
html[data-layout="mobile"].mobile-keyboard-open .catalog-notice{bottom:12px}
html[data-layout="mobile"] .voice-main h2{font-size:44px}
html[data-layout="mobile"] .faq summary{min-height:52px;padding-block:17px}
html[data-layout="mobile"] .footer-bottom{padding-bottom:20px}
@keyframes mobile-sheet-in{from{opacity:.4;translate:0 20px}to{opacity:1;translate:0 0}}
@media(min-width:681px){
 html[data-display="mobile"]{background:color-mix(in srgb,var(--paper) 94%,var(--ink));scrollbar-gutter:auto}
 html[data-display="mobile"] body{width:430px;max-width:100%;margin-inline:auto;box-shadow:0 0 0 1px var(--line),0 0 100px #00000018;background-size:cover,360px auto}
 html[data-display="mobile"] .hero-copy h1{font-size:52px}
 html[data-display="mobile"] .mobile-bottom-nav{width:430px;max-width:100%;margin-inline:auto}
 html[data-display="mobile"] dialog{width:430px;max-width:100%}
 html[data-display="mobile"] .comparison-tray{width:398px;max-width:calc(100% - 32px)}
 html[data-display="mobile"] .catalog-notice{max-width:398px}
 html[data-display="mobile"] .nav-scrim{width:430px;max-width:100%;margin-inline:auto}
}
@media(max-width:360px){html[data-layout="mobile"] .hero-copy h1{font-size:44px}html[data-layout="mobile"] .catalog-intro h2{font-size:38px}html[data-layout="mobile"] .proposal-detail-actions .detail-save,html[data-layout="mobile"] .proposal-action{padding:10px;font-size:12px}}
@media(hover:none){html[data-layout="mobile"] .proposal-tile:hover{transform:none}}
@media(prefers-reduced-motion:reduce){html[data-layout="mobile"] dialog[open]{animation:none}}
