:root {
    --shell-bg: #05070a;
    --shell-panel: rgba(13, 16, 22, 0.88);
    --shell-panel-solid: #0d1016;
    --shell-panel-soft: rgba(255, 255, 255, 0.045);
    --shell-line: rgba(255, 255, 255, 0.12);
    --shell-line-strong: rgba(255, 255, 255, 0.2);
    --shell-text: #f5f7fb;
    --shell-muted: #9aa7b7;
    --shell-soft: #d8dee8;
    --shell-cyan: #5cf2d6;
    --shell-green: #93f07d;
    --shell-amber: #ffc65c;
    --shell-rose: #ff6fa8;
    --shell-violet: #a78bfa;
    --radius: 8px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.builder-shell {
    min-height: 100vh;
    margin: 0;
    color: var(--shell-text);
    background: var(--shell-bg);
    font-family: "Inter", "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
    overflow-x: hidden;
}

button,
textarea,
select,
input {
    font: inherit;
}

button {
    color: inherit;
}

.builder-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(135deg, rgba(92, 242, 214, 0.08), transparent 28%),
        linear-gradient(315deg, rgba(255, 111, 168, 0.08), transparent 32%),
        linear-gradient(180deg, #070a0e 0%, #05070a 52%, #080909 100%);
}

.builder-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.24;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black 0%, transparent 88%);
}

.builder-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: 70px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--shell-line);
    background: rgba(5, 7, 10, 0.82);
    backdrop-filter: blur(18px);
}

.builder-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--shell-text);
    text-decoration: none;
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-weight: 800;
    line-height: 1;
}

.builder-brand > span:last-child {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
    letter-spacing: 0.08em;
}

.builder-brand > span:last-child span {
    color: var(--shell-cyan);
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--shell-cyan), var(--shell-green));
    color: #04100d;
    box-shadow: 0 12px 36px rgba(92, 242, 214, 0.2);
}

.builder-top-actions,
.preview-toolbar-actions,
.panel-title-row,
.button-grid,
.palette-row,
.segmented,
.preview-toolbar {
    display: flex;
    align-items: center;
}

.builder-top-actions {
    gap: 8px;
}

.icon-btn,
.command-btn {
    border: 1px solid var(--shell-line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.055);
    color: var(--shell-text);
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.icon-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-btn.compact {
    width: 34px;
    height: 34px;
}

.icon-btn svg,
.command-btn svg {
    width: 17px;
    height: 17px;
    stroke-width: 2;
}

.command-btn {
    min-height: 40px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
}

.command-btn.primary {
    border-color: rgba(92, 242, 214, 0.52);
    background: linear-gradient(135deg, var(--shell-cyan), var(--shell-green));
    color: #04100d;
}

.icon-btn:hover,
.command-btn:hover,
.segmented button:hover {
    transform: translateY(-1px);
    border-color: rgba(92, 242, 214, 0.45);
    background: rgba(92, 242, 214, 0.1);
}

.command-btn.primary:hover {
    box-shadow: 0 14px 32px rgba(92, 242, 214, 0.18);
}

.builder-workspace {
    width: min(1920px, 100%);
    min-height: calc(100vh - 70px);
    margin: 0 auto;
    padding: 14px;
    display: grid;
    grid-template-columns: 328px minmax(0, 1fr) 342px;
    gap: 14px;
}

.builder-panel {
    min-height: calc(100vh - 98px);
    border: 1px solid var(--shell-line);
    border-radius: var(--radius);
    background: var(--shell-panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    overflow: hidden auto;
}

.panel-block {
    padding: 15px;
    border-bottom: 1px solid var(--shell-line);
}

.panel-block:last-child {
    border-bottom: 0;
}

.panel-title-row {
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.panel-kicker {
    margin: 0 0 10px;
    color: var(--shell-cyan);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.field-label {
    display: block;
    margin: 0 0 7px;
    color: var(--shell-soft);
    font-size: 12px;
    font-weight: 800;
}

textarea,
select,
input[type="range"] {
    width: 100%;
}

textarea,
select {
    border: 1px solid var(--shell-line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.055);
    color: var(--shell-text);
    outline: none;
}

textarea {
    min-height: 108px;
    padding: 12px;
    resize: vertical;
    line-height: 1.5;
}

textarea:focus,
select:focus {
    border-color: rgba(92, 242, 214, 0.55);
    box-shadow: 0 0 0 3px rgba(92, 242, 214, 0.12);
}

select {
    height: 42px;
    padding: 0 11px;
}

select option {
    background: #11151d;
    color: white;
}

input[type="range"] {
    accent-color: var(--shell-cyan);
}

.button-grid {
    gap: 9px;
    margin-top: 10px;
}

.button-grid.two > * {
    flex: 1;
}

.field-grid {
    display: grid;
    gap: 12px;
}

.palette-row {
    gap: 8px;
    margin-bottom: 12px;
}

.swatch {
    flex: 1;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14);
}

.segmented {
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--shell-line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.045);
}

.segmented button {
    min-height: 30px;
    flex: 1;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--shell-muted);
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
}

.segmented button.active {
    background: rgba(92, 242, 214, 0.14);
    color: var(--shell-text);
}

.section-list {
    display: grid;
    gap: 8px;
}

.section-item {
    min-height: 44px;
    padding: 8px;
    border: 1px solid var(--shell-line);
    border-radius: var(--radius);
    display: grid;
    grid-template-columns: 22px 1fr auto;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.045);
    cursor: grab;
}

