/* Source: styles.css */
/* MakeTap · interaction prototype · original UI, no external dependencies. */
:root{--ink:#19181a;--muted:#727075;--paper:#fff;--soft:#f4f4f5;--line:#e6e4e8;--accent:#d7f078;--accent-dark:#3a373f;--radius:22px;--max:1200px;--ease:cubic-bezier(.2,.8,.2,1)}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:100px}body{margin:0;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--paper);font-size:15px;line-height:1.55;letter-spacing:-.018em;-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit;letter-spacing:inherit}button,a,input,textarea,summary{ -webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{cursor:not-allowed;opacity:.4}button,a{touch-action:manipulation}a{color:inherit;text-decoration:none}button{border:0;background:none}img{max-width:100%;display:block}h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.08}svg{display:inline-block;vertical-align:middle;flex-shrink:0}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid var(--focus-ring);outline-offset:4px}::selection{background:var(--accent)}[hidden]{display:none!important}.wrap{width:min(var(--max),calc(100% - 80px));margin-inline:auto}.muted{color:var(--muted)}.tiny{font-size:12px;line-height:1.55}.eyebrow{font-size:11px;letter-spacing:.12em;text-transform:uppercase;font-weight:650}.tag{display:inline-flex;align-items:center;gap:6px;background:var(--soft);padding:5px 9px;border-radius:7px;font-size:11px;font-weight:550;line-height:1.2}.tag.tinted{background:#edf4da;color:#403c45}.tag.dark{background:#ffffff15;color:#fff}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border:1px solid var(--line);border-radius:50%;background:white;flex-shrink:0;transition:background .2s,transform .2s}.icon-button:hover{background:var(--soft);transform:translateY(-1px)}.btn{min-height:48px;padding:13px 21px;display:inline-flex;align-items:center;justify-content:center;gap:13px;border-radius:11px;font-weight:550;font-size:14px;line-height:1.2;border:1px solid transparent;transition:transform .2s var(--ease),background .2s,box-shadow .2s;white-space:nowrap}.btn:hover{transform:translateY(-2px)}.btn.primary{background:var(--ink);color:white}.btn.primary:hover{background:#322f36;box-shadow:0 6px 20px #1b191d14}.btn.secondary{border-color:var(--line);background:white}.btn.secondary:hover{background:var(--soft)}.btn.accent{background:var(--accent);color:var(--ink)}.btn.small{min-height:39px;padding:10px 16px;font-size:12px;border-radius:9px}.btn.full{width:100%}.btn.ghost{background:transparent;color:var(--muted)}.text-link{font-size:13px;display:inline-flex;gap:7px;align-items:center;padding:4px 0;border-bottom:1px solid currentColor}.actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.section{padding:104px 0}.section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:32px;margin-bottom:42px}.section-heading h2,.display-title{font-size:clamp(34px,4.3vw,54px);font-weight:550;letter-spacing:-.055em;line-height:1.07}.section-heading p{font-size:15px;max-width:340px;color:var(--muted);line-height:1.6}.section-heading .eyebrow{margin-bottom:18px;color:var(--muted)}.brand{display:inline-flex;align-items:center;gap:9px;font-size:24px;font-weight:650;letter-spacing:-1.15px}.brand-mark{width:32px;height:32px;background:var(--ink);color:#fff;display:grid;place-items:center;border-radius:10px;flex-shrink:0}.site-header{position:sticky;top:0;z-index:40;background:rgba(255,255,255,.96);border-bottom:1px solid #eeedef}.nav-inner{height:80px;display:flex;align-items:center;justify-content:space-between;gap:24px}.nav-links{display:flex;gap:30px;align-items:center;font-size:13px}.nav-links a{color:#605d64;transition:color .2s}.nav-links a:hover{color:#000}.nav-actions{display:flex;gap:18px;align-items:center}.library-nav{font-size:13px;display:flex;align-items:center;gap:6px}.counter{background:var(--soft);padding:2px 6px;border-radius:6px;font-size:10px}.menu-toggle{display:none}.mobile-menu{position:absolute;top:80px;left:0;right:0;padding:20px;background:white;border-bottom:1px solid var(--line);box-shadow:0 10px 20px #00000008}.mobile-menu a,.mobile-menu button{display:block;padding:13px;font-size:16px;width:100%;text-align:left}.skip-link{position:fixed;top:-60px;left:16px;z-index:300;background:var(--ink);color:white;padding:10px}.skip-link:focus{top:10px}
/* Hero: icons are part of the typography, not a decorative phone collage. */
.hero{padding:72px 0 45px;text-align:center;overflow:hidden}.hero-eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:12px;color:#5a5561;margin-bottom:26px}.status-dot{width:6px;height:6px;background:#686370;border-radius:50%;box-shadow:0 0 0 4px #ecebed}.hero h1{font-size:clamp(60px,7.15vw,100px);font-weight:560;letter-spacing:-.065em;line-height:1.08}.hero-line{display:flex;align-items:center;justify-content:center;gap:23px;min-height:112px}.hero h1 .soft-word{color:#98959d}.icon-stack{display:inline-flex;align-items:center;gap:0;margin-inline:4px;position:relative;isolation:isolate}.hero-icon{--rotation:0deg;--shift:0px;width:81px;height:81px;position:relative;border-radius:24%;padding:0;transform:rotate(var(--rotation)) translateY(var(--shift));box-shadow:0 8px 20px #1a181c1a,0 0 0 3px white;transition:transform .35s var(--ease),box-shadow .35s;z-index:1;animation:tileEnter .7s var(--ease) both}.hero-icon+.hero-icon{margin-left:-8px}.hero-icon:hover{transform:rotate(0) translateY(-8px) scale(1.08);box-shadow:0 12px 24px #1a181c26;z-index:4}.hero-icon img{width:100%;height:100%;border-radius:24%}.hero-icon .tile-tip{position:absolute;top:calc(100% + 12px);left:50%;transform:translateX(-50%);font-size:11px;letter-spacing:0;font-weight:500;white-space:nowrap;background:var(--ink);color:white;padding:5px 9px;border-radius:6px;opacity:0;pointer-events:none;transition:opacity .2s}.hero-icon:hover .tile-tip{opacity:1}.hero-description{font-size:18px;line-height:1.65;max-width:565px;letter-spacing:-.025em;color:#706d75;margin:30px auto 26px}.hero .actions{justify-content:center}.hero .btn{min-height:51px;padding:14px 25px}.hero .micro{display:flex;align-items:center;justify-content:center;gap:18px;font-size:11px;color:#827f87;margin-top:19px}.micro span{display:inline-flex;align-items:center;gap:5px}.source-row{display:flex;justify-content:center;align-items:center;gap:25px;flex-wrap:wrap;padding:33px 20px 26px;font-size:13px;color:#79767d}.source-row .source-intro{font-size:11px;color:#9c98a2}.source-name{font-weight:650;letter-spacing:-.03em;color:#5a575f}.source-note{font-size:10px;color:#98949d;text-align:center;padding-bottom:30px}
/* Horizontal showcase, original HTML app designs. */
.showcase{padding:20px 0 30px;overflow:hidden;background:linear-gradient(180deg,#fff,#f9f9fa)}.showcase-track{display:flex;gap:19px;overflow:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:25px max(28px,calc((100vw - 1300px)/2));align-items:flex-start}.showcase-track::-webkit-scrollbar{display:none}.showcase-card{flex:0 0 236px;text-align:left;scroll-snap-align:center;padding:0;border-radius:21px;transition:transform .35s var(--ease);position:relative}.showcase-card:nth-child(even){margin-top:25px}.showcase-card:hover{transform:translateY(-8px)}.showcase-card .card-canvas{height:286px;padding:17px;border-radius:22px;background:var(--card-bg,#f1f0eb);overflow:hidden;position:relative;box-shadow:inset 0 0 0 1px #00000003}.card-canvas .preview-paper{background:var(--card-paper,#fff);color:var(--card-ink,#222);height:100%;border-radius:13px;padding:18px 15px;box-shadow:0 5px 15px #00000004;overflow:hidden;position:relative;pointer-events:none}.showcase-card .card-caption{padding:15px 3px;display:flex;align-items:center;gap:9px}.card-caption img{width:29px;height:29px;border-radius:8px}.card-caption strong{font-size:12px;font-weight:600}.card-caption small{display:block;color:#8f8a95;font-size:10px;font-weight:400}.card-caption .launch-arrow{margin-left:auto;color:#99959f}.showcase-foot{display:flex;align-items:center;justify-content:space-between;margin-top:8px;color:#87838d;font-size:11px}.showcase-controls{display:flex;gap:7px}.showcase-controls .icon-button{width:32px;height:32px}.paper-overline{font-size:8px;letter-spacing:.13em;text-transform:uppercase;opacity:.6;margin-bottom:17px}.paper-title{font-size:20px;font-weight:600;letter-spacing:-.05em;line-height:1.15}.paper-sub{font-size:8px;opacity:.55;margin-top:5px}.mini-timer{width:147px;height:147px;border:2px solid #c7df9360;border-top-color:#d9f4ae;border-right-color:#d9f4ae;margin:17px auto 0;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:50%;font-size:36px;letter-spacing:-.07em;position:relative}.mini-timer small{font-size:7px;letter-spacing:.17em;opacity:.5}.paper-play{width:31px;height:31px;border-radius:50%;display:grid;place-items:center;background:#d9efb0;color:#28262b;margin:11px auto 0}.mini-list{margin-top:18px;display:grid;gap:10px}.mini-list div{display:flex;align-items:center;gap:8px;font-size:9px}.mini-check{width:13px;height:13px;border:1px solid #d2cfd5;border-radius:4px;display:grid;place-items:center;font-size:8px}.mini-check.checked{background:#3e3a43;color:#fff;border-color:#3e3a43}.mini-trip-banner{height:69px;background:linear-gradient(130deg,#c8c5cd 0%,#d8d5db 46%,#b6b2bc 47%,#7e7788 60%,#d4d2d7 61%,#f2eee2 100%);margin:-18px -15px 14px;position:relative}.mini-trip-banner span{position:absolute;left:15px;bottom:9px;background:#ffffffc9;padding:2px 7px;border-radius:5px;font-size:8px;color:#433f48}.mini-habit-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;margin-top:20px}.mini-habit-grid i{height:15px;border-radius:5px;background:#ece5f3}.mini-habit-grid i.done{background:#8c77a8}.mini-habit-stats{display:flex;justify-content:space-between;align-items:end;margin-top:21px}.mini-habit-stats b{font-size:29px;font-weight:500}.mini-habit-stats span{font-size:8px;opacity:.5}.mini-split-amount{font-size:43px;letter-spacing:-.07em;margin:13px 0 0}.mini-split-amount small{font-size:19px}.mini-split-label{font-size:8px;opacity:.5}.mini-split-people{display:flex;gap:5px;margin-top:22px}.mini-split-people i{font-size:9px;font-style:normal;display:grid;place-items:center;width:29px;height:29px;background:#d9b895;color:#654a35;border-radius:50%;border:2px solid #fff8ec}.mini-split-bill{font-size:9px;margin-top:18px;display:flex;justify-content:space-between;border-top:1px solid #73543d22;padding-top:10px}.mini-note-lines{font-size:11px;line-height:2.05;margin-top:19px;color:#66626b}.mini-note-lines span{display:block;border-bottom:1px solid #e0dfe2}.mini-wheel{width:145px;height:145px;border-radius:50%;background:conic-gradient(#cbc9cf 0 60deg,#e4d4a2 60deg 120deg,#d6c5cf 120deg 180deg,#bdb9c2 180deg 240deg,#f0d3bc 240deg 300deg,#b5b1bb 300deg);margin:20px auto;display:grid;place-items:center;transform:rotate(-15deg)}.mini-wheel span{background:#fff;width:47px;height:47px;border-radius:50%;display:grid;place-items:center;font-size:11px;transform:rotate(15deg);box-shadow:0 2px 8px #0001}.sample-label{font-size:9px;letter-spacing:.06em;text-transform:uppercase;color:#8f8a96}
/* Editorial benefit + before/after. */
.benefit{border-top:1px solid var(--line);margin-top:28px}.benefit-layout{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:90px}.benefit-copy .eyebrow{color:var(--muted);margin-bottom:20px}.benefit-copy h2{font-size:51px;line-height:1.1;letter-spacing:-.05em;font-weight:550;max-width:470px}.benefit-copy p{margin-top:23px;color:var(--muted);max-width:390px;font-size:16px}.benefit-points{display:flex;gap:20px;font-size:12px;margin-top:28px;flex-wrap:wrap}.benefit-points span{display:flex;align-items:center;gap:6px}.before-after{background:#f0f0f1;border-radius:27px;min-height:375px;position:relative;overflow:hidden;padding:30px;display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:center}.chat-stack{transform:rotate(-5deg);padding:5px}.chat-stack div{font-size:10px;background:white;border:1px solid #e1dfe3;border-radius:9px;padding:13px 12px;margin:8px 0;color:#908b97;white-space:nowrap;box-shadow:0 3px 8px #201e2203}.chat-stack div:nth-child(2){opacity:.7;transform:translateX(-12px)}.chat-stack div:nth-child(3){color:#3d3a42;border-color:#c4c1c8;background:#f2f2f3;transform:translateX(3px)}.chat-stack div:nth-child(4){opacity:.45}.chat-stack small{display:block;font-size:8px;color:#b4b0b9;letter-spacing:.04em;margin-top:5px}.on-home{background:white;border-radius:26px;min-height:277px;padding:22px 15px;box-shadow:0 15px 45px #26242810;transform:rotate(5deg);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px}.on-home .home-time{font-size:35px;letter-spacing:-.06em;color:#514d57}.on-home .home-date{font-size:8px;color:#9c97a4;margin-top:-12px}.on-home img{width:63px;height:63px;border-radius:17px;box-shadow:0 7px 17px #2c2a2f28}.on-home span{font-size:10px}.on-home .dots{font-size:12px;letter-spacing:3px;color:#c0bcc5;margin-top:10px}.comparison-labels{position:absolute;bottom:19px;left:0;right:0;display:flex;justify-content:space-around;color:#8f8997;font-size:10px}.transition-arrow{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:37px;height:37px;background:var(--accent);border-radius:50%;display:grid;place-items:center;z-index:2}
/* Interactive walkthrough */
.process{background:var(--soft)}.process-layout{display:grid;grid-template-columns:.85fr 1.2fr;gap:70px;align-items:center}.process-title{font-size:51px;font-weight:550;letter-spacing:-.055em;margin:18px 0 35px}.process-steps{display:grid;gap:9px}.process-step{display:flex;align-items:flex-start;gap:16px;text-align:left;padding:18px;border-radius:15px;transition:background .25s}.process-step.active{background:white;box-shadow:0 4px 20px #211f2304}.step-num{width:25px;height:25px;border:1px solid #d9d7db;border-radius:50%;font-size:10px;display:grid;place-items:center;margin-top:1px;flex-shrink:0;color:#878090}.process-step.active .step-num{background:var(--ink);color:white;border-color:var(--ink)}.process-step strong{font-size:15px;font-weight:550}.process-step p{font-size:12px;color:#87828f;line-height:1.7;margin-top:5px;max-width:300px}.process-step:not(.active) p{display:none}.process-visual{position:relative;background:#e5e3e7;border-radius:27px;min-height:454px;display:flex;align-items:center;justify-content:center;padding:30px}.demo-window{width:100%;max-width:450px;border-radius:15px;background:#fff;box-shadow:0 20px 60px #2e2b3210;overflow:hidden}.window-bar{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:15px 17px;font-size:10px;color:#918b99}.window-dots{display:flex;gap:4px}.window-dots i{display:block;width:5px;height:5px;border-radius:50%;background:#cfccd3}.window-body{padding:24px}.window-body h4{margin:0 0 16px;font-weight:550;font-size:16px}.code-mini{border:1px solid var(--line);padding:20px 17px;min-height:169px;background:#f9f9fa;border-radius:10px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px;line-height:1.8;color:#8b8594;overflow:hidden}.code-mini b{color:#4f4a55;font-weight:400}.window-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:20px;color:#928d9a;font-size:10px}.window-bottom .btn{font-size:10px;min-height:33px;padding:9px 14px;border-radius:7px}.mini-field{background:#f5f5f6;border:1px solid var(--line);padding:10px 12px;border-radius:8px;font-size:12px}.mini-field-label{font-size:9px;color:#8a8493;margin-bottom:6px}.icon-choices-mini{display:flex;gap:10px;margin-top:10px}.icon-choices-mini img{width:35px;height:35px;border-radius:10px}.visual-caption{position:absolute;bottom:12px;font-size:10px;color:#888291}.walkthrough-phone{background:#f7f7f8;width:200px;height:320px;border:6px solid #252327;border-radius:32px;padding:32px 16px 20px;box-shadow:0 20px 35px #2e2c3220;position:relative}.walkthrough-phone:before{content:'';width:55px;height:14px;background:#252327;border-radius:10px;position:absolute;top:9px;left:50%;transform:translateX(-50%)}.walkthrough-phone .clock{font-size:32px;text-align:center;letter-spacing:-.05em;margin-top:13px}.walkthrough-phone .small-date{text-align:center;font-size:8px;color:#898392}.phone-icon-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:22px}.phone-icon-grid div{text-align:center;font-size:7px;color:#524e58}.phone-icon-grid img{width:37px;height:37px;border-radius:10px;margin:0 auto 5px}.walkthrough-save{position:absolute;bottom:45px;right:24px;background:#fff;border:1px solid var(--line);box-shadow:0 7px 25px #2321250d;border-radius:11px;padding:13px;display:flex;align-items:center;gap:9px;font-size:11px}
/* Gallery */
.gallery-filters{display:flex;gap:8px;margin-bottom:25px;flex-wrap:wrap}.filter{padding:8px 17px;font-size:12px;border:1px solid var(--line);border-radius:30px;background:#fff;color:#7a7680}.filter.active{background:var(--ink);border-color:var(--ink);color:#fff}.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.gallery-card{border:1px solid var(--line);border-radius:19px;padding:22px;text-align:left;display:flex;gap:17px;align-items:center;transition:background .2s,transform .2s}.gallery-card:hover{background:var(--soft);transform:translateY(-3px)}.gallery-card img{width:53px;height:53px;border-radius:15px}.gallery-card h3{font-size:15px;font-weight:550;line-height:1.3}.gallery-card p{font-size:11px;color:#8f8a95;margin-top:5px}.gallery-card .gallery-arrow{margin-left:auto;color:#b1adb7}.gallery-note{margin-top:19px;font-size:11px;color:#938e99}
/* Bento */
.ownership{padding-top:15px}.ownership-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:18px}.feature-card{border-radius:23px;background:var(--soft);padding:29px;min-height:316px;display:flex;flex-direction:column;position:relative;overflow:hidden}.feature-card:first-child{background:#e7e6e9}.feature-card .feature-visual{height:140px;display:flex;align-items:center;justify-content:center;margin-bottom:16px}.feature-card h3{font-weight:550;font-size:21px;letter-spacing:-.04em}.feature-card p{font-size:12px;color:#80798a;line-height:1.7;margin-top:10px;max-width:280px}.rename-visual{display:flex;align-items:center;gap:14px;background:white;border:1px solid #dad8dd;border-radius:15px;padding:16px 20px;width:100%;max-width:275px;box-shadow:0 6px 15px #46424b10}.rename-visual img{width:53px;height:53px;border-radius:14px}.rename-visual span{font-size:8px;color:#96919e;display:block}.rename-visual strong{font-size:16px;font-weight:500}.rename-visual i{height:16px;width:1px;background:#726c7b;display:inline-block;vertical-align:middle;margin-left:3px}.offline-symbol{width:88px;height:88px;border-radius:50%;background:#fff;display:grid;place-items:center;position:relative}.offline-symbol:before,.offline-symbol:after{content:'';position:absolute;inset:-12px;border:1px solid #dedce1;border-radius:50%}.offline-symbol:after{inset:-24px;border-color:#eae9ec}.file-visual{width:104px;height:118px;background:white;border:1px solid #e0dfe2;border-radius:10px;box-shadow:7px 7px 0 -1px #ebeaed,7px 7px 0 0 #ddd;font-size:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;transform:rotate(-7deg)}
/* Pricing */
.pricing{padding-top:100px}.pricing-title{text-align:center;margin-bottom:45px}.pricing-title .eyebrow{color:var(--muted);margin-bottom:18px}.pricing-title h2{font-size:54px;font-weight:550;letter-spacing:-.06em}.pricing-title p{color:var(--muted);font-size:15px;margin-top:18px}.pricing-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;max-width:1070px;margin:auto}.price-card{border:1px solid var(--line);border-radius:22px;padding:29px;display:flex;flex-direction:column;background:#fff}.price-card.complete{background:#201e22;color:#fff;border-color:#201e22}.price-card .price-name{display:flex;align-items:center;justify-content:space-between}.price-card h3{font-size:19px;font-weight:550}.price-card .price-caption{color:#8a8492;font-size:12px;margin-top:10px}.complete .price-caption{color:#a29da9}.price-amount{font-size:49px;letter-spacing:-.065em;font-weight:550;line-height:1.1;margin-top:27px}.price-amount sup{font-size:23px;vertical-align:top;position:relative;top:7px;margin-right:3px;font-weight:450}.price-once{color:#938e9b;font-size:11px;margin-top:7px}.price-card .allocation{margin-top:26px;margin-bottom:20px;font-size:17px;font-weight:550;letter-spacing:-.035em}.price-card .allocation small{display:block;font-size:11px;color:#8f8997;font-weight:400;letter-spacing:0;margin-top:3px}.price-features{list-style:none;margin:0 0 25px;padding:0;border-top:1px solid var(--line);padding-top:18px;display:grid;gap:12px;font-size:12px;color:#736c7c;flex:1}.price-features li{display:flex;align-items:center;gap:9px}.price-features svg{color:#6c6674}.complete .price-features{border-color:#ffffff16;color:#c1bec5}.complete .price-features svg{color:var(--accent)}.price-card .btn{font-size:12px}.price-footnote{text-align:center;margin:24px auto 0;color:#888191;font-size:11px;max-width:850px;line-height:1.9}.price-footnote strong{color:#4e4a54;font-weight:500}
/* FAQ & end */
.faq{border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1.4fr;gap:100px}.faq-title .eyebrow{color:var(--muted);margin-bottom:20px}.faq-title h2{font-size:46px;font-weight:550;letter-spacing:-.055em}.faq-title p{color:var(--muted);font-size:13px;max-width:220px;margin-top:18px}.faq-list details{border-bottom:1px solid var(--line)}.faq-list details:first-child{border-top:1px solid var(--line)}.faq-list summary{list-style:none;padding:23px 36px 23px 0;cursor:pointer;font-size:15px;position:relative}.faq-list summary::-webkit-details-marker{display:none}.faq-list summary:after{content:'+';position:absolute;right:4px;top:19px;font-size:24px;color:#8c8694;font-weight:300}.faq-list details[open] summary:after{content:'−'}.faq-list details p{padding:0 35px 23px 0;color:#817a8b;font-size:13px;line-height:1.85}.final-cta{background:#eae9ec;padding:75px 30px;text-align:center;border-radius:27px;overflow:hidden;position:relative;margin-bottom:75px}.final-cta h2{font-size:60px;letter-spacing:-.065em;font-weight:550;position:relative;z-index:1}.final-cta p{font-size:15px;color:#787281;margin:20px 0 27px;position:relative;z-index:1}.final-cta .btn{position:relative;z-index:1}.final-decoration{position:absolute;width:76px;height:76px;border-radius:22%;opacity:.9;box-shadow:0 10px 30px #384d1726;transition:transform .3s}.final-decoration img{border-radius:22%}.final-decoration.a{left:55px;top:55px;transform:rotate(-18deg)}.final-decoration.b{right:66px;bottom:50px;transform:rotate(17deg)}.final-decoration.c{left:115px;bottom:35px;transform:rotate(10deg);width:45px;height:45px;opacity:.65}.final-decoration.d{right:127px;top:25px;transform:rotate(-10deg);width:48px;height:48px;opacity:.65}.footer-main{display:flex;align-items:flex-start;justify-content:space-between;gap:35px;padding-bottom:42px}.footer-main p{margin-top:14px;color:#908a99;font-size:12px}.footer-links{display:flex;gap:65px;font-size:12px}.footer-links strong{display:block;margin-bottom:15px;font-size:11px;font-weight:600}.footer-links a,.footer-links button{display:block;color:#908a99;font-size:12px;padding:3px 0;margin-bottom:7px;text-align:left}.footer-bottom{border-top:1px solid var(--line);padding:20px 0 26px;display:flex;justify-content:space-between;gap:18px;font-size:10px;color:#9d98a4}.prototype-link{display:flex;align-items:center;gap:6px;color:#6f6977}.prototype-dot{width:5px;height:5px;background:#888291;border-radius:50%}
/* App shell / builder */
.app-view{min-height:calc(100vh - 80px);background:#f7f6f8;padding:36px 0 80px}.app-container{width:min(1120px,calc(100% - 64px));margin:auto}.app-topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px;gap:12px}.back-button{display:flex;align-items:center;gap:9px;font-size:12px;color:#7f7889;padding:6px 0}.local-badge{font-size:10px;display:flex;gap:7px;align-items:center;color:#878090}.workspace-title{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:29px}.workspace-title h1{font-size:38px;font-weight:550;letter-spacing:-.055em}.workspace-title p{font-size:13px;color:#888291;margin-top:10px}.flow-steps{display:flex;gap:9px;margin-bottom:28px;align-items:center}.flow-step{display:flex;align-items:center;gap:8px;font-size:11px;color:#9893a0}.flow-step .num{width:24px;height:24px;border-radius:50%;border:1px solid #d9d7dc;display:grid;place-items:center;font-size:10px}.flow-step.active{color:#28252b}.flow-step.active .num{background:#27242a;border-color:#27242a;color:white}.flow-step.done .num{background:#dddbe0;color:#514d57;border-color:#dddbe0}.flow-line{width:45px;height:1px;background:#dad8dc;margin-inline:8px}.workspace-card{background:#fff;border:1px solid var(--line);border-radius:22px;overflow:hidden;box-shadow:0 10px 45px #29262c03}.workspace-content{padding:35px}.workspace-footer{padding:19px 32px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:18px;background:#fdfefa}.workspace-footer .tiny{max-width:520px;color:#8f8997}.input-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:35px}.input-tabs{display:flex;background:#f2f2f3;border-radius:10px;padding:4px;gap:4px;margin-bottom:20px}.input-tabs button{padding:10px 15px;border-radius:7px;font-size:12px;flex:1;display:flex;align-items:center;justify-content:center;gap:8px;color:#7f7888}.input-tabs button.active{background:white;color:#252327;box-shadow:0 2px 5px #2a3e1210}.field-label{font-size:12px;display:block;margin-bottom:8px;font-weight:550}.code-area{width:100%;min-height:270px;resize:vertical;border:1px solid #dfdde1;border-radius:13px;padding:17px;background:#fafafa;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px;line-height:1.85;outline:none;color:#45414a;letter-spacing:0}.code-area::placeholder{color:#a49fab}.field-help{font-size:10px;color:#8f8997;margin-top:9px;line-height:1.7}.input-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:9px}.input-toolbar button{font-size:11px;display:flex;gap:5px;align-items:center;color:#797382}.upload-zone{border:1.5px dashed #c8c5cc;border-radius:15px;min-height:270px;display:flex;align-items:center;justify-content:center;text-align:center;padding:25px;transition:background .2s;cursor:pointer;background:#fafcf6}.upload-zone.dragover{background:#ecf5dc;border-color:#878090}.upload-zone .upload-symbol{width:52px;height:52px;border-radius:15px;background:#e7e6e9;display:grid;place-items:center;margin:0 auto 19px;color:#5b5661}.upload-zone h3{font-size:16px;font-weight:550}.upload-zone p{font-size:11px;color:#8c8695;margin:10px 0 17px}.input-side{padding:20px 24px;background:#f7f6f8;border-radius:16px;display:flex;flex-direction:column}.input-side .eyebrow{font-size:9px;color:#928d9a}.input-side h3{font-size:23px;font-weight:500;letter-spacing:-.045em;margin:15px 0}.input-side p{font-size:12px;line-height:1.85;color:#878190}.demo-choice{display:flex;align-items:center;gap:11px;text-align:left;padding:11px;background:white;border:1px solid #e6e4e8;border-radius:10px;margin-top:10px;width:100%}.demo-choice img{width:31px;height:31px;border-radius:9px}.demo-choice span{font-size:12px;flex:1}.demo-choice svg{color:#9d98a5}.privacy-small{margin-top:auto;padding-top:20px;display:flex;gap:7px;font-size:10px;color:#898292;line-height:1.7}.inline-message{padding:13px 16px;background:#f0f0f1;border:1px solid #dddbe0;border-radius:10px;font-size:12px;color:#6a6472;margin-top:16px;line-height:1.7}.inline-message.warning{background:#fcf6e9;border-color:#efe0b9;color:#8e783d}.inline-message.error{background:#fff1ed;border-color:#f4d2c6;color:#a05841}.file-loaded{display:flex;align-items:center;gap:12px;background:#f1f6e7;border:1px solid #d3d1d6;border-radius:11px;padding:14px;margin-top:13px;font-size:12px}.file-loaded span{flex:1;word-break:break-word}.file-loaded small{display:block;color:#8c8695;margin-top:3px}.preview-layout{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:start}.preview-description h2{font-size:30px;font-weight:550;letter-spacing:-.05em;margin:9px 0 15px}.preview-description p{font-size:13px;line-height:1.8;color:#817a8b}.preview-checks{margin:23px 0;display:grid;gap:12px;font-size:12px;color:#706a79}.preview-checks div{display:flex;gap:9px;align-items:flex-start}.preview-checks .check-copy{display:block}.preview-checks small{display:block;font-size:10px;color:#9993a1;margin-top:3px}.replace-panel{margin-top:24px;padding-top:22px;border-top:1px solid var(--line)}.replace-panel p{font-size:11px;margin-bottom:12px}.phone-shell{width:290px;height:535px;border:7px solid #252327;border-radius:43px;padding:9px;background:#fff;margin:auto;position:relative;box-shadow:0 18px 35px #32303618}.phone-shell:before{content:'';position:absolute;top:8px;left:50%;transform:translateX(-50%);width:75px;height:20px;border-radius:20px;background:#252327;z-index:2;pointer-events:none}.phone-shell:after{content:'';position:absolute;bottom:7px;left:50%;transform:translateX(-50%);width:90px;height:4px;background:#252327;border-radius:4px;pointer-events:none}.phone-shell iframe{border:0;border-radius:29px;width:100%;height:100%;background:#fff}.preview-device-wrapper{text-align:center}.preview-device-wrapper .tiny{color:#a09ba7;margin-top:13px}.customize-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:70px}.text-input{border:1px solid #dddbdf;border-radius:10px;padding:12px 14px;width:100%;background:#fcfdf9;outline:none;font-size:14px;min-height:46px}.customize-fields .field-block{margin-bottom:25px}.label-row{display:flex;align-items:center;justify-content:space-between}.label-row small{font-size:10px;color:#96919e}.icon-picker{display:flex;gap:10px;flex-wrap:wrap;margin-top:11px}.icon-choice{width:53px;height:53px;border-radius:15px;padding:3px;border:1.5px solid transparent}.icon-choice img{border-radius:11px;width:44px;height:44px}.icon-choice.selected{border-color:#5b5661;background:#edecee}.color-picker{display:flex;gap:10px;margin-top:10px}.color-swatch{width:27px;height:27px;border-radius:50%;background:var(--swatch);border:3px solid white;box-shadow:0 0 0 1px #d7d4da}.color-swatch.selected{box-shadow:0 0 0 2px #524e58}.icon-upload{display:flex;align-items:center;gap:7px;font-size:11px;color:#6f6977;padding:10px 0;text-decoration:underline;text-underline-offset:3px}.home-screen-preview{background:linear-gradient(145deg,#e2e1e4,#c9c7cd);height:380px;max-width:260px;border-radius:33px;margin:0 auto;padding:37px 20px 25px;position:relative;box-shadow:0 15px 35px #263c1614;border:5px solid #fff}.home-screen-preview .home-time{text-align:center;font-size:49px;letter-spacing:-.06em;color:#544f5b;font-weight:350}.home-screen-preview .home-date{text-align:center;color:#635e6b;font-size:10px}.home-screen-preview .home-user-app{display:flex;flex-direction:column;align-items:center;gap:9px;margin-top:35px}.home-user-app img{width:64px;height:64px;border-radius:18px;box-shadow:0 5px 15px #2f2d3318}.home-user-app span{font-size:12px;max-width:170px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.home-placeholder-row{display:flex;gap:13px;justify-content:center;margin-top:23px}.home-placeholder-row i{width:40px;height:40px;background:#ffffff3d;border:1px solid #ffffff44;border-radius:12px}.preview-label{text-align:center;margin-top:12px;font-size:10px;color:#9d98a5}.result-layout{display:grid;grid-template-columns:1fr 1fr;gap:55px;align-items:center}.result-icon{width:85px;height:85px;border-radius:24px;box-shadow:0 10px 25px #29262c20;margin-bottom:23px}.result-copy h2{font-size:37px;font-weight:550;letter-spacing:-.055em;word-break:break-word}.result-copy p{font-size:13px;line-height:1.8;color:#7e7788;margin:17px 0 24px}.result-options{display:grid;gap:10px}.result-option{border:1px solid var(--line);border-radius:12px;display:flex;align-items:center;gap:13px;text-align:left;padding:15px}.result-option>span{flex:1}.result-option strong{display:block;font-size:12px;font-weight:550}.result-option small{display:block;font-size:10px;color:#9993a1;margin-top:3px}.install-boundary{background:#f0eff1;border:1px solid #dddbdf;border-radius:14px;padding:23px;line-height:1.8;font-size:12px;color:#7e7787}.install-boundary strong{color:#3c3940;display:block;font-size:14px;margin:12px 0 8px}.install-boundary .btn{margin-top:21px;width:100%}
/* Library */
.library-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:30px}.library-head h1{font-size:42px;font-weight:550;letter-spacing:-.055em}.library-head p{font-size:13px;color:#827b8c;margin-top:9px}.library-plan{display:flex;align-items:center;gap:12px;padding:16px 21px;background:#fff;border:1px solid var(--line);border-radius:14px;margin-bottom:25px;font-size:12px}.library-plan .plan-description{flex:1;color:#878190}.library-plan strong{font-weight:600;color:#3b3840}.library-toolbar{display:flex;gap:15px;align-items:center;margin-bottom:23px}.search-field{position:relative;flex:1;max-width:330px}.search-field svg{position:absolute;left:14px;top:15px;color:#9994a1}.search-field input{padding-left:40px;font-size:12px;min-height:43px}.library-toolbar select{background:white;border:1px solid var(--line);border-radius:9px;padding:11px 13px;font-size:12px;outline:none;color:#827b8c;margin-left:auto}.library-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.library-card{border:1px solid var(--line);background:#fff;border-radius:18px;overflow:hidden}.library-card-top{padding:24px 23px 19px;display:flex;gap:13px;align-items:center}.library-card-top img{width:49px;height:49px;border-radius:14px}.library-card-top h3{font-size:16px;font-weight:550;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.4}.library-card-top p{font-size:10px;color:#9994a1;margin-top:4px}.library-card-body{padding:0 23px 19px}.library-card-body .tag{font-size:9px}.library-card-actions{display:flex;gap:8px;margin-top:19px}.library-card-actions .btn{flex:1;font-size:11px;padding:10px}.library-card-foot{border-top:1px solid var(--line);padding:11px 19px;display:flex;justify-content:space-between;gap:8px}.library-card-foot button{font-size:10px;color:#928d9a;display:flex;align-items:center;gap:5px}.library-card-foot button:hover{color:#37343b}.library-card-foot .delete:hover{color:#af5f4f}.empty-state{text-align:center;padding:75px 25px;background:#fff;border:1px dashed #d7d4da;border-radius:20px}.empty-state h2{font-size:25px;font-weight:550;margin:22px 0 12px;letter-spacing:-.04em}.empty-state p{color:#8e8897;font-size:13px;margin:0 auto 25px;max-width:370px}.empty-apps{display:flex;justify-content:center;gap:12px}.empty-apps img{width:48px;height:48px;border-radius:14px;transform:rotate(-9deg);opacity:.8}.empty-apps img:nth-child(2){transform:translateY(-8px) rotate(6deg)}.storage-note{padding:12px 17px;border-radius:9px;background:#fff4e0;color:#9c7d3c;font-size:11px;margin-bottom:20px}
/* Dialogs */
dialog{border:1px solid #dedce1;padding:0;max-width:calc(100vw - 32px);width:510px;max-height:calc(100dvh - 40px);border-radius:22px;box-shadow:0 25px 100px #17161924;color:var(--ink);background:white;overflow:auto}dialog::backdrop{background:#19171b57;backdrop-filter:blur(5px)}.dialog-header{display:flex;align-items:flex-start;justify-content:space-between;padding:27px 28px 0;gap:18px}.dialog-header .eyebrow{font-size:9px;color:#8b8594;margin-bottom:10px}.dialog-header h2{font-size:27px;font-weight:550;letter-spacing:-.045em}.dialog-header .icon-button{width:32px;height:32px}.dialog-body{padding:22px 28px 29px}.dialog-body p{font-size:13px;line-height:1.8;color:#7e7788}.dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:24px}.dialog-actions .btn{font-size:12px}.dialog-body .field-label{margin-top:19px}.checkout-summary{background:#f4f4f5;border-radius:12px;padding:20px;margin:20px 0;display:flex;justify-content:space-between;align-items:center}.checkout-summary h3{font-size:18px;font-weight:550}.checkout-summary small{font-size:11px;color:#8d8796;display:block;margin-top:4px}.checkout-summary strong{font-size:31px;letter-spacing:-.05em;font-weight:550}.checkout-plan-options{display:flex;gap:10px;margin-top:20px}.checkout-plan-option{border:1px solid #dddbdf;border-radius:12px;flex:1;text-align:left;padding:16px}.checkout-plan-option.selected{border-color:#5e5966;background:#f3f8ea}.checkout-plan-option strong{display:block;font-size:14px}.checkout-plan-option span{display:block;color:#8c8694;font-size:11px;margin-top:3px}.demo-warning{display:flex;gap:8px;align-items:flex-start;font-size:11px;color:#9a8558;background:#fbf6e9;border:1px solid #f0e6ce;padding:13px;border-radius:10px;margin-top:17px;line-height:1.7}.install-tabs{display:flex;gap:5px;background:#efeef1;border-radius:10px;padding:4px;margin:20px 0}.install-tabs button{flex:1;padding:10px;font-size:12px;border-radius:7px;color:#918b99}.install-tabs button.active{background:white;color:#413e46;box-shadow:0 2px 8px #302e340a}.install-steps{display:grid;gap:18px;margin:23px 0}.install-step{display:flex;gap:13px;align-items:flex-start}.install-step .step-num{background:#ecebee;border-color:#dddbdf;color:#5c5764}.install-step p{font-size:12px;color:#86808f;line-height:1.65}.install-step strong{display:block;font-size:12px;font-weight:550;color:#47434c;margin-bottom:3px}.install-visual{background:#eae9eb;border-radius:15px;padding:22px;text-align:center}.install-visual img{width:58px;height:58px;border-radius:16px;margin:auto}.install-visual span{display:block;font-size:12px;color:#5f5a67;margin-top:9px}.info-list{font-size:12px;color:#807989;line-height:1.85;display:grid;gap:15px;margin-top:21px}.info-list strong{display:block;color:#423e47;font-weight:550}.prototype-controls{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.prototype-controls .btn{font-size:11px}.fullscreen-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0;overflow:hidden;background:white}.fullscreen-dialog iframe{width:100%;height:100%;border:0;display:block}.preview-close{position:fixed;right:18px;top:18px;z-index:10;width:37px;height:37px;display:grid;place-items:center;background:#ffffffeb;border:1px solid #cbc8cf;border-radius:50%;box-shadow:0 4px 15px #00000012;color:#2f2d33}.example-dialog{width:880px}.example-layout{display:grid;grid-template-columns:.85fr 1fr;gap:30px;align-items:center}.example-description{padding-left:5px}.example-description img{width:62px;height:62px;border-radius:18px;margin-bottom:20px}.example-description h3{font-size:29px;font-weight:550;letter-spacing:-.05em;margin:0 0 14px}.example-description .actions{margin-top:25px}.example-description .tiny{color:#9f9aa7;margin-top:18px}.example-dialog .phone-shell{width:260px;height:468px}.toast{position:fixed;left:50%;bottom:26px;transform:translate(-50%,20px);background:#242227;color:#fff;border:1px solid #ffffff22;border-radius:12px;padding:13px 20px;z-index:250;box-shadow:0 7px 30px #1f1d2233;font-size:12px;max-width:min(600px,calc(100% - 32px));opacity:0;pointer-events:none;transition:opacity .25s,transform .25s;text-align:center}.toast.visible{opacity:1;transform:translate(-50%,0)}.toast.error{background:#6c4335}.appview-footer{display:flex;justify-content:space-between;gap:20px;margin-top:20px;font-size:10px;color:#9f9aa6}.loading-spinner{width:16px;height:16px;border:2px solid #d1ced4;border-top-color:#5a5560;border-radius:50%;animation:spin .8s linear infinite;display:inline-block}
@keyframes spin{to{transform:rotate(360deg)}}@keyframes tileEnter{from{opacity:0;scale:.88;translate:0 10px}to{opacity:1;scale:1;translate:0 0}}
@media(min-width:1600px){.hero{padding-top:90px}.showcase-track{justify-content:center}}
@media(max-width:1100px){.nav-links{gap:22px}.hero h1{font-size:82px}.hero-line{min-height:99px;gap:18px}.hero-icon{width:68px;height:68px}.benefit-layout{gap:40px}.benefit-copy h2{font-size:44px}.process-layout{gap:36px}.process-title{font-size:44px}.ownership-grid{grid-template-columns:1fr 1fr 1fr}.feature-card{padding:23px}.gallery-grid{grid-template-columns:repeat(2,1fr)}.final-decoration.a{left:28px;width:57px;height:57px}.final-decoration.b{right:28px;width:57px;height:57px}.final-decoration.c,.final-decoration.d{display:none}.faq{gap:45px}.library-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:850px){.wrap{width:calc(100% - 44px)}.nav-links{display:none}.nav-inner{height:70px}.mobile-menu{top:70px}.menu-toggle{display:inline-flex}.nav-actions{gap:12px}.brand{font-size:22px}.brand-mark{width:30px;height:30px}.hero{padding:55px 0 28px}.hero h1{font-size:64px}.hero-line{min-height:80px;gap:14px}.hero-icon{width:54px;height:54px}.hero-description{font-size:16px;max-width:480px;margin-top:24px}.section{padding:75px 0}.section-heading h2,.display-title{font-size:40px}.benefit-layout{grid-template-columns:1fr;gap:40px}.benefit-copy h2{max-width:650px;font-size:43px}.benefit-copy p{max-width:520px}.before-after{min-height:330px}.process-layout{grid-template-columns:1fr;gap:32px}.process-title{font-size:43px;max-width:600px;margin-bottom:25px}.process-steps{grid-template-columns:repeat(3,1fr);gap:8px}.process-step{padding:13px;display:block}.process-step strong{display:block;font-size:13px;margin-top:12px}.process-step .step-num{margin-bottom:10px}.process-step p{display:none!important}.process-visual{min-height:400px}.ownership-grid{grid-template-columns:1fr 1fr}.feature-card:first-child{grid-column:span 2;display:grid;grid-template-columns:1fr 1fr;align-items:center;min-height:240px}.feature-card:first-child .feature-visual{grid-row:span 2;margin:0}.feature-card:first-child p{align-self:start}.feature-card:first-child h3{align-self:end;margin-bottom:0}.pricing-grid{gap:10px}.price-card{padding:21px}.price-card .allocation{font-size:15px}.price-features{font-size:11px}.price-card .price-caption{font-size:11px}.faq{grid-template-columns:1fr;gap:32px}.faq-title h2{font-size:40px}.faq-title p{max-width:400px}.final-cta h2{font-size:48px}.final-cta{padding:70px 25px}.final-decoration{display:none}.input-grid,.preview-layout,.customize-grid,.result-layout{gap:28px}.workspace-content{padding:25px}.input-side{padding:18px}.phone-shell{width:250px;height:470px}.workspace-footer{padding:18px 25px}.example-layout{gap:20px}.source-row{gap:18px}.source-note{font-size:9px}}
@media(max-width:600px){.wrap{width:calc(100% - 36px)}.nav-inner{height:65px;gap:10px}.brand{font-size:21px}.brand-mark{width:29px;height:29px;border-radius:9px}.nav-actions{gap:10px}.nav-actions>.btn{min-height:35px;padding:9px 12px;font-size:11px}.library-nav{font-size:11px}.library-nav .counter{display:none}.menu-toggle{width:33px;height:33px}.mobile-menu{top:65px}.hero{padding:42px 0 23px}.hero-eyebrow{font-size:10px;margin-bottom:22px}.hero h1{font-size:45px;letter-spacing:-.063em}.hero-line{gap:8px;min-height:58px;white-space:nowrap}.hero-icon{width:37px;height:37px;box-shadow:0 4px 10px #1a181c1a,0 0 0 2px white}.hero-icon+.hero-icon{margin-left:-6px}.icon-stack{margin:0}.hero-line.second .hero-icon{width:32px;height:32px}.hero-description{font-size:14px;max-width:320px;line-height:1.7;margin:23px auto}.hero .actions{gap:8px}.hero .btn{min-height:45px;padding:12px 16px;font-size:12px;gap:9px}.hero .micro{gap:10px;font-size:9px;margin-top:17px}.hero .micro svg{width:12px;height:12px}.hero .micro>span:last-child{display:none}.showcase{padding-top:5px}.showcase-track{gap:14px;padding:19px 19px}.showcase-card{flex-basis:204px}.showcase-card .card-canvas{height:256px;padding:14px;border-radius:18px}.card-canvas .preview-paper{padding:15px 12px}.mini-timer{width:132px;height:132px;font-size:31px}.mini-trip-banner{margin:-15px -12px 13px}.mini-wheel{width:130px;height:130px}.showcase-card .card-caption{padding:12px 0}.showcase-foot{font-size:10px}.source-row{gap:14px;padding:25px 20px 12px;font-size:12px;max-width:360px;margin:auto}.source-row .source-intro{width:100%;text-align:center;font-size:10px}.source-note{padding-inline:25px;max-width:360px;margin:auto;line-height:1.7;padding-bottom:22px}.section{padding:60px 0}.section-heading{display:block;margin-bottom:29px}.section-heading h2,.display-title{font-size:34px;letter-spacing:-.055em}.section-heading p{font-size:13px;margin-top:17px;max-width:330px}.section-heading .eyebrow{font-size:9px;margin-bottom:15px}.benefit{margin-top:5px}.benefit-copy h2{font-size:35px;max-width:340px}.benefit-copy p{font-size:14px;margin-top:18px}.benefit-points{gap:15px;font-size:10px}.before-after{padding:19px;min-height:320px;gap:10px}.chat-stack{padding:0}.chat-stack div{font-size:8px;padding:11px 8px}.on-home{min-height:243px;border-radius:22px;padding:15px 10px}.on-home img{width:52px;height:52px;border-radius:15px}.on-home .home-time{font-size:29px}.transition-arrow{width:31px;height:31px}.comparison-labels{bottom:13px;font-size:9px}.process-title{font-size:36px;max-width:320px;margin-top:13px}.process-steps{gap:4px}.process-step{padding:11px}.process-step strong{font-size:11px;line-height:1.6}.process-step .step-num{width:22px;height:22px;font-size:9px}.process-visual{min-height:380px;padding:20px;border-radius:21px}.window-body{padding:20px}.window-body h4{font-size:14px}.code-mini{font-size:9px;padding:15px 11px}.visual-caption{font-size:8px}.gallery-grid{grid-template-columns:1fr;gap:11px}.gallery-card{padding:18px;border-radius:14px}.gallery-card img{width:46px;height:46px;border-radius:13px}.gallery-card h3{font-size:14px}.gallery-card p{font-size:11px}.gallery-filters{gap:6px}.filter{padding:7px 13px;font-size:11px}.gallery-note{font-size:10px}.ownership{padding-top:0}.ownership-grid{grid-template-columns:1fr;gap:13px}.feature-card,.feature-card:first-child{display:block;grid-column:auto;min-height:270px;padding:25px}.feature-card .feature-visual,.feature-card:first-child .feature-visual{height:130px;margin-bottom:17px}.feature-card p{max-width:290px;font-size:12px}.feature-card h3{font-size:22px}.pricing{padding-top:35px}.pricing-title{text-align:left;margin-bottom:29px}.pricing-title h2{font-size:35px;max-width:300px}.pricing-title p{font-size:13px;margin-top:15px}.pricing-grid{grid-template-columns:1fr;gap:15px}.price-card{padding:25px}.price-card h3{font-size:20px}.price-card .price-caption{font-size:12px}.price-amount{font-size:48px;margin-top:22px}.price-card .allocation{font-size:18px}.price-features{font-size:12px;gap:12px}.price-card .btn{min-height:46px;font-size:13px}.price-footnote{font-size:10px;line-height:1.8;padding:0 7px}.faq{gap:24px}.faq-title h2{font-size:34px}.faq-list summary{font-size:14px;padding-block:20px}.faq-list details p{font-size:12px}.final-cta{padding:52px 20px;margin-bottom:50px;border-radius:22px}.final-cta h2{font-size:40px}.final-cta p{font-size:13px;max-width:250px;margin:19px auto 25px}.final-cta .btn{font-size:12px}.footer-main{flex-direction:column;gap:30px;padding-bottom:25px}.footer-main p{font-size:11px;margin-top:10px}.footer-links{gap:60px}.footer-bottom{flex-direction:column;gap:10px;padding-bottom:24px;font-size:9px}.app-view{padding:23px 0 50px;min-height:calc(100vh - 65px)}.app-container{width:calc(100% - 28px)}.app-topbar{margin-bottom:23px}.local-badge{font-size:9px;gap:4px}.back-button{font-size:11px}.workspace-title{margin-bottom:24px}.workspace-title h1{font-size:30px}.workspace-title p{font-size:12px;max-width:270px}.workspace-title .tag{font-size:9px;white-space:nowrap}.flow-steps{gap:5px;margin-bottom:22px;justify-content:space-between}.flow-step{gap:5px;font-size:9px}.flow-step .num{width:21px;height:21px;font-size:9px}.flow-line{flex:1;width:auto;margin-inline:0;max-width:20px}.workspace-card{border-radius:17px}.workspace-content{padding:20px}.input-grid{grid-template-columns:1fr;gap:20px}.input-side{padding:19px}.input-side h3{font-size:20px;margin:11px 0}.input-side p{font-size:11px}.privacy-small{padding-top:15px}.code-area{min-height:250px;font-size:10px}.workspace-footer{padding:15px 20px;flex-wrap:wrap;gap:13px}.workspace-footer>.btn{flex:1;min-width:120px;font-size:12px}.workspace-footer .tiny{font-size:9px;order:3;width:100%}.input-tabs button{font-size:11px;padding:9px 10px}.preview-layout,.customize-grid,.result-layout{grid-template-columns:1fr;gap:28px}.preview-description h2{font-size:27px}.preview-description p{font-size:12px}.preview-checks{margin:18px 0}.preview-device-wrapper .phone-shell{width:260px;height:475px}.preview-device-wrapper{margin-bottom:4px}.replace-panel{margin-top:17px;padding-top:17px}.customize-fields .field-block{margin-bottom:23px}.home-screen-preview{height:340px;width:230px}.result-copy h2{font-size:31px}.result-icon{width:69px;height:69px;border-radius:19px}.result-copy p{font-size:12px}.result-option{padding:12px}.install-boundary{padding:19px}.library-head{align-items:flex-start}.library-head h1{font-size:33px}.library-head p{font-size:11px;max-width:220px}.library-head>.btn{font-size:11px;padding:10px 13px;min-height:40px}.library-plan{padding:13px;gap:7px;flex-wrap:wrap}.library-plan .plan-description{font-size:10px}.library-plan .btn{font-size:10px;padding:8px 10px;min-height:33px}.library-grid{grid-template-columns:1fr;gap:14px}.library-toolbar{gap:9px}.library-toolbar .btn{font-size:10px;padding:10px 12px;min-height:40px}.library-toolbar select{max-width:105px;font-size:10px;padding:10px;min-height:40px}.search-field{max-width:none}.search-field input{min-height:40px;font-size:11px;padding-left:34px}.search-field svg{left:11px;top:13px;width:15px;height:15px}.library-card-top h3{max-width:220px}.empty-state{padding:55px 20px}.empty-state h2{font-size:23px}.empty-state p{font-size:12px}.dialog-header{padding:23px 22px 0}.dialog-header h2{font-size:24px}.dialog-body{padding:20px 22px 24px}.dialog-body p{font-size:12px}.dialog-actions .btn{font-size:11px;padding:12px 15px}.example-layout{grid-template-columns:1fr;gap:25px}.example-description{padding:0}.example-description img{float:left;width:46px;height:46px;margin:0 15px 10px 0;border-radius:13px}.example-description h3{font-size:25px;margin-top:3px;margin-bottom:10px}.example-description p{clear:both}.example-description .actions{margin-top:18px}.example-description .tiny{margin-top:12px}.example-dialog .phone-shell{width:250px;height:447px}.example-dialog .dialog-body{padding-top:13px}.checkout-plan-option{padding:12px}.checkout-plan-option strong{font-size:12px}.checkout-plan-option span{font-size:10px}.appview-footer{font-size:9px;gap:10px}.preview-close{right:12px;top:12px}.toast{bottom:18px;font-size:11px;width:max-content}.walkthrough-save{right:10px;bottom:40px;padding:10px;font-size:9px}}
@media(max-width:370px){.hero h1{font-size:39px}.hero-line{min-height:52px;gap:7px}.hero-icon{width:32px;height:32px}.hero-line.second .hero-icon{width:27px;height:27px}.hero-description{font-size:13px;max-width:280px}.hero .btn{font-size:11px;padding:12px}.hero .micro{font-size:8px}.nav-actions{gap:6px}.library-nav{display:none}.flow-step{font-size:8px}.flow-line{max-width:10px}.app-topbar .local-badge{font-size:8px}.library-head h1{font-size:29px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}}
/* Keep all six icon choices in one coherent row on narrow screens. */
@media(max-width:600px){.icon-picker{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}.icon-choice{width:100%;height:auto;aspect-ratio:1;padding:3px;border-radius:13px}.icon-choice img{width:100%;height:auto;aspect-ratio:1;border-radius:10px}}

/* MakeTap v1.1 — brighter identities, mobile-first ergonomics.
   These rules extend the existing design rather than replacing its visual language. */
:root { --touch:48px; --dock-height:72px; --visible-height:100dvh; --keyboard-inset:0px; }
.mobile-dock, .mobile-example-actions, .preview-mobile-label { display:none; }
button, a, summary, input, textarea, select { -webkit-tap-highlight-color:transparent; }
input, textarea, select { scroll-margin-block:110px; }
.icon-button { width:44px; height:44px; }
.dialog-header .icon-button { width:44px; height:44px; }
.text-input:focus, .code-area:focus { border-color:#787181; box-shadow:0 0 0 3px #d7f07825; }
.code-area:focus-visible, .text-input:focus-visible { outline:2px solid var(--focus-ring); outline-offset:2px; }
.hero-icon:focus-visible { z-index:5; }
.color-picker { flex-wrap:wrap; gap:8px; }
.color-swatch { position:relative; width:44px; height:44px; flex-shrink:0; background:transparent; border:0; box-shadow:none; border-radius:50%; }
.color-swatch::before { content:''; position:absolute; inset:7px; border-radius:50%; background:var(--swatch); box-shadow:inset 0 0 0 1px #00000006; }
.color-swatch.selected { box-shadow:none; }
.color-swatch.selected::before { box-shadow:0 0 0 3px white, 0 0 0 4.5px #3a373e; }
.color-swatch.selected::after { content:'✓'; position:absolute; inset:0; display:grid; place-items:center; font-size:17px; font-weight:700; color:var(--swatch-ink,#2a272d); }
.icon-choice.selected { border-color:#645f6c; background:#f4f3f5; }
.home-screen-preview { background:linear-gradient(155deg,#edecee 0%,#eef0fb 58%,#fff0e0 100%); }
.before-after .on-home { background:linear-gradient(155deg,#eeedf0,#e8eff9); }
.preview-detail-disclosure { margin:14px 0 20px; }
.preview-detail-disclosure summary { cursor:pointer; display:flex; align-items:center; justify-content:space-between; min-height:44px; font-size:12px; color:#625d6a; list-style:none; gap:10px; }
.preview-detail-disclosure summary::-webkit-details-marker { display:none; }
.preview-detail-disclosure summary::after { content:'+'; font-size:20px; flex-shrink:0; }
.preview-detail-disclosure[open] summary::after { content:'−'; }
.preview-detail-disclosure .preview-checks { margin:6px 0 15px; }
.field-help, .workspace-title p, .preview-description p, .preview-checks, .result-copy p { color:#686270; }
.preview-checks small, .label-row small, .preview-label, .appview-footer { color:#76707f; }
.field-label { font-size:13px; }
.file-loaded .icon-button { width:44px!important; height:44px!important; }
.library-card-actions .icon-button { width:44px!important; height:44px!important; }
.result-options strong, .library-card h3 { overflow-wrap:anywhere; }
.library-card-top>div { min-width:0; }
.library-card-top h3 { white-space:normal; }
.preview-description h2 { overflow-wrap:anywhere; }
.toast { pointer-events:none; }
body.dialog-open { position:fixed; top:var(--locked-scroll,0); left:0; right:0; overflow:hidden; }

@media (hover:hover) {
 .color-swatch:hover::before { transform:scale(1.1); }
}
@media (hover:none) {
 .hero-icon:hover, .showcase-card:hover, .btn:hover, .icon-button:hover { transform:none; }
 .hero-icon:hover .tile-tip { opacity:0; }
 .btn:active, .icon-button:active, .filter:active, .demo-choice:active, .library-card-foot button:active { opacity:.72; }
}

@media (max-width:850px) {
 .process-step { min-height:80px; }
 .showcase-controls .icon-button { width:44px; height:44px; }
 .filter { min-height:44px; }
 .footer-links a, .footer-links button { min-height:44px; display:flex; align-items:center; }
}

@media (max-width:600px) {
 html { scroll-padding-top:88px; scroll-padding-bottom:110px; }
 body { font-size:15px; -webkit-text-size-adjust:100%; }
 .wrap, .app-container { width:calc(100% - 32px); }
 /* Keep only the brand, one readable CTA and a full-size menu in the top bar. */
 .site-header { padding-top:env(safe-area-inset-top,0px); }
 .nav-inner { height:72px; gap:12px; }
 .brand { min-height:48px; font-size:22px; gap:8px; }
 .brand-mark { width:30px; height:30px; }
 .nav-actions { gap:8px; }
 .nav-actions>.library-nav { display:none; }
 .nav-actions>.btn { min-height:48px; padding:12px 15px; font-size:13px; }
 .nav-actions>.btn svg { display:none; }
 .menu-toggle { width:48px; height:48px; }
 .mobile-menu { top:100%; padding:12px 16px 20px; max-height:calc(var(--visible-height) - 90px); overflow:auto; overscroll-behavior:contain; }
 .mobile-menu a, .mobile-menu button { min-height:52px; display:flex; align-items:center; padding:12px 16px; border-radius:10px; font-size:16px; }
 .mobile-menu a:active, .mobile-menu button:active { background:var(--soft); }
 body[data-view="create"] .nav-actions>.btn { display:none; }
 /* The headline keeps inline app tiles. Tiles have separate 48px hit targets. */
 .hero { padding-top:36px; padding-bottom:22px; }
 .hero-eyebrow { font-size:12px; margin-bottom:22px; }
 .hero h1 { font-size:clamp(28px,8.7vw,38px); letter-spacing:-.06em; }
 .hero-line, .hero-line.second { min-height:62px; gap:8px; }
 .icon-stack { gap:2px; margin:0; flex-shrink:0; }
 .hero-icon, .hero-line.second .hero-icon { width:48px; height:48px; padding:4px; transform:none; box-shadow:none; border-radius:12px; }
 .hero-icon+.hero-icon { margin-left:0; }
 .hero-icon img { transform:rotate(var(--rotation)); box-shadow:0 5px 12px #1c1a1e17; }
 .hero-line.second .hero-icon:last-child { display:none; }
 .hero-icon:hover { transform:none; box-shadow:none; }
 .hero-description { font-size:15px; max-width:330px; line-height:1.75; margin:22px auto 24px; color:#6d6972; }
 .hero .actions { gap:10px; }
 .hero .btn { min-height:52px; font-size:14px; padding:13px 17px; gap:8px; }
 .hero .micro { font-size:11px; gap:14px; margin-top:17px; }
 .hero .micro>span:last-child { display:none; }
 .showcase-track { scroll-padding-inline:16px; padding-left:16px; padding-right:16px; touch-action:pan-x pan-y; }
 .showcase-card { flex-basis:min(72vw,270px); }
 .showcase-card .card-canvas { height:290px; }
 .showcase-card:nth-child(even) { margin-top:16px; }
 .card-caption strong { font-size:14px; }
 .card-caption small { font-size:11px; }
 .card-caption img { width:36px; height:36px; border-radius:10px; }
 .showcase-foot { font-size:11px; gap:12px; }
 .showcase-controls { gap:8px; }
 .showcase-controls .icon-button { width:48px; height:48px; }
 .source-row { font-size:13px; gap:16px; }
 .source-note { font-size:11px; }
 .section-heading p, .benefit-copy p, .feature-card p { font-size:14px; }
 .benefit-points { font-size:12px; flex-wrap:wrap; gap:12px; }
 .process-step { min-height:88px; padding:13px 10px; }
 .process-step strong { font-size:12px; line-height:1.45; }
 .process-step .step-num { width:26px; height:26px; font-size:11px; }
 .process-visual { min-height:350px; }
 .gallery-filters { flex-wrap:nowrap; overflow:auto; gap:8px; padding:4px 1px 8px; scrollbar-width:none; }
 .filter { flex-shrink:0; min-height:48px; padding:12px 16px; font-size:13px; }
 .gallery-card { min-height:100px; padding:18px; }
 .gallery-card h3 { font-size:16px; }
 .gallery-card p { font-size:12px; }
 .gallery-card img { width:52px; height:52px; }
 .gallery-note { font-size:12px; }
 .price-card .btn { min-height:52px; font-size:15px; }
 .price-card .price-caption, .price-features { font-size:14px; line-height:1.65; }
 .price-footnote { font-size:12px; }
 .price-amount { margin-top:20px; }
 .faq-list summary { min-height:64px; font-size:15px; gap:18px; }
 .faq-list details p { font-size:14px; }
 .final-cta .btn { min-height:52px; font-size:14px; }
 .footer-links { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; gap:20px 24px; }
 .footer-links strong { font-size:12px; }
 .footer-links a, .footer-links button { min-height:48px; font-size:13px; padding-block:10px; }
 .footer-bottom { font-size:11px; padding-bottom:16px; }
 .prototype-link { min-height:48px; }
 #homeView { padding-bottom:calc(var(--dock-height) + env(safe-area-inset-bottom,0px) + 16px); }
 /* Bottom navigation stays in thumb reach, while the editor gets its own action bar. */
 .mobile-dock { display:grid; grid-template-columns:1fr 1.25fr 1fr; align-items:center; gap:8px; position:fixed; z-index:55; bottom:0; left:0; right:0; padding:8px max(16px,env(safe-area-inset-right,0px)) calc(8px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px)); min-height:var(--dock-height); background:#fffffffa; border-top:1px solid var(--line); box-shadow:0 -6px 28px #211f2306; }
 .mobile-dock button { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; min-height:52px; border-radius:12px; font-size:11px; color:#66616e; }
 .mobile-dock button.active { color:#242226; background:#edecee; }
 .mobile-dock .dock-create { color:var(--ink); background:var(--accent); flex-direction:row; gap:7px; font-size:14px; font-weight:600; }
 body[data-view="create"] .mobile-dock, body.dialog-open .mobile-dock, body.keyboard-open .mobile-dock { display:none; }
 /* Touch targets do not shrink when text wraps. Inputs stay at 16px on phones. */
 .btn, .btn.small { min-height:48px; font-size:14px; padding:12px 16px; white-space:normal; }
 .icon-button { min-width:48px; width:48px; height:48px; }
 .text-link, .back-button, .icon-upload, .input-toolbar button, .appview-footer button { min-height:48px; display:inline-flex; align-items:center; padding-block:10px; font-size:13px; }
 input:not([type="file"]), select, textarea, .text-input, .code-area { font-size:16px; }
 .text-input, .library-toolbar select { min-height:50px; }
 .app-view { padding:14px 0 calc(130px + env(safe-area-inset-bottom,0px)); min-height:calc(100dvh - 72px); }
 .app-topbar { min-height:48px; margin-bottom:16px; gap:10px; align-items:center; }
 .local-badge { font-size:10px; max-width:155px; line-height:1.5; }
 .back-button { color:#645e6c; font-size:12px; }
 .storage-note { font-size:12px; line-height:1.65; }
 .workspace-title { margin-bottom:20px; gap:12px; }
 .workspace-title h1 { font-size:29px; line-height:1.13; }
 .workspace-title p { font-size:14px; line-height:1.65; margin-top:10px; }
 .workspace-title .tag { font-size:10px; padding:6px 8px; }
 .flow-steps { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:5px; margin-bottom:20px; }
 .flow-line { display:none; }
 .flow-step { display:flex; flex-direction:column; justify-content:center; gap:7px; font-size:11px; color:#7c7586; text-align:center; white-space:nowrap; }
 .flow-step .num { width:28px; height:28px; font-size:12px; }
 .workspace-card { border-radius:18px; overflow:visible; }
 .workspace-content { padding:18px; }
 .input-tabs { gap:4px; padding:4px; margin-bottom:12px; }
 .input-tabs button { min-height:48px; font-size:14px; padding:10px 8px; gap:7px; }
 .input-toolbar { gap:12px; flex-wrap:wrap; }
 .input-toolbar button { font-size:12px; }
 .field-label { font-size:14px; }
 .field-help { font-size:12px; line-height:1.65; }
 .code-area { min-height:220px; line-height:1.65; padding:14px; resize:vertical; }
 .input-side { padding:19px; }
 .input-side h3 { font-size:22px; }
 .input-side p { font-size:13px; }
 .demo-choice { min-height:58px; padding:10px 12px; }
 .demo-choice span { font-size:14px; }
 .demo-choice img { width:36px; height:36px; }
 .privacy-small { font-size:11px; }
 .upload-zone { min-height:240px; padding:20px; }
 .upload-zone p { font-size:13px; }
 .workspace-footer { position:fixed; z-index:60; inset:auto 0 var(--keyboard-inset) 0; display:flex; flex-wrap:nowrap; align-items:center; gap:10px; padding:12px max(16px,env(safe-area-inset-right,0px)) calc(12px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px)); background:#fffffffa; border-top:1px solid var(--line); box-shadow:0 -7px 24px #25232806; }
 .workspace-footer>.btn { min-height:52px; min-width:0; font-size:14px; padding:12px 14px; flex:1; }
 .workspace-footer>.btn.primary { flex:1.5; }
 .workspace-footer>.tiny { display:none; }
 .workspace-footer>.btn:only-of-type { flex:1; }
 body.keyboard-open .workspace-footer { padding-bottom:12px; }
 .appview-footer { font-size:11px; line-height:1.65; flex-wrap:wrap; gap:4px; }
 .appview-footer button { font-size:12px; }
 /* Mobile preview is full-width. No tiny phone inside the user's actual phone. */
 .preview-layout { display:flex; flex-direction:column; gap:22px; }
 .preview-device-wrapper { order:-1; width:100%; margin:0; }
 .preview-device-wrapper .phone-shell, .example-dialog .phone-shell { width:100%; max-width:none; height:clamp(340px,57dvh,520px); border:1px solid #dbd9de; padding:0; border-radius:18px; box-shadow:0 8px 25px #253d1608; }
 .phone-shell:before, .phone-shell:after { display:none; }
 .phone-shell iframe { border-radius:17px; }
 .preview-device-wrapper .tiny { font-size:11px; margin-top:9px; }
 .preview-description { width:100%; }
 .preview-description h2 { font-size:26px; margin-top:8px; }
 .preview-description p { font-size:14px; }
 .preview-description>.btn { width:100%; min-height:50px; }
 .preview-detail-disclosure { border-block:1px solid var(--line); margin:16px 0; }
 .preview-detail-disclosure summary { min-height:52px; font-size:13px; }
 .preview-checks { font-size:13px; }
 .preview-checks small { font-size:12px; }
 .replace-panel { margin-top:16px; padding-top:8px; }
 .replace-panel p { font-size:12px; }
 .replace-panel .text-link { min-height:48px; font-size:14px; }
 .customize-grid { display:flex; flex-direction:column; gap:24px; }
 .customize-preview { order:-1; }
 .home-screen-preview { width:100%; max-width:none; height:auto; padding:20px; border:0; border-radius:15px; box-shadow:none; }
 .home-screen-preview .home-time, .home-screen-preview .home-date, .home-placeholder-row { display:none; }
 .home-screen-preview .home-user-app { flex-direction:row; align-items:center; margin:0; gap:17px; min-height:64px; }
 .home-user-app img { width:64px; height:64px; flex-shrink:0; border-radius:17px; }
 .home-user-app span { max-width:calc(100% - 81px); font-size:18px; font-weight:550; }
 .preview-label { font-size:11px; margin-top:8px; }
 .customize-fields .field-block { margin-bottom:24px; }
 .label-row small { font-size:12px; }
 .icon-picker { grid-template-columns:repeat(6,minmax(0,1fr)); gap:6px; }
 .icon-choice { min-width:48px; width:100%; height:50px; aspect-ratio:auto; padding:3px; border-radius:14px; }
 .icon-choice img { width:40px; height:40px; max-width:100%; margin:auto; border-radius:11px; }
 .icon-upload { font-size:14px; margin-top:8px; }
 .color-picker { gap:8px; }
 .color-swatch { width:44px; height:44px; }
 .inline-message { font-size:12px; line-height:1.7; }
 .result-copy h2 { font-size:30px; }
 .result-copy p, .install-boundary { font-size:14px; }
 .result-option { min-height:68px; padding:14px; gap:12px; }
 .result-option strong { font-size:14px; }
 .result-option small { font-size:12px; line-height:1.5; }
 .install-boundary .btn { min-height:52px; }
 /* Library: a full-width search field, useful sort control and large actions. */
 .library-head { margin-bottom:20px; }
 .library-head h1 { font-size:34px; }
 .library-head p { font-size:14px; max-width:none; }
 .library-head>.btn { display:none; }
 .library-plan { gap:10px; padding:16px; }
 .library-plan .plan-description { font-size:13px; }
 .library-plan .btn { min-height:48px; width:100%; font-size:14px; }
 .library-plan .text-link { font-size:13px; }
 .library-toolbar { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
 .search-field { grid-column:1 / -1; width:100%; }
 .search-field input { min-height:52px; font-size:16px; padding-left:42px; }
 .search-field svg { left:15px; top:18px; width:18px; height:18px; }
 .library-toolbar .btn { min-height:48px; font-size:14px; }
 .library-toolbar select { width:100%; max-width:none; margin:0; font-size:14px; padding:10px 12px; }
 .library-card { overflow:hidden; }
 .library-card-top h3 { font-size:18px; max-width:none; }
 .library-card-top p { font-size:12px; }
 .library-card-actions { display:flex; gap:8px; }
 .library-card-actions .btn { min-height:48px; font-size:14px; flex:1; padding:10px; }
 .library-card-actions .icon-button { min-width:48px; width:48px!important; height:48px!important; }
 .library-card-foot { padding:8px 12px; gap:8px; }
 .library-card-foot button { display:flex; align-items:center; justify-content:center; min-height:48px; padding:10px 5px; font-size:12px; gap:6px; }
 .library-card-foot button.delete { min-width:48px; margin-left:auto; }
 .empty-state p { font-size:14px; }
 /* Bottom sheets: scroll inside the sheet, keep the close and action controls reachable. */
 dialog:not(.fullscreen-dialog) { width:100%; max-width:100%; max-height:calc(var(--visible-height) - 16px); margin:0; inset:auto 0 var(--keyboard-inset); border-radius:24px 24px 0 0; border:1px solid var(--line); border-bottom:0; overflow:hidden; }
 dialog[open]:not(.fullscreen-dialog) { display:flex; flex-direction:column; }
 .dialog-header { padding:20px 20px 14px; background:#fff; border-bottom:1px solid var(--line); flex-shrink:0; gap:14px; }
 .dialog-header h2 { font-size:25px; line-height:1.15; overflow-wrap:anywhere; }
 .dialog-header .eyebrow { font-size:10px; line-height:1.5; max-width:240px; }
 .dialog-header .icon-button { width:48px; height:48px; }
 .dialog-body { padding:20px 20px calc(24px + env(safe-area-inset-bottom,0px)); overflow:auto; overscroll-behavior-y:contain; -webkit-overflow-scrolling:touch; min-height:0; }
 .dialog-body p { font-size:14px; color:#6a6472; }
 .dialog-body .tiny, .demo-warning { font-size:12px; }
 .dialog-actions .btn { min-height:50px; font-size:14px; flex:1; padding:12px; }
 .checkout-plan-options { gap:10px; }
 .checkout-plan-option { min-height:95px; padding:15px 12px; }
 .checkout-plan-option strong { font-size:16px; }
 .checkout-plan-option span { font-size:12px; }
 .checkout-summary { padding:18px; }
 .checkout-summary small { font-size:12px; }
 .checkout-summary strong { font-size:32px; }
 #checkoutBody>.btn { position:sticky; bottom:0; z-index:2; min-height:54px; box-shadow:0 0 0 8px #fff; }
 .install-tabs button { min-height:48px; font-size:13px; }
 .install-step p { font-size:13px; }
 .install-step strong { font-size:14px; }
 .info-list { font-size:14px; }
 .prototype-controls .btn { font-size:13px; }
 .example-layout { display:flex; flex-direction:column; gap:20px; }
 .example-description { order:1; width:100%; }
 .example-description img { width:48px; height:48px; }
 .example-description h3 { font-size:25px; }
 .example-description .actions { display:none; }
 .example-dialog .dialog-body { padding:16px 16px 20px; }
 .example-dialog .phone-shell { order:0; flex-shrink:0; }
 .example-description .tiny { font-size:11px; }
 .mobile-example-actions { display:flex; gap:10px; padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px)); border-top:1px solid var(--line); flex-shrink:0; background:white; }
 .mobile-example-actions .btn { min-height:52px; }
 .mobile-example-actions .primary { flex:1; }
 .mobile-example-actions .secondary { width:52px; }
 .fullscreen-dialog { inset:0; height:100dvh; height:var(--visible-height); max-height:var(--visible-height); width:100%; max-width:100%; padding-top:calc(60px + env(safe-area-inset-top,0px)); }
 .preview-mobile-label { display:flex; align-items:center; position:absolute; inset:env(safe-area-inset-top,0px) 68px auto 16px; height:60px; font-size:13px; color:#5f5a67; }
 .fullscreen-dialog iframe { height:100%; }
 .preview-close { width:48px; height:48px; position:absolute; right:max(12px,env(safe-area-inset-right,0px)); top:calc(6px + env(safe-area-inset-top,0px)); box-shadow:none; }
 .toast { bottom:calc(92px + env(safe-area-inset-bottom,0px) + var(--keyboard-inset)); font-size:13px; line-height:1.6; padding:13px 17px; }
 body.dialog-open .toast { display:none; }
}
@media (max-width:379px) {
 .hero-line,.hero-line.second { gap:5px; }
 .hero .actions { display:grid; grid-template-columns:1fr; max-width:300px; margin-inline:auto; }
 .hero .btn { min-height:52px; }
 .hero-description { font-size:14px; }
 .icon-picker { grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
 .icon-choice { width:100%; height:56px; }
 .workspace-title { flex-wrap:wrap; gap:10px; }
 .workspace-title h1 { font-size:28px; }
 .local-badge { font-size:9px; max-width:130px; }
 .flow-step { font-size:10px; }
 .workspace-footer { gap:8px; }
 .workspace-footer>.btn { font-size:13px; padding:11px 9px; }
 .dialog-header,.dialog-body { padding-left:16px; padding-right:16px; }
 .dialog-header h2 { font-size:23px; }
 .checkout-plan-options { flex-direction:column; }
 .checkout-plan-option { min-height:82px; }
 .footer-links { gap:16px; }
}
@media (max-height:500px) and (orientation:landscape) and (max-width:950px) {
 dialog { max-height:calc(100dvh - 16px); }
 .dialog-header { padding-top:14px; }
 .phone-shell { max-height:66dvh; }
 .preview-close { width:48px; height:48px; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; } }
@media(max-width:600px){
 button,a,summary,[role="button"]{scroll-margin-top:90px;scroll-margin-bottom:130px}
 .library-toolbar select{font-size:16px}
}
.compact-label{display:none}
@media(max-width:600px){
 .window-bottom .btn,.walkthrough-save{min-height:48px;font-size:13px}
 .footer-links a,.footer-links button{min-width:48px}
 .workspace-footer,.mobile-dock,.site-header{background:#fff}
 .workspace-footer .btn.ghost{gap:6px}
 .workspace-footer .wide-label{display:none}
 .workspace-footer .compact-label{display:inline}
 body.keyboard-open .app-view{padding-bottom:calc(140px + var(--keyboard-inset))}
 .fullscreen-dialog{top:var(--visual-offset-top,0px)}
}
/* MakeTap v1.5 — previous layout, reference-led palette. */
:root,[data-theme="purple"]{
 --brand:#925FF2;--cyan:#4CD8F9;--coral:#FF7E65;--navy:#2A1469;
 --ink:#282236;--muted:#716A7F;--paper:#FFFFFF;--soft:#FCFAFF;--line:#EAE4F3;
 --accent:#8650E5;--accent-hover:#7540D1;--accent-ink:#FFFFFF;--accent-soft:#F2ECFE;
 --accent-dark:#6434B4;--stage:#F8F5FE;--deep:#2A1469;--subtle:#FCFAFF;
 --logo-back:#D9C7FB;--shadow-brand:#925FF212;--focus-ring:#8650E5;--companion:#ECF9FE;
}
::selection{background:var(--accent-soft);color:var(--ink)}
a,button,summary,input,textarea,select{touch-action:manipulation}
:focus-visible{outline:3px solid var(--focus-ring);outline-offset:4px}
.site-header{border-bottom-color:var(--line);background:#FFFFFFF7}
.brand-mark{background:none;border-radius:0;color:var(--accent);width:38px;height:38px;box-shadow:none}
.brand-mark svg{width:100%;height:100%;display:block}
.brand{gap:8px;letter-spacing:-.055em}
.btn.primary,.btn.accent{background:var(--accent);color:var(--accent-ink);border-color:transparent}
.btn.primary:hover,.btn.accent:hover{background:var(--accent-hover);box-shadow:0 6px 18px var(--shadow-brand)}
.btn.secondary{background:#FFF;color:var(--ink);border-color:var(--line)}
.btn.secondary:hover{background:var(--soft)}
.btn.ghost{color:var(--muted)}
.tag.tinted{background:var(--accent-soft);color:var(--accent-dark)}
.status-dot{background:var(--accent);box-shadow:0 0 0 4px var(--accent-soft)}
.hero-eyebrow,.hero-description,.hero .micro,.source-note,.source-row,.card-caption small,.showcase-foot,.benefit-copy p,.section-heading p,.feature-card p,.price-footnote,.price-card .price-caption,.field-help,.workspace-title p,.preview-description p,.preview-checks,.result-copy p,.preview-checks small,.label-row small,.preview-label,.appview-footer,.back-button,.local-badge,.tiny{color:var(--muted)}
.nav-links a,.library-nav,.source-name{color:var(--ink)}
.source-intro{color:var(--muted)!important}
.design-controls{display:flex;align-items:center;justify-content:center;gap:16px;min-height:58px;padding:5px 16px;background:var(--subtle);border-bottom:1px solid var(--line);font-size:11px;color:var(--muted)}
.design-controls>span{font-size:10px;letter-spacing:.08em;text-transform:uppercase}
.design-controls>div{display:flex;gap:5px}
.design-controls button{display:flex;align-items:center;justify-content:center;gap:7px;min-width:75px;min-height:44px;border:1px solid transparent;border-radius:22px;padding:8px 12px;font-size:12px;color:var(--muted)}
.design-controls button i{width:11px;height:11px;display:block;border-radius:50%;box-shadow:inset 0 0 0 1px #0000000A}
.design-controls button.selected{border-color:var(--line);color:var(--ink);background:#FFF;box-shadow:0 2px 6px #26212D04}
body:not([data-view="home"]) .design-controls{display:none}
.hero{padding-top:60px}
.hero .micro>span svg{color:var(--accent-dark)}
.showcase{background:linear-gradient(180deg,#FFF,var(--subtle));padding-top:8px}
.showcase-track{gap:22px;align-items:flex-start}
.showcase-card{flex-basis:254px}
.showcase-card .card-canvas{height:390px;padding:14px;border-radius:25px}
.card-canvas .preview-paper{padding:0;border-radius:16px;height:100%;box-shadow:0 10px 22px #29203808,0 0 0 1px #00000004}
.card-caption{padding-top:17px!important}
.card-caption strong{font-size:14px}
.card-caption small{font-size:11px}
.card-caption img{width:35px;height:35px;border-radius:10px}
.showcase-card:nth-child(even){margin-top:22px}
.mini-ui{height:100%;display:flex;flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;position:relative;padding:17px 15px 16px;color:var(--card-ink);line-height:1.3}
.mini-app-bar{display:flex;justify-content:space-between;align-items:center;font-size:9px;font-weight:600;margin-bottom:20px;opacity:.85}
.mini-bar-detail{font-size:12px;letter-spacing:1px;line-height:1}
.mini-app-content{flex:1;min-height:0}
.mini-eyebrow{font-size:7px;letter-spacing:.085em;opacity:.58;margin-bottom:11px}
.mini-ui .paper-title{font-size:23px;line-height:1.07;font-weight:600;letter-spacing:-.045em}
.mini-home-indicator{position:absolute;width:52px;height:3px;background:currentColor;opacity:.12;bottom:6px;left:50%;transform:translateX(-50%);border-radius:4px}
.mini-segments{display:flex;align-items:center;gap:2px;padding:3px;background:#FFFFFF0A;border:1px solid #FFFFFF08;border-radius:7px;font-size:7px;margin:14px 0 12px;color:#CBC3E1}
.mini-segments>span{width:50%;text-align:center;padding:6px 0;border-radius:5px}
.mini-segments .on{background:#FFFFFF15;color:#FFF}
.mini-focus-dial{width:146px;height:146px;margin:0 auto 11px;position:relative;display:grid;place-items:center;text-align:center}
.mini-focus-dial>svg{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg)}
.mini-focus-dial circle{fill:none;stroke-width:2}
.mini-focus-dial .dial-track{stroke:#FFFFFF16}
.mini-focus-dial .dial-arc{stroke:#BCA7FF;stroke-dasharray:455 54;stroke-linecap:round}
.mini-focus-dial strong{font-size:38px;font-weight:350;letter-spacing:-1.7px;font-variant-numeric:tabular-nums}
.mini-focus-dial small{display:block;font-size:6px;letter-spacing:.1em;opacity:.5;margin-top:5px}
.mini-action{display:flex;align-items:center;justify-content:center;gap:7px;border-radius:8px;min-height:30px;background:#C1AFFF;color:#292139;font-size:9px;font-weight:600}
.mini-app-foot{font-size:7px;opacity:.55;display:flex;justify-content:space-between;align-items:center;margin-top:12px}
.mini-trip-art{height:75px;background:#BDE8FF;border-radius:9px;position:relative;overflow:hidden;margin-bottom:15px}
.mini-sun{position:absolute;right:20px;top:7px;width:25px;height:25px;border-radius:50%;background:#FFCE8C}
.mini-hill{width:155px;height:88px;position:absolute;bottom:-57px;border-radius:50%;background:#68A6D4;transform:rotate(-10deg)}
.mini-hill.a{left:-18px;bottom:-36px;background:#8BBCE2}
.mini-hill.b{right:-30px;bottom:-36px;background:#5793C6;transform:rotate(12deg)}
.mini-trip-art>span{position:absolute;left:9px;bottom:8px;font-size:7px;letter-spacing:.04em;background:#FFFFFFDB;padding:4px 6px;border-radius:4px;color:#34516C}
.mini-progress-line{display:flex;justify-content:space-between;font-size:7px;color:#7589A3;margin:14px 0 5px}
.mini-progress-track{height:3px;border-radius:2px;background:#E5ECF5;overflow:hidden}
.mini-progress-track i{height:100%;width:40%;background:#4C91CB;display:block}
.mini-list{margin-top:9px;gap:0}
.mini-list>div{display:flex;gap:8px;padding:7px 0;border-bottom:1px solid #26394C0A;font-size:9px}
.mini-check{width:14px;height:14px;border-color:#D1DBE7;border-radius:4px}
.mini-check.checked{background:#4487BF;border-color:#4487BF}
.mini-add{margin-top:10px;color:#7090AB;font-size:8px}
.mini-habit-label{display:flex;align-items:center;gap:9px;padding:12px 8px;background:#F0E8FF;border:1px solid #E9E0F7;border-radius:9px;margin-top:17px;font-size:9px}
.mini-habit-label>span{display:grid;place-items:center;width:28px;height:28px;font-size:18px;color:#9373C7;background:#FFF9FF;border-radius:8px}
.mini-habit-label small{font-size:7px;display:block;color:#9687AB;margin-top:3px}
.mini-week{display:grid;grid-template-columns:repeat(7,1fr);text-align:center;margin-top:15px;color:#A292B5;font-size:7px}
.mini-habit-grid{gap:5px;margin-top:8px}
.mini-habit-grid i{display:grid;place-items:center;height:19px;border-radius:5px;font-style:normal;font-size:7px;background:#F0EAF8;color:#AE9BBF}
.mini-habit-grid i.done{background:#A083D3;color:#FFF}
.mini-habit-stats{margin-top:20px;border-top:1px solid #EAE2F3;padding-top:14px}
.mini-habit-stats b{font-size:26px;font-weight:550;letter-spacing:-.04em}
.mini-habit-stats small{font-size:8px;font-weight:400;letter-spacing:0;color:#9D8CB1}
.mini-habit-stats>span{font-size:8px;color:#997FB8;opacity:1}
.mini-receipt{background:#FFF2E6;border:1px solid #F4E3D2;border-radius:12px;padding:16px 13px 7px;margin-top:19px;text-align:center}
.mini-receipt>small{font-size:7px;color:#A08068;letter-spacing:.075em}
.mini-split-amount{font-size:43px;font-weight:500;letter-spacing:-2px;margin:5px 0 0}
.mini-split-amount small{font-size:22px;vertical-align:4px;margin-right:2px}
.mini-split-people{margin:13px 0 16px;justify-content:center;gap:0}
.mini-split-people i{margin-left:-3px;width:27px;height:27px;background:#E9CBAE;border-color:#FFF4E9;font-size:8px}
.mini-split-people i:nth-child(2){background:#DED0ED}
.mini-split-people i:nth-child(3){background:#CBDFEA}
.mini-split-people i:nth-child(4){background:#F0D4BD}
.mini-split-bill{font-size:8px;padding-top:9px;margin-top:0;padding-bottom:8px;border-top:1px dashed #B1907026;text-align:left}
.mini-split-bill b{font-weight:550}
.mini-note-label{display:flex;align-items:center;justify-content:space-between;font-size:7px;letter-spacing:.06em;color:#A18A49;margin-bottom:16px}
.mini-note-label>span{font-size:14px}
.mini-note-lines{margin-top:20px;font-size:11px;line-height:2.6;color:#786E58}
.mini-note-lines span{border-color:#ECE6D4}
.mini-note-tag{display:inline-block;font-size:8px;padding:5px 8px;border-radius:5px;background:#F8EDC5;color:#9D863E;margin-top:17px}
.mini-wheel-wrap{position:relative;width:156px;margin:22px auto 16px}
.mini-wheel-wrap>i{position:absolute;top:-3px;left:calc(50% - 5px);width:10px;height:12px;clip-path:polygon(0 0,100% 0,50% 100%);background:#6E4151;z-index:2}
.mini-wheel{width:156px;height:156px;margin:0;transform:none;background:conic-gradient(#F49AB4 0 120deg,#FFD47D 120deg 240deg,#B4A0F2 240deg);box-shadow:inset 0 0 0 5px #FFFFFF88,0 7px 13px #7B415D0C}
.mini-wheel>span{width:37px;height:37px;border-radius:50%;display:grid;place-items:center;background:#FFF;color:#8D5972;font-size:17px;box-shadow:0 2px 8px #6A375611}
.mini-choice-chips{display:flex;justify-content:center;gap:6px;font-size:8px;margin-bottom:17px;color:#AD7A91}
.mini-choice-chips>span{border:1px solid #EEDAE4;border-radius:5px;padding:4px 6px}
.pick-action{background:#AC4970;color:white}
/* Process devices: a real tall-device silhouette, no squeezed phone rectangle. */
.process{background:var(--subtle)}
.process-visual{min-height:610px;padding:32px 28px 82px;background:var(--stage);border-radius:28px;overflow:hidden}
.process-step.active{border-color:var(--line);box-shadow:0 6px 18px var(--shadow-brand);background:white}
.process-step.active .step-num{background:var(--accent);color:var(--accent-ink)}
.process-step .step-num{color:var(--muted)}
.process-step p,.visual-caption{color:var(--muted)}
.demo-window{max-width:380px;box-shadow:0 20px 45px var(--shadow-brand),0 0 0 1px #00000003;border-radius:20px}
.window-body{padding:28px}
.window-bar{border-bottom:1px solid var(--line);color:var(--muted)}
.window-dots i{background:#DAD7DF}
.walk-paste-mark{width:60px;height:60px;border-radius:18px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;margin:0 auto 22px}
.walk-paste-mark svg{width:42px;height:42px}
.walk-description{text-align:center;font-size:13px;line-height:1.7;color:var(--muted);margin:12px 0 24px}
.process-visual[data-process-step="0"] h4{text-align:center;font-size:24px;letter-spacing:-.04em;line-height:1.2}
.window-body .btn{min-height:48px;font-size:13px}
.window-body>.btn+.btn{margin-top:10px}
.walk-note{text-align:center;color:var(--muted);font-size:10px;margin-top:20px}
.walk-custom-row{display:flex;gap:16px;align-items:center;margin:26px 0}
.walk-custom-row>img{border-radius:17px}
.walk-custom-row>div{flex:1;min-width:0}
.mini-field{background:var(--soft);border-color:var(--line);color:var(--ink);white-space:normal;font-size:13px}
.mini-field-label{color:var(--muted)}
.window-bottom{margin-top:32px;gap:12px;color:var(--muted)}
.walkthrough-phone{width:234px;height:auto!important;aspect-ratio:1/2.14;flex-shrink:0;padding:0 17px;border:6px solid #25232A;border-radius:38px;background:linear-gradient(145deg,var(--accent-soft),#F8F7FF 53%,#FFF0E5);box-shadow:0 24px 40px #35244617,0 0 0 1px #6B6269;overflow:hidden;position:relative}
.walkthrough-phone:before{display:none!important}
.device-status{height:36px;display:flex;align-items:center;justify-content:space-between;font-size:9px;color:#292733;padding-top:6px}
.device-status strong{font-size:10px;font-weight:650;margin-left:3px}
.device-status>span{font-size:7px;letter-spacing:1px}
.device-island{position:absolute;top:9px;left:50%;transform:translateX(-50%);width:65px;height:17px;border-radius:12px;background:#222128}
.phone-home-copy{margin-top:40px;text-align:center}
.phone-home-copy>span{font-size:6px;letter-spacing:.13em;color:#9381AC}
.phone-home-copy h4{font-size:23px;font-weight:550;letter-spacing:-1px;color:#3B3249;margin:8px 0 5px}
.phone-home-copy p{font-size:8px;color:#8F829D}
.phone-icon-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 12px;margin:31px 0 0}
.phone-icon-grid>div{font-size:7px;color:#5F536E;display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;min-width:0}
.phone-icon-grid img{width:43px;height:43px;border-radius:12px;box-shadow:0 4px 8px #48395013}
.phone-page-dots{text-align:center;font-size:5px;letter-spacing:4px;color:#8D819F;margin-top:27px}
.phone-page-dots span{color:#BEB4CD}
.device-dock{position:absolute;bottom:23px;left:11px;right:11px;border-radius:20px;padding:12px;display:flex;justify-content:space-around;background:#FFFFFF70;border:1px solid #FFFFFF99}
.device-dock img{width:39px;height:39px;border-radius:11px}
.device-home-indicator{position:absolute;bottom:7px;left:50%;transform:translateX(-50%);width:71px;height:4px;border-radius:5px;background:#353039}
.walkthrough-save{position:absolute;bottom:34px;left:50%;right:auto;transform:translateX(-50%);min-height:48px;max-width:calc(100% - 40px);white-space:nowrap;display:flex;align-items:center;justify-content:center;gap:9px;padding:11px 17px;background:var(--accent);color:var(--accent-ink);border-radius:13px;box-shadow:0 8px 20px var(--shadow-brand);font-size:12px}
.visual-caption{position:absolute;left:10px;right:10px;bottom:12px;text-align:center;font-size:9px;line-height:1.4}
.phone-shell{height:auto;aspect-ratio:1/2.14;border-color:#29262D;background:#29262D;padding:14px 1px 7px;border-radius:40px;max-height:none}
.phone-shell:before{background:#29262D;top:5px;width:72px;height:18px}
.phone-shell:after{background:#37313D}
.phone-shell iframe{display:block;width:100%;height:100%;border-radius:29px}
.example-dialog .phone-shell{width:280px;height:auto;aspect-ratio:1/2.14}
.preview-device-wrapper .phone-shell{height:620px;width:290px;aspect-ratio:auto}
/******** Color applications across the existing UI ********/
.benefit .before-after{background:var(--soft)}
.transition-arrow{background:var(--accent);color:var(--accent-ink)}
.chat-stack>div:nth-child(3){background:var(--accent-soft);color:var(--ink)}
.before-after .on-home,.home-screen-preview{background:linear-gradient(145deg,var(--accent-soft),#F2F2FC 58%,#FFF3E4)}
.feature-card:first-child,.final-cta{background:var(--accent-soft)}
.feature-card,.feature-visual{border-color:var(--line)}
.final-cta p{color:var(--muted)}
.price-card.complete{background:var(--deep);border-color:var(--deep);color:#FFF}
.price-card.complete .price-caption,.price-card.complete .price-once,.price-card.complete .allocation small{color:#D0C8D8}
.price-card.complete .price-features{color:#E4DDEB}
.price-card.complete .price-features svg{color:#D2C2FF}
.price-card.complete .btn{background:var(--accent);color:var(--accent-ink)}
.price-card.complete .btn:hover{background:var(--accent-hover)}
.price-card .allocation{border-color:var(--line)}
.price-card.complete .allocation{border-color:#FFFFFF20}
.price-features svg{color:var(--accent-dark)}
.flow-step.active .num,.flow-step.done .num{background:var(--accent);color:var(--accent-ink)}
.flow-step.active{color:var(--ink)}
.flow-step.done{color:var(--accent-dark)}
.flow-step .num{border-color:var(--line)}
.library-plan,.install-boundary,.empty-library,.input-side,.preview-detail-disclosure,.replace-panel{border-color:var(--line)}
.library-plan,.install-boundary{background:var(--accent-soft)}
.preview-detail-disclosure summary{color:var(--accent-dark)}
.icon-choice.selected{background:var(--accent-soft);border-color:var(--accent)}
.color-swatch.selected::before{box-shadow:0 0 0 3px white,0 0 0 4.5px var(--accent)}
.mobile-dock button.active{background:var(--accent-soft);color:var(--accent-dark)}
.mobile-dock .dock-create{background:var(--accent);color:var(--accent-ink)}
.checkout-plan.selected{background:var(--accent-soft);border-color:var(--accent)}
/* Paste first. A text field exists only in the explicit browser-permission fallback. */
.intake-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(230px,.75fr);gap:48px;align-items:center}
.intake-main{min-width:0;border-radius:22px;transition:background .15s,outline-color .15s}
.intake-main.dragover{outline:2px dashed var(--accent);outline-offset:9px;background:var(--accent-soft)}
.intake-empty{text-align:center;padding:22px 12px 8px}
.intake-illustration{display:flex;align-items:center;justify-content:center;gap:19px;margin:0 0 27px;height:87px}
.intake-document{width:64px;height:74px;border:1px solid var(--line);box-shadow:0 5px 16px #29212A05;border-radius:15px;display:grid;place-items:center;color:var(--muted);transform:rotate(-8deg);background:#FFF}
.intake-to{color:#ADA6B7}
.intake-app{width:78px;height:78px;border-radius:23px;background:var(--accent-soft);display:grid;place-items:center;color:var(--accent);transform:rotate(7deg)}
.intake-app>svg{width:52px;height:52px}
.intake-empty h2{font-size:29px;line-height:1.15;letter-spacing:-.055em;font-weight:550;margin:0 0 13px}
.intake-empty p{font-size:15px;line-height:1.75;color:var(--muted)}
.intake-actions{display:grid;grid-template-columns:1fr;gap:12px;margin:26px auto 0;max-width:380px}
.intake-actions .btn{min-height:56px;font-size:16px;border-radius:14px;gap:11px}
.intake-format{text-align:center;font-size:11px;line-height:1.7;color:var(--muted);margin:16px auto 0;max-width:320px}
.intake-privacy{display:flex;justify-content:center;align-items:center;gap:7px;font-size:11px;color:var(--muted);margin-top:28px}
.intake-aside{min-width:0;border-left:1px solid var(--line);padding:10px 0 10px 35px;display:flex;flex-direction:column-reverse;gap:36px}
.intake-side-note .eyebrow{font-size:9px;color:var(--muted);letter-spacing:.07em}
.intake-side-note h3{font-size:31px;line-height:1.13;letter-spacing:-.05em;margin:14px 0 22px;font-weight:550}
.intake-icon-row{display:flex;gap:9px;margin-bottom:20px}
.intake-icon-row img{width:43px;height:43px;border-radius:12px;box-shadow:0 4px 10px #29212C09}
.intake-icon-row img:nth-child(1){transform:rotate(-7deg)}
.intake-icon-row img:nth-child(2){transform:rotate(6deg)}
.intake-side-note p{font-size:12px;line-height:1.75;color:var(--muted)}
.sample-disclosure summary{list-style:none;display:flex;flex-direction:column;gap:7px;cursor:pointer;font-size:11px;color:var(--muted);min-height:48px;justify-content:center;padding:6px 0}
.sample-disclosure summary::-webkit-details-marker{display:none}
.sample-disclosure summary>span{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--ink)}
.sample-disclosure[open] summary>span svg{transform:rotate(90deg)}
.sample-list{display:grid;gap:5px;margin-top:14px}
.sample-list .demo-choice{padding:10px 8px;min-height:58px;margin:0;min-width:0}
.sample-list .demo-choice>span{min-width:0;flex:1}
.sample-list .demo-choice small{display:block;font-size:10px;font-weight:400;color:var(--muted);margin-top:3px;white-space:normal}
.source-receipt{background:var(--subtle);border:1px solid var(--line);border-radius:18px;padding:22px}
.source-receipt:focus{outline:none}
.receipt-top{display:flex;gap:14px;align-items:center;min-width:0}
.receipt-top>div{min-width:0}
.source-symbol{width:52px;height:58px;display:grid;place-items:center;flex-shrink:0;border-radius:13px;background:#FFF;border:1px solid var(--line);color:var(--accent-dark)}
.source-success{display:flex;align-items:center;gap:5px;color:var(--accent-dark);font-size:10px}
.receipt-top h3{font-size:20px;font-weight:550;letter-spacing:-.03em;margin:5px 0;overflow-wrap:anywhere}
.receipt-top p{font-size:11px;color:var(--muted);overflow-wrap:anywhere}
.code-glimpse{margin:20px 0 15px;background:var(--soft);border-radius:9px;padding:12px;color:#96909F;overflow:hidden;font-size:10px;line-height:1.8;max-height:85px;position:relative}
.code-glimpse pre{margin:0;white-space:pre-wrap;word-break:break-all;font-family:ui-monospace,monospace;font-size:10px;font-weight:400;max-height:44px;overflow:hidden}
.code-glimpse:after{content:'';position:absolute;inset:35px 0 0;background:linear-gradient(transparent,var(--soft));pointer-events:none}
.source-next{font-size:13px;color:var(--ink);margin-bottom:5px}
.source-readonly summary{min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:14px;color:var(--muted);font-size:11px;cursor:pointer;list-style:none}
.source-readonly summary::-webkit-details-marker{display:none}
.source-readonly summary>span{font-size:9px;border:1px solid var(--line);border-radius:5px;padding:3px 5px}
.source-readonly pre{max-height:180px;overflow:auto;white-space:pre-wrap;word-break:break-word;font-size:10px;line-height:1.7;background:white;padding:12px;border:1px solid var(--line);border-radius:8px;overscroll-behavior:contain}
.source-receipt+.intake-actions{grid-template-columns:1fr 1fr;gap:10px;margin-top:18px;max-width:none}
.source-receipt+.intake-actions .btn{font-size:12px;min-height:48px;padding:10px;gap:6px}
.intake-workspace .workspace-footer{border-top-color:var(--line)}
.paste-dialog{max-width:500px}
.paste-dialog .dialog-header h2{font-size:27px;line-height:1.12}
.paste-explanation{font-size:14px;line-height:1.75;color:var(--muted);margin-bottom:22px}
#manualCodeInput{display:block;width:100%;min-height:150px;max-height:260px;resize:vertical;border:1px solid var(--line);border-radius:14px;padding:15px;font-size:16px;font-family:inherit;background:var(--soft);color:var(--ink);line-height:1.65;margin:10px 0 18px;scroll-margin-block:110px}
.paste-fallback-note{font-size:11px;line-height:1.6;color:var(--muted);margin-top:15px}
/* All mobile controls keep real hit areas, not enlarged drawings with tiny hitboxes. */
@media (max-width:850px){.intake-layout{grid-template-columns:1fr;gap:27px}.intake-aside{border:0;border-top:1px solid var(--line);padding:18px 0 0;display:block}.intake-side-note{display:none}.sample-disclosure summary{flex-direction:row;justify-content:space-between;gap:10px}.sample-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.sample-list .demo-choice{display:flex;flex-direction:column;text-align:center;gap:8px;background:var(--subtle);border:1px solid var(--line);border-radius:13px;padding:15px 8px}.sample-list .demo-choice>svg{display:none}.sample-list .demo-choice>span{font-size:12px}.sample-list .demo-choice small{font-size:10px;line-height:1.5}.process-visual{min-height:610px}}
@media (max-width:600px){
 .brand-mark{width:33px;height:33px}.brand{font-size:23px;gap:7px}
 .design-controls{padding:4px 12px;gap:9px;min-height:53px}.design-controls>span{font-size:8px;letter-spacing:.05em}.design-controls button{min-width:65px;padding:8px 10px;font-size:11px;gap:6px}.design-controls>div{gap:2px}
 .hero{padding-top:32px;padding-bottom:20px}.hero h1{font-size:clamp(28px,8.4vw,38px);line-height:1.1}.hero-line,.hero-line.second{min-height:62px;gap:8px}.hero-description{margin:18px auto 22px;font-size:15px}.hero-eyebrow{margin-bottom:18px}
 .hero .actions{gap:10px}.hero .btn{min-height:52px;padding:13px 15px;font-size:13px;gap:8px}
 .showcase{padding-top:6px}.showcase-track{padding-top:17px;gap:16px}.showcase-card{flex-basis:min(77vw,282px)}.showcase-card .card-canvas{height:410px;padding:15px}.showcase-card:nth-child(even){margin-top:20px}
 .mini-ui{padding:20px 17px 17px}.mini-app-bar{font-size:10px;margin-bottom:21px}.mini-ui .paper-title{font-size:25px}.mini-focus-dial{width:160px;height:160px;margin-bottom:14px}.mini-segments{font-size:8px;margin-top:16px;margin-bottom:14px}.mini-action{min-height:34px;font-size:10px}.mini-app-foot{font-size:8px}.mini-eyebrow{font-size:7px}.mini-habit-grid i{height:21px}.mini-list>div{font-size:10px;padding:8px 0}.mini-trip-art{height:82px}.mini-split-bill{font-size:9px}.mini-note-lines{font-size:12px}.mini-wheel-wrap,.mini-wheel{width:169px}.mini-wheel{height:169px}.mini-wheel-wrap{margin-top:24px;margin-bottom:19px}
 .showcase-foot{font-size:11px;line-height:1.6}.showcase-foot .muted{display:block}.showcase-controls .icon-button{width:46px;height:46px;min-width:46px}
 .section{padding-block:66px}.process-layout{gap:24px}.process-title{font-size:36px;line-height:1.08;letter-spacing:-.055em}.process-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:26px}.process-step{min-height:96px;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;padding:13px 10px;gap:9px;border-radius:13px;text-align:left}.process-step .step-num{width:26px;height:26px;min-width:26px;line-height:26px}.process-step strong{font-size:12px;line-height:1.35;font-weight:550;letter-spacing:-.02em}.process-step p{display:none}
 .process-visual{min-height:588px;padding:24px 18px 83px;border-radius:23px}.walkthrough-phone{width:224px;border-width:6px;aspect-ratio:1/2.14;height:auto!important;border-radius:36px;padding:0 16px}.phone-home-copy{margin-top:32px}.phone-icon-grid{margin-top:27px;gap:22px 9px}.phone-icon-grid img{width:41px;height:41px}.device-dock{bottom:22px;padding:11px;border-radius:17px}.device-dock img{width:36px;height:36px}.phone-page-dots{margin-top:26px}.walkthrough-save{bottom:34px;font-size:12px;min-height:48px}.visual-caption{font-size:8px;bottom:11px}.window-body{padding:25px 22px}.demo-window{max-width:350px}.window-bottom{margin-top:27px;gap:8px;font-size:10px}.window-bottom .btn{padding:10px 12px;font-size:12px}.walk-custom-row{gap:12px}.walk-custom-row img{width:51px;height:51px;border-radius:15px}.icon-choices-mini{gap:11px}.icon-choices-mini img{width:42px;height:42px}
 .preview-device-wrapper .phone-shell,.example-dialog .phone-shell{width:100%;max-width:none;height:clamp(380px,62dvh,610px);aspect-ratio:auto;border:1px solid var(--line);padding:0;border-radius:18px;background:white;box-shadow:0 8px 25px var(--shadow-brand)}.phone-shell:before,.phone-shell:after{display:none}.phone-shell iframe{border-radius:17px;height:100%}
 .app-topbar{margin-bottom:13px}.workspace-title{margin-bottom:18px}.workspace-title h1{font-size:30px;letter-spacing:-.045em}.workspace-title p{font-size:14px;line-height:1.65}.flow-steps{margin-bottom:23px}.flow-step{font-size:10px}.flow-step .num{height:27px;width:27px}
 .workspace-content{padding:20px}.intake-workspace{border-radius:21px;box-shadow:0 5px 25px #21163103}.intake-layout{gap:24px}.intake-empty{padding:12px 0 0}.intake-illustration{height:71px;margin-bottom:23px;gap:15px}.intake-document{width:51px;height:61px;border-radius:13px}.intake-document svg{width:23px}.intake-app{width:64px;height:64px;border-radius:19px}.intake-app>svg{width:45px;height:45px}.intake-empty h2{font-size:25px;margin-bottom:11px}.intake-empty p{font-size:14px;line-height:1.65}.intake-actions{margin-top:24px;gap:11px;max-width:none}.intake-actions .btn{min-height:56px;font-size:16px;padding:14px 16px;border-radius:14px}.intake-format{font-size:10px;max-width:230px;margin-top:14px}.intake-privacy{margin-top:20px;font-size:10px;gap:6px}.intake-aside{padding-top:15px}.sample-disclosure summary{font-size:11px}.sample-disclosure summary>span{font-size:12px;gap:5px}.sample-list .demo-choice{min-height:95px;padding:13px 7px}.sample-list .demo-choice img{width:38px;height:38px}.sample-list .demo-choice small{display:none}.sample-list .demo-choice>span{font-size:11px}
 .source-receipt{padding:17px;border-radius:15px}.receipt-top{gap:11px}.source-symbol{width:43px;height:51px;border-radius:11px}.receipt-top h3{font-size:19px}.receipt-top p{font-size:10px;line-height:1.5}.source-success{font-size:10px}.source-next{font-size:12px}.source-receipt+.intake-actions .btn{min-height:50px;font-size:12px;gap:6px;padding:10px 8px}.source-receipt+.intake-actions .btn svg{width:15px;height:15px}
 body[data-view="create"][data-step="1"]:has(.intake-empty) .app-view{padding-bottom:32px;min-height:calc(100dvh - 72px)}
 .paste-dialog .dialog-header{padding:21px 20px 15px}.paste-dialog .dialog-header h2{font-size:25px}.paste-dialog .dialog-body{padding:10px 20px calc(22px + env(safe-area-inset-bottom,0px));overflow:auto}.paste-dialog .dialog-header .eyebrow{font-size:9px}.paste-explanation{font-size:13px;margin-bottom:17px}#manualCodeInput{min-height:130px;max-height:180px;font-size:16px;margin-bottom:17px}.paste-dialog .btn{min-height:52px}.paste-fallback-note{font-size:10px}
 .mobile-dock{border-color:var(--line)}.mobile-dock button:not(.dock-create){color:var(--muted)}.mobile-dock button.active{color:var(--accent-dark);background:var(--accent-soft)}.mobile-dock .dock-create{background:var(--accent);color:var(--accent-ink)}
 .price-card.complete .price-features{color:#E4DDEB}.footer-links strong{color:var(--ink)}
}
@media(max-width:359px){
 .design-controls{gap:5px}.design-controls>span{font-size:8px}.design-controls button{min-width:63px;padding-inline:8px}.hero .actions{display:grid;grid-template-columns:1fr;max-width:270px;margin-inline:auto}.hero .btn{width:100%}.hero-description{font-size:14px}.hero-eyebrow{font-size:11px}.hero h1{font-size:27px}.hero-line,.hero-line.second{gap:6px}.hero-icon,.hero-line.second .hero-icon{width:46px;height:46px;min-width:46px}.showcase-card{flex-basis:250px}.showcase-card .card-canvas{height:404px}.mini-ui{padding-inline:16px}.process-visual{padding-inline:15px}.walkthrough-phone{width:218px}.window-body{padding:22px 17px}.walk-custom-row{gap:10px}.walk-custom-row img{width:44px;height:44px}.mini-field{font-size:11px;padding:10px}.icon-choices-mini{gap:9px}.icon-choices-mini img{width:37px;height:37px}.process-step{padding:11px 8px;min-height:96px}.process-step strong{font-size:11px}.workspace-content{padding:17px}.workspace-title h1{font-size:28px}.intake-empty h2{font-size:23px}.intake-empty p{font-size:13px}.source-receipt+.intake-actions{grid-template-columns:1fr}.source-receipt+.intake-actions .btn{font-size:14px}.sample-disclosure summary{flex-direction:column;align-items:flex-start;gap:5px;padding:8px 0}.source-receipt{padding:14px}.receipt-top h3{font-size:17px}
}
@media(max-width:600px) and (max-height:680px){.intake-empty{padding-top:4px}.intake-illustration{height:55px;margin-bottom:16px}.intake-document{width:44px;height:52px}.intake-app{width:54px;height:54px}.intake-app svg{width:38px;height:38px}.intake-actions{margin-top:18px}.intake-empty p{font-size:13px}.intake-privacy{margin-top:16px}.app-topbar{margin-bottom:9px}.workspace-title{margin-bottom:15px}.workspace-title p{margin-top:7px}.flow-steps{margin-bottom:18px}.intake-format{margin-top:11px}}
@media(prefers-reduced-motion:reduce){.mini-ui *,.walkthrough-phone *{animation:none!important;transition:none!important}}
/* Final density pass: every sample's bottom actions remain inside its canvas. */
.showcase-card .card-canvas{height:468px}
@media(max-width:600px){.showcase-card .card-canvas{height:492px}}
@media(max-width:359px){.showcase-card .card-canvas{height:478px}}

/* Purple refinements: the brand changes, the user's little apps retain their identity. */
.before-after{background:var(--stage)}
.process-visual{background:linear-gradient(145deg,var(--stage),var(--companion))}
.final-cta{background:var(--accent-soft)}
.design-controls>div{flex-wrap:wrap;justify-content:center}
@media(max-width:600px){.design-controls{gap:4px;flex-direction:column;padding:9px 10px}.design-controls>span{font-size:9px}.design-controls button{min-height:44px;padding:8px 13px;min-width:84px}}

/* v1.5 finishing layer. Not the v1.4 Refined style. */

body{font-family:MakeTapInter,Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
.brand{font-weight:650}
.brand-mark{width:40px;height:40px;filter:none!important;transform:none!important;color:var(--brand)}
.brand-mark svg{width:40px;height:40px;filter:none;transform:none;display:block}
.brand-mark svg *{filter:none}
.hero::before,.hero::after,.price-card.complete::before,.final-cta::before{content:none!important;display:none!important}
.status-dot{background:var(--coral);box-shadow:none;width:6px;height:6px}
.hero .micro svg{color:var(--accent-dark)}
.sources{padding:28px 22px 32px;text-align:center;background:white}
.sources .source-intro{font-size:12px;color:var(--muted);line-height:1.5}
.sources .source-row{padding:22px 0 18px;gap:28px 36px;max-width:900px;margin:auto}
.sources .source-name{font-family:MakeTapInter,Inter,sans-serif;font-size:28px;font-weight:900;line-height:1.2;color:#000;letter-spacing:-.045em;white-space:nowrap}
.sources .source-claude{color:#C96B49}
.sources .source-deepseek{color:#4D6BFE}
.sources .source-gemini{color:#5A62D6}
.sources .source-kimi::after{content:"";display:inline-block;width:.18em;height:.18em;margin-left:.07em;border-radius:50%;background:#347CFF}
@supports ((background-clip:text) or (-webkit-background-clip:text)){
 .sources .source-gemini{background:linear-gradient(100deg,#4285F4 5%,#7868DA 45%,#C05483 72%,#D96570 100%);background-clip:text;-webkit-background-clip:text;color:transparent}
}
@media(forced-colors:active){.sources .source-name{color:CanvasText;background:none}.sources .source-kimi::after{background:CanvasText}}
.sources .source-note{font-size:11px;line-height:1.8;padding-bottom:0;color:var(--muted)}
.source-mobile-break{display:none}
.benefit-points>span:nth-child(1) svg{color:var(--accent-dark)}
.benefit-points>span:nth-child(2) svg{color:#A44732}
.benefit-points>span:nth-child(3) svg{color:#1A728D}
.before-after .on-home,.home-screen-preview{background:linear-gradient(145deg,#F2ECFE 0%,#EAF9FE 65%,#FFF1EC)}
.process-visual{background:linear-gradient(145deg,#F8F5FE,#F2F9FF);border:none}
.feature-card:first-child{background:#F2ECFE}
.feature-card:nth-child(2){background:#F0FAFE}
.feature-card:nth-child(3){background:#FFF4F0}
.price-card.complete{background:var(--navy);border-color:var(--navy)}
.price-card.complete .price-caption,.price-card.complete .price-once,.price-card.complete .allocation small{color:#DAD1EE}
.price-card.complete .price-features{color:#EEE8FA}
.price-card.complete .btn{background:#FFFFFF;color:#2A1469}
.price-card.complete .btn:hover{background:#EFE7FF}
.final-cta{background:#F2ECFE;border:none}
/* Touch-sized navigation; the brand stays native vector at 36 CSS px on phones. */
@media(max-width:600px){
 .brand-mark,.brand-mark svg{width:36px;height:36px}
 .brand{gap:7px}
 .nav-actions>.btn{display:none}
 .sources{padding:24px 20px 32px}
 .sources .source-intro{font-size:12px}
 .sources .source-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px 10px;padding:21px 0 18px;max-width:340px}
 .sources .source-name{font-size:clamp(18px,5.3vw,21px)}
 .mobile-dock{grid-template-columns:repeat(3,minmax(0,1fr))}
 .mobile-dock .dock-create{background:transparent;color:var(--muted);flex-direction:column;gap:4px;font-size:11px;font-weight:550}
 .mobile-dock .dock-create svg{color:var(--accent-dark)}
 .sources .source-note{font-size:11px}
 .source-mobile-break{display:block}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}


/* MakeTap mobile experience pass — compact editorial cards, one clear action.
   Existing desktop layouts and accepted Orchid branding remain intact. */
.showcase-mobile-card{display:none}
.sample-mobile-top,.sample-mobile-feature{display:block}
.sample-detail{max-width:620px;margin:0 auto 80px}
.sample-back{display:inline-flex;align-items:center;gap:9px;min-height:44px;color:var(--muted);font-size:14px;margin:6px 0 22px}
.sample-detail-intro{display:flex;align-items:center;gap:17px;margin:0 0 21px}
.sample-detail-intro>div{min-width:0}
.sample-detail-intro img{width:68px;height:68px;flex-shrink:0;border-radius:18px;box-shadow:0 4px 15px #18141c0d}
.sample-detail-intro h1{font-size:34px;letter-spacing:-.055em;font-weight:650}
.sample-detail-intro p{font-size:14px;color:var(--muted);margin-top:6px}
.sample-detail-poster{background:var(--card-bg);padding:22px;display:grid;place-items:center;border-radius:23px;height:490px;overflow:hidden}
.sample-detail-poster .preview-paper{height:100%;max-width:330px;width:100%;padding:0;border-radius:18px;overflow:hidden;color:var(--card-ink);background:var(--card-paper);box-shadow:0 14px 40px #1611170b}
.sample-detail-description{font-size:15px;color:var(--muted);line-height:1.6;margin:22px 0}
.sample-detail-actions{display:flex;gap:11px;margin-bottom:22px}
.sample-detail-actions .btn{flex:1}
.result-simple{display:flex;flex-direction:column;align-items:center;text-align:center;max-width:450px;margin:auto;padding:36px 14px}
.result-simple .result-icon{width:88px;height:88px;border-radius:22px;margin:0 0 23px;box-shadow:0 9px 28px #18141c13}
.result-simple h2{font-size:clamp(30px,4vw,40px);font-weight:620;letter-spacing:-.055em}
.result-simple>p{font-size:15px;max-width:330px;margin:14px auto 25px;color:var(--muted)}
.result-primary{max-width:360px}
.result-extras{width:100%;max-width:360px;margin:19px 0 0;text-align:left;border-top:1px solid var(--line)}
.result-extras summary{display:flex;align-items:center;justify-content:space-between;cursor:pointer;list-style:none;min-height:52px;font-size:14px;color:var(--muted)}
.result-extras summary::-webkit-details-marker{display:none}
.result-extras[open] summary svg{transform:rotate(90deg)}
.result-extra-actions{display:grid;gap:9px;padding:6px 0 15px}
.result-extra-actions .btn{width:100%}
.install-app{display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;gap:12px;margin:6px auto 18px}
.install-app img{width:78px;height:78px;border-radius:18px}
.install-app h3{font-size:24px;letter-spacing:-.04em;font-weight:630}
.install-intro{text-align:center;max-width:375px;font-size:15px;color:var(--muted);margin:0 auto 23px;line-height:1.6}
.install-consent{display:flex;align-items:center;gap:12px;min-height:56px;padding:14px;border:1px solid var(--line);border-radius:13px;margin:15px 0;font-size:14px}
.install-consent input{width:20px;height:20px;flex-shrink:0;accent-color:var(--accent)}
.install-details{margin:13px 0 18px}
.install-details summary{min-height:44px;list-style:none;font-size:13px;color:var(--muted);cursor:pointer;display:flex;align-items:center;justify-content:center;gap:5px}
.install-details summary:after{content:'⌄';font-size:15px}
.install-details[open] summary:after{transform:rotate(180deg)}
.install-details summary::-webkit-details-marker{display:none}
.install-details p{font-size:13px;line-height:1.6;color:var(--muted);margin:4px 0 10px}
.install-link-result{text-align:center}
.install-ready-symbol{width:64px;height:64px;border-radius:50%;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent-dark);margin:4px auto 16px}
.install-link-result h3{font-size:23px;font-weight:620;letter-spacing:-.04em}
.install-link-result>p{font-size:14px;color:var(--muted);line-height:1.6;margin:12px auto 17px;max-width:350px}
.install-link-row{display:flex;gap:7px;align-items:center;background:var(--soft);border:1px solid var(--line);border-radius:13px;padding:6px;margin:20px 0 2px}
.install-link-row input{display:block;width:100%;min-width:0;min-height:42px;border:0;background:transparent;outline:none;font-size:13px;color:var(--ink);text-overflow:ellipsis;padding:0 8px}
.copy-inline{display:flex;align-items:center;justify-content:center;gap:7px;min-width:90px;min-height:43px;border-radius:9px;background:#fff;border:1px solid var(--line);font-size:13px;font-weight:620}
.copy-status{min-height:19px;margin:6px 0 8px!important;color:var(--accent-dark)!important;font-weight:550;font-size:13px!important}
.install-link-result .install-open-cta{margin:5px auto 7px}
.install-link-result .install-expiry{font-size:12px;margin:10px auto!important}
.install-remove-link{color:var(--muted);font-size:12px;margin:2px auto}
.library-card{box-shadow:0 3px 16px #24132f05}
.library-card-actions{display:flex;align-items:center;gap:8px;padding:0 18px 18px}
.library-card-actions .btn{flex:1;min-width:0}
.library-card-actions .icon-button{width:48px;height:48px}
.full-preview-actions{display:flex;align-items:center;justify-content:center;padding:11px 16px calc(11px + env(safe-area-inset-bottom,0px));background:#fff;border-top:1px solid var(--line);flex-shrink:0}
.full-preview-actions[hidden]{display:none!important}
.full-preview-actions .btn{width:min(100%,380px)}
.fullscreen-dialog[open]{display:flex;flex-direction:column}
.fullscreen-dialog #fullPreviewFrame{flex:1;height:auto;min-height:0;width:100%}
.preview-spinner{display:inline-block;width:27px;height:27px;border:3px solid #DAD0ED;border-top-color:var(--accent);border-radius:50%;animation:maketap-spin .7s linear infinite}
@keyframes maketap-spin{to{transform:rotate(360deg)}}
.sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(max-width:600px){
 html{scroll-padding-bottom:106px}
 body[data-view="create"] .mobile-dock,
 body[data-view="sample"] .mobile-dock{display:grid}
 body[data-view="create"][data-step="2"] .mobile-dock,
 body[data-view="create"].dialog-open .mobile-dock,
 body[data-view="sample"].dialog-open .mobile-dock,
 body.keyboard-open .mobile-dock{display:none}
 #studioView,#libraryView,#sampleView{padding-bottom:calc(98px + env(safe-area-inset-bottom,0px))}
 #studioView .app-topbar,#libraryView .app-topbar{display:none}
 #studioView .appview-footer,#libraryView .appview-footer{display:none}
 .app-container{width:calc(100% - 36px)}
 .site-header .nav-actions .library-nav{display:none}
 .hero{padding:28px 0 25px}
 .hero .hero-eyebrow{font-size:12px;letter-spacing:0;margin-bottom:17px;color:var(--muted)}
 .hero h1{font-weight:650;font-size:clamp(30px,8vw,39px);line-height:1.12}
 .hero-line,.hero-line.second{gap:10px;min-height:63px}
 .hero-icon,.hero-line.second .hero-icon{width:43px;height:43px;min-width:43px;box-shadow:0 3px 10px #17102310;border-radius:13px}
 .hero-icon img{border-radius:13px}
 .hero-description{font-size:15px;line-height:1.55;margin:17px auto 21px;max-width:325px}
 .hero .actions{justify-content:center;display:grid;grid-template-columns:1fr;max-width:310px;margin:0 auto;gap:9px}
 .hero .actions .btn{width:100%;min-height:50px;font-size:14px}
 .hero .micro{margin-top:15px;gap:14px;font-size:12px}
 .hero .micro span:nth-child(3){display:none}
 .showcase{padding:4px 0 24px;background:#fff}
 .showcase-track{padding:10px 18px 10px;gap:12px}
 .showcase-card{flex:0 0 min(77vw,280px);margin:0!important;text-align:left;border-radius:19px;background:none}
 .showcase-card .card-canvas,.showcase-card .card-caption{display:none}
 .showcase-mobile-card{display:flex;flex-direction:column;min-height:170px;border-radius:19px;padding:15px;background:var(--card-bg);color:var(--card-ink)}
 .sample-mobile-top{display:flex;align-items:center;gap:10px}
 .sample-mobile-top img{width:46px;height:46px;border-radius:12px;flex-shrink:0}
 .sample-mobile-top>span:nth-child(2){display:flex;flex:1;flex-direction:column;min-width:0;gap:3px}
 .sample-mobile-top strong{font-size:15px;font-weight:650}
 .sample-mobile-top small{font-size:12px;line-height:1.25;opacity:.72}
 .sample-mobile-arrow{opacity:.55}
 .sample-mobile-feature{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:75px;margin-top:10px;border-radius:13px;background:var(--card-paper);padding:12px 14px;overflow:hidden}
 .sample-feature-value{font-size:27px;line-height:1;letter-spacing:-.055em;font-weight:650}
 .sample-feature-label{font-size:10px;letter-spacing:.09em;font-weight:650;opacity:.66;text-align:right}
 .sample-feature-list{font-size:13px;line-height:1.3;font-weight:550}
 .sample-feature-list b{color:#19A37B}
 .sample-feature-days{font-size:15px;white-space:nowrap;letter-spacing:.06em}
 .sample-feature-note{font-size:14px;font-style:italic;line-height:1.3}
 .showcase-foot{margin-top:2px;font-size:12px}
 .showcase-foot .muted{display:none}
 .showcase-controls{display:none}
 .sources{padding:25px 18px 28px}
 .sources .source-name{font-size:18px}
 .sources .source-note{display:none}
 .section{padding:55px 0}
 .benefit-copy .eyebrow,.section-heading .eyebrow,.pricing-title .eyebrow,.faq-title .eyebrow{font-size:12px;letter-spacing:.06em}
 .benefit-copy h2,.section-heading h2,.faq-title h2{font-size:clamp(31px,8vw,38px)}
 .benefit-copy>p,.section-heading>p{font-size:15px;line-height:1.6}
 .comparison-labels{display:none}
 .benefit-points{gap:7px;flex-wrap:wrap}
 .benefit-points>span{font-size:12px}
 .process{padding-top:40px}
 .process .eyebrow{font-size:12px}
 .process-title{font-size:34px}
 .process-steps{margin-top:18px}
 .process-step{min-height:76px}
 .process-step strong{font-size:12px}
 .process-visual{min-height:440px;height:440px;overflow:hidden;padding:15px 16px 38px;border-radius:20px}
 .process-visual .visual-caption{display:none}
 .process-visual .walkthrough-phone{width:192px;max-height:368px}
 .process-visual .demo-window{max-width:330px}
 .process-visual .window-body{padding:17px 19px}
 .process-visual .walkthrough-save{bottom:14px}
 .gallery-filters{flex-wrap:nowrap;overflow-x:auto;white-space:nowrap;scrollbar-width:none;gap:8px;margin-bottom:15px}
 .gallery-filters::-webkit-scrollbar{display:none}
 .filter{font-size:13px;padding:9px 13px;min-height:43px}
 .gallery-grid{display:grid;grid-template-columns:1fr;gap:9px}
 .gallery-card{min-height:78px;border-radius:16px;padding:12px 14px;gap:13px}
 .gallery-card img{width:52px;height:52px;border-radius:13px}
 .gallery-card h3{font-size:15px;font-weight:650}
 .gallery-card p{font-size:13px;line-height:1.3;margin-top:4px}
 .gallery-note{display:none}
 .feature-card h3{font-size:18px}
 .feature-card p{font-size:14px}
 .pricing-title p,.price-footnote{font-size:13px;line-height:1.55}
 .faq-title p{font-size:14px}
 .app-view .workspace-title .tag{display:none}
 .workspace-title h1{font-size:28px;font-weight:660;line-height:1.1}
 .workspace-title p{font-size:14px;line-height:1.5;margin-top:8px}
 .workspace-title{margin:0 0 15px}
 .flow-steps{margin:0 0 19px;gap:5px}
 .flow-step{font-size:0;gap:0}
 .flow-step .num{font-size:11px;width:27px;height:27px}
 .flow-line{flex:1;min-width:8px}
 .workspace-content{padding:18px}
 .workspace-card{border-radius:17px}
 .intake-illustration{height:68px;margin-bottom:18px}
 .intake-empty{padding:6px 0}
 .intake-empty h2{font-size:23px;font-weight:640}
 .intake-empty p{font-size:14px}
 .intake-format{font-size:12px;max-width:none}
 .intake-privacy{font-size:12px;margin-top:15px}
 .intake-actions{margin-top:19px}
 .intake-actions .btn{min-height:56px;font-size:16px}
 .intake-workspace .workspace-footer{position:relative;bottom:auto}
 .workspace-footer{position:static;inset:auto;box-shadow:none;z-index:auto;display:flex;flex-wrap:wrap;padding:16px 17px}
 .mobile-dock{z-index:400}
 .code-glimpse,.source-readonly,.source-next{display:none}
 .source-receipt+.intake-actions .btn{font-size:14px;min-height:50px}
 .sample-disclosure summary,.sample-disclosure summary>span{font-size:13px}
 .sample-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 .sample-list .demo-choice{min-height:100px}
 .sample-list .demo-choice>span{font-size:12px}
 .paste-dialog .dialog-header .eyebrow{font-size:12px}
 .paste-explanation{font-size:14px;line-height:1.6}
 #manualCodeInput{min-height:140px;font-size:16px}
 body[data-view="create"][data-step="2"] .immersive-preview{position:fixed;inset:0;z-index:120;background:white;display:flex;flex-direction:column;height:100dvh;overflow:hidden}
 .immersive-preview-head{flex-shrink:0;min-height:60px;padding:calc(env(safe-area-inset-top,0px) + 12px) 18px 12px;display:flex;justify-content:space-between;align-items:flex-end;border-bottom:1px solid var(--line);font-size:13px}
 .preview-head-title{font-weight:660;color:var(--ink)}
 .preview-head-name{max-width:52%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}
 .immersive-preview-stage{position:relative;min-height:0;flex:1;background:white}
 .immersive-preview-stage iframe{display:block;width:100%;height:100%;border:0;background:white}
 .preview-loader{position:absolute;inset:0;z-index:2;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px;background:#F9F7FD;color:var(--ink);font-size:15px}
 .preview-loader strong{font-weight:580}
 .immersive-preview-footer{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:10px;padding:13px 18px calc(13px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--line);background:#fff;flex-shrink:0}
 .immersive-preview-footer .btn{min-height:52px;font-size:15px}
 .immersive-preview-footer .btn.primary{background:var(--accent);color:#fff}
 .customize-grid{gap:18px}
 .field-help{font-size:12px;line-height:1.5}
 .customize-preview .preview-label{font-size:12px}
 .customize-fields .inline-message:not(.error){display:none}
 .result-simple{padding:22px 0}
 .result-simple .result-icon{width:84px;height:84px;margin-bottom:18px}
 .result-simple h2{font-size:30px}
 .result-simple>p{font-size:15px;margin:12px auto 20px}
 .result-simple .btn{min-height:54px;font-size:15px}
 .result-extras{margin-top:12px}
 body[data-view="create"][data-step="4"] .workspace-footer{display:none}
 .library-head{align-items:center;margin:10px 0 18px}
 .library-head h1{font-size:32px;font-weight:650;letter-spacing:-.05em}
 .library-head p{font-size:14px;margin-top:5px;color:var(--muted)}
 .library-new{display:none}
 .library-toolbar{display:flex;gap:9px;align-items:center;margin:0 0 18px}
 .library-toolbar .search-field{flex:1;min-width:0}
 .library-toolbar .text-input{min-width:0;font-size:16px}
 .library-toolbar #librarySort{display:none}
 .library-toolbar>.btn{font-size:13px;min-height:48px;white-space:nowrap}
 .library-grid{grid-template-columns:1fr;gap:12px}
 .library-card{border-radius:17px}
 .library-card-top{padding:19px 18px 15px;gap:13px}
 .library-card-top img{width:55px;height:55px;border-radius:14px}
 .library-card-top h3{font-size:18px;max-width:none}
 .library-card-top p{font-size:13px;margin-top:4px}
 .library-card-actions{display:flex;padding:0 18px 18px;margin:0;gap:9px}
 .library-card-actions .btn{min-height:48px;font-size:14px}
 .library-card-actions .icon-button{min-width:48px}
 .empty-state{padding:55px 18px}
 .empty-state p{font-size:14px}
 .sample-detail{padding:10px 0 24px}
 .sample-back{font-size:14px;margin:0 0 19px}
 .sample-detail-intro{gap:13px}
 .sample-detail-intro img{width:62px;height:62px;border-radius:16px}
 .sample-detail-intro h1{font-size:27px}
 .sample-detail-intro p{font-size:14px}
 .sample-detail-poster{height:390px;padding:17px;border-radius:18px}
 .sample-detail-poster .preview-paper{max-width:285px;border-radius:14px}
 .sample-detail-poster .mini-ui{padding:17px 15px}
 .sample-detail-poster .mini-app-bar{font-size:10px;margin-bottom:10px}
 .sample-detail-poster .mini-ui .paper-title{font-size:24px}
 .sample-detail-poster .mini-app-content{padding:0}
 .sample-detail-description{font-size:14px;line-height:1.55;margin:16px 0 19px}
 .sample-detail-actions{display:grid;gap:8px}
 .sample-detail-actions .btn{width:100%;min-height:52px;font-size:15px}
 .full-preview-actions{padding:11px 16px calc(11px + env(safe-area-inset-bottom,0px))}
 .full-preview-actions .btn{min-height:52px;font-size:15px}
 .fullscreen-dialog[open]{padding-top:calc(60px + env(safe-area-inset-top,0px));display:flex;flex-direction:column}
 .fullscreen-dialog:not([open]){display:none!important}
 .fullscreen-dialog #fullPreviewFrame{flex:1;height:auto;min-height:0}
 .install-app{gap:10px;margin-top:4px}
 .install-app img{width:76px;height:76px;border-radius:17px}
 .install-intro{font-size:14px}
 .install-link-row{margin-top:16px}
 .dialog-body .install-link-result h3{font-size:22px}
 dialog:not(.fullscreen-dialog) .dialog-body p{line-height:1.55}
}
@media(max-width:359px){
 .hero .hero-line,.hero .hero-line.second{gap:5px}
 .hero h1{font-size:27px}
 .hero-icon,.hero-line.second .hero-icon{width:37px;height:37px;min-width:37px}
 .sample-mobile-feature{padding:10px}
 .showcase-card{flex-basis:240px}
 .library-toolbar>.btn{padding-inline:10px}
}
@media(prefers-reduced-motion:reduce){.preview-spinner{animation:none;border-color:var(--accent)}}

/* Final editorial contrast and navigation state */
@media(max-width:600px){
 .showcase-mobile-card{color:#30273C}
 .sample-mobile-feature{color:var(--card-ink)}
 .showcase-card:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
 .site-header .brand-mark{flex-shrink:0}
 .workspace-card .workspace-footer{position:static;inset:auto}
 body[data-view="create"][data-step="3"] .mobile-dock{display:none}
 body[data-view="create"][data-step="3"] #studioView{padding-bottom:calc(104px + env(safe-area-inset-bottom,0px) + var(--keyboard-inset))}
 body[data-view="create"][data-step="3"] .workspace-footer{
  position:fixed;inset:auto 0 var(--keyboard-inset);z-index:60;flex-wrap:nowrap;gap:10px;
  padding:12px max(16px,env(safe-area-inset-right,0px)) calc(12px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px));
  background:#fff;box-shadow:0 -7px 24px #25232806;
 }
 body[data-view="create"][data-step="3"] .workspace-footer>.btn{min-height:52px;min-width:0;font-size:14px;padding:12px 10px;gap:8px}
 body[data-view="create"][data-step="3"].keyboard-open .workspace-footer{padding-bottom:12px}
 body[data-view="create"][data-step="3"] #appName{scroll-margin-bottom:calc(110px + var(--keyboard-inset))}
 body[data-view="create"][data-step="3"] #saveError{scroll-margin-bottom:var(--keyboard-inset)}
 body[data-view="create"][data-step="4"] .workspace-footer{display:none}
 .immersive-preview .preview-head-name{font-size:13px}
 .sample-detail-poster .mini-ui{max-width:310px;margin:auto}
}

/* Operation feedback: do not leave a live button visually frozen. */
#prepareTransferButton[aria-busy="true"],.workspace-footer [data-action="saveApp"][aria-busy="true"]{position:relative;pointer-events:none}
#prepareTransferButton[aria-busy="true"]::after,
.workspace-footer [data-action="saveApp"][aria-busy="true"]::after{
 content:"";width:17px;height:17px;border:2px solid rgba(255,255,255,.4);
 border-top-color:white;border-radius:50%;animation:maketap-spin .7s linear infinite;
 margin-left:8px;display:inline-block;flex-shrink:0
}
@media(prefers-reduced-motion:reduce){
 #prepareTransferButton[aria-busy="true"]::after,.workspace-footer [data-action="saveApp"][aria-busy="true"]::after{
  animation:none;border-top-color:white
 }
}

/* Mobile landing page: progressively reduce non-actionable decoration. */
.mobile-pricing-shortlist{display:none}
@media(max-width:600px){
 .benefit .before-after{display:none}
 .benefit .benefit-layout{display:block}
 .benefit .benefit-copy{max-width:100%}
 .benefit-points{margin-top:17px}
 .ownership-grid{display:grid;grid-template-columns:1fr;gap:10px}
 .ownership-grid .feature-card{
  display:grid;grid-template-columns:72px minmax(0,1fr);grid-template-rows:auto auto;
  align-items:center;column-gap:14px;row-gap:3px;min-height:0;padding:15px 16px;
  border-radius:16px
 }
 .ownership-grid .feature-visual{
  grid-column:1;grid-row:1/span 2;width:72px;height:70px;min-height:0;
  margin:0;overflow:hidden
 }
 .ownership-grid .feature-card h3{grid-column:2;grid-row:1;margin:0;font-size:17px;line-height:1.2}
 .ownership-grid .feature-card p{
  grid-column:2;grid-row:2;margin:0;font-size:13px;line-height:1.45;
  color:var(--muted)
 }
 .ownership-grid .feature-visual .rename-visual{padding:6px;justify-content:center;border:0;background:none;box-shadow:none}
 .ownership-grid .feature-visual .rename-visual img{width:52px;height:52px;flex-shrink:0}
 .ownership-grid .feature-visual .rename-visual>div{display:none}
 .ownership-grid .feature-visual .offline-symbol{transform:scale(.77)}
 .ownership-grid .feature-visual .file-visual{font-size:0;transform:scale(.88);box-shadow:none}
 .ownership-grid .feature-visual .file-visual svg{width:30px;height:30px}
 .pricing{padding-top:54px}
 .pricing-title{margin-bottom:18px}
 .pricing-title .eyebrow{display:none}
 .pricing-title h2{font-size:30px}
 .pricing-title p{font-size:14px;line-height:1.45;margin:8px 0}
 .pricing-grid{display:block}
 .pricing-grid>.price-card{display:none!important}
 .mobile-pricing-shortlist{display:block;max-width:400px;margin:0 auto}
 .mobile-plan-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--line);border-radius:13px;padding:13px 17px;margin:8px 0;background:#fff}
 .mobile-plan-row>span{display:flex;flex-direction:column;gap:3px}
 .mobile-plan-row strong{font-size:16px;font-weight:650}
 .mobile-plan-row small{font-size:13px;color:var(--muted)}
 .mobile-plan-row b{font-size:20px;font-weight:650;letter-spacing:-.045em}
 .mobile-pricing-shortlist>p{font-size:13px;line-height:1.5;color:var(--muted);text-align:center;margin:15px auto}
 .mobile-pricing-shortlist>.btn{min-height:52px;font-size:15px}
 .pricing .price-footnote{display:none}
 .final-cta{padding:32px 18px;border-radius:20px}
 .final-cta h2{font-size:31px}
 .final-cta p{font-size:14px;margin:10px 0 18px}
 .final-cta .final-decoration{display:none}
}

/* MakeTap private-install account entry, no external auth iframe. */
.account-nav{font-size:13px;font-weight:600;color:var(--accent-dark);min-height:44px;min-width:74px;padding:8px 10px;text-align:center}
.account-nav[aria-busy="true"]{color:var(--muted);cursor:wait}
.account-description{font-size:14px;line-height:1.55;color:var(--muted);margin:0 0 22px}
.account-setup-context{border:1px solid var(--line);border-radius:12px;background:var(--soft);padding:14px;margin-bottom:18px}
.account-setup-context p{margin:0}
.account-dialog .dialog-body form{display:grid;gap:10px;margin-bottom:10px}
.account-dialog .dialog-body form[hidden]{display:none}
.account-dialog .text-input{min-height:50px;font-size:16px}
.account-dialog .btn{min-height:50px;margin-top:6px}
.account-message{font-size:13px;line-height:1.55;min-height:22px;margin-top:10px;color:var(--muted)}
.account-message[data-error="true"]{color:#9f2e47}
#accountIdentity{text-align:center}
#accountEmailDisplay{font-size:16px;font-weight:650;margin:8px 0 12px;overflow-wrap:anywhere}
#accountPlanStatus{margin:10px 0 22px;font-size:14px;line-height:1.6}
@media(max-width:600px){
  .account-nav{font-size:13px;padding:8px 6px;min-width:66px}
  .site-header .nav-actions{gap:6px}
}
.compatibility-check {
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--subtle);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}
.compatibility-check[data-verdict="review"],
.compatibility-check[data-verdict="reject"] {
  background: #fcf6e9;
  border-color: #efe0b9;
}
.compatibility-check strong { font-weight: 630; }
.compatibility-check p,
.dialog-body .compatibility-check p { font-size: 12px; margin: 4px 0 0; color: var(--muted); }
.compatibility-check ul { margin: 5px 0; padding-inline-start: 18px; }
.compatibility-action { border: 0; color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.replace-panel .compatibility-action { margin-inline-start: 12px; }
#sourceError .compatibility-action,
#manualPasteError .compatibility-action { display: block; }
.repair-actions { display: grid; gap: 9px; }
#repairPrompt {
  display: block;
  width: 100%;
  min-height: 155px;
  margin: 0 0 13px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: var(--soft);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
}
#repairDetails .compatibility-check { margin-top: 0; }
@media (max-width:600px) {
  .immersive-preview .immersive-preview-head { align-items: center; gap: 10px; padding-block-end: 5px; }
  .immersive-preview .preview-head-title,
  .immersive-preview .compatibility-action { flex-shrink: 0; }
  .immersive-preview .preview-head-name { min-width: 0; margin-inline-start: auto; }
  .immersive-preview .compatibility-action { min-height: 44px; font-size: 12px; padding-inline: 0; }
}


/* Consistent ownership symbols and enclosed navigation icons. */
.phosphor-icon{fill:currentColor;stroke:none}
.dock-icon-outline{display:inline}.dock-icon-solid{display:none}
.ownership .ownership-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:stretch}
.ownership .feature-card,.ownership .feature-card:first-child{display:flex;flex-direction:column;align-items:flex-start;grid-column:auto;min-height:224px;padding:24px;border-radius:20px}
.ownership .feature-card .feature-visual{display:grid;place-items:center;grid-column:auto;grid-row:auto;width:64px;height:64px;min-height:64px;flex-shrink:0;margin:0 0 20px;overflow:visible}
.ownership .feature-icon{display:grid;place-items:center;width:64px;height:64px;flex:none;border:1px solid var(--line);border-radius:16px;background:#ffffffb3;color:var(--ink)}
.ownership .feature-icon svg{display:block;flex:none;width:30px;height:30px;aspect-ratio:1;transform:none}
.ownership .feature-card h3{grid-column:auto;grid-row:auto;align-self:auto;margin:0;font-size:20px;line-height:1.25}
.ownership .feature-card p{grid-column:auto;grid-row:auto;align-self:auto;max-width:none;margin:10px 0 0;font-size:13px;line-height:1.6}
.mobile-dock [data-icon]{display:grid;place-items:center;width:24px;height:24px;flex:none}
.mobile-dock [data-icon] svg{display:block;width:24px;height:24px;aspect-ratio:1;flex:none;color:inherit;transform:none}
.mobile-dock .dock-icon-outline{display:inline;fill:currentColor;stroke:none}
.mobile-dock .dock-icon-solid{fill:currentColor;stroke:none}
.mobile-dock button.active .dock-icon-outline{display:none}
.mobile-dock button.active .dock-icon-solid{display:inline}
.mobile-dock .dock-create svg{color:inherit}
@media(max-width:850px){
 .ownership .ownership-grid{grid-template-columns:1fr;grid-auto-rows:1fr}
 .ownership .feature-card,.ownership .feature-card:first-child{display:grid;grid-template-columns:64px minmax(0,1fr);grid-template-rows:min-content min-content;align-content:center;align-items:center;column-gap:20px;row-gap:6px;min-height:136px}
 .ownership .feature-card .feature-visual{grid-column:1;grid-row:1/span 2;margin:0}
 .ownership .feature-card h3{grid-column:2;grid-row:1}
 .ownership .feature-card p{grid-column:2;grid-row:2;margin:0}
}
@media(max-width:600px){
 .ownership .feature-card,.ownership .feature-card:first-child{grid-template-columns:52px minmax(0,1fr);column-gap:16px;min-height:128px;padding:20px;border-radius:16px}
 .ownership .feature-card .feature-visual,.ownership .feature-icon{width:52px;height:52px;min-height:52px}
 .ownership .feature-icon{border-radius:14px}
 .ownership .feature-icon svg{width:28px;height:28px}
 .ownership .feature-card h3{font-size:17px;line-height:1.25}
 .ownership .feature-card p{font-size:13px;line-height:1.5}
 .mobile-dock button:not(.active),.mobile-dock .dock-create:not(.active){color:var(--muted);background:transparent}
 .mobile-dock button.active{color:var(--accent-dark);background:var(--accent-soft)}
}

/* Staging billing reuses the existing plan and bottom-sheet hierarchy. */
/* Required staging disclosures stay visible at every viewport. Keep the
   legacy preview's mobile footnote treatment unchanged. */
.pricing .price-footnote[data-i18n="billing.taxNote"],
.pricing .price-footnote[data-i18n="migration.pricingNote"]{display:block}
.staging-notice{margin:0;padding:var(--mt-space-2,8px) var(--mt-page-gutter,20px);text-align:center;font-family:var(--mt-font-ui);font-size:var(--mt-type-caption,13px);line-height:var(--mt-leading-caption,1.5);background:var(--mt-info-bg);color:var(--mt-info);overflow-wrap:anywhere}
.billing-features{padding-inline-start:20px;text-align:start;font-size:14px;line-height:1.6;margin:16px 0}
.billing-features li+li{margin-top:8px}
.billing-grants{list-style:none;padding:0;margin:16px 0}
.billing-grants li{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;padding:12px 0;border-bottom:1px solid var(--mt-border,#dedbe5)}
.billing-grants span{font-size:13px;line-height:1.5}
.billing-purchases{display:grid;gap:12px;margin:24px 0}
.billing-v11 .payment-demo-scroll{min-height:0}
.billing-v11 footer{flex-wrap:wrap}
.billing-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;text-align:left}
.billing-card{display:flex;flex-direction:column;padding:24px;background:var(--mt-surface,#fff);border:1px solid var(--mt-border,#dedbe5);border-radius:24px;min-width:0}
.billing-card--free{border-color:var(--mt-orchid,#8b5cf6)}
.billing-card>header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}
.billing-card h3{font-size:22px;line-height:1.25;margin:0;overflow-wrap:anywhere}
.billing-card header p{font-size:13px;line-height:1.5;color:var(--mt-ink-muted,#665f70);margin:8px 0 0}
.billing-card-price{flex:none;text-align:right;display:grid;gap:4px}
.billing-card-price strong{font-family:var(--mt-font-display);font-size:28px;line-height:1.2}
.billing-card-price span{font-size:13px;line-height:1.5;color:var(--mt-ink-muted,#665f70)}
.billing-card-credits{display:flex;align-items:baseline;gap:12px;margin:24px 0 0;line-height:1.5}
.billing-card-credits strong{font-family:var(--mt-font-display);font-size:40px;line-height:1.1}
.billing-card-credits span{font-size:14px;color:var(--mt-ink-muted,#665f70)}
.billing-card .billing-features{flex:1}
.billing-card>.btn{width:100%;margin-top:8px}
@media(max-width:1023px){.billing-card-grid{grid-template-columns:1fr;gap:16px}.billing-card{padding:24px}.billing-card h3{font-size:22px}}
@media(max-width:370px){.billing-card{padding:16px}.billing-card h3{font-size:20px}.billing-card-price strong{font-size:24px}}


/* Installation disclosure uses a real native details state. */
.publication-install .publication-details>summary{
 display:flex;align-items:center;gap:8px;min-height:44px;
 cursor:pointer;list-style:none
}
.publication-install .publication-details>summary::-webkit-details-marker{display:none}
.publication-install .publication-details>summary>svg{
 flex:none;margin-left:auto;transform:rotate(0deg);transition:transform 160ms ease
}
.publication-install .publication-details[open]>summary>svg{transform:rotate(180deg)}
@media(prefers-reduced-motion:reduce){
 .publication-install .publication-details>summary>svg{transition:none}
}


/* Source: core.css */
/* Functional states added without changing the v1.5 visual system. */
.btn[disabled]{cursor:not-allowed;opacity:.55;transform:none!important}
.save-status{font-size:12px;line-height:1.6;color:var(--muted);min-height:20px}
.save-status[data-state=error]{color:#9b2f36}.save-status[data-state=saved]{color:#5b398c}
.source-error-expanded{white-space:pre-wrap;overflow-wrap:anywhere}
.install-consent{display:flex;gap:12px;align-items:flex-start;padding:17px;border:1px solid var(--line);border-radius:14px;margin:22px 0;font-size:13px;line-height:1.65}
.install-consent input{width:20px;height:20px;min-width:20px;accent-color:var(--accent);margin-top:1px}
.install-url{display:block;width:100%;padding:13px 15px;background:var(--soft);border:1px solid var(--line);border-radius:12px;font-size:12px;overflow-wrap:anywhere;color:var(--ink);margin:16px 0}
.transfer-actions{display:grid;gap:10px;margin:20px 0}.transfer-actions .btn{width:100%}
.transfer-meta{font-size:12px;color:var(--muted);line-height:1.7;margin-top:15px}
.runtime-status{position:static;flex:0 0 auto;width:100%;min-height:28px;max-height:min(120px,calc(var(--visible-height,100dvh) / 4));overflow-y:auto;overflow-wrap:anywhere;margin:0;padding:6px 14px calc(6px + env(safe-area-inset-bottom,0px));background:#fff;color:var(--muted);font-size:11px;line-height:1.45;text-align:center;white-space:normal}
.runtime-status[data-has-actions=true]{padding-bottom:6px}
.runtime-status[data-state=error]{background:#fff0f0;color:#9b2f36;white-space:normal}
.recovery-more summary{min-height:44px;padding:11px 0;cursor:pointer}
.recovery-more .text-link{min-height:44px;width:100%;justify-content:flex-start}
.library-plan .plan-description{flex:1}.library-card .icon-button{min-width:44px;min-height:44px}
.storage-unavailable{padding:16px 20px;background:#fff5df;border-radius:14px;color:#735729;font-size:13px;line-height:1.7;margin-bottom:20px}
.source-readonly pre{max-height:260px;overflow:auto}.preview-detail-disclosure{margin-block:20px}
.check-copy{line-height:1.65}.result-options{margin-top:24px}
@media(max-width:600px){.install-consent{font-size:12px;padding:14px}.library-toolbar .btn{min-height:44px}.transfer-actions .btn{min-height:50px}}


/* Source: design-tokens.css */
/* MakeTap current design tokens — authority for implementation.
   Sources: docs/design-system/README.md and RESOURCES.md.
   Inspired by platform accessibility guidance, not Apple proprietary tokens. */
:root {
  /* Brand */
  --mt-primary:#7650EC; --mt-orchid:#AF68F4; --mt-electric:#7950ED;
  --mt-deep:#6929DC; --mt-lilac:#E2A1F9; --mt-coral:#FF7055;
  --mt-lime:#D7FF6B; --mt-cyan:#9CE4F5;
  --mt-page:#F8F7FB; --mt-surface:#FFFFFF; --mt-soft:#F3EDFF;
  --mt-graphite:#1C1622; --mt-ink:#21192E; --mt-muted:#766F80; --mt-line:#E9E5EF;
  --mt-error:#9B2C37; --mt-danger-hover:#80212B; --mt-error-bg:#FFE9E6;
  --mt-success:#0E654E; --mt-success-bg:#D7F9ED;
  --mt-warning:#7A4B00; --mt-warning-bg:#FFF2CA;
  --mt-info:#334C89; --mt-info-bg:#EAF1FF;
  --mt-focus:#5E30D1; --mt-focus-offset:3px;
  --mt-orchid-bloom:linear-gradient(135deg,#E2A1F9 0%,#AF68F4 35%,#7950ED 72%,#6929DC 100%);

  /* Keep Latin brand faces and prefer installed Chinese platform fonts.
     The first-party MiSans UI subset prevents missing glyphs without system CJK. */
  --mt-font-cn:"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC","Noto Sans SC","MiSans",sans-serif;
  --mt-font-display:"Space Grotesk",var(--mt-font-cn);
  --mt-font-ui:"Geist",var(--mt-font-cn);
  --mt-font-numeric-large:var(--mt-font-display);
  --mt-font-numeric-small:var(--mt-font-ui);
  --mt-number-threshold:32px;

  /* Responsive type scale (desktop first). */
  --mt-type-display:64px; --mt-type-h1:48px; --mt-type-h2:32px;
  --mt-type-h3:24px; --mt-type-body:16px; --mt-type-ui:15px; --mt-type-caption:13px;
  --mt-leading-display:1.10; --mt-leading-h1:1.14; --mt-leading-h2:1.22;
  --mt-leading-h3:1.28; --mt-leading-body:1.60; --mt-leading-ui:1.45; --mt-leading-caption:1.50;
  --mt-track-display:-.012em; --mt-track-h1:-.008em; --mt-track-h2:-.004em;
  --mt-track-h3:0em; --mt-track-body:0em; --mt-track-ui:0em; --mt-track-caption:.005em;
  --mt-word-unit-gap:.16em;

  /* Space and radii. Brand icon has its own unique SVG silhouette. */
  --mt-space-1:4px; --mt-space-2:8px; --mt-space-3:12px; --mt-space-4:16px;
  --mt-space-5:24px; --mt-space-6:32px; --mt-space-7:48px; --mt-space-8:64px;
  --mt-radius-xs:6px; --mt-radius-sm:10px; --mt-radius-md:14px;
  --mt-radius-inset:16px; --mt-radius-card:24px; --mt-radius-display:32px;
  /* Action buttons only. Inputs, icon-only controls and App icon silhouettes use their own radii. */
  --mt-radius-pill:999px; --mt-radius-sheet:24px;
  --mt-content-max:1160px; --mt-content-reading:66ch;
  --mt-gutter-mobile:20px; --mt-gutter-tablet:32px; --mt-gutter-desktop:40px;
  --mt-grid-gap-mobile:12px; --mt-grid-gap-tablet:16px; --mt-grid-gap-desktop:24px;
  /* Compact plan-sheet type roles. These are UI, not display headings. */
  --mt-paywall-title:22px; --mt-paywall-name:16px; --mt-paywall-price:22px;
  --mt-paywall-body:14px; --mt-paywall-meta:13px; --mt-paywall-action:16px;
  --mt-paywall-secondary:#665F70;
  --mt-preview-label-bg:rgba(0,0,0,.30); --mt-preview-label-size:11px;
  --mt-creation-back-size:44px; /* narrow preview icon-only Back target; 52px tall */
  --mt-guide-highlight:#C45118; --mt-guide-highlight-bg:#FFF3EC;
  --mt-guide-target-size:40px; --mt-guide-glyph-size:24px; --mt-guide-secondary:#62586c;
  --mt-target-min:44px; --mt-button-height:48px; --mt-field-height:48px;

  /* Homepage App tiles reuse shape/stagger tokens for one in-place entrance;
     text and controls remain usable, with a static reduced-motion fallback.
     Motion: brand replay is one finite pass. --mt-motion-gradient is one
     14s segment (iterations:1), never an infinite cycle. Shapes enter once at
     180ms stagger on load/refresh, viewport re-entry or hover, then stay still.
     Reduced motion and static favicon/PWA artwork never animate. */
  --mt-press:120ms; --mt-hover:160ms; --mt-reveal:280ms; --mt-layout:360ms;
  --mt-state:220ms; --mt-number:320ms; --mt-sheet:320ms; --mt-menu:180ms;
  --mt-motion-shape:420ms; --mt-motion-stagger:180ms; --mt-motion-gradient:14s;
  /* Approved homepage Orb exception; fixed blur, bounded render and finite tap. */
  --mt-orb-size:min(100.8vw,558px); --mt-orb-opacity:.78; --mt-orb-blur:3px;
  --mt-orb-tap:800ms;
  --mt-ease:cubic-bezier(.2,.8,.2,1); --mt-ease-out:cubic-bezier(.22,1,.36,1);
  --mt-shadow-card:0 10px 30px rgba(33,25,46,.06);
}
@media (max-width:650px) {
  :root {
    --mt-type-display:40px; --mt-type-h1:34px; --mt-type-h2:27px;
    --mt-type-h3:21px; --mt-type-body:17px;
  }
}
@media (max-width:599px) { :root { --mt-page-gutter:var(--mt-gutter-mobile); --mt-grid-gap:var(--mt-grid-gap-mobile); } }
@media (min-width:600px) and (max-width:1023px) { :root { --mt-page-gutter:var(--mt-gutter-tablet); --mt-grid-gap:var(--mt-grid-gap-tablet); } }
@media (min-width:1024px) { :root { --mt-page-gutter:var(--mt-gutter-desktop); --mt-grid-gap:var(--mt-grid-gap-desktop); } }
/* Font role classes — CSS cannot branch automatically on computed font size. */
.mt-display,.mt-h1,.mt-h2,.mt-h3,.mt-number-display{font-family:var(--mt-font-display)}
.mt-display{font-size:var(--mt-type-display);line-height:var(--mt-leading-display);letter-spacing:var(--mt-track-display)}
.mt-h1{font-size:var(--mt-type-h1);line-height:var(--mt-leading-h1);letter-spacing:var(--mt-track-h1)}
.mt-h2{font-size:var(--mt-type-h2);line-height:var(--mt-leading-h2);letter-spacing:var(--mt-track-h2)}
.mt-h3{font-size:var(--mt-type-h3);line-height:var(--mt-leading-h3);letter-spacing:0}
.mt-body,.mt-caption,.mt-btn,.mt-number-ui{font-family:var(--mt-font-ui)}
.mt-body{font-size:var(--mt-type-body);line-height:var(--mt-leading-body);letter-spacing:0}
.mt-caption{font-size:var(--mt-type-caption);line-height:var(--mt-leading-caption);letter-spacing:var(--mt-track-caption)}
.mt-number-display{font-variant-numeric:proportional-nums;letter-spacing:0}
.mt-number-ui{font-variant-numeric:tabular-nums;letter-spacing:0}
.mt-focusable:focus-visible{outline:3px solid var(--mt-focus);outline-offset:var(--mt-focus-offset)}
.mt-status-error{color:var(--mt-error);background:var(--mt-error-bg)}
.mt-status-success{color:var(--mt-success);background:var(--mt-success-bg)}
.mt-status-warning{color:var(--mt-warning);background:var(--mt-warning-bg)}
.mt-status-info{color:var(--mt-info);background:var(--mt-info-bg)}
/* One product button family. Brand and semantic Danger states do not share hover. */
.mt-btn{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:var(--mt-button-height);padding:10px 19px;border:1px solid transparent;border-radius:var(--mt-radius-pill);font:600 var(--mt-type-ui)/var(--mt-leading-ui) var(--mt-font-ui);letter-spacing:0;cursor:pointer;text-decoration:none;transition:background var(--mt-hover) ease,transform var(--mt-press) var(--mt-ease),border-color var(--mt-hover) ease}
.mt-btn:active:not(:disabled){transform:scale(.98)}
.mt-btn:focus-visible{outline:3px solid var(--mt-focus);outline-offset:3px}
.mt-btn:disabled,.mt-btn[aria-disabled="true"]{opacity:.55;cursor:not-allowed;transform:none}
.mt-btn--primary{background:var(--mt-primary);color:white}
.mt-btn--primary:hover:not(:disabled){background:var(--mt-deep)}
.mt-btn--secondary{background:var(--mt-surface);border-color:var(--mt-line);color:var(--mt-ink)}
.mt-btn--secondary:hover:not(:disabled){background:var(--mt-soft)}
.mt-btn--soft{background:var(--mt-soft);color:var(--mt-deep)}
.mt-btn--soft:hover:not(:disabled){background:#E7DDFD}
.mt-btn--ghost{background:transparent;color:var(--mt-ink)}
.mt-btn--ghost:hover:not(:disabled){background:var(--mt-soft)}
.mt-btn--accent{background:var(--mt-lime);color:var(--mt-graphite)}
.mt-btn--accent:hover:not(:disabled){background:#CEFA54}
.mt-btn--danger{background:var(--mt-error-bg);color:var(--mt-error);border-color:transparent}
.mt-btn--danger:hover:not(:disabled){background:#FBD2CF;color:var(--mt-danger-hover)}
@media (prefers-reduced-motion:reduce){.mt-btn{transition:none!important}.mt-motion-safe{animation:none!important;transition:none!important}}
@media (forced-colors:active){.mt-focusable:focus-visible,.mt-btn:focus-visible{outline:3px solid Highlight}}


/* Source: fonts/misans-ui.css */
/* MiSans by Xiaomi: embedded UI subset; official outlines and weight axis retained. */
@font-face{font-family:"MiSans";src:url("./fonts/misans-ui-variable.woff2") format("woff2");font-style:normal;font-weight:150 700;font-display:swap;unicode-range:U+3001-3002,U+4E00,U+4E03,U+4E07,U+4E09-4E0B,U+4E0D-4E0E,U+4E13-4E14,U+4E16,U+4E1A,U+4E1C,U+4E22,U+4E24,U+4E2A,U+4E2D,U+4E34,U+4E3A-4E3B,U+4E45,U+4E48-4E49,U+4E4B,U+4E5F-4E60,U+4E66,U+4E70,U+4E86,U+4E88,U+4E8B-4E8C,U+4E8E,U+4E91-4E92,U+4E94,U+4E9B,U+4EA4,U+4EA7,U+4EAB,U+4EAE,U+4EBA,U+4EC0,U+4EC5,U+4ECA,U+4ECD-4ECE,U+4ED4,U+4ED6,U+4ED8,U+4EE3-4EE5,U+4EEC,U+4EF6-4EF7,U+4EFB,U+4EFD,U+4F11,U+4F18,U+4F1A,U+4F20,U+4F46,U+4F4D,U+4F4F,U+4F53,U+4F55,U+4F59,U+4F5C,U+4F60,U+4F7F,U+4F8B,U+4F9B,U+4F9D,U+4FBF,U+4FDD,U+4FE1,U+4FEE,U+5012,U+5019,U+503C,U+504F,U+505A,U+505C,U+5076,U+50A8,U+50CF,U+5141,U+5143,U+5145,U+5148-5149,U+514D,U+5165,U+5168,U+516C-516D,U+5171,U+5173,U+5176-5177,U+517C,U+5185,U+518C-518D,U+5199,U+51B2-51B3,U+51B5,U+51C6,U+51CF,U+51E0,U+51FA-51FB,U+5206,U+5212,U+5217,U+5219-521B,U+5220,U+5224,U+5229,U+522B,U+5230,U+5236-5237,U+523B,U+524D,U+5269-526A,U+526F,U+529B,U+529F-52A1,U+52A8-52A9,U+52FE-52FF,U+5305,U+5316,U+5339-533A,U+5347-5348,U+5355,U+5360-5361,U+5370,U+5373,U+5377-5378,U+538B,U+539F,U+53CA,U+53D1,U+53D6-53D8,U+53E0,U+53E3,U+53E5-53E6,U+53EA,U+53EF-53F0,U+53F3,U+53F7,U+5404,U+5408,U+540C-540E,U+5411,U+5417,U+5426-5427,U+542B,U+542F,U+544A,U+5468,U+547D,U+548C,U+5496,U+54C1,U+54CD,U+54EA,U+5546,U+5561,U+559C,U+5668,U+56DB,U+56DE,U+56E0,U+56F4,U+56FE,U+5728,U+5730,U+573A,U+5740,U+5747,U+574F,U+5757,U+575E,U+578B,U+57CB,U+57DF,U+57FA,U+586B,U+5883,U+589E,U+58A8,U+58F0,U+5904,U+5907,U+590D,U+5916,U+591A,U+5927,U+5929-592A,U+592E,U+5931,U+5934,U+5939,U+594F,U+5957,U+597D,U+5982,U+59CB,U+5B50,U+5B57-5B58,U+5B83,U+5B89,U+5B8C,U+5B9A,U+5B9E,U+5BA1-5BA2,U+5BA4,U+5BB6,U+5BB9,U+5BBD,U+5BC6,U+5BF8-5BF9,U+5BFB-5BFC,U+5C01,U+5C06,U+5C0F,U+5C11,U+5C14,U+5C1A,U+5C1D,U+5C31,U+5C3A,U+5C3D,U+5C42,U+5C45,U+5C4F,U+5C55,U+5C5E,U+5D4C,U+5DE5,U+5DEE,U+5DF1-5DF2,U+5E03,U+5E26-5E27,U+5E2E,U+5E38,U+5E55,U+5E73-5E74,U+5E76,U+5E8F,U+5E93-5E95,U+5EA6,U+5EF6,U+5EFA,U+5F00,U+5F02,U+5F0F,U+5F15,U+5F20,U+5F39-5F3A,U+5F52-5F53,U+5F55,U+5F71,U+5F80,U+5F84-5F85,U+5F88,U+5F8B,U+5F97,U+5FAA,U+5FC3,U+5FC5,U+5FEB,U+5FF5,U+5FFD,U+6001,U+600E,U+601D,U+6027,U+603B,U+6062,U+606F-6070,U+6089,U+60C5,U+60EF,U+60F3,U+610F,U+611F,U+6162,U+6210-6211,U+6216,U+622A,U+6237,U+6240,U+624B,U+624D,U+6253,U+6258,U+6263,U+6267,U+6269,U+626B,U+6279,U+627E-627F,U+628A,U+6295,U+62A4-62A5,U+62DF,U+62E6,U+62E9,U+62EC,U+6301,U+6307,U+6309,U+635F,U+6362,U+636E,U+6377,U+6389,U+6392,U+63A2,U+63A5,U+63A7-63A8,U+63CF-63D0,U+63D2,U+641C,U+64A4,U+64AD,U+64CD,U+652F,U+6536,U+6539,U+653E-653F,U+6548,U+654F,U+6551,U+6563,U+6570,U+6574,U+6587,U+6599,U+65AD,U+65B0,U+65B9,U+65C5,U+65E0,U+65E2,U+65E5,U+65E7,U+65E9,U+65F6,U+660E,U+6613,U+661F,U+6628,U+662F,U+663E,U+665A,U+666E-666F,U+6682,U+6696,U+66F4,U+66FF-6700,U+6708-6709,U+670D,U+671B,U+671F,U+672A-672C,U+672F,U+673A,U+6742-6743,U+674E,U+675F,U+6761,U+6765,U+676F,U+677E-677F,U+6784,U+6790,U+679C,U+67D0,U+67E5,U+6807,U+6821,U+6837-6839,U+683C,U+6846,U+6848,U+6863,U+68C0,U+695A,U+6982,U+699C,U+6A21,U+6A59,U+6B21-6B22,U+6B3E,U+6B62-6B65,U+6B8A,U+6BB5,U+6BCF,U+6BD4,U+6C34,U+6C38,U+6C42,U+6C47,U+6CA1,U+6CBF,U+6CD5,U+6CE8,U+6D3B,U+6D41,U+6D45,U+6D4B,U+6D4E-6D4F,U+6D88,U+6DF1,U+6DFB,U+6E05,U+6E29,U+6E38,U+6E90,U+6EE1,U+6F0F,U+6F14,U+7075,U+70B9,U+7136,U+719F,U+7236,U+723D,U+7247-7248,U+7269,U+7279,U+72B6,U+72EC,U+7387,U+73AB,U+73AF-73B0,U+73CA,U+7406,U+745A,U+7470,U+751F,U+7528,U+7531,U+7533,U+7535,U+753B,U+754C,U+7559,U+7565,U+7591,U+767B,U+767D,U+7684,U+76CA,U+76D8,U+76EE,U+76F4,U+76F8,U+7701,U+770B,U+771F,U+773C,U+7740,U+77E5,U+77ED,U+7801,U+7840,U+786E,U+793A,U+793C,U+793E,U+79BB,U+79C1,U+79CD,U+79D2,U+79EF-79F0,U+79FB,U+7A0B,U+7A0D-7A0E,U+7A33,U+7A3F,U+7A7A,U+7A7F,U+7A81,U+7A84,U+7A97,U+7ACB,U+7AD9,U+7AEF,U+7B14,U+7B26,U+7B2C,U+7B49,U+7B56,U+7B5B,U+7B7E,U+7B80,U+7B97,U+7BA1,U+7BB1,U+7C73,U+7C7B,U+7C89,U+7C98,U+7CFB,U+7D20,U+7D22,U+7D2B,U+7E41,U+7EA6-7EA7,U+7EAF,U+7EBF,U+7EC4,U+7EC6,U+7EC8,U+7ECF,U+7ED3,U+7ED9,U+7EDC-7EDD,U+7EE7,U+7EEA,U+7EED,U+7EF4,U+7F13,U+7F16,U+7F29,U+7F3A,U+7F51,U+7F6E,U+7F8E,U+7FFB,U+8003,U+8005,U+800C,U+8017,U+804A,U+8054,U+805A,U+80CC,U+80FD,U+8111,U+811A,U+81EA,U+81F3-81F4,U+822A,U+8272,U+8282,U+82F1,U+8303,U+8336,U+8349,U+8377,U+83B7,U+83DC,U+843D,U+84DD,U+8584,U+85CF,U+878D,U+884C,U+8865,U+8868,U+88AB,U+88C1,U+88C5,U+897F,U+8981,U+89C1-89C2,U+89C4,U+89C8,U+89D2,U+89E3,U+89E6,U+8A00,U+8B66,U+8BA1-8BA2,U+8BA4,U+8BA9,U+8BAE,U+8BB0,U+8BB2,U+8BB8,U+8BBE-8BBF,U+8BC1,U+8BC6,U+8BC9,U+8BCD,U+8BD5,U+8BDD,U+8BE2,U+8BE5-8BE6,U+8BED,U+8BEF,U+8BF4,U+8BF7,U+8BFA-8BFB,U+8C03,U+8C22,U+8D25-8D26,U+8D2D,U+8D34,U+8D39,U+8D44,U+8D4B,U+8D56,U+8D60,U+8D77,U+8D85,U+8DB3,U+8DC3,U+8DEF,U+8DF3,U+8EAB,U+8F6C,U+8F7B,U+8F7D,U+8F83,U+8F91,U+8F93,U+8FB9,U+8FBE,U+8FC1,U+8FC7,U+8FCE,U+8FD0-8FD1,U+8FD4,U+8FD8-8FD9,U+8FDB-8FDC,U+8FDE,U+8FF0,U+9000-9002,U+9009,U+900F,U+9014,U+901A,U+901F-9020,U+9047,U+9053,U+9057,U+9075,U+907F,U+90A3,U+90AE,U+90E8,U+90FD,U+914D,U+9192,U+91C7,U+91CA,U+91CC-91CD,U+91CF,U+91D1,U+949F,U+94AE,U+94F6,U+94FE,U+9519,U+952E,U+957F,U+95E8,U+95ED-95EE,U+95F4,U+9605,U+9636,U+963B,U+9644-9645,U+9650,U+9664,U+968F-9690,U+9694,U+96C6,U+9700,U+9752,U+9759,U+9760,U+9762,U+9875,U+9879,U+987B,U+9884,U+9891,U+9898,U+989C-989D,U+9910,U+9996,U+9A8C,U+9AA4,U+9AD8,U+9E23,U+9EC4,U+9ED1,U+9ED8,U+9F50,U+FF08-FF09,U+FF0C,U+FF0F,U+FF1A-FF1B,U+FF1F}


/* Source: visual-refresh.css */
/* MakeTap UI foundations · canonical docs/design-system/tokens.css */
@font-face{font-family:"Geist";src:url("./fonts/geist-sans-variable.woff2") format("woff2");font-style:normal;font-weight:100 900;font-display:swap}
@font-face{font-family:"MakeTap Source Inter";src:url("./fonts/inter-source-black.woff2") format("woff2");font-style:normal;font-weight:900;font-display:swap}
@font-face{font-family:"Space Grotesk";src:url("./fonts/space-grotesk-variable.woff2") format("woff2");font-style:normal;font-weight:300 700;font-display:swap}
:root,html[data-theme="purple"]{
 --orchid:var(--mt-primary);--orchid-soft:var(--mt-soft);--orchid-hover:var(--mt-deep);
 --coral:var(--mt-coral);--lime:var(--mt-lime);--porcelain:var(--mt-page);--warm-white:var(--mt-surface);--graphite:var(--mt-graphite);
 --accent:var(--mt-primary);--accent-dark:var(--mt-deep);--accent-soft:var(--mt-soft);
 --accent-ink:var(--mt-surface);--brand:var(--mt-primary);--subtle:var(--mt-page);--stage:var(--mt-page);
 --ink:var(--mt-ink);--paper:var(--mt-page);--muted:var(--mt-muted);--soft:var(--mt-soft);--line:var(--mt-line);--max:var(--mt-content-max);
 --font-body:var(--mt-font-ui);--font-display:var(--mt-font-display);
 --mt-shell-heading-weight:700;--mt-shell-subheading-weight:600;--mt-shell-ui-weight:600;--mt-shell-body-weight:400;
 --motion-quick:var(--mt-hover);--motion-settle:var(--mt-reveal);--motion-enter:var(--mt-layout);
 --ease:var(--mt-ease);--ease-out:var(--mt-ease-out);--focus-ring:var(--mt-focus);
}
body{font-family:var(--font-body);font-size:var(--mt-type-body);line-height:var(--mt-leading-body);color:var(--ink);background:var(--paper);font-feature-settings:"ss01" 1;letter-spacing:var(--mt-track-body)}
button,input,textarea,select{font-family:var(--font-body);letter-spacing:var(--mt-track-ui)}
.wrap,.app-container{width:min(var(--mt-content-max),calc(100% - 2 * var(--mt-page-gutter)));margin-inline:auto}

.locale-picker{position:relative;display:inline-flex;align-items:center;min-height:44px;max-width:100%}
.locale-picker select{-webkit-appearance:none;appearance:none;min-height:44px;max-width:100%;padding:9px 32px 9px 42px;border:1px solid transparent;border-radius:var(--mt-radius-sm);background:transparent;color:var(--ink);font-family:var(--font-body);font-size:16px;font-weight:var(--mt-shell-ui-weight);cursor:pointer}
.locale-picker .locale-symbol{position:absolute;left:12px;top:50%;display:flex;transform:translateY(-50%);pointer-events:none;color:var(--ink)}
.locale-picker .locale-caret{position:absolute;right:11px;top:50%;display:flex;transform:translateY(-50%) rotate(90deg);pointer-events:none;color:var(--muted)}
.locale-picker select:hover{background:var(--soft);color:var(--ink)}
.locale-picker select:focus-visible{outline:3px solid var(--mt-focus);outline-offset:var(--mt-focus-offset)}
.mobile-menu .locale-picker{display:flex;margin:0 0 8px;padding:0 0 8px;border-bottom:1px solid var(--line)}
.mobile-menu .locale-picker select{width:100%;min-height:48px;padding:12px 36px 12px 42px;color:var(--ink);font-size:16px}
.mobile-menu .locale-picker .locale-caret{right:12px;top:calc(50% - 4px)}
.mobile-menu .locale-picker .locale-symbol{top:calc(50% - 4px)}
.brand{font-family:var(--font-body);font-weight:680;letter-spacing:-1.2px}
.hero #heroTitle,#studioView h1,#sampleView h1,.section-heading h2{font-family:var(--font-display);font-weight:600}
.btn,.mt-btn,.icon-button,.filter,.mobile-dock button{transition:background-color var(--mt-hover),color var(--mt-hover),border-color var(--mt-hover),box-shadow var(--mt-hover),transform var(--mt-press) var(--mt-ease)}
/* Existing .btn markup uses the same canonical family as new .mt-btn controls. */
.btn{appearance:none;min-height:var(--mt-button-height);padding:10px 19px;gap:9px;border-radius:var(--mt-radius-pill);font:var(--mt-shell-ui-weight) var(--mt-type-ui)/var(--mt-leading-ui) var(--mt-font-ui);letter-spacing:var(--mt-track-ui);white-space:normal;text-align:center}
.btn.small{min-height:var(--mt-target-min);font-size:var(--mt-type-ui);border-radius:var(--mt-radius-pill)}
/* Temporary specificity bridge for legacy .btn variants; all values resolve to the canonical action-radius token. Remove after per-component migration. */
:is(.btn,.mt-btn):is(.primary,.secondary,.soft,.ghost,.accent,.danger),:is(.mt-btn--primary,.mt-btn--secondary,.mt-btn--soft,.mt-btn--ghost,.mt-btn--accent,.mt-btn--danger),.hero .actions>.btn:is(.primary,.secondary){border-radius:var(--mt-radius-pill)}
.icon-button{min-width:var(--mt-target-min);min-height:var(--mt-target-min);border-radius:var(--mt-radius-sm);border-color:var(--mt-line);background:var(--mt-surface)}
.btn.primary,.btn.primary:is(:disabled,[aria-disabled="true"]),.mt-btn--primary[aria-disabled="true"]{background:var(--mt-primary);color:var(--mt-surface);border-color:transparent;box-shadow:none}
.btn.secondary{background:var(--mt-surface);border-color:var(--mt-line);color:var(--mt-ink)}
/* Keep this disabled secondary CTA stable over legacy Complete-card hover/press rules. */
#homeView .price-card.complete .btn.secondary:is(:disabled,[aria-disabled="true"]):not(:is(.danger,.mt-btn--danger,[data-tone="danger"])){background:var(--mt-surface);border-color:var(--mt-line);color:var(--mt-ink);box-shadow:none;transform:none}
.btn.soft{background:var(--mt-soft);color:var(--mt-deep)}
.btn.ghost{background:transparent;color:var(--mt-ink)}
.btn.accent{background:var(--mt-lime);color:var(--mt-graphite)}
:is(.btn.danger,.btn[data-tone="danger"],.btn.mt-btn--danger,.mt-btn--danger),:is(.btn.danger,.btn[data-tone="danger"],.btn.mt-btn--danger,.mt-btn--danger):is(:disabled,[aria-disabled="true"]){background:var(--mt-error-bg);color:var(--mt-error);border-color:transparent;box-shadow:none}
:is(.btn,.mt-btn,.icon-button):active:not(:disabled):not([aria-disabled="true"]){transform:scale(.98);box-shadow:none;opacity:1}
:is(.btn,.mt-btn):is(:disabled,[aria-disabled="true"]){opacity:.55;cursor:not-allowed;transform:none;box-shadow:none}
:is(a,button,input,textarea,select,summary):focus-visible{outline:3px solid var(--mt-focus);outline-offset:var(--mt-focus-offset)}
:is(#studioView,#libraryView,dialog) :is(.text-input,.code-area),#manualCodeInput,#repairPrompt{border-radius:var(--mt-radius-md);font-size:16px}
:is(#studioView,#libraryView,dialog) .text-input{min-height:var(--mt-field-height)}
:is(#studioView,#libraryView,dialog) :is(.text-input,.code-area)[aria-invalid="true"]{border-color:var(--mt-error);background:var(--mt-error-bg)}
:is(#studioView,#libraryView,dialog) .inline-message.error,.runtime-status[data-state="error"]{background:var(--mt-error-bg);color:var(--mt-error)}
:is(#studioView,#libraryView,dialog) .inline-message.warning,.storage-unavailable{background:var(--mt-warning-bg);color:var(--mt-warning)}
:is(#studioView,#libraryView,dialog) .inline-message.success{background:var(--mt-success-bg);color:var(--mt-success)}
.save-status[data-state="error"],.account-message[data-error="true"]{color:var(--mt-error)}
.save-status[data-state="saved"]{color:var(--mt-success)}

.site-header{background:#FFFFFFF5;border-bottom-color:var(--line)}
.site-header .account-nav{color:var(--accent-dark)}
.hero{padding:var(--mt-space-8) 0 var(--mt-space-8);overflow:clip;background:var(--porcelain)}
.hero .hero-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:center;gap:var(--mt-space-8);text-align:left}
.hero-copy{min-width:0;padding:0}
.hero .hero-eyebrow{display:flex;align-items:center;justify-content:flex-start;gap:9px;margin:0 0 22px;color:var(--graphite);font-size:12px;font-weight:550;letter-spacing:.015em}
.hero-spark{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:var(--lime);color:var(--graphite)}
.hero #heroTitle{display:block;margin:0;font-size:var(--mt-type-display);line-height:var(--mt-leading-display);letter-spacing:var(--mt-track-display)}
.hero #heroTitle>span{display:inline-block;max-width:100%}
.hero #heroTitle>.hero-title-gap{display:inline}
html:lang(zh-CN) .hero #heroTitle>.hero-title-gap{display:none}
.hero-pop{color:var(--orchid)}
.hero .hero-description{max-width:none;margin:25px 0 27px;font-size:var(--mt-type-body);line-height:var(--mt-leading-body);letter-spacing:0;color:var(--muted)}
.hero .actions{justify-content:flex-start;gap:10px}
.hero .actions>.btn{min-height:54px;font-size:15px;padding-inline:20px;border-radius:var(--mt-radius-pill);gap:var(--mt-space-3)}
.hero .micro{justify-content:flex-start;gap:18px;margin-top:19px;font-size:12px;line-height:1.4;color:var(--muted)}
.hero .micro>span{display:inline-flex;align-items:center;gap:6px}
.hero .micro svg{color:var(--accent-dark)}
.hero-collection{position:relative;isolation:isolate;min-width:0;min-height:470px;padding:15px 4px 16px}
.collection-paper{position:absolute;inset:14px 10px;border-radius:31px;z-index:-1;pointer-events:none;display:none}
.paper-coral{background:#FFE3DA;transform:rotate(-6deg) translate(-7px,7px)}
.paper-lime{background:#ECF7CE;transform:rotate(5deg) translate(9px,-5px)}
.collection-stage{position:relative;background:var(--mt-surface);border:1px solid var(--mt-line);border-radius:var(--mt-radius-display);padding:var(--mt-space-5);box-shadow:var(--mt-shadow-card);transform:none}
.collection-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}
.collection-label{max-width:170px;font-size:var(--mt-type-caption);line-height:var(--mt-leading-caption);font-weight:var(--mt-shell-ui-weight);letter-spacing:var(--mt-track-caption);color:var(--mt-muted)}
.collection-count{font-size:11px;white-space:nowrap;border:1px solid var(--mt-line);background:var(--mt-surface);padding:var(--mt-space-1) var(--mt-space-2);border-radius:var(--mt-radius-xs);color:var(--mt-muted)}
.collection-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--mt-grid-gap-mobile)}
.collection-app{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:12px;min-width:0;min-height:133px;padding:16px 5px 11px;background:var(--mt-surface);border:1px solid var(--mt-line);border-radius:var(--mt-radius-inset);color:var(--mt-ink);touch-action:manipulation;transition:border-color 160ms,box-shadow 160ms,background-color 160ms}
.collection-icon{display:block;position:relative;width:64px;height:64px;flex-shrink:0}
.collection-icon img{width:64px;height:64px;border-radius:17px;box-shadow:0 5px 12px #24132F0C;will-change:auto}
.collection-app-name{font-size:11px;line-height:1.3;font-weight:550;text-align:center;width:100%;max-width:none;white-space:normal;min-height:29px;display:flex;align-items:center;justify-content:center}
.collection-app:hover{border-color:var(--mt-primary);background:var(--mt-soft);box-shadow:none}
.collection-app:active{background:var(--orchid-soft)}
.collection-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:23px;padding-top:16px;border-top:1px solid var(--mt-line);font-size:var(--mt-type-caption);color:var(--mt-muted)}
.collection-foot svg{color:var(--orchid)}
.showcase{padding-top:8px}
/* Keep the first paint stable while the real sample cards hydrate. */
.showcase-track{min-height:600px}
.showcase-card,.gallery-card{transition:box-shadow 180ms var(--ease-out),border-color 180ms,background-color 180ms,transform 220ms var(--ease-out)}
.showcase-card:hover{transform:none;box-shadow:var(--mt-shadow-card)}
.showcase-card:active,.gallery-card:active{transform:scale(.985)}
.showcase-card .card-caption>img,.gallery-card>img{transition:transform 240ms var(--ease-out)}
.showcase-card:hover .card-caption>img,.gallery-card:hover>img{transform:none}
.gallery-card{background:var(--mt-surface);border-color:var(--mt-line);border-radius:var(--mt-radius-card);padding:var(--mt-space-5)}
.gallery-grid,.pricing-grid,.library-grid{gap:var(--mt-grid-gap)}
.gallery-card:hover{border-color:var(--mt-primary);box-shadow:var(--mt-shadow-card);transform:none}
.gallery-arrow{color:var(--orchid)}
.filter{min-height:var(--mt-target-min);border-radius:var(--mt-radius-md)}
.filter.active{background:var(--mt-graphite);border-color:var(--mt-graphite);color:var(--mt-surface)}
.filter:active{transform:scale(.97)}
.workspace-card,.library-card,.price-card{border-color:var(--mt-line);border-radius:var(--mt-radius-card);box-shadow:none}
.workspace-content,.price-card{padding:var(--mt-space-6)}
.workspace-title h1{letter-spacing:var(--mt-track-h1)}
.flow-step.active .num{background:var(--mt-primary);border-color:var(--mt-primary);color:var(--mt-surface)}
.flow-step:not(.active){color:var(--muted)}
.flow-step.active{color:var(--accent-dark)}
.flow-step.done .num{background:var(--soft);border-color:var(--line);color:var(--muted)}
.paste-trigger,.upload-trigger{border-radius:var(--mt-radius-md)}
.intake-side-note{background:var(--mt-soft)}
.icon-choice,.color-swatch{transition:transform 140ms,border-color 140ms,box-shadow 140ms}
.icon-choice:active,.color-swatch:active{transform:scale(.94)}
.icon-choice.selected{border-color:var(--mt-primary);box-shadow:0 0 0 2px var(--mt-soft)}
.mobile-dock button.active{background:var(--orchid-soft);color:var(--accent-dark)}
.mobile-dock button:active [data-icon]{transform:scale(.88)}
.mobile-dock [data-icon]{transition:transform 160ms var(--ease-out)}
.mobile-dock button.active [data-icon]{animation:nav-settle 240ms var(--ease-out) both}
.motion-ready .reveal-pending{opacity:1;transform:none}
.result-simple .result-icon{animation:app-kept 420ms var(--ease-out) both}
.install-link-result .install-ready-symbol{animation:app-kept 340ms var(--ease-out) both}
@keyframes nav-settle{from{transform:scale(.9)}to{transform:scale(1)}}
@keyframes app-kept{0%{transform:scale(.92);opacity:.5}65%{transform:scale(1.035);opacity:1}100%{transform:scale(1);opacity:1}}
@media(hover:none){
 .showcase-card:hover,.gallery-card:hover{transform:none;box-shadow:none}
 .showcase-card:hover .card-caption>img,.gallery-card:hover>img{transform:none}
}
@media(max-width:1050px) and (min-width:901px){
 .hero .hero-layout{gap:34px}.collection-stage{padding:20px}.collection-heading{gap:6px}.collection-label{font-size:9px}.collection-grid{gap:8px}.collection-icon,.collection-icon img{width:56px;height:56px}.collection-app{min-height:122px}
}
@media(max-width:900px){
 .hero{padding-top:48px}.hero .hero-layout{grid-template-columns:1fr;gap:34px;max-width:620px}.hero-collection{width:100%;max-width:460px;justify-self:center}.hero-copy{max-width:none}
}
@media(max-width:1050px){.site-header .nav-actions{gap:10px}.site-header .nav-links{gap:20px}}
@media(max-width:850px){.desktop-locale{display:none}}
@media(max-width:600px){
 .hero{padding:var(--mt-space-6) 0}.hero .hero-layout{gap:var(--mt-space-5);width:calc(100% - 2 * var(--mt-page-gutter));max-width:430px}
 .hero .hero-eyebrow{font-size:11px;margin-bottom:16px;gap:8px}.hero-spark{width:26px;height:26px;border-radius:8px}
 
 .hero .hero-description{font-size:var(--mt-type-body);line-height:var(--mt-leading-body);margin:var(--mt-space-5) 0;max-width:var(--mt-content-reading)}
 .hero .actions{display:flex;flex-wrap:wrap;gap:8px}
 .hero .actions>.btn.primary{flex:1 1 100%;min-height:52px;font-size:15px}
 .hero .actions>.btn.secondary{min-height:44px;padding:8px 2px;box-shadow:none;border-color:transparent;background:transparent;font-size:14px;color:var(--graphite)}
 .hero .micro{margin-top:12px;font-size:11px;gap:15px}
 .hero-collection{padding:10px 3px 12px;max-width:380px;min-height:366px}.showcase-track{min-height:190px}.collection-stage{padding:19px;border-radius:24px}.collection-paper{border-radius:25px;inset:12px}
 .collection-heading{margin-bottom:17px}.collection-label{max-width:145px}.collection-count{font-size:10px;padding:4px 8px}
 .collection-grid{gap:8px}.collection-app{min-height:112px;padding:12px 3px 8px;gap:9px;border-radius:14px}
 .collection-icon,.collection-icon img{width:53px;height:53px}.collection-icon img{border-radius:14px}.collection-app-name{font-size:10px;min-height:26px}
 .collection-foot{font-size:11px;margin-top:16px;padding-top:13px}
 .sources{padding-top:28px}.showcase{padding-top:5px}.showcase-card{scroll-snap-align:start}
 .workspace-title h1{font-size:var(--mt-type-h1)}.workspace-title p{font-size:var(--mt-type-body)}
 .hero .btn:active{transform:translateY(1px) scale(.99)}
}
@media(prefers-reduced-motion:reduce){
 html{scroll-behavior:auto}
 *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
 .motion-ready .reveal-pending{opacity:1;transform:none}
 .collection-stage{transform:none}
}

/* Shared shell typography: a small set of roles with deliberate contrast.
   Use explicit MakeTap selectors; never target iframe documents, .preview-paper,
   .mini-ui, .demo-window, .walkthrough-phone or home-screen content. */
:root {
  --type-section:var(--mt-type-h2);
  --type-card:var(--mt-type-h3);
  --type-ui:var(--mt-type-ui);
  --type-note:var(--mt-type-caption);
  --type-meta:var(--mt-type-caption);
}
h1,h2,h3,h4,h5,h6{font-family:var(--font-display)}

/* Headings follow the approved responsive scale; brand SVGs are independent. */
#homeView .hero #heroTitle { font-family:var(--font-display); font-weight:var(--mt-shell-heading-weight); }
#homeView :is(.section-heading h2,.benefit-copy h2,.process-title,
  .pricing-title h2,.faq-title h2,.final-cta h2),
#studioView .workspace-title h1,#libraryView .library-head h1,
#sampleView .sample-detail-intro h1 {
  font-family:var(--font-display);
  font-size:var(--type-section);
  font-weight:var(--mt-shell-heading-weight);
  line-height:var(--mt-leading-h2);
  letter-spacing:var(--mt-track-h2);
}

#studioView .workspace-title h1,#libraryView .library-head h1,#sampleView .sample-detail-intro h1{font-size:var(--mt-type-h1);line-height:var(--mt-leading-h1);letter-spacing:var(--mt-track-h1)}
dialog .dialog-header h2{font-family:var(--font-display);font-size:var(--mt-type-h2);font-weight:var(--mt-shell-heading-weight);line-height:var(--mt-leading-h2);letter-spacing:var(--mt-track-h2)}
/* True secondary headings, outside every demo surface. */
#homeView .feature-card h3,
#studioView :is(.receipt-top h3,.intake-empty h2,.preview-description h2,.result-simple h2),
#libraryView .empty-state h2,
dialog .example-description h3 {
  font-family:var(--font-display);
  font-size:var(--type-card);
  font-weight:var(--mt-shell-subheading-weight);
  line-height:var(--mt-leading-h3);
  letter-spacing:var(--mt-track-h3);
}

/* App labels are interface text, not additional heading levels. */
#homeView :is(.gallery-card h3,.card-caption strong,.sample-mobile-top strong),#libraryView .library-card-top h3{font-family:var(--font-body);font-size:var(--mt-type-ui);font-weight:var(--mt-shell-ui-weight);line-height:var(--mt-leading-ui);letter-spacing:0}

/* Navigation and real actions share one readable, confident role. */
.site-header :is(.nav-links a,.nav-actions button,.locale-picker select),
.mobile-menu :is(a,button,select),.mobile-dock button,
#homeView :is(.btn,.filter,.process-step strong):not(:where(.preview-paper *,
  .mini-ui *,.demo-window *,.walkthrough-phone *,.home-screen-preview *)),
#studioView :is(.btn,.back-button,.text-link,.icon-upload),
#libraryView :is(.btn,.back-button,.library-toolbar select),#sampleView :is(.btn,.sample-back),
dialog :is(.btn,.text-link),.site-footer .footer-links :is(a,button,strong) {
  font-family:var(--font-body);
  font-size:var(--type-ui);
  font-weight:var(--mt-shell-ui-weight);
  line-height:var(--mt-leading-ui);
}

/* Body copy: a single default, rather than many unrelated small sizes. */
#homeView :is(.hero-description,.benefit-copy>p,.section-heading>p,
  .pricing-title>p,.faq-title>p,.feature-card>p,.final-cta>p),
#studioView :is(.workspace-title p,.intake-empty>p,.preview-description>p,.result-simple>p),
#libraryView :is(.library-head p,.empty-state p),
#sampleView .sample-detail-description,
dialog :is(.account-description,.account-setup-context p,.example-description>p) {
  font-family:var(--font-body);
  font-size:var(--mt-type-body);
  font-weight:var(--mt-shell-body-weight);
  line-height:var(--mt-leading-body);
}
#studioView .text-input,#libraryView .text-input,#libraryView .library-toolbar select,dialog .text-input {
  font-family:var(--font-body); font-size:16px; font-weight:var(--mt-shell-body-weight);
}

/* Labels and support copy remain distinct through weight, not extra sizes. */
#studioView .field-label,dialog .field-label,
#homeView .collection-app-name {
  font-family:var(--font-body); font-size:var(--mt-type-ui); font-weight:var(--mt-shell-ui-weight);
}
#homeView :is(.hero .micro,.hero-eyebrow,.collection-foot,.source-intro,.source-note,
  .showcase-foot,.card-caption small,.gallery-card p,.sample-mobile-top small,
  .price-caption,.price-features,.price-explanation,.price-footnote,.faq-list details p),
#studioView :is(.field-help,.intake-format,.intake-privacy,.receipt-top p,.source-next,
  .save-status,.preview-label,.appview-footer,.preview-checks,.preview-checks small),
#libraryView :is(.library-card-top p,.appview-footer),
dialog :is(.account-message,.compatibility-check p,.install-consent),
.site-footer .footer-main>div>p {
  font-family:var(--font-body);
  font-size:var(--type-note);
  font-weight:var(--mt-shell-body-weight);
  line-height:1.55;
}
#studioView .inline-message,dialog .account-message[data-error="true"] {
  font-size:var(--type-note); font-weight:var(--mt-shell-ui-weight); line-height:1.55;
}

/* Quiet metadata only: avoid putting guidance or required actions here. */
#homeView .collection-count,.site-footer .footer-bottom,
.site-header .counter,#studioView :is(.label-row small,.source-success,.flow-step,.flow-step .num),
#studioView .app-topbar .local-badge,#libraryView .app-topbar .local-badge {
  font-size:var(--type-meta); font-weight:500; line-height:1.4;
}
#homeView .collection-label{max-width:none;font-family:var(--font-body);font-size:var(--mt-type-caption);letter-spacing:var(--mt-track-caption);line-height:var(--mt-leading-caption)}
#homeView :is(.benefit-copy h2,.process-title,.section-heading h2,.pricing-title h2,.faq-title h2,.final-cta h2){max-width:none;text-wrap:pretty}
#homeView .section-heading>div{min-width:0}
#accountEmailDisplay { font-family:var(--font-body); font-size:var(--type-ui); font-weight:var(--mt-shell-ui-weight); }
#accountPlanStatus { font-family:var(--font-body); font-size:var(--type-note); font-weight:var(--mt-shell-body-weight); }

/* AI names are wordmarks, not another interface family. Keep each brand color. */
.sources .source-name {
  font-family:var(--mt-font-ui);
  font-size:28px;
  font-weight:900;
  font-synthesis:none;
  line-height:1.1;
}


/* Supporting copy shares one readable role, including dynamic information. */
#homeView :is(.section-heading .eyebrow,.pricing-title .eyebrow,.faq-title .eyebrow,.benefit-copy .eyebrow,.process .eyebrow),
#studioView :is(.source-success,.source-readonly summary,.source-readonly summary span,.runtime-status,.tiny),
#libraryView .tiny,dialog :is(.eyebrow,.tiny,.account-message){font-size:var(--type-note);line-height:1.55}
#homeView .eyebrow,#studioView .field-label,dialog .field-label{font-weight:var(--mt-shell-ui-weight)}
#homeView .hero .hero-eyebrow{font-size:var(--type-note);font-weight:500}
#homeView .hero .hero-description{font-size:var(--mt-type-body);line-height:var(--mt-leading-body)}
#studioView .label-row .field-label{font-size:var(--type-note);font-weight:var(--mt-shell-ui-weight)}
#homeView .card-caption strong{display:block}
dialog .dialog-body>p,dialog .info-list{font-size:var(--mt-type-body);line-height:var(--mt-leading-body)}
dialog .dialog-body>.account-message{font-size:var(--mt-type-caption);line-height:var(--mt-leading-caption)}
#studioView :is(.code-glimpse pre,.source-readonly pre){font-size:13px;line-height:1.55}
.sources .source-chatgpt{color:var(--mt-ink)}.sources .source-claude{color:#C96B49}.sources .source-deepseek{color:#4D6BFE}
.sources .source-row{gap:26px 36px;padding-block:26px}
#homeView .sources .source-intro{font-size:var(--mt-type-body);font-weight:500}
#homeView :is(.benefit-points,.gallery-note){font-size:var(--mt-type-ui);font-weight:500;line-height:var(--mt-leading-ui)}
#homeView .benefit-points{flex-wrap:wrap;gap:12px 20px}
#homeView .faq-list summary{font-size:var(--mt-type-ui);font-weight:var(--mt-shell-ui-weight);min-height:56px}
#homeView .price-card h3{font-family:var(--font-display);font-size:var(--mt-type-h3);line-height:var(--mt-leading-h3);letter-spacing:var(--mt-track-h3);font-weight:600}
.preview-head-title{font-family:var(--font-body);font-size:var(--mt-type-ui);line-height:var(--mt-leading-ui);font-weight:var(--mt-shell-ui-weight)}
#homeView .price-amount{font-family:var(--mt-font-numeric-large);font-weight:700;letter-spacing:0;line-height:var(--mt-leading-display)}
#homeView :is(.price-amount sup,.allocation,.mobile-plan-row b){font-family:var(--mt-font-numeric-small);letter-spacing:0}
#homeView .price-amount sup{margin-inline-end:var(--mt-word-unit-gap)}
#homeView .allocation{font-size:var(--mt-type-ui);line-height:var(--mt-leading-ui)}
#homeView :is(.allocation small,.price-once){font-family:var(--font-body);font-size:var(--mt-type-caption);line-height:var(--mt-leading-caption)}
dialog :is(.install-step p,.install-step strong,.info-list,.compatibility-check p,.install-consent){font-size:var(--mt-type-ui);line-height:var(--mt-leading-body)}
dialog .install-step strong{font-weight:var(--mt-shell-ui-weight)}
.toast{font-size:var(--mt-type-ui);line-height:var(--mt-leading-ui);font-weight:500}
/* Brand canvas and compact, predictable navigation layout. */
/* Content offsets must not make the already-visible sticky header a scroll target. */
html:has(.header-locale :focus){scroll-padding-top:0}
.header-locale :is(a,button,select){scroll-margin-block:0}
.brand-wordmark{display:block;width:124px;height:29px;object-fit:contain;flex-shrink:0}
.brand{gap:8px}
.site-header .nav-links{position:relative;isolation:isolate;gap:4px}
.site-header .nav-links a{position:relative;z-index:1;display:inline-flex;align-items:center;min-height:44px;padding:8px 10px;border-radius:10px;white-space:nowrap}
.nav-highlight{position:absolute;z-index:0;left:0;top:0;bottom:0;width:0;min-height:44px;border-radius:10px;background:var(--orchid-soft);opacity:0;pointer-events:none;transition:transform 180ms var(--ease-out),width 180ms var(--ease-out),opacity var(--motion-quick)}
.nav-highlight.is-visible{opacity:1}
.site-header .nav-actions :is(.account-nav,.library-nav){min-height:44px;padding:9px 10px;border-radius:10px;white-space:nowrap}
.site-header .nav-actions .utility-icon,.site-header .header-locale{width:44px;min-width:44px;max-width:44px;height:44px;flex:0 0 44px;padding:0}
.site-header .nav-actions .account-nav{display:inline-flex;align-items:center;justify-content:center;gap:0;background:transparent;border-color:transparent}
.site-header .header-locale{position:relative}
.site-header #languageTrigger{display:inline-flex;align-items:center;justify-content:center;border-radius:10px;background:transparent;border-color:transparent}
.site-header #languageTrigger[aria-expanded="true"]{background:var(--orchid-soft);color:var(--accent-dark)}
.language-menu{position:absolute;right:0;top:calc(100% + var(--mt-space-2));width:180px;padding:var(--mt-space-2);background:var(--mt-surface);border:1px solid var(--mt-line);border-radius:var(--mt-radius-md);box-shadow:var(--mt-shadow-card);transform-origin:top right}
.language-menu:not([hidden]){animation:menu-reveal 140ms var(--ease-out) both}
.language-menu button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;padding:10px 12px;border-radius:var(--mt-radius-sm);text-align:left;font-size:var(--mt-type-ui);line-height:var(--mt-leading-ui);color:var(--ink)}
.language-menu button .phosphor-icon{visibility:hidden;color:var(--orchid)}
.language-menu button[aria-checked="true"] .phosphor-icon{visibility:visible}
.language-menu button:focus-visible{outline:3px solid var(--mt-focus);outline-offset:var(--mt-focus-offset);background:var(--mt-soft)}
[data-action="account"][data-authenticated="true"] .dock-icon-outline{display:none}
[data-action="account"][data-authenticated="true"] .dock-icon-solid{display:block}
.menu-toggle .menu-icon-close{display:none}
.menu-toggle[aria-expanded="true"] .menu-icon-open{display:none}
.menu-toggle[aria-expanded="true"] .menu-icon-close{display:flex}
.site-header .mobile-menu{left:auto;right:var(--mt-page-gutter);top:calc(100% + var(--mt-space-2));width:360px;max-height:calc(var(--visible-height) - 106px);overflow:auto;padding:var(--mt-space-3);border:1px solid var(--mt-line);border-radius:var(--mt-radius-inset);background:var(--mt-surface);box-shadow:var(--mt-shadow-card);transform-origin:top right}
.site-header .mobile-menu:not([hidden]){animation:menu-reveal 160ms var(--ease-out) both}
.site-header .mobile-menu :is(a,button){display:flex;align-items:center;gap:12px;min-height:48px;width:100%;padding:12px;border-radius:10px;text-align:left}
.mobile-menu .menu-personal{display:grid;gap:2px;margin-top:8px;padding-top:8px;border-top:1px solid var(--line)}
.mobile-menu .menu-personal svg{color:var(--accent-dark)}
@keyframes menu-reveal{from{opacity:0;transform:translateY(-4px) scale(.985)}to{opacity:1;transform:none}}
/* Footer: five useful actions, one language control and a quiet copyright. */
.site-footer .footer-main{display:grid;grid-template-columns:1fr 1fr;gap:40px;padding-block:36px}
.site-footer .footer-brand>p{margin:12px 0 16px}
.site-footer .footer-brand .locale-picker{min-width:160px}
.site-footer .footer-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 24px}
.site-footer .footer-links>div{display:flex;flex-direction:column;gap:2px}
.site-footer .footer-links :is(a,button){display:flex;align-items:center;gap:10px;width:100%;min-height:48px;padding:10px 12px;margin:0;color:var(--ink);border-radius:10px;text-align:left}
.site-footer .footer-links svg{color:var(--muted)}
.site-footer .footer-bottom{padding-block:20px;border-top:1px solid var(--line)}
/* Feedback is shared by pointer, keyboard and touch; content stays still. */
.site-header :is(.nav-links a,.account-nav,.library-nav,#languageTrigger),.language-menu button,.mobile-menu :is(a,button),
.footer-links :is(a,button),.back-button,.sample-back,.text-link,.icon-upload,.filter,.locale-picker select{transition:background-color var(--motion-quick),color var(--motion-quick),box-shadow var(--motion-quick),border-color var(--motion-quick)}
:is(.back-button,.sample-back,.text-link,.icon-upload){border-radius:var(--mt-radius-sm);min-height:var(--mt-target-min)}
@media(hover:hover) and (pointer:fine){
 .site-header :is(.account-nav,.library-nav,#languageTrigger):hover,.language-menu button:hover,.mobile-menu :is(a,button):hover,
 .site-footer .footer-links :is(a,button):hover,.locale-picker select:hover{background:var(--orchid-soft);color:var(--accent-dark)}
 .site-header .nav-links a:hover{background:transparent;color:var(--accent-dark)}
 :is(.back-button,.sample-back,.text-link,.icon-upload):hover{background:var(--soft);color:var(--accent-dark)}
 .filter:not(.active):hover{background:var(--mt-soft);border-color:var(--mt-primary)}
 .btn:hover,.icon-button:hover{transform:none}
 .btn.primary:hover:not(:disabled):not([aria-disabled="true"]){background:var(--mt-deep);box-shadow:none}
 .btn.secondary:hover:not(:disabled):not([aria-disabled="true"]),.btn.ghost:hover:not(:disabled):not([aria-disabled="true"]){background:var(--mt-soft)}
 :is(.btn.danger,.btn[data-tone="danger"],.btn.mt-btn--danger,.mt-btn--danger):hover:not(:disabled):not([aria-disabled="true"]){background:#FBD2CF;color:var(--mt-danger-hover);border-color:transparent;box-shadow:none}
 .btn:hover .phosphor-icon[data-phosphor-name="arrow-right"]{transform:translateX(3px)}
 .collection-app:hover .collection-cue{opacity:1;transform:translateX(0)}
}
.btn .phosphor-icon[data-phosphor-name="arrow-right"]{transition:transform 160ms var(--ease-out)}
.btn:focus-visible .phosphor-icon[data-phosphor-name="arrow-right"]{transform:translateX(3px)}
.btn:active .phosphor-icon[data-phosphor-name="arrow-right"]{transform:translateX(1px)}
.collection-app{position:relative}
.collection-cue{position:absolute;top:6px;right:6px;display:flex;color:var(--orchid);opacity:0;transform:translateX(-3px);pointer-events:none;transition:opacity var(--motion-quick),transform 160ms var(--ease-out)}
.collection-app:focus-visible .collection-cue{opacity:1;transform:none}
.language-menu button:active,.mobile-menu :is(a,button):active,.site-footer .footer-links :is(a,button):active,
:is(.back-button,.sample-back,.text-link,.icon-upload):active{background:var(--orchid-soft);color:var(--accent-dark)}
@media(max-width:1200px){
 .site-header .nav-links,.desktop-locale{display:none}
 .site-header .menu-toggle{display:inline-flex}
}
@media(max-width:600px){
 .site-header .brand-wordmark{width:105px;height:24px}.site-header .brand{gap:7px}
 .site-header .nav-inner{gap:4px}.site-header .nav-actions{gap:4px}
 .site-header .nav-actions>.header-primary{display:none}
 .site-header .mobile-menu{left:12px;right:12px;width:auto}
 .hero .hero-layout{width:calc(100% - 2 * var(--mt-page-gutter))}
 #homeView .wrap:not(.hero-layout){width:calc(100% - 2 * var(--mt-page-gutter))}
 .hero-copy{padding-inline:0}
 .hero .actions{max-width:none;width:100%;margin-inline:0}
 #homeView .hero .hero-description{max-width:none;width:auto}
 #homeView :is(.benefit-copy>p,.section-heading>p,.pricing-title>p,.faq-title>p,.final-cta>p){max-width:none}
 #studioView :is(.workspace-title,.app-topbar),#sampleView .sample-detail-intro{padding-inline:0}
 #studioView .workspace-title p,#libraryView .library-head p{max-width:none}
 #libraryView .library-head>div{min-width:0;padding-inline-start:0}
 #homeView .hero .hero-description{font-size:var(--mt-type-body)}
 .collection-app{min-height:124px;height:auto;gap:8px}
 .collection-app-name{min-height:38px;max-width:100%;line-height:1.35}
 .collection-stage{padding:16px}
 .hero-collection{width:100%;max-width:none;margin-inline:0}
 .collection-app{padding-inline:0}
 .ownership-grid{grid-auto-rows:1fr}
 .workspace-title .tag{display:none}
 .sources .source-name{font-size:22px}
 .sources .source-row{row-gap:24px}
 .site-footer .footer-main{grid-template-columns:1fr;gap:24px;padding-block:28px}
 .site-footer .footer-links{gap:10px 16px}
 .mobile-dock button,.mobile-dock .dock-create{font-family:var(--font-body);font-size:var(--mt-type-ui);font-weight:var(--mt-shell-ui-weight);line-height:var(--mt-leading-ui)}
 body[data-view="create"][data-step="3"] .workspace-footer>.btn{font-size:var(--mt-type-ui)}
 body[data-view="create"][data-step="3"] .workspace-footer>.btn.ghost{flex:0 0 auto;min-width:76px}
 body[data-view="create"][data-step="3"] .workspace-footer>.btn.primary{flex:1 1 auto}
 .flow-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;align-items:start}
 .flow-step{min-width:0;flex-direction:column;justify-content:flex-start;gap:8px;white-space:normal}
 .flow-step .flow-step-label{width:100%;min-height:calc(2em * var(--mt-leading-ui));font-family:var(--font-body);font-size:var(--mt-type-ui);font-weight:500;line-height:var(--mt-leading-ui);text-align:center;white-space:normal;text-wrap:balance}
 .flow-step.active .flow-step-label{color:var(--accent-dark);font-weight:var(--mt-shell-ui-weight)}
}
@media(max-width:360px){.sources .source-row{grid-template-columns:repeat(2,minmax(0,1fr));max-width:300px}}
@media(max-width:360px){.site-header .brand-wordmark{width:101px}}
@media(prefers-reduced-motion:reduce){
 .btn .phosphor-icon[data-phosphor-name="arrow-right"],.collection-cue{transform:none!important}
}

/* One shared shell footer, outside the views and user App documents. */
body{min-height:100dvh;display:flex;flex-direction:column}
#main{flex:1;width:100%}
.app-view{min-height:0;background:var(--porcelain);padding-bottom:48px}
.site-footer{flex-shrink:0;border-top:1px solid var(--line);margin-top:24px}
.site-footer .footer-bottom{color:var(--muted)}
.library-storage-note{max-width:var(--mt-content-reading);margin:var(--mt-space-5) 0 0;color:var(--mt-muted);font-size:var(--mt-type-caption);line-height:var(--mt-leading-caption)}

/* Keep promotional details quieter than the real import actions. */
#studioView .intake-side-note{padding:var(--mt-space-5);border:1px solid var(--mt-line);border-radius:var(--mt-radius-inset);background:var(--mt-page)}
#studioView .intake-side-note h3{margin:0 0 var(--mt-space-5);font-family:var(--font-display);font-size:var(--mt-type-h3);font-weight:var(--mt-shell-ui-weight);line-height:var(--mt-leading-h3);letter-spacing:var(--mt-track-h3);color:var(--mt-ink)}
#studioView .intake-side-note p{font-size:var(--mt-type-caption);line-height:var(--mt-leading-caption)}
#studioView .intake-icon-row{margin-bottom:16px}
#studioView .intake-icon-row img{width:40px;height:40px;box-shadow:none}
#studioView .sample-disclosure summary{font-size:var(--mt-type-caption)}
#studioView .sample-disclosure summary>span{font-size:var(--mt-type-caption);font-weight:var(--mt-shell-body-weight);color:var(--mt-muted)}
#studioView .sample-disclosure summary>span:last-child{font-size:var(--mt-type-ui);font-family:var(--font-body);font-weight:var(--mt-shell-ui-weight);color:var(--ink)}

/* Standalone Help, Privacy and Terms share the site's readable type roles. */
#informationView .app-container{max-width:var(--mt-content-reading)}
#informationBack{gap:var(--mt-space-2);margin-bottom:var(--mt-space-6);font-family:var(--font-body);font-size:var(--mt-type-ui);font-weight:var(--mt-shell-ui-weight);line-height:var(--mt-leading-ui)}
.information-page{max-width:var(--mt-content-reading)}
.information-heading{margin-bottom:36px}
.information-heading h1{font-family:var(--font-display);font-size:var(--mt-type-h1);font-weight:var(--mt-shell-heading-weight);line-height:var(--mt-leading-h1);letter-spacing:var(--mt-track-h1)}
.information-heading>p{max-width:var(--mt-content-reading);margin-top:var(--mt-space-4);color:var(--mt-muted);font-size:var(--mt-type-body);line-height:var(--mt-leading-body)}
.information-body{display:grid;gap:28px;overflow-wrap:anywhere}
.information-body :is(h2,h3){font-family:var(--font-display);font-size:var(--mt-type-h3);font-weight:var(--mt-shell-subheading-weight);line-height:var(--mt-leading-h3);letter-spacing:var(--mt-track-h3);margin:0 0 var(--mt-space-3)}
.information-body :is(p,li){font-size:var(--mt-type-body);line-height:var(--mt-leading-body);color:var(--mt-muted)}
.information-body p+p{margin-top:12px}
.information-body :is(ol,ul){margin:0;padding-inline-start:24px}
.information-body li+li{margin-top:10px}
.information-body a{color:var(--accent-dark);text-decoration:underline;text-underline-offset:4px}
.information-body details{padding-block:18px;border-block-end:1px solid var(--line)}
.information-body details:first-child{border-block-start:1px solid var(--line)}
.information-body summary{cursor:pointer;font-family:var(--font-body);font-size:var(--mt-type-ui);font-weight:var(--mt-shell-ui-weight);line-height:var(--mt-leading-ui);min-height:var(--mt-target-min);align-content:center}
.information-body details[open] summary{margin-bottom:12px}

/* A text action uses a text underline, never a partial rounded button frame. */
.text-link{border:0;color:var(--accent-dark);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.text-link>span{text-decoration:inherit;text-decoration-thickness:inherit;text-underline-offset:inherit}
.account-dialog button.text-link{-webkit-appearance:none;appearance:none;justify-self:start;width:auto;max-width:100%;min-height:44px;padding:10px 8px;margin-inline-start:-8px;box-shadow:none}

/* These styles also cover an existing mobile preview after rotating the device. */
/* Keep the embedded app's layout viewport stable while the keyboard pans the visual viewport. */
#studioView .immersive-preview{position:relative;inset:auto;z-index:auto;display:flex;flex-direction:column;height:calc(100dvh - 160px);min-height:240px;overflow:hidden;border:1px solid var(--line);border-radius:var(--mt-radius-card);background:var(--mt-surface)}
#studioView .immersive-preview-head{display:flex;flex-shrink:0;align-items:center;gap:12px;min-height:60px;padding:12px 18px;border-bottom:1px solid var(--line)}
#studioView .immersive-preview-stage{position:relative;flex:1;min-height:0;background:var(--mt-surface)}
#studioView .immersive-preview-stage iframe{display:block;width:100%;height:100%;border:0;background:var(--mt-surface)}
#studioView .immersive-preview-footer{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);flex-shrink:0;gap:10px;padding:12px 18px;border-top:1px solid var(--mt-line);background:var(--mt-surface)}
#studioView .immersive-preview-footer .btn{min-height:52px;font-size:var(--mt-type-ui)}
@media(max-width:600px){
 .site-footer{width:calc(100% - 2 * var(--mt-page-gutter));margin-top:16px;padding-bottom:calc(82px + env(safe-area-inset-bottom,0px))}
 .site-footer .footer-main{gap:24px;padding-block:28px}
 .site-footer .footer-bottom{padding-block:20px}
 #studioView,#libraryView,#sampleView,#informationView{padding-bottom:32px;min-height:0}
 body[data-view="create"][data-step="1"]:has(.intake-empty) #studioView{min-height:0}
 #informationView .app-container{width:calc(100% - 2 * var(--mt-page-gutter))}
 #informationBack{margin-bottom:24px}
 .information-heading{margin-bottom:28px}
 .information-heading>p{font-size:var(--mt-type-body)}
 .information-body{gap:24px}
 .information-body :is(h2,h3){font-size:var(--mt-type-h3)}
 .information-body summary{font-size:var(--mt-type-ui)}
 .library-storage-note{padding-inline:8px}
 body[data-view="create"][data-step="2"] #studioView{padding-top:0}
 body[data-view="create"][data-step="2"] #studioView>.app-container{width:100%;max-width:none}
 body[data-view="create"][data-step="2"] #studioView .immersive-preview{position:relative;inset:auto;z-index:auto;height:calc(100dvh - 73px);min-height:200px;border:0;border-radius:0}
 #studioView .immersive-preview-head{padding:12px 18px;align-items:center}
 #studioView .immersive-preview-footer{padding:12px 18px calc(12px + env(safe-area-inset-bottom,0px))}
 :root{--mt-studio-dock-space:calc(var(--dock-height) + env(safe-area-inset-bottom,0px))}
 body[data-view="create"][data-step] .mobile-dock{display:none}
 body[data-view="create"]:is(.keyboard-open,.dialog-open) .mobile-dock{display:none}
 .workspace-content,.price-card,.gallery-card{padding:var(--mt-space-5)}
 body[data-view="create"][data-step="2"] .site-footer,body.keyboard-open .site-footer{padding-bottom:var(--mt-space-5)}
}

/* Owned fields retain one semantic focus treatment in every interaction mode. */
:is(#studioView,#libraryView,dialog) :is(.text-input,.code-area):focus,
#manualCodeInput:focus{border-color:var(--mt-focus);outline:3px solid var(--mt-focus);outline-offset:var(--mt-focus-offset);box-shadow:none}

/* Root scroll padding reserves the phone header/dock; details need only ring clearance. */
@media(max-width:600px){
 #sampleView :is(.sample-back,.sample-detail-actions .btn){scroll-margin-block:8px}
}

/* A real image preparation can be superseded by another choice. */
#studioView .icon-upload[aria-busy="true"]::after{content:"";display:inline-block;width:15px;height:15px;margin-left:8px;border:2px solid var(--orchid-soft);border-top-color:var(--orchid);border-radius:50%;animation:maketap-spin .7s linear infinite;flex-shrink:0}

@media(max-width:360px){
 .workspace-content,.price-card,.gallery-card{padding:var(--mt-space-4)}
}

/* Hide only the owned logo shapes during its two-frame paint preparation. */
.mt-brand-logo[data-brand-pending="true"] [data-brand-shape]{opacity:0}
@media(prefers-reduced-motion:reduce){.mt-brand-logo[data-brand-pending="true"] [data-brand-shape]{opacity:1}}
/* Preview handoff is a compact bottom sheet, with one scroll boundary. */
.fullscreen-dialog.clean-preview-dialog{inset:auto 0 0;margin:0 auto;width:min(560px,100vw);height:auto;min-height:0;max-height:calc(100dvh - 32px);padding:24px 24px max(24px,env(safe-area-inset-bottom,0px));border:1px solid var(--mt-line);border-bottom:0;border-radius:var(--mt-radius-card) var(--mt-radius-card) 0 0;background:var(--mt-surface);overflow:auto;overscroll-behavior:contain;scroll-padding:24px}
.fullscreen-dialog.clean-preview-dialog[open]{display:block}
.fullscreen-dialog.clean-preview-dialog .preview-mobile-label,.fullscreen-dialog.clean-preview-dialog #fullPreviewFrame{display:none!important}
.clean-preview-panel{display:grid;gap:16px;text-align:left;min-width:0}
.clean-preview-heading{padding-right:40px}
.clean-preview-panel h2{font-family:var(--mt-font-display);font-size:var(--mt-type-h3);font-weight:var(--mt-shell-heading-weight);line-height:var(--mt-leading-h3);margin:0;overflow-wrap:anywhere}
.clean-preview-panel p{font-size:var(--mt-type-ui);line-height:var(--mt-leading-body);color:var(--mt-muted);margin:0;overflow-wrap:anywhere}
.clean-preview-heading #cleanAppName{margin-top:4px;font-size:var(--mt-type-caption)}
.clean-preview-actions,.clean-preview-confirm{display:grid;gap:12px;min-width:0}
.clean-preview-panel .btn{width:100%;min-height:48px;white-space:normal}
.clean-preview-panel .text-link{min-height:44px;justify-self:center}
.clean-preview-confirm h3{font-size:var(--mt-type-ui);font-weight:var(--mt-shell-subheading-weight);line-height:var(--mt-leading-ui);margin:0}
.clean-preview-confirm-actions{display:flex;flex-wrap:wrap;gap:8px}
.clean-preview-confirm-actions .btn{flex:1 1 160px}
.fullscreen-dialog.clean-preview-dialog #fullStatus{position:static;inset:auto;max-width:none;margin:0;padding:0;border:0;background:transparent;text-align:left;font-size:var(--mt-type-ui);line-height:var(--mt-leading-body);color:var(--mt-muted)}
.fullscreen-dialog.clean-preview-dialog #fullStatus[data-state="error"]{color:var(--mt-error)}
.fullscreen-dialog.clean-preview-dialog .full-preview-actions{position:static;margin:12px 0 0;padding:0;border:0}
.fullscreen-dialog.clean-preview-dialog .full-preview-actions .btn{width:100%}
.fullscreen-dialog.clean-preview-dialog .preview-close{position:absolute;top:12px;right:12px;width:44px;height:44px;border:0;box-shadow:none;color:var(--mt-ink)}
@media(max-width:359px){.fullscreen-dialog.clean-preview-dialog{padding:24px 16px max(16px,env(safe-area-inset-bottom,0px))}}
.clean-open{flex-shrink:0;min-height:44px;padding:8px 12px}
.immersive-preview-head:has(.clean-open) .preview-head-name{display:none}

.clean-preview-panel [hidden],.clean-preview-panel[hidden]{display:none!important}

/* Supporting guidance shares the caption scale on desktop as well as mobile. */
#homeView .process-step p,
#studioView .replace-panel p,
#studioView .compatibility-check p {
  font-family:var(--font-body);
  font-size:var(--mt-type-caption);
  line-height:var(--mt-leading-caption);
}

/* Home: one headline, finite app-tile entrance, then a separate examples section. */
#homeView .hero{padding:40px 0 32px;overflow:clip}
#homeView .hero .hero-layout{display:block;width:min(960px,calc(100% - 2 * var(--mt-page-gutter)));max-width:none;text-align:center}
#homeView .hero-copy{display:flex;flex-direction:column;align-items:center;gap:32px;min-height:520px}
#homeView .hero .hero-eyebrow{align-self:center;justify-content:center;max-width:100%;margin:0;font-size:var(--mt-type-ui);line-height:var(--mt-leading-ui);letter-spacing:0;text-align:center}
#homeView .hero-spark{flex:none}
#homeView .hero-message{width:100%;margin:auto 0}
#homeView .hero #heroTitle{font-size:var(--mt-type-display);color:var(--ink);text-align:center}
#homeView .hero #heroTitle>.hero-title-line{display:flex;justify-content:center;align-items:center;flex-wrap:nowrap;gap:.16em;max-width:100%}
#homeView .hero-title-line+.hero-title-line{margin-top:.18em}
#homeView .hero-title-text{min-width:0;max-width:100%;text-wrap:balance}
#homeView .hero-icon-cluster{display:inline-flex;align-items:center;gap:4px;flex:none}
#homeView .hero-app-button{display:grid;place-items:center;position:relative;width:1.16em;height:1.16em;min-width:44px;min-height:44px;padding:0;background:transparent;border:0;border-radius:14px;flex:none;touch-action:manipulation}
#homeView .hero-app-tile{display:block;width:1.12em;height:1.12em;max-width:none;aspect-ratio:1;border-radius:.24em;object-fit:contain;transform:rotate(var(--hero-tilt,0deg));transform-origin:50% 72%;filter:drop-shadow(0 5px 7px #21192e15)}
#homeView .hero-title-line:first-child .hero-app-button:first-child{--hero-tilt:-8deg}
#homeView .hero-title-line:first-child .hero-app-button:last-child{--hero-tilt:6deg}
#homeView .hero-title-line:last-child .hero-app-button:first-child{--hero-tilt:7deg}
#homeView .hero-title-line:last-child .hero-app-button:last-child{--hero-tilt:-6deg}
#homeView .hero-app-button:focus-visible{outline:3px solid var(--mt-focus);outline-offset:4px}
#homeView .hero-sketch{width:26px;height:30px;flex:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;overflow:visible}
#homeView .hero-sketch-tap{width:30px}
#homeView .hero-eyebrow-word{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.motion-ready #homeView .hero[data-hero-preparing="true"] :is(.hero-title-text,.hero-app-tile){opacity:0}
#homeView .hero .hero-description{max-width:38em;margin:24px auto 0;text-align:center;text-wrap:balance}
#homeView .hero-action-group{width:min(100%,540px)}
#homeView .hero .actions{justify-content:center;margin:0;width:100%}
#homeView .hero .micro{justify-content:center;margin:12px 0 0;flex-wrap:wrap;font-size:var(--mt-type-caption)}
#homeView .hero-example-arrow{display:inline-flex;transform:rotate(90deg)}
#homeView .example-apps{padding:40px 0 32px;scroll-margin-top:104px}
#homeView .example-apps .section-heading{margin-bottom:24px}
#homeView .example-apps .section-heading h2{margin:0;font:var(--mt-shell-heading-weight) var(--mt-type-h2)/var(--mt-leading-h2) var(--font-display);letter-spacing:var(--mt-track-h2)}
#homeView .example-apps .hero-collection{width:100%;max-width:none;min-height:0;padding:0;margin:0}
#homeView .example-apps .collection-stage{padding:24px}
#homeView .example-apps .collection-app-name{font-size:var(--mt-type-ui);font-weight:var(--mt-shell-ui-weight);line-height:var(--mt-leading-ui);min-height:2.9em}
@media(min-width:1024px){#homeView .example-apps .collection-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:600px){
 #homeView .hero{padding:24px 0}
 #homeView .hero-copy{gap:24px;min-height:calc(100vh - 72px - 84px - 48px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));min-height:calc(100svh - 72px - 84px - 48px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}
 #homeView .hero #heroTitle{font-size:clamp(30px,9.7vw,var(--mt-type-display))}
 #homeView .hero #heroTitle>.hero-title-line{gap:.16em}
 #homeView .hero .hero-icon-cluster{gap:2px}
 #homeView .hero .hero-app-tile{width:1.12em;height:1.12em}
 #homeView .hero .hero-eyebrow{font-size:14px;gap:5px}
 #homeView .hero-sketch{width:22px;height:26px}
 #homeView .hero-sketch-tap{width:26px}
 #homeView .hero .hero-description{margin-top:24px;max-width:30em}
 #homeView .hero .actions{flex-direction:column;gap:8px;align-items:stretch}
 #homeView .hero .actions>.btn.primary{flex:none;min-height:56px;font-size:17px}
 #homeView .hero .actions>.btn.secondary{justify-content:center;min-height:44px;font-size:var(--mt-type-ui);padding:8px 12px}
 #homeView .hero .micro{margin-top:8px;gap:12px}
 #homeView .example-apps{padding:32px 0;scroll-margin-top:96px}
 #homeView .example-apps .section-heading{margin-bottom:20px}
 #homeView .example-apps .collection-stage{padding:16px}
}

/* Example details: complete real screenshots and a contextual bottom action. */
body[data-view="sample"] .mobile-dock{display:none!important}
#sampleView{padding-top:16px;padding-bottom:140px}
#sampleView .sample-detail{padding:0}
#sampleView .sample-back{display:inline-flex;align-items:center;gap:8px;min-height:44px;margin:0 0 16px;padding:8px 0;font-size:var(--mt-type-ui);color:var(--ink)}
#sampleView .sample-screenshots{display:flex;gap:20px;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x mandatory;scroll-padding-inline:0;max-width:100%;padding-bottom:12px;touch-action:pan-x pan-y}
#sampleView .sample-shot{flex:0 0 auto;margin:0;padding:12px;background:var(--shot-bg);border-radius:var(--mt-radius-display);scroll-snap-align:start}
#sampleView .sample-shot img{display:block;height:min(620px,calc(100svh - 260px));width:auto;max-width:none;aspect-ratio:390/740;object-fit:contain;border-radius:var(--mt-radius-inset)}
#sampleView .sample-detail-copy{max-width:var(--mt-content-reading);padding:24px 0}
#sampleView .sample-detail-copy h2{font:var(--mt-shell-heading-weight) var(--mt-type-h2)/var(--mt-leading-h2) var(--font-display);margin:0 0 12px}
#sampleView .sample-detail-description{margin:0 0 16px}
#sampleView .sample-action-bar{position:fixed;z-index:401;left:0;right:0;bottom:0;background:var(--mt-surface);border-top:1px solid var(--mt-line);box-shadow:0 -4px 24px #21192e06}
#sampleView .sample-action-inner{width:min(var(--mt-content-max),100%);margin-inline:auto;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px var(--mt-page-gutter) calc(12px + env(safe-area-inset-bottom,0px))}
#sampleView .sample-action-summary{display:flex;align-items:center;gap:12px;min-width:0}
#sampleView .sample-action-summary>img{width:44px;height:44px;flex:none;border-radius:12px}
#sampleView .sample-action-summary>div{min-width:0}
#sampleView .sample-action-summary strong{display:block;font-size:17px;font-weight:650;line-height:1.35;overflow-wrap:break-word}
#sampleView .sample-action-summary p{font-size:13px;line-height:1.4;color:var(--muted);margin:4px 0 0}
#sampleView .sample-try{flex:none;min-height:56px;font-size:15px;padding-inline:16px;text-decoration:none;white-space:normal}
@media(max-width:600px){
 #sampleView .sample-screenshots{gap:12px;margin-right:calc(-1 * var(--mt-page-gutter));max-width:calc(100% + var(--mt-page-gutter));padding-right:var(--mt-page-gutter)}
 #sampleView .sample-shot{padding:10px;border-radius:24px}
 #sampleView .sample-shot img{height:max(240px,calc(100svh - 260px));border-radius:14px}
 #sampleView .sample-action-inner{gap:12px}
 #sampleView .sample-action-summary p{display:none}
}
@media(max-width:379px){
 #sampleView{padding-bottom:180px}
 #sampleView .sample-shot img{height:max(220px,calc(100svh - 328px))}
 #sampleView .sample-action-inner{flex-wrap:wrap;gap:10px}
 #sampleView .sample-action-summary{width:100%}
 #sampleView .sample-action-summary>img{width:32px;height:32px;border-radius:9px}
 #sampleView .sample-try{width:100%}
}
#sampleView .sample-screenshots:focus-visible{outline:3px solid var(--mt-focus);outline-offset:3px}

/* Chinese uses regular/medium/semibold platform weights, not MiSans VF values.
   Keep English roles and brand SVGs unchanged. Do not style uploaded App frames. */
html[lang="zh-CN"]{--mt-shell-heading-weight:600;--mt-shell-subheading-weight:600;--mt-shell-ui-weight:500;--mt-shell-body-weight:400;--mt-track-display:0;--mt-track-h1:0;--mt-track-h2:0;--mt-track-h3:0;--mt-track-caption:0}
html[lang="zh-CN"] body{font-weight:var(--mt-shell-body-weight);font-synthesis:none}
html[lang="zh-CN"] :is(.eyebrow,.collection-label){letter-spacing:0;text-transform:none}
html[lang="zh-CN"] #homeView .process-visual[data-process-step="0"] h4{font-weight:var(--mt-shell-subheading-weight);letter-spacing:0;line-height:var(--mt-leading-h3)}
html[lang="zh-CN"] #homeView .phone-home-copy h4{font-weight:var(--mt-shell-subheading-weight)}
@media(max-width:370px){#homeView .hero-icon-cluster .hero-app-button:last-child{display:none}}
@media(prefers-reduced-motion:reduce){.motion-ready #homeView .hero[data-hero-preparing="true"] :is(.hero-title-text,.hero-app-tile){opacity:1}}

/* The plan sheet uses UI typography: restrained hierarchy, not display type. */
#upgradeDialog{--mt-paywall-emphasis:600;--mt-paywall-label-weight:500;--mt-paywall-body-weight:400;width:480px;max-width:calc(100% - 32px);max-height:min(860px,calc(100dvh - 48px));border-radius:var(--mt-radius-card);overflow:hidden;box-shadow:none;color:var(--mt-ink);font-family:var(--font-body);font-weight:var(--mt-paywall-body-weight)}
html[lang="zh-CN"] #upgradeDialog{--mt-paywall-emphasis:600;--mt-paywall-label-weight:500;--mt-paywall-body-weight:400}
#upgradeDialog[open]{display:flex;flex-direction:column}
#upgradeDialog .dialog-header{flex:none;align-items:center;gap:16px;padding:24px 24px 12px;border:0;background:var(--mt-surface)}
#upgradeDialog .dialog-header h2{margin:0;font:var(--mt-paywall-emphasis) var(--mt-paywall-title)/1.28 var(--font-body);letter-spacing:0}
#upgradeTitle:focus{outline:none}
#upgradeDialog .dialog-header .icon-button{flex:0 0 44px;width:44px;height:44px;min-height:44px;border:0;background:var(--mt-page);border-radius:50%}
#upgradeDialog .dialog-body{padding:0;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.upgrade-scroll{padding:0 24px;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
#upgradeDialog .upgrade-context>p{margin:0 0 20px;font-size:var(--mt-paywall-body);line-height:1.55;color:var(--mt-paywall-secondary)}
#upgradeDialog .upgrade-context .upgrade-saved{display:flex;gap:8px;align-items:flex-start;margin-bottom:20px;font-size:var(--mt-paywall-meta);line-height:1.5;color:var(--mt-ink)}
.upgrade-saved>svg{flex:none;margin-top:2px;color:var(--mt-success)}
.upgrade-saved>span{min-width:0;overflow-wrap:anywhere}
.upgrade-free{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;padding:12px 0;border-top:1px solid var(--mt-line);border-bottom:1px solid var(--mt-line);font-size:var(--mt-paywall-meta);line-height:1.5}
.upgrade-free>strong{font-weight:var(--mt-paywall-label-weight)}
.upgrade-free>span{color:var(--mt-paywall-secondary);margin-left:auto}
.upgrade-current-allowance{flex-basis:100%;text-align:center;color:var(--mt-ink)}
.upgrade-paid-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 0 10px}
.upgrade-paid-heading h3{margin:0;font:var(--mt-paywall-label-weight) var(--mt-paywall-meta)/1.5 var(--font-body);letter-spacing:0}
.upgrade-paid-heading>span{flex:none;font-size:var(--mt-paywall-meta);line-height:1.5;color:var(--mt-paywall-secondary)}
.upgrade-plans{display:grid;grid-template-columns:1fr;gap:10px;margin:0}
.upgrade-plan{appearance:none;display:grid;grid-template-columns:18px minmax(0,1fr) auto;gap:12px;align-items:center;text-align:left;padding:14px 16px;min-height:96px;border:1px solid var(--mt-line);border-radius:var(--mt-radius-inset);background:var(--mt-surface);color:var(--mt-ink);box-shadow:none;font:inherit;cursor:pointer;transition:border-color var(--mt-hover),background var(--mt-hover)}
.upgrade-plan[aria-pressed="true"]{border-color:var(--mt-primary);background:var(--mt-page);box-shadow:none}
.upgrade-plan:focus-visible,.upgrade-details>summary:focus-visible{outline:3px solid var(--mt-focus);outline-offset:3px}
.upgrade-plan-choice{display:grid;place-items:center;width:18px;height:18px;border:1px solid var(--mt-muted);border-radius:50%;background:var(--mt-surface)}
.upgrade-plan-choice svg{visibility:hidden}
.upgrade-plan[aria-pressed="true"] .upgrade-plan-choice{background:var(--mt-primary);border-color:var(--mt-primary);color:white}
.upgrade-plan[aria-pressed="true"] .upgrade-plan-choice svg{visibility:visible}
.upgrade-plan-copy{display:grid;gap:2px;min-width:0;overflow-wrap:anywhere}
.upgrade-plan-copy>strong{margin-bottom:2px;font-size:var(--mt-paywall-name);line-height:1.375;font-weight:var(--mt-paywall-emphasis)}
.upgrade-plan-copy>span{font-size:var(--mt-paywall-body);line-height:1.45;font-weight:var(--mt-paywall-body-weight)}
.upgrade-plan-copy>.upgrade-plan-capacity{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px}
.upgrade-plan-capacity>b{font:600 24px/1.2 var(--font-body);font-variant-numeric:tabular-nums}
.upgrade-plan small{font-size:var(--mt-paywall-meta);line-height:1.4;font-weight:var(--mt-paywall-body-weight);color:var(--mt-paywall-secondary)}
.upgrade-plan-price{display:grid;gap:3px;text-align:right;align-self:start;white-space:nowrap}
.upgrade-plan-price>strong{font:600 var(--mt-paywall-price)/1.28 var(--font-body);font-variant-numeric:tabular-nums;letter-spacing:0}
#upgradeDialog .upgrade-availability{margin:14px 0;color:var(--mt-paywall-secondary);font-size:var(--mt-paywall-meta);line-height:1.5}
.upgrade-details{border-block:1px solid var(--mt-line)}
.upgrade-details>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;cursor:pointer;list-style:none;font-size:var(--mt-paywall-meta);line-height:1.5;font-weight:var(--mt-paywall-label-weight)}
.upgrade-details>summary::-webkit-details-marker{display:none}
.upgrade-details>summary svg{flex:none;transition:transform var(--mt-hover)}
.upgrade-details[open]>summary svg{transform:rotate(90deg)}
#upgradeDialog .upgrade-details-content p{margin:0 0 12px;font-size:var(--mt-paywall-meta);line-height:1.6;color:var(--mt-paywall-secondary)}
#upgradeDialog .upgrade-details-content .text-link{margin:0 0 8px;min-height:44px;font-size:var(--mt-paywall-meta)}
.upgrade-account{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:0 8px;padding-block:8px;font-size:var(--mt-paywall-meta);line-height:1.5;color:var(--mt-paywall-secondary)}
#upgradeDialog .upgrade-account .text-link{margin:0;min-height:44px;font-size:var(--mt-paywall-meta);font-weight:var(--mt-paywall-label-weight)}
.upgrade-footer{flex:none;padding:12px 24px 24px;border-top:1px solid var(--mt-line);background:var(--mt-surface)}
#upgradeDialog .upgrade-footer>.btn{font-size:var(--mt-paywall-action);line-height:1.375}
#upgradeDialog .upgrade-footer p{margin:8px 0 0;text-align:center;color:var(--mt-paywall-secondary);font-size:var(--mt-paywall-meta);line-height:1.5}
#accountBackPlans{margin-top:16px}
.mobile-plan-row{flex-wrap:wrap}
.mobile-plan-row>.text-link{flex-basis:100%;text-align:left;min-height:44px}
@media(max-width:600px){
 #upgradeDialog{width:100%;max-width:100%;max-height:calc(var(--visible-height,100dvh) - max(12px,env(safe-area-inset-top,0px)));border-radius:24px 24px 0 0}
 #upgradeDialog .dialog-header{padding:16px 20px 12px}
 .upgrade-scroll{padding-inline:20px}
 .upgrade-footer{padding:12px max(20px,env(safe-area-inset-right,0px)) calc(16px + env(safe-area-inset-bottom,0px)) max(20px,env(safe-area-inset-left,0px))}
}
@media(max-width:370px){
 #upgradeDialog .dialog-header{padding-inline:16px}
 .upgrade-scroll{padding-inline:16px}
 .upgrade-plan{padding:12px;gap:10px}
}
@media(prefers-reduced-motion:reduce){.upgrade-plan,.upgrade-details>summary svg{transition:none}}

/* Preview chrome floats over the App, never consuming a row or its taps. */
#studioView .immersive-preview-stage{position:relative}
#studioView .preview-label{position:absolute;inset:12px auto auto max(12px,env(safe-area-inset-left,0px));z-index:3;display:inline-block;padding:3px 7px;border-radius:var(--mt-radius-xs);background:var(--mt-preview-label-bg);color:white;font:400 var(--mt-preview-label-size)/1.4 var(--font-body);text-shadow:none;box-shadow:none;filter:none;pointer-events:none;user-select:none}
#studioView .immersive-preview-footer:has(.preview-repair){grid-template-columns:var(--mt-creation-back-size) var(--mt-creation-back-size) minmax(0,1fr)}
#studioView .preview-repair{width:var(--mt-creation-back-size);min-height:var(--mt-creation-back-size);padding:0}

/* Creation is a focused flow, with one contextual action bar, not two docks. */
#studioView .creation-action-bar{gap:var(--mt-space-3)}
#studioView .creation-action-bar>.creation-back,
#studioView .creation-back{flex:0 0 var(--mt-creation-back-size);width:var(--mt-creation-back-size);min-width:var(--mt-creation-back-size);min-height:var(--mt-creation-back-size);padding:0;gap:0}
#studioView .creation-back svg{width:20px;height:20px}
#studioView .creation-action-note{flex:1;min-width:0}
#studioView .immersive-preview-footer{grid-template-columns:var(--mt-creation-back-size) minmax(0,1fr)}
#studioView .result-navigation{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--mt-space-3);margin-block:var(--mt-space-5)}
#studioView .result-primary{max-width:none;min-width:0;white-space:normal;overflow-wrap:anywhere}
@media(max-width:600px){
 /* Setup controls already reserve the measured fixed chrome in scroll-margin.
    Do not add the legacy page/dock scroll-padding again in a short viewport. */
 html:has(body[data-view="create"]){scroll-padding-block:0}
 body[data-view="create"] .mobile-dock{display:none!important}
 body[data-view="create"] .site-footer{padding-bottom:calc(var(--mt-creation-action-height,84px) + var(--mt-space-5))}
 body[data-view="create"][data-step="2"]:has(.immersive-preview) .site-footer{display:none}
 body[data-view="create"][data-step] #studioView{
  padding-top:var(--mt-space-4);
  padding-bottom:calc(var(--mt-creation-action-height,84px) + var(--keyboard-inset,0px) + var(--mt-space-5));
 }
 body[data-view="create"] #studioView .workspace-card{overflow:visible}
 body[data-view="create"][data-step] #studioView .workspace-footer.creation-action-bar{
  position:fixed;inset:auto 0 var(--keyboard-inset,0px);z-index:60;
  display:flex;flex-wrap:nowrap;align-items:center;gap:var(--mt-space-3);
  border:0;border-top:1px solid var(--mt-line);border-radius:0;background:var(--mt-surface);
  padding:var(--mt-space-3) max(var(--mt-space-4),env(safe-area-inset-right,0px)) calc(var(--mt-space-3) + env(safe-area-inset-bottom,0px)) max(var(--mt-space-4),env(safe-area-inset-left,0px));
  box-shadow:0 -7px 24px #25232806;
 }
 body[data-view="create"][data-step] #studioView .creation-action-bar>.btn.primary{flex:1;min-width:0;min-height:var(--mt-creation-back-size);margin:0;white-space:normal;overflow-wrap:anywhere}
 body[data-view="create"][data-step] #studioView .creation-action-bar>.creation-back{flex:0 0 var(--mt-creation-back-size);min-width:var(--mt-creation-back-size);padding:0}
 body[data-view="create"].keyboard-open #studioView .creation-action-bar{padding-bottom:var(--mt-space-3)}
 body[data-view="create"].dialog-open #studioView .creation-action-bar{visibility:hidden}
 #studioView .creation-action-note{display:none}
 #studioView :is(input,textarea,button,summary,.inline-message){scroll-margin-block:calc(var(--mt-shell-header-height,73px) + var(--mt-space-3)) calc(var(--mt-creation-action-height,84px) + var(--keyboard-inset,0px) + var(--mt-space-4))}
 body[data-view="create"][data-step="3"] #studioView :is(#appName,#saveError){scroll-margin-bottom:calc(var(--mt-creation-action-height,84px) + var(--keyboard-inset,0px) + var(--mt-space-4))}
 #studioView .workspace-title{margin-bottom:var(--mt-space-4)}
 #studioView .workspace-title h1{font-size:var(--mt-type-h2);line-height:var(--mt-leading-h2);letter-spacing:var(--mt-track-h2)}
 #studioView .workspace-title p{margin-top:var(--mt-space-2);font-size:var(--mt-type-ui);line-height:var(--mt-leading-body)}
 #studioView .flow-steps{display:flex;gap:var(--mt-space-2);align-items:center;margin-bottom:var(--mt-space-4)}
 #studioView .flow-line{display:none}
 #studioView .flow-step{flex:0 0 auto;flex-direction:row;align-items:center;gap:var(--mt-space-2)}
 #studioView .flow-step.active{flex:1;min-width:0}
 #studioView .flow-step .num{flex:none}
 #studioView .flow-step.active .flow-step-label{width:auto;min-height:0;text-align:start;text-wrap:wrap;font-size:var(--mt-type-caption)}
 #studioView .flow-step:not(.active) .flow-step-label{position:absolute;width:1px;height:1px;min-height:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 #studioView .workspace-content{padding:var(--mt-space-4)}
 #studioView .intake-layout{gap:var(--mt-space-4)}
 #studioView .source-receipt{padding:var(--mt-space-4)}
 #studioView .receipt-top{gap:var(--mt-space-3)}
 #studioView .receipt-top>div{min-width:0}
 #studioView .receipt-top :is(h3,p){overflow-wrap:anywhere}
 #studioView .intake-actions{margin-top:var(--mt-space-4)}
 #studioView .intake-actions .btn{padding-inline:var(--mt-space-3)}
 #studioView .customize-grid{gap:var(--mt-space-4)}
 #studioView .result-simple{padding:var(--mt-space-4) 0}
 #studioView .result-simple .result-icon{width:64px;height:64px;margin-bottom:var(--mt-space-4)}
 #studioView .result-simple h2{overflow-wrap:anywhere}
 body[data-view="create"][data-step="2"] #studioView:has(.immersive-preview){padding:0;min-height:0}
 body[data-view="create"][data-step="2"] #studioView .immersive-preview{
  position:fixed;inset:max(var(--mt-shell-header-height,73px),var(--visual-offset-top,0px)) 0 var(--keyboard-inset,0px);
  z-index:60;height:auto;min-height:0;border:0;border-radius:0;
 }
 #studioView .immersive-preview-head{min-height:var(--mt-creation-back-size);padding:var(--mt-space-2) var(--mt-space-4)}
 #studioView .immersive-preview-footer{padding:var(--mt-space-3) max(var(--mt-space-4),env(safe-area-inset-right,0px)) calc(var(--mt-space-3) + env(safe-area-inset-bottom,0px)) max(var(--mt-space-4),env(safe-area-inset-left,0px))}
}

/* Preview actions share the same bottom row; leave more room for the App. */
#studioView .creation-action-bar--preview .clean-open{min-width:0;white-space:normal}
#studioView .immersive-preview-footer:has(.clean-open){grid-template-columns:var(--mt-creation-back-size) minmax(0,1fr) minmax(0,1.25fr)}
@media(max-width:600px){
 #studioView .immersive-preview-head{min-height:44px;padding-block:var(--mt-space-2)}
 #studioView .immersive-preview-head .preview-head-name{display:none}
 #studioView .creation-action-bar--preview>.btn{padding-inline:var(--mt-space-2);gap:var(--mt-space-2)}
 #studioView .creation-action-bar--preview>.clean-open{flex:1;min-height:var(--mt-creation-back-size)}
 #studioView .creation-action-bar--preview>.btn>span{min-width:0;overflow-wrap:anywhere}
 #studioView .creation-action-bar--preview>.clean-open svg{display:inline-block;width:18px;height:18px;flex:none}
}
@media(max-width:379px){#studioView .creation-action-bar--preview>.btn.primary svg{display:none}}

/* The same compact progress strip stays above setup steps; live preview stays clear. */
@media(max-width:600px){
 body[data-view="create"][data-step]:not([data-step="2"]) #studioView{padding-top:calc(var(--mt-creation-progress-height,52px) + var(--mt-space-4))}
 body[data-view="create"] #studioView .flow-steps{
  position:fixed;inset:max(var(--mt-shell-header-height,73px),var(--visual-offset-top,0px)) 0 auto;z-index:61;
  margin:0;padding:var(--mt-space-3) max(var(--mt-page-gutter),env(safe-area-inset-right,0px)) var(--mt-space-3) max(var(--mt-page-gutter),env(safe-area-inset-left,0px));
  background:var(--mt-page);border-bottom:1px solid var(--mt-line);
 }
 body[data-view="create"].dialog-open #studioView .flow-steps{visibility:hidden}
 #studioView :is(input,textarea,button,summary,.inline-message){scroll-margin-top:calc(var(--mt-shell-header-height,73px) + var(--mt-creation-progress-height,52px) + var(--mt-space-3))}
 body[data-view="create"][data-step="2"] #studioView .flow-steps{display:none}
}

/* Keep header menus above fixed creation progress and preview chrome. */
@media(max-width:600px){body[data-view="create"] .site-header{z-index:70}}

/* Static installation-help diagram: not a control or App screenshot. */
.installed-entry-help{display:flex;align-items:flex-start;gap:var(--mt-space-5);margin:var(--mt-space-5) 0;padding:var(--mt-space-4);border:1px solid var(--mt-line);border-radius:var(--mt-radius-md);background:var(--mt-surface)}
.installed-entry-help-device{position:relative;flex:none;width:144px;height:192px;border:2px solid var(--mt-line);border-radius:var(--mt-radius-md);background:var(--mt-page)}
.installed-entry-help-corner{position:absolute;width:44px;height:44px;border:1px dashed var(--mt-muted);border-radius:var(--mt-radius-sm)}
.installed-entry-help-corner.top-left{top:10px;left:10px}.installed-entry-help-corner.top-right{top:10px;right:10px}
.installed-entry-help-corner.bottom-left{bottom:10px;left:10px}.installed-entry-help-corner.bottom-right{bottom:10px;right:10px}
.installed-entry-help-corner.is-default{border:2px solid var(--mt-primary);background:var(--mt-soft)}
.installed-entry-help figcaption{min-width:0;overflow-wrap:anywhere}.installed-entry-help figcaption p{margin-top:var(--mt-space-3)}
.installed-entry-help-note{color:var(--mt-muted);font-size:var(--mt-type-caption);line-height:var(--mt-leading-caption)}
@media(max-width:600px){.installed-entry-help{flex-direction:column}.installed-entry-help-device{align-self:center}}

/* Detached preview reuses the existing status and button family. */
#cleanPreviewConfirm:not([hidden]){display:grid;gap:var(--mt-space-3);width:100%}

/* V1.1 publishing credits: shared catalogue, independent of payment flags.
   Existing Orchid Bloom, type, spacing and radii; no new visual tokens. */
#pricingGrid{display:block;max-width:var(--mt-content-max)}
.billing-pricing{min-width:0;text-align:left}
.billing-card-grid{align-items:stretch}
.billing-card{border-color:var(--mt-line);border-radius:var(--mt-radius-card);padding:var(--mt-space-5);box-shadow:none}
.billing-card--free{border-color:var(--mt-primary)}
.billing-card>header>div:first-child{min-width:0}
.billing-card h3{font-family:var(--mt-font-display);font-weight:600;font-size:22px;letter-spacing:0;line-height:1.28}
.billing-card header p,.billing-card-price span,.billing-card-credits span{color:var(--mt-paywall-secondary)}
.billing-card-price strong{font-family:var(--mt-font-ui);font-size:28px;letter-spacing:0}
.billing-card-credits{margin-block:24px 16px}
.billing-card-credits strong{font-family:var(--mt-font-numeric-large);font-size:40px;font-weight:600}
.billing-features{margin:0 0 24px;padding-left:20px;display:grid;gap:10px;align-content:start;color:var(--mt-ink);font-size:15px;line-height:1.6}
.billing-card-status{margin:0;font-size:13px;line-height:1.6;color:var(--mt-paywall-secondary)}
.billing-card .btn:disabled{opacity:1;background:var(--mt-page);color:var(--mt-paywall-secondary);border-color:var(--mt-line);cursor:not-allowed}
.billing-availability,.billing-tax,.billing-pricing .plan-shared{max-width:var(--mt-content-reading);margin:20px auto 0;color:var(--mt-paywall-secondary);font-size:14px;line-height:1.6;text-align:center}
.billing-pricing .plan-shared{color:var(--mt-ink);font-size:15px}
.billing-tax{margin-top:8px}
.pricing .price-footnote{display:block;color:var(--mt-paywall-secondary);font-size:13px;line-height:1.6}
.billing-pricing--compact .billing-card-grid{grid-template-columns:minmax(0,1fr);gap:16px}
.billing-pricing--compact .billing-card{padding:16px;border-radius:var(--mt-radius-inset)}
.billing-pricing--compact .billing-card h3{font-family:var(--mt-font-ui);font-size:var(--mt-paywall-name)}
.billing-pricing--compact .billing-card-price strong{font-size:var(--mt-paywall-price)}
.billing-pricing--compact .billing-features{font-size:var(--mt-paywall-body);gap:8px;margin-bottom:16px}
.billing-pricing--compact .billing-availability,.billing-pricing--compact .billing-tax,.billing-pricing--compact .plan-shared{text-align:left}
#upgradeDialog .upgrade-account{display:block}
.billing-v11{width:560px;max-width:calc(100% - 32px);max-height:calc(100dvh - 32px)}
.billing-v11 header{gap:16px;align-items:flex-start}
.billing-v11 h2{font-family:var(--mt-font-ui);font-size:22px;line-height:1.28;min-width:0;overflow-wrap:anywhere}
.billing-v11 header>.text-link{min-width:44px;min-height:44px;flex-shrink:0}
.billing-v11 .billing-purchases{display:grid;gap:12px;margin-top:24px}
.billing-v11 .billing-purchases button{white-space:normal;overflow-wrap:anywhere;min-height:48px}
.billing-grants{list-style:none;padding:0;margin:16px 0;display:grid;gap:12px}
.billing-grants li{display:grid;gap:4px;padding-block:12px;border-bottom:1px solid var(--mt-line);font-size:14px;line-height:1.6}
.billing-snapshot>p{line-height:1.6}
@media(max-width:599px){
 .billing-card-grid{gap:16px}
 .billing-card{padding:24px}
 .billing-v11{width:100%;max-width:100%;margin: auto 0 0;border-radius:24px 24px 0 0;max-height:calc(100dvh - 32px)}
 .billing-v11 header,.billing-v11 .payment-demo-scroll{padding-inline:20px}
 .billing-v11 footer{padding-bottom:max(20px,env(safe-area-inset-bottom,0px))}
}
@media(max-width:370px){.billing-card{padding:16px}.billing-card h3{font-size:20px}.billing-card-price strong{font-size:24px}.billing-pricing--compact .billing-card h3{font-size:16px}.billing-card>header{gap:12px}}

/* Zoom reflow uses available container width, not an unzoomed media-query width. */
.site-header,.sources,.site-footer{container-type:inline-size}
@container(max-width:1200px){
 .site-header .nav-links,.site-header .desktop-locale{display:none}
 .site-header .menu-toggle{display:inline-flex}
}
@container(max-width:600px){
 .site-header .nav-actions>.header-primary{display:none}
 .site-header .nav-inner,.site-header .nav-actions{gap:4px}
}
@container(max-width:320px){
 .site-header .nav-inner{height:auto;min-height:65px;flex-wrap:wrap;padding-block:8px}
 .site-header .nav-actions{margin-left:auto;max-width:100%;flex-wrap:wrap}
 .site-header .mobile-menu{top:100%;left:8px;right:8px}
 .site-header .language-menu{min-width:0;max-width:calc(100cqi - 16px)}
}
.site-header .brand,.site-footer .brand,.brand-lockup-shell{max-width:100%;min-width:0}
@container(max-width:360px){
 .sources .source-row{display:flex;flex-wrap:wrap;justify-content:center;gap:20px;max-width:100%;padding-inline:16px}
 .sources .source-intro{flex-basis:100%}
 .sources .source-name{max-width:100%}
}
#homeView .hero-action-group,#homeView .hero .actions>.btn{min-width:0;max-width:100%}
.billing-card-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))}
.billing-card>header{flex-wrap:wrap}
.billing-card>header>div:first-child{flex:1 1 140px;min-width:min(100%,140px)}
.billing-card h3{overflow-wrap:normal}
.billing-card-price{max-width:100%;margin-left:auto}
.billing-card-credits{flex-wrap:wrap}
#upgradeDialog{max-width:calc(var(--visible-width,100vw) - 32px);max-height:min(860px,calc(var(--visible-height,100dvh) - 32px))}
#upgradeDialog .dialog-body{flex:1 1 auto;min-width:0;min-height:0}
#upgradeDialog .upgrade-scroll{flex:1 1 auto;min-width:0;min-height:0;overflow-y:auto}
#stagingBillingDialog,#stagingPublication{max-width:calc(var(--visible-width,100vw) - 16px);max-height:calc(var(--visible-height,100dvh) - 16px)}
#stagingBillingDialog .payment-demo-scroll,#stagingPublication .payment-demo-scroll{flex:1 1 auto;min-height:0;min-width:0;overflow:auto}
@media(max-width:600px){
 #upgradeDialog{max-width:var(--visible-width,100vw);max-height:calc(var(--visible-height,100dvh) - 12px)}
 #upgradeDialog .dialog-header{flex-wrap:nowrap;min-width:0}
 #upgradeDialog .dialog-header h2{min-width:0;overflow-wrap:anywhere}
}

@container(max-width:320px){
 .site-footer .footer-links{grid-template-columns:minmax(0,1fr)}
 .site-footer .footer-links :is(a,button){min-width:0;overflow-wrap:anywhere}
}
.billing-features,.billing-card-status,.billing-card header p,.billing-card-credits span,.billing-availability,.billing-tax,.billing-pricing .plan-shared{overflow-wrap:anywhere}
.billing-card .btn{min-width:0;max-width:100%;overflow-wrap:anywhere}

/* Keep the static tax fallback until the shared catalogue has rendered its complete disclosure. */
#homeView #pricing:has(.billing-tax)>.wrap>.price-footnote{display:none}

/* CSS zoom narrows available content without changing media queries. Let
   gallery controls reflow instead of pushing the arrow outside its card. */
.gallery-card{min-width:0;flex-wrap:wrap}
.gallery-card>div{flex:1 1 120px;min-width:0;overflow-wrap:anywhere}
.gallery-card>img,.gallery-card>.gallery-arrow{flex-shrink:0}
/* Grid items may shrink below the intrinsic brand width; preserve the SVG,
   constrain its parent and let the existing max-width scale the lockup. */
.site-footer .footer-main>*{min-width:0;max-width:100%}
@container(max-width:320px){
 .site-footer .footer-main{grid-template-columns:minmax(0,1fr)}
 .site-footer .footer-brand .locale-picker{min-width:0;max-width:100%}
}

/* Pricing refinement, 2026-11-11.
   Append after existing billing rules in visual-refresh.css.
   Existing catalogue, checkout controls, limits and disclosures stay intact.
   No new fonts, colours, assets, claims or animations. */
.billing-card-grid { gap: var(--mt-space-4); }
.billing-card {
  padding: var(--mt-space-5);
  border-radius: var(--mt-radius-card);
  box-shadow: none;
}
.billing-card > header {
  display: block;
}
.billing-card h3 {
  font-size: var(--mt-type-h3);
  font-weight: var(--mt-shell-heading-weight, 600);
  line-height: var(--mt-leading-h3);
}
.billing-card header p {
  margin: var(--mt-space-1) 0 0;
  font-size: var(--mt-type-caption);
  line-height: var(--mt-leading-caption);
}
.billing-card-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--mt-space-2);
  margin: var(--mt-space-5) 0 0;
  text-align: left;
}
.billing-card-price strong {
  font-family: var(--mt-font-numeric-large);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  color: var(--mt-ink);
}
.billing-card-price span {
  font-size: var(--mt-type-caption);
  line-height: var(--mt-leading-caption);
}
.billing-card-credits {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
  margin: var(--mt-space-3) 0 var(--mt-space-4);
  padding: 0 0 var(--mt-space-4);
  border-bottom: 1px solid var(--mt-line);
}
.billing-card-credits strong {
  font-family: var(--mt-font-numeric-small);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--mt-ink);
}
.billing-card-credits span {
  font-size: var(--mt-paywall-body);
  line-height: 1.5;
  color: var(--mt-ink);
}
.billing-card .billing-features {
  display: grid;
  align-content: start;
  gap: var(--mt-space-2);
  padding-inline-start: 18px;
  margin: 0 0 var(--mt-space-5);
  font-size: var(--mt-paywall-body);
  line-height: 1.5;
  color: var(--mt-paywall-secondary);
}
.billing-card .billing-features li + li { margin-top: 0; }
.billing-card .billing-features li::marker { color: var(--mt-muted); }
.billing-card-status {
  font-size: var(--mt-type-caption);
  line-height: var(--mt-leading-caption);
}
.billing-card > .btn { margin-top: var(--mt-space-2); }
.billing-pricing .plan-shared,
.billing-pricing .billing-availability,
.billing-pricing .billing-tax {
  max-width: none;
  text-align: left;
  font-size: var(--mt-type-caption);
  line-height: var(--mt-leading-caption);
  margin: var(--mt-space-2) 0 0;
}
.billing-pricing .plan-shared {
  margin-top: var(--mt-space-5);
  padding-top: var(--mt-space-4);
  color: var(--mt-ink);
}
.billing-pricing .billing-availability { margin-top: var(--mt-space-3); }
.billing-pricing--compact .billing-card {
  padding: var(--mt-space-4);
}
.billing-pricing--compact .billing-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--mt-space-3);
}
.billing-pricing--compact .billing-card h3 { font-size: var(--mt-paywall-name); }
.billing-pricing--compact .billing-card-price {
  display: grid;
  gap: var(--mt-space-1);
  margin: 0 0 0 auto;
  text-align: right;
}
.billing-pricing--compact .billing-card-price strong {
  font-family: var(--mt-font-numeric-small);
  font-size: var(--mt-paywall-price);
}
.billing-pricing--compact .billing-card-credits {
  margin-top: var(--mt-space-3);
  margin-bottom: var(--mt-space-3);
  padding-bottom: var(--mt-space-3);
}
.billing-pricing--compact .billing-card .billing-features { margin-bottom: var(--mt-space-4); }
@media (max-width:599px) {
  .billing-card > header {
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:var(--mt-space-3);
  }
  .billing-card-price {
    display:grid;
    text-align:right;
    gap:var(--mt-space-1);
    margin:0 0 0 auto;
  }
  .billing-card-price strong { font-size:32px; }
  .billing-card-credits { margin-top:var(--mt-space-4); }
  .billing-card .billing-features { font-size:15px; line-height:1.5; }
}
@media (max-width:370px) {
  .billing-card { padding:var(--mt-space-4); }
  .billing-card h3 { font-size:20px; }
  .billing-card-price strong { font-size:32px; }
  .billing-pricing--compact .billing-card-price strong { font-size:var(--mt-paywall-price); }
}

.installed-entry-help-device{display:grid;grid-template:repeat(3,1fr)/repeat(3,1fr);place-items:center;padding:8px;height:166px}
.installed-entry-help-device i{width:22px;height:22px;border:1.5px dashed var(--mt-primary);border-radius:6px;background:var(--mt-soft)}
.installed-entry-help-device i.is-default{background:var(--mt-primary);outline:2px solid var(--mt-primary);outline-offset:5px}


/* Source: brand-motion.css */
/* Approved MakeTap front-tile artwork only. Functional Phosphor icons and
   user App/Gallery artwork never inherit these logo-specific selectors. */
.mt-brand-logo{display:block;flex-shrink:0;vertical-align:middle}
.mt-brand-logo .mt-brand-wash{transform-box:fill-box;transform-origin:center}
.mt-brand-logo .mt-brand-shape{opacity:1;transform:none;transform-box:fill-box;transform-origin:center}

/* One exact SVG lockup, including its approved 0.4-icon gap and alignment.
   Root layout may set --mt-brand-lockup-icon-size for a particular placement. */
.brand.brand--lockup{display:inline-flex;align-items:center;gap:0;min-height:44px}
.brand.brand--lockup>.brand-mark,.brand.brand--lockup>.brand-wordmark{display:none}
.brand .brand-lockup{display:block;flex-shrink:0;width:calc(var(--mt-brand-lockup-icon-size,36px) * 4.4046333375);height:var(--mt-brand-lockup-icon-size,36px);max-width:100%;object-fit:contain;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.site-footer .brand{--mt-brand-lockup-icon-size:40px}
@media(max-width:599px){.site-header .brand{--mt-brand-lockup-icon-size:36px}}
@media(max-width:359px){.site-header .brand{--mt-brand-lockup-icon-size:28px}}

/* Animation is owned by modules/brand-motion.js. CSS never self-starts a
   loop: no-JS, favicon/PWA and reduced-motion representations remain static. */
.brand-lockup-shell{display:flex;align-items:center;flex:none}
.intake-app,.walk-paste-mark{background:transparent;border-radius:0}
.intake-app{transform:none}
.intake-app>.mt-brand-logo,.walk-paste-mark>.mt-brand-logo{width:100%;height:100%}
@media(prefers-reduced-motion:reduce){.mt-brand-logo .mt-brand-wash,.mt-brand-logo .mt-brand-shape{animation:none!important;opacity:1!important;transform:none!important}}


/* Source: help-center.css */
/* Task-based Help, using the existing MakeTap shell type and space tokens. */
#informationView .app-container:has(.help-center){max-width:var(--mt-content-max)}
.help-center{max-width:var(--mt-content-max);color:var(--mt-ink)}
.help-heading{max-width:var(--mt-content-reading);margin-bottom:var(--mt-space-7)}
.help-heading>p{color:var(--mt-paywall-secondary)}
.help-heading-actions{display:flex;align-items:center;flex-wrap:wrap;gap:var(--mt-space-4);margin-top:var(--mt-space-5)}
.help-heading-actions a{min-height:var(--mt-target-min)}
.help-text-link,.help-back-link,.help-home-link a{display:inline-flex;align-items:center;color:var(--mt-deep);text-decoration:underline;text-underline-offset:4px;min-height:var(--mt-target-min);line-height:var(--mt-leading-ui)}
.help-layout{display:grid;grid-template-columns:224px minmax(0,1fr);gap:var(--mt-space-7);align-items:start}
.help-contents{position:sticky;top:calc(var(--mt-shell-header-height,80px) + 24px)}
.help-contents h2{font:var(--mt-shell-ui-weight,600) var(--mt-type-ui)/var(--mt-leading-ui) var(--mt-font-ui);margin:0 0 var(--mt-space-3)}
.help-contents ul{list-style:none;margin:0;padding:0;border-block-start:1px solid var(--mt-line)}
.help-contents li{border-block-end:1px solid var(--mt-line)}
.help-contents a{display:flex;flex-direction:column;gap:var(--mt-space-1);padding:var(--mt-space-3) 0;min-height:var(--mt-target-min);color:var(--mt-ink);text-decoration:none;overflow-wrap:anywhere}
.help-contents a:hover{color:var(--mt-deep)}
.help-contents strong{font:var(--mt-shell-ui-weight,600) var(--mt-type-ui)/var(--mt-leading-ui) var(--mt-font-ui)}
.help-topic-summary{font:var(--mt-shell-body-weight,400) var(--mt-type-caption)/var(--mt-leading-caption) var(--mt-font-ui);color:var(--mt-paywall-secondary)}
.help-reading{min-width:0;max-width:var(--mt-content-reading)}
.help-article{padding-block:var(--mt-space-7);border-block-start:1px solid var(--mt-line)}
.help-article:first-child{padding-top:0;border-top:0}
.help-article h2{font-family:var(--mt-font-display);font-size:var(--mt-type-h2);font-weight:var(--mt-shell-heading-weight,700);line-height:var(--mt-leading-h2);letter-spacing:var(--mt-track-h2);margin:0 0 var(--mt-space-5)}
.help-article h3{font-family:var(--mt-font-ui);font-size:var(--mt-type-body);font-weight:var(--mt-shell-ui-weight,600);line-height:var(--mt-leading-body);margin:var(--mt-space-5) 0 var(--mt-space-2)}
.help-article :is(p,li){font-family:var(--mt-font-ui);font-size:var(--mt-type-body);line-height:var(--mt-leading-body);color:var(--mt-paywall-secondary);overflow-wrap:anywhere}
.help-article p{margin:0}
.help-article :is(p,ol,ul,pre,h2,h3,h4)+:is(button,a.btn){margin-block-start:var(--mt-space-4)}
.help-article p+p,.help-article>ol,.help-article>ul{margin-top:var(--mt-space-4)}
.help-article :is(ol,ul){padding-inline-start:var(--mt-space-5)}
.help-article li+li{margin-top:var(--mt-space-3)}
.help-steps li+li{margin-top:var(--mt-space-5)}
.help-steps h3{margin-top:0;color:var(--mt-ink)}
.help-steps li::marker{color:var(--mt-deep);font-weight:600}
.help-article .help-back-link{margin-top:var(--mt-space-4);font-size:var(--mt-type-ui)}
.help-note{margin-block:var(--mt-space-5);padding:var(--mt-space-5);background:var(--mt-surface);border:1px solid var(--mt-line);border-radius:var(--mt-radius-inset)}
.help-note h3{margin-top:0;color:var(--mt-ink)}
.help-platforms{display:grid;gap:var(--mt-space-5);grid-template-columns:1fr 1fr;margin-block:var(--mt-space-5)}
.help-platforms h3{margin-top:0;color:var(--mt-ink)}
.help-platforms ol{margin:0}
.help-disclosure{border-block-end:1px solid var(--mt-line);padding-block:var(--mt-space-3);margin-block:var(--mt-space-3)}
.help-disclosure summary,.help-credits summary{min-height:var(--mt-target-min);padding-block:var(--mt-space-3);cursor:pointer;font:var(--mt-shell-ui-weight,600) var(--mt-type-ui)/var(--mt-leading-ui) var(--mt-font-ui);color:var(--mt-ink)}
.help-disclosure>div{padding-block:var(--mt-space-3)}
.help-disclosure>div>h3:first-child{margin-top:0}
.help-article .help-request{margin-block:var(--mt-space-4);padding:var(--mt-space-4);border:1px solid var(--mt-line);border-radius:var(--mt-radius-inset);background:var(--mt-surface);color:var(--mt-ink);user-select:text}
.help-article .help-copy-status{min-height:1.5em;margin-top:var(--mt-space-2);font-size:var(--mt-type-caption)}
.help-credits{padding-block:var(--mt-space-4);border-block-start:1px solid var(--mt-line);font-size:var(--mt-type-caption);line-height:var(--mt-leading-caption);color:var(--mt-paywall-secondary)}
.help-credits a{display:inline-flex;align-items:center;min-height:var(--mt-target-min);color:var(--mt-deep)}
.help-home-link{text-align:center;margin-top:var(--mt-space-5)}
.help-center :is(h2,details){scroll-margin-top:calc(var(--mt-shell-header-height,80px) + 24px)}
.help-center :is(a,button,summary,[tabindex="0"]):focus-visible{outline:3px solid var(--mt-focus);outline-offset:var(--mt-focus-offset);border-radius:var(--mt-radius-xs)}
.help-center :is(h1,h2)[tabindex="-1"]:focus{outline:none}
.help-center .installed-entry-help{margin-block:var(--mt-space-5)}
@media(max-width:1023px){
 .help-layout{grid-template-columns:1fr;gap:var(--mt-space-7)}
 .help-contents{position:static}
 .help-contents ul{display:grid;grid-template-columns:1fr 1fr;column-gap:var(--mt-space-5)}
 .help-heading{margin-bottom:var(--mt-space-6)}
}
@media(max-width:599px){
 .help-heading-actions{align-items:stretch;gap:var(--mt-space-2)}
 .help-heading-actions .btn{width:100%}
 .help-heading-actions .help-text-link{justify-content:center;width:100%}
 .help-contents ul{column-gap:var(--mt-space-4)}
 .help-topic-summary{display:none}
 .help-contents a{height:100%;justify-content:center;padding-block:var(--mt-space-4)}
 .help-platforms{grid-template-columns:1fr}
 .help-article{padding-block:var(--mt-space-6)}
 .help-note{padding:var(--mt-space-4)}
}

/* Task cues use the existing Phosphor Regular renderer, never redrawn paths. */
.help-center .phosphor-icon{flex:none;display:block;color:inherit;stroke:none}
.help-text-link{gap:var(--mt-space-2)}
.help-contents a{flex-direction:row;align-items:flex-start;gap:var(--mt-space-3)}
.help-topic-icon{color:var(--mt-deep);padding-top:1px;flex:none}
.help-topic-copy{display:flex;flex-direction:column;gap:var(--mt-space-1);min-width:0}
.help-article h2{display:flex;align-items:flex-start;gap:var(--mt-space-3)}
.help-section-icon{display:flex;align-items:center;justify-content:center;flex:none;width:40px;height:40px;border-radius:var(--mt-radius-sm);color:var(--mt-deep);background:var(--mt-soft)}
.help-article .help-icon-title{display:flex;align-items:flex-start;gap:var(--mt-space-2)}
.help-icon-title>.phosphor-icon{margin-top:3px;color:var(--mt-deep)}
.help-article .help-steps{list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--mt-space-4);padding:0;margin-block:var(--mt-space-5)}
.help-steps li{padding:var(--mt-space-5);border:1px solid var(--mt-line);border-radius:var(--mt-radius-inset);background:var(--mt-surface)}
.help-steps li+li{margin-top:0}
.help-step-sign{display:flex;align-items:center;justify-content:space-between;color:var(--mt-deep);margin-bottom:var(--mt-space-4)}
.help-step-sign>span{font:var(--mt-shell-ui-weight,600) var(--mt-type-ui)/var(--mt-leading-ui) var(--mt-font-ui);font-variant-numeric:tabular-nums}
.help-steps h3{margin:0 0 var(--mt-space-2)}
.help-article .help-update-steps{padding:0;list-style:none;margin-block:var(--mt-space-5)}
.help-update-steps li{display:grid;grid-template-columns:32px minmax(0,1fr);gap:var(--mt-space-4);padding-block:var(--mt-space-4);border-block-start:1px solid var(--mt-line)}
.help-update-steps li+li{margin:0}
.help-update-icon{display:flex;flex-direction:column;align-items:center;gap:var(--mt-space-2);color:var(--mt-deep);font-size:var(--mt-type-caption);font-variant-numeric:tabular-nums}
.help-methods{margin-block:var(--mt-space-5);border-block-end:1px solid var(--mt-line)}
.help-method{display:grid;grid-template-columns:32px minmax(0,1fr);gap:var(--mt-space-4);padding-block:var(--mt-space-5);border-block-start:1px solid var(--mt-line)}
.help-method-icon{color:var(--mt-deep);padding-top:2px}
.help-method h3{margin-top:0;color:var(--mt-ink)}
.help-platforms>div{padding:var(--mt-space-4);background:var(--mt-surface);border:1px solid var(--mt-line);border-radius:var(--mt-radius-inset)}
.help-inline-note{display:flex;align-items:flex-start;gap:var(--mt-space-3);margin-top:var(--mt-space-4)}
.help-inline-note>.phosphor-icon{margin-top:3px;color:var(--mt-deep)}
.help-disclosure summary{display:grid;grid-template-columns:20px minmax(0,1fr) 16px;align-items:start;gap:var(--mt-space-3);list-style:none}
.help-disclosure summary::-webkit-details-marker{display:none}
.help-disclosure-icon{color:var(--mt-deep);padding-top:1px}
.help-disclosure-chevron{padding-top:3px;color:var(--mt-paywall-secondary)}
.help-disclosure[open] .help-disclosure-chevron>.phosphor-icon{transform:rotate(90deg)}
@media(max-width:599px){
 .help-contents a{justify-content:flex-start;align-items:center;gap:var(--mt-space-2)}
 .help-section-icon{width:36px;height:36px}
 .help-article .help-steps{grid-template-columns:1fr;gap:var(--mt-space-3)}
 .help-steps li{padding:var(--mt-space-4)}
 .help-step-sign{margin-bottom:var(--mt-space-3)}
 .help-platforms>div{padding:var(--mt-space-4)}
 .help-method,.help-update-steps li{gap:var(--mt-space-3)}
}

#informationView .information-page.help-center,.help-center .help-reading{max-width:none}

.help-mcp-server{max-width:36rem;margin-block:var(--mt-space-4)}
.help-mcp-server label{display:block;margin-bottom:var(--mt-space-2);color:var(--mt-muted);font-size:var(--mt-type-caption)}
.help-mcp-server input{width:0;min-width:0;flex:1;border:0;background:transparent}
.help-mcp-server input:focus{outline:none}

.help-mcp-config{align-items:flex-start;margin-block:8px}
.help-mcp-config pre{flex:1;min-width:0;margin:0;padding-block:10px;white-space:pre-wrap;overflow-wrap:anywhere}
.help-mcp-config pre code{padding:0}


/* Source: policies/legal.css */
/* Source-backed policy v1.2.2 and contact reading experience. */
.legal-policy-page,.contact-page{max-width:920px;margin-inline:auto}
.legal-policy-body{max-width:78ch;line-height:1.76;overflow-wrap:anywhere}
.legal-policy-body h2{margin:2.4rem 0 .9rem;font-size:clamp(1.15rem,2.5vw,1.45rem);line-height:1.35}
.legal-policy-body h3{margin:1.5rem 0 .5rem;font-size:1.08rem;line-height:1.5}
.legal-policy-body p,.legal-policy-body ul,.legal-policy-body ol{margin:0 0 1rem}
.legal-policy-body ul,.legal-policy-body ol{padding-inline-start:1.5rem}
.legal-policy-body li{margin:0 0 .5rem;padding-inline-start:.15rem}
.legal-policy-body a,.contact-body a,.help-contact-link a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.legal-policy-body a:hover,.contact-body a:hover,.help-contact-link a:hover{text-decoration-thickness:2px}
.legal-policy-body a:focus-visible,.contact-body a:focus-visible,.help-contact-link a:focus-visible{outline:2px solid currentColor;outline-offset:4px;border-radius:3px}
.legal-draft-notice{font-size:.88rem;opacity:.85;max-width:75ch}
.contact-body{max-width:72ch}
.contact-body section{margin-bottom:1.9rem}
.contact-body section h2{margin-bottom:.45rem}
.contact-body section p{line-height:1.7}
.contact-email{display:inline-block;min-height:44px;padding:10px 0;overflow-wrap:anywhere;font-weight:600}
.contact-safe-note,.compare-plans-disclosure{line-height:1.68}
.compare-plans-disclosure{max-width:80ch;margin:1rem auto}
@media(max-width:600px){.legal-policy-body{font-size:.95rem;line-height:1.7}.legal-policy-body h2{margin-top:1.8rem}.contact-email{padding-block:12px}}


/* Credit-size comparisons are real tables; allow keyboard-accessible sideways scroll on narrow screens. */
.legal-table-scroll{max-width:100%;overflow-x:auto;margin:1.1rem 0 1.5rem;border:1px solid rgba(127,127,127,.3);border-radius:12px}
.legal-table-scroll:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.legal-policy-table{width:100%;min-width:390px;border-collapse:collapse;text-align:left;font-size:.93rem;line-height:1.55}
.legal-policy-table th,.legal-policy-table td{padding:.72rem .9rem;vertical-align:top;border-bottom:1px solid rgba(127,127,127,.18)}
.legal-policy-table th{font-weight:600;background:rgba(127,127,127,.07)}
.legal-policy-table tbody tr:last-child td{border-bottom:0}


/* Source: privacy-consent.css */
/* MakeTap Privacy Consent. Real product UI, isolated from page/theme defaults.
   Explicit ink/surface values prevent white-on-white regressions. */
.mt-privacy-consent{--pc-ink:#211b2b;--pc-muted:#645d6c;--pc-line:#e8e3ed;--pc-primary:var(--mt-primary,#7650ec);--pc-surface:#fff;color:var(--pc-ink);font-family:var(--mt-font-ui,Geist,Arial,sans-serif);font-size:14px;line-height:1.5}
.mt-privacy-consent [hidden]{display:none!important}
.mt-privacy-consent button,.mt-privacy-consent input{font-family:inherit;letter-spacing:normal}
.mt-privacy-consent button:focus-visible,.mt-privacy-consent a:focus-visible,.mt-privacy-consent input:focus-visible{outline:3px solid #9b78ed;outline-offset:3px}
.mt-privacy-notice{box-sizing:border-box;position:fixed;z-index:120;bottom:20px;right:20px;width:min(356px,calc(100vw - 40px));padding:21px 23px 15px;border:1px solid var(--pc-line);border-radius:25px;background:var(--pc-surface);color:var(--pc-ink);box-shadow:0 16px 55px rgba(37,22,52,.19);text-align:left}
.mt-privacy-copy{font-size:14px;line-height:1.64;color:var(--pc-ink);letter-spacing:0;margin:0}
.mt-privacy-copy a{color:var(--pc-ink);font-weight:550;text-decoration:underline;text-underline-offset:3px}
.mt-privacy-hint{font-size:12px;line-height:1.55;color:var(--pc-muted);margin:8px 0 0}
.mt-privacy-actions{display:grid;gap:8px;margin-top:16px}
.mt-privacy-primary{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;padding:12px 20px;border:1px solid var(--pc-primary);border-radius:999px;background:var(--pc-primary);color:#fff;font-size:14px;font-weight:650;line-height:1.3;text-align:center;cursor:pointer}
.mt-privacy-primary:hover:not(:disabled){background:#5f31c6;border-color:#5f31c6;color:#fff}
.mt-privacy-primary:disabled{opacity:.55;cursor:not-allowed}
.mt-privacy-link-button{display:flex;align-items:center;justify-content:center;width:100%;min-height:44px;padding:9px 12px;border:0;border-radius:12px;background:transparent;color:var(--pc-ink);font-size:13px;font-weight:580;cursor:pointer}
.mt-privacy-link-button:hover{background:#f6f2fb;color:var(--pc-ink)}
dialog.mt-privacy-dialog{box-sizing:border-box;position:fixed;inset:0;max-width:490px;width:calc(100% - 36px);max-height:min(660px,calc(100dvh - 38px),calc(var(--visible-height,100dvh) - 38px));margin:auto;padding:0;overflow:hidden;border:1px solid var(--pc-line,#e8e3ed);border-radius:25px;background:#fff;color:#211b2b;box-shadow:0 26px 85px rgba(16,12,26,.32);font-family:var(--mt-font-ui,Geist,Arial,sans-serif);font-size:14px;line-height:1.55}
dialog.mt-privacy-dialog::backdrop{background:rgba(20,16,30,.57)}
.mt-privacy-dialog[open]{display:flex;flex-direction:column}
.mt-privacy-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 24px 8px;flex-shrink:0}
.mt-privacy-dialog h2{font-size:19px;font-weight:700;line-height:1.3;color:#211b2b;letter-spacing:-.025em;margin:0}
.mt-privacy-close{display:grid;place-items:center;flex:0 0 auto;width:44px;height:44px;min-width:44px;min-height:44px;border:1px solid #e8e3ed;border-radius:50%;background:#fff;color:#3b3143;font-size:24px;line-height:1;cursor:pointer}
.mt-privacy-close:hover{background:#f5f2f9;color:#211b2b}
.mt-privacy-dialog-body{overflow-y:auto;overscroll-behavior:contain;padding:0 24px 6px;min-height:0;flex:1 1 auto}
.mt-privacy-intro{font-size:13px;line-height:1.6;color:#645d6c;margin:8px 0 15px}
.mt-privacy-choice{box-sizing:border-box;display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:17px 0;border-top:1px solid #e8e3ed;cursor:default;color:#211b2b}
.mt-privacy-choice>div{flex:1;min-width:0}
.mt-privacy-choice strong{display:block;font-size:15px;font-weight:690;color:#211b2b;line-height:1.4}
.mt-privacy-choice p{font-size:12.5px;line-height:1.6;color:#645d6c;margin:5px 0 0}
.mt-privacy-always{flex:0 0 auto;white-space:nowrap;font-size:11px;font-weight:600;border-radius:999px;padding:5px 10px;background:#efe9fa;color:#5936a5}
.mt-privacy-choice input[role="switch"]{appearance:none;-webkit-appearance:none;position:relative;flex:0 0 auto;margin:1px 0 0;width:44px;height:28px;min-width:44px;border:1px solid #d7d2dd;border-radius:999px;background:#e5e3e9;cursor:pointer;transition:background .15s,border-color .15s;outline-offset:4px}
.mt-privacy-choice input[role="switch"]:after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.2);transition:transform .15s}
.mt-privacy-choice input[role="switch"]:checked{background:#7448db;border-color:#7448db}
.mt-privacy-choice input[role="switch"]:checked:after{transform:translateX(16px)}
.mt-privacy-choice input[role="switch"]:disabled{opacity:.55;cursor:not-allowed}
.mt-privacy-dialog-foot{flex:0 0 auto;padding:12px 24px max(20px,env(safe-area-inset-bottom));border-top:1px solid #eee9f3;background:#fff}
.mt-privacy-dialog-foot p{min-height:0;margin:0 0 6px;font-size:12px;color:#655c70;line-height:1.45}
.mt-privacy-dialog-foot p:empty{display:none}
.mt-privacy-dialog-foot p[data-error=true]{color:#aa3151}
.mt-privacy-policy-open{min-height:44px;display:inline-flex;align-items:center;border:0;border-radius:10px;padding:9px 12px;color:#5c32b9;background:#f3eafb;cursor:pointer;font-size:13px;font-weight:600;margin-top:12px}
.mt-privacy-policy-open:hover{background:#e9ddfa;color:#4e25a2}
@media(max-width:620px){
 .mt-privacy-notice{left:0;right:0;bottom:0;width:100%;max-width:none;padding:20px 21px max(12px,env(safe-area-inset-bottom));border-radius:24px 24px 0 0;border-width:1px 0 0;box-shadow:0 -10px 35px rgba(30,18,43,.14)}
 .mt-privacy-copy{font-size:14px;line-height:1.6}
 dialog.mt-privacy-dialog{inset:auto 0 0;width:100%;max-width:none;max-height:min(84dvh,calc(var(--visible-height,100dvh) - var(--keyboard-inset,0px) - 18px));margin:0;border-radius:24px 24px 0 0;border-width:1px 0 0}
 .mt-privacy-dialog-head{padding:16px 20px 6px}
 .mt-privacy-dialog-body{padding:0 20px 3px}
 .mt-privacy-dialog-foot{padding:12px 20px max(14px,env(safe-area-inset-bottom))}
}
@media(prefers-reduced-motion:reduce){.mt-privacy-consent *{transition:none!important}}

/* Explicit consent choices use the existing pill button family with equal targets.
   No modal or overlay blocks the underlying Studio. */
.mt-privacy-notice-head{display:flex;align-items:center;gap:8px;justify-content:space-between;margin:0 0 6px}
.mt-privacy-notice-title{color:var(--pc-ink);font-family:var(--mt-font-display,inherit);font-size:17px;font-weight:650;line-height:1.3;letter-spacing:0;margin:0}
.mt-privacy-dismiss{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;padding:0;border:0;border-radius:999px;background:transparent;color:var(--pc-ink);font-size:24px;line-height:1;cursor:pointer}
.mt-privacy-dismiss:hover:not(:disabled){background:#f0edf3}
.mt-privacy-secondary{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;padding:12px 20px;border:1px solid var(--pc-line);border-radius:999px;background:#f0edf3;color:var(--pc-ink);font-size:14px;font-weight:650;line-height:1.3;text-align:center;cursor:pointer}
.mt-privacy-secondary:hover:not(:disabled){background:#e8e3ed;color:var(--pc-ink)}
.mt-privacy-secondary:disabled,.mt-privacy-dismiss:disabled,.mt-privacy-link-button:disabled{opacity:.55;cursor:not-allowed}
.mt-privacy-links{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:0 8px;margin-top:4px}
.mt-privacy-links .mt-privacy-link-button,.mt-privacy-links a{display:inline-flex;align-items:center;justify-content:center;width:auto;min-height:44px;padding:4px 0;border-radius:0;background:transparent;color:var(--pc-ink);font-size:12px;font-weight:550;line-height:1.4;text-decoration:underline;text-underline-offset:3px}
.mt-privacy-links .mt-privacy-link-button:hover,.mt-privacy-links a:hover{color:var(--pc-primary);background:transparent}
.mt-privacy-hint:empty{display:none}
@media(max-width:620px){.mt-privacy-notice{max-height:calc(100dvh - 12px);overflow-y:auto;overscroll-behavior:contain}}


/* Source: hero-motion.css */
#homeView{--mt-hero-group-gap:24px;--mt-hero-orb-enter:1800ms;--mt-hero-description-delay:3400ms}
/* Prevent accidental title text selection only; retain semantic h1 and buttons. */
#heroTitle .hero-title-text{-webkit-user-select:none;user-select:none}

/* Official Phosphor Regular geometry, not hand-drawn stroke paths.
   Original responsive icon slots are preserved, so copy and hero do not shift. */
#homeView .hero-sketch.hero-eyebrow-icon{fill:currentColor;stroke:none;stroke-width:0}
/* Requested: prevent accidental selection of the hero description only. */
#homeView .hero-description{-webkit-user-select:none;user-select:none}
/* Button labels stay unselectable without intercepting pointer or keyboard input. */
button,button *,[role="button"],[role="button"] *,a.btn,a.btn *,.site-header a[href],.site-header a[href] *{-webkit-user-select:none;user-select:none}
/* Preserve selection and editing if a custom control contains editable content. */
input:not([type="button"]):not([type="submit"]):not([type="reset"]),textarea,[contenteditable="true"],[contenteditable="true"] *{-webkit-user-select:text;user-select:text}

/* One-time entrance. No permanent filter or transform is left on text. */
.hero-entry-word{display:inline-block}
#homeView .hero-sketch .idea-rays{stroke:currentColor;stroke-width:12;fill:none}



/* Optical balance: shrink the hand artwork, retain its original inline slot. */
#homeView .hero-sketch-tap.hero-eyebrow-icon{transform:scale(.86);transform-origin:center}

/* Keep eyebrow and title together; mirror the title-to-description 24px gap. */
#homeView .hero-reading-stack{width:100%;display:flex;flex-direction:column;align-items:center;gap:var(--mt-hero-group-gap,24px);margin:0;justify-content:center}
#homeView .hero-reading-stack .hero-message{margin:0}
#homeView .hero-sketch.hero-eyebrow-icon[data-icon-name="lightbulb"]{transform:scale(1.14);transform-origin:center}
#homeView .hero-sketch-tap.hero-eyebrow-icon{transform:scale(.74);transform-origin:center}

/* Only JS sets this short-lived flag. Without JS every word stays readable. */
@media(prefers-reduced-motion:no-preference){
 .motion-ready #homeView .hero[data-hero-preparing="true"] :is(.hero-eyebrow,.hero-aura,.hero-description){opacity:0}
}

/* Stable reading/action tracks survive hidden-view restoration without flex auto margins. */
#homeView .hero-copy{display:grid;grid-template-rows:minmax(min-content,1fr) auto;justify-items:center;align-items:stretch}
#homeView .hero-reading-stack{grid-row:1}
#homeView .hero-action-group{grid-row:2}


/* Source: mobile-home.css */
/* Homepage comparison uses one DOM hierarchy at every size. Load after visual-refresh.css. */
#homeView #pricingGrid{display:block}
#homeView .plan-comparison{max-width:800px;margin:0 auto;border:1px solid var(--line);border-radius:24px;background:var(--mt-surface,#fff);padding:24px}
.plan-comparison-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.plan-column{min-width:0;text-align:center;padding:8px 0}
.plan-column+.plan-column{border-left:1px solid var(--line)}
.plan-column h3{font-size:var(--mt-type-h3);margin:0 0 16px;overflow-wrap:anywhere}
.plan-capacity,.plan-cost{display:flex;flex-direction:column;align-items:center;gap:4px;margin:0 0 16px}
.plan-capacity strong{font:500 40px/1.1 var(--font-display)}
.plan-cost strong{font:600 20px/1.4 var(--font-body);font-variant-numeric:tabular-nums}
.plan-capacity span,.plan-cost span,.plan-state{font-size:13px;line-height:1.5;color:var(--mt-paywall-secondary,#665F70);overflow-wrap:anywhere}
.plan-shared{margin:24px 0 8px;padding-top:24px;border-top:1px solid var(--line);text-align:center}
.plan-preview-detail{margin:0;color:var(--mt-paywall-secondary,#665F70);font-size:13px;line-height:1.6;text-align:center}
.plan-comparison-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;margin-top:24px}
.plan-comparison-actions .btn{min-height:44px;white-space:normal}
#homeView .help-home-link a{display:inline-flex;align-items:center;min-height:44px}
@media(max-width:600px){
 #homeView .hero{padding-bottom:24px}
 #homeView .hero-copy{min-height:calc(100vh - 72px - 64px - 48px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));min-height:calc(100svh - 72px - 64px - 48px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}
 /* Lower only the visual center, never intercepting the product controls. */
 #homeView .hero-aura,#homeView .orb-keyboard-trigger{top:48%}
 #homeView #pricingGrid .plan-comparison{padding:16px}
 .plan-comparison-grid{gap:8px}
 .plan-column h3{font-size:18px}
 .plan-capacity strong{font-size:34px}
 .plan-capacity span,.plan-cost span,.plan-state{font-size:13px;padding-inline:2px}
 .plan-comparison-actions .btn{flex:1 1 120px}
 .mobile-dock{min-height:calc(var(--mt-dock-min-height) + env(safe-area-inset-bottom,0px));padding-top:4px;padding-bottom:calc(4px + env(safe-area-inset-bottom,0px));box-shadow:none;background:rgba(255,255,255,.97)}
 .mobile-dock button,.mobile-dock .dock-create{min-height:48px;gap:2px;font-size:var(--mt-dock-label-size);border-radius:10px}
 .mobile-dock [data-icon],.mobile-dock [data-icon] svg{width:20px;height:20px}
 .mobile-dock button.active{background:transparent;color:var(--accent-dark)}
}
@media(prefers-reduced-motion:reduce){.mobile-dock button.active [data-icon]{animation:none}}
/* Equal caption tracks keep all prices aligned when mobile labels wrap. */
.plan-capacity>span{min-height:3em;display:flex;align-items:center;justify-content:center}

/* Phone plans are separate vertical cards, never squeezed into columns. */
@media(max-width:600px){
 #homeView #pricingGrid .plan-comparison{padding:0;border:0;background:transparent}
 .plan-comparison-grid{grid-template-columns:minmax(0,1fr);gap:8px}
 .plan-column,.plan-column+.plan-column{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:4px 12px;text-align:left;padding:12px 16px;border:1px solid var(--line);border-radius:var(--mt-radius-inset);background:var(--mt-surface)}
 .plan-column h3{grid-column:1;grid-row:1;margin:0;font-size:18px;line-height:1.4}
 .plan-column .plan-capacity{grid-column:1;grid-row:2;flex-direction:row;justify-content:flex-start;align-items:baseline;gap:4px;margin:0}
 .plan-column .plan-capacity strong{font:600 15px/1.5 var(--font-body)}
 .plan-column .plan-capacity span{padding:0;text-align:left}
 .plan-column .plan-cost{grid-column:2;grid-row:1 / span 2;align-items:flex-end;justify-content:center;gap:0;margin:0;text-align:right}
 .plan-column .plan-cost strong{font-size:22px;line-height:1.3}
 .plan-column .plan-cost span{padding:0}
 .plan-column .plan-state{grid-column:1 / -1;padding:0;font-size:13px;line-height:1.5}
 .plan-shared{margin-top:16px;padding-top:16px;font-size:14px;line-height:1.5}
 .plan-comparison-actions{margin-top:16px}
 #homeView .pricing-title{margin-bottom:20px}
 .plan-capacity>span{min-height:0}
 #homeView .hero #heroTitle{font-size:clamp(26px,7.8vw,44px)}
 #homeView .hero #heroTitle>.hero-title-line{gap:8px}
 #homeView .hero-title-text{white-space:nowrap}
 html:lang(zh-CN) #homeView .hero #heroTitle{font-size:clamp(26px,8.2vw,44px)}
}

/* A short phone must compare all three plans before the fixed dock.
   Keep the existing type sizes and natural row heights. The repeated intro
   follows the comparison here instead of spending its first viewport. */
@media(max-width:600px) and (max-height:700px){
 #homeView #pricing{padding-top:var(--mt-space-6)}
 #homeView #pricing>.wrap{display:flex;flex-direction:column}
 #homeView #pricing .pricing-title{display:contents}
 #homeView #pricing .pricing-title h2{order:0;margin:0 0 var(--mt-space-3)}
 #homeView #pricingGrid{order:1;width:100%}
 #homeView #pricing .pricing-title>p{order:2;margin:var(--mt-space-4) 0 0}
 #homeView #pricing>.wrap>.price-footnote{order:3;display:block}
}

/* Preserve the phone silhouette: the old 368px cap overrode its aspect ratio. */
#homeView .process-visual .walkthrough-phone{height:auto!important;max-height:none;aspect-ratio:1/2.14;flex-shrink:0}
/* One genuine capture, fully visible and without an empty horizontal scroller. */
#sampleView .sample-screenshots{justify-content:center;overflow:visible;margin-inline:0;max-width:100%;padding-inline:0}
#sampleView .sample-shot{max-width:100%;min-width:0}
#sampleView .sample-shot img{max-width:100%;height:auto;max-height:620px;object-fit:contain}

/* 2026-11-10: the illustration uses flow tracks, not a dock over App labels. */
#homeView .process-visual[data-process-step="2"]{height:auto;min-height:0;display:flex;flex-direction:column;gap:24px;padding:24px 16px}
#homeView .process-visual .walkthrough-phone{display:flex;flex-direction:column;padding:0 14px;max-width:100%;overflow:visible}
#homeView .walkthrough-phone .device-status{height:32px;flex:none}
#homeView .walkthrough-phone .phone-home-copy{margin:16px 0 0}
#homeView .phone-home-copy h4{font-size:20px;line-height:1.3;letter-spacing:var(--mt-track-h3);margin:8px 0}
#homeView .phone-home-copy p{font-size:8px;line-height:1.5;margin:0}
#homeView .walkthrough-phone .phone-icon-grid{margin:20px 0 0;gap:12px 8px}
#homeView .phone-icon-grid>div{gap:4px;font-size:7px;line-height:1.4}
#homeView .phone-icon-grid img{width:36px;height:36px;margin:0;border-radius:10px;flex:none;box-shadow:none}
#homeView .phone-app-label{display:block;min-height:2.8em;overflow-wrap:anywhere}
#homeView .walkthrough-phone .phone-page-dots{margin:12px 0;line-height:1.5}
#homeView .walkthrough-phone .device-dock{position:static;margin:auto -3px 16px;padding:10px 8px;gap:8px;border-radius:16px;flex:none}
#homeView .device-dock img{width:32px;height:32px;border-radius:9px}
#homeView .process-visual[data-process-step="2"] .walkthrough-save{position:static;transform:none;margin:0;max-width:100%;white-space:normal;min-height:48px;box-shadow:none}
#homeView .process-visual[data-process-step="2"] .visual-caption{position:static}

/* Highlight the usable starting point, never an invented paid recommendation. */
#homeView .plan-column--available{background:var(--mt-soft);border-color:var(--mt-primary)}
#homeView .plan-column--available h3,#homeView .plan-column--available .plan-cost strong{color:var(--mt-deep)}
#homeView .plan-column--available .plan-state{color:var(--mt-deep);font-weight:600}
#homeView .plan-details{display:inline-flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;min-width:44px;width:100%;padding:0;border:0;background:transparent;color:inherit;font:inherit;text-align:inherit;cursor:pointer;border-radius:var(--mt-radius-xs)}
#homeView .plan-details svg{flex:none;color:var(--mt-primary)}
#homeView .plan-column{transition:border-color var(--mt-hover) ease,background var(--mt-hover) ease}
#homeView .plan-details:focus-visible,#homeView .walkthrough-save:focus-visible{outline:3px solid var(--mt-focus);outline-offset:3px}
#homeView .plan-details:active{background:var(--mt-soft);color:var(--mt-deep)}
#homeView .walkthrough-save{transition:background var(--mt-hover) ease,transform var(--mt-press) var(--mt-ease)}
#homeView .process-visual[data-process-step="2"] .walkthrough-save:active{transform:scale(.98);background:var(--mt-deep)}
@media(min-width:601px){
 #homeView .plan-column{padding:16px;border:1px solid var(--line);border-radius:var(--mt-radius-inset)}
 #homeView .plan-column--available{border-color:var(--mt-primary)}
 #homeView .plan-details{text-align:left}
}
@media(max-width:600px){
 /* Expand the title's hit area without adding height to compact comparison rows. */
 #homeView .plan-details{min-height:44px;margin-block:-10px;width:auto;max-width:100%}
 #homeView .plan-details svg{width:14px;height:14px}
}
@media(hover:hover) and (pointer:fine){
 #homeView .plan-column:hover,#homeView .plan-column:focus-within{border-color:var(--mt-primary);background:var(--mt-soft)}
 #homeView .plan-details:hover{color:var(--mt-deep)}
 #homeView .process-visual[data-process-step="2"] .walkthrough-save:hover{background:var(--mt-deep);transform:translateY(-2px)}
 #homeView .process-visual[data-process-step="2"] .walkthrough-save:active{transform:scale(.98)}
}
@media(prefers-reduced-motion:reduce){
 #homeView .plan-column,#homeView .plan-details,#homeView .walkthrough-save{transition:none!important}
 #homeView .process-visual[data-process-step="2"] .walkthrough-save:hover,#homeView .process-visual[data-process-step="2"] .walkthrough-save:active{transform:none}
}


/* Source: mobile-studio.css */
/* Studio refinements. Reuse the shared MakeTap tokens and button family. */
/* Personalization is one page surface, not a card below the title. */
body[data-view="create"][data-step="3"]{background:var(--mt-surface)}
body[data-view="create"][data-step="3"] #studioView{background:var(--mt-surface)}
#studioView .personalize-workspace{border:0;border-radius:0;background:transparent;box-shadow:none}
#studioView .personalize-workspace .workspace-content{padding:0}
#studioView .personalize-identity{display:grid;grid-template-columns:minmax(100px,160px) minmax(0,360px);justify-content:center;align-items:center;gap:var(--mt-space-6);padding-block:var(--mt-space-5) var(--mt-space-7)}
#studioView .personalize-app-preview{display:flex;flex-direction:column;align-items:center;gap:var(--mt-space-3);min-width:0;text-align:center}
#studioView .personalize-app-preview img{display:block;width:88px;height:88px;object-fit:cover;border-radius:var(--mt-radius-card)}
#studioView .personalize-app-preview span{width:100%;font-size:var(--mt-type-ui);line-height:var(--mt-leading-ui);overflow-wrap:anywhere}
#studioView .personalize-name{min-width:0;width:100%}
#studioView .personalize-name .field-help{margin-block:var(--mt-space-2) 0}
#studioView .personalize-settings{max-width:552px;margin-inline:auto}
#studioView .personalize-settings .icon-picker{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:var(--mt-space-3);margin-bottom:var(--mt-space-5)}
#studioView .personalize-settings .icon-choice{width:100%;min-width:44px;height:auto;aspect-ratio:1;padding:var(--mt-space-1);border-radius:var(--mt-radius-inset)}
#studioView .personalize-settings .icon-choice img{width:100%;height:auto;aspect-ratio:1;object-fit:cover}
#studioView .personalize-settings .color-picker{display:flex;gap:var(--mt-space-3);flex-wrap:wrap}
#studioView .personalize-settings .color-swatch{width:44px;height:44px;flex:none}
#studioView .personalize-settings .field-block{margin:0}
#studioView .personalize-settings [hidden],#libraryView [hidden]{display:none!important}
#studioView .personalize-workspace .workspace-footer{background:transparent}
#libraryView .library-account-summary:empty{display:none}
#libraryView .library-account-summary,#libraryView .library-saved-summary{padding:var(--mt-space-5);margin-bottom:var(--mt-space-5);border-radius:var(--mt-radius-card);background:var(--mt-soft);display:flex;gap:var(--mt-space-4);align-items:center;justify-content:space-between;flex-wrap:wrap}
#libraryView :is(.library-account-summary,.library-saved-summary) p{margin-block:var(--mt-space-2);max-width:66ch}
#libraryView .library-card-actions{flex-wrap:wrap}
#libraryView .library-card-actions .btn{white-space:normal;min-width:0}
#libraryView .library-card-top>div{min-width:0}
#libraryView .library-card-top h3{max-width:none;overflow-wrap:anywhere;white-space:normal}
:is(#studioView,#libraryView) :is(button,a):focus:not(:focus-visible){outline:none}
:is(#studioView,#libraryView) :is(button,a,input,select):focus-visible{outline:3px solid var(--mt-focus);outline-offset:var(--mt-focus-offset)}
@media(hover:none){
 :is(#studioView,#libraryView) .btn:hover:not(:active){transform:none;box-shadow:none}
 :is(#studioView,#libraryView) .btn.primary:hover:not(:active){background:var(--mt-primary)}
 :is(#studioView,#libraryView) .btn.secondary:hover:not(:active){background:var(--mt-surface)}
 :is(#studioView,#libraryView) .btn.ghost:hover:not(:active){background:transparent}
}
@media(max-width:599px){
 #studioView .personalize-identity{grid-template-columns:88px minmax(0,1fr);gap:var(--mt-space-4);padding-block:var(--mt-space-3) var(--mt-space-6)}
 #studioView .personalize-app-preview img{width:72px;height:72px;border-radius:var(--mt-radius-inset)}
 #studioView .personalize-name .text-input{min-height:var(--mt-field-height);font-size:16px}
 #studioView .personalize-settings .icon-picker{gap:var(--mt-space-2)}
 #studioView .personalize-settings .icon-choice{min-width:44px}
 #libraryView .library-account-summary,#libraryView .library-saved-summary{padding:var(--mt-space-4)}
}
@media(max-width:379px){
 #studioView .personalize-settings .icon-picker{grid-template-columns:repeat(3,minmax(0,1fr))}
 #studioView .personalize-settings .icon-choice{max-width:72px;justify-self:center}
}
#studioView .intake-actions{flex-wrap:wrap}
#studioView .intake-format{max-width:52ch;margin-inline:auto;line-height:var(--mt-leading-caption);overflow-wrap:anywhere}
#libraryView :is(.library-account-summary,.library-saved-summary)>div{flex:1 1 200px;min-width:0}
#libraryView :is(.library-account-summary,.library-saved-summary) :is(strong,p,small){overflow-wrap:anywhere}
#libraryView .library-account-summary small{display:block;color:var(--mt-muted);line-height:var(--mt-leading-caption)}
#libraryView .library-account-summary>.btn,#libraryView .library-saved-summary>.btn{flex:0 1 auto;white-space:normal}
#libraryView .library-account-summary>.text-link{min-height:44px;display:inline-flex;align-items:center}
#libraryView .library-saved-summary{background:var(--mt-surface);border:1px solid var(--mt-line)}
.saved-check{display:inline-flex;flex:none;align-items:center;justify-content:center;width:var(--mt-save-mark-size);height:var(--mt-save-mark-size);border-radius:50%;color:var(--mt-surface);background:var(--mt-orchid-bloom);animation:studio-save-reveal var(--mt-reveal) var(--mt-ease-out) both}
#installSavedNote{padding:var(--mt-space-3) var(--mt-space-4);border-radius:var(--mt-radius-inset);background:var(--mt-success-bg);color:var(--mt-success);line-height:var(--mt-leading-ui);overflow-wrap:anywhere}
#installSavedNote[hidden]{display:none}
@keyframes studio-save-reveal{from{opacity:0;transform:scale(.9)}to{opacity:1;transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.saved-check{animation:none}}
.saved-check{background:linear-gradient(135deg,var(--mt-primary),var(--mt-deep))}
@media(hover:none){
 #studioView .color-swatch:hover::before{transform:none}
 :is(#studioView,#libraryView) .icon-button:hover:not(:active){transform:none;background:var(--mt-surface)}
}

#installSavedNote:not([hidden]){display:flex;align-items:center;gap:var(--mt-space-3);margin:var(--mt-space-4) var(--mt-space-5) 0;background:var(--mt-soft);color:var(--mt-ink)}
#installSavedNote p{font-size:var(--mt-type-caption);line-height:var(--mt-leading-caption);margin-top:var(--mt-space-1)}

/* Keep account status useful without pushing the user's Apps off the phone. */
#libraryView .library-allowance-actions{display:flex;align-items:center;gap:var(--mt-space-3);flex:0 1 auto}
#libraryView .library-allowance-actions .btn{white-space:nowrap}
#libraryView .library-allowance-actions .text-link{min-height:44px;display:inline-flex;align-items:center}
#libraryView .library-allowance-note{flex-basis:100%}
@media(max-width:599px){
 #libraryView .library-head{margin-bottom:var(--mt-space-4)}
 #libraryView .library-account-summary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:var(--mt-space-2) var(--mt-space-3);padding:var(--mt-space-3);margin-bottom:var(--mt-space-3);border-radius:var(--mt-radius-inset)}
 #libraryView .library-allowance-copy{min-width:0}
 #libraryView .library-allowance-copy strong{font-size:var(--mt-type-caption);line-height:var(--mt-leading-caption)}
 #libraryView .library-allowance-copy p{font-size:var(--mt-type-caption);line-height:var(--mt-leading-caption);margin:var(--mt-space-1) 0 0}
 #libraryView .library-allowance-actions{flex-direction:column;gap:var(--mt-space-1)}
 #libraryView .library-allowance-actions .btn{padding-inline:var(--mt-space-3);font-size:var(--mt-type-caption)}
 #libraryView .library-allowance-note{grid-column:1/-1;font-size:var(--mt-type-caption)}
 #libraryView .library-saved-summary{flex-wrap:nowrap;gap:var(--mt-space-2);padding:var(--mt-space-3);margin-bottom:var(--mt-space-3);border-radius:var(--mt-radius-inset)}
 #libraryView .library-saved-summary .saved-check{width:var(--mt-save-mark-compact);height:var(--mt-save-mark-compact)}
 #libraryView .library-saved-summary>div{flex:1;min-width:0;font-size:var(--mt-type-caption);line-height:var(--mt-leading-caption)}
 #libraryView .library-saved-summary p{display:none}
 #libraryView .library-card-actions [data-action="install"]{white-space:nowrap}
}

/* Product naming and icon upload; ellipsis follows available pixels. */
#customNamePreview{display:block;max-width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.personalize-app-preview{min-width:0;overflow:hidden}
#uploadIconPanel .icon-upload-cta{max-width:100%;min-height:var(--mt-button-height);margin-block:0 var(--mt-space-2);white-space:normal;text-align:left}
.icon-prompt textarea{display:block;width:100%;min-height:160px;margin-block:12px;padding:12px;font:inherit;resize:vertical}
#studioView .creation-back{min-width:44px;min-height:52px;flex:0 0 44px}
@media(max-width:600px){
 #studioView .creation-action-bar--preview{gap:8px}
 #studioView .creation-action-bar--preview>.btn{min-height:52px;padding-inline:8px;font-size:13px}
 #studioView .creation-action-bar--preview>.clean-open{white-space:nowrap}
 #studioView .creation-action-bar--preview>.clean-open>span{white-space:nowrap;overflow-wrap:normal}
 #studioView .immersive-preview-footer:has(.clean-open){grid-template-columns:44px minmax(0,1fr) minmax(0,1fr)}
}

/* Icon preparation is secondary to the single Save action. */
#uploadIconPanel .icon-upload-cta{background:var(--mt-page);color:var(--mt-ink);border-color:var(--mt-line)}
#uploadIconPanel .icon-upload-cta:hover{background:var(--mt-surface);box-shadow:none}
.icon-prompt{margin-top:var(--mt-space-5)}
.icon-prompt summary,.zip-icon-options summary{min-height:var(--mt-target-min);padding-block:var(--mt-space-3);cursor:pointer}
.icon-prompt textarea{background:var(--mt-page);color:var(--mt-paywall-secondary);border:1px solid var(--mt-line);border-radius:var(--mt-radius-md);font-size:var(--mt-type-caption);line-height:var(--mt-leading-body)}
.icon-prompt [role="status"]{color:var(--mt-error);font-size:var(--mt-type-caption);margin-top:var(--mt-space-2)}
.zip-icon-list{display:grid;gap:var(--mt-space-2)}
.zip-icon-list .btn{white-space:normal;overflow-wrap:anywhere;min-width:0}
#studioView h1.customize-pointer-arrival:focus{outline:none}
#studioView h1:not(.customize-pointer-arrival):focus-visible{outline:3px solid var(--mt-focus);outline-offset:var(--mt-focus-offset)}

/* Flat icon tabs: one baseline, no nested card or raised selected surface. */
#studioView .icon-mode-tabs{display:flex;gap:0;flex-wrap:nowrap;margin:0;border-bottom:1px solid var(--mt-line)}
#studioView .icon-mode-tab{appearance:none;position:relative;flex:1;min-width:0;min-height:52px;padding:var(--mt-space-3);border:0;border-radius:0;background:transparent;color:var(--mt-paywall-secondary);font:var(--mt-shell-ui-weight,600) var(--mt-type-ui)/var(--mt-leading-ui) var(--mt-font-ui);white-space:normal;cursor:pointer;transition:background var(--mt-hover) ease,color var(--mt-hover) ease}
#studioView .icon-mode-tab[aria-selected="true"]{color:var(--mt-primary)}
#studioView .icon-mode-tab[aria-selected="true"]::after{content:"";position:absolute;inset:auto var(--mt-space-3) 0;height:3px;border-radius:3px;background:currentColor}
#studioView .personalize-settings [role="tabpanel"]{padding:var(--mt-space-5) 0 0;background:transparent;border:0;border-radius:0}

#studioView .icon-prompt{margin-top:var(--mt-space-5);border-top:1px solid var(--mt-line)}
#studioView .icon-prompt summary{font-weight:var(--mt-shell-ui-weight);color:var(--mt-ink)}
#studioView .icon-prompt .field-help{color:var(--mt-paywall-secondary);font-size:var(--mt-type-ui);line-height:var(--mt-leading-body)}
#studioView .icon-prompt textarea{min-height:240px;color:var(--mt-ink);font-size:var(--mt-type-ui);line-height:var(--mt-leading-body)}
/* Approximation of a 60px shortcut with a 90px label at 12.5px type.
   Scale geometry together. Browser ellipsis measures real glyph widths. */
#studioView .personalize-app-preview{--preview-icon:88px;width:calc(var(--preview-icon)*1.5);justify-self:center;overflow:visible}
#studioView .personalize-app-preview img{width:var(--preview-icon);height:var(--preview-icon)}
#studioView .personalize-app-preview span{width:100%;font-size:calc(var(--preview-icon)*.208333);line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:599px){
 #studioView .personalize-identity{grid-template-columns:108px minmax(0,1fr)}
 #studioView .personalize-app-preview{--preview-icon:72px}
 #studioView .personalize-settings [role="tabpanel"]{padding-top:var(--mt-space-4)}
 #studioView .personalize-settings .icon-picker{grid-template-columns:repeat(3,minmax(0,1fr))}
 #studioView .personalize-settings .icon-choice{max-width:72px;justify-self:center}
}
@media(max-width:379px){
 #studioView .personalize-identity{grid-template-columns:minmax(0,1fr)}
}
@media(hover:hover){#studioView .icon-mode-tab:hover{background:var(--mt-page)}}
@media(prefers-reduced-motion:no-preference){
 #studioView .personalize-settings [role="tabpanel"]:not([hidden]){animation:creation-panel-reveal var(--mt-reveal) var(--mt-ease-out) both}
 #studioView :is(.icon-choice,.color-swatch,.icon-upload-cta){transition:transform var(--mt-press) var(--mt-ease),border-color var(--mt-hover) ease,background var(--mt-hover) ease}
 #studioView :is(.icon-choice,.color-swatch,.icon-upload-cta):active:not(:disabled){transform:scale(.96)}
 #studioView .source-receipt{animation:creation-panel-reveal var(--mt-reveal) var(--mt-ease-out) both}
}
@keyframes creation-panel-reveal{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){#studioView .icon-mode-tab{transition:none}}
.zip-icon-thumb{width:32px;height:32px;flex:none;border-radius:var(--mt-radius-xs)}
.sample-icon-sheet{width:min(100%,480px);max-height:75dvh;margin:auto auto 0;padding:var(--mt-space-5);padding-bottom:max(var(--mt-space-5),env(safe-area-inset-bottom));border:1px solid var(--mt-line);border-radius:var(--mt-radius-card) var(--mt-radius-card) 0 0;background:var(--mt-surface);color:var(--mt-ink)}
.sample-icon-sheet::backdrop{background:#21192e66}
.sample-icon-sheet .icon-picker{margin-top:var(--mt-space-4)}

.sample-icon-header{display:flex;align-items:center;justify-content:space-between;gap:var(--mt-space-3)}
.sample-icon-header h2,.sample-icon-header form{margin:0}
.sample-icon-header h2:focus{outline:none}
#studioView .sample-icon-sheet .icon-picker{grid-template-columns:repeat(auto-fit,minmax(44px,1fr));gap:var(--mt-space-2);margin-bottom:0}
#studioView .sample-icon-sheet .icon-choice{display:grid;place-items:center;min-width:44px;min-height:44px;width:100%;height:44px;aspect-ratio:auto;background:#fff;color:var(--mt-ink);border:1px solid var(--mt-line)}
#studioView .sample-icon-sheet .icon-choice.selected{border-color:var(--mt-accent,#7650EC);color:var(--mt-accent,#7650EC)}
#studioView .sample-icon-trigger{width:100%;justify-content:flex-start}
#chooseIconPanel #colorField{margin-top:var(--mt-space-4)}

.sheet-close,.sample-icon-header .icon-button{min-width:44px;min-height:44px;flex:none}

.sheet-close,#studioView .sample-icon-header .icon-button{border:0;background:transparent;box-shadow:none}

#studioView [role="tabpanel"]:focus{outline:none}


/* Source: install-flow.css */
/* Install consent is one scrollable explanation and one persistent action. */
#installDialog[open]{display:flex;flex-direction:column;overflow:hidden}
#installDialog .dialog-header{flex:none}
#installDialog #installSavedNote{display:flex;align-items:center;gap:8px;flex:none;margin:0;padding:12px 24px;color:var(--mt-muted);font-size:var(--mt-type-caption);line-height:1.5;background:var(--mt-page);border:0;border-radius:0}
#installDialog #installSavedNote[hidden]{display:none}
#installDialog #installBody:has(.install-consent-layout){padding:0;display:flex;flex:1 1 auto;min-height:0;overflow:hidden}
.install-consent-layout{display:flex;flex-direction:column;min-height:0;width:100%}
.install-scroll{min-height:0;overflow:auto;overscroll-behavior:contain;padding:20px 24px}
.install-scroll:focus-visible{outline:3px solid var(--mt-primary);outline-offset:-3px}
#installDialog .install-consent{align-items:flex-start;margin:20px 0 8px;padding:16px;background:var(--mt-surface);border:1px solid var(--mt-line);border-radius:var(--mt-radius-inset);font-size:15px;line-height:1.5}
.install-action-footer{flex:none;padding:12px 24px max(16px,env(safe-area-inset-bottom,0px));border-top:1px solid var(--mt-line);background:var(--mt-surface)}
#installDialog .install-consent-hint{margin:0 0 8px;font-size:13px;line-height:1.45;color:var(--mt-muted)}
.install-action-footer .btn{min-height:48px}
.install-action-footer .inline-message{margin:8px 0 0;max-height:96px;overflow:auto}
.install-loading{display:flex;align-items:center;gap:12px;min-height:80px}
.install-action-footer .loading-spinner,.install-loading .loading-spinner{flex:none;border-top-color:currentColor}
@media(max-width:600px){
 #installDialog .dialog-header{padding:16px 20px 12px}
 #installDialog #installSavedNote{padding:8px 20px}
 .install-scroll{padding:16px 20px}
 .install-action-footer{padding:12px 20px max(16px,env(safe-area-inset-bottom,0px))}
 #installDialog .dialog-header h2{font-size:24px;line-height:1.25}
}
@media(prefers-reduced-motion:reduce){.install-loading .loading-spinner,.install-action-footer .loading-spinner{animation:none}}

/* A real link only: newly rendered results replay once, never review/loading. */
.install-link-result:not(.install-link-success) .install-ready-symbol{animation:none}
.install-link-success .install-ready-symbol{position:relative;color:var(--mt-success);background:var(--mt-success-bg)}
.install-link-success .install-ready-symbol::after{content:"";position:absolute;inset:-8px;border:2px solid var(--mt-success);border-radius:50%;opacity:0;pointer-events:none}
@media(prefers-reduced-motion:no-preference){
 .install-link-success .install-ready-symbol{animation:install-success-pop var(--mt-motion-shape) var(--mt-ease-out) both}
 .install-link-success .install-ready-symbol::after{animation:install-success-ring var(--mt-motion-shape) var(--mt-ease-out) var(--mt-motion-stagger) both}
 .install-link-success>.install-link-row{animation:install-success-reveal var(--mt-reveal) var(--mt-ease-out) var(--mt-motion-stagger) both}
}
@keyframes install-success-pop{0%{opacity:0;transform:scale(.7)}65%{opacity:1;transform:scale(1.08)}100%{opacity:1;transform:scale(1)}}
@keyframes install-success-ring{from{opacity:.35;transform:scale(.8)}to{opacity:0;transform:scale(1.3)}}
@keyframes install-success-reveal{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}


/* Source: mcp-handoff.css */
/* Private MCP draft arrival is a guarded transition, not an installation claim. */
.mcp-draft-handoff[hidden]{display:none!important}
.mcp-draft-handoff{position:fixed;inset:0;z-index:400;display:grid;place-items:center;box-sizing:border-box;
  padding:max(20px,env(safe-area-inset-top,0px)) 20px max(20px,env(safe-area-inset-bottom,0px));
  background:rgba(28,22,34,.36);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
  overscroll-behavior:contain;touch-action:manipulation}
.mcp-draft-handoff-panel{box-sizing:border-box;width:min(360px,100%);padding:32px 24px;
  border-radius:var(--mt-radius-card);background:var(--mt-surface);box-shadow:0 20px 56px rgba(33,25,46,.16);
  text-align:center;color:var(--mt-ink);font-family:var(--mt-font-ui);outline-offset:3px}
.mcp-draft-handoff-spinner{display:block;width:32px;height:32px;margin:0 auto 22px;
  border:3px solid var(--mt-soft);border-top-color:var(--mt-primary);border-radius:50%;
  animation:mcp-handoff-spin 850ms linear infinite}
.mcp-draft-handoff-panel h2{margin:0;font:600 21px/1.35 var(--mt-font-display);letter-spacing:0;overflow-wrap:anywhere}
.mcp-draft-handoff-panel p{margin:12px 0 0;color:var(--mt-muted);font:400 14px/1.6 var(--mt-font-ui)}
.mcp-draft-handoff-panel button{margin-top:20px;min-height:44px;max-width:100%}
.mcp-draft-handoff-panel button[hidden]{display:none!important}
@keyframes mcp-handoff-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.mcp-draft-handoff-spinner{animation:none;border-top-color:var(--mt-primary)}}


/* Source: install-qr.css */
.install-scan-dialog{box-sizing:border-box;width:min(28rem,calc(100vw - 32px));max-height:90dvh;overflow:auto;margin:auto;padding:20px 24px 24px;border:1px solid #e3dfea;border-radius:20px;background:white;color:#241c30;font-family:var(--mt-font-ui,system-ui)}
.install-scan-dialog::backdrop{background:#231c3060}
.install-scan-dialog>header{padding:0;margin:0;display:flex;align-items:center;justify-content:space-between;gap:12px}
.install-scan-dialog h2{margin:0;font-size:20px}
.install-scan-dialog header button{display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:inherit;cursor:pointer}
.publication-qr{text-align:center}
.publication-qr>img{display:block;object-fit:cover;width:48px;height:48px;border-radius:12px;margin:8px auto}
.publication-qr>h3{margin:0 0 8px;overflow-wrap:anywhere}
.publication-qr>p{margin:6px 0;line-height:1.45}
.publication-qr svg{display:block;width:min(224px,100%);height:auto;margin:8px auto;background:white}
.publication-qr small,.publication-qr time{display:block;overflow-wrap:anywhere;font-size:13px;line-height:1.5}


/* Source: library-ux.css */
/* Compact library hierarchy and an explicitly isolated payment UX rehearsal. */
#libraryView .library-head{gap:12px;align-items:center}
#libraryView .library-head>div{flex:1;min-width:0}
#libraryView .library-search-toggle{flex:none;margin-left:0;width:44px;height:44px}
#libraryView .library-search-panel:not([hidden]){display:flex;gap:8px;margin-bottom:16px}
#libraryView .library-search-panel input{min-width:0;flex:1}
#libraryView .library-account-summary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;background:transparent;border:1px solid var(--mt-line);border-radius:var(--mt-radius-inset);padding:16px;margin-bottom:24px}
#libraryView .library-allowance-copy{font-size:var(--mt-type-caption);line-height:var(--mt-leading-caption)}
#libraryView .library-allowance-copy p{margin:4px 0 0;color:var(--mt-paywall-secondary)}
#libraryView .library-allowance-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#libraryView .library-allowance-actions .btn{font-size:13px;min-height:44px;padding:8px 12px}
#libraryView .library-allowance-note{grid-column:1/-1;font-size:13px;color:var(--mt-paywall-secondary)}
#libraryView .library-demo-entry{grid-column:1/-1;justify-self:start;min-height:44px}
#libraryView .library-card-saved{display:flex;align-items:center;gap:8px;margin:0 18px 12px;color:var(--mt-success);font-size:13px;line-height:1.5}
#libraryView .library-card-top h3{white-space:normal;overflow-wrap:anywhere}
#libraryView .library-tools{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:24px;font-size:13px;color:var(--mt-paywall-secondary)}
#libraryView .library-tools button,#libraryView .library-tools select{min-height:44px}
#libraryView .library-tools label{display:flex;align-items:center;gap:8px}
.payment-demo{width:min(560px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--mt-line);border-radius:var(--mt-radius-card);background:var(--mt-surface);color:var(--mt-ink)}
.payment-demo[open]{display:flex;flex-direction:column}
.payment-demo::backdrop{background:rgba(28,22,34,.45)}
.payment-demo header,.payment-demo footer{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:16px 24px;flex:none}
.payment-demo header{justify-content:space-between}
.payment-demo h2{font:600 22px/1.3 var(--mt-font-ui);margin:0}
.payment-demo h3{font:600 20px/1.4 var(--mt-font-ui);margin:24px 0 16px}
.payment-demo p{font-size:14px;line-height:1.6}
.payment-demo-scroll{overflow:auto;padding:0 24px;overscroll-behavior:contain}
.payment-demo-notice{background:var(--mt-warning-bg);color:var(--mt-warning);padding:12px;border-radius:var(--mt-radius-inset)}
.payment-demo-plans{display:grid;gap:12px}
.payment-demo-plan{display:grid;grid-template-columns:1fr auto;text-align:left;gap:8px;padding:16px;border:1px solid var(--mt-line);border-radius:var(--mt-radius-inset);background:var(--mt-surface);color:var(--mt-ink);font:inherit;cursor:pointer}
.payment-demo-plan[aria-pressed=true]{border-color:var(--mt-primary);background:var(--mt-soft)}
.payment-demo-plan[aria-pressed=true] strong::before{content:'✓ ';color:var(--mt-primary)}
.payment-demo-plan small{grid-column:1/-1;font-size:13px;line-height:1.5;color:var(--mt-paywall-secondary)}
.payment-demo-plan:focus-visible{outline:3px solid var(--mt-focus);outline-offset:3px}
.payment-demo footer{padding-bottom:max(16px,env(safe-area-inset-bottom));border-top:1px solid var(--mt-line)}
.payment-demo footer button{flex:1 1 auto}
@media(max-width:599px){#libraryView .library-account-summary{margin-bottom:16px;padding:12px}.payment-demo header,.payment-demo footer{padding-inline:16px}.payment-demo-scroll{padding-inline:16px}.payment-demo-plan{grid-template-columns:1fr}.payment-demo-plan small{grid-column:auto}}

/* Account and local apps share the Library page in the v1.1 staging profile. */
#libraryView .library-account-hub{grid-template-columns:minmax(0,1fr);gap:var(--mt-space-3);background:var(--mt-surface)}
.library-account-hub h2{font:600 20px/1.35 var(--mt-font-ui);margin:0;width:fit-content;max-width:100%}
#libraryAccountIdentity{display:flex;justify-content:space-between;align-items:center;gap:var(--mt-space-3);flex-wrap:wrap;min-width:0}
.library-account-email{overflow-wrap:anywhere;font-weight:var(--mt-shell-ui-weight,600)}
.library-account-hub p{margin:0;font-size:var(--mt-type-ui);line-height:var(--mt-leading-body)}
.library-account-actions{display:flex;flex-wrap:wrap;gap:var(--mt-space-2)}
.library-account-billing:not([hidden]){display:grid;gap:var(--mt-space-3);min-width:0}
.billing-summary-stats{display:flex;align-items:baseline;gap:4px var(--mt-space-4);flex-wrap:wrap}
.library-account-billing :is(.billing-current-plan,.billing-account-notice){color:var(--mt-paywall-secondary)}
.library-account-billing .billing-snapshot h3{margin:var(--mt-space-1) 0;font-size:var(--mt-type-ui);line-height:var(--mt-leading-ui)}
.library-account-billing .billing-credit-details summary{min-height:var(--mt-target-min);padding-block:var(--mt-space-3);width:fit-content;cursor:pointer;color:var(--mt-deep)}
.library-account-billing .billing-purchases{margin:0;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}
.library-account-billing .billing-purchases button{display:block;text-align:center;text-wrap:balance}
.library-account-billing .billing-checkout-plan{white-space:nowrap}
.billing-purchase-option>.btn{width:100%}
.billing-purchase-option .billing-checkout-feedback{margin:var(--mt-space-2) 0 0}
.billing-purchase-option .billing-checkout-feedback[role=alert]{color:var(--mt-error)}
@media(max-width:599px){.library-account-billing .billing-checkout-feedback{scroll-margin-block-end:calc(var(--dock-height) + env(safe-area-inset-bottom,0px))}}
.library-account-billing :is(.btn,summary){max-width:100%;white-space:normal;overflow-wrap:anywhere}
.library-account-billing>[data-billing="refresh"]{justify-self:start;margin-block-start:var(--mt-space-4)}

/* The installation panel is a real bottom sheet, not a payment demo layout.
   Scope fixes by ID so inherited billing dialog widths cannot offset it. */
#stagingPublication{box-sizing:border-box;width:min(560px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);margin:auto;padding:0;overflow:hidden}
#stagingPublication[open]{display:flex;flex-direction:column;gap:0}
#stagingPublication>header{flex-wrap:nowrap;align-items:flex-start;padding:20px;gap:16px}
#stagingPublication h2{flex:1;min-width:0;margin:0;font-size:22px;line-height:1.28}
#stagingPublication h2:focus{outline:none}
#stagingPublication header>.text-link{flex:none;min-width:44px;min-height:44px;padding:0}
#stagingPublication .payment-demo-scroll{flex:1 1 auto;min-height:0;overflow:auto;padding:24px 20px 20px}
#stagingPublication .publication-test-label{margin:0 0 12px;color:var(--mt-muted);font-size:12px}
#stagingPublication .publication-app-name{margin:0 0 12px;font-size:20px;overflow-wrap:anywhere}
#stagingPublication .publication-cost{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 0 12px;padding:16px;background:var(--mt-soft);border-radius:var(--mt-radius-inset)}
#stagingPublication .publication-cost strong{font-size:28px;line-height:1.2;white-space:nowrap}
#stagingPublication .publication-cost small{font:500 14px/1.5 var(--mt-font-ui)}
#stagingPublication .publication-until{margin:12px 0 20px;color:var(--mt-muted)}
#stagingPublication .publication-until strong{color:var(--mt-ink);font-weight:500}
#stagingPublication .publication-details{margin-top:16px;border-top:1px solid var(--mt-line);padding-top:8px}
#stagingPublication summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-weight:500;color:var(--mt-deep)}
#stagingPublication .publication-details .btn{display:flex;width:100%;margin-top:8px}
#stagingPublication dl{margin:8px 0;font-size:14px}
#stagingPublication dl>div{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:8px 0}
#stagingPublication dt{color:var(--mt-muted)}
#stagingPublication dd{margin:0;text-align:end;overflow-wrap:anywhere}
#stagingPublication .publication-error{color:var(--mt-error);background:var(--mt-error-bg);border-radius:var(--mt-radius-md);padding:12px}
#stagingPublication .publication-progress{color:var(--mt-muted)}
#stagingPublication>footer{display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;padding:16px 20px max(20px,env(safe-area-inset-bottom,0px));gap:8px}
#stagingPublication>footer .btn{flex:none;width:100%;min-height:48px;white-space:normal}
.billing-credit-breakdown{margin:4px 0 12px;color:var(--mt-muted);font-size:14px;line-height:1.6}
@media(max-width:599px){#stagingPublication{inset:auto 0 0;box-sizing:border-box;margin:0;width:100%;max-width:100%;max-height:calc(100dvh - max(16px,env(safe-area-inset-top,0px)));border-radius:24px 24px 0 0;border-bottom:0}}
@media(max-width:359px){#stagingPublication>header{padding:16px}#stagingPublication h2{font-size:20px}#stagingPublication .payment-demo-scroll{padding-inline:16px}#stagingPublication>footer{padding-inline:16px}}


/* Source: payment-demo.css */
/* Isolated staging rehearsal: existing Orchid, spacing, type and button tokens. */
body.simulation-open{overflow:hidden}
.simulation-entry{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--mt-space-4);padding:var(--mt-space-5);margin-block:var(--mt-space-5);border:1px solid var(--mt-primary);border-radius:var(--mt-radius-inset);background:var(--mt-soft);color:var(--mt-ink);text-align:left}
.simulation-entry p{margin:4px 0 0;color:var(--mt-ink)}
.payment-simulation{width:min(960px,calc(var(--visible-width,100vw) - 32px));max-width:960px;max-height:calc(var(--visible-height,100dvh) - 32px);padding:0;border:1px solid var(--mt-line);border-radius:var(--mt-radius-card);background:var(--mt-surface);color:var(--mt-ink);overflow:hidden;font-family:var(--mt-font-ui);font-size:1rem;line-height:1.5}
.payment-simulation[open]{display:flex;flex-direction:column}
.payment-simulation::backdrop{background:rgba(28,22,34,.48)}
.payment-simulation *{box-sizing:border-box;min-width:0}
.payment-simulation button{white-space:normal;min-height:44px;max-width:100%;font-family:var(--mt-font-ui)}
.simulation-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:24px 32px 16px;flex-shrink:0}
.simulation-header h2{font-family:var(--mt-font-ui);font-size:1.375rem;line-height:1.3;margin:4px 0 0;font-weight:600}
.simulation-eyebrow{font-size:.8125rem;color:var(--mt-paywall-secondary);margin:0}
.simulation-header>button{flex-shrink:0;padding-inline:12px}
.simulation-notice{flex-shrink:0;padding:12px 32px;background:var(--mt-warning-bg);color:var(--mt-warning);font-weight:600;font-size:.9375rem}
.simulation-steps{display:flex;gap:16px;padding:16px 32px 0;flex-shrink:0;font-size:.8125rem;color:var(--mt-paywall-secondary)}
.simulation-steps span[aria-current]{color:var(--mt-deep);font-weight:600}
.simulation-scroll{padding:24px 32px;overflow:auto;overscroll-behavior:contain;min-height:0;scrollbar-gutter:stable}
.simulation-scroll>p:first-child{margin-top:0}
.simulation-plans{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.simulation-plan{padding:20px;border:1px solid var(--mt-line);border-radius:var(--mt-radius-inset);display:flex;flex-direction:column;gap:12px}
.simulation-plan h3{font-family:var(--mt-font-ui);font-size:1rem;margin:0}
.simulation-plan p{margin:0}
.simulation-price strong{font-family:var(--mt-font-display);font-size:2rem;line-height:1.2;font-weight:600}
.simulation-price span{font-size:.8125rem;color:var(--mt-paywall-secondary)}
.simulation-plan ul{padding-inline-start:18px;font-size:.875rem;margin:0 0 8px;flex:1}
.simulation-plan li+li{margin-top:8px}
.simulation-helper{font-size:.875rem;color:var(--mt-paywall-secondary);line-height:1.6}
.simulation-checkout{max-width:600px;margin-inline:auto}
.simulation-checkout h3,.simulation-result h3{font-size:1.5rem;margin:8px 0 24px;font-family:var(--mt-font-display)}
.simulation-summary{margin:0;border-block:1px solid var(--mt-line);padding-block:8px}
.simulation-summary>div{display:flex;justify-content:space-between;gap:16px;padding-block:8px}
.simulation-summary dd{margin:0;text-align:right;font-weight:600}
.simulation-info{padding:16px;border-radius:var(--mt-radius-inset);background:var(--mt-soft);font-size:.9375rem}
.simulation-outcomes{display:flex;flex-wrap:wrap;gap:12px;border:0;margin:24px 0 0;padding:0}
.simulation-outcomes legend{padding:0 0 12px;font-weight:600}
.simulation-live:empty{display:none}
.simulation-actions{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0 12px}
.simulation-result{max-width:600px;margin:16px auto 24px;padding:24px;border-radius:var(--mt-radius-inset);background:var(--mt-info-bg);color:var(--mt-ink)}
.simulation-result.is-success{background:var(--mt-success-bg)}
.simulation-account-head{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px;border-radius:var(--mt-radius-inset);background:var(--mt-soft)}
.simulation-account-head p{margin:0 0 8px;font-size:.9375rem}
.simulation-balance{font-family:var(--mt-font-display);font-size:3rem;line-height:1}
.simulation-section{margin-top:32px;padding-top:24px;border-top:1px solid var(--mt-line)}
.simulation-section h3{font-size:1.125rem;margin:0 0 12px;font-family:var(--mt-font-ui);font-weight:600}
.simulation-grants{padding:0;list-style:none}
.simulation-grants li{display:flex;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid var(--mt-line)}
.simulation-grants li>div{display:flex;flex-direction:column;gap:4px;font-size:.875rem}
.simulation-grants li>div:last-child{text-align:right;color:var(--mt-paywall-secondary)}
.simulation-status{font-weight:500;color:var(--mt-ink)}
.simulation-history{margin-top:24px}
.simulation-history summary{min-height:44px;padding-block:10px;cursor:pointer;font-weight:500}
.simulation-history ul{padding:0;list-style:none;font-size:.875rem}
.simulation-history li{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;padding-block:8px}
.simulation-time{margin-top:24px;font-size:.8125rem;color:var(--mt-paywall-secondary)}
.simulation-time p{margin:4px 0 0}
.simulation-feedback{padding:12px 16px;background:var(--mt-info-bg);color:var(--mt-info);border-radius:var(--mt-radius-sm)}
.simulation-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 32px max(16px,env(safe-area-inset-bottom));border-top:1px solid var(--mt-line);flex-shrink:0;background:var(--mt-surface)}
.simulation-footer>span{font-size:.8125rem;color:var(--mt-paywall-secondary)}
@media(max-width:767px){.simulation-plans{grid-template-columns:1fr}.simulation-plan{padding:20px}.simulation-plan ul{columns:1}.simulation-account-head{align-items:flex-start}.simulation-steps{gap:12px;font-size:.75rem}}
@media(max-width:599px){.payment-simulation{width:var(--visible-width,100vw);max-width:var(--visible-width,100vw);max-height:calc(var(--visible-height,100dvh) - 16px);margin:auto 0 0;border-radius:24px 24px 0 0}.simulation-header{padding:16px;gap:8px}.simulation-header h2{font-size:1.25rem}.simulation-header>button{font-size:.8125rem}.simulation-notice{padding:12px 16px}.simulation-steps{padding:12px 16px 0}.simulation-scroll{padding:20px 16px}.simulation-footer{padding:12px 16px max(12px,env(safe-area-inset-bottom))}.simulation-footer>span{font-size:.75rem}.simulation-footer>button{flex-shrink:0;font-size:.8125rem}.simulation-actions>.btn,.simulation-outcomes>.btn{flex:1 1 100%}.simulation-grants li{flex-direction:column;gap:8px}.simulation-grants li>div:last-child{text-align:left}.simulation-account-head{padding:16px;flex-wrap:wrap}.simulation-result{padding:20px 16px}.simulation-summary>div{flex-wrap:wrap}.simulation-summary dd{text-align:left}}
@media(max-height:500px){.simulation-header{padding-block:8px}.simulation-header .simulation-eyebrow,.simulation-steps{display:none}.simulation-notice{padding-block:8px}.simulation-footer{padding-block:8px}.payment-simulation{max-height:var(--visible-height,100dvh)}}

.payment-reminder {box-sizing:border-box;padding:var(--mt-space-4) var(--mt-space-5);margin-block:0 var(--mt-space-4);border:1px solid var(--mt-line);border-radius:var(--mt-radius-inset);background:var(--mt-surface);color:var(--mt-ink);text-align:start}
.payment-reminder header,.payment-reminder-actions {display:flex;align-items:center;gap:var(--mt-space-2)}
.payment-reminder header svg {color:var(--mt-muted)}
.payment-reminder p {margin:var(--mt-space-2) 0 var(--mt-space-3);color:var(--mt-muted);font-size:.875rem;line-height:1.5}
.payment-reminder-actions {flex-wrap:wrap}
.payment-reminder-actions button {min-height:44px}

.payment-reminder-progress {height:4px;margin-block:var(--mt-space-3);border-radius:99px;overflow:hidden;background:var(--mt-soft)}
.payment-reminder-progress span {display:block;width:50%;height:100%;border-radius:inherit;background:linear-gradient(90deg,transparent,var(--mt-primary),transparent);animation:payment-confirming 2.3s linear infinite}
@keyframes payment-confirming {from {transform:translateX(-100%)} to {transform:translateX(200%)}}
@media (prefers-reduced-motion:reduce) {.payment-reminder-progress span {width:100%;opacity:.4;animation:none}}


/* Source: components/homepage/home-pricing.css */
.home-pricing{margin-top:72px;padding-top:48px;border-top:1px solid var(--line);scroll-margin-top:100px}
.home-pricing-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:24px}
.home-pricing-heading h2{font:600 40px/1.16 var(--display);letter-spacing:-.035em}
.home-pricing-heading p{margin-top:11px;font-size:15px;line-height:1.6;color:var(--muted)}
.home-pricing-heading>.link-button{flex-shrink:0;font-size:13px}
.home-pricing-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid #ddd5e8;border-radius:16px;background:var(--surface);overflow:hidden}
.home-plan{display:flex;flex-direction:column;min-width:0;padding:24px}
.home-plan+.home-plan{border-left:1px solid #e6e0ed}
.home-plan--pack{background:#f9f6ff}
.home-plan-heading{display:grid;grid-template-columns:minmax(0,1fr) minmax(76px,auto);align-items:baseline;column-gap:12px;row-gap:6px}
.home-plan-name,.home-plan-price{display:contents}
.home-plan-heading h3{grid-column:1;grid-row:1;align-self:baseline;font:600 26px/1.18 var(--display);letter-spacing:-.035em;min-width:0;white-space:nowrap}
.home-plan-price strong{grid-column:2;grid-row:1;justify-self:end;align-self:baseline;font:500 38px/1.1 var(--display);letter-spacing:-.045em;font-variant-numeric:tabular-nums;white-space:nowrap}
.home-plan-price>span{grid-column:2;grid-row:2;justify-self:end;align-self:start;font-size:12px;line-height:1.5;color:var(--muted);white-space:normal;max-width:13ch;text-align:right;overflow-wrap:normal}
.home-plan-audience{grid-column:1;grid-row:2;align-self:start;font-size:12px;color:var(--muted);line-height:1.5;margin:0}
.home-plan-benefits{list-style:none;display:flex;flex-direction:column;gap:9px;padding:0;margin:20px 0 7px;font-size:13px;line-height:1.55}
.home-plan-benefits li{display:flex;align-items:flex-start;gap:9px}
.home-plan-benefits li>.ui-icon{color:var(--muted);margin-top:1px;flex:none}
.home-plan-benefits li:first-child>.ui-icon{color:var(--primary)}
.home-plan-benefits strong{font-weight:600}
.home-plan-details{border:0;margin-bottom:10px}
.home-plan-details>.mt-disclosure-trigger{min-height:44px;padding:7px 0;gap:6px;justify-content:flex-start;font-size:12px;font-weight:500;color:var(--muted)}
.home-plan-details>.mt-disclosure-trigger>span:first-child{flex:0 1 auto}
.home-plan-details>.mt-disclosure-trigger>.mt-control-icon{margin-left:0}
.home-plan-details>.mt-disclosure-trigger:hover{color:var(--primary)}
.home-plan-details .mt-disclosure-content{padding:1px 0 10px;font-size:12px;line-height:1.65}
.home-plan-details ul{list-style:none;padding:0;margin:0;border-top:1px solid var(--line)}
.home-plan-details li{display:flex;align-items:flex-start;gap:7px;padding:9px 0;border-bottom:1px solid var(--line);color:var(--ink)}
.home-plan-details li>.ui-icon{flex:none;color:var(--muted);margin-top:2px}
.home-plan-details .mt-disclosure-content>p{font-size:11px;line-height:1.7;color:var(--muted);margin:11px 0 0}
.home-plan>.button{width:100%;margin-top:auto}
.home-pricing-note{font-size:12px;line-height:1.7;color:var(--muted);max-width:760px;margin-top:17px}
@media(min-width:961px) and (max-width:1100px){
 .home-plan{padding:20px 17px}
 .home-plan-heading{column-gap:8px}
 .home-plan-heading h3{font-size:22px}
 .home-plan-price strong{font-size:32px}
 .home-plan-benefits{font-size:12px}
 .home-plan-audience,.home-plan-price>span{font-size:11px}
}
@media(min-width:761px) and (max-width:960px){
 .home-pricing-grid{grid-template-columns:1fr;max-width:560px;margin-inline:auto}
 .home-plan+.home-plan{border-left:0;border-top:1px solid #e1d9eb}
}
@media(max-width:760px){
 .home-pricing{margin-top:46px;padding-top:32px;scroll-margin-top:88px}
 .home-pricing-heading{display:block;margin-bottom:18px}
 .home-pricing-heading h2{font-size:34px;letter-spacing:-.035em}
 .home-pricing-heading p{font-size:14px;max-width:310px;margin-top:10px}
 .home-pricing-heading>.link-button{margin-top:5px}
 .home-pricing-grid{grid-template-columns:1fr;border-radius:14px}
 .home-plan{padding:20px}
 .home-plan+.home-plan{border-left:0;border-top:1px solid #e1d9eb}
 .home-plan-heading h3{font-size:25px}
 .home-plan-price strong{font-size:37px}
 .home-plan-price>span,.home-plan-audience{font-size:12px}
 .home-plan-benefits{font-size:13px;gap:8px;margin:18px 0 5px}
 .home-plan>.button{min-height:44px}
 .home-pricing-note{font-size:11px;margin-top:14px}
}
@media(max-width:380px){
 .home-plan{padding:18px 16px}
 .home-plan-heading{column-gap:10px}
 .home-plan-heading h3{font-size:24px}
 .home-plan-price strong{font-size:34px}
 .home-plan-price>span,.home-plan-audience{font-size:11px}
}


/* Source: components/homepage/creation-story.css */
.creation-story{display:grid;grid-template-columns:.9fr 1.1fr;grid-template-rows:auto 1fr;column-gap:72px;align-items:start;padding:68px 0;border-block:1px solid var(--line);scroll-margin-top:80px}
.creation-story-heading{padding-top:44px;max-width:460px}
.creation-story-heading h2{font:600 49px/1.13 var(--display);letter-spacing:-.045em;text-wrap:balance;margin:0}
.creation-story-word{display:inline-block}
.creation-story-heading p{margin:17px 0 0;color:var(--muted);font:400 16px/1.65 var(--body);max-width:365px}
.creation-story-steps{list-style:none;padding:0;margin:28px 0 0;display:flex;flex-direction:column;gap:6px;grid-column:1;max-width:310px}
.creation-story-steps li{min-width:0}
.creation-story-steps button{display:flex;align-items:center;gap:13px;width:100%;padding:12px 0;min-height:52px;background:none;border:0;color:var(--muted);font:500 17px/1.3 var(--body);cursor:pointer;text-align:left;transition:color .2s}
.creation-story-step-number{width:29px;height:29px;flex:0 0 29px;display:grid;place-items:center;border-radius:50%;border:1px solid #DDD4E9;font:500 12px/1 var(--body);font-variant-numeric:tabular-nums;transition:background .2s,border-color .2s,color .2s}
.creation-story-steps button.is-current{color:var(--ink);font-weight:600}
.creation-story-steps .is-current .creation-story-step-number{background:var(--primary);border-color:var(--primary);color:#fff}
.creation-story-steps .is-complete .creation-story-step-number{background:#F0E9FC;border-color:#F0E9FC;color:var(--primary)}
.creation-story-steps button:hover{color:var(--primary)}
.creation-story-demo{grid-column:2;grid-row:1 / span 2;min-width:0}
.creation-story-stage{height:392px;position:relative;overflow:hidden;border:1px solid #E4DDED;border-radius:18px;background:linear-gradient(145deg,#F9F6FD,#F4F1F9);isolation:isolate}
.creation-story-stage-brand{position:absolute;left:20px;right:20px;top:16px;z-index:1;display:flex;align-items:center;gap:7px;color:#6B5F76;font:500 12px/1.4 var(--body)}
.creation-story-stage-brand img{flex:none;width:23px;height:23px}
.creation-story-count{margin-left:auto;color:var(--primary);font-size:11px;font-variant-numeric:tabular-nums}
.creation-story-count>span{color:#A59AAE}
.creation-story-scene{position:absolute;inset:53px 20px 18px;display:grid;place-items:center;min-width:0}
.creation-story-import{width:min(350px,100%);display:flex;align-items:center;flex-direction:column;gap:18px}
.creation-story-paste-action{position:relative;display:flex;align-items:center;gap:8px;border-radius:999px;background:var(--primary);color:#fff;padding:10px 18px;font:500 13px/1.3 var(--body);animation:story-paste-press .3s .4s both}
.creation-story-paste-touch{position:absolute;width:18px;height:18px;border:3px solid #BBA0F1;border-radius:50%;right:13px;bottom:-7px;opacity:0;animation:story-paste-touch .6s .3s both}
.creation-story-receipt{width:100%;overflow:hidden;border:1px solid #DED5E9;border-radius:10px;background:#fff;box-shadow:0 6px 22px #24173105}
.creation-story-file{display:flex;align-items:center;gap:7px;height:35px;padding:0 13px;border-bottom:1px solid #EEE8F4;color:#83768E;font:400 11px/1.4 var(--body)}
.creation-story-file strong{color:#4B4058;font-weight:500}
.creation-story-file>span{margin-left:auto;font-size:10px;color:#94899F}
.creation-story-code{padding:13px 0;color:#9A8DA7;font:10.5px/1.85 ui-monospace,SFMono-Regular,Menlo,monospace;height:142px;overflow:hidden}
.creation-story-code-line{display:flex;gap:10px;white-space:pre;animation:story-code-paste .18s var(--line-delay) both}
.creation-story-code-line i{width:28px;text-align:right;flex:0 0 28px;font-style:normal;color:#B6ABBF;user-select:none}
.creation-story-code-line code{font:inherit;min-width:0;overflow:hidden;text-overflow:ellipsis;padding-right:10px}
.creation-story-received{display:flex;align-items:center;gap:6px;min-height:35px;padding:7px 13px;border-top:1px solid #EEE8F4;color:#6C5E7B;font:400 11px/1.4 var(--body);animation:story-code-paste .22s 1.3s both}
.creation-story-received svg{color:var(--primary);flex:none}
.creation-story-screenshot{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:0;border:0;background:none;padding:0;cursor:zoom-in;border-radius:10px}
.creation-story-screenshot>img{display:block;max-width:100%;max-height:100%;width:auto;height:100%;object-fit:contain;aspect-ratio:1 / 2;border-radius:9px;box-shadow:0 8px 25px #281B3C14}
.creation-story-ready{display:flex;flex-direction:column;align-items:center;width:100%;text-align:center;max-width:320px}
.creation-story-ready-icon{position:relative;margin-bottom:15px}
.creation-story-ready-icon .app-icon{border-radius:18px}
.creation-story-ready-icon>span{position:absolute;right:-9px;bottom:-6px;width:30px;height:30px;display:grid;place-items:center;border:3px solid #F6F2FB;border-radius:50%;background:#fff;color:var(--primary)}
.creation-story-ready>strong{font:600 27px/1.2 var(--display);letter-spacing:-.025em;color:var(--ink)}
.creation-story-ready>span{font:400 12px/1.5 var(--body);color:var(--muted);margin-top:5px}
.creation-story-saved{display:flex;align-items:center;gap:9px;width:min(274px,100%);min-height:47px;padding:10px 15px;border:1px solid #DFD4EE;background:#fff;border-radius:10px;color:var(--primary);margin-top:24px;font:500 13px/1.4 var(--body)}
.creation-story-saved>span{color:var(--ink);flex:1;text-align:left}
.creation-story-ready>small{font:400 11px/1.5 var(--body);color:var(--muted);max-width:250px;margin-top:14px;text-wrap:balance}
.creation-story-caption{padding-top:17px;min-height:70px}
.creation-story-caption h3{margin:0;font:600 20px/1.25 var(--display);letter-spacing:-.018em;color:var(--ink)}
.creation-story-caption p{margin:5px 0 0;font:400 13px/1.5 var(--body);color:var(--muted)}
.creation-story-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:9px}
.creation-story-actions>.button{min-height:44px;gap:8px;font-size:13px;padding-inline:17px;white-space:nowrap}
.creation-story-playback{display:inline-flex;justify-content:center;align-items:center;gap:5px;min-height:44px;padding:7px 1px 7px 8px;border:0;background:none;color:var(--muted);font:400 12px/1.4 var(--body);cursor:pointer;white-space:nowrap}
.creation-story-playback:hover{color:var(--primary)}
@keyframes story-code-paste{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@keyframes story-paste-press{0%,100%{transform:scale(1)}50%{transform:scale(.96)}}
@keyframes story-paste-touch{0%{opacity:0;transform:scale(.5)}35%{opacity:1}100%{opacity:0;transform:scale(1.45)}}
.creation-story[data-running="false"] .creation-story-code-line,.creation-story[data-running="false"] .creation-story-received,.creation-story[data-running="false"] .creation-story-paste-action,.creation-story[data-running="false"] .creation-story-paste-touch{animation-play-state:paused}
.creation-story[data-static="true"] .creation-story-code-line,.creation-story[data-static="true"] .creation-story-received,.creation-story[data-static="true"] .creation-story-paste-action{animation:none;opacity:1;transform:none}
.creation-story[data-static="true"] .creation-story-paste-touch{display:none}
@media(max-width:1000px){.creation-story{column-gap:40px}.creation-story-heading h2{font-size:43px}.creation-story-stage{height:370px}}
@media(max-width:760px){
 .creation-story{display:flex;flex-direction:column;gap:0;padding:26px 0;scroll-margin-top:68px}
 .creation-story-heading{padding:0;max-width:none;width:100%}
 .creation-story-heading h2{font-size:35px;line-height:1.15;letter-spacing:-.035em;white-space:nowrap}
 .creation-story-heading p{font-size:14px;line-height:1.5;margin-top:10px;max-width:330px}
 .creation-story-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:18px 0 12px;max-width:none;width:100%;position:relative}
 .creation-story-steps button{flex-direction:column;gap:7px;text-align:center;font-size:11.5px;line-height:1.3;min-height:58px;padding:0 0 5px;position:relative;white-space:nowrap}
 .creation-story-steps button::after{content:'';position:absolute;bottom:0;height:2px;background:var(--primary);left:0;right:0;opacity:0;transform:scaleX(.5);transition:opacity .2s,transform .2s}
 .creation-story-steps button.is-current::after{opacity:1;transform:scaleX(1)}
 .creation-story-step-number{width:25px;height:25px;flex:0 0 25px;font-size:11px}
 .creation-story-demo{width:100%}
 .creation-story-stage{height:286px;border-radius:14px}
 .creation-story-stage-brand{top:12px;left:14px;right:14px;font-size:11px;gap:6px}
 .creation-story-stage-brand img{width:21px;height:21px}
 .creation-story-scene{inset:44px 14px 13px}
 .creation-story-import{gap:12px;width:min(285px,100%)}
 .creation-story-paste-action{padding:8px 14px;font-size:12px}
 .creation-story-file{height:29px;padding-inline:11px}
 .creation-story-code{height:118px;font-size:10px;line-height:1.75;padding-block:7px}
 .creation-story-received{min-height:30px;padding:6px 11px;font-size:10px}
 .creation-story-ready-icon{margin-bottom:11px}
 .creation-story-ready-icon .app-icon{width:63px!important;height:63px!important;border-radius:15px}
 .creation-story-ready>strong{font-size:25px}
 .creation-story-ready>span{font-size:11px}
 .creation-story-saved{margin-top:16px;min-height:40px;font-size:12px;width:min(254px,100%)}
 .creation-story-ready>small{font-size:10px;margin-top:10px;max-width:220px}
 .creation-story-caption{padding-top:12px;min-height:62px}
 .creation-story-caption h3{font-size:20px}
 .creation-story-caption p{font-size:12px;line-height:1.5;margin-top:4px}
 .creation-story-actions{margin-top:7px}
 .creation-story-actions>.button{font-size:12px;min-height:44px;padding-inline:15px}
 .creation-story-playback{font-size:11px}
}
@media(max-width:380px){.creation-story-heading h2{font-size:32px}.creation-story-heading p{font-size:13px;max-width:285px}.creation-story{padding-block:26px}.creation-story-stage{height:286px}.creation-story-caption h3{font-size:19px}}
@media(prefers-reduced-motion:reduce){.creation-story-code-line,.creation-story-received,.creation-story-paste-action{animation:none!important;opacity:1;transform:none}.creation-story-paste-touch{display:none}.creation-story-steps button,.creation-story-step-number,.creation-story-steps button::after{transition:none}}


/* Source: components/homepage/homepage.css */
/* Approved Interface Study homepage surface, 2026-11-16. Scoped components
   consume these aliases; legacy workspace surfaces keep their existing roles. */
:root{--mt-home-primary:#713DEC;--mt-home-page:#FCFBFE;--mt-home-ink:#241731;--mt-home-muted:#756B80;--mt-home-line:#E9E4EF}
/* Shared action radius is owned by design-tokens.css; the legacy button bridge lives in visual-refresh.css. */

/* Interface Study v24 homepage, shared by the product and component preview. */
.mt-home,.mt-site-header,.mt-site-footer,.mt-mobile-dock{--primary:var(--mt-home-primary);--page:var(--mt-home-page);--surface:#fff;--ink:var(--mt-home-ink);--muted:var(--mt-home-muted);--line:var(--mt-home-line);--soft:#F2EDFC;--display:var(--mt-font-display);--body:var(--mt-font-ui);color:var(--ink);font-family:var(--body)}
.mt-home *,.mt-site-header *,.mt-site-footer *,.mt-mobile-dock *{box-sizing:border-box}
.mt-home [hidden],.mt-site-header [hidden],.mt-site-footer [hidden]{display:none!important}
:where(.mt-home) :where(h1,h2,h3,p,ul,ol){margin:0}.mt-home :is(button,a),.mt-site-header :is(button,a),.mt-site-footer a,.mt-mobile-dock button{font-family:var(--body);-webkit-tap-highlight-color:transparent}
.mt-home :is(button,a,summary):focus-visible,.mt-site-header :is(button,a,select):focus-visible,.mt-site-footer :is(a,select):focus-visible,.mt-mobile-dock button:focus-visible{outline:3px solid var(--mt-focus);outline-offset:3px}
.mt-home button:disabled{cursor:wait;opacity:.6}.mt-home svg,.mt-site-header svg,.mt-mobile-dock svg{flex:none}
.mt-home{max-width:1240px;margin:0 auto;padding:0 34px 10px;background:var(--page);line-height:1.6}
body[data-view=home]{background:var(--mt-home-page)}
.mt-home-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:12px 21px;border:1px solid transparent;border-radius:var(--mt-radius-pill);background:var(--primary);color:white;font:550 15px/1.45 var(--mt-font-ui);text-decoration:none;cursor:pointer;transition:background .16s,transform .12s}
.mt-home-button[data-variant=secondary]{background:#F4F4F6;color:var(--ink)}.mt-home-button[data-variant=ghost]{background:transparent;color:var(--ink);font-weight:450}
.mt-home-button:active:not(:disabled){transform:scale(.98)}.mt-home-button:focus-visible{outline:3px solid var(--mt-focus);outline-offset:3px}
.mt-home-link,.mt-home-icon{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:8px 0;border:0;background:none;color:var(--ink);font:400 14px/1.4 var(--mt-font-ui);cursor:pointer}
.mt-home-icon{width:44px;min-width:44px;height:44px;padding:0;border-radius:50%}
@media(hover:hover){.mt-home-button[data-variant=primary]:hover{background:#6630DD}.mt-home-button[data-variant=secondary]:hover{background:#ECECF1}.mt-home-button[data-variant=ghost]:hover{background:#713dec06}.mt-home-link:hover{color:var(--primary)}}
.composition-hero{position:relative;isolation:isolate;text-align:center;padding-bottom:64px}.composition-module{overflow:clip;position:relative;isolation:isolate;display:grid;place-items:center;min-height:calc(min(90vw,570px) + 12px)}
.composition-module>.mtm-orb{position:absolute;inset:0;z-index:-1;pointer-events:none}.mtm-orb .hero-aura{position:absolute;left:50%;top:50%;width:min(90vw,570px);height:min(90vw,570px);transform:translate(-50%,-50%);border-radius:50%;overflow:hidden;filter:blur(3px);opacity:.78;mask-image:radial-gradient(circle closest-side,#000 83%,transparent 100%)}
.mtm-orb .orb-fallback,.mtm-orb .orb-canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none}
.mt-home .mtm-headline{position:relative;width:100%;min-width:0;padding:72px 20px;text-align:center;color:var(--ink)}
.mt-home .mtm-headline .hero-eyebrow{display:flex;justify-content:center;align-items:center;gap:8px;font-size:15px;line-height:1.5;margin:0 0 32px;flex-wrap:wrap;letter-spacing:0;text-transform:none}
.mt-home .hero-eyebrow-word{display:inline-flex;align-items:center;gap:5px}.mt-home .hero-sketch{width:30px;height:32px;fill:currentColor;stroke:none}.mt-home .hero-sketch-tap{transform:scale(.74)}
.mt-home .mtm-title{font:700 clamp(30px,6.3vw,78px)/1.14 var(--display);letter-spacing:var(--mt-track-display);margin:0;max-width:none;color:var(--ink)}
.mt-home .hero-title-line{display:flex;justify-content:center;align-items:center;gap:.16em;white-space:normal}.mt-home .hero-title-line+.hero-title-line{margin-top:.2em}.mt-home .hero-title-text{min-width:0;text-wrap:balance}
.mt-home .hero-icon-cluster{display:flex;gap:4px;flex:none}.mt-home .hero-app-button{font:inherit;background:none;border:0;padding:0;width:1.16em;height:1.16em;min-width:44px;min-height:44px;border-radius:14px;display:grid;place-items:center;cursor:pointer}
.mt-home .hero-app-tile{width:1.12em;height:1.12em;border-radius:.24em;transform:rotate(var(--hero-tilt,-8deg));filter:drop-shadow(0 5px 7px #21192e15)}.mt-home .hero-app-button:nth-child(2){--hero-tilt:6deg}.mt-home .hero-title-line:nth-child(2) .hero-app-button{--hero-tilt:7deg}.mt-home .hero-title-line:nth-child(2) .hero-app-button:nth-child(2){--hero-tilt:-6deg}
.mt-home .hero-description{font:400 18px/1.6 var(--body);color:var(--muted);max-width:60ch;text-wrap:balance;margin:32px auto 0}
.home-hero-actions{display:flex;align-items:center;justify-content:center;gap:12px;margin:0 auto}.home-hero-actions .mt-home-button{padding-inline:26px}
.ai-sources{text-align:center;padding:40px 20px 48px;background:#fff}.ai-sources p{font-size:16px;color:var(--muted)}.ai-source-names{display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap;margin:32px auto;max-width:1050px}.ai-source-names span{font-family:var(--mt-font-ui);font-weight:900;font-size:clamp(24px,3.4vw,40px);letter-spacing:-.045em;line-height:1.2}.ai-source-claude{color:#cc6944}.ai-source-gemini{background:linear-gradient(100deg,#4285f4 5%,#7868da 45%,#c05483 72%,#d96570);background-clip:text;color:transparent}.ai-source-grok,.ai-source-kimi{color:#000}.ai-source-deepseek{color:#4d6bfe}.ai-source-kimi:after{content:'.';color:#347cff}
.home-gallery{padding-top:74px;scroll-margin-top:100px}.home-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:32px;margin-bottom:32px}.home-section-heading h2{font:600 46px/1.16 var(--display);letter-spacing:-.045em;text-wrap:balance}.home-section-heading p{font-size:16px;line-height:1.7;max-width:490px;margin-top:18px;color:var(--muted)}.home-gallery-count{font-size:12px;color:var(--muted);white-space:nowrap}
.home-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:34px 24px}.home-example-card{min-width:0}.home-example-preview{position:relative;overflow:hidden;border-radius:10px;height:274px;background:var(--snapshot-bg)}.app-snapshot--actual{height:100%;position:relative;overflow:hidden;pointer-events:none}.app-snapshot-image{display:block;width:100%;height:100%;object-fit:cover;object-position:top center;user-select:none}
.home-example-open{position:absolute;inset:0;width:100%;height:100%;border:0;padding:0;background:none;cursor:pointer}.home-example-open:focus-visible{outline-offset:-4px}.home-preview-label{display:inline-flex;align-items:center;gap:5px;position:absolute;right:12px;bottom:12px;padding:7px 10px;border-radius:999px;background:#fff;color:var(--ink);font-size:12px;opacity:0;transition:opacity .16s}.home-example-open:hover .home-preview-label,.home-example-open:focus-visible .home-preview-label{opacity:1}
.home-example-footer{display:flex;align-items:center;gap:11px;padding-top:16px}.home-example-footer>.app-icon{flex:none;border-radius:9px;width:36px;height:36px}.home-example-copy{flex:1;min-width:0}.home-example-copy h3{font:600 19px/1.3 var(--display);letter-spacing:-.025em}.home-example-copy p{font-size:13px;color:var(--muted);margin-top:4px}.home-example-use{display:grid;place-items:center;flex:none;width:44px;height:44px;min-width:44px;border:0;border-radius:50%;background:transparent;color:var(--ink);cursor:pointer}.home-gallery-note{font-size:12px;color:var(--muted);margin-top:23px;line-height:1.7}.home-inline-error{margin-top:20px;padding:16px;color:var(--mt-error);background:var(--mt-error-bg);border-radius:14px}
.home-closing{display:flex;align-items:center;justify-content:space-between;gap:32px;margin-top:76px;padding:52px 0 36px;border-block:1px solid var(--line)}.home-closing h2{font:600 42px/1.1 var(--display);letter-spacing:-.04em}.home-closing p{margin-top:12px;color:var(--muted);font-size:14px}.home-closing>.mt-home-button{flex-shrink:0}
.home-help{display:grid;grid-template-columns:minmax(240px,.8fr) minmax(0,1.2fr);gap:36px 64px;padding:64px 0;scroll-margin-top:90px}.home-help-intro>span{text-transform:uppercase;letter-spacing:.12em;font-size:13px;color:var(--muted);font-weight:600}.home-help-intro h2{font:600 34px/1.2 var(--display);max-width:350px;margin:22px 0}.home-help-intro p{font-size:16px;color:var(--muted);line-height:1.7;max-width:320px}.home-faq{border-bottom:1px solid var(--line)}.home-faq summary{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:64px;padding:18px 0;font:500 16px/1.5 var(--body);cursor:pointer;list-style:none}.home-faq summary::-webkit-details-marker{display:none}.home-faq[open] summary svg{transform:rotate(180deg)}.home-faq p{font-size:14px;line-height:1.7;color:var(--muted);padding-bottom:20px}.home-help-center{grid-column:1/-1;justify-self:center;color:var(--primary);font-size:16px;text-decoration:underline;text-underline-offset:5px;min-height:44px;display:flex;align-items:center}
.home-connected-note{display:flex;justify-content:space-between;align-items:center;gap:20px;padding-top:20px;color:var(--muted);font-size:12px}.home-connected-note a{display:inline-flex;align-items:center;gap:7px;min-height:44px;color:var(--ink)}
.home-pricing .home-plan--creator_pack{background:#f9f6ff}.home-pricing .home-plan>.mt-home-button{width:100%;margin-top:auto}.home-pricing .home-pricing-heading>.mt-home-link{flex-shrink:0;font-size:13px}.home-pricing .home-plan-details{margin-bottom:10px}.home-plan-details summary{display:flex;align-items:center;gap:6px;min-height:44px;padding:7px 0;font:400 12px/1.5 var(--body);color:var(--muted);cursor:pointer;list-style:none}.home-plan-details summary::-webkit-details-marker{display:none}.home-plan-details .details-less,.home-plan-details[open] .details-more{display:none}.home-plan-details[open] .details-less{display:inline}.home-plan-details[open] summary svg{transform:rotate(180deg)}.home-plan-benefits li svg,.home-plan-details li svg{flex:none;color:var(--muted);margin-top:2px}.home-plan-benefits li:first-child svg{color:var(--primary)}
.creation-story .creation-story-actions>.mt-home-button{min-height:44px;gap:8px;font-size:13px;padding-inline:17px;white-space:normal}.creation-story .creation-story-ready-icon>.app-icon{display:block;width:76px;height:76px;border-radius:18px}.creation-story-count b{font:inherit}.creation-story-playback{min-width:44px}
.mt-site-header{height:76px;position:sticky;top:0;z-index:50;background:#fcfbfef5;border-bottom:1px solid var(--line);backdrop-filter:blur(16px)}.mt-site-header>.header-inner{position:relative;max-width:1280px;height:100%;margin:auto;padding:0 34px;display:flex;align-items:center;gap:24px;justify-content:space-between}.mt-site-header .brand{flex:none;display:flex;min-height:44px;width:158px}.mt-site-header .brand-lockup-shell{display:block;width:158px}.mt-site-header .mt-brand-logo{width:100%;height:auto}
.mt-site-links{display:flex;align-items:center;gap:22px;margin-inline:auto}.mt-site-links a{min-height:44px;display:flex;align-items:center;white-space:nowrap;font:400 14px/1.4 var(--body);color:var(--ink);text-decoration:none}.mt-site-links a:hover{color:var(--primary)}.mt-site-actions{display:flex;align-items:center;gap:12px}.mt-header-library{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0;border:0;background:none;color:var(--ink);font-size:14px;white-space:nowrap;cursor:pointer}.mt-header-library #navCount{font-size:11px;color:var(--muted)}.mt-header-account{min-height:44px;padding:10px 17px;font-size:14px}.mt-site-header .menu-toggle{display:none}
.mt-language-anchor{position:relative;display:flex}.mt-home-icon[aria-expanded=true]{background:var(--soft);color:var(--primary)}.mt-language-menu{position:absolute;top:calc(100% + 12px);right:0;width:202px;max-width:calc(var(--visible-width,100vw) - 40px);padding:6px;border:1px solid #E4DFEB;border-radius:11px;background:#fff;box-shadow:0 18px 56px #24173118;z-index:2}.mt-language-menu button{width:100%;min-height:46px;padding:10px 12px;background:transparent;border:0;border-radius:7px;display:flex;align-items:center;justify-content:space-between;gap:20px;text-align:left;color:var(--ink);font:500 14px/1.5 var(--body);cursor:pointer}.mt-language-menu button+button{margin-top:3px}.mt-language-menu [aria-checked=true]{background:var(--soft);color:var(--primary)}.mt-language-menu [aria-checked=false]>span{visibility:hidden}.mt-language-menu [aria-checked=true]>span{display:grid;place-items:center;border-radius:50%;background:var(--primary);color:#fff;width:18px;height:18px}.mt-language-menu [aria-checked=true]>span svg{width:13px;height:13px}
/* UX-05: compact, clearly separated mobile navigation and account groups. */
.mt-site-menu{
 position:absolute;top:calc(100% + 10px);right:34px;width:416px;
 max-width:calc(100vw - 32px);max-height:calc(var(--visible-height,100dvh) - 100px);
 overflow:auto;overscroll-behavior:contain;padding:12px 16px 16px;
 border:1px solid #E4DFEB;border-radius:14px;background:#fff;
 box-shadow:0 18px 56px #24173118,0 3px 10px #24173108
}
.mt-menu-links{display:flex;flex-direction:column;gap:2px}
.mt-site-menu .mt-menu-group-label{
 margin:0;padding:4px 10px 8px;font:600 11px/1.35 var(--body);
 letter-spacing:.07em;text-transform:uppercase;color:var(--muted)
}
.mt-menu-links>a{
 display:flex;align-items:center;justify-content:space-between;gap:14px;
 min-height:52px;padding:10px 12px;border:0;border-radius:10px;
 color:var(--ink);text-decoration:none
}
.mt-menu-links strong{font:550 16px/1.35 var(--body);letter-spacing:0}
.mt-menu-links>a>svg{width:17px;height:17px;flex:none;color:var(--muted)}
.mt-menu-links>a:is(:hover,[aria-current="location"]){background:var(--soft);color:var(--primary)}
.mt-menu-links>a[aria-current="location"]>svg{color:var(--primary)}
.mt-menu-links>a:focus-visible{background:var(--soft);outline:2px solid var(--mt-focus);outline-offset:1px}
.mt-menu-account-region{margin-top:12px;padding-top:14px;border-top:1px solid var(--line)}
.mt-menu-access{padding-top:0}
.mt-menu-access>.mt-menu-account-note{margin:0 10px 12px;font:400 13px/1.6 var(--body);color:var(--muted)}
.mt-menu-access>div{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:0}
.mt-menu-access .mt-home-button{min-height:44px;font-size:13px}
.mt-menu-account-actions>.mt-home-button{min-width:0;white-space:normal}

.mt-site-footer{max-width:1240px;margin:70px auto 0;padding:28px 34px 32px;border-top:1px solid var(--line);font-size:12px}.mt-footer-main,.mt-footer-bottom{display:flex;justify-content:space-between;align-items:center;gap:24px}.mt-footer-brand{flex:none}.mt-footer-brand .brand{display:block;width:144px}.mt-footer-brand .mt-brand-logo{width:144px;height:auto}.mt-footer-brand p{margin:12px 0;color:var(--muted);font-size:14px}.mt-footer-main nav,.mt-footer-bottom nav{display:flex;flex-wrap:wrap;align-items:center;gap:8px 22px}.mt-site-footer a{display:inline-flex;align-items:center;min-height:44px;color:var(--ink);text-decoration:none}.mt-site-footer a:hover{color:var(--primary)}.mt-footer-bottom{border-top:1px solid var(--line);padding-top:8px;margin-top:18px;color:var(--muted)}
.mt-mobile-dock{display:none;position:fixed;bottom:0;left:0;right:0;z-index:40;background:#fffffff5;border-top:1px solid var(--line);padding:6px 12px calc(6px + env(safe-area-inset-bottom,0px));backdrop-filter:blur(14px)}.mt-mobile-dock button{position:relative;display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:60px;padding:3px 8px;border:0;background:none;color:var(--muted);font:450 12px/1.4 var(--body);cursor:pointer}.mt-mobile-dock [data-dock-icon]{display:grid;place-items:center;width:48px;height:32px;border-radius:999px}.mt-mobile-dock button.active{color:var(--primary)}.mt-mobile-dock .active [data-dock-icon]{background:var(--soft)}.mt-mobile-dock svg{width:24px;height:24px}
body[data-view=create] .mt-mobile-dock,body[data-view=sample] .mt-mobile-dock,body.dialog-open .mt-mobile-dock{display:none}
@media(max-width:1100px){.mt-site-links,.mt-header-library,.mt-header-account{display:none}.mt-site-header .menu-toggle{display:flex}.mt-site-actions{margin-left:auto}.home-gallery-grid{gap:28px 20px}.home-gallery-count{display:none}.home-example-preview{height:250px}}
@media(max-width:900px){.home-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.mt-home{padding:0 20px 10px}.mt-site-header{height:66px}.mt-site-header>.header-inner{padding:0 20px;gap:16px}.mt-site-header .brand,.mt-site-header .brand-lockup-shell{width:133px}.mt-site-actions{gap:3px}.mt-site-menu{left:12px;right:12px;width:auto;max-width:none;padding:12px 14px 16px;max-height:calc(var(--visible-height,100dvh) - 90px)}.mt-menu-links>a{min-height:52px}.mt-menu-links strong{font-size:16px}.mt-language-menu{width:196px}.mt-mobile-dock{display:flex}body:not([data-view=create]):not([data-view=sample]){padding-bottom:calc(74px + env(safe-area-inset-bottom,0px))}.home-gallery{padding-top:48px}.home-section-heading{margin-bottom:25px;align-items:flex-start}.home-section-heading h2{font-size:40px;line-height:1.1;letter-spacing:-.045em;text-wrap:pretty}.home-section-heading p{font-size:15px;line-height:1.7;margin-top:15px}.home-closing{flex-direction:column;align-items:flex-start;margin-top:49px;padding:35px 0 24px;gap:24px}.home-closing h2{font-size:36px}.home-connected-note{flex-direction:column;align-items:flex-start;gap:5px}.home-help{grid-template-columns:1fr;gap:22px;padding:36px 0}.home-help-intro h2{font-size:28px;margin:12px 0}.home-help-intro p{max-width:none;font-size:14px}.home-faq summary{font-size:15px}.mt-site-footer{padding:24px 20px 30px;margin-top:46px}.mt-footer-main{align-items:flex-start;flex-direction:column;gap:12px}.mt-footer-bottom{flex-wrap:wrap;gap:8px}.mt-footer-main nav{gap:6px 23px}}
@media(max-width:600px){.mt-home .mtm-headline{padding:40px 0 24px}.mt-home .mtm-title{font-size:clamp(27px,8.2vw,44px)}.mt-home .hero-icon-cluster{gap:0}.mt-home .hero-app-button,#homeView .mt-home .hero-app-button{width:clamp(44px,11vw,50px);height:clamp(44px,11vw,50px)}.mt-home .hero-app-tile,#homeView .mt-home .hero-app-tile{width:clamp(40px,11vw,50px);height:clamp(40px,11vw,50px);border-radius:11px}.mt-home .hero-description{font-size:16px}.mt-home .mtm-headline .hero-eyebrow{font-size:13px}.composition-module{min-height:0}.composition-hero{padding-bottom:16px}.ai-sources{padding-top:16px}.home-hero-actions{flex-direction:column;width:min(308px,100%);gap:2px}.home-hero-actions .mt-home-button{width:100%;font-size:15px}.home-hero-actions [data-variant=ghost]{min-height:44px;font-size:14px}.ai-source-names{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px 12px}.ai-source-names span{font-size:clamp(15px,4.6vw,18px)}.home-section-heading h2{font-size:clamp(32px,8.8vw,38px);line-height:1.18;letter-spacing:-.028em;max-width:320px}.home-gallery-grid{display:grid;grid-auto-flow:column;grid-template-columns:none;grid-auto-columns:86%;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:12px;scrollbar-width:thin;scrollbar-color:#d8c9ef transparent}.home-example-card{scroll-snap-align:start}.home-example-preview{height:274px}.home-example-footer{padding-top:14px;gap:9px}.home-example-copy p{font-size:12px}.home-gallery-note{margin-top:14px}.home-closing h2{font-size:34px;line-height:1.18;max-width:320px}.creation-story .creation-story-actions>.mt-home-button{font-size:12px;padding-inline:15px}}
@media(prefers-reduced-motion:reduce){.mt-home *,.mt-site-header *,.mt-mobile-dock *{scroll-behavior:auto;transition:none}.mtm-orb .orb-canvas{display:none}}
@media(forced-colors:active){.mtm-orb{display:none}.mt-home-button{border:1px solid ButtonText}.mt-mobile-dock .active [data-dock-icon]{outline:1px solid Highlight}}

/* The wrapper owns stickiness so the header remains anchored while scrolling. */
#homepageHeader{position:sticky;top:0;z-index:70}#homepageHeader>.mt-site-header{position:relative}
#informationView .app-container{max-width:900px;padding-bottom:24px}
#informationView .information-page{max-width:760px;margin:32px auto 0;padding:0}
#informationView .information-heading{padding-bottom:32px;border-bottom:1px solid var(--mt-home-line)}
#informationView .information-heading h1{font-family:var(--mt-font-display);font-size:clamp(32px,5vw,48px);line-height:1.12;letter-spacing:-.035em;margin:0 0 18px}
#informationView .information-heading>p{color:var(--mt-home-muted);font-size:17px;line-height:1.75;margin:0}
#informationView .information-body{margin-top:32px}
#informationView .information-body>section{margin:0 0 32px}
#informationView .information-body h2{font:600 22px/1.35 var(--mt-font-display);letter-spacing:-.02em;margin:0 0 12px}
#informationView .information-body p{font-size:16px;line-height:1.8;margin:0 0 14px;overflow-wrap:anywhere}
@media(max-width:600px){#informationView .information-page{margin-top:24px}#informationView .information-heading>p,#informationView .information-body p{font-size:15px}#informationView .information-body h2{font-size:20px}}

.mt-language-anchor :is(#languageTrigger,#footerLanguageTrigger){border-radius:50%;background:transparent;color:var(--ink)}.mt-language-anchor :is(#languageTrigger,#footerLanguageTrigger):focus-visible{outline:3px solid var(--mt-focus);outline-offset:3px}

/* Reflow against the component's real width, including browser/CSS zoom. */
#homepageHeader{container:home-header / inline-size}
.mt-home{container:home-content / inline-size}
.mt-site-header{height:auto;min-height:76px}
.mt-site-header>.header-inner{min-height:inherit;flex-wrap:wrap;row-gap:4px;padding-block:10px}
.mt-site-header .brand{max-width:100%}
.creation-story-heading h2,.creation-story-steps button{white-space:normal}
.creation-story-actions{flex-wrap:wrap}
.home-plan-heading h3{white-space:normal;overflow-wrap:anywhere}
@media(max-width:760px){.mt-site-header{min-height:66px}}
@container home-header (max-width:1100px){
 .mt-site-links,.mt-header-library,.mt-header-account{display:none}
 .mt-site-header .menu-toggle{display:flex}
 .mt-site-actions{margin-left:auto}
}
@container home-content (max-width:240px){
 .ai-source-names{grid-template-columns:repeat(2,minmax(0,1fr))}
 .home-plan-heading{grid-template-columns:minmax(0,1fr)}
 .home-plan-heading h3,.home-plan-price strong,.home-plan-price>span,.home-plan-audience{grid-column:1;grid-row:auto;justify-self:start}
 .home-example-footer{flex-wrap:wrap}
 .home-example-copy{flex-basis:calc(100% - 45px)}
}

/* The same language control appears at both shell edges; the footer opens upward. */
.mt-footer-main nav>[data-language-control]{margin-left:auto}
.mt-site-footer .mt-language-menu{top:auto;bottom:calc(100% + 12px)}

.mt-language-anchor :is(#languageTrigger,#footerLanguageTrigger)[aria-expanded=true]{background:var(--soft);color:var(--primary)}
@media(hover:hover){.mt-language-anchor :is(#languageTrigger,#footerLanguageTrigger):hover{background:var(--soft);color:var(--primary)}}

/* Full plan comparison on desktop; only the phone layout uses disclosures. */
.home-plan-details>summary{display:none}
@media(max-width:760px){.home-plan-details>summary{display:flex}}

.mt-site-menu{background:#fff}.mt-menu-access>.mt-menu-identity{display:flex;gap:12px;align-items:center;margin:0 0 16px}.mt-menu-avatar{display:grid;place-items:center;width:42px;height:42px;flex:none;border-radius:50%;background:var(--soft);color:var(--primary)}.mt-menu-identity>span:nth-child(2){flex:1;min-width:0}.mt-menu-identity strong,.mt-menu-identity small{display:block;overflow-wrap:anywhere}.mt-menu-identity small{font-size:12px;color:var(--muted);margin-top:3px}.mt-menu-access>.mt-home-button{width:100%}

.mt-menu-avatar{font-size:18px;font-weight:600}.mt-menu-identity strong{font-size:16px;font-weight:600;line-height:1.4}.mt-menu-identity>.mt-home-icon{flex:none}


/* A compact signed-in header menu replaces the redundant settings dialog. */
.mt-site-actions{position:relative}
.mt-account-quick-menu{
 position:absolute;top:calc(100% + 10px);right:58px;z-index:10;
 min-width:160px;padding:7px;border:1px solid var(--line);
 border-radius:12px;background:#fff;box-shadow:0 14px 45px #2417311c
}
.mt-account-quick-menu[hidden]{display:none!important}
.mt-account-quick-menu button{
 display:block;width:100%;min-height:44px;border:0;border-radius:7px;
 background:none;text-align:left;padding:10px 14px;color:var(--ink);
 font:500 14px/1.4 var(--body);cursor:pointer
}
.mt-account-quick-menu button:hover,.mt-account-quick-menu button:focus-visible{
 background:var(--soft);outline:2px solid var(--mt-focus);outline-offset:1px
}
.mt-footer-brand p{max-width:410px;line-height:1.75;font-size:13px}


/* Keep the authenticated identity in navigation, with the same account icon
   as the mobile menu and without a second email above the credit card. */
.mt-header-account{display:inline-flex;align-items:center;gap:9px;max-width:265px}
.mt-header-account [data-account-label]{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mt-nav-account-icon{display:grid;place-items:center;flex:none}
.mt-nav-account-icon svg,.mt-menu-avatar svg{width:20px;height:20px}
.mt-account-quick-menu button{display:flex;align-items:center;gap:9px}
.mt-menu-avatar{display:grid;place-items:center}

/* Keep the mobile menu as the only account navigation under 1101px. */
@media(max-width:1100px){.mt-site-actions .mt-header-account{display:none}}

@media (max-width:600px) and (max-height:620px){
 .mt-home .mtm-headline{padding-block:20px 12px}
}

/* Featured gallery. The full-height source image is masked only by the card stage. */
.home-gallery .home-gallery-grid{grid-auto-flow:row;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-columns:auto;gap:64px 28px;overflow:visible;padding:0;scroll-snap-type:none}
.sample-feature{min-width:0;display:flex;flex-direction:column;align-items:stretch}
.sample-stage{display:flex;flex-direction:column;align-items:center;gap:16px;border-radius:24px;overflow:hidden;background:var(--stage);padding-top:20px;color:white}
.sample-stage[data-tone=light]{color:var(--mt-home-ink)}
.sample-identity{display:grid;justify-items:center;text-align:center;gap:8px;padding-inline:16px}
.sample-identity img{display:block;width:48px;height:48px;border-radius:12px}
.sample-identity h3,.sample-dialog h2{font-family:var(--mt-font-display);line-height:1.2;margin:0}
.sample-identity h3{color:inherit;font-size:1.125rem}
.sample-identity p{margin:4px 0 0;color:inherit;opacity:.82;font-size:.875rem;line-height:1.45}
.sample-screen{width:52%;aspect-ratio:3/4;overflow:hidden;border-radius:14px 14px 0 0;box-shadow:0 8px 22px #15102826}
.sample-screen img{width:100%;height:auto;display:block}
.sample-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:16px}
.sample-actions :is(button,a),.sample-copy{display:inline-flex;align-items:center;justify-content:center;text-align:center;gap:6px;min-height:44px;min-width:44px;padding:9px 14px;border-radius:99px;border:1px solid var(--mt-home-primary);background:var(--mt-home-primary);color:white;font:600 .85rem/1.3 var(--mt-font-ui);text-decoration:none;cursor:pointer}
.sample-actions a,.sample-copy.is-copied{background:white;color:var(--mt-home-primary)}
.sample-actions a{border-color:var(--mt-home-line);color:var(--mt-home-ink)}
.sample-dialog{background:white;color:var(--mt-home-ink);padding:0;border:none;max-height:calc(100dvh - 32px);max-width:calc(100vw - 28px);overflow:auto}
.sample-dialog.sample-prompt{width:660px;box-sizing:border-box;padding:32px 32px max(36px,env(safe-area-inset-bottom));}
.sample-prompt-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.sample-prompt-heading h2{font-size:1.5rem}
.sample-prompt .sample-close{flex:none;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:white;color:inherit}
.sample-prompt-actions{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
.sample-prompt-actions p{flex:1 1 12rem;margin:0;color:var(--mt-home-muted);font-size:.875rem}
.sample-prompt-actions button{margin-inline-start:auto}
.sample-prompt pre{font:inherit;font-size:.92rem;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;background:#f6f4fa;margin:24px 0;padding:20px;border-radius:12px;user-select:text}
.sample-copy:disabled{opacity:.55;cursor:default}
.sample-status:not(:empty){margin-top:12px;color:var(--mt-home-muted)}
@media(max-width:900px){.home-gallery .home-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:48px 20px}}
@media(max-width:620px){.home-gallery .home-gallery-grid{grid-template-columns:minmax(0,1fr);gap:44px}.sample-dialog.sample-prompt{padding:24px 24px max(36px,env(safe-area-inset-bottom));max-height:calc(100dvh - 40px)}.sample-prompt-actions{row-gap:14px}}

/* Demo v24 native product surfaces. Shared verbatim by product and component preview. */
#studioView.app-view,#libraryView.app-view{padding:28px 0 72px;min-height:calc(100dvh - 80px);height:auto;overflow:visible;background:var(--bg,#fcfbff)}
#studioView>.app-container,#libraryView>.app-container{width:calc(100% - 64px);max-width:1060px;margin:auto;padding:0;min-height:0;height:auto}
#studioView .app-topbar,#libraryView .app-topbar,.library-storage-note{display:none}
.product-studio,.product-library,.product-auth{font:400 15px/1.6 var(--mt-font-ui);color:var(--ink);min-width:0}
.product-studio [hidden],.product-library [hidden],.product-auth [hidden],.product-sheet [hidden]{display:none!important}
.product-studio button,.product-library button,.product-auth button,.product-sheet button{font-family:inherit;cursor:pointer}
.product-studio .btn,.product-library .btn,.product-auth .btn,.product-sheet .btn{min-height:48px;padding:12px 21px;border-radius:var(--mt-radius-pill);font-size:14px;line-height:1.45;gap:var(--mt-space-3);box-shadow:none}
.product-studio .btn.primary,.product-library .btn.primary,.product-auth .btn.primary,.product-sheet .btn.primary{background:var(--primary,#713dec);color:#fff;border:1px solid transparent}
.product-studio .btn.secondary,.product-library .btn.secondary,.product-auth .btn.secondary,.product-sheet .btn.secondary{background:#f1eff5;color:var(--ink);border:1px solid transparent}
.product-studio button:disabled,.product-auth button:disabled{cursor:default;opacity:.5}
/* Shared creation feedback: the async host owns busy state and retries. */
.mt-btn.mt-btn--loading:disabled{display:inline-flex;align-items:center;justify-content:center;gap:10px;background:#b49af5;color:#fff;opacity:1;cursor:wait;transform:none}
.mt-button-spinner{display:inline-block;flex:none;width:18px;height:18px;border:2px solid currentColor;border-bottom-color:transparent;border-radius:50%;animation:mt-button-spin .8s linear infinite}
@keyframes mt-button-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.mt-button-spinner{animation:none}}
.product-studio h1,.product-library h1,.product-auth h3{letter-spacing:-.035em;line-height:1.14;font-weight:600}
.product-studio-heading{display:grid;grid-template-columns:minmax(64px,1fr) auto minmax(64px,1fr);gap:10px 8px;align-items:center;max-width:700px;margin:0 auto 24px}
.product-studio-heading h1{font-size:28px;grid-column:2;grid-row:1;margin:0;text-align:center}
.product-studio-heading p{grid-column:1/-1;margin:0;color:var(--muted);text-align:center;font-size:14px}
.product-back,.product-text-button{display:inline-flex;align-items:center;gap:7px;min-height:44px;border:0;padding:0;background:none;color:var(--muted);font-size:14px}
.product-input{max-width:700px;margin:auto;padding-bottom:140px}
.product-tabs{display:flex;gap:24px;margin-bottom:18px;border-bottom:1px solid var(--line,#e9e5ef)}
.product-tabs>button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:9px 0;border:0;border-bottom:2px solid transparent;background:none;color:var(--muted);font-size:14px}
.product-tabs>button[aria-selected=true],.product-tabs>button[aria-pressed=true]{border-bottom-color:var(--primary);color:var(--primary)}
.product-code-shell{border:1px solid var(--line,#e9e5ef);border-radius:12px;background:white;overflow:hidden}
.product-code-shell:focus-within{border-color:var(--primary)}
.product-code-intro{display:flex;flex-direction:column;gap:2px;padding:16px 20px 0;font-size:14px}
.product-code-intro strong{font-weight:500}.product-code-intro small{font-size:12px;color:var(--muted)}
#productCodeInput{display:block;width:100%;height:84px;min-height:0;margin:0;padding:14px 20px;border:0;background:none;resize:vertical;outline-offset:-3px;color:var(--ink);font:400 16px/1.6 var(--mt-font-ui)}
.product-code-actions{padding:0 16px 14px}.product-code-actions .btn{color:var(--primary);background:#f1ebfc;border:1px solid #e6daf8}
.product-private{display:flex;align-items:flex-start;gap:7px;margin:12px 0;font-size:12px;color:var(--muted);line-height:1.6}.product-private svg{flex:none;margin-top:3px}
.product-upload{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:30px 20px;min-height:280px;border:1px dashed #cfc3de;border-radius:12px;background:#fff;text-align:center}
.product-upload>svg{color:var(--primary)}.product-upload h2{font-size:28px;font-weight:600;letter-spacing:-.025em}.product-upload p,.product-upload small{color:var(--muted)}.product-upload.dragover{background:#f3edfc;border-color:var(--primary)}
.product-examples{margin-top:28px;padding-top:24px;border-top:1px solid var(--line,#e9e5ef)}.product-examples h2{font:500 15px/1.5 var(--mt-font-display);color:var(--muted);margin:0 0 14px}
.studio-example-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.product-example{display:flex;align-items:center;gap:12px;min-width:0;min-height:56px;padding:8px;border:0;border-radius:12px;background:none;color:var(--ink);text-align:left;font:inherit}.product-example img{width:40px;height:40px;border-radius:24%;flex:none}.product-example strong{font-weight:500;font-size:14px}.product-example small{display:block;font-size:12px;color:var(--muted)}.studio-example-grid .product-example{flex-direction:column;gap:8px;text-align:center}.studio-example-grid .product-example img{width:34px;height:34px}.studio-example-grid .product-example strong{font-size:12px}.product-example:hover{background:#f1edf7}
.product-receipt{padding:20px;border:1px solid var(--line,#e9e5ef);background:white;border-radius:12px;margin:0}.product-receipt .receipt-top{display:flex;align-items:center;gap:var(--mt-space-3)}.product-receipt .receipt-top svg{color:var(--primary)}.product-receipt p{font-size:12px;color:var(--muted)}.product-receipt pre{max-height:100px;overflow:auto;padding:12px;background:#f7f5fa;border-radius:8px;white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.6 monospace;margin:12px 0}.product-receipt summary{font-size:12px;min-height:44px;padding:10px 0;color:var(--muted)}.product-receipt-actions{display:flex;align-items:center;gap:var(--mt-space-3);flex-wrap:wrap;margin-top:var(--mt-space-3)}
#studioView .product-flow-footer{position:fixed;z-index:40;bottom:0;left:0;right:0;width:100%;display:flex;justify-content:space-between;align-items:center;flex-wrap:nowrap;gap:24px;min-height:86px;margin:0;padding:16px max(24px,calc((100vw - 1000px)/2)) calc(16px + env(safe-area-inset-bottom,0px));background:#fdfcfff5;border:0;border-top:1px solid var(--line,#e9e5ef);border-radius:0;box-shadow:none;backdrop-filter:blur(18px)}
.product-flow-footer>div{min-width:0;display:flex;flex-direction:column}.product-flow-footer strong{font-weight:500;font-size:14px}.product-flow-footer span{font-size:12px;color:var(--muted)}#studioView .product-flow-footer>.btn{flex:none;width:auto;min-width:0;max-width:60%;margin:0}
.product-preview-heading{margin:0 0 28px}.product-preview-heading h1{font-size:48px;margin:12px 0}.product-preview-heading p{color:var(--muted)}.product-result{display:grid;grid-template-columns:1fr 1fr;gap:64px;padding-bottom:130px}
.product-app-details .personalize-identity{display:flex;align-items:flex-start;gap:22px;padding:0;border:0;background:none;margin:0}.product-app-details .personalize-app-preview{width:100px;flex:0 0 100px;padding:0;background:none;min-height:0}.product-icon-edit{padding:0;border:0;border-radius:24%;background:none}.product-app-details #customIconPreview{display:block;width:64px;height:64px;border-radius:24%;box-shadow:none;margin:auto}.product-app-details #customNamePreview{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;margin-top:8px;text-align:center}.product-app-details .personalize-name{padding:0;flex:1;min-width:0}.product-app-details .label-row{display:flex;justify-content:space-between;gap:8px}.product-app-details #appName{width:100%;margin-top:6px;padding:11px 12px;border:1px solid var(--line,#e9e5ef);border-radius:12px;font-size:18px;min-height:48px;background:white}.product-app-details .field-label,.product-app-details #nameCount{font-size:12px;color:var(--muted);margin:0}.product-app-details #nameHelp{font-size:11px;line-height:1.55;color:var(--muted);margin-top:7px}.product-cost-note{padding-top:24px;margin-top:24px;border-top:1px solid var(--line,#e9e5ef);color:var(--muted);font-size:13px;line-height:1.7}
.product-preview-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.product-preview-top strong{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:500}.product-live-dot{width:6px;height:6px;border-radius:50%;background:#713dec}.product-phone-frame{position:relative;isolation:isolate;width:min(100%,300px);height:560px;max-height:calc(100dvh - 260px);min-height:280px;margin:auto;aspect-ratio:433/882;filter:drop-shadow(0 5px 9px #21192e18)}.product-preview-device iframe{width:100%;height:100%;border:0;display:block;background:#fff}.product-preview-device .preview-loader{position:absolute;inset:0;display:flex;flex-direction:column;gap:12px;align-items:center;justify-content:center;background:white;font-size:14px;text-align:center}.product-preview>.product-private{justify-content:center}
dialog.product-sheet,dialog#accountDialog{width:min(560px,calc(100vw - 40px));max-width:none;max-height:calc(var(--visible-height,100dvh) - 48px);border:1px solid var(--line,#e9e5ef);border-radius:24px;background:#fff;padding:0;color:var(--ink)}
.product-sheet .dialog-header,#accountDialog .dialog-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:24px 28px 0}.product-sheet .dialog-header h2,#accountDialog .dialog-header h2{font-size:22px;letter-spacing:-.02em;line-height:1.3}.product-sheet .dialog-body,#accountDialog .dialog-body{padding:24px 28px;max-height:none;overflow:visible}.product-sheet>footer{padding:16px 28px;border-top:1px solid var(--line,#e9e5ef);display:flex;justify-content:flex-end}.product-sheet .icon-mode-tabs{display:flex;gap:16px;margin-bottom:24px}.product-sheet .icon-mode-tab{min-height:44px;border:0;border-bottom:2px solid transparent;background:none;font-size:13px;color:var(--muted);padding:8px 0;flex:1}.product-sheet .icon-mode-tab[aria-selected=true]{border-bottom-color:var(--primary);color:var(--primary)}.product-sheet .icon-prompt{margin-top:24px}.product-sheet .icon-prompt textarea{width:100%;min-height:160px;font:13px/1.6 var(--mt-font-ui);padding:16px;border:0;border-radius:14px;background:#f6f3fa}.product-sheet .field-help{font-size:13px;line-height:1.65}.product-sheet .color-picker{display:flex;flex-wrap:wrap;gap:10px}.product-sheet .sample-icon-trigger{width:100%}.product-sheet .zip-icon-thumb{width:44px;height:44px;border-radius:12px}.product-sheet .transfer-actions{display:grid;gap:12px}.product-sheet .transfer-actions details{padding:12px 0;border-block:1px solid var(--line,#e9e5ef)}.product-sheet .transfer-actions details .btn{width:100%;margin-top:12px}.product-sheet .transfer-actions summary{min-height:44px;padding:10px 0}.product-app-detail{display:flex;flex-direction:column;align-items:center;gap:12px;margin-bottom:24px}.product-app-detail img{width:64px;height:64px;border-radius:24%}.product-app-detail h3{font-size:24px;margin:0}.product-app-detail p{font-size:13px;color:var(--muted)}
.product-library-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:28px}.product-library-heading h1{font-size:40px;margin:0}.product-library-heading p{font-size:13px;color:var(--muted);margin-top:10px}.product-library-heading>div:last-child{display:flex;gap:12px;align-items:center}.product-library-heading .icon-button{background:#f1eff5;border-radius:50%;flex:none}.product-account-summary{margin-bottom:28px}.product-account-summary>h2{font-size:14px;color:var(--muted);margin-bottom:12px}.product-account-summary:has(.product-account-access)>h2{display:none}.product-account-access{padding:28px;border:1px solid #e8def4;border-radius:20px;background:linear-gradient(120deg,#f3edfc,#fff)}.product-gift{display:inline-flex;align-items:center;gap:7px;font-size:12px;color:var(--primary)}.product-account-access h2{font-size:32px;font-weight:600;letter-spacing:-.035em;margin:16px 0 10px}.product-account-access p{max-width:440px;color:var(--muted);font-size:14px}.product-account-access small{display:block;font-size:11px;color:var(--muted);margin:10px 0 18px}.product-account-access>div{display:flex;gap:10px;flex-wrap:wrap}.product-account-access footer{display:flex;gap:8px;align-items:center;border-top:1px solid #e8def4;margin-top:24px;padding-top:18px;color:var(--muted);font-size:12px}
.product-collection{padding:24px;border:1px solid var(--line,#e9e5ef);border-radius:20px;background:#fff}.product-collection>header{display:flex;align-items:center;justify-content:space-between;gap:16px}.product-collection>header>div{display:flex;gap:14px}.product-collection h2{font-size:14px;font-weight:500;margin:0}.product-library-filters{gap:24px;margin-top:10px}.product-library-filters>button{font-size:12px}.product-app-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:24px 16px;margin-top:24px}.product-app-tile{position:relative;text-align:center;min-width:0}.product-app-open{display:flex;align-items:center;flex-direction:column;gap:10px;width:100%;padding:4px;border:0;background:none;color:var(--ink);min-width:0}.product-app-icon{position:relative}.product-app-icon img{display:block;width:60px;height:60px;border-radius:24%;box-shadow:0 4px 12px #21192e0b}.product-app-icon>span{position:absolute;right:-5px;bottom:-4px;background:#fff;border:1px solid var(--line);padding:4px;border-radius:50%;display:flex}.product-app-open strong{font-size:12px;font-weight:500;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.product-app-options{min-height:28px;min-width:44px;padding:2px 8px;border:0;background:none;color:var(--muted)}.product-app-tile>small{display:block;font-size:11px;color:var(--primary)}.product-app-tile.is-archived{opacity:.65}.product-empty{grid-column:1/-1;padding:28px 4px}.product-empty h2{font-size:26px;letter-spacing:-.025em;font-weight:600;margin:0 0 10px}.product-empty p{color:var(--muted);font-size:14px;max-width:420px;margin-bottom:18px}.product-examples-disclosure{margin-top:28px;border-block:1px solid var(--line,#e9e5ef)}.product-examples-disclosure>summary{padding:18px 0;font-size:13px;min-height:54px}.product-examples-disclosure .product-examples{border:0;margin:0;padding:12px 0 20px}.product-example-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.product-library .library-tools{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-top:24px}.product-library .library-tools label{font-size:12px;color:var(--muted)}.product-library .library-tools select{font:inherit;min-height:44px;border:1px solid var(--line);border-radius:10px;padding:8px;background:white}.product-account-summary .library-account-billing{background:white;border:1px solid var(--line);border-radius:20px;padding:24px}.product-account-summary .library-account-identity,.library-account-email{font-size:13px}.product-account-summary .billing-summary-stats{display:flex;align-items:center;justify-content:space-between;gap:20px}.product-account-summary .billing-summary-stats h3{font-size:14px}.product-account-summary .billing-summary-stats h3 strong{font-size:42px;font-weight:500}.product-account-summary .billing-credit-breakdown{font-size:12px;color:var(--muted)}
#accountDialog .eyebrow{display:none}#accountDialog .dialog-header h2{font-size:16px;color:var(--muted);font-weight:500}.product-auth-tabs{padding:4px;background:#f2f0f6;border:0;border-radius:999px;gap:4px;margin-bottom:26px}.product-auth-tabs>button{flex:1;border:0;border-radius:999px;min-height:40px;padding:8px 16px}.product-auth-tabs>button[aria-selected=true]{color:var(--primary);background:white;box-shadow:0 2px 6px #21192e08}.product-auth-heading h3{font-size:34px;margin:0 0 12px}.product-auth-heading p{color:var(--muted);font-size:14px;line-height:1.6;margin:0 0 16px}.product-auth-benefit{display:flex;gap:12px;align-items:center;padding:16px;background:#f5f0fc;border:1px solid #e9dff8;border-radius:14px;margin:22px 0}.product-auth-benefit>svg{color:var(--primary);flex:none}.product-auth-benefit strong{font-size:14px;font-weight:500;display:block}.product-auth-benefit span{display:block;font-size:12px;color:var(--muted);margin-top:3px}.product-auth .field-label{font-size:13px;margin:16px 0 8px}.product-auth input.text-input{width:100%;min-height:50px;font-size:16px;border:1px solid var(--line,#e9e5ef);border-radius:12px;background:white;padding:12px 14px}.product-auth input:focus{border-color:var(--primary)}.product-auth-hint{font-size:12px!important;color:var(--muted);margin:9px 0 22px}.product-auth .full{width:100%;margin-top:16px}.product-auth-policies{text-align:center;font-size:12px!important;color:var(--muted);margin:16px 0}.product-auth-policies a{color:inherit;text-decoration:underline;text-underline-offset:3px}.product-auth>.product-private{border-top:1px solid var(--line,#e9e5ef);margin:24px 0 0;padding-top:18px;font-size:12px}.product-code-symbol{display:grid;place-items:center;background:#f1ebfc;color:var(--primary);width:54px;height:54px;border-radius:50%;margin:0 auto 20px}#accountCodeForm .product-auth-heading{text-align:center}#authCodeEmail{display:block;font-size:14px;overflow-wrap:anywhere;margin-bottom:14px}.product-auth .product-code-input{text-align:center;letter-spacing:.2em;font-size:24px}.product-resend{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:var(--muted);margin-top:16px}.product-resend button{font-size:12px;color:var(--primary)}#accountMessage{font-size:13px;line-height:1.6;margin-top:16px}
@media(max-width:760px){
 #studioView.app-view,#libraryView.app-view{padding-top:18px;height:auto;overflow:visible;min-height:calc(100dvh - 70px)}#studioView>.app-container,#libraryView>.app-container{width:calc(100% - 40px);max-width:none;height:auto;padding:0}.product-studio-heading{grid-template-columns:minmax(50px,1fr) auto minmax(50px,1fr);gap:8px 4px;margin-bottom:20px}.product-studio-heading h1{font-size:24px}.product-studio-heading p{font-size:13px}.product-back{font-size:13px}.product-input{padding-bottom:110px}.product-tabs{gap:24px}.product-tabs>button{font-size:13px}.studio-example-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.studio-example-grid .product-example{flex-direction:row;gap:8px;text-align:left;padding:5px 0;min-height:50px}.studio-example-grid .product-example img{width:30px;height:30px}.studio-example-grid .product-example strong{font-size:11px}.product-examples{margin-top:24px;padding-top:22px}.product-upload{min-height:270px}.product-upload h2{font-size:24px}
 #studioView .product-flow-footer{gap:12px;padding:12px 18px calc(12px + env(safe-area-inset-bottom,0px));min-height:80px}.product-flow-footer strong{font-size:13px}.product-flow-footer span{font-size:11px;line-height:1.4;max-width:135px}#studioView .product-flow-footer>.btn{font-size:13px;min-height:48px;padding:11px 17px;flex:none;min-width:0;max-width:60%}body[data-view=create] #homepageDock{display:none}
 .product-preview-heading{margin:0 0 10px}.product-preview-heading h1,.product-preview-heading p{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.product-result{display:flex;flex-direction:column;gap:8px;padding-bottom:100px}.product-app-details .personalize-identity{gap:16px}.product-app-details .personalize-app-preview{flex-basis:84px;width:84px}.product-app-details #appName{font-size:17px}.product-cost-note{display:none}.product-preview-top{margin-bottom:4px}.product-phone-frame{width:min(100%,calc((100dvh - 360px)*.5));height:auto;aspect-ratio:433/882;min-height:0;max-height:none}.product-preview-device iframe{position:absolute;inset:0}.product-preview>.product-private{font-size:11px}.product-library-heading{gap:12px;margin-bottom:24px}.product-library-heading h1{font-size:32px}.product-library-heading>div:last-child{gap:8px}.product-library-heading .btn{font-size:12px;min-height:44px;padding:10px 14px}.product-library-heading p{font-size:12px}.product-collection{padding:18px}.product-app-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 10px}.product-account-access{padding:var(--mt-space-5) var(--mt-space-5)}.product-account-access h2{font-size:28px;line-height:1.2;margin:var(--mt-space-3) 0 var(--mt-space-2)}.product-account-access p{font-size:13px}.product-example-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 5px}.product-example-grid .product-example{gap:9px;padding:8px 0}.product-example-grid .product-example img{width:35px;height:35px}.product-example-grid .product-example strong{font-size:12px}.product-example-grid .product-example small{font-size:10px}.product-library .library-tools{flex-wrap:wrap}.product-account-summary .library-account-billing{padding:18px}.product-account-summary .billing-summary-stats{flex-wrap:wrap}
 dialog.product-sheet,dialog#accountDialog{position:fixed;inset:auto 0 max(0px,var(--keyboard-inset,0px));margin:0;width:100%;max-width:100%;max-height:calc(var(--visible-height,100dvh) - 20px);border-radius:24px 24px 0 0;padding-bottom:env(safe-area-inset-bottom,0px)}.product-sheet .dialog-header,#accountDialog .dialog-header{padding:22px 22px 0}.product-sheet .dialog-body,#accountDialog .dialog-body{padding:22px}.product-sheet>footer{padding:14px 22px}.product-auth-heading h3{font-size:clamp(25px,7vw,30px);margin-bottom:var(--mt-space-2)}.product-auth-benefit{margin:var(--mt-space-4) 0;padding:var(--mt-space-3)}.product-auth-tabs{margin-bottom:var(--mt-space-5)}.product-auth-hint{margin:var(--mt-space-2) 0 var(--mt-space-4)}.product-auth .full{margin-top:var(--mt-space-2)}.product-auth-policies{margin:var(--mt-space-3) 0}
}
@media(max-width:360px){#studioView>.app-container,#libraryView>.app-container{width:calc(100% - 32px)}.product-studio-heading h1{font-size:21px}.product-flow-footer span{max-width:100px}.product-library-heading .btn{font-size:11px;padding-inline:10px}.product-library-heading h1{font-size:28px}.product-phone-frame{width:min(100%,calc((100dvh - 360px)*.5))}}
@media(prefers-reduced-motion:reduce){.product-studio *,.product-library *,.product-auth *{animation:none!important;transition:none!important}}

/* Replace the retired immersive-step shell only on the new composition. */
body[data-view="create"][data-step] #studioView:has(.product-studio){padding-top:24px;background:#fcfbff}
body[data-view="create"][data-step] #studioView>.app-container:has(.product-studio){width:calc(100% - 64px);max-width:1000px;margin:auto}
body[data-view="create"][data-step] #studioView .product-flow-footer{inset:auto 0 var(--keyboard-inset,0px)}
.product-studio,.product-library,.product-auth,.product-sheet{--primary:#713dec}
.product-tabs>button[aria-selected=true],.product-tabs>button[aria-pressed=true]{color:#713dec;border-bottom-color:#713dec}
.product-preview-device iframe{width:390px;height:780px;max-width:none;position:absolute;top:0;left:0;transform-origin:0 0;transform:scale(var(--product-preview-scale,.74))}
@media(max-width:760px){body[data-view="create"][data-step] #studioView:has(.product-studio){padding-top:12px}body[data-view="create"][data-step] #studioView>.app-container:has(.product-studio){width:calc(100% - 40px);max-width:none}.product-phone-frame{width:min(100%,calc((100dvh - 405px)*.5));}.product-preview-top{margin-top:0}.product-app-details #nameHelp{font-size:11px;line-height:1.5}.product-app-details #customIconPreview{width:64px;height:64px}.product-auth-tabs>button[aria-selected=true]{border:0}.product-phone-frame{max-width:100%}}
#studioView .product-app-details .personalize-identity{display:flex;align-items:flex-start;gap:20px;padding:0;margin:0;grid-template-columns:none}
#studioView .product-app-details .personalize-app-preview{--preview-icon:64px;width:100px;flex:0 0 100px;gap:0;overflow:hidden}
#studioView .product-app-details .personalize-app-preview img{width:64px;height:64px;border-radius:24%}
#studioView .product-app-details .personalize-app-preview span{font-size:13px;line-height:1.3;margin-top:8px}
#accountDialog .product-auth form{display:block;gap:0;margin:0}
#accountDialog .product-auth .field-label{display:block;margin:16px 0 8px}
#accountDialog .product-auth .btn{margin-top:16px}
@media(max-width:760px){#studioView .product-app-details .personalize-app-preview{width:84px;flex-basis:84px}#studioView .product-app-details .personalize-identity{gap:16px}}
.product-preferences{border-top:1px solid var(--line,#e9e5ef);padding-top:24px;margin-top:24px}.product-preferences h3{font-size:14px;font-weight:500;margin:0 0 8px}.product-preferences>div{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:60px;font-size:14px}.product-preferences input{accent-color:var(--primary);width:22px;height:22px}.product-preferences .mt-language-menu{bottom:calc(100% + 8px);top:auto;right:0}.product-reduce-motion *,.product-reduce-motion *:before,.product-reduce-motion *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
#accountIdentity{padding:12px 0}#accountIdentity #accountEmailDisplay{font-size:20px;font-weight:500}#accountIdentity #accountPlanStatus{font-size:13px;color:var(--muted);margin-bottom:22px}#accountIdentity .btn{border-radius:var(--mt-radius-pill);min-height:48px;margin-top:12px;font-size:14px}
.product-account-summary #creditsDialog .library-account-billing{padding:22px;border:0;border-radius:0}.product-account-summary #libraryAccountIdentity:empty{display:none}
@media(min-width:761px){.product-phone-frame{width:min(300px,calc((100dvh - 420px)*.5));height:auto;aspect-ratio:433/882;min-height:0;max-height:none}}

/* Demo guest composition: examples are the next step when no local apps exist. */
.product-library.is-empty-guest .product-collection,.product-library.is-empty-guest .product-library-heading [data-action="create"]{display:none}
.product-library .product-example-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 32px}
.product-library .product-example-grid .product-example{border-radius:0;border-bottom:1px solid var(--line);padding:18px 0;gap:16px}
.product-library .product-example-grid .product-example strong{font-size:16px}.product-library .product-example-grid .product-example small{font-size:12px;margin-top:5px;line-height:1.6}
.product-library .product-example-grid .product-example img{width:40px;height:40px}
.product-library .product-examples-disclosure .product-examples{border:0;margin:0;padding:6px 0}.product-library .product-examples-disclosure .product-examples>h2{display:none}
@media(max-width:760px){.product-library .product-example-grid{grid-template-columns:1fr}.product-library.is-empty-guest .product-library-heading{margin-bottom:16px}}

/* Account presentation owns its width and spacing, not the retired summary shell. */
#libraryView .product-account-summary{background:transparent}
.product-account-summary #libraryAccountIdentity{display:block}
.product-account-summary #libraryAccountIdentity:empty{display:none}
body[data-view="library"] #libraryView:has(.product-library){padding-top:24px}
@media(min-width:1024px){.product-library .product-example-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){body[data-view="library"] #libraryView:has(.product-library){padding-top:18px}}

/* Task-screen refinements share the production and component-preview source. */
body[data-view="create"] #homepageFooter{display:none}
body[data-view="create"] #studioView.app-view{min-height:0;padding-bottom:calc(110px + env(safe-area-inset-bottom,0px))}
#studioView .product-result{padding-bottom:0;align-items:start}
#studioView .product-app-details .personalize-app-preview{overflow:visible}
#studioView .product-icon-edit{display:inline-flex;flex-direction:column;align-items:center;gap:8px;padding:6px;border-radius:14px;overflow:visible;color:var(--primary);min-width:76px;background:transparent}
.product-edit-label{display:flex;align-items:center;gap:4px;white-space:nowrap;font-size:12px;line-height:1.4}
/* Show the home-screen name preview beneath the icon in the editor. */
.product-fullscreen{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:10px;background:white;color:var(--ink);font:500 13px/1.4 var(--mt-font-ui);white-space:nowrap}
.product-fullscreen svg{width:17px;height:17px}
#studioView #studioCreditSummary{gap:3px}#studioCreditSummary strong{font-size:18px}#studioCreditSummary span{font-size:12px}
.product-dashboard{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
.product-dashboard .product-account-summary{margin:0}.product-dashboard .product-collection{min-width:0}
.product-credit-dashboard{width:100%;max-width:none;padding:20px;border:1px solid var(--line);border-radius:18px;background:#fff;color:var(--ink);text-align:left;font:inherit;display:grid;gap:12px}
.product-credit-heading{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;color:var(--ink)}
.product-credit-heading>strong{font:600 20px/1.3 var(--mt-font-ui);padding:0;border-radius:0;background:none;color:var(--ink)}
.product-plan-badge{font-size:12px;line-height:1.5;color:var(--primary);padding:5px 8px;border-radius:8px;background:var(--mt-soft);max-width:60%;text-align:right}
.product-credit-value{font-size:15px;color:var(--muted)}.product-credit-value strong{font-family:var(--mt-font-display);font-size:32px;line-height:1.1;color:var(--ink);font-weight:600;margin-right:5px}
.product-credit-meter{height:10px;border-radius:99px;background:var(--primary);display:block}
.product-credit-sources{display:block;font-size:12px;color:var(--muted)}.product-credit-expiry{font-size:13px;line-height:1.5;color:var(--muted)}
.product-credit-footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);color:var(--primary);font-size:12px;margin-top:2px;padding-top:14px}
.product-library-heading h1:focus{outline:none}
.product-library .product-collection{border:0;padding:8px 0;background:transparent;border-radius:0}
.product-library .product-library-filters{gap:20px;margin-bottom:16px}.product-library-filters>button{font-size:14px}
.product-library .product-app-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:24px 12px}
@media(min-width:1000px){
 .product-library.is-authenticated .product-dashboard{grid-template-columns:minmax(0,1.5fr) minmax(300px,.8fr);gap:24px;align-items:start}
 .product-library.is-authenticated .product-account-summary{grid-column:2;grid-row:1}
 .product-library.is-authenticated .product-collection{grid-column:1;grid-row:1;border:1px solid var(--line);border-radius:18px;padding:20px;background:white;min-height:285px}
}
@media(max-width:760px){
 .product-library-heading h1{font-size:28px}.product-library-heading{margin-bottom:20px}
 .product-credit-dashboard{padding:20px;margin-bottom:12px}.product-credit-heading>strong{font-size:18px}
 .product-library .product-app-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.product-app-icon img{width:56px;height:56px}
}
@media(max-width:360px){.product-library .product-app-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.product-credit-heading>strong{font-size:16px}}
/* One close target and header spacing for all host-owned sheets. */
body dialog:not(#fullscreenDialog):not(:where(.install-scan-dialog))>:is(header,.dialog-header,.sample-icon-header){display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;flex-shrink:0}
body dialog:not(#fullscreenDialog)>:is(header,.dialog-header,.sample-icon-header) h2{margin:0;min-width:0;flex:1;font-size:22px;line-height:1.3}
body dialog:not(#fullscreenDialog)>:is(header,.dialog-header,.sample-icon-header)>form{margin:0;flex:none}
body dialog:not(#fullscreenDialog) :is(.icon-button[data-action="closeDialog"],.icon-button[data-action="closeAppearance"],.sheet-close,#sampleIconSheet form button){display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;min-height:44px;flex:none;padding:0;margin:0;border:0;border-radius:12px;background:transparent;color:var(--ink);font-size:0;line-height:1;box-sizing:border-box}
body dialog:not(#fullscreenDialog) :is(.icon-button[data-action="closeDialog"],.icon-button[data-action="closeAppearance"],.sheet-close,#sampleIconSheet form button)>:is(svg,span){display:none}
body dialog:not(#fullscreenDialog) :is(.icon-button[data-action="closeDialog"],.icon-button[data-action="closeAppearance"],.sheet-close,#sampleIconSheet form button)::after{content:"";display:block;width:20px;height:20px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20class%3D%22phosphor-icon%22%20data-icon-family%3D%22phosphor%22%20data-phosphor-name%3D%22x%22%20data-phosphor-version%3D%222.1.1%22%20data-icon-weight%3D%22regular%22%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%20256%20256%22%20fill%3D%22%23000%22%20stroke%3D%22none%22%20aria-hidden%3D%22true%22%20focusable%3D%22false%22%3E%3Cg%20class%3D%22icon-default%22%20data-phosphor-weight%3D%22regular%22%3E%3Cpath%20d%3D%22M205.66%2C194.34a8%2C8%2C0%2C0%2C1-11.32%2C11.32L128%2C139.31%2C61.66%2C205.66a8%2C8%2C0%2C0%2C1-11.32-11.32L116.69%2C128%2C50.34%2C61.66A8%2C8%2C0%2C0%2C1%2C61.66%2C50.34L128%2C116.69l66.34-66.35a8%2C8%2C0%2C0%2C1%2C11.32%2C11.32L139.31%2C128Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") center/contain no-repeat;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20class%3D%22phosphor-icon%22%20data-icon-family%3D%22phosphor%22%20data-phosphor-name%3D%22x%22%20data-phosphor-version%3D%222.1.1%22%20data-icon-weight%3D%22regular%22%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%20256%20256%22%20fill%3D%22%23000%22%20stroke%3D%22none%22%20aria-hidden%3D%22true%22%20focusable%3D%22false%22%3E%3Cg%20class%3D%22icon-default%22%20data-phosphor-weight%3D%22regular%22%3E%3Cpath%20d%3D%22M205.66%2C194.34a8%2C8%2C0%2C0%2C1-11.32%2C11.32L128%2C139.31%2C61.66%2C205.66a8%2C8%2C0%2C0%2C1-11.32-11.32L116.69%2C128%2C50.34%2C61.66A8%2C8%2C0%2C0%2C1%2C61.66%2C50.34L128%2C116.69l66.34-66.35a8%2C8%2C0%2C0%2C1%2C11.32%2C11.32L139.31%2C128Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") center/contain no-repeat}

.product-credit-meter.is-empty{background:var(--mt-soft,#f4eefc)}

@media(max-width:760px){#studioView .product-result{align-items:stretch}}
/* Demo v24 My Apps / Account geometry. Data and actions remain host-owned. */
.product-library-heading{align-items:flex-start;gap:var(--mt-space-3);margin-bottom:var(--mt-space-5)}.product-library-heading h1{font-size:32px;line-height:1.12;letter-spacing:-.04em}.product-library-heading p{margin:0;font-size:12px;line-height:1.45}.product-library-heading>div:last-child{display:flex;flex-direction:column;align-items:flex-start;min-width:0;gap:var(--mt-space-1)}.product-library-heading [data-action=accountSettings]{width:44px;height:44px;min-width:44px;background:transparent;border:0;color:var(--muted)}
.product-dashboard{gap:12px}.product-library .product-collection{padding:0}.product-collection>header{margin:0 0 4px}.product-collection>header h2{font:500 14px/1.5 var(--mt-font-ui)}.product-collection>header>div{gap:8px}.product-collection #librarySearchToggle{width:44px;height:44px;background:none;border:0;color:var(--muted)}.product-collection [data-action=manageApps]{color:var(--primary);font-size:13px;padding:0 8px}
.product-library .product-library-filters{gap:20px;margin:4px 0 16px}.product-library-filters>button{gap:6px;min-height:44px;font-size:14px;padding:0 2px;color:var(--muted)}.product-library .product-library-filters>button[aria-pressed=true]{color:var(--ink);font-weight:500}.product-filter-count{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
#productArchiveHelp{font-size:14px;line-height:1.5;color:var(--muted);margin:0 0 14px}
.product-library .product-app-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:24px 16px;padding:8px 0 20px;max-width:800px}.product-app-open{gap:10px;padding:6px 0;border-radius:12px}.product-app-open:hover{background:var(--mt-soft)}.product-app-icon{display:block;position:relative;width:60px;height:60px;flex:none}.product-app-icon img{width:60px;height:60px;box-shadow:0 3px 9px #2417310d}.product-app-open>strong{font:400 12px/1.4 var(--mt-font-ui);max-width:100%;padding:0 2px}.product-app-icon>span{position:absolute;right:-5px;top:-5px;display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:white;color:var(--primary);border:1px solid var(--line)}
.product-empty{position:relative;padding:24px 0 32px}.product-empty h2{font:500 27px/1.25 var(--mt-font-display);letter-spacing:-.025em;margin:0}.product-empty p{font-size:14px;line-height:1.65;margin:var(--mt-space-2) 0 0;max-width:36ch}.product-text-link{display:inline-flex;align-items:center;gap:7px;min-height:44px;border:0;padding:0;background:none;color:var(--primary);font:500 14px/1.5 var(--mt-font-ui);cursor:pointer}.product-empty>.product-text-link{margin-top:var(--mt-space-4)}.product-empty>.btn{margin-top:var(--mt-space-5);min-width:0;max-width:100%}
/* Zero saved apps: one primary creation CTA, no inert search or all-zero filter tabs. */
.product-library.is-zero-apps .product-collection>header,.product-library.is-zero-apps .product-library-filters{display:none}
.product-library.is-zero-apps .product-app-grid{margin-top:0;padding-top:0}
/* ID-scoped Library legacy rules require a stronger empty-state selector. */
#libraryView .product-library.is-zero-apps .library-tools label{display:none}
#libraryView .product-library.is-zero-apps>.product-private{display:none}
.product-library.is-zero-apps .product-empty{padding:var(--mt-space-4) 0 var(--mt-space-6)}
/* Phone task hierarchy: the owned App list/empty CTA leads; balance is secondary.
   Desktop grid and unauthenticated discovery retain their own established order. */
@media(max-width:760px){
 .product-library.is-authenticated .product-dashboard .product-collection{grid-row:1}
 .product-library.is-authenticated .product-dashboard .product-account-summary{grid-row:2}
 .product-library.is-authenticated .product-dashboard{row-gap:var(--mt-space-5)}
 #libraryView .product-library .library-tools{margin-top:var(--mt-space-3);padding-top:var(--mt-space-3)}
}

.product-credit-dashboard{gap:16px;margin:8px 0 12px}.product-credit-summary{display:grid;gap:12px;width:100%;text-align:left;color:var(--ink)}.product-credit-heading{align-items:center}.product-credit-heading>strong{font:600 20px/1.3 var(--mt-font-display)}.product-plan-badge{font:500 12px/1.5 var(--mt-font-ui);white-space:nowrap;border-radius:8px;padding:5px 8px;max-width:none}.product-credit-value{display:flex;align-items:baseline;gap:6px;font-size:16px}.product-credit-value strong{margin:0;font:600 32px/1.1 var(--mt-font-display)}.product-credit-meter{height:10px;background:var(--mt-soft);overflow:hidden}.product-credit-meter>span{display:block;height:100%;border-radius:inherit;background:var(--primary)}.product-credit-meter.is-empty>span{width:0}.product-credit-expiry{display:flex;align-items:center;gap:7px;font-size:14px;line-height:1.5;color:var(--muted)}.product-credit-expiry svg{flex-shrink:0}.product-credit-footer{gap:12px;font-size:13px;font-weight:500;line-height:1.5;padding-top:12px;margin:0;flex-wrap:wrap;color:var(--muted)}.product-credit-footer>span:last-child{margin-left:auto;display:flex;align-items:center;gap:5px;color:var(--primary)}.product-credit-footer svg{width:13px;height:13px}
.product-examples-disclosure{margin-top:24px;border:0;border-top:1px solid var(--line)}.product-examples-disclosure>summary{min-height:56px;padding:0;display:flex;align-items:center;gap:8px;list-style:none;font-size:14px;cursor:pointer}.product-examples-disclosure>summary::-webkit-details-marker{display:none}.product-examples-disclosure>summary>small{font-size:12px;color:var(--muted)}.product-examples-disclosure>summary>svg{margin-left:auto;color:var(--muted)}.product-examples-disclosure[open]>summary>svg{transform:rotate(180deg)}
.product-library .product-example-grid{gap:0 25px}.product-library .product-example-grid .product-example{min-height:80px;padding:18px 0;gap:12px}.product-library .product-example-grid .product-example img{width:39px;height:39px}.product-library .product-example-grid .product-example strong{font:500 16px/1.3 var(--mt-font-display);letter-spacing:-.015em}.product-library .product-example-grid .product-example small{font-size:12px;line-height:1.5;margin-top:4px}.product-library>.product-private{font-size:11px;margin-top:16px;justify-content:flex-start}
@media(min-width:1000px){.product-library.is-authenticated .product-dashboard{gap:24px}.product-library .product-credit-dashboard{margin:0}.product-library .product-app-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.product-library .product-empty{padding:16px 0}.product-empty h2{font-size:24px}}
@media(max-width:760px){.product-library-heading h1{font-size:28px}.product-library-heading>div:last-child{gap:var(--mt-space-1)}.product-library-heading .btn{padding-inline:12px;font-size:12px;min-height:44px}.product-library .product-app-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px 12px;max-width:none}.product-credit-heading>strong{font-size:20px}.product-empty{padding:16px 0 24px}.product-empty h2{font-size:23px}}
@media(max-width:360px){.product-library-heading h1{font-size:25px}.product-library-heading p{font-size:11px}.product-library-heading .btn{padding-inline:10px}.product-app-icon,.product-app-icon img{width:52px;height:52px}.product-app-open>strong{font-size:11px}.product-library .product-app-grid{gap:16px 6px}.product-credit-heading>strong{font-size:18px}.product-plan-badge{font-size:11px}.product-credit-dashboard{padding:16px}}
/* Account settings retains the globally approved globe language control. */
#accountDialog.product-settings-dialog .dialog-header h2{font:600 22px/1.3 var(--mt-font-display);color:var(--ink)}
#accountDialog #accountIdentity{padding:0}.product-account-identity{display:flex;align-items:center;gap:15px;padding:2px 0 23px}.product-account-avatar{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;border:1px solid var(--line);border-radius:50%;background:var(--mt-soft);color:var(--primary)}.product-account-identity>div{min-width:0}.product-account-identity h3{font:600 23px/1.3 var(--mt-font-display);letter-spacing:-.025em;margin:0}#accountDialog .product-account-identity #accountEmailDisplay{font-size:13px;font-weight:400;color:var(--muted);line-height:1.6;margin:5px 0 0;overflow-wrap:anywhere}
#accountDialog .product-settings{border:0;padding:0;margin:0;color:var(--ink)}.product-settings-group{border-top:1px solid var(--line);padding-top:21px;margin-top:5px}.product-settings-group>h4{font:500 12px/1.5 var(--mt-font-ui);color:var(--muted);margin:0}.product-setting-row{display:flex;gap:12px;align-items:center;padding:10px 0;min-height:77px}.product-setting-row>svg{color:var(--muted);flex-shrink:0}.product-setting-row>div:first-of-type,.product-setting-row>.product-motion-label{min-width:0;flex:1}.product-setting-row h3,.product-motion-label strong{display:block;font:500 14px/1.5 var(--mt-font-ui);letter-spacing:0;margin:0}.product-motion-label span{display:block;font-size:12px;color:var(--muted);margin-top:4px;line-height:1.5}.product-settings .mt-language-control{flex:0 0 auto}.product-settings .mt-language-menu{top:auto;bottom:calc(100% + 8px);right:0}
.product-settings .product-switch{appearance:none;-webkit-appearance:none;width:44px;height:26px;min-width:44px;flex:none;border:0;border-radius:999px;background:#ded9e6;padding:3px;position:relative;cursor:pointer}.product-switch:before{content:"";display:block;width:20px;height:20px;border-radius:50%;background:white;box-shadow:0 1px 3px #21192e26}.product-settings .product-switch:checked{background:var(--primary)}.product-switch:checked:before{transform:translateX(18px)}.product-motion-label{padding-block:6px;cursor:pointer}
.product-guest-intro{margin:0 0 19px;font-size:13px;line-height:1.75;color:var(--muted);max-width:420px}.product-guest-access{border-top:1px solid var(--line);padding-top:24px;margin-top:6px}.product-guest-access h3{font:600 22px/1.3 var(--mt-font-display);letter-spacing:-.025em;margin:0}.product-guest-access>p{font-size:13px;line-height:1.7;color:var(--muted);margin:9px 0 0;max-width:420px}.product-guest-access>div{display:flex;gap:10px;margin-top:20px}.product-guest-access .btn{flex:1;min-width:0;min-height:44px;font-size:13px;padding-inline:15px;border-radius:var(--mt-radius-pill)}.product-guest-access .btn:first-child{flex:1.3}.product-settings .product-signout{margin-top:17px;color:var(--muted);font-size:14px}.product-settings .product-settings-note{display:flex;align-items:flex-start;gap:7px;font-size:12px;line-height:1.75;color:var(--muted);margin:18px 0 0;min-height:0}.product-settings-note>svg{margin-top:2px;flex-shrink:0}
@media(max-width:760px){.product-account-identity h3{font-size:22px}}
/* Expanded credits use the same summary as the My Apps dashboard. */
.product-credit-overview{display:grid;grid-template-columns:1fr;gap:22px;margin:0}.product-balance-panel{min-width:0;padding:20px 18px 0;background:white;border:1px solid var(--line);border-radius:18px}.product-balance-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 0}.product-balance-actions>.btn{min-height:44px;font-size:13px;padding-inline:15px}.product-balance-actions>.product-text-link{font-size:12px;white-space:nowrap}.product-source-details{border-top:1px solid var(--line);margin:0}.product-source-details>summary{display:flex;align-items:center;gap:10px;min-height:58px;font-size:13px;list-style:none;cursor:pointer}.product-source-details>summary::-webkit-details-marker{display:none}.product-source-details>summary>small{margin-left:auto;font-size:12px;color:var(--muted)}.product-source-details[open]>summary>svg{transform:rotate(180deg)}.product-source-list{display:flex;flex-direction:column;gap:21px;padding:4px 0 22px}.product-credit-source>div{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:13px}.product-credit-source>div>strong{font-weight:500}.product-credit-source>div>span{font-weight:500;font-size:14px}.product-credit-source small{font-weight:400;font-size:12px;color:var(--muted)}.product-source-meter{display:block;height:5px;background:var(--mt-soft);overflow:hidden;border-radius:99px;margin:10px 0 8px}.product-source-meter>span{display:block;height:100%;background:var(--primary);border-radius:inherit}.product-credit-source p{font-size:12px;line-height:1.7;color:var(--muted);margin:0}.product-credit-source.is-inactive{color:var(--muted)}.product-credit-cost{font-size:12px;line-height:1.7;color:var(--muted);padding-top:17px;border-top:1px solid var(--line);margin:0}.product-membership{border-top:1px solid var(--line);padding:15px 0 18px;font-size:12px;line-height:1.6;color:var(--muted)}.product-credit-history h3{display:flex;align-items:center;justify-content:space-between;font:600 20px/1.3 var(--mt-font-display);margin:0;padding-bottom:13px}.product-credit-history>p{margin:0;border-top:1px solid var(--line);padding:20px 0 14px;font-size:13px;line-height:1.75;color:var(--muted)}

#accountDialog #accountMessage:empty{display:none}#accountIdentity{text-align:left}.product-account-avatar svg{color:var(--primary)}

@media(max-width:760px){body dialog.product-sheet::before,body dialog.product-settings-dialog::before{content:"";position:absolute;top:10px;left:calc(50% - 16px);width:32px;height:4px;border-radius:99px;background:var(--line)}}
.product-example-item{display:flex;align-items:center;min-width:0;border-bottom:1px solid var(--line)}.product-library .product-example-item>.product-example{flex:1;min-width:0;border:0}.product-example-options{display:grid;place-items:center;width:44px;min-width:44px;height:44px;border:0;background:none;color:var(--muted);padding:0}
.product-app-details-sheet{color:var(--ink)}.product-detail-identity{display:flex;align-items:center;gap:16px;padding-bottom:12px}.product-detail-identity>img{width:58px;height:58px;border-radius:24%;flex:none}.product-detail-identity>div{min-width:0}.product-detail-identity h3{font:600 21px/1.3 var(--mt-font-display);margin:0;overflow-wrap:anywhere}.product-detail-identity p{font-size:13px;line-height:1.6;margin:6px 0 0;color:var(--muted)}.product-detail-badges{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:16px}.product-detail-badges>span{font-size:11px;padding:4px 8px;border-radius:8px;background:var(--mt-soft);color:var(--primary)}.product-detail-actions{display:flex;flex-direction:column;gap:10px}.product-detail-actions>.product-text-link{justify-content:center;font-size:14px}.product-detail-more{margin-top:16px;border-block:1px solid var(--line)}.product-detail-more>summary{min-height:56px;display:flex;align-items:center;justify-content:space-between;list-style:none;font-size:13px;cursor:pointer}.product-detail-more>summary::-webkit-details-marker{display:none}
.product-detail-more>summary>svg{flex:none;transform:rotate(0deg);transform-origin:center;transition:transform 160ms ease}
.product-detail-more[open]>summary>svg{transform:rotate(180deg)}
@media(prefers-reduced-motion:reduce){.product-detail-more>summary>svg{transition:none}}
.product-detail-more dl{margin:0 0 16px}.product-detail-more dl>div{display:flex;justify-content:space-between;gap:20px;font-size:13px;padding:8px 0}.product-detail-more dt{color:var(--muted)}.product-detail-more dd{margin:0;overflow-wrap:anywhere;text-align:right}.product-detail-archive{padding-top:16px}.product-detail-archive>.product-text-link{color:var(--muted);font-size:13px}.product-detail-archive p{margin:0;font-size:12px;color:var(--muted)}.product-detail-backups{display:grid;gap:12px;padding-bottom:16px}.product-detail-backups .btn{font-size:13px}
.product-detail-export-option{display:grid;gap:7px;min-width:0}
.product-detail-export-description,.product-detail-export-note{margin:0 2px;font:400 12px/1.65 var(--mt-font-ui);color:var(--muted);overflow-wrap:anywhere}
.product-detail-export-note{margin-block:4px 2px}
.product-detail-backups>.btn.danger{margin-top:5px}
.product-settings-section-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:5px}.product-settings-section-heading h4{font:500 12px/1.5 var(--mt-font-ui);color:var(--muted);margin:0}.product-settings-section-heading .product-plan-badge{font-size:11px}.product-renewal-status{display:flex;align-items:flex-start;gap:12px;padding:18px 0 7px}.product-renewal-status>svg{color:var(--muted);margin-top:2px;flex:none}.product-renewal-status strong{font-size:14px;font-weight:500;line-height:1.5}.product-renewal-status p{font-size:12px;color:var(--muted);line-height:1.7;margin:5px 0 0}
#accountDialog #accountMembership{display:block;min-height:0}#accountDialog #accountMembership:empty{display:none}#accountDialog .product-account-avatar svg{fill:var(--primary);color:var(--primary)}
#accountDialog .product-settings-note{font-size:12px;line-height:1.75}#accountDialog .product-renewal-status p{font-size:12px;line-height:1.7}
#creditsDialog .product-credit-cost{font-size:12px;line-height:1.7;margin:0}#creditsDialog .product-credit-source p{font-size:12px;line-height:1.7;margin:0}#creditsDialog .product-credit-history h3{font:600 20px/1.3 var(--mt-font-display)}#creditsDialog .product-credit-history>p{font-size:13px;line-height:1.75;margin:0}#creditsDialog .billing-account-notice{font-size:13px;line-height:1.7;margin:0 0 16px}
.product-library .product-app-grid:has(.product-empty){display:block;padding:0}

/* Bounded body, stationary opaque controls; shared by appearance, auth and credits. */
body dialog.product-sheet[open],body dialog#accountDialog[open]{display:flex;flex-direction:column;overflow:hidden}
body dialog.product-sheet>.dialog-body,body dialog#accountDialog>.dialog-body{min-height:0;overflow:auto;overscroll-behavior:contain;flex:1 1 auto;max-height:none}
body dialog.product-sheet>footer{flex:0 0 auto;position:relative;background:#fff;z-index:1;padding-bottom:max(16px,env(safe-area-inset-bottom))}
body .product-sheet .icon-mode-tabs{margin:0 0 20px;padding:0;gap:12px;flex-shrink:0}
body .product-sheet .icon-mode-tab{border-radius:6px 6px 0 0;outline-offset:-3px;min-height:48px}
body .product-sheet .icon-prompt textarea{height:180px;min-height:120px;max-height:240px;resize:vertical;overflow:auto;display:block;margin:12px 0}
body .product-sheet .zip-icon-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}
body .product-sheet .zip-icon-list .btn{margin:0;padding:10px 12px;white-space:normal;overflow-wrap:anywhere;font-size:13px;min-height:44px;border-radius:var(--mt-radius-pill)}
body dialog [tabindex="-1"]:focus{outline:none}
/* Demo v24 pricing: shared catalogue, compact cards and persistent comparison columns. */
body #upgradeDialog{width:min(1120px,calc(var(--visible-width,100vw) - 40px));max-width:1120px;max-height:calc(var(--visible-height,100dvh) - 40px)}
body #upgradeDialog[open]{display:flex;flex-direction:column;overflow:hidden}
body #upgradeBody{padding:0;min-height:0;display:flex;flex-direction:column;overflow:hidden;max-height:none;flex:1}
body #upgradeBody>.upgrade-scroll{padding:24px;min-height:0;overflow:auto;flex:1}
body #upgradeBody>.upgrade-footer{background:#fff;flex:none;border-top:1px solid var(--line);padding:14px 24px}
.product-pricing{--primary:#713dec;font-family:var(--mt-font-ui);font-size:14px;color:var(--ink)}
.product-pricing-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:stretch}
.product-price-card{min-width:0;display:flex;flex-direction:column;padding:22px;border:1px solid var(--line);border-radius:14px;background:#fff}
.product-price-card[data-billing-plan=creator_pack]{border-color:#c4adf1}.product-price-card[data-billing-plan=maker_pro]{background:#fcfaff}
.product-price-card>header{display:flex;align-items:baseline;justify-content:space-between;gap:10px;min-height:64px}
.product-price-card h3{font:600 25px/1.2 var(--mt-font-display);letter-spacing:-.035em;margin:0}
.product-price-card header p,.product-price>span{display:block;font-size:12px;color:var(--muted);line-height:1.5;margin:6px 0 0}
.product-price{flex:none;text-align:right}.product-price>strong{font:500 38px/1.1 var(--mt-font-display);letter-spacing:-.045em;white-space:nowrap}
.product-price-credits{display:flex;align-items:center;gap:9px;margin-top:16px;padding:14px 0;border-block:1px solid var(--line)}.product-price-credits>svg{color:var(--primary)}.product-price-credits strong{font-size:14px;display:block;line-height:1.5}.product-price-credits span{font-size:12px;line-height:1.5;display:block;color:var(--muted);margin-top:2px}
.product-price-features{list-style:none;padding:0;margin:15px 0;display:grid;gap:8px}.product-price-features li{display:flex;gap:8px;font-size:12px;line-height:1.6}.product-price-features svg{color:var(--muted);margin-top:2px}
.product-price-details{font-size:12px;line-height:1.65;color:var(--muted);margin-bottom:16px}.product-price-details summary{display:flex;align-items:center;justify-content:space-between;min-height:44px;cursor:pointer;list-style:none}.product-price-details summary::-webkit-details-marker{display:none}.product-price-details ul{padding:0 0 0 16px;margin:4px 0}.product-price-details li{padding:6px 0}
.product-pricing .btn{min-height:46px;border-radius:var(--mt-radius-pill);white-space:normal;padding:10px 14px;font-size:14px;line-height:1.4}.product-price-card>.btn{width:100%;margin-top:auto}.product-pricing .primary{background:var(--primary);color:#fff}.product-pricing .secondary{background:#f3f1f6;border-color:transparent;color:var(--ink)}
.product-pricing-tax{font-size:12px!important;color:var(--muted);line-height:1.7;margin:18px 0 0}
.product-plan-comparison{margin-top:48px}.product-plan-comparison>h3{font:600 32px/1.2 var(--mt-font-display);margin:0 0 24px}.product-plan-comparison table{table-layout:fixed;border-collapse:collapse;width:100%;font-size:13px;line-height:1.5}.product-plan-comparison :is(th,td){padding:17px 14px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle;overflow-wrap:anywhere}.product-plan-comparison th{font-weight:500}.product-plan-comparison th:first-child{width:28%}.product-plan-comparison thead th{background:#f8f6fc;vertical-align:top}.product-plan-comparison thead span{display:block;font-weight:600}.product-plan-comparison thead strong{display:block;font:500 28px/1.2 var(--mt-font-display);margin-top:10px}.product-plan-comparison small{display:block;font-size:11px;color:var(--muted);margin-top:4px}.product-plan-comparison td{color:var(--muted)}.product-plan-comparison tfoot .btn{font-size:12px;padding:9px;width:100%}
.product-checkout-review{display:grid;gap:22px}.product-checkout-review h3{font:600 30px/1.2 var(--mt-font-display);margin:0}.product-checkout-plan{display:grid;grid-template-columns:1fr auto;gap:6px;align-items:baseline;padding:22px;border-radius:16px;background:#f8f5fe;border:1px solid var(--line)}.product-checkout-plan>span{font-size:20px;font-weight:600}.product-checkout-plan strong{font:500 32px/1.1 var(--mt-font-display)}.product-checkout-plan small{grid-column:2;color:var(--muted)}.product-checkout-review dl{margin:0}.product-checkout-review dl>div{display:flex;justify-content:space-between;gap:24px;padding:14px 0;border-bottom:1px solid var(--line);font-size:14px}.product-checkout-review dt{color:var(--muted)}.product-checkout-review dd{margin:0;text-align:right;max-width:65%;overflow-wrap:anywhere}.product-checkout-review p{font-size:12px!important;line-height:1.6;color:var(--muted)}.product-checkout-review .product-checkout-mode{padding:9px 12px;background:var(--soft);border-radius:8px}.product-checkout-review [role=alert]{color:var(--mt-error)}
@media(min-width:761px){.product-price-details>summary{display:none}.product-price-details:not([open])>ul{display:block!important}}
@media(max-width:960px){.product-pricing-grid{grid-template-columns:1fr}.product-price-card h3{font-size:26px}}
@media(max-width:760px){body #upgradeDialog{width:100%;max-width:100%;max-height:calc(var(--visible-height,100dvh) - 16px)}body #upgradeBody>.upgrade-scroll{padding:20px}.product-price-card{padding:20px}.product-plan-comparison table,.product-plan-comparison :is(thead,tbody,tfoot){display:block}.product-plan-comparison tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.product-plan-comparison :is(th,td){padding:13px 8px;font-size:12px;min-width:0}.product-plan-comparison th:first-child{width:auto}.product-plan-comparison thead th:first-child,.product-plan-comparison tfoot td:first-child{display:none}.product-plan-comparison tbody th{grid-column:1/-1;border:0;padding:20px 8px 2px;font-size:13px;color:var(--ink)}.product-plan-comparison thead strong{font-size:24px}.product-plan-comparison thead{position:sticky;top:-20px;z-index:1}.product-plan-comparison tfoot .btn{font-size:11px;padding:9px 6px}.product-checkout-review h3{font-size:28px}}

/* Dialog bodies, including the account panel grid, own vertical scrolling. */
body #creditsDialog>.library-account-billing{min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;align-content:start}
body dialog.product-sheet>.dialog-body{-webkit-overflow-scrolling:touch;touch-action:pan-y}

/* Import state changes keep the following content anchored. */
.product-zip-stage{height:340px;min-width:0}
.product-zip-stage>.product-upload,.product-zip-loaded{height:100%;min-height:0;box-sizing:border-box}
.product-zip-loaded{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:12px;background:#fff;overflow:hidden}
.product-zip-loaded>.product-receipt{flex:1;min-height:0;overflow:auto;border:0;border-radius:0;padding:20px}
.product-zip-loaded .receipt-top>svg{flex:none}.product-zip-loaded .receipt-top>div{min-width:0}.product-zip-loaded .receipt-top p{overflow-wrap:anywhere}
.product-zip-loaded>.product-receipt-actions{flex:none;margin:0;padding:12px 20px 20px;background:#fff;gap:8px}
.product-zip-loaded>.product-receipt-actions .btn{font-size:12px;padding:10px 14px;min-height:44px;white-space:normal}
.product-zip-checklist{list-style:none;margin:var(--mt-space-3) 0 0;padding:0;display:grid;gap:var(--mt-space-3)}
.product-zip-checklist li{display:grid;grid-template-columns:16px minmax(0,1fr) auto;align-items:start;gap:var(--mt-space-3);font-size:12px;line-height:1.55}
.product-zip-checklist li>span{color:var(--muted)}.product-zip-checklist li[data-found=true]>span{color:var(--primary)}
.product-zip-checklist strong{font-weight:500;overflow-wrap:anywhere}.product-zip-checklist small{max-width:135px;font-size:11px;color:var(--muted);text-align:right}
/* Programmatic reading targets are not selectable controls; keyboard controls stay visible. */
body :is(#studioView,#libraryView,dialog) :is(h1,h2,h3)[tabindex="-1"]:focus,body #sourceReceipt:focus{outline:none}
body :is(#studioView,#libraryView,dialog) :is(button,a,summary,[role=tab],[role=tabpanel]):focus-visible{outline-width:2px;outline-offset:3px}
html[data-input-modality="pointer"] body :is(#studioView,#libraryView,dialog,#mobileMenu) :is(button,a,summary,[role=tab],[role=tabpanel]):focus{outline:none}
body :is(#studioView,#libraryView,dialog) :is(input.text-input,textarea):focus{outline:none;outline-offset:0;border-color:var(--primary);box-shadow:0 0 0 2px #713dec22}
body #productCodeInput:focus{outline:none;box-shadow:none}
body .product-code-shell:focus-within{border-color:var(--primary);box-shadow:0 0 0 2px #713dec18}
.product-studio ::selection,.product-sheet ::selection{background:#e9ddff;color:var(--ink)}

/* Complete plan comparison: page layout shares cards and matrix with checkout. */
#informationView .app-container:has(.compare-plans-page){max-width:var(--mt-content-max)}
#informationView .information-page.compare-plans-page{max-width:none}
.compare-plans-content{margin-top:32px}
.compare-plans-links{display:flex;flex-wrap:wrap;gap:12px 24px;margin-top:32px}
.compare-plans-links a{min-height:44px;display:inline-flex;align-items:center;color:var(--mt-primary);text-decoration:underline;text-underline-offset:4px}
.compare-plans-page .product-pricing-tax{font-size:14px!important}
.compare-plans-page .product-plan-comparison thead{top:var(--shell-header-height,72px)}
@media(prefers-reduced-motion:reduce){.compare-plans-page *{scroll-behavior:auto}}

/* Long renewal disclosures wrap without squeezing the plan name or price. */
.product-price-card>header>div:first-child{min-width:0;flex:1 1 0}
.product-price{flex:0 1 45%;min-width:76px;max-width:45%}
.product-price>span{white-space:normal;overflow-wrap:normal}
.compare-plans-account{margin-block:24px}


/* MakeTap v1.2: show the phone-label as an actual icon/name preview. */
#studioView .product-app-details .personalize-app-preview .product-home-screen-name{
 display:block;max-width:100%;width:min(112px,100%);font:500 13px/1.35 var(--mt-font-ui);
 white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;
 margin:3px auto 0;color:var(--ink)
}
#studioView .product-app-details .personalize-app-preview .product-preview-name-hint{
 display:block;width:100%;font:400 10px/1.45 var(--mt-font-ui);
 white-space:normal;color:var(--muted);text-align:center;margin:0
}
#studioView .product-app-details .personalize-app-preview .product-edit-icon-link{
 display:inline-flex;align-items:center;justify-content:center;gap:5px;
 width:100%;min-height:44px;padding:5px 0;border:0;background:transparent;
 color:var(--primary);font:500 12px/1.4 var(--mt-font-ui);cursor:pointer
}
/* Mobile checkout action is a separate footer, not buried after long terms. */
#creditsDialog[open]{display:flex;flex-direction:column;overflow:hidden}
#creditsDialog>.library-account-billing{flex:1;min-height:0;overflow-y:auto}
#creditsDialog>.product-checkout-sticky{
 display:flex;flex:none;padding:12px 22px calc(12px + env(safe-area-inset-bottom,0px));
 margin:0;background:#fff;border-top:1px solid var(--line);z-index:2
}
#creditsDialog>.product-checkout-sticky[hidden]{display:none!important}
#creditsDialog>.product-checkout-sticky .btn{width:100%;min-height:50px;border-radius:var(--mt-radius-pill)}
/* The desktop right column is a complete account view; no balance popup. */
.product-library-account-email{margin:0 0 11px;font:400 12px/1.55 var(--mt-font-ui);color:var(--muted);overflow-wrap:anywhere}
#libraryCreditsInline[hidden]{display:none!important}
@media(min-width:1000px){
 #libraryView .product-account-summary .product-inline-credit-panel>.library-account-billing{
  display:block;padding:22px;border:1px solid var(--line);border-radius:18px;background:#fff
 }
 #libraryView .product-account-summary .product-inline-credit-panel .product-credit-overview{display:grid;gap:20px}
 #libraryView .product-collection>header>div>.btn{min-height:44px;padding:9px 16px;font-size:12px}
 #libraryView .product-library .library-tools{display:flex;align-items:center;justify-content:space-between}
}
@media(prefers-reduced-motion:reduce){
 #studioView .product-edit-icon-link,.product-checkout-sticky .btn{transition:none}
}


/* Credit history is a separate section; the balance card must never be nested
   in a second bordered desktop card. Signed-in actions sit outside the card. */
#libraryView .product-account-summary .product-inline-credit-panel>.library-account-billing{
 padding:0;border:0;border-radius:0;background:transparent;box-shadow:none
}
.product-account-signout{
 display:inline-flex;align-items:center;gap:10px;min-height:44px;border:0;
 background:transparent;color:var(--muted);font:500 13px/1.5 var(--mt-font-ui);
 cursor:pointer;text-align:left;padding:12px 0
}
.product-account-signout[hidden]{display:none!important}
.product-account-signout svg{flex:none;width:18px;height:18px}
#libraryView .product-account-summary>.product-account-signout{
 display:flex;width:100%;margin-top:30px;padding:20px 2px 8px;border-top:1px solid var(--line)
}
#librarySignOutSlot:has(.product-account-signout:not([hidden])){
 margin-top:36px;padding:20px 0 4px;border-top:1px solid var(--line)
}
#librarySignOutSlot .product-account-signout{width:100%}
.product-credit-source.is-used-up>p{color:var(--muted);font-weight:500}
.product-credit-history{min-width:0}
.product-credit-history-list{list-style:none;padding:0;margin:0;border-top:1px solid var(--line)}
.product-credit-history-list>li{
 display:flex;align-items:center;justify-content:space-between;gap:14px;
 padding:13px 0;border-bottom:1px solid var(--line)
}
.product-history-event{display:grid;min-width:0;gap:4px}
.product-history-event>strong{font:500 13px/1.5 var(--mt-font-ui)}
.product-history-event>small{color:var(--muted);font:400 12px/1.6 var(--mt-font-ui);overflow-wrap:anywhere}
.product-history-delta{flex:none;font:600 14px/1.5 var(--mt-font-ui);font-variant-numeric:tabular-nums}
.product-history-error .product-text-link{margin-top:8px;min-height:44px}
#creditsDialog>.product-credit-handle{display:none}
@media(max-width:760px){
 /* iOS Safari collapses a flex child inside an auto-height dialog with only max-height.
    Give this one sheet an actual bounded block size; header and checkout stay fixed. */
 body #creditsDialog[open]{
  display:flex;flex-direction:column;
  height:min(690px,calc(var(--visible-height,100dvh) - 18px));
  max-height:calc(var(--visible-height,100dvh) - 12px);
  overflow:hidden;bottom:max(0px,var(--keyboard-inset,0px))
 }
 body #creditsDialog[open].is-expanded{
  height:calc(var(--visible-height,100dvh) - 10px)
 }
 body #creditsDialog::before{content:none}
 body #creditsDialog>.product-credit-handle{
  display:block;position:absolute;z-index:4;top:0;left:calc(50% - 46px);
  width:92px;height:44px;border:0;background:transparent;cursor:pointer;
  touch-action:manipulation
 }
 body #creditsDialog>.product-credit-handle::before{
  content:"";position:absolute;left:30px;top:13px;width:32px;height:5px;
  background:var(--line);border-radius:999px
 }
 body #creditsDialog>.dialog-header{
  flex:0 0 auto;padding-top:46px;min-height:104px;background:#fff
 }
 body #creditsDialog>#libraryBillingPanel.library-account-billing{
  display:block;flex:1 1 0%;height:auto;min-height:0;max-height:none;
  overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;
  -webkit-overflow-scrolling:touch;touch-action:pan-y;
  padding-bottom:24px
 }
 /* Avoid a card-within-a-sheet: balance first, actions second, optional sources and history below. */
 #creditsDialog .product-credit-overview{gap:var(--mt-space-5)}
 #creditsDialog .product-balance-panel{border:0;border-radius:0;background:transparent;padding:0}
 #creditsDialog .product-balance-actions{padding:var(--mt-space-4) 0;gap:var(--mt-space-3)}
 #creditsDialog .product-credit-history h3{padding-bottom:var(--mt-space-3)}
 body #creditsDialog>#libraryBillingPanel[hidden]{display:none}
 body #creditsDialog>.product-checkout-sticky{flex:0 0 auto}
}
@media(prefers-reduced-motion:reduce){
 #creditsDialog{transition:none!important}
}

/* Desktop comparison-page credit sheet: preserve the caller beneath its modal. */
@media(min-width:761px){
 body #creditsDialog[open]{
  height:min(690px,calc(var(--visible-height,100dvh) - 48px));
  display:flex;flex-direction:column;overflow:hidden
 }
 body #creditsDialog>#libraryBillingPanel.library-account-billing{
  flex:1 1 0%;min-height:0;max-height:none;overflow-y:auto
 }
}


/* UX-13 / UX-14 / UX-20 / UX-33 · task content spacing contract.
   Scope stays inside Product presentation; do not change user-uploaded apps.
   Use the existing 4/8/12/16/24px tokens rather than adding a separate spacing scale. */
.product-studio .product-receipt .receipt-top>div{min-width:0}
.product-studio .product-receipt .receipt-top strong{display:block;line-height:1.45}
.product-studio .product-receipt .receipt-top p{margin:var(--mt-space-1) 0 0;line-height:1.5;overflow-wrap:anywhere}
.product-studio .product-receipt-status{margin:var(--mt-space-3) 0 0;line-height:1.6;font-size:13px;color:var(--mt-success)}
.product-studio .product-receipt-status.is-review-needed{color:var(--mt-warning)}
.product-studio .product-receipt-disclosure{margin-top:var(--mt-space-3);border-top:1px solid var(--mt-line)}
.product-studio .product-receipt-disclosure>summary{display:list-item;min-height:44px;padding:var(--mt-space-3) var(--mt-space-2);cursor:pointer;color:var(--mt-primary);font-size:13px;font-weight:500;line-height:1.5}
.product-studio .product-receipt-disclosure>summary:focus-visible{outline:2px solid var(--mt-focus);outline-offset:2px;border-radius:var(--mt-radius-sm)}
.product-studio .product-code-disclosure pre{max-height:min(240px,32dvh);margin:0 0 var(--mt-space-3);padding:var(--mt-space-3);overflow:auto;word-break:break-word;white-space:pre-wrap}
.product-studio .product-zip-checks .product-zip-checklist{margin:0 0 var(--mt-space-3);padding:var(--mt-space-1) var(--mt-space-2) 0}
.product-studio .product-zip-checks .product-zip-checklist li{min-height:28px}
.product-studio .product-zip-checks .product-zip-checklist small{max-width:min(140px,32vw);line-height:1.5;overflow-wrap:anywhere}
.product-studio .product-zip-stage.is-ready{height:auto;min-height:0}
.product-studio .product-zip-stage.is-ready>.product-zip-loaded{height:auto;min-height:0;display:block;overflow:visible}
.product-studio .product-zip-stage.is-ready .product-receipt{height:auto;max-height:none;overflow:visible;padding:var(--mt-space-5)}
.product-studio .product-receipt-tools{margin:0;border-top:1px solid var(--mt-line)}
.product-studio .product-receipt-tools>summary{display:list-item;min-height:44px;margin:0;padding:var(--mt-space-3) var(--mt-space-5);color:var(--mt-muted);font-size:13px;line-height:1.5;cursor:pointer}
.product-studio .product-receipt-tools>.product-receipt-actions{margin:0;padding:var(--mt-space-2) var(--mt-space-5) var(--mt-space-4)}
.product-studio .product-receipt-actions>.btn{min-width:0;flex:0 1 auto;white-space:normal;gap:var(--mt-space-2)}
.product-auth .product-auth-heading[hidden],.product-auth #authIntroTitle[hidden],.product-auth #authIntroCopy[hidden],.product-auth .product-auth-benefit[hidden]{display:none!important}
#accountDialog .product-auth .field-label{margin:var(--mt-space-4) 0 var(--mt-space-2)}
#accountDialog .product-auth .product-auth-hint{margin:var(--mt-space-2) 0 var(--mt-space-4);line-height:1.6}
#accountDialog .product-auth .btn{margin-top:0;gap:var(--mt-space-3);white-space:normal}
#accountDialog .product-auth .product-auth-policies{margin:var(--mt-space-4) 0 0;line-height:1.65}
#accountDialog .product-auth .product-private{margin-top:var(--mt-space-5);padding-top:var(--mt-space-3);line-height:1.6}
#accountDialog .product-auth-benefit{gap:var(--mt-space-3);margin:var(--mt-space-4) 0;padding:var(--mt-space-4)}
#accountDialog .product-auth-benefit strong{line-height:1.5}
#accountDialog .product-auth-benefit span{margin-top:var(--mt-space-1);line-height:1.55}
.product-studio :is(.product-back,.product-text-button),.product-library .product-text-link{gap:var(--mt-space-2)}
.product-studio :is(.product-tabs>button,.product-preview-top button),.product-library :is(.product-collection>header button,.product-examples-disclosure>summary){column-gap:var(--mt-space-2)}
@media(max-width:760px){
 .product-studio .product-zip-stage.is-ready .product-receipt{padding:var(--mt-space-4)}
 .product-studio .product-receipt-tools>summary{padding-inline:var(--mt-space-4)}
 .product-studio .product-receipt-tools>.product-receipt-actions{padding-inline:var(--mt-space-4)}
 .product-studio .product-receipt-actions>.btn{font-size:13px;min-height:44px;padding-inline:var(--mt-space-4)}
 #accountDialog .product-auth .product-auth-tabs{margin-bottom:var(--mt-space-4)}
 #accountDialog .product-auth .product-auth-policies{margin-top:var(--mt-space-3)}
}
@media(prefers-reduced-motion:reduce){.product-studio .product-receipt-disclosure>summary,.product-studio .product-receipt-tools>summary{scroll-behavior:auto}}

/* UX-20: friendly greeting remains the primary emotional entry; the header
   provides the functional Sign in/Create account context at smaller scale. */
#accountDialog #accountEmailForm .product-auth-heading{margin:0 0 var(--mt-space-4)}
#accountDialog #accountEmailForm #authIntroTitle{
 display:block;font:600 clamp(24px,6.6vw,28px)/1.22 var(--mt-font-display);
 letter-spacing:-.025em;margin:0 0 var(--mt-space-2)
}
#accountDialog #accountEmailForm #authIntroTitle[hidden]{display:none!important}
#accountDialog #accountEmailForm #authIntroCopy{
 margin:0;color:var(--muted);font:400 13px/1.65 var(--mt-font-ui)
}
#accountDialog #accountEmailForm #authIntroCopy[hidden]{display:none!important}

/* UX-21: code entry is the focus; inline errors, resend and email recovery
   are owned by the form, never by detached toast or redundant panels. */
#accountDialog #accountCodeForm .product-code-heading{text-align:left;margin:0 0 var(--mt-space-4)}
#accountDialog #accountCodeForm .product-code-heading h3{
 margin:0 0 var(--mt-space-2);font:600 clamp(23px,6vw,27px)/1.2 var(--mt-font-display)
}
#accountDialog #accountCodeForm .product-code-heading p{
 margin:0;color:var(--muted);font:400 13px/1.55 var(--mt-font-ui)
}
#accountDialog #accountCodeForm #authCodeEmail{
 display:block;max-width:100%;margin:var(--mt-space-1) 0 0;
 color:var(--ink);font:500 13px/1.55 var(--mt-font-ui);overflow-wrap:anywhere
}
#accountDialog #accountCodeForm .field-label{margin:var(--mt-space-3) 0 var(--mt-space-2)}
#accountDialog #accountCodeForm .product-code-input{min-height:52px}
#accountDialog #accountCodeForm .product-code-input[aria-invalid="true"]{
 border-color:var(--mt-error);background:var(--mt-error-bg)
}
#accountDialog #accountCodeForm .product-code-error{
 margin:var(--mt-space-2) 0 0;padding:var(--mt-space-3);
 border-radius:var(--mt-radius-sm);background:var(--mt-error-bg);
 color:var(--mt-error);font:400 13px/1.5 var(--mt-font-ui);overflow-wrap:anywhere
}
#accountDialog #accountCodeForm .product-code-error[hidden],#accountDialog #accountMessage[hidden]{display:none!important}
#accountDialog #accountCodeForm #accountVerifyCode{margin-top:var(--mt-space-4)}
#accountDialog #accountCodeForm .product-code-recovery{
 display:flex;align-items:center;justify-content:space-between;
 gap:var(--mt-space-3) var(--mt-space-4);flex-wrap:wrap;margin-top:var(--mt-space-3)
}
#accountDialog #accountCodeForm .product-code-recovery .product-text-button{
 min-height:44px;padding:8px 0;margin:0;color:var(--primary);
 font:500 13px/1.5 var(--mt-font-ui);white-space:normal
}
#accountDialog #accountCodeForm .product-code-recovery .product-text-button:disabled{color:var(--muted);opacity:.75}
#accountDialog #accountCodeForm .product-code-expiry{
 margin:var(--mt-space-1) 0 0;color:var(--muted);
 font:400 12px/1.5 var(--mt-font-ui)
}
@media(max-width:360px){
 #accountDialog #accountCodeForm .product-code-recovery{column-gap:var(--mt-space-3)}
 #accountDialog #accountCodeForm .product-code-recovery .product-text-button{font-size:12px}
}

/* My Apps workspace and account navigation */

#libraryView .product-app-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:12px;align-items:start}
#libraryView .product-collection{min-width:0;align-self:start}
#libraryView .library-tools{margin:10px 0 14px;padding:0;display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
#libraryView .library-tools .btn,#libraryView .library-tools select{font-size:13px;min-height:36px;padding:6px 12px}
.wallet-note,.product-balance-panel .product-membership,.product-balance-panel .product-credit-cost{display:block;font-size:13px;line-height:1.5;margin:8px 0}
.product-balance-panel>.wallet-period-note{display:block;margin:4px 0 8px;color:#706979;font:400 12px/1.5 var(--mt-font-ui)}
.product-balance-panel>.product-credit-meter{margin-block:8px}
.product-balance-panel .product-source-details{margin-block:12px}
.wallet-history{width:min(460px,92vw);max-height:72dvh;overflow:auto;border:1px solid #ded8e7;border-radius:16px;padding:0 18px 18px;background:white;color:#251d31}
.wallet-history::backdrop{background:#24183066}
.wallet-history header{position:sticky;top:0;background:white;display:flex;align-items:center;justify-content:space-between;padding:14px 0}
.preview-close{min-width:44px;min-height:44px}
.menu-toggle[aria-expanded="true"] svg,.preview-close svg{width:20px;height:20px}
@media(min-width:1000px){#libraryView .product-dashboard{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,30%);align-items:start;gap:24px}}
@media(max-width:999px){#libraryView #libraryCreditsSummary:not([hidden]){display:flex;align-items:center;justify-content:space-between;padding:13px 16px;width:100%}#libraryView #libraryCreditsInline:not([hidden]){display:block}#libraryView #libraryAccountSummary{display:flex;flex-direction:column}#libraryView #libraryCreditsSummary{order:-1}#libraryView .product-app-grid{grid-template-columns:repeat(auto-fill,minmax(84px,1fr))}}
body[data-view=library] #homepageDock,body[data-view=library] .mt-site-links,body[data-view=library] #headerPrimary,#libraryView .app-topbar,#libraryView .library-storage-note{display:none!important}
#libraryView>.app-container{max-width:1060px;margin:auto;padding:24px 20px}
#libraryView .mt-workspace{padding:0;margin:0}
#libraryView .ws-heading,#libraryView .ws-toolbar,#libraryView .ws-filters,#libraryView .ws-tabs{display:flex;align-items:center;gap:8px}
#libraryView .ws-heading,#libraryView .ws-toolbar{justify-content:space-between}
#libraryView .ws-heading h1{font-size:32px;margin:0;line-height:1.15}
#libraryView .is-zero-apps .ws-heading [data-action="create"]{display:none}
#libraryView .ws-heading small{font-size:13px;color:#70697c}
#libraryView .ws-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(214px,25%);gap:20px;margin-top:18px;align-items:start}
#libraryView .ws-library{grid-area:1/1;min-width:0;border:1px solid #e5e0eb;border-radius:16px;padding:var(--mt-space-4);background:white}
#libraryView #libraryAccountSummary{grid-area:1/2;width:auto;min-width:0;margin:0;padding:0}
#libraryView .ws-toolbar{flex-wrap:wrap;border-bottom:1px solid #e5e0eb;padding:0 0 10px}
#libraryView .ws-tabs{padding:3px;background:#f3f1f6;border-radius:9px;gap:2px}
#libraryView .ws-tabs button,#libraryView .ws-filters>*{font:inherit;font-size:13px;padding:5px 8px;border-radius:7px}
#libraryView .ws-tabs button{background:transparent;color:#6c6578;border:0}
#libraryView .ws-tabs [aria-pressed=true]{background:white;color:#251d31;box-shadow:0 1px 3px #24163222}
#libraryView .ws-filters>*{background:white;border:1px solid #e0dce6;height:32px;min-width:0}
#libraryView .ws-filters input{width:130px}
#libraryView #libraryGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:6px;padding:6px 0;margin:0}
#libraryView .product-app-tile{position:relative;width:auto;min-width:0}
#libraryView .product-app-open{width:100%;padding:14px 2px 8px;display:grid;justify-items:center;gap:8px}
#libraryView .product-app-icon,#libraryView .product-app-icon img{width:56px;height:56px}
#libraryView .product-app-open strong{font-size:13px;white-space:normal;line-height:1.35}
#libraryView .ws-foot{border-top:1px solid #e5e0eb;margin-top:8px;padding:6px 0}
#libraryView .ws-foot button{font-size:13px;color:#665c74;display:flex;align-items:center;gap:6px}
#libraryView #libraryBillingPanel,#libraryView .product-credit-overview{padding:0;margin:0}
#libraryView .product-balance-panel{background:#f6f2fd;padding:16px;border:1px solid #e0d7ec;border-radius:14px;display:block}
#libraryView .product-credit-heading strong{font-size:15px}
#libraryView .product-balance-actions{padding:0;margin:6px 0 0;display:flex;justify-content:space-between}
#libraryView .product-balance-actions button{min-height:44px;max-width:100%;box-sizing:border-box;flex-shrink:0;white-space:normal;font-size:13px;padding:8px 16px}
#libraryView .product-balance-actions{flex-wrap:wrap;gap:8px}
.product-preview .product-preview-top{justify-content:center}
.product-preview .product-fullscreen{max-width:100%;padding-inline:14px}
.publication-qr{text-align:center}
.publication-qr svg{display:block;width:min(232px,100%);height:auto;margin:12px auto;background:white}
.publication-qr small{display:block;overflow-wrap:anywhere}
#libraryView .ws-library .product-empty{grid-column:1/-1;min-width:0;padding:var(--mt-space-5) 0}
@media(max-width:699px){#libraryView>.app-container{padding:20px 14px}#libraryView .ws-columns{grid-template-columns:1fr;gap:12px}#libraryView #libraryAccountSummary,#libraryView .ws-library{grid-area:auto}#libraryView #libraryGrid{grid-template-columns:repeat(3,minmax(0,1fr))}#libraryView .ws-filters{width:100%}#libraryView .ws-filters input{flex:1}#libraryView .ws-heading h1{font-size:27px}#libraryView #libraryCreditsSummary{background:#f6f2fd;margin:0;border-radius:12px}}
#libraryView>.app-container{max-width:1024px}
#libraryView .ws-foot button{min-height:44px;padding:4px 8px 4px 0}
#libraryView .ws-foot{padding:2px 0}
#libraryView .ws-library .product-app-tile{margin:0;min-height:0}
#libraryView .ws-library #libraryGrid{min-height:0}
@media(max-width:699px){#libraryView>.app-container{padding-inline:7px}}

body[data-view=library] #accountNav[data-authenticated=true]{display:inline-flex!important;align-items:center;gap:8px;min-width:44px;min-height:44px;padding:4px 10px 4px 5px;border:1px solid #e1daeb;background:white;color:#2b203b;border-radius:24px}
body[data-view=library] #accountNav[data-authenticated=true]::before{content:attr(data-initial);display:grid;place-items:center;width:32px;height:32px;background:#eee7fc;color:#6241aa;border-radius:50%;font-weight:600}
body[data-view=library] #accountNav[data-authenticated=true] .mt-nav-account-icon{display:none}
body[data-view=library] #accountNav[data-authenticated=true] [data-account-label]{display:block;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#homepageHeader #accountQuickMenu:not([hidden]){display:grid;position:absolute;top:100%;right:0;width:min(286px,calc(100vw - 28px));z-index:25;padding:8px;border:1px solid #e2dce9;border-radius:14px;background:white;box-shadow:0 8px 28px #22173319}
#homepageHeader .ws-account-id{padding:7px 9px 12px;border-bottom:1px solid #e5e0ea;display:grid;gap:2px;overflow-wrap:anywhere}
#homepageHeader .ws-account-id span{font-size:12px;color:#6b6276}
#homepageHeader #accountQuickMenu button{width:100%;min-height:42px;display:flex;align-items:center;justify-content:flex-start;gap:10px;padding:8px 10px;text-align:left}
#homepageHeader #mobileMenu:has(.ws-account-id) [data-menu-account]{display:grid;gap:2px;padding:8px}
#homepageHeader #mobileMenu:has(.ws-account-id) [data-menu-account]>button{display:flex;align-items:center;justify-content:flex-start;gap:10px;width:100%;min-height:42px;padding:8px 10px;border:0;border-radius:8px;background:transparent;text-align:left;color:inherit;font:inherit}
#homepageHeader #mobileMenu [data-menu-account]>button:hover{background:#f4f0fa}
#homepageHeader .ws-account-id strong{font-size:13px;line-height:1.45;font-weight:400;color:#70697a}
#libraryView .ws-columns{grid-template-columns:minmax(0,1fr) 336px}
body[data-view=library] #homepageHeader #accountNav[data-authenticated=false]{display:inline-flex!important}
body[data-view=library] #homepageHeader #accountNav[data-authenticated=true] [data-account-label]{max-width:none;white-space:normal;overflow-wrap:anywhere;text-align:left}
@media(max-width:839px){
 #libraryView .ws-columns{grid-template-columns:minmax(0,1fr)}
 #libraryView #libraryAccountSummary,#libraryView .ws-library{grid-area:auto}
 body[data-view=library] #homepageHeader #accountNav{display:none!important}
 body[data-view=library] #homepageHeader #accountNav[data-authenticated]{display:none!important}
 body[data-view=library] #homepageHeader .menu-toggle{display:inline-flex!important}
 body[data-view=library] #homepageHeader #accountQuickMenu{display:none}
 body[data-view=library] #mobileMenu:not([hidden]){display:flex;flex-direction:column;max-height:calc(100dvh - 80px);overflow:auto}
 body[data-view=library] #mobileMenu .mt-menu-links{display:grid}
 body[data-view=library] #mobileMenu [data-menu-account]{order:1;border-top:1px solid #e5e0ea}
}
@media(min-width:840px){
 body[data-view=library] #homepageHeader .menu-toggle,body[data-view=library] #mobileMenu{display:none!important}
 body[data-view=library] #homepageHeader #accountNav{display:inline-flex!important}
}

/* Gift Code Lite: use the existing product-sheet language with its own bounded,
   keyboard-safe internal scroller (avoid changing the existing Credits sheet). */
dialog.gift-code-sheet[open]{display:flex;flex-direction:column;overflow:hidden;max-height:calc(var(--visible-height,100dvh) - 24px)}
.gift-code-sheet>.dialog-header,.gift-code-sheet>footer{flex:none}
.gift-code-sheet>.dialog-body{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}
.gift-code-result{display:grid;gap:8px;align-content:start}
.gift-code-result-amount{display:block;color:var(--primary,#713dec);font-family:var(--mt-font-ui);font-size:clamp(29px,7vw,40px);font-weight:700;line-height:1.2;letter-spacing:-.035em}
.gift-code-result-amount small{font-size:clamp(15px,3.5vw,19px);letter-spacing:0;font-weight:600}
.gift-code-result>strong{font-size:15px;font-weight:600}
.gift-code-result>p{margin:0}
.gift-code-sheet .text-input{width:100%;min-height:48px;box-sizing:border-box}
.gift-code-sheet .dialog-body p{overflow-wrap:anywhere}
@media(max-width:760px){
 body dialog.gift-code-sheet[open]{height:min(420px,calc(var(--visible-height,100dvh) - 20px));max-height:calc(var(--visible-height,100dvh) - 20px)}
 .gift-code-sheet>.dialog-body{touch-action:pan-y;padding-bottom:24px}
}
@media(prefers-reduced-motion:reduce){.gift-code-sheet *{animation:none!important;transition:none!important}}

.product-balance-actions:has([data-action="redeemGift"]){flex-wrap:wrap}
.product-balance-actions>[data-action="redeemGift"]{flex-basis:100%;justify-content:flex-start;margin:0}
#libraryView .product-balance-actions>[data-action="redeemGift"]{min-height:44px}

#libraryView select#librarySort{
  -webkit-appearance:none;
  appearance:none;
  box-sizing:border-box;
  min-width:0;
  padding-inline:12px 36px;
  background-image:linear-gradient(45deg,transparent 40%,currentColor 42%,currentColor 58%,transparent 60%),linear-gradient(-45deg,transparent 40%,currentColor 42%,currentColor 58%,transparent 60%);
  background-size:6px 6px;
  background-repeat:no-repeat;
  background-position:right 18px center,right 12px center;
}
@media(forced-colors:active){#libraryView select#librarySort{appearance:auto;background-image:none;padding-inline-end:12px}}

.product-phone-frame>.product-phone-bezel{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;user-select:none}
/* The app viewport starts below the island and ends above the home indicator. */
.product-phone-frame>.product-preview-device{position:absolute;left:5.89%;top:9.3%;width:88.22%;aspect-ratio:1/2;overflow:hidden;isolation:isolate;border-radius:0 0 10px 10px;background:white}

.product-phone-frame::before{content:'';position:absolute;inset:1.5% 3.3%;border-radius:14% / 7%;background:linear-gradient(var(--phone-screen-top,#27262b) 8%,var(--phone-screen-bottom,#27262b) 94%);pointer-events:none}

/* Let action groups wrap before their buttons have to shrink. */
#libraryView .ws-heading{flex-wrap:wrap;gap:10px 14px}
#libraryView .ws-heading>div{flex:1 1 12rem;min-width:0}
#libraryView .ws-heading>.btn{flex:0 0 auto;width:max-content;max-width:100%;min-height:44px;padding:10px 16px;gap:8px}
#libraryView .ws-tabs>button{flex:none;white-space:nowrap}
:is(.product-library,.product-studio,.product-sheet,.product-auth,.payment-demo) button>svg{flex-shrink:0}
:is(.product-sheet,.payment-demo)>footer{flex-wrap:wrap;gap:8px}
:is(.product-sheet,.payment-demo)>footer>.btn,#libraryView .product-balance-actions>.btn{flex:0 0 auto;max-width:100%;box-sizing:border-box}
@media(max-width:480px){
 #libraryView .ws-heading>div{flex-basis:9rem}
 #studioView .product-flow-footer{flex-wrap:wrap;gap:8px 12px}
 #studioView .product-flow-footer>div{flex:1 1 7rem}
 #studioView .product-flow-footer>.btn{max-width:100%;margin-inline-start:auto}
}

/* Mobile account balance is one disclosure, including its heading. */
@media(max-width:839.98px){
 #libraryView .library-credit-disclosure:has(#libraryCreditsSummary:not([hidden])){
  background:#f6f2fd;border:1px solid #e0d7ec;border-radius:14px
 }
 #libraryView #libraryCreditsSummary:not([hidden]){
  display:flex;align-items:center;justify-content:flex-start;gap:10px;
  border:0;background:transparent;box-shadow:none;margin:0;padding:12px 16px;min-height:50px
 }
 #libraryCreditsSummary>strong{margin-inline-end:auto}
 #libraryCreditsSummary[aria-expanded=true] .credit-collapsed-value{display:none}
 #libraryCreditsSummary[aria-expanded=true]>svg:last-child{transform:rotate(180deg)}
 #libraryView .library-credit-disclosure .product-balance-panel{
  padding:0 16px 12px;border:0;background:transparent;box-shadow:none
 }
 #libraryView .library-credit-disclosure .product-credit-heading>strong{display:none}
 #libraryView .library-credit-disclosure #libraryCreditsInline{margin:0;padding:0}
}
@media(max-width:839.98px){
 /* One header geometry for workspace sheets, including nested history. */
 body dialog:not(#fullscreenDialog)>:is(.dialog-header,header:has(.sheet-close),.sample-icon-header){
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:12px!important;flex-wrap:nowrap!important;margin:0!important;padding:16px!important;
  box-sizing:border-box;border:0!important;border-bottom:1px solid var(--line)!important;background:white
 }
 body dialog:not(#fullscreenDialog)>:is(.dialog-header,header:has(.sheet-close),.sample-icon-header) :is(h2,h3){
  font:600 20px/1.3 var(--mt-font-display)!important;letter-spacing:normal!important;margin:0!important;padding:0!important
 }
 body dialog.wallet-history{padding:0}
 body dialog.wallet-history>.product-credit-history-list{margin-inline:16px}
 body dialog:not(#fullscreenDialog)>:is(.dialog-header,header:has(.sheet-close),.sample-icon-header) :is(.icon-button,form button){
  position:static!important;inset:auto!important;flex:0 0 44px!important;width:44px!important;height:44px!important;
  min-height:44px!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important
 }
}

@media(max-width:839.98px){
 #libraryView .library-credit-disclosure .product-balance-panel{
  display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:12px
 }
 #libraryView .library-credit-disclosure .product-balance-panel>*{grid-column:1/-1}
 #libraryView .library-credit-disclosure .product-credit-heading{
  grid-area:1/2;justify-self:end;min-width:0
 }
 #libraryView .library-credit-disclosure .product-credit-value{
  grid-area:1/1;justify-self:start
 }
}

@media (max-width:840px){
 body[data-view="create"][data-step] #studioView .workspace-footer.product-flow-footer{
  flex-wrap:wrap;
 }
 body[data-view="create"][data-step] #studioView .product-flow-footer > div{
  flex:1 1 6rem;
  min-width:0;
 }
 body[data-view="create"][data-step] #studioView .product-flow-footer > .btn.primary[data-action]{
  margin-inline-start:auto;
  flex:0 0 auto;
  width:max-content;
  max-width:100%;
  white-space:nowrap;
  overflow-wrap:normal;
 }
}

.product-balance-panel .purchase-options{display:flex;align-items:center;justify-content:flex-end;gap:8px}
.purchase-options>button{display:grid;align-items:center;justify-items:end;width:44px;height:44px;padding:0;border:0;background:transparent;color:var(--graphite);cursor:pointer}
.purchase-dots{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#efedf2}
.purchase-options>button:hover .purchase-dots{background:var(--line)}
.purchase-options a{color:var(--graphite);font:500 14px/1.4 var(--mt-font-ui)}
.purchase-popover{position:fixed;inset:auto;margin:0;box-sizing:border-box;height:fit-content;min-height:0;overflow:auto;overflow-wrap:anywhere;width:max-content;max-width:min(17rem,calc(100vw - 32px));padding:12px 16px;border:1px solid var(--line);border-radius:12px;background:white;color:var(--graphite);box-shadow:0 4px 18px #21172b20}
.purchase-popover:popover-open{display:block}
.purchase-popover a{display:flex;align-items:center;min-height:44px}
.purchase-popover p{margin:0;font-size:14px}


.product-credit-source>.credit-source-foot,.credit-period-foot{display:flex;align-items:center;justify-content:space-between;gap:6px}
.credit-source-foot p,.credit-period-foot .wallet-period-note{margin:0;color:var(--muted);font:400 12px/1.45 var(--mt-font-ui)}
.credit-source-foot .purchase-options,.credit-period-foot .purchase-options{margin-inline-start:auto}
.credit-period-foot:empty{display:none}

.credit-date{appearance:none;background:none;border:0;padding:4px 0;color:inherit;font:inherit;text-align:start;cursor:pointer;text-decoration:underline dotted;text-underline-offset:3px}

.purchase-popover .refund-reason-action{display:flex;align-items:center;min-height:44px;padding:0;border:0;background:transparent;color:var(--muted);font:500 14px/1.4 var(--mt-font-ui);cursor:pointer}
.purchase-actions:not([hidden]){display:grid;gap:4px}
.refund-reason-note{max-width:22ch;text-align:start}
.refund-reason-note strong{font:600 14px/1.4 var(--mt-font-ui)}
.refund-reason-note p{margin:6px 0 0;color:var(--muted);font:400 14px/1.5 var(--mt-font-ui)}
.purchase-options:has(>.purchase-popover:popover-open) .purchase-dots{background:#e4ddf4;color:#523793}

#libraryView .mcp-service{margin-block-start:var(--mt-space-3);min-width:0;border:1px solid var(--mt-line,#e5e0eb);border-radius:12px;background:#eef4ff}
#libraryView .mcp-service[hidden]{display:none}
.mcp-service summary{display:flex;align-items:center;gap:8px;min-height:44px;padding:9px 16px;box-sizing:border-box;cursor:pointer;list-style:none}
.mcp-service summary::-webkit-details-marker{display:none}
.mcp-service .mcp-count{margin-inline-start:auto;color:var(--muted);white-space:nowrap}
.mcp-service[open] .mcp-count{visibility:hidden}
.mcp-service summary svg{flex:none}
.mcp-service[open] summary svg:last-child{transform:rotate(180deg)}
.mcp-service-body{display:grid;gap:6px;margin:0 16px;padding:12px 0;border-top:1px solid var(--mt-line,#e5e0eb)}
.mcp-service-body p{margin:0}
.mcp-service-body small{color:var(--muted)}
.mcp-server{display:grid;gap:4px}
.mcp-server code{user-select:all;overflow-wrap:anywhere;font-size:13px}
.mcp-actions{display:flex;align-items:center;flex-wrap:wrap;gap:0 16px}
.mcp-actions a{display:inline-flex;align-items:center;min-height:44px;color:var(--mt-deep);text-decoration:underline;text-underline-offset:3px}
@media(max-width:839px){
 #libraryView .ws-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px}
 #libraryView .ws-heading>div{display:contents}
 #libraryView .ws-heading h1{grid-area:1/1}
 #libraryView .ws-heading>.btn{grid-area:1/2}
 #libraryView .ws-heading small{grid-column:1/-1}
}

.mcp-service summary svg:first-child{color:#3b69bb}
.product-credit-heading>strong,#libraryCreditsSummary>strong{display:inline-flex;align-items:center;gap:8px}
.wallet-expiry-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 12px}
.wallet-expiry-row>a{margin-inline-start:auto;display:inline-flex;align-items:center;min-height:44px;font-size:13px;color:var(--primary)}
#libraryView .product-balance-actions>[data-action="redeemGift"]{padding-inline-start:0}
@media(min-width:840px){body dialog.wallet-history:not(#fullscreenDialog)>header{padding-inline:0}}
#studioView .studio-example-grid{gap:12px}
#studioView .studio-example-grid .product-example{display:flex;flex-direction:column;justify-content:flex-start;align-items:center;gap:8px;padding:8px 4px;text-align:center}
#studioView .studio-example-grid .product-example img{width:56px;height:56px}
#studioView .studio-example-grid .product-example strong{font-size:13px;line-height:1.35}
.product-credit-heading svg,#libraryCreditsSummary>strong svg{color:var(--mt-primary)}
.mcp-copy-box{display:flex;align-items:center;gap:8px;padding-inline-start:12px;border:1px solid var(--mt-line);border-radius:10px;background:white}
.mcp-copy-box code{min-width:0;flex:1;padding-block:8px;overflow-wrap:anywhere;font-size:13px;user-select:all}
.mcp-copy-box button{display:grid;place-items:center;flex:0 0 44px;min-height:44px;border:0;background:transparent;color:var(--mt-info);cursor:pointer}
.mcp-setup{display:inline-flex;align-items:center;justify-self:start;gap:8px;min-height:44px;color:var(--mt-info);font:500 13px/1.45 var(--mt-font-ui);text-decoration:none}
.mcp-setup:hover{text-decoration:underline}
.mcp-copy-box textarea{box-sizing:border-box;flex:1;min-width:0;border:0;background:transparent;resize:vertical;padding:9px 0;color:#657187;font:400 16px/1.45 var(--mt-font-ui)}
.mcp-copy-box textarea:focus{outline:none;color:var(--mt-ink)}
.mcp-copy-box:focus-within{outline:2px solid var(--mt-info);outline-offset:2px}
.mcp-copy-status:not(:empty){display:block;margin-top:4px;color:var(--mt-info)}
.mcp-actions .mcp-upgrade{margin-inline-start:auto}
.mcp-service .mcp-meter{height:5px;margin:6px 0 0;background:#dce6f6}
.mcp-service .mcp-meter>span{background:#477ce2}

.mcp-copy-status:empty,.mcp-actions:empty{display:none}
#libraryView :is(.mcp-actions a,.mcp-actions button,.wallet-expiry-row a,.product-balance-actions .product-text-link){font:500 13px/1.45 var(--mt-font-ui);color:var(--mt-deep);text-decoration:none}
#libraryView :is(.mcp-actions a,.mcp-actions button,.wallet-expiry-row a,.product-balance-actions .product-text-link):hover{text-decoration:underline}
.mcp-service[data-free-offer=true] .mcp-count{visibility:visible}
.mcp-offer h3{margin:0;font:600 17px/1.35 var(--mt-font-display)}
.mcp-offer>p{margin:6px 0 14px;font-size:14px;line-height:1.5;color:var(--mt-info)}
.mcp-offer-plans{overflow:hidden;border:1px solid var(--mt-line);border-radius:12px;background:var(--mt-surface)}
.mcp-offer-plans button{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:10px 12px;background:transparent;border:0;color:var(--mt-info);font:inherit;text-align:start;cursor:pointer}
.mcp-offer-plans button+button{border-top:1px solid var(--mt-line)}
.mcp-offer-plans button:hover,.mcp-offer-plans button:focus-visible{background:var(--mt-info-bg)}
.mcp-offer-plans button:focus-visible{outline-offset:-3px}
.mcp-offer-plans strong,.mcp-offer-plans small{display:block}
.mcp-offer-plans strong{font-size:14px;color:var(--mt-ink)}
.mcp-offer-plans small{font-size:13px;line-height:1.5}
.mcp-offer-plans svg{flex:none}

#libraryView :is(#libraryCreditsSummary .credit-collapsed-value,.mcp-service .mcp-count){color:var(--ink);font:400 14px/1.45 var(--mt-font-ui);font-variant-numeric:tabular-nums}
#libraryView .mcp-service summary{min-height:50px;padding:12px 16px;gap:10px;font:inherit}
#libraryView .mcp-service summary strong,#libraryCreditsSummary>strong{font:600 15px/1.4 var(--mt-font-ui)}
#libraryView .product-app-open .draft-state-badge{display:inline-block;justify-self:center;max-width:100%;padding:2px 6px;border-radius:6px;background:var(--mt-surface-muted,#efedf3);color:var(--muted);font:500 11px/1.35 var(--mt-font-ui)}
.wallet-expiry-row>.mcp-upgrade{margin-inline-start:auto}
.compare-plans-page .plan-guide{display:grid;gap:12px;margin-block:24px;padding:0}
.compare-plans-page .plan-guide :is(h2,p){margin:0}

#libraryMcpService>summary>strong{margin-inline-end:auto}
#libraryView .allowance-row .mcp-meter{background:#dce6f6}
#libraryView .allowance-row .mcp-meter>span{background:#477ce2}
#libraryView .allowance-row{grid-column:1/-1;min-width:0}
@media(max-width:839.98px){
 #libraryView #libraryCreditsSummary:not([hidden]){display:grid;grid-template-columns:1fr auto;gap:4px 8px}
 #libraryCreditsSummary .allowance-plan-line{grid-column:1/-1;display:flex;align-items:center;flex-wrap:wrap;gap:4px 10px;margin-top:4px}
 #libraryView #libraryCreditsSummary .credit-collapsed-value{font-size:13px;color:var(--mt-muted)}
 #libraryCreditsSummary[aria-expanded=true]>svg{transform:rotate(180deg)}
 #libraryView .library-credit-disclosure:has(#libraryCreditsSummary:not([hidden])) .product-credit-heading{display:none}
}

.allowance-pair{display:grid;gap:16px;grid-column:1/-1;min-width:0}
.allowance-row{display:grid;gap:4px}
.allowance-label,.allowance-source .credit-source-foot{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.allowance-label{font:500 13px/1.4 var(--mt-font-ui);color:var(--mt-muted)}
.allowance-label strong{color:var(--mt-ink);font-weight:600;font-variant-numeric:tabular-nums}
.allowance-label small,.allowance-source .credit-source-foot,.product-balance-panel .wallet-note{font-weight:400;color:var(--mt-muted)}
.allowance-row .product-source-meter{height:5px;margin:0}
.allowance-row--imports .product-source-meter{background:#dce6f6}
.allowance-row--imports .product-source-meter>span{background:#477ce2}
.allowance-source{display:grid;gap:10px}
.allowance-source h4{margin:0;font:600 14px/1.45 var(--mt-font-ui)}
.allowance-source+.allowance-source{border-top:1px solid var(--mt-line);padding-top:16px}
.mcp-service-body .mcp-copy-box textarea{font-size:14px;line-height:1.45}
.mcp-service-body .mcp-copy-box textarea:focus{font-size:16px}
.mcp-service[data-free-offer=true] .mcp-service-body{padding-bottom:20px}
.mcp-offer-plans button:last-child{padding-block-end:14px}

/* Account totals share a two-column summary. Individual packs keep compact rows. */
#libraryView #libraryAccountSummary{display:flex;flex-direction:column;gap:var(--mt-space-3)}
#libraryAccountSummary>.mcp-service{margin-block:0}
#libraryView .allowance-pair--total{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding-block:4px
}
#libraryView .allowance-pair--total>.allowance-row{grid-column:auto;align-content:start;gap:8px}
.allowance-pair--total .allowance-label{display:grid;gap:4px}
.allowance-pair--total .allowance-label strong{font:600 32px/1.1 var(--mt-font-display);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.allowance-pair--total .allowance-label small{font:400 13px/1.4 var(--mt-font-ui)}
@media(max-width:839.98px){
 #libraryView .ws-columns{row-gap:var(--mt-space-3)}
}

.product-checkout-plan :is(strong,small){justify-self:end;text-align:end}
#libraryView .allowance-pair--total>.allowance-row:only-child{grid-column:1/-1}
@media(min-width:761px){#studioView .product-result{align-items:center}}
#appearanceSheet [role="tabpanel"]:not([hidden]){padding-top:var(--mt-space-4)}
#appearanceSheet #zipIconPanel details{margin-top:var(--mt-space-3)}
#studioView #appearanceSheet .sample-icon-trigger{width:fit-content;max-width:100%}
#sampleIconSheet .icon-picker{display:grid;grid-template-columns:repeat(auto-fill,minmax(44px,1fr));gap:8px}
#studioView #sampleIconSheet .icon-choice{width:44px;justify-self:center}
@media(min-width:761px){#studioView #sampleIconSheet{margin:auto;border-radius:var(--mt-radius-card)}}

.mcp-copy-box.mcp-endpoint{box-sizing:border-box;width:100%;min-width:0;min-height:52px;padding:3px 4px 3px 16px;gap:4px;border-radius:14px;background:var(--mt-surface)}
.mcp-endpoint :is(code,input){font:400 14px/1.5 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:var(--mt-ink)}
.mcp-copy-box.mcp-endpoint button{width:44px;height:44px;border-radius:10px;color:var(--mt-info);background:transparent}
.mcp-copy-box.mcp-endpoint button:is(:hover,:focus-visible){background:var(--mt-info-bg);color:var(--mt-info)}

.product-preview-top{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px}
.product-preview-top select{font:inherit;color:var(--ink);max-width:100%;min-height:44px;padding-inline:8px}
.product-phone-frame:is([data-skin="neutral"],[data-skin="android"])>.product-phone-bezel{visibility:hidden}
.product-phone-frame:is([data-skin="neutral"],[data-skin="android"])::before{border:2px solid #aba8b3;border-radius:8% / 4%}
.product-phone-frame[data-skin="neutral"]::before{border-radius:10px}

/* Studio displays the app at its native canvas ratio without device hardware. */
.product-preview .studio-app-canvas{position:relative;width:min(100%,290px);aspect-ratio:1/2;margin:auto;overflow:hidden;isolation:isolate;border-radius:14px;background:white;box-shadow:0 12px 26px -10px #24173155}
.studio-preview-nav{display:flex;align-items:center;justify-content:space-between;gap:12px}
.studio-preview-nav .product-fullscreen{display:inline-flex}
@media(max-width:760px){
 .product-preview .studio-app-canvas{width:clamp(158px,48vw,240px)}
}

