/* Shared sizing and iPhone layouts, including 320px and landscape. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-padding-bottom:180px}body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;min-width:0}svg{width:24px;height:24px;flex-shrink:0}img{max-width:100%;height:auto}button,input,select{font-size:16px}button{min-height:44px;max-width:100%;line-height:1.35}button:disabled{opacity:.45;cursor:default}h1,h2,h3,p,span,strong{overflow-wrap:anywhere}h1{line-height:1.15}main,.shell,#view,.view-enter,.intro,.intro>div,.panel,.app-row>div,.order-head>div{min-width:0}.shell{grid-template-columns:230px minmax(0,1fr)}.catalog{grid-template-columns:repeat(2,minmax(0,1fr))}.popular{grid-template-columns:repeat(4,minmax(0,1fr))}.app-row>div{flex:1}.popular-card{min-width:0}.popular-card .icon{margin-bottom:14px}.popular-card .add{top:13px;right:12px}.add{width:44px;height:44px}.avatar{width:44px;height:44px;flex-shrink:0}.search svg{width:20px;height:20px}.search input{font-size:16px;min-width:0;background:transparent!important;border:none!important;padding:0!important;box-shadow:none!important;outline:none!important}.search kbd{display:none!important}.check-row{display:flex;align-items:flex-start;gap:12px;background:#0d1621;border:1px solid #2d4050;border-radius:12px;padding:15px;margin:20px 0;line-height:1.65;font-size:14px;color:#dae5ed;cursor:pointer}.check-row input,input[type=checkbox]{appearance:auto;-webkit-appearance:checkbox;width:24px;height:24px;min-width:24px;flex:0 0 24px;padding:0;margin:0;accent-color:var(--green);border:0;border-radius:4px}.check-row input{margin-top:1px}.summary-line{gap:14px;align-items:flex-start;line-height:1.5}.summary-line>:last-child{text-align:right}.summary-line.total{align-items:center}.order-head{flex-wrap:wrap;align-items:flex-start}.order-head .badge{max-width:100%;line-height:1.5}.order-icons{flex-wrap:wrap}.extra-count{background:var(--surface);color:var(--muted)}.stats{grid-template-columns:repeat(3,minmax(0,1fr))}.stat strong{font-size:clamp(20px,3vw,25px)}.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.panel>svg{margin-bottom:12px}.primary,.secondary{white-space:normal}.dock>div{min-width:0}.dock .primary{flex-shrink:0}.text-button{background:none;color:var(--muted);padding:10px 0;font-size:14px;text-align:left}.guide-top{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:20px}.guide-top .badge{flex-shrink:0}.guide-progress{display:flex;gap:6px;margin-bottom:25px}.guide-progress span{height:4px;flex:1;background:#263444;border-radius:3px}.guide-progress .done{background:var(--green)}.guide-notice{font-size:12px;line-height:1.7;background:#1b2637;color:#b1c5da;padding:14px;border-radius:12px;margin-bottom:20px}.guide-callout{padding:20px;border:1px solid #1b6350;background:#102a25;border-radius:16px;margin:20px 0}.guide-callout strong{color:#62e4b7;font-size:16px}.guide-callout p{font-size:14px;line-height:1.7;color:#b8d3c9;margin:10px 0 0}.guide-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:22px 0}.guide-figure{margin:0;background:var(--card);border:1px solid #ffffff08;border-radius:16px;padding:16px;min-width:0}.guide-image-button{display:flex;position:relative;align-items:center;justify-content:center;width:100%;background:#090e16;border-radius:12px;padding:12px;min-height:160px}.guide-image-button img{max-height:340px;object-fit:contain;border-radius:8px}.guide-image-button span{position:absolute;right:10px;bottom:10px;background:#15202ced;border:1px solid #34485a;border-radius:8px;padding:6px 10px;font-size:11px;color:#d9e8f5}.guide-figure figcaption{padding-top:16px}.guide-figure h3{line-height:1.5;font-size:16px}.guide-figure .subtitle{font-size:13px;line-height:1.7}.guide-controls{display:grid;grid-template-columns:minmax(95px,1fr) minmax(0,2fr);gap:12px;margin:24px 0 8px}.guide-help{display:block;margin:5px auto;text-align:center}.credential-placeholder{padding:22px;border:1px dashed #435569;border-radius:14px;margin:22px 0}.credential-placeholder span{display:block;color:var(--muted);font-size:12px}.credential-placeholder strong{display:block;font-size:23px;margin:12px 0}.credential-placeholder p{color:var(--muted);font-size:13px;line-height:1.7}.guide-verification{text-align:center}.verification-symbol{width:64px;height:64px;display:grid;place-items:center;margin:8px auto 22px;font-size:30px;border:1px solid #206b56;border-radius:50%;color:#62e4b7;background:#10b98116}.wait-status{padding:18px;background:#0b151f;border-radius:12px;margin:20px 0;font-size:16px;color:#79dfb9}.guide-verification .secondary{margin-top:12px}.guide-app{display:grid;grid-template-columns:52px minmax(0,1fr);gap:12px;padding:18px 0;border-bottom:1px solid #ffffff10}.guide-app:last-child{border-bottom:0}.guide-app-info{align-self:center}.guide-app-info .fine{margin:5px 0}.guide-app-actions{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.guide-app-actions button{font-size:13px;padding:12px 8px}.image-dialog{max-width:680px;max-height:calc(100dvh - 32px);overflow:auto}.zoom-image{display:block;width:auto;max-height:calc(100dvh - 200px);object-fit:contain;margin:16px auto}.image-dialog h3{line-height:1.5}dialog{max-height:calc(100dvh - 32px);overflow-y:auto}summary{cursor:pointer;font-weight:600;line-height:1.5}#toast{top:max(16px,env(safe-area-inset-top));width:max-content;max-width:calc(100% - 32px);font-size:14px;line-height:1.5;pointer-events:none}
@media(min-width:701px) and (max-width:1050px){.shell{grid-template-columns:195px minmax(0,1fr)}.popular{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){
 .shell{display:block;width:100%}main{width:100%;padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}header{height:auto;min-height:76px;padding-top:env(safe-area-inset-top);gap:12px;margin-bottom:24px}.wordmark{white-space:nowrap}h1{font-size:clamp(25px,7.2vw,32px);letter-spacing:-.9px}h2{font-size:21px}.eyebrow{font-size:10px;line-height:1.6;letter-spacing:1.5px}.subtitle{font-size:14px;line-height:1.65}.fine{font-size:12px;line-height:1.75}.intro{margin-bottom:23px}.intro>div{width:100%}.search{margin-bottom:20px}.search input{padding:0!important}.hero{padding:23px 20px;min-height:0;border-radius:18px}.hero>div:first-child{width:100%;padding-right:0}.hero .eyebrow{display:block;max-width:100%;font-size:9px;letter-spacing:.8px}.hero h2{font-size:26px;max-width:100%;margin:13px 0}.hero p{max-width:100%;font-size:13px}.hero-art{display:none}.hero .primary{margin-top:10px;min-height:44px;font-size:13px}.categories{width:100%;margin-right:0;overscroll-behavior-x:contain;gap:7px}.chip{min-height:44px;padding:10px 16px}.popular{grid-template-columns:repeat(2,minmax(0,1fr))}.popular-card{padding:16px 13px}.popular-card .icon{width:46px;height:46px;border-radius:12px;margin-bottom:18px}.popular-card .add{width:44px;height:44px;right:9px;top:14px}.popular-card h3{font-size:14px;line-height:1.45}.popular-card p{font-size:12px;line-height:1.4}.mini-label{font-size:11px;line-height:1.5;display:block}.catalog{grid-template-columns:minmax(0,1fr)}.app-row{padding:14px 12px;gap:12px}.app-row .icon{width:48px;height:48px;border-radius:13px}.app-row h3{font-size:14px;line-height:1.4}.app-row p{font-size:12px;margin-top:4px}.section-heading{gap:12px;align-items:flex-start}.section-heading h2{font-size:20px}.section-heading>span{text-align:right;font-size:11px;max-width:40%;line-height:1.5}.panel{padding:18px;border-radius:17px;margin:16px 0}.summary-line{font-size:13px;gap:12px}.summary-line>:first-child{min-width:0}.summary-line>:last-child{max-width:60%;overflow-wrap:anywhere}.summary-line.total{font-size:22px}.order-head{gap:12px}.order-head h3{font-size:14px}.order-head .badge{font-size:11px}.order-icons{gap:8px;margin:18px 0}.order-icons .icon{width:38px;height:38px;font-size:16px}.order-icons+p{font-size:14px;line-height:1.7}.panel>button.secondary:not(.add){margin-bottom:7px}.form-row{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}.form-row input{width:100%;min-width:0}.form-row button{width:100%}.check-row{padding:14px;gap:12px;font-size:14px;min-height:56px}.check-row input{width:26px;height:26px;min-width:26px;flex-basis:26px}.stats{gap:8px}.stat{padding:16px 10px}.stat strong{font-size:22px}.stat span{font-size:11px;line-height:1.5;display:block}.settings-grid{grid-template-columns:minmax(0,1fr)}.settings-grid label{font-size:13px}.trust{flex-wrap:wrap;gap:12px;font-size:11px}.mobile-nav{padding-top:8px;padding-left:max(8px,env(safe-area-inset-left));padding-right:max(8px,env(safe-area-inset-right));padding-bottom:calc(8px + env(safe-area-inset-bottom));min-height:66px}.mobile-nav .nav-button{min-height:48px;flex:1;max-width:25%;font-size:10px;line-height:1.3;gap:5px;padding:4px 2px}.mobile-nav .nav-button svg{height:22px;width:22px}.dock{bottom:calc(80px + env(safe-area-inset-bottom));left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));width:auto;gap:10px;padding:12px}.dock strong{font-size:13px;line-height:1.5}.dock strong .green{display:block}.dock small{font-size:10px;line-height:1.5;display:block}.dock .primary{min-height:46px;padding:10px 14px;font-size:13px}footer{margin-bottom:calc(200px + env(safe-area-inset-bottom));gap:15px;font-size:10px;line-height:1.5}footer span{text-align:right}.guide-top{gap:8px}.guide-top .badge{font-size:10px}.guide-gallery{grid-template-columns:minmax(0,1fr);gap:16px}.guide-image-button img{max-height:360px}.guide-notice{font-size:12px}.guide-controls{position:sticky;bottom:calc(78px + env(safe-area-inset-bottom));background:#080d14f5;backdrop-filter:blur(16px);padding:12px 0;z-index:9;gap:10px}.guide-controls button{font-size:14px;padding:14px 10px}.guide-app-actions{gap:8px}.image-dialog{padding:18px}.zoom-image{max-height:calc(100dvh - 190px)}
}
@media(max-width:350px){main{padding-left:12px;padding-right:12px}.popular-card{padding:14px 10px}.popular-card .add{right:6px;width:40px;min-height:44px}.popular-card .icon{width:40px;height:40px}.popular-card h3{font-size:13px}.hero h2{font-size:24px}.panel{padding:15px}.guide-top{flex-wrap:wrap}.stat strong{font-size:19px}.stat span{font-size:10px}}
@media(orientation:landscape) and (max-height:500px) and (max-width:950px){.mobile-nav{position:static}.dock{bottom:12px}.guide-controls{bottom:8px}footer{margin-bottom:110px}}
/* Original guide occupies the app canvas and owns its header/footer. */
body.guide-active{height:100dvh;overflow:hidden}.guide-active main{padding:0;height:100dvh}.guide-active main>header,.guide-active main>footer,.guide-active .mobile-nav{display:none}.guide-active #view,.guide-active .view-enter{height:100%;animation:none}.source-guide{display:block;width:100%;height:100%;border:0;background:#080d14}
.guide-completed{display:inline-block;margin:16px 0 0;font-size:12px;line-height:1.5}
.workflow-buttons{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.workflow-status{display:inline-block;margin-top:18px}.order-app-names{line-height:1.7}.workflow-notice{padding:16px;background:#10251f;border:1px solid #315a48;border-radius:14px;color:#cce5d9;font-size:14px;line-height:1.7;margin:16px 0}.field-label{display:flex;flex-direction:column;gap:10px;margin-bottom:20px;font-size:14px;color:#c8d5e0}.field-label textarea,.copy-area{width:100%;background:#0d1520;color:white;border:1px solid #304154;border-radius:12px;padding:12px;font:16px/1.6 -apple-system,BlinkMacSystemFont,system-ui;resize:vertical}.support-setting{margin-top:22px}.copy-area{margin:18px 0}.workflow-buttons button{flex:0 0 auto;min-height:44px}@media(max-width:700px){.workflow-buttons{display:grid;grid-template-columns:minmax(0,1fr)}.workflow-buttons button{width:100%}}
