@media(max-width:800px){body:not(.studio-page) .head-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;min-width:0}body:not(.studio-page) .site-header{height:auto;min-height:84px;align-items:center}body:not(.studio-page) #account-open{font-size:11px;padding:7px;min-height:36px}body:not(.studio-page) .head-actions .menu-toggle{position:static;flex-shrink:0}body:not(.studio-page) .head-actions .primary{font-size:11px;padding:7px}}
.studio-page #studio.le-route .le-canvas-stage{flex-shrink:0}.studio-page #studio.le-route .le-export{position:relative;z-index:3;flex-shrink:0;background:#0a202a}.studio-page #studio.le-route .le-canvas-stack{max-height:none}
@media(max-width:640px){.studio-page #studio.le-route .le-preview{max-height:none;overflow:visible;top:104px;padding:8px 14px}.studio-page #studio.le-route .le-canvas-stack{width:min(100%,150px)!important}.studio-page #studio.le-route .le-touch-tools{display:grid;grid-template-columns:minmax(0,1fr);margin-bottom:5px}.studio-page #studio.le-route .le-touch-tools #sticker-move-help{display:none}.studio-page #studio.le-route.le-move-mode #sticker-move-help{display:block}.studio-page #studio.le-route .le-preview-bar{flex-direction:row;align-items:center;margin-bottom:6px}.studio-page #studio.le-route .le-preview-bar .le-live{font-size:9px}.studio-page #studio.le-route #dimensions{font-size:11px}.studio-page #studio.le-route .le-export{margin-top:7px}.studio-page #studio.le-route #download-all{font-size:11px}.studio-page #studio.le-route #status{font-size:10px;margin:4px 0;min-height:0}.studio-page #studio.le-route .le-touch-tools button{min-height:36px;font-size:12px;padding:7px}.consent-banner{padding:12px;font-size:12px}.consent-banner p{font-size:12px}}
.supplementary-film{display:none}
.plan-grid,.project-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr));gap:22px;margin-block:25px}.plan-card,.project-card{padding:25px;border:1px solid #7fa59d50;background:#132c35;border-radius:12px}.platform-page button:not(.btn),.platform-page input,.platform-page select{max-width:100%;min-height:44px;padding:12px;border:1px solid #648b83;border-radius:7px;background:#14313b;color:#edf9f3}.platform-page label{font-size:15px;margin-block:14px}.platform-page form{max-width:600px}.inline-check{display:flex;flex-direction:row!important;gap:12px;align-items:center}.inline-check input{width:20px}.consent-banner{position:fixed;bottom:15px;inset-inline:15px;z-index:100;max-width:620px;margin:auto;background:#183b43;border:1px solid #89b7ab;border-radius:12px;padding:18px}.consent-banner p{font-size:14px;margin:0 0 12px}.consent-banner button{padding:10px;margin-inline-end:10px;background:#25525c;border:1px solid #82b1a8;color:white;border-radius:7px}.service-notice{color:#f1d3a2}.platform-page pre{white-space:pre-wrap;overflow-wrap:anywhere}.platform-page h1{font-size:clamp(32px,6vw,55px);letter-spacing:0}.project-card button{margin:5px}
.template-picker{grid-column:1/-1;min-width:0}.template-thumbs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;max-height:220px;overflow:auto;margin-block:10px}.template-thumbs button{min-width:0;font-size:11px!important;height:72px;text-shadow:0 1px 2px #0009;background-size:cover;color:white!important}.upgrade-dialog{max-width:min(480px,90vw);background:#12313b;color:#edf7f1;border:1px solid #89a9a5;border-radius:14px;padding:28px}.upgrade-dialog button,.upgrade-dialog a{display:inline-block;padding:12px;margin:10px;border:1px solid #87b9ad;color:#b6f7e3;background:#16353c;border-radius:8px}
.studio-page{background:#091923}.studio-page #studio.le-route{display:block;position:relative;inset:auto;margin:0;width:100%;height:100dvh;max-height:none;max-width:none;border:0;border-radius:0}.studio-back{color:#9ae9d6;padding:8px;font-size:13px;white-space:nowrap}.studio-page #studio.le-route .le-top{min-height:76px}.studio-page .le-grid{height:calc(100dvh - 76px)}.studio-page #studio.le-route .le-preview{position:sticky;top:0}.studio-page .le-top>div:first-of-type{min-width:0}.studio-page .le-top{flex-wrap:wrap}@media(max-width:640px){.studio-page #studio.le-route{height:auto;min-height:100dvh;overflow:visible;width:100%;top:auto;left:auto}.studio-page #studio.le-route .le-top{position:sticky;top:0;display:grid;grid-template-columns:1fr auto}.studio-back{grid-column:1/-1;padding:0;font-size:12px}.studio-page #studio.le-route .le-grid{height:auto;overflow:visible}.studio-page #studio.le-route .le-preview{position:sticky;top:105px;z-index:2;max-height:48dvh;overflow-y:auto;padding:12px;background:#0a202a}.studio-page #studio.le-route .le-canvas-stack,.studio-page #studio.le-route .le-canvas-stack:has(canvas[height="1920"]){width:min(100%,230px)}.studio-page #studio.le-route .le-export{grid-template-columns:1fr 1fr;gap:8px}.studio-page #studio.le-route .le-history{gap:5px}.studio-page #studio.le-route #download{font-size:12px}.studio-page .le-preview>.le-note{display:none}.studio-page .le-touch-tools{margin-bottom:5px!important}.studio-page #sticker-move-help{font-size:10px!important}.studio-page #studio.le-route #controls{overflow:visible}.studio-page #studio.le-route .le-top-actions{max-width:152px}}
.cloud-save-tools{padding:18px 0;display:grid;gap:12px;border-top:1px solid #52747a}.cloud-save-tools p{font-size:13px;color:#bacfca}.cloud-save-tools label{display:flex!important;flex-direction:row!important;align-items:center}.cloud-save-tools input[type=checkbox]{width:20px!important;min-height:20px!important}#account-open{font-size:12px;min-height:40px;padding:8px 12px}.platform-page{max-width:1100px;margin:auto;padding:130px 6% 70px}.platform-page p{font-size:16px}.legal-draft{padding:16px;background:#45351e;color:#ffe3b8;border:1px solid #937d50;border-radius:9px}.platform-links{display:flex;gap:18px;flex-wrap:wrap;margin-top:25px}.platform-links a{display:inline-flex;align-items:center;min-height:24px;min-width:24px;padding:4px 2px}.platform-links a{display:inline-flex;align-items:center;min-height:24px;min-width:24px;padding:4px 2px}@media(max-width:600px){#account-open{position:fixed;bottom:15px;inset-inline-end:15px;z-index:9;background:#17363d}.platform-page{padding-top:110px}.cloud-save-tools{min-width:0}}

/* Mobile: `position: fixed` inside the header is resolved against the header itself
   (backdrop-filter creates a containing block), which parked the account button on top of
   the menu toggle. Keep it in normal flow; .head-actions already wraps. */
@media(max-width:800px){
  #account-open{position:static!important;inset:auto!important;z-index:auto!important}
}

/* Mobile: `position: fixed` inside the header is resolved against the header itself
   (backdrop-filter creates a containing block), which parked the account button on top of
   the menu toggle. Keep it in normal flow; .head-actions already wraps. */
@media(max-width:800px){
  #account-open{position:static!important;inset:auto!important;z-index:auto!important}
}

/* Empty states + keep the consent banner from covering page content. */
.empty-state{display:grid;gap:14px;justify-items:start;padding:28px;border:1px dashed #7fa9a133;border-radius:12px;color:#cfe0dc}
.empty-state a.primary{display:inline-block;text-decoration:none}
body:not(.studio-page){padding-bottom:96px}
.consent-banner{bottom:16px;inset-inline:16px;max-width:640px;margin-inline:auto;z-index:60}

/* ---------- shared shell (dashboard + admin) ---------- */
.platform-page{--panel:#0e2731;--panel-2:#123039;--line:#2a4a52;--ink:#eef6f3;--muted:#9db6b3;--accent:#b8f5cf;--accent-ink:#08231a}
.dash-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.account-trigger{min-height:46px;padding:10px 16px;border-radius:999px;border:1px solid #3d6770;background:#15343d;color:#d9f2ec}
.account-trigger:hover{background:#1d434d}
.dash-header{display:flex;flex-wrap:wrap;gap:20px;align-items:flex-end;justify-content:space-between;margin-bottom:8px}
.dash-intro{min-width:0;flex:1 1 320px}
.dash-lede{margin:6px 0 0;color:var(--muted);font-size:15px;max-width:52ch}
.dash-new{display:inline-flex;align-items:center;gap:9px;padding:12px 20px;border-radius:999px;background:var(--accent);color:var(--accent-ink)!important;font-weight:650;text-decoration:none;border:1px solid #d6ffe6;min-height:48px;white-space:nowrap}
.dash-new:hover{background:#d8ffe8}
.dash-new-icon{font-size:19px;line-height:1}
.projects{margin-top:26px}
.projects-head{display:flex;align-items:baseline;gap:12px}
.projects-head h2{margin:0;font-size:clamp(22px,3.4vw,30px)}
.projects-count{display:inline-grid;place-items:center;min-width:26px;height:26px;padding:0 8px;border-radius:999px;background:#1b3b44;color:#cfe9e2;font-size:13px;font-variant-numeric:tabular-nums}
.dash-plan{display:inline-flex;gap:8px;align-items:center;margin:10px 0 0;font-size:13px;color:var(--muted)}
.dash-plan strong{color:#d8f7e6;letter-spacing:.04em;font-size:12px;padding:3px 9px;border:1px solid var(--line);border-radius:999px}

/* ---------- project cards ---------- */
.project-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(min(258px,100%),1fr));gap:18px;margin-block:18px 8px;align-items:start}
.project-card{position:relative;display:flex;flex-direction:column;margin:0;padding:0!important;overflow:visible;background:var(--panel);border:1px solid var(--line);border-radius:16px;transition:border-color .15s ease,transform .15s ease}
.project-card:hover,.project-card:focus-within{border-color:#4f7d84;transform:translateY(-1px)}
.project-open-link{display:block;text-decoration:none;color:inherit;border-radius:16px 16px 0 0;overflow:hidden}
.project-open-link:focus-visible{outline:3px solid #9ce9de;outline-offset:2px}
.project-thumb{position:relative;aspect-ratio:4/3;background:linear-gradient(135deg,#153641,#0b2129);overflow:hidden}
.project-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.project-thumb.is-empty{display:grid;place-items:center}
.project-thumb-fallback{color:#4d7178;font-size:15px;letter-spacing:.22em;font-weight:700}
.project-format{position:absolute;inset-inline-end:8px;bottom:8px;font-size:10px;letter-spacing:.08em;padding:3px 7px;border-radius:6px;background:#000000a6;color:#d7f4ea}
.project-body{padding:12px 14px 14px}
.project-name{margin:0 0 4px;font-size:15px;line-height:1.35;font-weight:620;overflow-wrap:anywhere;padding-inline-end:34px}
.project-meta{margin:0;font-size:12px;color:var(--muted)}
.project-menu-slot{position:absolute;inset-inline-end:8px;top:calc(75% + 4px)}
.project-menu{position:relative}
.project-menu-trigger{width:34px!important;min-width:34px;height:34px;min-height:34px!important;padding:0!important;margin:0!important;border-radius:9px;border:1px solid transparent;background:#1b3a43!important;color:#cfe9e2!important;font-size:17px;line-height:1}
.project-menu-trigger:hover{background:#24505a!important;border-color:#3f6b73}
.project-menu-list{position:absolute;inset-inline-end:0;top:calc(100% + 6px);z-index:30;min-width:184px;padding:6px;background:#0f2b34;border:1px solid #3e626a;border-radius:12px;box-shadow:0 18px 40px #0009;display:grid;gap:2px}
.project-menu-list[hidden]{display:none}
.project-menu-list button{justify-content:flex-start;text-align:start;width:100%;margin:0!important;min-height:40px!important;background:transparent!important;border:0!important;color:#e8f5f1!important;padding:9px 11px!important;border-radius:8px;font-size:14px}
.project-menu-list button:hover,.project-menu-list button:focus-visible{background:#1d4149!important}
.project-menu-list button.danger{color:#ffb9ad!important}

/* ---------- loading / error / empty ---------- */
.project-grid-skeleton{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(258px,100%),1fr));gap:18px}
.project-grid-skeleton .projects-note{grid-column:1/-1;margin:0;color:var(--muted);font-size:13px}
.skeleton-card{aspect-ratio:4/3.35;border-radius:16px;border:1px solid #22424a;background:linear-gradient(100deg,#123039 20%,#1a3f49 40%,#123039 60%);background-size:220% 100%;animation:luma-shimmer 1.4s linear infinite}
@keyframes luma-shimmer{from{background-position:110% 0}to{background-position:-10% 0}}
@media(prefers-reduced-motion:reduce){.skeleton-card{animation:none}}
.projects-error{grid-column:1/-1;padding:22px;border:1px dashed #5d4a3f;border-radius:14px;background:#20181499}
.projects-error p{margin:0 0 12px;color:#ffd9c9}
.empty-state{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:22px;align-items:center;justify-content:center;padding:38px 24px;border:1px dashed #33565e;border-radius:18px;background:#0f283198;text-align:start}
.empty-art{display:flex;gap:8px;align-items:flex-end;flex:0 0 auto}
.empty-art span{display:block;width:34px;border-radius:7px;background:#1d414a;border:1px solid #37626b}
.empty-art span:nth-child(1){height:44px}.empty-art span:nth-child(2){height:60px;background:#26545d}.empty-art span:nth-child(3){height:34px}
.empty-text h3{margin:0 0 6px;font-size:19px}
.empty-text p{margin:0 0 14px;color:var(--muted);max-width:44ch}
.empty-text .primary{display:inline-flex;align-items:center;min-height:46px;padding:11px 18px;border-radius:999px;background:var(--accent);color:var(--accent-ink);font-weight:650;text-decoration:none}
.account-data-title{margin:44px 0 0;font-size:17px;color:#c8ded9}
.account-tools{margin-top:10px;padding-top:16px;border-top:1px solid var(--line)!important}

@media(max-width:600px){
  .dash-header{align-items:stretch}
  .dash-new{justify-content:center;width:100%}
  .project-grid{grid-template-columns:1fr}
  .project-menu-slot{top:auto;bottom:10px;inset-inline-end:10px}
  .project-name{padding-inline-end:40px}
  .empty-state{padding:26px 18px}
  .account-tools{display:grid;gap:10px}
}

/* ============================================================================
   App shell — Dashboard, Pricing, Billing, Account settings.
   Scoped to .app-page so the marketing pages and the studio are untouched.
   ============================================================================ */
body.app-page{background:radial-gradient(1200px 600px at 70% -10%,#12323d 0%,#081820 55%,#06141b 100%)}
/* Latin-first stack: the Arabic-first stack elsewhere renders Latin words with very tight word gaps,
   which made "Spring launch — headphones" read as one word. Arabic still falls back per-glyph. */
.app-page,.app-page button,.app-page input,.app-page select,.app-page textarea{font-family:Manrope,'IBM Plex Sans Arabic',sans-serif}
.app-page .project-name,.app-page .price-amount,.app-page .page-head h1{font-family:Manrope,'IBM Plex Sans Arabic',sans-serif;font-weight:600;letter-spacing:0}
/* style.css sets letter-spacing:-2px for marketing display type. On 16-20px app headings that closes
   the glyphs up until words look sliced ("Invoices", "Delete account"), so reset it here. */
.app-page h1,.app-page h2,.app-page h3,.app-page h4,.app-page .billing-title,.app-page .empty-text h2{
  font-family:Manrope,'IBM Plex Sans Arabic',sans-serif;word-spacing:.08em;letter-spacing:-.01em;line-height:1.25}
.app-page .platform-page{max-width:1280px;margin-inline:auto;padding:18px clamp(14px,3vw,36px) 72px}

.app-bar{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:14px;
  padding:10px 0 12px;margin-bottom:10px;border-bottom:1px solid #1e3d46;
  background:linear-gradient(#071922f2,#071922d9);backdrop-filter:blur(10px)}
.app-brand{font-weight:700;letter-spacing:.16em;font-size:14px;color:#eafaf4;text-decoration:none;flex:0 0 auto}
.app-nav{display:flex;gap:4px;flex:1 1 auto;min-width:0;overflow-x:auto;scrollbar-width:none}
.app-nav::-webkit-scrollbar{display:none}
.app-nav a{position:relative;display:inline-flex;align-items:center;min-height:40px;padding:0 14px;
  border-radius:999px;color:#a9c6c1;text-decoration:none;font-size:14px;font-weight:550;white-space:nowrap}
.app-nav a:hover{background:#13303a;color:#e6f6f0}
.app-nav a.is-active{background:#b9f5cf;color:#08231a;font-weight:650}
.app-nav a:focus-visible{outline:3px solid #9ce9de;outline-offset:2px}
.app-bar-right{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.app-page #page-language{min-height:38px;max-width:86px;padding:6px 8px;border-radius:9px;
  border:1px solid #31535c;background:#0d2530;color:#dcefe9;font-size:13px}
.app-page .account-trigger{min-height:40px;padding:8px 14px;border-radius:999px;border:1px solid #3d6770;
  background:#123039;color:#d9f2ec;font-size:13px}
.app-page .account-trigger:hover{background:#1b434d}

.page-head{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-end;justify-content:space-between;margin:6px 0 18px}
.page-head h1{margin:0;font-size:clamp(22px,2.6vw + 8px,34px);line-height:1.15;letter-spacing:-.01em;color:#f1fbf7}
.page-sub{margin:6px 0 0;color:#93b3ae;font-size:14.5px;max-width:60ch}
.page-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:11px 18px;
  border-radius:11px;border:1px solid transparent;font:inherit;font-size:14.5px;font-weight:600;
  text-decoration:none;cursor:pointer;transition:background .15s ease,border-color .15s ease,transform .1s ease}
.btn:active{transform:translateY(1px)}
.btn:focus-visible{outline:3px solid #9ce9de;outline-offset:2px}
.btn:disabled{opacity:.5;cursor:not-allowed}
.btn-primary{background:#b9f5cf;color:#08231a;border-color:#d6ffe6}
.btn-primary:hover:not(:disabled){background:#cdfbdd}
.btn-quiet{background:#123039;color:#dcefe9;border-color:#3a606a}
.btn-quiet:hover:not(:disabled){background:#1b4049}
.btn-ghost{background:transparent;color:#b9f5cf;border-color:#3f6b73}
.btn-ghost:hover:not(:disabled){background:#123039}
.btn-danger{background:#ffb9ad;color:#3a0f08;border-color:#ffd3ca}
.btn-danger:hover:not(:disabled){background:#ffcdc3}
.btn-block{width:100%}
.btn-icon{font-size:18px;line-height:1}

.app-main{display:block;min-width:0}
/* `hidden` must win over component display rules (.btn{display:inline-flex} used to win). */
.app-page [hidden]{display:none!important}
/* `hidden` must win over component display rules (.btn{display:inline-flex} used to win). */
.app-page [hidden]{display:none!important}

/* ---- plan + usage strip ---- */
.plan-strip{display:grid;grid-template-columns:auto minmax(200px,1fr) auto;gap:18px;align-items:center;
  padding:16px 18px;margin-bottom:18px;border:1px solid #24444c;border-radius:14px;background:#0d2831}
.plan-strip-item{display:grid;gap:3px;min-width:0}
.plan-strip-label{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#8fb0ac}
.plan-strip-value{font-size:15px;color:#eafaf4;font-variant-numeric:tabular-nums}
.plan-strip-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.plan-strip-actions .btn{min-height:40px;padding:8px 14px;font-size:13.5px}
.usage-meter{position:relative;height:6px;margin-top:7px;border-radius:999px;background:#173842;overflow:hidden;max-width:340px}
.usage-meter-fill{display:block;height:100%;width:0;border-radius:999px;background:linear-gradient(90deg,#4bbf9b,#b9f5cf);transition:width .25s ease}
.usage-meter.is-full .usage-meter-fill{background:linear-gradient(90deg,#e0a34a,#ffd08a)}

/* ---- toolbar ---- */
.project-toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;margin-bottom:16px}
.field-search{position:relative;flex:1 1 300px;min-width:0;max-width:460px}
.field-search-icon{position:absolute;inset-inline-start:13px;top:50%;transform:translateY(-50%);color:#7fa2a2;font-size:16px;pointer-events:none}
.app-page .field-search input{width:100%;min-height:44px;padding:10px 13px;padding-inline-start:38px;border-radius:11px;
  border:1px solid #31535c;background:#0c2229;color:#eaf7f2;font-size:14.5px}
.app-page .field-search input::placeholder{color:#7d9c9b}
.field-sort{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.field-sort label{font-size:13px;color:#93b3ae;margin:0;white-space:nowrap}
.app-page .field-sort select{min-height:44px;padding:8px 12px;border-radius:11px;border:1px solid #31535c;background:#0c2229;color:#eaf7f2;font-size:14px}

.count-badge{display:inline-grid;place-items:center;min-width:26px;height:26px;padding:0 8px;border-radius:999px;
  background:#1b3b44;color:#cfe9e2;font-size:13px;font-weight:600;vertical-align:middle}
.count-badge[hidden]{display:none}

/* ---- project cards ---- */
.app-page .project-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(270px,100%),1fr));gap:18px;margin:0}
.app-page .project-card{position:relative;display:flex;flex-direction:column;margin:0;padding:0;overflow:visible;
  background:#0e2831;border:1px solid #24444c;border-radius:16px;transition:border-color .15s ease,transform .15s ease}
.app-page .project-card:hover,.app-page .project-card:focus-within{border-color:#4f7d84;transform:translateY(-2px)}
.app-page .project-open-link{position:relative;display:block;text-decoration:none;color:inherit;border-radius:15px 15px 0 0;overflow:hidden}
.app-page .project-open-link:focus-visible{outline:3px solid #9ce9de;outline-offset:-3px}
.app-page .project-thumb{position:relative;aspect-ratio:4/3;background:linear-gradient(135deg,#153641,#0b2129);overflow:hidden}
.app-page .project-thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s ease}
.app-page .project-card:hover .project-thumb img{transform:scale(1.03)}
.app-page .project-thumb.is-empty{display:grid;place-items:center}
.app-page .project-thumb-fallback{color:#4d7178;font-size:15px;letter-spacing:.22em;font-weight:700}
.app-page .project-format{position:absolute;inset-inline-end:9px;bottom:9px;font-size:10px;letter-spacing:.08em;
  padding:3px 7px;border-radius:6px;background:#000000a6;color:#d7f4ea}
.project-open-hint{position:absolute;inset:auto 0 0 0;padding:26px 12px 10px;font-size:12.5px;color:#eafaf4;
  background:linear-gradient(#0000,#000000b3);opacity:0;transition:opacity .18s ease}
.app-page .project-card:hover .project-open-hint,.app-page .project-card:focus-within .project-open-hint{opacity:1}
.app-page .project-body{padding:12px 14px 14px}
.app-page .project-name{margin:0 0 4px;font-size:15px;line-height:1.35;font-weight:620;color:#eef8f4;
  overflow-wrap:anywhere;padding-inline-end:34px}
.app-page .project-meta{margin:0;font-size:12.5px;color:#93b3ae}
.app-page .project-menu-slot{position:absolute;bottom:10px;inset-inline-end:10px}
.app-page .project-menu{position:relative}
.app-page .project-menu-trigger{width:34px;min-width:34px;height:34px;min-height:34px;padding:0;margin:0;
  border-radius:9px;border:1px solid #2f535c;background:#16343d;color:#cfe9e2;font-size:17px;line-height:1}
.app-page .project-menu-trigger:hover{background:#21505a}
.app-page .project-menu-trigger:focus-visible{outline:3px solid #9ce9de;outline-offset:2px}
.app-page .project-menu-list{position:absolute;inset-inline-end:0;bottom:calc(100% + 6px);z-index:40;min-width:190px;
  padding:6px;background:#0f2b34;border:1px solid #3e626a;border-radius:12px;box-shadow:0 18px 40px #000a;display:grid;gap:2px}
.app-page .project-menu-list[hidden]{display:none}
.app-page .project-menu-list button{justify-content:flex-start;text-align:start;width:100%;margin:0;min-height:42px;
  background:transparent;border:0;color:#e8f5f1;padding:9px 11px;border-radius:8px;font-size:14px}
.app-page .project-menu-list button:hover,.app-page .project-menu-list button:focus-visible{background:#1d4149}
.app-page .project-menu-list button.danger{color:#ffb9ad}

/* ---- states ---- */
.app-page .project-grid-skeleton{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(270px,100%),1fr));gap:18px}
.app-page .project-grid-skeleton .projects-note{grid-column:1/-1;margin:0;color:#93b3ae;font-size:13px}
.skeleton-card{aspect-ratio:4/3.35;border-radius:16px;border:1px solid #22424a;
  background:linear-gradient(100deg,#123039 20%,#1a3f49 40%,#123039 60%);background-size:220% 100%;
  animation:luma-shimmer 1.4s linear infinite}
@keyframes luma-shimmer{from{background-position:110% 0}to{background-position:-10% 0}}
@media(prefers-reduced-motion:reduce){.skeleton-card{animation:none}}
.app-page .projects-error{grid-column:1/-1;padding:22px;border:1px dashed #5d4a3f;border-radius:14px;background:#20181499}
.app-page .projects-error p{margin:0 0 12px;color:#ffd9c9}
.app-page .empty-state{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:24px;align-items:center;justify-content:center;
  padding:44px 24px;border:1px dashed #33565e;border-radius:18px;background:#0f283166;text-align:start}
.app-page .empty-state.is-compact{padding:32px 22px;justify-content:flex-start}
.empty-art{display:flex;gap:8px;align-items:flex-end;flex:0 0 auto}
.empty-art span{display:block;width:34px;border-radius:7px;background:#1d414a;border:1px solid #37626b}
.empty-art span:nth-child(1){height:44px}
.empty-art span:nth-child(2){height:60px;background:#26545d}
.empty-art span:nth-child(3){height:34px}
.empty-text h2{margin:0 0 6px;font-size:19px;color:#f1fbf7}
.empty-text p{margin:0 0 16px;color:#93b3ae;max-width:46ch}
.empty-text .btn{margin-top:2px}

/* ---- pricing ---- */
.segmented{display:inline-flex;gap:4px;padding:4px;border:1px solid #2c4b53;border-radius:999px;background:#0d2530}
.segmented button{min-height:38px;padding:7px 16px;border-radius:999px;border:0;background:transparent;
  color:#b6d0cb;font:inherit;font-size:13.5px;font-weight:600;display:inline-flex;align-items:center;gap:6px}
.segmented button.is-active{background:#b9f5cf;color:#08231a}
.segmented button:focus-visible{outline:3px solid #9ce9de;outline-offset:2px}
.segmented-badge{font-size:10.5px;font-weight:700;letter-spacing:.02em;padding:2px 7px;border-radius:999px;
  background:#1d4149;color:#c8f7dd}
.segmented button.is-active .segmented-badge{background:#0f3d2c;color:#d8ffe8}

.pricing-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr));gap:20px;margin:4px 0 18px}
.price-card{position:relative;display:flex;flex-direction:column;padding:26px;border:1px solid #24444c;
  border-radius:18px;background:#0e2831}
.price-card.is-featured{border-color:#4f9d86;background:linear-gradient(165deg,#123840,#0e2831 60%);
  box-shadow:0 20px 50px #06222b80}
.price-badge{align-self:flex-start;margin-bottom:8px;font-size:11px;font-weight:700;letter-spacing:.05em;
  text-transform:uppercase;padding:4px 10px;border-radius:999px;background:#b9f5cf;color:#08231a}
.price-name{margin:0 0 2px;font-size:17px;font-weight:650;color:#eafaf4}
.price-line{display:flex;align-items:baseline;gap:6px;margin:8px 0 2px}
.price-amount{font-size:clamp(34px,5vw,44px);line-height:1;letter-spacing:-.02em;color:#f4fdf9;font-variant-numeric:tabular-nums}
.price-amount-pro{color:#d8ffe8}
.price-period{font-size:14px;color:#93b3ae}
.price-note{margin:0 0 16px;font-size:13px;color:#8fb0ac}
.price-list{list-style:none;margin:0 0 22px;padding:0;display:grid;gap:9px}
.price-list li{position:relative;padding-inline-start:24px;font-size:14px;color:#d8ebe6}
.price-list li::before{content:"✓";position:absolute;inset-inline-start:0;top:-1px;color:#8fe6bd;font-weight:700}
.price-item{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.price-item-label{color:#d8ebe6}
.price-item-value{color:#9dc0b9;font-size:13px;text-align:end;white-space:nowrap;font-variant-numeric:tabular-nums}
.price-item-value.is-muted{color:#6d8c88}
.price-card .btn{margin-top:auto}
.price-fine{margin:10px 0 0;font-size:12px;color:#7fa2a2;text-align:center}
.pricing-notes{display:grid;gap:6px;margin:6px 0 30px}
.pricing-notes p{margin:0;font-size:12.5px;color:#8fb0ac}
.pricing-status:empty{display:none}
.pricing-status{margin:0 0 10px;padding:10px 12px;border-radius:10px;background:#3a2418;border:1px solid #7a5334;color:#ffd9b8;font-size:13.5px}

.compare{margin-top:8px}
.compare-title{margin:0 0 12px;font-size:18px;color:#eafaf4}
.compare-table{width:100%;border-collapse:collapse;font-size:14px;border:1px solid #24444c;border-radius:14px;overflow:hidden}
.compare-table th,.compare-table td{padding:12px 14px;text-align:start;border-bottom:1px solid #1e3b44}
.compare-table thead th{background:#0d2530;color:#9db6b3;font-size:11.5px;letter-spacing:.07em;text-transform:uppercase;font-weight:600}
.compare-table tbody th{font-weight:550;color:#dcefe9}
.compare-table td{color:#a9c6c1}
.compare-table td.is-pro{color:#d8ffe8;font-weight:600}
.compare-table tbody tr:last-child th,.compare-table tbody tr:last-child td{border-bottom:0}

/* ---- billing + account ---- */
.billing-card{position:relative;padding:22px 24px;margin-bottom:16px;border:1px solid #24444c;border-radius:16px;background:#0e2831}
.billing-card.is-danger{border-color:#6b4038;background:#1b1513}
.billing-title{margin:0 0 12px;font-size:18px;color:#eafaf4}
.billing-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;
  padding:10px 0;border-bottom:1px solid #1c3941}
.billing-row:last-of-type{border-bottom:0}
.billing-row.is-muted .billing-value{color:#8fb0ac}
.billing-label{font-size:13px;color:#8fb0ac}
.billing-value{font-size:15px;color:#f1fbf7;overflow-wrap:anywhere}
.billing-note{margin:12px 0 0;font-size:13px;color:#8fb0ac;max-width:70ch}
.status-pill{font-size:12px;font-weight:700;letter-spacing:.04em;padding:4px 10px;border-radius:999px;
  background:#1d4149;color:#c8f7dd;text-transform:capitalize}
.status-pill.status-past_due{background:#4a2a1c;color:#ffc9a8}
.status-pill.status-canceled,.status-pill.status-cancelling{background:#3a3524;color:#f0dcae}
.status-pill.status-expired{background:#40222a;color:#ffb9c3}
.billing-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:18px}
.billing-actions .billing-note{margin:0}
.danger-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:6px}
.danger-actions input{min-height:44px;padding:10px 12px;border-radius:10px;border:1px solid #7a4a40;
  background:#120e0d;color:#ffe3dc;font-size:14px;min-width:220px}

/* ---- responsive ---- */
@media(max-width:860px){
  /* Stacked strip: each metric becomes one label/value line instead of a tall column that left
     half the card empty on a phone. */
  .plan-strip{grid-template-columns:1fr;gap:14px}
  .plan-strip-item{grid-template-columns:auto auto;justify-content:space-between;align-items:center;gap:6px 12px}
  .plan-strip-item .usage-meter{grid-column:1/-1;max-width:none;margin-top:2px}
  .plan-strip-actions{justify-content:stretch}
  .plan-strip-actions .btn{flex:1 1 auto}
  .pricing-grid{grid-template-columns:1fr}
}
@media(max-width:640px){
  .app-page .platform-page{padding:10px 14px 56px}
  /* Grid, not wrapped flex: the wrapped flex row let the nav row overflow the bar's box and paint
     over the page heading. */
  .app-bar{display:grid;grid-template-columns:auto 1fr;grid-template-areas:'brand right' 'nav nav';
    gap:8px;padding:8px 0 10px}
  .app-brand{grid-area:brand;align-self:center}
  .app-bar-right{grid-area:right;justify-self:end}
  .app-nav{grid-area:nav;width:100%;gap:2px;min-width:0}
  .app-nav a{padding:0 11px;font-size:13px;min-height:38px}
  .app-bar-right{margin-inline-start:auto}
  .page-head{align-items:flex-start;margin-bottom:14px}
  .page-head h1{font-size:clamp(21px,6vw,26px)}
  .page-sub{font-size:13.5px}
  .page-head h1{font-size:clamp(21px,6vw,26px)}
  .page-sub{font-size:13.5px}
  .page-actions{width:100%}
  .page-actions .btn{width:100%}
  .segmented{width:100%;justify-content:space-between}
  .segmented button{flex:1 1 auto;justify-content:center;padding:7px 10px;font-size:12.5px}
  .app-page .project-grid,.app-page .project-grid-skeleton{grid-template-columns:1fr}
  .project-open-hint{opacity:1}
  .compare-table th,.compare-table td{padding:10px}
  .compare-table thead th:first-child,.compare-table tbody th{font-size:12.5px}
  .billing-card{padding:18px 16px}
  .danger-actions input{min-width:0;width:100%}
  .danger-actions .btn{width:100%}
}
