:root {
    --app-bg: #eef2ff;
    --app-surface: rgba(255, 255, 255, 0.84);
    --app-border: rgba(148, 163, 184, 0.22);
    --app-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    --app-text: #0f172a;
    --app-muted: #475569;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--app-text);
    font-family: "Manrope", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(79, 70, 229, 0.18), transparent 28%),
        radial-gradient(circle at right 10%, rgba(34, 197, 94, 0.14), transparent 24%),
        linear-gradient(180deg, #f8faff 0%, #eef2ff 42%, #f8fafc 100%);
}

.app-shell {
    position: relative;
    overflow-x: hidden;
}

.app-noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.45;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.25) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(circle at center, black 50%, transparent 90%);
}

.workspace-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 16px;
}

.workspace-grid {
    display: grid;
    min-height: calc(100vh - 32px);
    gap: 16px;
}

.tools-pane {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 16px;
}

.tools-scroll {
    display: flex;
    min-height: 0;
    flex-direction: column;
    gap: 16px;
    scrollbar-width: thin;
    scrollbar-color: #6366f1 rgba(99, 102, 241, 0.12);
}

.tools-scroll::-webkit-scrollbar {
    width: 10px;
}

.tools-scroll::-webkit-scrollbar-track {
    background: rgba(99, 102, 241, 0.08);
    border-radius: 999px;
}

.tools-scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(180deg, #4f46e5, #22c55e);
}

.workspace-brandbar,
.panel-card,
.preview-panel,
.export-card {
    background: var(--app-surface);
    backdrop-filter: blur(20px);
    box-shadow: var(--app-shadow);
}

.workspace-brandbar {
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.16), transparent 28%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(247, 250, 255, 0.78));
}

.workspace-status-card {
    width: min(100%, 340px);
    padding: 18px;
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 255, 0.84));
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.08);
    color: #4338ca;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-title {
    font-family: "Outfit", sans-serif;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.status-idle {
    background: rgba(15, 23, 42, 0.08);
    color: #334155;
}

.status-working {
    background: rgba(79, 70, 229, 0.14);
    color: #4338ca;
}

.status-success {
    background: rgba(22, 163, 74, 0.14);
    color: #166534;
}

.status-error {
    background: rgba(225, 29, 72, 0.12);
    color: #be123c;
}

.secondary-chip,
.primary-cta,
.secondary-cta,
.example-button,
.utility-button,
.device-toggle {
    border: 0;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.secondary-chip:hover,
.primary-cta:hover,
.secondary-cta:hover,
.example-button:hover,
.utility-button:hover,
.device-toggle:hover {
    transform: translateY(-1px);
}

.secondary-chip:disabled,
.primary-cta:disabled,
.secondary-cta:disabled,
.utility-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

.secondary-chip {
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
    font-weight: 700;
}

.primary-cta,
.secondary-cta {
    min-height: 52px;
    padding: 14px 20px;
    border-radius: 18px;
    font-weight: 800;
}

.primary-cta {
    background: linear-gradient(135deg, #4f46e5, #312e81);
    color: #ffffff;
    box-shadow: 0 16px 30px rgba(79, 70, 229, 0.28);
}

.secondary-cta {
    background: linear-gradient(135deg, #ffffff, #eef2ff);
    color: #0f172a;
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.08);
}

.example-button {
    min-height: 56px;
    padding: 16px 18px;
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.84));
    color: #0f172a;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
}

.utility-button {
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 700;
}

.editor-textarea {
    width: 100%;
    min-height: 360px;
    padding: 18px 20px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 24px;
    resize: vertical;
    background: #0f172a;
    color: #e2e8f0;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.92rem;
    line-height: 1.7;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.editor-textarea:focus {
    outline: 2px solid rgba(79, 70, 229, 0.3);
    outline-offset: 3px;
}

.file-drop {
    display: block;
}

.file-drop input {
    width: 100%;
    padding: 14px;
    border: 1px dashed rgba(99, 102, 241, 0.35);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.85);
}