.section-item[draggable="true"]:active {
    cursor: grabbing;
}

.section-item.is-hidden {
    opacity: 0.54;
}

.drag-handle {
    color: var(--shell-muted);
}

.section-item strong {
    display: block;
    font-size: 13px;
}

.section-item span {
    display: block;
    margin-top: 2px;
    color: var(--shell-muted);
    font-size: 11px;
}

.section-actions {
    display: flex;
    gap: 5px;
}

.section-actions button {
    width: 28px;
    height: 28px;
    border: 1px solid var(--shell-line);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--shell-text);
    cursor: pointer;
}

.preview-stage {
    min-width: 0;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 14px;
}

.preview-toolbar {
    min-height: 58px;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 14px;
    border: 1px solid var(--shell-line);
    border-radius: var(--radius);
    background: var(--shell-panel);
    backdrop-filter: blur(18px);
}

.preview-toolbar .panel-kicker {
    margin-bottom: 4px;
}

#previewName {
    display: block;
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: 18px;
}

.preview-toolbar-actions {
    gap: 8px;
}

.preview-device {
    min-height: calc(100vh - 170px);
    max-height: calc(100vh - 170px);
    padding: 14px;
    border: 1px solid var(--shell-line);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.055), transparent 34%),
        rgba(0, 0, 0, 0.28);
    overflow: auto;
}

.preview-device.tablet .generated-page {
    max-width: 780px;
}

.preview-device.mobile .generated-page {
    max-width: 390px;
}

.generated-page {
    --g-bg: #060708;
    --g-panel: rgba(255, 255, 255, 0.07);
    --g-panel-solid: #121418;
    --g-line: rgba(255, 255, 255, 0.12);
    --g-text: #ffffff;
    --g-muted: rgba(255, 255, 255, 0.68);
    --g-a: #5cf2d6;
    --g-b: #93f07d;
    --g-c: #ff6fa8;
    --g-d: #ffc65c;
    width: 100%;
    max-width: 1240px;
    min-height: 100%;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    background: var(--g-bg);
    color: var(--g-text);
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
    transition: max-width 180ms ease;
    container-type: inline-size;
}

.generated-page.light {
    --g-bg: #f7f9fc;
    --g-panel: rgba(255, 255, 255, 0.78);
    --g-panel-solid: #ffffff;
    --g-line: rgba(7, 20, 32, 0.13);
    --g-text: #071420;
    --g-muted: rgba(7, 20, 32, 0.64);
    box-shadow: 0 28px 80px rgba(26, 38, 54, 0.18);
}

.g-section {
    position: relative;
    padding: 78px clamp(24px, 5vw, 72px);
}

.g-nav {
    min-height: 72px;
    padding: 0 clamp(18px, 5vw, 72px);
    border-bottom: 1px solid var(--g-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: rgba(0, 0, 0, 0.12);
}

.generated-page.light .g-nav {
    background: rgba(255, 255, 255, 0.54);
}

.g-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--g-text);
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-weight: 800;
    text-decoration: none;
}

.g-logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--g-a), var(--g-b));
    color: #03100d;
}

