@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --bg: #080c18;
  --surface: #11182a;
  --surface-2: #151e32;
  --surface-hover: #1d2942;
  --ink: #f3f5ff;
  --ink-soft: #b4bfd5;
  --ink-faint: #7785a2;
  --line: rgba(181,198,255,.105);
  --line-strong: rgba(172,193,252,.19);
  --primary: #756cfb;
  --primary-light: #a39bff;
  --teal: #59dfca;
  --focus: #a39bff;
  --shadow: 0 22px 74px rgba(0,0,0,.23);
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--bg); }
body::before { position: fixed; z-index: -1; inset: 0; content: ''; pointer-events: none; background: radial-gradient(ellipse 50% 38% at 88% -10%, rgba(112,74,255,.13), transparent 75%), radial-gradient(ellipse 40% 36% at 25% 72%, rgba(37,96,157,.085), transparent 80%); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
svg { display: block; width: 18px; height: 18px; flex-shrink: 0; }
code { color: #c0baff; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .94em; }
studio-app, single-generator-view, apps-view { display: block; }
[hidden] { display: none !important; }
.boot-state { display: grid; min-height: 100vh; place-content: center; color: var(--ink-soft); text-align: center; }

/* Dashboard shell */
.app-shell { display: grid; min-height: 100vh; grid-template-columns: 258px minmax(0,1fr); }
.sidebar { position: sticky; top: 0; display: flex; height: 100vh; flex-direction: column; background: linear-gradient(180deg,#0e1526 0%,#0b1120 100%); border-right: 1px solid var(--line); }
.brand { display: flex; gap: 12px; align-items: center; min-height: 100px; padding: 22px 25px; text-decoration: none; }
.brand-logo { position: relative; display: grid; width: 43px; height: 43px; place-items: center; flex: 0 0 43px; overflow: hidden; background: linear-gradient(135deg,#232c52,#151b36); border: 1px solid rgba(181,198,255,.17); border-radius: 14px; box-shadow: 0 8px 28px rgba(89,80,248,.16); }
.brand-logo img { width: 34px; height: 34px; object-fit: contain; }
.brand-text { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.brand-text strong { font: 800 17px/1.1 'DM Sans',sans-serif; letter-spacing: -.65px; white-space: nowrap; }
.brand-text strong span { color: #a8a2ff; }
.brand-text small { color: #657492; font-size: 9px; font-weight: 800; letter-spacing: 3px; }
.sidebar-content { display: flex; flex: 1; flex-direction: column; padding: 38px 14px 24px; }
.nav-caption { padding: 0 14px; color: #61728d; font-size: 9px; font-weight: 800; letter-spacing: 1.9px; }
.view-tabs { display: grid; gap: 6px; margin-top: 17px; }
.view-tab { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 47px; padding: 0 14px; color: #8d9bb7; text-align: left; background: transparent; border: 1px solid transparent; border-radius: 10px; font-size: 12px; font-weight: 700; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.view-tab:hover { background: rgba(142,153,251,.08); color: #e4e8ff; }
.view-tab[aria-selected="true"] { color: #e4e2ff; background: linear-gradient(95deg,rgba(113,101,251,.22),rgba(113,101,251,.095)); border-color: rgba(146,133,255,.2); box-shadow: inset 3px 0 0 #8c82ff; }
.view-tab svg:first-child { width: 17px; height: 17px; }
.view-tab svg:last-child { width: 14px; height: 14px; margin-left: auto; opacity: .45; }
.nav-caption-tools { margin-top: 46px; }
.environment-card { display: flex; align-items: center; gap: 10px; margin: 16px 5px 0; padding: 12px 10px; border: 1px solid rgba(171,193,238,.09); background: rgba(255,255,255,.025); border-radius: 11px; }
.environment-icon { display: grid; width: 33px; height: 33px; place-items: center; color: #64dec7; background: rgba(57,220,170,.11); border-radius: 9px; }
.environment-icon svg { width: 17px; height: 17px; }
.environment-card strong { display: block; font-size: 11px; font-weight: 700; }
.environment-card small { display: block; margin-top: 4px; color: #7986a2; font-size: 9px; }
.environment-online { width: 6px; height: 6px; margin-left: auto; background: #66ddbb; border-radius: 50%; box-shadow: 0 0 0 4px rgba(72,225,184,.1); }
.sidebar-tip { position: relative; margin: auto 3px 0; padding: 22px 16px 18px; border: 1px solid rgba(148,151,255,.16); border-radius: 14px; overflow: hidden; background: radial-gradient(circle at 90% 0,rgba(126,104,255,.21), transparent 50%), linear-gradient(155deg,rgba(85,74,182,.13),rgba(20,28,47,.7)); }
.sidebar-tip::after { position: absolute; top: -32px; right: -44px; width: 105px; height: 105px; content: ''; border: 1px solid rgba(165,147,255,.16); border-radius: 50%; }
.sidebar-tip-icon { display: grid; width: 35px; height: 35px; place-items: center; margin-bottom: 20px; color: #b4aeff; background: rgba(146,129,255,.16); border-radius: 10px; }
.sidebar-tip strong { font-size: 11px; }
.sidebar-tip p { margin: 9px 0 0; color: #929eb8; font-size: 10px; line-height: 1.65; }
.sidebar-footer { display: flex; gap: 8px; align-items: center; min-height: 65px; padding: 0 25px; border-top: 1px solid var(--line); color: #657492; font-size: 10px; }
.footer-indicator { width: 6px; height: 6px; border-radius: 50%; background: #5fdeb9; }
.sidebar-version { margin-left: auto; color: #657492; }

/* Top bar + hero */
.app-main { min-width: 0; }
.topbar { border-bottom: 1px solid var(--line); background: rgba(11,16,30,.65); backdrop-filter: blur(22px); }
.topbar-inner { display: flex; min-height: 73px; align-items: center; justify-content: space-between; gap: 15px; max-width: 1470px; margin: auto; padding: 0 38px; }
.breadcrumb { color: #72809f; font-size: 12px; font-weight: 600; }
.breadcrumb span { padding: 0 9px; color: #3b4b68; }
.breadcrumb strong { color: #e4e9fa; font-weight: 650; }
.topbar-right { display: flex; align-items: center; gap: 25px; }
.topbar-version { color: #697894; font-size: 10px; font-weight: 800; letter-spacing: 1.5px; }
.local-signal { display: flex; align-items: center; gap: 7px; padding: 8px 12px; color: #b0f3de; font-size: 10px; font-weight: 650; background: rgba(56,192,150,.075); border: 1px solid rgba(65,207,163,.15); border-radius: 99px; white-space: nowrap; }
.local-signal svg { width: 13px; height: 13px; }
.workspace { width: min(1470px,100%); margin: 0 auto; padding: 32px 38px 22px; }
.hero { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 248px; margin-bottom: 23px; padding: 35px 40px; border: 1px solid rgba(153,146,255,.2); border-radius: 20px; overflow: hidden; background: radial-gradient(ellipse at 88% 30%,rgba(94,74,195,.25),transparent 47%), linear-gradient(112deg,rgba(29,36,72,.92),rgba(18,26,50,.9) 63%,rgba(33,25,71,.83)); box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 24px 85px rgba(0,0,0,.12); }
.hero::before { position: absolute; inset: 0; content: ''; pointer-events: none; opacity: .25; background-image: radial-gradient(rgba(173,164,255,.42) .6px,transparent .6px); background-size: 18px 18px; mask-image: linear-gradient(90deg,transparent 49%,black); }
.hero-content { position: relative; z-index: 1; max-width: 650px; }
.hero-eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 19px; color: #afaaff; font-size: 10px; font-weight: 800; letter-spacing: 1.55px; }
.hero-eyebrow-line { width: 18px; height: 2px; background: #9386ff; border-radius: 2px; }
.hero-eyebrow-separator { color: #5d639e; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: 'DM Sans',sans-serif; }
h1 { max-width: 560px; margin: 0; color: #f7f6ff; font-size: clamp(28px,3.1vw,42px); font-weight: 800; line-height: 1.19; letter-spacing: -1.65px; }
h1 span { color: #aea5ff; }
.heading-note { max-width: 530px; margin: 14px 0 0; color: #aab5d2; font-size: 12px; line-height: 1.8; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 23px; }
.hero-chips > span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; color: #c3c8e5; background: rgba(215,218,255,.065); border: 1px solid rgba(213,223,255,.075); border-radius: 6px; font-size: 10px; font-weight: 600; }
.hero-chips svg { width: 13px; height: 13px; color: #a9a1fb; }
.hero-art { position: relative; display: grid; width: 280px; height: 170px; flex: 0 0 280px; place-items: center; }
.orb { position: absolute; border-radius: 50%; filter: blur(24px); }
.orb-one { right: 7px; top: 0; width: 125px; height: 125px; background: rgba(128,98,253,.34); }
.orb-two { left: 20px; bottom: 4px; width: 80px; height: 80px; background: rgba(45,213,205,.16); }
.hero-art-card { position: relative; width: 206px; height: 140px; padding: 17px; background: linear-gradient(150deg,rgba(43,53,95,.94),rgba(23,27,53,.9)); border: 1px solid rgba(164,169,255,.37); border-radius: 16px; box-shadow: 10px 14px 30px rgba(5,5,32,.45), inset 0 1px 0 rgba(255,255,255,.14); transform: rotate(-9deg); }
.hero-art-window { display: flex; gap: 5px; margin-bottom: 18px; }
.hero-art-window span { width: 6px; height: 6px; background: #9d8fff; border-radius: 50%; }
.hero-art-window span:nth-child(2) { background: #5ddcc8; }.hero-art-window span:nth-child(3) { background: #f4ae99; }
.hero-art-line { width: 93%; height: 6px; margin-bottom: 11px; background: linear-gradient(90deg,rgba(160,152,255,.46),rgba(160,152,255,.075)); border-radius: 99px; }
.hero-art-line.short { width: 60%; }.hero-art-line.mid { width: 78%; }
.hero-art-mark { position: absolute; display: grid; right: -19px; bottom: -16px; width: 62px; height: 62px; place-items: center; color: white; background: linear-gradient(140deg,#9185ff,#5d5de7); border: 1px solid rgba(255,255,255,.27); border-radius: 17px; box-shadow: 0 16px 28px rgba(42,31,128,.5); transform: rotate(10deg); }
.hero-art-mark svg { width: 32px; height: 32px; }

/* Generator */
.view-panel { animation: arrive .27s ease both; }
@keyframes arrive { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.generator-layout { display: grid; grid-template-columns: minmax(335px,.9fr) minmax(0,1.2fr); gap: 20px; align-items: stretch; }
.panel { min-width: 0; overflow: hidden; background: linear-gradient(155deg,rgba(24,33,54,.87),rgba(16,24,42,.95)); border: 1px solid var(--line-strong); border-radius: 17px; box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.025); }
.form-panel { padding: 26px; }
.panel-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 28px; }
.panel-heading-icon { display: grid; width: 46px; height: 46px; place-items: center; flex: 0 0 46px; color: #b1a8ff; background: rgba(113,101,249,.16); border: 1px solid rgba(144,132,255,.2); border-radius: 13px; }
.panel-heading-icon svg { width: 21px; height: 21px; }
.overline { display: block; margin-bottom: 7px; color: #8d83e9; font-size: 9px; font-weight: 800; letter-spacing: 1.22px; }
.panel-heading h2, .preview-header h2 { margin: 0; color: #f7f7ff; font-size: 18px; font-weight: 800; letter-spacing: -.35px; }
.panel-heading p, .preview-header p { margin: 7px 0 0; color: #8896b1; font-size: 10px; line-height: 1.55; }
.form-stack { display: grid; gap: 17px; }
.section-label { display: flex; gap: 8px; align-items: center; color: #929fc1; font-size: 9px; font-weight: 800; letter-spacing: .9px; }
.section-label-dot { width: 5px; height: 5px; border-radius: 50%; background: #8c83fd; box-shadow: 0 0 0 3px rgba(140,131,253,.12); }
.field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.field { display: grid; min-width: 0; gap: 9px; }
.field label { display: flex; justify-content: space-between; gap: 5px; align-items: center; color: #d2d8ea; font-size: 11px; font-weight: 600; }
.required-marker { margin-right: auto; color: #9d91fa; }
.label-helper { color: #7d8cab; font-size: 9px; font-weight: 500; }
.field input, .field select, .field textarea { display: block; width: 100%; min-width: 0; height: 45px; padding: 0 13px; color: #f0f3ff; background: rgba(8,14,29,.68); border: 1px solid rgba(159,179,234,.14); border-radius: 9px; font-size: 11px; transition: border-color .2s ease,box-shadow .2s ease; }
.field input::placeholder { color: #60708c; }
.field input:hover { border-color: rgba(174,184,255,.32); }
.field input:focus { outline: none; border-color: rgba(154,144,255,.7); box-shadow: 0 0 0 3px rgba(122,104,248,.13); }
.publish-dialog { width: min(460px, calc(100% - 32px)); padding: 24px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px; }
.publish-dialog::backdrop { background: rgba(4, 7, 14, .76); }
.publish-dialog h2, .publish-dialog p { margin: 0; }
.publish-dialog p { color: var(--ink-soft); }
.publish-dialog [hidden], .publish-dialog [data-publish-error]:empty { display: none; }
.publish-dialog [data-publish-error] { color: #fca5a5; }
.publish-dialog #published-code { font-family: monospace; letter-spacing: .12em; }
.form-divider { height: 1px; margin: 1px 0; background: rgba(187,204,255,.09); }
.button-row { display: flex; flex-wrap: wrap; gap: 9px; }
.button { display: inline-flex; min-height: 39px; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; color: #e7eaff; background: rgba(99,113,143,.16); border: 1px solid transparent; border-radius: 9px; font-size: 10px; font-weight: 800; text-decoration: none; white-space: nowrap; transition: transform .15s ease,background .2s ease,border-color .2s ease, box-shadow .2s ease; }
.button svg { width: 15px; height: 15px; }
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button:disabled { cursor: not-allowed; opacity: .45; }
.button-primary { color: white; background: linear-gradient(100deg,#7066f9,#9a79fa); border-color: rgba(188,177,255,.2); box-shadow: 0 9px 25px rgba(102,82,237,.21); }
.button-primary:hover:not(:disabled) { box-shadow: 0 13px 31px rgba(112,94,249,.35); }
.button-full { display: flex; width: 100%; min-height: 45px; margin-top: 2px; font-size: 11px; }
.button-full svg:last-child { margin-left: auto; }
.button-full svg:first-child { margin-left: auto; }
.button-accent { color: #0a1d26; background: linear-gradient(100deg,#7be8ce,#4ed4c7); border-color: rgba(171,253,224,.25); box-shadow: 0 10px 22px rgba(30,157,136,.1); }
.button-accent:hover:not(:disabled) { box-shadow: 0 13px 28px rgba(50,186,157,.21); }
.button-outline { color: #cdd5ed; background: rgba(137,157,224,.045); border-color: rgba(160,183,255,.17); }
.button-outline:hover:not(:disabled), .button-soft:hover:not(:disabled), .button-icon:hover:not(:disabled) { background: rgba(114,126,178,.17); border-color: rgba(160,183,255,.3); }
.button-soft { color: #b7afff; background: rgba(123,106,242,.11); border-color: rgba(154,141,255,.2); }
.field-hint { display: flex; gap: 9px; align-items: flex-start; margin: -5px 0 1px; color: #7585a2; font-size: 10px; line-height: 1.65; }
.field-hint svg { width: 13px; height: 13px; margin-top: 1px; color: #6ddfbd; }
.download-section { display: grid; gap: 14px; margin-top: 1px; padding-top: 18px; border-top: 1px solid rgba(187,204,255,.09); }
.download-actions .button { flex: 1 1 auto; }

/* Output preview */
.preview-panel { display: flex; min-height: 600px; flex-direction: column; }
.preview-header { display: flex; gap: 12px; align-items: center; padding: 25px 24px 22px; }
.preview-heading-icon { color: #77e0ce; background: rgba(76,199,178,.11); border-color: rgba(76,199,178,.17); }
.preview-ready { display: flex; gap: 7px; align-items: center; margin-left: auto; padding: 7px 10px; color: #8ae8cf; background: rgba(70,196,153,.095); border: 1px solid rgba(69,210,163,.14); border-radius: 50px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.preview-ready.is-error { color: #ffc5b9; background: rgba(243,98,80,.1); border-color: rgba(243,98,80,.2); }
.status-dot { width: 6px; height: 6px; background: #62ddb7; border-radius: 50%; }
.is-error .status-dot { background: #ff967d; }
.preview-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 0 17px 0 19px; background: rgba(7,12,25,.55); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.preview-tabs { display: flex; min-width: 0; gap: 3px; overflow-x: auto; scrollbar-width: thin; }
.preview-tab { position: relative; min-height: 48px; padding: 0 13px; color: #7584a1; background: transparent; border: 0; font: 600 10px 'Inter',sans-serif; white-space: nowrap; }
.preview-tab:hover { color: #cbd2eb; }
.preview-tab[aria-selected="true"] { color: #c8c1ff; }
.preview-tab[aria-selected="true"]::after { position: absolute; bottom: 0; right: 10px; left: 10px; height: 2px; content: ''; background: #9d90ff; border-radius: 2px 2px 0 0; }
.preview-actions { display: flex; flex: 0 0 auto; }
.button-icon { min-height: 30px; padding: 0 10px; color: #9faace; background: rgba(117,128,181,.1); border-color: rgba(167,187,238,.1); }
.button-icon svg { width: 14px; height: 14px; }
.preview-code-wrap { position: relative; display: flex; flex: 1; min-height: 245px; background: #090f1e; }
.preview-code-wrap::before { position: absolute; left: 14px; top: 17px; bottom: 17px; width: 1px; content: ''; background: rgba(147,160,222,.1); }
.code-preview { width: 100%; min-height: 245px; max-height: 365px; margin: 0; padding: 21px 25px 21px 31px; overflow: auto; color: #a7c9e3; background: transparent; font: 11px/1.8 ui-monospace, SFMono-Regular, Consolas,monospace; tab-size: 2; white-space: pre; scrollbar-color: #384361 #0b1020; }
.preview-foot { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 11px 23px; color: #70809d; background: rgba(7,12,25,.62); border-top: 1px solid var(--line); font-size: 10px; font-weight: 600; }
.preview-foot > span:first-child { display: flex; align-items: center; gap: 7px; }
.preview-foot svg { width: 12px; height: 12px; }
.preview-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; padding: 20px 24px; border-top: 1px solid var(--line); }
.preview-bottom-copy { display: grid; gap: 6px; }
.preview-bottom-copy strong { font-size: 11px; }
.preview-bottom-copy span { color: #8492ae; font-size: 10px; }
.preview-bottom-buttons { display: flex; flex-wrap: wrap; gap: 9px; }
.preview-bottom .button { min-height: 38px; }

/* Downloads and help */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 5px 0 15px; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 10px; color: #9b90ff; font-size: 10px; font-weight: 800; letter-spacing: 1.5px; }
.section-head h2 { margin: 0; color: #f4f5ff; font-size: 23px; font-weight: 800; letter-spacing: -.6px; }
.section-head p:not(.eyebrow) { max-width: 600px; margin: 8px 0 0; color: var(--ink-soft); font-size: 12px; line-height: 1.6; }
.apk-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-top: 20px; }
.apk-item { position: relative; display: flex; min-height: 222px; flex-direction: column; justify-content: space-between; gap: 15px; padding: 22px; background: linear-gradient(150deg,rgba(24,33,55,.92),rgba(14,22,41,.96)); border: 1px solid var(--line-strong); border-radius: 15px; overflow: hidden; box-shadow: var(--shadow); }
.apk-item::before { position: absolute; top: 0; left: 0; width: 100%; height: 3px; content: ''; background: linear-gradient(90deg,#a28dff,#6e73f9); }
.apk-item:nth-child(2)::before { background: linear-gradient(90deg,#58dcca,#49b7ed); }
.apk-item:nth-child(3)::before { background: linear-gradient(90deg,#f8ad92,#da78c8); }
.apk-item:nth-child(4)::before { background: linear-gradient(90deg,#a2b5ff,#78a1e5); }
.apk-type { color: #afa7ff; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px; }
.apk-item h3 { margin: 10px 0 0; font-size: 18px; font-weight: 800; letter-spacing: -.5px; line-height: 1.2; }
.apk-item p { margin: 0; color: #9ba8c1; font-size: 11px; line-height: 1.55; }
.apk-item .button { display: flex; }
.manual-guide { margin-top: 40px; }
.manual-guide-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; margin-top: 20px; }
.manual-card { padding: 21px; background: rgba(22,31,51,.7); border: 1px solid var(--line-strong); border-radius: 14px; }
.manual-step { display: grid; width: 35px; height: 35px; place-items: center; color: #b4a8ff; background: rgba(131,108,255,.14); border: 1px solid rgba(146,131,255,.2); border-radius: 10px; font-size: 11px; font-weight: 800; }
.manual-card h3 { margin: 17px 0 9px; font-size: 14px; font-weight: 800; }
.manual-card p, .manual-guide-note { margin: 0; color: #91a0bc; font-size: 11px; line-height: 1.8; }
.manual-guide-note { margin-top: 15px; }
.footer-note { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 32px; padding: 22px 0; color: #60708b; border-top: 1px solid var(--line); font-size: 10px; }
.footer-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.support-link { display: flex; gap: 7px; min-height: 33px; align-items: center; padding: 0 11px; color: #a1adc6; background: rgba(130,149,209,.065); border: 1px solid var(--line); border-radius: 9px; font-size: 10px; font-weight: 700; text-decoration: none; }
.support-link:hover { color: #e2e6ff; background: rgba(130,149,209,.13); }
.support-link svg { width: 13px; height: 13px; }
.support-pix { color: #8be6d0; }
.toast { position: fixed; z-index: 50; right: 25px; bottom: 25px; max-width: min(460px,calc(100vw - 36px)); padding: 14px 18px; color: #d5fff0; background: rgba(23,79,72,.96); border: 1px solid rgba(100,242,193,.24); border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.3); font-size: 12px; font-weight: 600; opacity: 0; transform: translateY(12px); pointer-events: none; backdrop-filter: blur(20px); transition: opacity .22s,transform .22s; }
.toast[data-visible="true"] { opacity: 1; transform: translateY(0); }
.toast[data-tone="error"] { color: #ffd9d4; background: #642e3b; border-color: #ad5664; }

/* Responsive */
@media (max-width: 1350px) {
  .app-shell { grid-template-columns: 230px minmax(0,1fr); }
  .workspace { padding: 29px 26px 15px; }
  .topbar-inner { padding: 0 26px; }
  .hero { padding: 30px 32px; }
  .generator-layout { grid-template-columns: minmax(312px,.94fr) minmax(0,1.06fr); gap: 16px; }
  .form-panel { padding: 21px; }
  .preview-bottom { align-items: flex-start; }
  .apk-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 1020px) {
  .app-shell { grid-template-columns: 202px minmax(0,1fr); }
  .sidebar-content { padding: 28px 10px 20px; }
  .brand { padding: 18px 14px; }
  .brand-text strong { font-size: 15px; }
  .sidebar-tip { padding: 18px 12px; }
  .hero-art { width: 175px; flex-basis: 175px; transform: scale(.8); transform-origin: center; }
  .generator-layout { grid-template-columns: 1fr; }
  .preview-panel { min-height: 510px; }
  .preview-code-wrap { min-height: 235px; }
  .code-preview { max-height: 390px; }
}
@media (max-width: 730px) {
  .app-shell { display: block; }
  .sidebar { position: relative; z-index: 5; width: 100%; height: auto; background: #0e1526; border-right: none; border-bottom: 1px solid var(--line); }
  .brand { min-height: 68px; padding: 13px 18px; }
  .brand-logo { width: 39px; height: 39px; flex-basis: 39px; }
  .brand-logo img { width: 31px; height: 31px; }
  .sidebar-content { display: block; flex: none; padding: 0 14px 12px; }
  .sidebar-content > .nav-caption,.sidebar-content > .nav-caption-tools,.environment-card,.sidebar-tip,.sidebar-footer { display: none; }
  .view-tabs { display: flex; gap: 8px; margin: 0; }
  .view-tab { width: auto; min-height: 39px; padding: 0 12px; gap: 8px; font-size: 11px; }
  .view-tab svg:last-child { display: none; }
  .view-tab[aria-selected="true"] { box-shadow: inset 0 -2px 0 #8c82ff; }
  .topbar-inner { min-height: 52px; padding: 0 18px; }
  .topbar-version { display: none; }
  .workspace { padding: 18px 14px 6px; }
  .hero { min-height: auto; padding: 28px 25px; margin-bottom: 14px; border-radius: 15px; }
  .hero-art { display: none; }
  h1 { font-size: clamp(27px,6vw,35px); letter-spacing: -1.1px; }
  .heading-note { font-size: 11px; }
  .hero-chips { margin-top: 18px; }
  .generator-layout { gap: 13px; }
  .form-panel { padding: 22px 20px; }
  .preview-header { padding: 22px 19px; }
  .preview-bottom { padding: 19px; }
  .preview-panel { min-height: 480px; }
  .manual-guide-grid { grid-template-columns: 1fr; }
}
@media (max-width: 490px) {
  .local-signal { padding: 7px 9px; font-size: 0; }
  .local-signal svg { width: 16px; height: 16px; }
  .hero { padding: 25px 19px; }
  .hero-eyebrow { font-size: 9px; }
  .hero-chips span { font-size: 9px; }
  .panel-heading { gap: 11px; }
  .panel-heading-icon { width: 39px; height: 39px; flex-basis: 39px; }
  .panel-heading-icon svg { width: 19px; height: 19px; }
  .panel-heading h2, .preview-header h2 { font-size: 16px; }
  .panel-heading p, .preview-header p { font-size: 9px; }
  .field-grid { grid-template-columns: 1fr; }
  .preview-header { flex-wrap: wrap; }
  .preview-ready { margin-left: 0; }
  .preview-top { padding: 0 9px; }
  .preview-tab { padding: 0 8px; font-size: 9px; }
  .button-icon { padding: 0 8px; }
  .button-icon span { display: none; }
  .preview-bottom-buttons,.preview-bottom-buttons button { width: 100%; }
  .preview-foot { padding: 11px 15px; }
  .apk-grid { grid-template-columns: 1fr; }
  .footer-note { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