.file-drop input::file-selector-button {
    margin-right: 12px;
    padding: 10px 14px;
    border: 0;
    border-radius: 14px;
    background: rgba(79, 70, 229, 0.12);
    color: #4338ca;
    cursor: pointer;
    font-weight: 700;
}

.preview-column {
    min-width: 0;
}

.preview-panel {
    display: flex;
    height: 100%;
    min-height: calc(100vh - 32px);
    flex-direction: column;
}

.preview-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding: 4px 4px 0;
}

.preview-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.screenshot-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 12px 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff, #eef2ff);
    color: #0f172a;
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.08);
    font-size: 0.92rem;
    font-weight: 800;
}

.screenshot-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.device-switcher {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(226, 232, 240, 0.84);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.78);
}

.device-toggle {
    min-width: 92px;
    padding: 12px 16px;
    border-radius: 14px;
    background: transparent;
    color: #475569;
    font-size: 0.92rem;
    font-weight: 800;
}

.device-toggle.is-active {
    background: linear-gradient(135deg, #4f46e5, #1d4ed8);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(79, 70, 229, 0.22);
}

.preview-surface {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    padding: 0 14px 14px;
    border-radius: 30px;
    background:
        radial-gradient(circle at top, rgba(79, 70, 229, 0.12), transparent 35%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(241, 245, 249, 0.74));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.device-stage {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 760px;
    align-items: flex-start;
    justify-content: center;
    border-radius: 28px;
    padding: 0 0 8px;
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.72), transparent 60%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.01));
}

.device-frame {
    position: relative;
    overflow: hidden;
    width: min(100%, 420px);
    height: min(100%, 820px);
    border-radius: 42px;
    padding: 18px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background:
        linear-gradient(145deg, #1e293b, #0f172a 52%, #334155 100%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.07),
        0 40px 80px rgba(15, 23, 42, 0.22);
    margin-top: 0;
}

.device-frame::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.device-hardware {
    position: absolute;
    top: 12px;
    left: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(-50%);
}

.device-camera {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #64748b, #0f172a 70%);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.04);
}

.device-speaker {
    width: 84px;
    height: 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.85);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

.device-screen {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    overflow: auto;
    border-radius: 30px;
    background: #f8fafc;
    box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.85);
    scrollbar-width: thin;
    scrollbar-color: var(--primary, #4f46e5) rgba(15, 23, 42, 0.08);
}

.device-screen::-webkit-scrollbar {
    width: 10px;
}

.device-screen::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.08);
}

.device-screen::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(180deg, var(--primary, #4f46e5), var(--secondary, #22c55e));
}

.device-stage[data-device="tablet"] .device-frame {
    width: min(100%, 760px);
    height: min(100%, 960px);
    border-radius: 36px;
    padding: 16px;
}

.device-stage[data-device="tablet"] .device-frame::before {
    border-radius: 30px;
}

.device-stage[data-device="tablet"] .device-screen {
    border-radius: 24px;
}

.device-stage[data-device="tablet"] .device-camera {
    width: 10px;
    height: 10px;
}

.device-stage[data-device="tablet"] .device-speaker {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.device-stage[data-device="desktop"] .device-frame {
    width: min(100%, 1100px);
    height: min(100%, 760px);
    padding: 18px 18px 54px;
    border-radius: 26px 26px 18px 18px;
}

.device-stage[data-device="desktop"] .device-frame::before {
    inset: 10px 10px 46px;
    border-radius: 20px;
}

.device-stage[data-device="desktop"] .device-frame::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 18px;
    width: 180px;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(15, 23, 42, 0.2));
    transform: translateX(-50%);
}

.device-stage[data-device="desktop"] .device-hardware {
    top: 16px;
}

.device-stage[data-device="desktop"] .device-speaker {
    width: 92px;
    height: 8px;
}

.device-stage[data-device="desktop"] .device-screen {
    border-radius: 16px;
}