.g-nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.g-nav-links a {
    color: var(--g-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.g-pill-btn,
.g-outline-btn {
    min-height: 42px;
    padding: 0 15px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #03100d;
    background: linear-gradient(135deg, var(--g-a), var(--g-b));
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
}

.g-outline-btn {
    border: 1px solid var(--g-line);
    background: transparent;
    color: var(--g-text);
}

.g-hero {
    min-height: 690px;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(380px, 1.08fr);
    gap: 46px;
    align-items: center;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--g-a), transparent 86%), transparent 40%),
        linear-gradient(315deg, color-mix(in srgb, var(--g-c), transparent 88%), transparent 38%);
}

.g-kicker {
    display: inline-flex;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid color-mix(in srgb, var(--g-a), transparent 54%);
    border-radius: 8px;
    align-items: center;
    color: var(--g-a);
    background: color-mix(in srgb, var(--g-a), transparent 90%);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.g-hero h1 {
    margin: 18px 0 0;
    max-width: 790px;
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: clamp(44px, 6.2vw, 82px);
    line-height: 0.95;
    overflow-wrap: anywhere;
}

.generated-page[data-type="soft"] .g-hero h1,
.generated-page[data-type="soft"] .g-section h2 {
    font-family: "Manrope", "Inter", sans-serif;
}

.generated-page[data-type="mono"] .g-hero h1,
.generated-page[data-type="mono"] .g-section h2,
.generated-page[data-type="mono"] .g-kicker {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.g-hero p,
.g-section-lead {
    color: var(--g-muted);
    font-size: 17px;
    line-height: 1.7;
}

.g-hero p {
    max-width: 650px;
    margin: 20px 0 0;
}

.g-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.g-hero-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 34px;
}

.g-proof-stat {
    min-height: 88px;
    padding: 14px;
    border: 1px solid var(--g-line);
    border-radius: 8px;
    background: var(--g-panel);
}

.g-proof-stat strong {
    display: block;
    font-size: 26px;
}

.g-proof-stat span {
    color: var(--g-muted);
    font-size: 12px;
    font-weight: 700;
}

.g-dashboard {
    border: 1px solid var(--g-line);
    border-radius: 8px;
    background: var(--g-panel);
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.g-dashboard-top {
    min-height: 48px;
    padding: 0 14px;
    border-bottom: 1px solid var(--g-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.g-window-dots {
    display: flex;
    gap: 6px;
}

.g-window-dots i {
    width: 9px;
    height: 9px;
    border-radius: 99px;
    background: var(--g-c);
}

.g-window-dots i:nth-child(2) {
    background: var(--g-d);
}

.g-window-dots i:nth-child(3) {
    background: var(--g-b);
}

.g-dashboard-body {
    padding: 16px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 14px;
}

.g-screen {
    min-height: 330px;
    border: 1px solid var(--g-line);
    border-radius: 8px;
    padding: 16px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--g-a), transparent 84%), transparent 55%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent);
    display: grid;
    align-content: end;
    gap: 12px;
}

.g-screen-bars {
    display: grid;
    gap: 8px;
}

.g-screen-bars span {
    height: 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--g-a), transparent 42%);
}

.g-screen-bars span:nth-child(2) {
    width: 74%;
    background: color-mix(in srgb, var(--g-b), transparent 42%);
}

.g-screen-bars span:nth-child(3) {
    width: 52%;
    background: color-mix(in srgb, var(--g-c), transparent 42%);
}

.g-side-stack {
    display: grid;
    gap: 12px;
}

.g-mini-card {
    min-height: 104px;
    border: 1px solid var(--g-line);
    border-radius: 8px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.04);
}

.g-mini-card strong {
    display: block;
    font-size: 24px;
}

.g-mini-card span {
    color: var(--g-muted);
    font-size: 12px;
}

.g-logo-marquee {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    padding-top: 0;
    padding-bottom: 34px;
}

.g-logo-marquee span {
    min-height: 46px;
    border: 1px solid var(--g-line);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--g-muted);
    background: var(--g-panel);
    font-weight: 900;
}

.g-section h2 {
    max-width: 820px;
    margin: 0;
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: clamp(34px, 4.2vw, 58px);
    line-height: 1;
}

.g-section-lead {
    max-width: 690px;
    margin: 16px 0 0;
}

