/* Conouri Studio app shell.
   A calm neutral dark workspace: slim left menu, announcement strip on top, one big prompt card in the middle,
   pill controls and soft glossy panels. Loaded after studio-app.css, so everything here wins. */
body.appbody {
  --pb: 40px;               /* announcement strip height (0 when dismissed) */
  --sw: 238px;              /* left menu width */
  --tb: 58px;               /* top bar height */
  --bg: #0e0e10;
  --card: #151518;
  --card2: #1b1b1f;
  --line: rgba(255, 255, 255, .07);
  --line2: rgba(255, 255, 255, .12);
  --ink: #f3f3f6;
  --mute: #a0a0ad;
  --dim: #6d6d79;
  --acc: #b6b0ff;
  --acc2: #5eead4;
  --gloss: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, 0) 60%);
  --serif: "Instrument Serif", Georgia, serif;
  --ui: "Montserrat", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  font-family: var(--ui);
}
body.appbody.nopromo { --pb: 0px; }
body.appbody.sidemini { --sw: 66px; }
.appbody button, .appbody input, .appbody textarea { font-family: var(--ui); }

/* ---------- announcement strip ---------- */
.promo { position: fixed; top: 0; left: 0; right: 0; height: 40px; z-index: 80; display: none; align-items: center; justify-content: center; gap: 12px; padding: 0 44px; font-size: 13px; font-weight: 600; color: #08080c; background: linear-gradient(90deg, #8f86ff, #7aa8ff 45%, #5eead4); white-space: nowrap; overflow: hidden; }
body.inapp .promo { display: flex; }
body.nopromo .promo { display: none !important; }
.pm-chip { font: 800 10px/1 var(--ui); letter-spacing: .06em; text-transform: uppercase; background: #0a0a0e; color: #fff; border-radius: 6px; padding: 5px 7px; }
.pm-text { overflow: hidden; text-overflow: ellipsis; }
.pm-btn { background: #fff; color: #0a0a0e; text-decoration: none; font-weight: 700; border-radius: 999px; padding: 6px 14px; font-size: 12.5px; flex: none; }
.pm-x { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: #0a0a0e; font-size: 15px; width: 28px; height: 28px; border-radius: 50%; opacity: .7; }
.pm-x:hover { opacity: 1; background: rgba(0, 0, 0, .1); }

/* ---------- left menu ---------- */
.side { position: fixed; left: 0; top: var(--pb); bottom: 0; width: var(--sw); z-index: 60; display: flex; flex-direction: column; gap: 10px; padding: 16px 12px 14px; background: #0c0c0e; border-right: 1px solid var(--line); overflow-y: auto; overflow-x: hidden; transition: width .18s ease; }
.side-top { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 10px 6px; }
.side-brand { font-size: 18px; letter-spacing: -.01em; }
.side-collapse { border: 0; background: transparent; color: var(--mute); width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.side-collapse:hover { background: rgba(255, 255, 255, .06); color: var(--ink); }
.sidenav { display: grid; gap: 2px; }
.sn { display: flex; align-items: center; gap: 13px; width: 100%; padding: 11px 12px; border-radius: 12px; border: 0; background: transparent; color: #cfcfd8; text-decoration: none; text-align: left; font-weight: 600; font-size: 14.5px; white-space: nowrap; transition: background .15s, color .15s; }
.sn svg { flex: none; opacity: .8; }
.sn:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.sn.on { background: rgba(255, 255, 255, .09); color: #fff; }
.sn.on svg { opacity: 1; }
.sn-sep { height: 1px; background: var(--line); margin: 8px 8px; }
.sn-tag { margin-left: auto; font: 700 10px/1 var(--ui); font-style: normal; color: #6fd2ff; background: rgba(111, 210, 255, .12); padding: 3px 6px; border-radius: 6px; }
.side-foot { margin-top: auto; display: grid; gap: 6px; }
.side-plan { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line); font-size: 12.5px; }
.sp-name { font-weight: 700; }
.sp-cr { color: var(--mute); }
.sidescrim { display: none; }
.side-btn { display: none; border: 1px solid var(--line2); background: transparent; color: var(--ink); width: 40px; height: 40px; border-radius: 12px; place-items: center; }
body.sidemini .side { padding-inline: 10px; }
body.sidemini .side .sn span, body.sidemini .side .sn-tag, body.sidemini .side-brand, body.sidemini .side-plan { display: none; }
body.sidemini .side-top { justify-content: center; padding: 2px 0 10px; }
body.sidemini .sn { justify-content: center; padding: 11px 0; }

/* ---------- top bar ---------- */
body.inapp .nav { position: fixed; top: var(--pb); left: var(--sw); right: 0; height: var(--tb); z-index: 50; background: rgba(14, 14, 16, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 0; transition: left .18s ease; }
body.inapp .nav .wrap { width: 100%; max-width: none; padding: 0 22px; height: var(--tb); justify-content: flex-end; }
body.inapp .nav .brand, body.inapp .nav .back-link { display: none; }
body.inapp .nav .nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.credits { background: var(--card2); border-color: var(--line2); }
.upg { position: relative; border: 1px solid var(--line2); background: var(--card2); color: var(--ink); border-radius: 12px; padding: 9px 18px; font-weight: 700; font-size: 13.5px; }
.upg:hover { border-color: rgba(255, 255, 255, .3); }
.upg-badge { position: absolute; top: -10px; right: -4px; font: 800 9.5px/1 var(--ui); color: #0a0a0e; background: linear-gradient(90deg, #ffe08a, #ff9ec4); padding: 3px 6px; border-radius: 6px; }
.guide-toggle { background: var(--card2); }

/* ---------- stage ---------- */
.stage { margin-left: var(--sw); padding: calc(var(--pb) + var(--tb) + 26px) 28px 100px; transition: margin-left .18s ease; }
.stage > .view { max-width: 920px; margin: 0 auto; }
.view[hidden] { display: none; }
.hero2 { text-align: center; margin: 4px 0 24px; }
.hero2 h1 { font-family: var(--ui); font-weight: 500; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 20px; }
.hero2 h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.18em; letter-spacing: 0; padding-right: .04em; background: none; color: inherit; -webkit-text-fill-color: currentColor; }
.hero2.small { margin-bottom: 16px; }
.hero2.small h1 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 8px; }
.sub2 { color: var(--mute); margin: 0 auto; max-width: 560px; font-size: 14.5px; }
.gtoggle { display: inline-flex; padding: 4px; border-radius: 999px; background: #1a1a1d; border: 1px solid var(--line); }
.gtoggle button { border: 0; background: transparent; color: var(--mute); padding: 10px 34px; border-radius: 999px; font-weight: 600; font-size: 14px; }
.gtoggle button.on { color: #0e0e10; background: linear-gradient(90deg, #fff, #f1e7ff 60%, #e5f6ff); box-shadow: 0 2px 14px rgba(150, 140, 255, .25); }

/* ---------- the prompt card ---------- */
.composer { position: static; max-height: none; overflow: visible; display: block; padding: 14px 16px 14px; border-radius: 22px; border: 1px solid var(--line2); background: var(--gloss), #131316; box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .9); }
.ctabs { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.composer .seg.ctab-seg { display: inline-flex; padding: 0; gap: 4px; background: transparent; border: 0; margin: 0; width: auto; }
.composer .seg button { padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 13.5px; color: var(--mute); background: transparent; }
.composer .seg button[aria-selected="true"] { background: rgba(255, 255, 255, .09); color: #fff; box-shadow: none; }
.ctab-link { color: var(--mute); text-decoration: none; font-weight: 600; font-size: 13.5px; padding: 8px 14px; border-radius: 10px; }
.ctab-link:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.cbody { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; }
.prefs .refcap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: 0; }
.prefs .refs { display: flex; flex-direction: column; gap: 8px; }
.prefs .ref, .prefs .ref-add { width: 74px; height: 74px; border-radius: 14px; }
.prefs .ref-add { background: rgba(255, 255, 255, .04); border: 1.5px dashed rgba(255, 255, 255, .2); color: #c9c9d3; font-size: 13px; font-weight: 600; }
.prefs .ref-add:hover { border-color: #fff; color: #fff; }
.pmain textarea { border: 0; background: transparent; padding: 6px 2px; min-height: 92px; font-size: 15.5px; line-height: 1.55; resize: none; color: var(--ink); }
.pmain textarea:focus { outline: none; }
.pmain textarea::placeholder { color: #6f6f7c; }
.composer .hint { margin: 4px 0 0; }
.cbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.cbar-l, .cbar-r { display: flex; align-items: center; gap: 8px; }
.cchip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line2); background: transparent; color: #d9d9e2; border-radius: 12px; padding: 9px 13px; font-weight: 600; font-size: 13px; white-space: nowrap; }
.cchip:hover { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .24); }
.cchip[aria-expanded="true"] { background: rgba(255, 255, 255, .09); }
.cchip.cmodel { border-color: transparent; background: rgba(255, 255, 255, .05); }
.costchip { color: var(--mute); font-size: 12.5px; font-weight: 600; padding-right: 2px; }
.send { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .13); color: #8a8a96; transition: background .15s, color .15s, transform .15s; }
.composer:has(#prompt:not(:placeholder-shown)) .send, .send:focus-visible { background: #fff; color: #0e0e10; box-shadow: 0 8px 26px -8px rgba(255, 255, 255, .5); }
.send:hover { transform: translateY(-1px); }
.send:disabled { opacity: .6; transform: none; }
.send.busy svg { display: none; }
.send.busy::after { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(14, 14, 16, .25); border-top-color: #0e0e10; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.composer .cost { margin: 8px 0 0; text-align: left; font-size: 12.5px; }

/* popovers */
.pw { position: relative; }
.pop { position: absolute; bottom: calc(100% + 10px); left: 0; z-index: 70; width: 380px; max-width: calc(100vw - 32px); max-height: 66vh; overflow-y: auto; padding: 14px 16px 16px; background: #1a1a1e; border: 1px solid var(--line2); border-radius: 18px; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .9); }
.pop[hidden] { display: none; }
.pop .lab { margin-top: 12px; }
.pop .lab:first-child { margin-top: 0; }
.pop-model { left: auto; right: 0; width: 340px; }
.pop .mpick { display: grid; gap: 8px; overflow: visible; padding: 0; }
.pop .mcard { width: 100%; }
.alt3 { margin-top: 14px; width: 100%; justify-content: center; }

/* models */
.mcard { flex: 0 0 auto; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); padding: 10px 12px; }
.mcard:hover { border-color: var(--line2); }
.mcard[aria-checked="true"] { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .08); box-shadow: none; }
.mcard .ic { width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .07); }
.mcard small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mcard .pc { color: #8fe3c9; }

/* chips */
.chips { gap: 7px; }
.chp { border-radius: 999px; padding: 8px 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line2); color: #cfcfd8; font-family: var(--ui); }
.chp:hover { border-color: rgba(255, 255, 255, .3); color: #fff; }
.chp[aria-checked="true"], .chp[aria-pressed="true"] { background: #fff; color: #0e0e10; border-color: #fff; box-shadow: none; }
.chp small { font-family: var(--ui); opacity: .65; }
.slashrow { margin-top: 14px; }
.slashrow .chips { justify-content: flex-start; }
.chp.slash { background: rgba(255, 255, 255, .04); font-weight: 600; font-size: 13px; }
.chp.slash[aria-pressed="true"] { background: rgba(182, 176, 255, .2); color: #fff; border-color: rgba(182, 176, 255, .7); }
.chp.chip-add { border-style: solid !important; color: #cfcfd8 !important; }
.ideas { margin-top: 10px; }
.idea { font-family: var(--ui); font-size: 12.5px; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: transparent; color: var(--mute); border: 1px solid var(--line); }
.idea:hover { color: #fff; border-color: var(--line2); background: rgba(255, 255, 255, .04); }

/* feature tiles under the card */
.tiles { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 14px; margin-top: 34px; }
.tile { position: relative; display: block; border-radius: 16px; overflow: hidden; background: var(--card2); border: 1px solid var(--line); color: var(--ink); text-decoration: none; text-align: left; padding: 0; transition: border-color .18s, transform .18s; }
.tile:hover { border-color: rgba(255, 255, 255, .28); transform: translateY(-2px); }
.tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tile.big { min-height: 210px; }
.tile.big img { position: absolute; inset: 0; }
.tile.big .tile-in { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; background: linear-gradient(transparent, rgba(0, 0, 0, .82)); }
.tile b { display: block; font-size: 15px; font-weight: 700; }
.tile small { display: block; color: #c4c4cf; font-size: 12.5px; margin-top: 2px; }
.tilegrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tilegrid .tile { display: flex; align-items: center; gap: 12px; padding: 8px; min-height: 92px; }
.tilegrid .tile img { flex: none; width: 76px; height: 76px; border-radius: 12px; }
.tilegrid .tile-in { min-width: 0; }
.tilegrid .tile small { color: var(--mute); }

/* creations */
.feed { margin-top: 44px; }
.feed-head h2 { font-family: var(--ui); font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.job { background: var(--gloss), var(--card); border-radius: 18px; border-color: var(--line2); }
.jgrid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
@media (min-width: 1001px) { .jgrid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
.jt { color: var(--mute); }
.empty { border-radius: 20px; background: rgba(255, 255, 255, .015); }

/* Explore */
.fan { display: flex; justify-content: center; align-items: center; margin: 0 0 22px; height: 220px; }
.fcard { flex: none; border-radius: 18px; overflow: hidden; border: 1px solid var(--line2); background: #000; margin: 0 -10px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8); }
.fcard img { width: 100%; height: 100%; object-fit: cover; }
.fcard.f0, .fcard.f4 { width: 130px; height: 150px; opacity: .75; }
.fcard.f1, .fcard.f3 { width: 150px; height: 180px; opacity: .9; }
.fcard.f2 { width: 200px; height: 220px; z-index: 2; }
.tabs2 { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 20px; }
.exgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.excard { border-radius: 18px; overflow: hidden; background: var(--card2); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .2s, border-color .2s; }
.excard:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, .3); }
.exmedia { position: relative; aspect-ratio: 3 / 4; background: #000; cursor: pointer; }
.exmedia video, .exmedia img { width: 100%; height: 100%; object-fit: cover; }
.exbadge { position: absolute; top: 10px; left: 10px; font: 700 11px/1 var(--ui); padding: 6px 9px; border-radius: 999px; background: rgba(10, 10, 14, .7); backdrop-filter: blur(8px); color: #fff; }
.exbody { padding: 12px 14px 14px; display: grid; gap: 7px; }
.exbody h3 { margin: 0; font-size: 14.5px; font-family: var(--ui); font-weight: 700; }
.exbody .btn { width: 100%; justify-content: center; background: #fff; color: #0e0e10; border: 0; }

/* "Make your own" overlay */
.remix { padding: 18px; }
.rm-card { position: relative; display: grid; grid-template-columns: 380px minmax(0, 1fr); width: min(1100px, 100%); height: min(720px, 92vh); background: #131316; border: 1px solid var(--line2); border-radius: 24px; overflow: hidden; }
.rm-left { padding: 22px; overflow-y: auto; background: var(--gloss), #17171b; }
.rm-left h2 { font-family: var(--ui); font-weight: 600; font-size: 18px; margin: 0 40px 14px 0; }
.rm-slot { position: relative; background: #1e1e23; border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin-bottom: 12px; }
.rm-tag { position: absolute; top: 10px; left: 10px; z-index: 2; font: 600 11px/1 var(--ui); padding: 5px 8px; border-radius: 8px; background: rgba(0, 0, 0, .55); color: #cfcfd8; }
.rm-media { height: 190px; border-radius: 12px; overflow: hidden; background: #000; display: grid; place-items: center; }
.rm-media video, .rm-media img { width: 100%; height: 100%; object-fit: contain; }
.rm-ref { min-height: 120px; display: grid; place-items: center; }
.rm-add { width: 100%; height: 96px; margin-top: 18px; border-radius: 12px; border: 1.5px dashed rgba(255, 255, 255, .22); background: transparent; color: #d6d6df; display: grid; place-items: center; align-content: center; gap: 4px; }
.rm-add:hover { border-color: #fff; }
.rm-add small { font-size: 12px; color: var(--mute); }
.rm-picked { margin-top: 18px; height: 110px; border-radius: 12px; overflow: hidden; }
.rm-picked img { width: 100%; height: 100%; object-fit: cover; }
.rm-left textarea { width: 100%; min-height: 96px; border-radius: 14px; background: #101013; border: 1px solid var(--line2); padding: 12px 14px; font-size: 14px; color: var(--ink); resize: vertical; }
.rm-line { margin: 10px 0 14px; color: var(--mute); font-size: 12.5px; font-weight: 600; }
.rm-go { width: 100%; border: 0; border-radius: 999px; padding: 15px; background: linear-gradient(90deg, #fff, #f1e7ff 60%, #e5f6ff); color: #0e0e10; font-weight: 700; font-size: 15px; }
.rm-go:hover { filter: brightness(1.04); }
.rm-right { padding: 16px; overflow-y: auto; columns: 3 150px; column-gap: 10px; }
.rmtile { position: relative; display: block; width: 100%; margin: 0 0 10px; padding: 0; break-inside: avoid; border-radius: 14px; overflow: hidden; border: 2px solid transparent; background: #000; }
.rmtile img { width: 100%; display: block; }
.rmtile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; font: 600 11.5px/1.25 var(--ui); text-align: left; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); }
.rmtile.on { border-color: #fff; }
.rmtile:hover { border-color: rgba(255, 255, 255, .5); }

/* gallery view */
.gallery { border-radius: 22px; background: var(--gloss), var(--card); border-color: var(--line2); }

/* guide tips and modals keep to the same neutral look */
.guide { border-left-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .05); border-radius: 0 12px 12px 0; }
.guide.welcome { border-left-color: var(--acc2); background: rgba(94, 234, 212, .07); }
.modal-card, .vw-card { background: #151518; }
.skillcard input[type=text], .skillcard textarea { background: #101013; }
.mpick::-webkit-scrollbar { height: 6px; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  body.appbody { --sw: 0px; }
  .side { transform: translateX(-102%); transition: transform .22s ease; box-shadow: 20px 0 60px rgba(0, 0, 0, .7); width: 262px; top: 0; z-index: 90; }
  body.sideopen .side { transform: none; }
  body.sideopen .sidescrim { display: block; position: fixed; inset: 0; z-index: 85; background: rgba(4, 4, 8, .6); }
  body.sidemini .side .sn span, body.sidemini .side .sn-tag, body.sidemini .side-brand, body.sidemini .side-plan { display: revert; }
  body.inapp .nav .wrap { justify-content: space-between; padding: 0 12px; }
  body.inapp .side-btn { display: grid; }
  body.inapp .nav .brand { display: inline-flex; }
  .stage { padding: calc(var(--pb) + var(--tb) + 16px) 14px 90px; }
  .tiles { grid-template-columns: 1fr; }
  .tile.big { min-height: 160px; }
  .rm-card { grid-template-columns: 1fr; height: 94vh; }
  .rm-right { display: none; }
  .fan { height: 170px; }
  .fcard.f2 { width: 150px; height: 170px; }
  .fcard.f1, .fcard.f3 { width: 110px; height: 140px; }
  .fcard.f0, .fcard.f4 { display: none; }
  .promo { font-size: 12px; padding: 0 40px 0 12px; justify-content: flex-start; }
}
@media (max-width: 560px) {
  body.inapp .nav .brand small, body.inapp .nav .credits > span:last-child { display: none; }
  body.inapp .nav .nav-right { gap: 6px; }
  body.inapp #getMore { padding: 8px 12px; }
  .upg-badge { display: none; }
  .guide-toggle { padding: 8px 10px; }
  .guide-toggle #guideTxt { display: none; }
  .composer { padding: 12px; border-radius: 18px; }
  .cbody { grid-template-columns: 1fr; }
  .prefs .refs { flex-direction: row; flex-wrap: wrap; }
  .pop, .pop-model { position: fixed; left: 12px; right: 12px; bottom: 12px; width: auto; max-height: 70vh; z-index: 120; }
  .tilegrid { grid-template-columns: 1fr; }
  .exgrid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .exbody { padding: 10px; }
  .exbody p { display: none; }
  .gtoggle button { padding: 9px 24px; }
  .pm-text { white-space: normal; font-size: 11.5px; line-height: 1.2; }
  .promo { height: 40px; }
}
.cchip { flex-wrap: nowrap; }
.cchip svg { flex: none; }
.cchip.cmodel #modelTxt { overflow: hidden; text-overflow: ellipsis; max-width: 190px; }

.pm-short { display: none; }
@media (max-width: 560px) {
  .pm-long { display: none; }
  .pm-short { display: inline; }
  .promo { justify-content: center; }
  body.inapp #getMore { display: none; }
}

/* Phone stability: nothing wider than the screen, no sideways pan or bounce, banner clear of the notch. */
html, body { max-width: 100%; overflow-x: hidden; overscroll-behavior-x: none; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body.appbody { --pb: calc(40px + env(safe-area-inset-top)); min-height: 100dvh; }
body.appbody.nopromo { --pb: 0px; }
.promo { height: calc(40px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); }
@media (max-width: 560px) { .promo { height: calc(40px + env(safe-area-inset-top)); } }
img, video, canvas, svg { max-width: 100%; }
input, select, textarea { max-width: 100%; font-size: 16px; }
.main, .composer, .cbody, .tilegrid, .exgrid, .jobs { min-width: 0; }