.empty-state {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border-radius: 24px;
    border: 1px dashed rgba(148, 163, 184, 0.3);
    background:
        radial-gradient(circle at top, rgba(79, 70, 229, 0.1), transparent 35%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 32px;
    text-align: center;
}

.empty-orb {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 30% 30%, #facc15, transparent 40%),
        linear-gradient(135deg, #4f46e5, #22c55e);
    box-shadow: 0 28px 50px rgba(79, 70, 229, 0.22);
}

.export-card {
    padding: 20px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.9));
    border: 1px solid rgba(226, 232, 240, 0.82);
}

.code-output {
    margin: 0;
    overflow: auto;
    border-radius: 20px;
    background: #020617;
    color: #dbeafe;
    padding: 18px 20px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.88rem;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
}

.brand-preview-shell {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.82)),
        var(--background, #ffffff);
    color: var(--text, #111827);
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.12);
    container-type: inline-size;
    container-name: brand-preview;
}

.brand-preview-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(79, 70, 229, 0.14), transparent 26%),
        radial-gradient(circle at bottom left, rgba(34, 197, 94, 0.14), transparent 24%),
        radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.12), transparent 22%);
    pointer-events: none;
}

.brand-preview-content {
    position: relative;
    z-index: 1;
    padding: 18px;
    font-family: var(--body-font, Inter), sans-serif;
    min-width: 0;
}

.brand-hero-card,
.brand-card {
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.08);
}

.brand-hero-card {
    display: grid;
    gap: 22px;
    padding: 18px;
    border-radius: 26px;
}

.brand-hero-copy {
    min-width: 0;
}

.brand-pill {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--primary, #4f46e5);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.brand-name {
    margin: 18px 0 10px;
    font-family: var(--heading-font, Poppins), sans-serif;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.brand-tagline {
    max-width: 42rem;
    margin: 0;
    color: rgba(15, 23, 42, 0.78);
    font-size: 1rem;
    line-height: 1.8;
}

.brand-button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
}

.brand-stat-row {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.brand-stat-card {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.78);
}

.brand-stat-card strong {
    display: block;
    margin-top: 6px;
    font-size: 1rem;
    line-height: 1.4;
}

.brand-stat-label,
.brand-mini-label {
    display: inline-block;
    color: rgba(15, 23, 42, 0.55);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.brand-button {
    min-height: 50px;
    padding: 14px 20px;
    border: 0;
    border-radius: 18px;
    font-weight: 800;
    cursor: pointer;
}

.brand-button-primary {
    background: var(--primary, #4f46e5);
    color: #ffffff;
    box-shadow: 0 18px 36px rgba(79, 70, 229, 0.28);
}

.brand-button-secondary {
    background: rgba(255, 255, 255, 0.92);
    color: var(--text, #111827);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.22);
}

.brand-logo-frame {
    position: relative;
    display: grid;
    place-items: center;
    width: min(100%, 180px);
    aspect-ratio: 1 / 1;
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.78));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.78);
    overflow: hidden;
}

.brand-hero-media {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.brand-hero-visual-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(241, 245, 249, 0.72));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.78);
}

.brand-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.brand-hero-visual-overlay {
    position: absolute;
    right: 16px;
    bottom: 16px;
    left: 16px;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.72);
    color: #f8fafc;
    backdrop-filter: blur(14px);
}