.g-grid-3,
.g-pricing-grid,
.g-testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 30px;
}

.g-feature-card,
.g-price-card,
.g-quote-card,
.g-faq-item,
.g-cta-box {
    border: 1px solid var(--g-line);
    border-radius: 8px;
    background: var(--g-panel);
}

.g-feature-card,
.g-price-card,
.g-quote-card {
    padding: 18px;
}

.g-feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--g-a), transparent 82%);
    color: var(--g-a);
    font-weight: 900;
}

.g-feature-card h3,
.g-price-card h3 {
    margin: 18px 0 8px;
    font-size: 20px;
}

.g-feature-card p,
.g-price-card p,
.g-quote-card p,
.g-faq-item p {
    margin: 0;
    color: var(--g-muted);
    line-height: 1.6;
}

.g-bento {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 14px;
    margin-top: 32px;
}

.g-bento-cell {
    min-height: 230px;
    border: 1px solid var(--g-line);
    border-radius: 8px;
    padding: 18px;
    background: var(--g-panel);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.g-bento-cell.large {
    min-height: 340px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--g-b), transparent 84%), transparent 58%),
        var(--g-panel);
}

.g-timeline {
    display: grid;
    gap: 12px;
    margin-top: 30px;
}

.g-timeline-item {
    min-height: 92px;
    border: 1px solid var(--g-line);
    border-radius: 8px;
    padding: 15px;
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 14px;
    background: var(--g-panel);
}

.g-step-number {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--g-d);
    color: #1b1000;
    font-weight: 900;
}

.g-price-card.featured {
    border-color: color-mix(in srgb, var(--g-a), transparent 42%);
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--g-a), transparent 86%), transparent),
        var(--g-panel);
}

.g-price {
    margin: 16px 0;
    font-size: 38px;
    font-weight: 900;
}

.g-price small {
    color: var(--g-muted);
    font-size: 13px;
}

.g-price-card ul {
    margin: 0 0 18px;
    padding-left: 18px;
    color: var(--g-muted);
    line-height: 1.8;
}

.g-quote-card {
    min-height: 230px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.g-avatar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

.g-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--g-c), var(--g-d));
    color: #12070a;
    font-weight: 900;
}

.g-faq-list {
    display: grid;
    gap: 10px;
    margin-top: 30px;
}

.g-faq-item {
    padding: 16px;
}

.g-faq-item strong {
    display: block;
    margin-bottom: 8px;
}

.g-cta-box {
    min-height: 270px;
    padding: clamp(24px, 5vw, 54px);
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--g-a), transparent 80%), transparent 48%),
        linear-gradient(315deg, color-mix(in srgb, var(--g-c), transparent 84%), transparent 48%),
        var(--g-panel);
}

.g-footer {
    padding: 30px clamp(24px, 5vw, 72px);
    border-top: 1px solid var(--g-line);
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: var(--g-muted);
    font-size: 13px;
}

.g-motion-high .g-section,
.g-motion-high .g-nav {
    animation: gReveal 680ms ease both;
}

.g-motion-high .g-feature-card,
.g-motion-high .g-price-card,
.g-motion-high .g-quote-card,
.g-motion-high .g-bento-cell,
.g-motion-high .g-faq-item {
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.g-motion-high .g-feature-card:hover,
.g-motion-high .g-price-card:hover,
.g-motion-high .g-quote-card:hover,
.g-motion-high .g-bento-cell:hover,
.g-motion-high .g-faq-item:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--g-a), transparent 48%);
}

@keyframes gReveal {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.code-output {
    min-height: 286px;
    margin-top: 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
    white-space: pre;
}

.score-pill {
    min-width: 38px;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(147, 240, 125, 0.42);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--shell-green);
    background: rgba(147, 240, 125, 0.09);
    font-size: 12px;
    font-weight: 900;
}

.metadata-list,
.check-list {
    display: grid;
    gap: 8px;
}

.meta-item,
.check-item {
    padding: 10px;
    border: 1px solid var(--shell-line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.045);
}

