:root{color-scheme:dark;--flow-accent:#ffb78a;--flow-line:#ffffff1c;--flow-muted:#aba9b4}
.app-cta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin:0 0 18px;padding:18px 20px;border:1px solid #ffb78a40;border-radius:16px;background:linear-gradient(110deg,#ec8b4018,#ffffff03)}
#deploy-open,#detail-deploy{text-decoration:none;text-align:center}#detail-deploy{display:block;margin-block:10px}#detail-deploy[hidden]{display:none}
.flow-page{margin:0;background:#0c0c10;color:#f5f1ed;font:15px/1.65 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}.flow-shell{max-width:1120px;margin:auto;padding:30px 36px 64px}.flow-nav{display:flex;justify-content:space-between;align-items:center;gap:16px}.flow-page a{color:inherit;text-underline-offset:4px}.flow-brand{text-decoration:none;font-weight:650;letter-spacing:-.5px}.flow-brand b{color:var(--flow-accent)}.flow-page select,.flow-page input{font:inherit;color:inherit;background:#19191f;border:1px solid #ffffff32;border-radius:10px;padding:11px 12px;max-width:100%;box-sizing:border-box}.flow-page select{min-width:140px}.flow-hero{padding:70px 0 35px;max-width:820px}.flow-kicker{font-size:12px;letter-spacing:3px;color:var(--flow-accent)}.flow-page h1{font-size:clamp(32px,5vw,58px);line-height:1.12;letter-spacing:-1.8px;font-weight:600;margin:20px 0}.flow-page p{color:var(--flow-muted)}.flow-page h2{font-size:21px;font-weight:550;margin:10px 0 16px}.flow-picker{padding:24px;border:1px solid var(--flow-line);border-radius:18px;background:#15151b;display:grid;grid-template-columns:1fr auto;gap:14px 24px;align-items:end}.flow-picker label{display:grid;gap:10px;min-width:0}.flow-picker select{width:100%}.flow-picker select,.flow-picker .flow-button{height:50px;padding-top:0;padding-bottom:0}.flow-picker p{grid-column:1/-1;margin:0;font-size:13px}.flow-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:24px 0 40px}.flow-card{border:1px solid var(--flow-line);border-radius:18px;padding:28px;background:linear-gradient(135deg,#ffffff04,transparent);min-width:0}.flow-number{font-size:12px;color:var(--flow-accent);font-variant-numeric:tabular-nums}.flow-card p{font-size:14px;line-height:1.8}.flow-card label{display:grid;gap:9px;font-size:13px;margin:22px 0 14px}.flow-button{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;text-align:center;border:1px solid #ffffff30;border-radius:10px;padding:12px 18px;font:inherit;font-weight:600;text-decoration:none;cursor:pointer;background:#222229;color:#f5f1ed}.flow-button.primary{background:var(--flow-accent);color:#20130d;border-color:transparent}.flow-button:disabled{opacity:.45;cursor:not-allowed}.flow-page :focus-visible{outline:2px solid var(--flow-accent);outline-offset:4px}.flow-status{min-height:24px;font-size:13px;margin:12px 0}.flow-note{font-size:13px}.flow-footer{border-top:1px solid var(--flow-line);padding-top:25px;display:flex;gap:20px;justify-content:space-between;align-items:center}.flow-footer p{max-width:620px;color:#e4dfd9}.plan-price{font-size:36px;color:#fff!important;letter-spacing:-1px}.flow-plans{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.flow-page [hidden]{display:none!important}
@media(max-width:760px){.flow-shell{padding:22px 20px 40px}.flow-hero{padding:42px 0 25px}.flow-grid,.flow-plans{grid-template-columns:1fr}.flow-picker{grid-template-columns:1fr}.flow-card{padding:24px}.flow-footer{align-items:stretch;flex-direction:column}.flow-nav{flex-wrap:wrap}.flow-hero h1{letter-spacing:-.8px}.account-actions{flex-wrap:wrap}#deploy-open{font-size:12px}.app-cta>a{width:100%;text-align:center}}
.flow-card .plan-price{font-size:36px;line-height:1.2;margin-block:22px}
@media(max-width:760px){#deploy-open{display:none}}

/* Website upload follows Motion's existing typography, colors and controls. */
.deploy-page .flow-hero{padding:54px 0 28px}.deploy-page .flow-card{margin-bottom:22px}.upload-card{background:#15151b}.upload-actions,.deploy-submit,.legacy-guides{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.deploy-page .control-row{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:end}.deploy-page label{margin:0;min-width:0}.deploy-page .control-row label{display:grid;gap:8px}.deploy-page input:not([type=checkbox]),.deploy-page select,.deploy-page .flow-button{height:50px;width:100%;min-width:0;line-height:1.3}.deploy-page .flow-button{width:auto;max-width:100%;padding-block:0}.deploy-page #language{width:auto;max-width:220px}.deploy-page .control-row+.flow-note{margin:16px 0}.deploy-page .control-row{margin-block:18px}.file-list{max-height:220px;overflow:auto;overflow-wrap:anywhere;padding-inline-start:24px;font:13px/1.8 ui-monospace,monospace;text-align:start}.missing-note{border:1px solid #ffb78a70;border-radius:12px;padding:18px;margin-top:20px}.deploy-page .confirm-row{display:flex;align-items:center;gap:10px}.confirm-row input{width:20px;height:20px;flex:none;accent-color:#ffb78a}.deploy-page progress{width:100%;height:8px;accent-color:#ffb78a;margin-top:22px}.website-link{display:block;color:#ffb78a!important;overflow-wrap:anywhere;font-size:18px}.deploy-page details summary{cursor:pointer;color:#ddd}.deploy-page .flow-note{line-height:1.65}.deploy-page #deploy-error{color:#ffb8a7}.deploy-page .legacy-deploy form{display:grid;gap:12px}.deploy-page .legacy-deploy .flow-grid{margin-bottom:22px}.deploy-page .legacy-guides{font-size:13px}.deploy-page .flow-nav>a:not(.flow-brand){font-size:13px}.deploy-page .upload-actions .primary{min-width:190px}
@media(max-width:760px){#deploy-open{display:inline-flex!important}.deploy-page .control-row{grid-template-columns:1fr}.deploy-page .flow-card{padding:20px}.deploy-page .upload-actions{display:grid;grid-template-columns:1fr}.deploy-page .flow-button{width:100%;height:auto;min-height:50px;padding-block:12px}.deploy-page .flow-hero{padding:34px 0 22px}.deploy-page .flow-nav{gap:14px}.deploy-page .flow-nav .flow-brand{flex:1 0 45%}.deploy-page #language{max-width:100%}.deploy-submit{display:grid;grid-template-columns:1fr}.deploy-page .flow-shell{padding-inline:18px}}

.public-confirm{margin-block:22px!important}.deploy-page #site-preview{width:min(1100px,94vw);max-width:94vw;background:#15151b;color:#eee;border:1px solid #555;border-radius:14px;padding:16px}.preview-top{display:flex;gap:20px;align-items:center;justify-content:space-between}.deploy-page #preview-frame{width:100%;height:70vh;border:0;background:white}.deploy-page #site-preview::backdrop{background:#000b}#device-code{font:24px ui-monospace,monospace;letter-spacing:2px}#auth-code{padding-block:15px}#auth-status{overflow-wrap:anywhere}@media(max-width:760px){.preview-top{display:block}.preview-top button{margin-bottom:12px}}

@media(max-width:600px){.site-header{height:auto;position:relative;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto 40px;gap:10px;padding-block:14px}.site-header .brand{grid-column:1;grid-row:1}.site-header .header-right{grid-column:1;grid-row:2;width:100%;justify-content:space-between;align-items:flex-start;gap:10px}.site-header .account-actions{flex:1;flex-wrap:wrap;justify-content:flex-end;gap:6px}.site-header .selection-actions{flex:none}.site-header .search-box{grid-column:1;grid-row:3}.sidebar{top:0}}

/* Website height never changes the deployment page: preview is a bounded dialog. */
.preview-card{border-color:#ffb78a50}.preview-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.preview-heading h2{margin:0}.deploy-page #preview-empty{margin-bottom:0}.deploy-page #deployment-options{scroll-margin-top:20px}.preview-open{overflow:hidden}.deploy-page #site-preview{box-sizing:border-box;width:min(1100px,calc(100vw - 24px));max-width:calc(100vw - 24px);height:min(850px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);padding:16px;overflow:hidden}.deploy-page #site-preview[open]{display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;gap:12px}.deploy-page .preview-top{display:flex;gap:12px;align-items:center;justify-content:space-between;min-width:0}.deploy-page .preview-top h2{font-size:20px;line-height:1.3;margin:0;min-width:0;overflow-wrap:anywhere}.deploy-page #close-preview{width:auto;max-width:55%;flex:none;margin:0;min-height:50px}.deploy-page #preview-note{margin:0;font-size:13px;line-height:1.5}.deploy-page #preview-frame{display:block;width:100%;height:100%;min-height:0;border:0;border-radius:8px;background:white}.deploy-page #preview-return{justify-self:end}.deploy-page #deployment-actions:focus{outline:2px solid var(--flow-accent);outline-offset:6px;border-radius:10px}@media(max-width:760px){.preview-heading{display:grid;grid-template-columns:1fr}.deploy-page #site-preview{padding:12px;gap:10px}.deploy-page .preview-top h2{font-size:18px}.deploy-page #preview-return{width:100%}}

/* Copy for AI: local clipboard with an accessible manual fallback. */
.detail-copy-note,.detail-copy-status{font-size:11px;line-height:1.6;overflow-wrap:anywhere;color:#a8a8b1;margin:6px 0}
.detail-copy-status:empty{display:none}.detail-copy-status[data-kind=error]{color:#ffb69a}
#detail-copy-ai{font-weight:650;min-height:36px;border-color:#8b6448}#detail-copy-ai[aria-busy=true]{cursor:progress}
.ai-copy-dialog{width:min(850px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:24px;border:1px solid #3d3d45;border-radius:16px;background:#15151b;color:#f2f2f5}
.ai-copy-dialog::backdrop{background:rgba(0,0,0,.72)}.ai-copy-dialog h2{margin:0 0 12px;font-size:20px}
.ai-copy-dialog p,.ai-copy-dialog label{font-size:13px;line-height:1.5;display:block}.ai-copy-dialog textarea{box-sizing:border-box;width:100%;height:min(48vh,440px);resize:vertical;display:block;margin:10px 0 16px;background:#0b0b10;color:#ddd;border:1px solid #5b5b65;padding:12px;font:12px/1.5 monospace}
.ai-copy-actions{display:flex;flex-wrap:wrap;gap:10px}.ai-copy-actions button{min-height:38px}.ai-copy-dialog :focus-visible,#detail-copy-ai:focus-visible{outline:2px solid #ff9b52;outline-offset:3px}