.brand-hero-visual-overlay span {
    display: block;
    color: rgba(226, 232, 240, 0.8);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.brand-hero-visual-overlay strong {
    display: block;
    margin-top: 8px;
    font-size: 1rem;
    line-height: 1.5;
}

.brand-logo-fallback {
    display: grid;
    place-items: center;
    width: calc(100% - 22px);
    height: calc(100% - 22px);
    border-radius: 24px;
    background: linear-gradient(135deg, var(--primary, #4f46e5), var(--secondary, #22c55e));
    color: #ffffff;
    font-family: var(--heading-font, Poppins), sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.brand-logo-image {
    position: absolute;
    inset: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    object-fit: contain;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
}

.brand-preview-grid {
    display: grid;
    gap: 18px;
    margin-top: 18px;
    grid-template-columns: minmax(0, 1fr);
}

.brand-logo-system,
.brand-feature-cards {
    display: grid;
    gap: 14px;
}

.brand-card-wide {
    grid-column: 1 / -1;
}

.brand-logo-card,
.brand-feature-card,
.brand-message-block,
.brand-product-strip,
.brand-accordion-item,
.brand-form-preview {
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.84);
}

.brand-logo-card {
    padding: 18px;
}

.brand-logo-card-accent {
    background:
        linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(34, 197, 94, 0.08)),
        rgba(255, 255, 255, 0.92);
}

.brand-icon-logo {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    margin-top: 14px;
    border-radius: 26px;
    background: linear-gradient(135deg, var(--primary, #4f46e5), var(--secondary, #22c55e));
    color: #ffffff;
    font-family: var(--heading-font, Poppins), sans-serif;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.brand-wordmark-logo {
    margin-top: 18px;
    font-family: var(--heading-font, Poppins), sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.05em;
}

.brand-lockup-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
}

.brand-lockup-badge {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary, #4f46e5), var(--accent, #f59e0b));
    color: #ffffff;
    font-family: var(--heading-font, Poppins), sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
}

.brand-lockup-text {
    font-family: var(--heading-font, Poppins), sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.brand-card {
    padding: 18px;
    border-radius: 24px;
}

.brand-section-heading {
    margin-bottom: 18px;
}

.brand-section-heading h2 {
    margin: 8px 0 0;
    font-family: var(--heading-font, Poppins), sans-serif;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
}

.brand-overline {
    display: inline-block;
    color: var(--primary, #4f46e5);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.brand-color-grid {
    display: grid;
    gap: 14px;
}

.brand-swatch-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.85);
}

.brand-swatch-chip {
    width: 100%;
    height: 76px;
    border-radius: 18px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.brand-swatch-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand-swatch-label {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.6);
}

.brand-swatch-value {
    margin: 4px 0 0;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.95rem;
    font-weight: 700;
}

.copy-hex-button {
    border: 0;
    border-radius: 14px;
    padding: 10px 14px;
    background: rgba(15, 23, 42, 0.06);
    color: var(--text, #111827);
    cursor: pointer;
    font-weight: 700;
}

.brand-type-stack {
    display: grid;
    gap: 18px;
}

.brand-type-sample {
    padding: 18px;
    border-radius: 20px;
    background: rgba(248, 250, 252, 0.72);
    box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.82);
}

.brand-type-label,
.brand-contact-label {
    margin: 0 0 10px;
    color: rgba(15, 23, 42, 0.58);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.brand-type-sample h3 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    line-height: 1.2;
    letter-spacing: -0.04em;
}

.brand-type-sample p:last-child {
    margin: 0;
    font-size: 1rem;
    line-height: 1.8;
}

.brand-contact-card {
    display: grid;
    gap: 18px;
    padding: 18px;
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(34, 197, 94, 0.08)),
        rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.82);
}

.brand-contact-value {
    color: var(--text, #111827);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    word-break: break-word;
}

.brand-contact-value:hover {
    color: var(--primary, #4f46e5);
}

.brand-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.brand-tab-trigger {
    border: 0;
    border-radius: 14px;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.06);
    color: #475569;
    cursor: pointer;
    font-weight: 800;
}

.brand-tab-trigger.is-active {
    background: linear-gradient(135deg, var(--primary, #4f46e5), var(--secondary, #22c55e));
    color: #ffffff;
}

.brand-tab-panel {
    display: none;
}

.brand-tab-panel.is-active {
    display: block;
}

.brand-feature-card,
.brand-message-block {
    padding: 18px;
}

.brand-feature-card h3,
.brand-message-block h3 {
    margin: 10px 0 8px;
    font-family: var(--heading-font, Poppins), sans-serif;
    font-size: 1.1rem;
    line-height: 1.3;
    letter-spacing: -0.03em;
}

.brand-feature-card p,
.brand-message-block p,
.brand-accordion-panel p {
    margin: 0;
    color: rgba(15, 23, 42, 0.72);
    line-height: 1.7;
}

.brand-message-block p + p {
    margin-top: 10px;
}

.brand-product-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 18px;
}

.brand-product-pill {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: var(--text, #111827);
    font-size: 0.9rem;
    font-weight: 700;
}

.brand-accordion {
    display: grid;
    gap: 12px;
}

.brand-accordion-item {
    overflow: hidden;
}

.brand-accordion-trigger {
    width: 100%;
    border: 0;
    padding: 18px 20px;
    background: transparent;
    color: var(--text, #111827);
    cursor: pointer;
    font-family: var(--heading-font, Poppins), sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
}

.brand-accordion-panel {
    display: none;
    padding: 0 20px 20px;
}

.brand-accordion-item.is-open .brand-accordion-panel {
    display: block;
}

.brand-form-preview {
    padding: 20px;
}

.brand-form-grid {
    display: grid;
    gap: 14px;
}

.brand-field {
    display: grid;
    gap: 8px;
}

.brand-field span {
    color: rgba(15, 23, 42, 0.62);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-field input,
.brand-field textarea {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 16px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text, #111827);
    font: inherit;
}

.brand-field textarea {
    resize: vertical;
    min-height: 120px;
}

.brand-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

@container brand-preview (min-width: 620px) {
    .brand-preview-content,
    .brand-card,
    .brand-hero-card {
        padding: 22px;
    }

    .brand-logo-frame {
        width: min(100%, 220px);
    }

    .brand-hero-visual-card {
        min-height: 260px;
    }

    .brand-color-grid,
    .brand-contact-card,
    .brand-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .brand-stat-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@container brand-preview (min-width: 860px) {
    .brand-preview-content {
        padding: 24px;
    }

    .brand-hero-card {
        grid-template-columns: minmax(0, 1.25fr) minmax(220px, 260px);
        align-items: start;
    }

    .brand-hero-media {
        grid-template-rows: auto 1fr;
    }

    .brand-preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .brand-logo-system,
    .brand-feature-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .workspace-grid {
        grid-template-columns: minmax(420px, 520px) minmax(0, 1fr);
    }

    .tools-pane {
        height: calc(100vh - 32px);
    }

    .tools-scroll {
        overflow: auto;
        padding-right: 6px;
    }
}

@media (max-width: 1279px) {
    .preview-panel {
        min-height: 880px;
    }
}

@media (max-width: 1023px) {
    .preview-panel {
        min-height: 760px;
    }

    .device-stage {
        min-height: 620px;
        padding: 0 0 8px;
    }

    .device-stage[data-device="desktop"] .device-frame {
        width: 100%;
        height: min(100%, 680px);
    }
}

@media (max-width: 767px) {
    .workspace-shell {
        padding: 12px;
    }

    .workspace-grid {
        gap: 12px;
        min-height: calc(100vh - 24px);
    }

    .preview-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .preview-actions {
        width: 100%;
        justify-content: stretch;
    }

    .screenshot-button {
        width: 100%;
        justify-content: center;
    }

    .device-switcher {
        width: 100%;
    }

    .device-toggle {
        flex: 1 1 0;
        min-width: 0;
    }

    .preview-surface {
        padding: 0 8px 8px;
    }

    .device-stage {
        min-height: 540px;
        padding: 0 0 8px;
    }

    .device-frame,
    .device-stage[data-device="tablet"] .device-frame,
    .device-stage[data-device="desktop"] .device-frame {
        width: 100%;
        height: min(100%, 680px);
    }

    .brand-preview-content,
    .brand-card,
    .brand-hero-card {
        padding: 18px;
    }

    .brand-preview-shell {
        min-height: 0;
    }

    .brand-swatch-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .copy-hex-button {
        width: 100%;
    }

    .brand-logo-system,
    .brand-feature-cards,
    .brand-form-grid {
        grid-template-columns: 1fr;
    }
}