.meta-item span,
.check-item span {
    display: block;
    margin-bottom: 4px;
    color: var(--shell-muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.meta-item strong,
.check-item strong {
    display: block;
    color: var(--shell-text);
    font-size: 13px;
    line-height: 1.45;
}

.check-item {
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 9px;
    align-items: center;
}

.check-dot {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(147, 240, 125, 0.12);
    color: var(--shell-green);
    font-size: 13px;
    font-weight: 900;
}

.toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 80;
    max-width: min(420px, calc(100vw - 36px));
    padding: 13px 15px;
    border: 1px solid rgba(92, 242, 214, 0.34);
    border-radius: var(--radius);
    background: rgba(10, 13, 18, 0.94);
    color: var(--shell-text);
    box-shadow: var(--shadow);
    transform: translateY(18px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

body.light-shell {
    --shell-bg: #f4f7fb;
    --shell-panel: rgba(255, 255, 255, 0.88);
    --shell-panel-solid: #ffffff;
    --shell-panel-soft: rgba(4, 12, 20, 0.045);
    --shell-line: rgba(4, 12, 20, 0.12);
    --shell-line-strong: rgba(4, 12, 20, 0.2);
    --shell-text: #07111d;
    --shell-muted: #5f6d7e;
    --shell-soft: #253348;
    --shadow: 0 24px 70px rgba(29, 42, 62, 0.16);
}

body.light-shell .builder-bg {
    background:
        linear-gradient(135deg, rgba(0, 182, 160, 0.12), transparent 34%),
        linear-gradient(315deg, rgba(255, 111, 168, 0.1), transparent 36%),
        #f4f7fb;
}

body.light-shell .builder-topbar {
    background: rgba(255, 255, 255, 0.8);
}

@media (max-width: 1320px) {
    .builder-workspace {
        grid-template-columns: 314px minmax(0, 1fr);
    }

    .builder-inspector {
        grid-column: 1 / -1;
        min-height: 0;
        display: grid;
        grid-template-columns: 1.2fr 0.8fr 0.8fr;
    }

    .builder-inspector .panel-block {
        border-bottom: 0;
        border-right: 1px solid var(--shell-line);
    }

    .builder-inspector .panel-block:last-child {
        border-right: 0;
    }

    .code-output {
        min-height: 220px;
    }
}

@media (max-width: 980px) {
    .builder-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .builder-top-actions {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .builder-workspace {
        grid-template-columns: 1fr;
    }

    .builder-panel,
    .preview-device {
        min-height: 0;
        max-height: none;
    }

    .builder-inspector {
        display: block;
    }

    .builder-inspector .panel-block {
        border-right: 0;
        border-bottom: 1px solid var(--shell-line);
    }
}

@media (max-width: 760px) {
    .builder-workspace {
        padding: 10px;
        gap: 10px;
    }

    .builder-topbar {
        padding: 10px;
    }

    .command-btn span {
        display: none;
    }

    .g-nav {
        align-items: flex-start;
        flex-direction: column;
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .g-nav-links {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
        overflow-x: auto;
    }

    .g-hero,
    .g-dashboard-body,
    .g-bento,
    .g-cta-box {
        grid-template-columns: 1fr;
    }

    .g-hero {
        min-height: 0;
    }

    .g-section {
        padding: 52px 18px;
    }

    .g-logo-marquee,
    .g-grid-3,
    .g-pricing-grid,
    .g-testimonial-grid,
    .g-hero-proof {
        grid-template-columns: 1fr;
    }

    .g-footer {
        flex-direction: column;
    }
}

@container (max-width: 900px) {
    .g-nav {
        align-items: flex-start;
        flex-direction: column;
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .g-nav-links {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
        overflow-x: auto;
    }

    .g-hero,
    .g-dashboard-body,
    .g-bento,
    .g-cta-box {
        grid-template-columns: 1fr;
    }

    .g-hero {
        min-height: 0;
        align-items: start;
    }

    .g-hero h1 {
        font-size: clamp(40px, 11cqi, 72px);
        line-height: 0.98;
    }

    .g-logo-marquee,
    .g-grid-3,
    .g-pricing-grid,
    .g-testimonial-grid,
    .g-hero-proof {
        grid-template-columns: 1fr;
    }

    .g-section {
        padding: 52px clamp(18px, 5cqi, 44px);
    }
}

@container (max-width: 520px) {
    .g-nav-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .g-nav-links a {
        min-width: 0;
        text-align: center;
    }

    .g-hero h1 {
        font-size: clamp(36px, 13cqi, 56px);
    }

    .g-screen {
        min-height: 230px;
    }
}
