:root {
    --ink: #23152a;
    --muted: #766a7c;
    --soft: #fbf8fc;
    --panel: #ffffff;
    --line: #ebdeeb;
    --purple: #ad00bf;
    --purple-dark: #6f2075;
    --purple-soft: #fbecff;
    --sidebar: #ffffff;
    --sidebar-2: #fff6ff;
    --teal: #0f8b8d;
    --teal-2: #dff6ec;
    --coral: #e85d75;
    --coral-2: #fff1f3;
    --sun: #f4b942;
    --violet: #ad00bf;
    --success: #15803d;
    --danger: #b91c1c;
    --shadow: 0 18px 48px rgba(63, 27, 72, 0.08);
    --shadow-soft: 0 10px 26px rgba(63, 27, 72, 0.06);
    --studio-paper: #fffdf8;
    --studio-plum: #6f2075;
    --studio-mint: #dff6ec;
    --studio-lilac: #efe6ff;
    --body-font: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
    --display-font: "Playfair Display", Georgia, serif;
    --sidebar-current-width: 268px;
    --sidebar-collapsed-width: 84px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--body-font);
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--soft);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.studio-body {
    background:
        linear-gradient(90deg, rgba(173, 0, 191, 0.035) 1px, transparent 1px),
        linear-gradient(180deg, rgba(173, 0, 191, 0.035) 1px, transparent 1px),
        linear-gradient(135deg, rgba(173, 0, 191, 0.06), transparent 34%),
        #fbfafc;
    background-size: 34px 34px, 34px 34px, auto, auto;
}

.studio-shell {
    display: block;
    min-height: 100vh;
    padding-left: var(--sidebar-current-width);
    transition: padding-left 0.22s ease;
}

.studio-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    width: var(--sidebar-current-width);
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px 18px;
    color: var(--ink);
    background:
        linear-gradient(180deg, var(--sidebar), var(--sidebar-2) 56%, #ffffff),
        var(--sidebar);
    border-right: 1px solid rgba(173, 0, 191, 0.12);
    box-shadow: 14px 0 34px rgba(63, 27, 72, 0.07);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: rgba(173, 0, 191, 0.32) transparent;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
}

.studio-sidebar::-webkit-scrollbar {
    width: 7px;
}

.studio-sidebar::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(173, 0, 191, 0.22);
}

.studio-brand {
    display: grid;
    gap: 8px;
    padding: 6px 6px 16px;
    border-bottom: 1px solid rgba(173, 0, 191, 0.12);
}

.profile-pill span,
.create-mark {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

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

.brand-logo-frame img {
    display: block;
    width: 100%;
    height: auto;
}

.sidebar-toggle {
    appearance: none;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid rgba(173, 0, 191, 0.14);
    border-radius: 10px;
    background: #ffffff;
    color: var(--purple-dark);
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    outline-offset: 3px;
}

.sidebar-toggle:hover {
    background: var(--purple-soft);
}

.sidebar-toggle:focus-visible {
    outline: 3px solid rgba(173, 0, 191, 0.18);
}

.sidebar-toggle .material-symbols-outlined {
    font-size: 20px;
}

.brand-studio-copy {
    display: grid;
    gap: 2px;
    padding-left: 2px;
}

.brand-studio-copy strong {
    color: var(--ink);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.08em;
    line-height: 1.1;
    text-transform: uppercase;
}

.brand-studio-copy small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
}

.create-tile strong,
.create-tile small {
    display: block;
}

.create-tile small {
    color: #8a6c8e;
}

.create-tile {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 76px;
    padding: 14px;
    border: 1px solid rgba(173, 0, 191, 0.14);
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff, var(--purple-soft));
    box-shadow: 0 14px 28px rgba(173, 0, 191, 0.08);
}

.create-tile:hover,
.studio-nav a:hover,
.studio-nav a.active {
    background: var(--purple-soft);
}

.create-mark {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    color: #ffffff;
    font-size: 23px;
    font-weight: 500;
}

.create-tile strong {
    color: var(--ink);
    font-size: 14px;
    line-height: 1.2;
}

.studio-nav {
    display: grid;
    gap: 7px;
    flex: 0 0 auto;
    min-height: 0;
    align-content: start;
    overflow: visible;
    padding-right: 0;
}

.studio-nav a,
.logout-button {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #5b4a61;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.25;
}

.studio-nav a:hover,
.studio-nav a.active {
    border-color: rgba(173, 0, 191, 0.12);
    color: var(--purple-dark);
}

.nav-icon {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #f7eef8;
    color: var(--purple);
    font-size: 18px;
    font-weight: 500;
}

.studio-nav a.active .nav-icon {
    color: #ffffff;
    background: var(--purple);
}

.sidebar-card {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid rgba(173, 0, 191, 0.12);
    border-radius: 12px;
    background: #fffaff;
}

.sidebar-card span,
.sidebar-card small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.sidebar-card strong {
    color: var(--purple-dark);
    font-size: 15px;
}

.sidebar-footer {
    margin-top: 0;
}

.logout-button {
    appearance: none;
    width: 100%;
    background: #ffffff;
    border-color: rgba(173, 0, 191, 0.12);
    color: #7a537e;
    font-weight: 700;
}

.logout-button .material-symbols-outlined {
    font-size: 19px;
}

.logout-button:hover {
    background: #fff3ff;
    color: var(--purple-dark);
}

.workspace {
    min-width: 0;
    padding: 28px clamp(22px, 3.2vw, 48px) 44px;
}

@media (min-width: 821px) {
    .studio-shell.sidebar-collapsed {
        --sidebar-current-width: var(--sidebar-collapsed-width);
    }

    .studio-shell.sidebar-collapsed .studio-sidebar {
        gap: 14px;
        padding: 18px 12px;
    }

    .studio-shell.sidebar-collapsed .studio-brand {
        justify-items: center;
        padding: 4px 0 12px;
    }

    .studio-shell.sidebar-collapsed .brand-logo-frame {
        width: 52px;
        overflow: hidden;
    }

    .studio-shell.sidebar-collapsed .sidebar-toggle {
        width: 100%;
        padding-inline: 0;
    }

    .studio-shell.sidebar-collapsed .sidebar-toggle-text,
    .studio-shell.sidebar-collapsed .studio-nav a:not(.active),
    .studio-shell.sidebar-collapsed .studio-nav a.active,
    .studio-shell.sidebar-collapsed .logout-button span:last-child {
        font-size: 0;
    }

    .studio-shell.sidebar-collapsed .create-tile > span:not(.create-mark) {
        display: none;
    }

    .studio-shell.sidebar-collapsed .create-tile,
    .studio-shell.sidebar-collapsed .studio-nav a,
    .studio-shell.sidebar-collapsed .logout-button {
        justify-content: center;
        gap: 0;
        padding-inline: 8px;
    }

    .studio-shell.sidebar-collapsed .create-tile {
        min-height: 48px;
    }

    .studio-shell.sidebar-collapsed .create-mark {
        width: 34px;
        height: 34px;
    }

    .studio-shell.sidebar-collapsed .sidebar-card {
        display: none;
    }
}

.studio-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 26px;
}

.topbar-title {
    min-width: 320px;
}

.eyebrow {
    margin: 0 0 6px;
    color: var(--purple);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    margin: 0;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: 0;
}

h2 {
    margin: 0 0 14px;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}

h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
}

.muted {
    color: var(--muted);
    font-size: 14px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.command-search {
    display: flex;
    align-items: center;
    width: min(34vw, 460px);
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
}

.command-search > .material-symbols-outlined {
    padding-left: 8px;
    color: var(--muted);
    font-size: 21px;
}

.command-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 9px 10px;
    color: var(--ink);
    font-size: 14px;
}

.command-search button,
.btn,
.chip,
.profile-pill,
.copy-link {
    min-height: 38px;
    border-radius: 10px;
}

.command-search button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    padding: 9px 15px;
    background: var(--purple-dark);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.command-search button {
    gap: 5px;
}

.btn:hover,
.command-search button:hover {
    background: #4b1551;
}

.btn.secondary,
.copy-link {
    background: #ffffff;
    color: var(--purple-dark);
    border-color: rgba(173, 0, 191, 0.18);
}

.btn.secondary:hover,
.copy-link:hover {
    background: var(--purple-soft);
    border-color: rgba(173, 0, 191, 0.26);
}

.btn.accent {
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    box-shadow: 0 12px 22px rgba(173, 0, 191, 0.2);
}

.btn.coral {
    background: #b13a73;
}

.btn.danger {
    background: var(--danger);
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.icon-btn .material-symbols-outlined,
.btn .material-symbols-outlined {
    font-size: 19px;
}

.topbar-create {
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(111, 36, 92, 0.16);
    border-radius: 10px;
    background: var(--studio-paper);
    color: var(--purple-dark);
    box-shadow: var(--shadow-soft);
    font-size: 13px;
}

.topbar-create:hover {
    border-color: rgba(111, 36, 92, 0.28);
    background: #ffffff;
}

.profile-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 6px 11px 6px 6px;
    border: 1px solid var(--line);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
}

.profile-pill span {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--purple-soft);
    color: var(--purple);
}

.grid {
    display: grid;
    gap: 16px;
}

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

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

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

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

.panel,
.card,
.studio-hero,
.template-card,
.invitation-card,
.editor-section,
.studio-panel,
.metric-card,
.dashboard-hero {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

.panel,
.card {
    padding: 20px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.dashboard-command,
.dashboard-section,
.insight-card,
.project-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
}

.dashboard-command {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
    gap: 28px;
    min-height: 360px;
    margin-bottom: 18px;
    overflow: hidden;
    padding: clamp(24px, 4vw, 44px);
    background:
        linear-gradient(90deg, rgba(173, 0, 191, 0.07) 1px, transparent 1px),
        linear-gradient(180deg, rgba(111, 36, 92, 0.08) 1px, transparent 1px),
        linear-gradient(135deg, #fffdf8 0%, #ffffff 42%, #fff5ff 100%);
    background-size: 42px 42px, 42px 42px, auto;
}

.dashboard-command::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 7px;
    background: linear-gradient(180deg, var(--purple), var(--purple-dark), #c552b0);
}

.dashboard-command-copy {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: center;
    gap: 16px;
}

.dashboard-command-copy h2 {
    max-width: 760px;
    margin: 0;
    color: var(--ink);
    font-family: var(--display-font);
    font-size: clamp(34px, 4vw, 50px);
    font-weight: 700;
    line-height: 1.04;
}

.dashboard-command-copy p {
    max-width: 640px;
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
}

.command-actions {
    margin-top: 4px;
}

.dashboard-command-preview {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: space-between;
    gap: 16px;
    padding: 18px;
    border: 1px solid rgba(111, 36, 92, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 20px 44px rgba(45, 24, 58, 0.12);
}

.preview-toolbar,
.insight-split,
.resource-row.two-up {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.preview-toolbar > span:last-child {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.preview-stage {
    display: grid;
    place-items: center;
    min-height: 224px;
    border: 1px solid rgba(173, 0, 191, 0.12);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(173, 0, 191, 0.07) 1px, transparent 1px),
        linear-gradient(180deg, rgba(232, 93, 117, 0.07) 1px, transparent 1px),
        #fbfffc;
    background-size: 28px 28px;
    overflow: hidden;
}

.dashboard-preview-image {
    width: 100%;
    height: 100%;
    min-height: 224px;
    object-fit: cover;
}

.dashboard-preview-paper {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 11px;
    width: min(74%, 230px);
    aspect-ratio: 4 / 5;
    padding: 22px;
    border: 1px solid rgba(111, 36, 92, 0.1);
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff, #fff7f4);
    box-shadow: 0 20px 38px rgba(45, 24, 58, 0.16);
    text-align: center;
}

.dashboard-preview-paper strong {
    font-family: Georgia, serif;
    font-size: clamp(24px, 2.5vw, 34px);
    line-height: 1.08;
}

.dashboard-preview-paper small {
    color: var(--muted);
    font-weight: 800;
}

.preview-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.dashboard-insight-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.25fr) repeat(3, minmax(190px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.insight-card {
    position: relative;
    display: grid;
    gap: 12px;
    min-height: 168px;
    padding: 18px;
    overflow: hidden;
}

.insight-card.featured {
    background: linear-gradient(135deg, #ffffff, var(--studio-lilac));
}

.insight-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--studio-lilac);
    color: var(--studio-plum);
}

.insight-icon.teal {
    background: var(--purple-soft);
    color: var(--purple);
}

.insight-icon.coral {
    background: var(--coral-2);
    color: var(--coral);
}

.insight-icon.gold {
    background: #fff6d8;
    color: #9a6400;
}

.insight-card span,
.insight-card p {
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

.insight-card strong {
    display: block;
    color: var(--ink);
    font-size: clamp(30px, 3vw, 40px);
    line-height: 1;
}

.insight-card p {
    margin: 0;
    line-height: 1.45;
}

.dual-meter {
    position: relative;
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #f0edf3;
}

.dual-meter span,
.dual-meter i {
    position: absolute;
    inset-block: 0;
    display: block;
    border-radius: inherit;
}

.dual-meter span {
    left: 0;
    width: var(--a, 0%);
    background: var(--purple);
}

.dual-meter i {
    left: var(--a, 0%);
    width: var(--b, 0%);
    background: #d58bd9;
}

.dashboard-studio-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 350px);
    gap: 18px;
    align-items: start;
}

.dashboard-main-column,
.dashboard-side-column,
.resource-stack,
.activity-timeline {
    display: grid;
    gap: 16px;
}

.dashboard-side-column {
    position: sticky;
    top: 18px;
}

.dashboard-section {
    padding: 20px;
}

.panel-head.compact {
    margin-bottom: 12px;
}

.project-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.project-card {
    overflow: hidden;
}

.project-visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 190px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(111, 36, 92, 0.08) 1px, transparent 1px),
        linear-gradient(180deg, rgba(173, 0, 191, 0.06) 1px, transparent 1px),
        #fffdf8;
    background-size: 24px 24px;
}

.project-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-visual .badge {
    position: absolute;
    top: 12px;
    right: 12px;
    box-shadow: 0 10px 24px rgba(32, 33, 43, 0.12);
}

.project-paper {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 9px;
    width: min(70%, 210px);
    aspect-ratio: 4 / 5;
    padding: 18px;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(32, 33, 43, 0.13);
    text-align: center;
}

.project-paper span,
.project-paper small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-paper strong {
    font-family: Georgia, serif;
    font-size: 23px;
    line-height: 1.05;
}

.project-body {
    display: grid;
    gap: 14px;
    padding: 16px;
}

.project-body h3 {
    margin-bottom: 4px;
}

.project-body p {
    margin: 0;
    font-size: 13px;
}

.project-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.project-stats span {
    display: grid;
    gap: 3px;
    min-height: 58px;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfafc;
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
}

.project-stats strong {
    color: var(--ink);
    font-size: 20px;
    line-height: 1;
}

.project-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.project-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 36px;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink);
    font-size: 12px;
    font-weight: 900;
}

.project-actions a:hover {
    border-color: rgba(173, 0, 191, 0.24);
    background: var(--purple-soft);
}

.project-actions .material-symbols-outlined {
    font-size: 18px;
}

.dashboard-empty-state {
    grid-column: 1 / -1;
    display: grid;
    justify-items: start;
    gap: 10px;
    min-height: 230px;
    align-content: center;
    padding: 22px;
    border: 1px dashed rgba(111, 36, 92, 0.22);
    border-radius: 8px;
    background: #fffdf8;
}

.dashboard-empty-state.compact {
    min-height: auto;
    padding: 12px;
}

.dashboard-empty-state > .material-symbols-outlined {
    color: var(--coral);
    font-size: 34px;
}

.dashboard-empty-state p {
    max-width: 420px;
    margin: 0;
    color: var(--muted);
}

.next-action-card,
.resource-card {
    display: grid;
    gap: 14px;
}

.next-action-card h2,
.next-action-card p {
    margin: 0;
}

.workflow-steps {
    display: grid;
    gap: 9px;
}

.workflow-step {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.workflow-step .material-symbols-outlined {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f5f1f6;
    color: var(--muted);
    font-size: 19px;
}

.workflow-step.done {
    border-color: rgba(173, 0, 191, 0.18);
    background: #fffaff;
}

.workflow-step.done .material-symbols-outlined {
    background: var(--purple-soft);
    color: var(--purple);
}

.workflow-step.active {
    border-color: rgba(232, 93, 117, 0.26);
    background: #fff7f8;
}

.workflow-step.active .material-symbols-outlined {
    background: var(--coral-2);
    color: var(--coral);
}

.resource-row {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfafc;
}

.resource-row > span,
.resource-row > strong {
    display: block;
}

.resource-row > span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.resource-row.two-up {
    background: var(--studio-paper);
}

.resource-row.two-up span {
    flex: 1;
    color: var(--muted);
}

.resource-row.two-up strong {
    display: block;
    color: var(--ink);
    font-size: 22px;
}

.activity-timeline article {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.activity-timeline article:last-child {
    border-bottom: 0;
}

.activity-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--studio-lilac);
    color: var(--studio-plum);
    font-size: 19px;
}

.activity-timeline strong,
.activity-timeline p,
.activity-timeline small {
    display: block;
}

.activity-timeline p,
.activity-timeline small {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
    gap: 28px;
    min-height: 390px;
    padding: clamp(26px, 4.5vw, 52px);
    margin-bottom: 22px;
    overflow: hidden;
    background:
        radial-gradient(circle at 94% 86%, rgba(208, 0, 216, 0.16), transparent 32%),
        linear-gradient(135deg, #fbf1ff, #ffffff 48%, #fff2fc);
}

.hero-panel {
    display: grid;
    align-content: center;
    gap: 18px;
}

.hero-panel h2 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(42px, 4.8vw, 66px);
    line-height: 0.96;
    letter-spacing: -0.02em;
}

.hero-panel p {
    max-width: 640px;
    margin: 0;
    font-size: 18px;
}

.invitation-showcase {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 320px;
}

.showcase-back {
    position: absolute;
    inset: 16px 0;
    border: 1px solid rgba(145, 0, 189, 0.16);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(247, 234, 255, 0.78)),
        repeating-linear-gradient(90deg, rgba(145, 0, 189, 0.08) 0 1px, transparent 1px 30px);
}

.showcase-card {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: center;
    gap: 14px;
    width: min(70%, 270px);
    min-height: 330px;
    padding: 30px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 255, 0.98));
    box-shadow: 0 34px 70px rgba(45, 24, 58, 0.18);
    text-align: center;
}

.showcase-card strong {
    font-family: Georgia, serif;
    font-size: clamp(30px, 3vw, 44px);
    line-height: 1.05;
}

.showcase-date {
    color: var(--muted);
    font-weight: 800;
}

.studio-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 18px;
}

.metric-card {
    position: relative;
    display: grid;
    gap: 14px;
    min-height: 150px;
    padding: 22px;
    overflow: hidden;
}

.metric-card span {
    color: var(--muted);
    font-weight: 850;
}

.metric-card strong {
    font-size: 44px;
    line-height: 1;
}

.metric-card .metric-text {
    font-size: clamp(22px, 2.4vw, 34px);
}

.metric-card em {
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 58px;
    height: 9px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--purple), var(--purple-dark));
}

.metric-card.compact {
    min-height: 118px;
}

.metric-card.compact strong {
    font-size: 34px;
}

.dashboard-lower {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
    gap: 18px;
    margin-top: 20px;
}

.dashboard-main {
    align-items: start;
}

.studio-panel {
    padding: 24px;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.panel-head h2 {
    margin-bottom: 0;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
}

.action-grid a {
    display: grid;
    gap: 8px;
    min-height: 132px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff, #fffaff);
}

.action-grid a:hover {
    border-color: rgba(173, 0, 191, 0.24);
    box-shadow: var(--shadow-soft);
}

.action-grid span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    font-weight: 900;
}

.action-grid small {
    color: var(--muted);
}

.latest-panel h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.studio-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 20px;
    padding: clamp(22px, 4vw, 38px);
    margin-bottom: 18px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(145, 0, 189, 0.13), transparent 42%),
        linear-gradient(315deg, rgba(208, 0, 216, 0.13), transparent 46%),
        #ffffff;
}

.hero-copy {
    display: grid;
    align-content: center;
    gap: 14px;
}

.hero-copy p {
    max-width: 620px;
    margin: 0;
    font-size: 17px;
}

.canvas-preview {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 260px;
    border-radius: 8px;
    background:
        linear-gradient(135deg, #fff7ff, #f7eaff 52%, #fff0fb);
    border: 1px solid rgba(32, 33, 43, 0.08);
}

.canvas-paper {
    width: min(80%, 250px);
    aspect-ratio: 4 / 5;
    display: grid;
    align-content: center;
    gap: 10px;
    padding: 24px;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 28px 54px rgba(32, 33, 43, 0.16);
    text-align: center;
}

.canvas-paper strong {
    font-family: Georgia, serif;
    font-size: 28px;
}

.mini-line {
    height: 8px;
    border-radius: 999px;
    background: var(--line);
}

.mini-line.short {
    width: 58%;
    margin: 0 auto;
    background: var(--coral);
}

.stat-card {
    position: relative;
    min-height: 138px;
    padding: 18px;
    overflow: hidden;
}

.stat-card::after {
    content: "";
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 52px;
    height: 8px;
    border-radius: 999px;
    background: var(--purple);
}

.stat-value {
    margin-top: 8px;
    font-size: 38px;
    font-weight: 900;
}

.stat-label {
    color: var(--muted);
    font-weight: 800;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #f8f1f8;
    color: #604663;
    font-size: 11px;
    font-weight: 850;
}

.badge.ok {
    background: #e7f8ed;
    color: var(--success);
}

.badge.warn {
    background: #fff3d8;
    color: #8a5b08;
}

.badge.coral {
    background: var(--purple-soft);
    color: var(--purple-dark);
}

.filter-panel {
    position: sticky;
    top: 16px;
    z-index: 2;
    margin-bottom: 18px;
}

.filter-row {
    display: grid;
    grid-template-columns: 1fr 200px 180px 200px auto auto;
    gap: 12px;
    align-items: end;
}

label {
    display: grid;
    gap: 7px;
    color: #3f3f46;
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #d6dae2;
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink);
}

textarea {
    min-height: 112px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 4px rgba(173, 0, 191, 0.12);
    outline: 0;
}

.field-error {
    color: var(--danger);
    font-size: 12px;
    font-weight: 800;
}

.check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.check input {
    width: 18px;
    min-height: 18px;
}

.template-grid,
.invitation-grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 18px;
}

.invitation-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
}

.template-card,
.invitation-card {
    overflow: hidden;
}

.template-card.locked .template-frame {
    filter: saturate(0.6);
}

.lock-note {
    display: grid;
    gap: 3px;
    padding: 10px 12px;
    border: 1px solid #f3d2ff;
    border-radius: 8px;
    background: #fff7ff;
}

.lock-note strong {
    color: var(--purple);
    font-size: 13px;
}

.lock-note span {
    color: var(--muted);
    font-size: 13px;
}

.template-card-body,
.invitation-card-body {
    display: grid;
    gap: 12px;
    padding: 16px;
}

.template-frame,
.invitation-frame,
.thumb,
.placeholder {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: #f3f4f6;
}

.template-frame:not(img),
.invitation-frame,
.placeholder {
    display: grid;
    place-items: center;
    overflow: hidden;
}

.thumb,
.template-frame {
    border-radius: 8px;
}

.template-art {
    width: 74%;
    aspect-ratio: 4 / 5;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 9px;
    padding: 18px;
    border-radius: 8px;
    background:
        linear-gradient(180deg, #ffffff, #fff5f2);
    box-shadow: 0 18px 36px rgba(32, 33, 43, 0.13);
}

.template-art strong {
    font-family: Georgia, serif;
    font-size: 24px;
}

.template-art span {
    width: 74%;
    height: 6px;
    border-radius: 999px;
    background: var(--line);
}

.template-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

.template-theme {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbf7ff;
    color: var(--ink);
    font-weight: 850;
}

.template-theme span {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.invitation-management-table {
    min-width: 1120px;
}

.event-thumb {
    width: 72px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #f3f4f6;
}

.event-thumb-placeholder {
    display: grid;
    place-items: center;
    color: var(--purple);
    font-size: 26px;
    font-weight: 900;
    background: #fff7ff;
}

.status-stack,
.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.inline-actions form {
    margin: 0;
}

.dashboard-table td strong,
.dashboard-table td span {
    display: block;
}

.send-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
    gap: 18px;
    align-items: stretch;
    margin-bottom: 18px;
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid var(--line);
    border-radius: 18px;
    background:
        radial-gradient(circle at 94% 18%, rgba(208, 0, 216, 0.15), transparent 28%),
        linear-gradient(135deg, #ffffff, #fff4fc);
    box-shadow: var(--shadow);
}

.send-hero h2 {
    max-width: 720px;
    font-size: clamp(34px, 4vw, 54px);
    letter-spacing: -0.01em;
}

.send-link-card {
    display: grid;
    align-content: center;
    gap: 10px;
    min-height: 210px;
    padding: 22px;
    border: 1px solid rgba(145, 0, 189, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.84);
}

.send-link-card strong {
    font-size: 28px;
}

.send-link-card small,
.send-link-card code {
    color: var(--muted);
}

.send-link-card code {
    display: block;
    overflow-wrap: anywhere;
    padding: 10px;
    border-radius: 8px;
    background: #fbf7ff;
    font-size: 12px;
}

.send-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.limit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.limit-grid div {
    display: grid;
    gap: 5px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff, #fffaff);
}

.limit-grid strong {
    font-size: 32px;
}

.limit-grid span {
    color: var(--muted);
    font-weight: 800;
}

.send-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
    gap: 18px;
    margin: 18px 0;
}

.stacked-form,
.send-filter,
.contact-edit-form,
.row-tools {
    display: grid;
    gap: 12px;
}

.send-filter {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.send-composer {
    margin-bottom: 18px;
}

.contact-table td:first-child,
.contact-table th:first-child {
    width: 72px;
}

.contact-table td strong,
.contact-table td span {
    display: block;
}

.row-tools {
    min-width: 190px;
}

.row-tools details {
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.row-tools summary {
    cursor: pointer;
    font-weight: 850;
}

.contact-edit-form {
    margin-top: 12px;
}

.delivery-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    gap: 18px;
    align-items: stretch;
    margin-bottom: 16px;
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid var(--line);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 245, 253, 0.96)),
        radial-gradient(circle at 92% 12%, rgba(208, 0, 216, 0.14), transparent 30%);
    box-shadow: var(--shadow);
}

.delivery-hero-copy {
    display: grid;
    align-content: center;
    gap: 14px;
}

.delivery-hero h2 {
    margin: 0;
    font-size: clamp(32px, 4vw, 56px);
    line-height: 0.98;
}

.delivery-hero p {
    max-width: 640px;
    margin: 0;
}

.delivery-actions,
.composer-actions,
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.delivery-ticket {
    display: grid;
    align-content: center;
    gap: 10px;
    min-height: 188px;
    padding: 18px;
    border: 1px solid rgba(145, 0, 189, 0.14);
    border-radius: 8px;
    background: #ffffff;
}

.delivery-ticket strong {
    font-size: 28px;
    line-height: 1;
}

.delivery-ticket span:not(.badge) {
    color: var(--muted);
    font-weight: 800;
}

.delivery-ticket code {
    display: block;
    overflow-wrap: anywhere;
    padding: 10px;
    border-radius: 8px;
    background: #fbf7ff;
    color: #554b60;
    font-size: 12px;
}

.delivery-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.delivery-stats article {
    position: relative;
    display: grid;
    gap: 8px;
    min-height: 112px;
    padding: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
}

.delivery-stats article::after {
    content: "";
    position: absolute;
    right: 16px;
    bottom: 15px;
    width: 48px;
    height: 7px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--purple), var(--purple-dark));
}

.delivery-stats span,
.delivery-stats small {
    color: var(--muted);
    font-weight: 850;
}

.delivery-stats strong {
    font-size: 34px;
    line-height: 1;
}

.notification-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(350px, 390px);
    gap: 18px;
    align-items: start;
}

.notification-main,
.notification-side {
    display: grid;
    gap: 18px;
}

.notification-side {
    position: sticky;
    top: 16px;
}

.delivery-panel {
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

.delivery-panel .panel-head {
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 14px;
}

.delivery-filter {
    display: grid;
    grid-template-columns: minmax(190px, 1fr) minmax(150px, 190px) auto;
    gap: 10px;
    align-items: center;
    width: min(100%, 620px);
}

.contact-tools {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid #f0e8f5;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff, #fffaff);
}

.quick-contact-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    align-items: end;
}

.quick-contact-form input,
.quick-contact-form select,
.delivery-filter input,
.delivery-filter select,
.import-strip input {
    min-height: 40px;
}

.quick-contact-form input[type="number"] {
    min-width: 0;
}

.import-strip {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.import-strip label {
    gap: 6px;
}

.import-strip label span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-board {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.contact-table.professional {
    min-width: 860px;
}

.contact-table.professional th {
    background: #fff7ff;
    color: #7a4a80;
}

.contact-table.professional td,
.contact-table.professional th {
    padding: 14px 12px;
}

.contact-table.professional td {
    color: #39273f;
    font-size: 13px;
}

.contact-table.professional td:first-child,
.contact-table.professional th:first-child {
    width: 52px;
    text-align: center;
}

.contact-table.professional input[type="checkbox"] {
    width: 18px;
    min-height: 18px;
}

.contact-table.professional td strong,
.contact-table.professional td span,
.contact-table.professional td small {
    display: block;
}

.contact-table.professional td small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.compact-btn {
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 12px;
}

.edit-popover {
    position: relative;
}

.edit-popover summary {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
    list-style: none;
}

.edit-popover summary::-webkit-details-marker {
    display: none;
}

.edit-card {
    position: absolute;
    right: 0;
    z-index: 5;
    display: grid;
    gap: 10px;
    width: min(320px, 82vw);
    margin-top: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 24px 52px rgba(45, 24, 58, 0.18);
}

.contact-edit-form {
    display: grid;
    gap: 9px;
    margin-top: 0;
}

.empty-state {
    display: grid;
    gap: 4px;
    padding: 16px;
    color: var(--muted);
}

.empty-state strong {
    color: var(--ink);
}

.compact-empty {
    padding: 8px 0;
}

.usage-stack,
.log-list {
    display: grid;
    gap: 12px;
}

.usage-row {
    display: grid;
    gap: 9px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff, #fffaff);
}

.usage-row div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.usage-row strong {
    font-size: 14px;
}

.usage-row span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.usage-meter.slim {
    height: 8px;
}

.composer-panel {
    display: grid;
    gap: 12px;
}

.composer-panel textarea {
    min-height: 132px;
    resize: vertical;
}

.composer-actions {
    align-items: stretch;
}

.composer-actions .btn {
    flex: 1 1 150px;
}

.log-panel {
    max-height: 540px;
    overflow: auto;
}

.log-list article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.log-list article:last-child {
    border-bottom: 0;
}

.log-list strong,
.log-list span,
.log-list small {
    display: block;
}

.log-list span,
.log-list small {
    color: var(--muted);
    font-size: 12px;
}

.wide-composer,
.reports-grid {
    margin-top: 18px;
}

.wide-composer {
    align-items: stretch;
}

.composer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
}

.email-compose {
    display: grid;
    gap: 12px;
}

.wide-composer textarea {
    min-height: 170px;
}

.reports-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
    gap: 18px;
    align-items: start;
}

.report-panel {
    min-height: 100%;
}

.support-faq {
    display: grid;
    gap: 10px;
}

.support-faq details {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff, #fffaff);
}

.support-faq summary {
    cursor: pointer;
    font-weight: 900;
}

.support-faq p {
    margin: 10px 0 0;
    color: var(--muted);
}

.subscription-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    gap: 18px;
    align-items: stretch;
    margin-bottom: 18px;
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid var(--line);
    border-radius: 18px;
    background:
        radial-gradient(circle at 90% 12%, rgba(208, 0, 216, 0.14), transparent 28%),
        linear-gradient(135deg, #ffffff, #fff1fc);
    box-shadow: var(--shadow);
}

.subscription-hero h2 {
    max-width: 680px;
    font-size: clamp(32px, 4vw, 52px);
    letter-spacing: -0.01em;
}

.subscription-card {
    display: grid;
    align-content: center;
    gap: 10px;
    min-height: 190px;
    padding: 22px;
    border: 1px solid rgba(145, 0, 189, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
}

.subscription-card strong {
    font-size: 30px;
}

.subscription-card small {
    color: var(--muted);
    font-weight: 800;
}

.usage-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.usage-meter {
    height: 12px;
    border-radius: 999px;
    background: #f1e8f7;
    overflow: hidden;
}

.usage-meter span {
    display: block;
    width: var(--value, 0%);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--purple), var(--purple-dark));
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.plan-card {
    display: grid;
    gap: 18px;
    align-content: space-between;
    min-height: 330px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff, #fffaff);
}

.plan-card.current {
    border-color: rgba(145, 0, 189, 0.34);
    box-shadow: 0 18px 36px rgba(145, 0, 189, 0.12);
}

.plan-card h3 {
    margin-top: 14px;
    font-size: 24px;
}

.plan-price {
    margin: 10px 0;
    color: var(--ink);
    font-size: 36px;
    font-weight: 900;
}

.plan-features {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.plan-features li {
    padding-left: 20px;
    position: relative;
    color: var(--muted);
    font-weight: 750;
}

.plan-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--coral);
}

.razorpay-checkout-panel {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(173, 0, 191, 0.16);
    border-radius: 10px;
    background: linear-gradient(135deg, #ffffff, var(--purple-soft));
}

.razorpay-checkout-panel strong,
.razorpay-checkout-panel small,
.razorpay-status {
    display: block;
}

.razorpay-checkout-panel small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.razorpay-pay-button {
    width: 100%;
}

.razorpay-status {
    min-height: 18px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.razorpay-status[data-type="success"] {
    color: var(--success);
}

.razorpay-status[data-type="error"] {
    color: var(--danger);
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

table {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
    color: var(--ink);
    font-size: 14px;
}

th,
td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    background: #fff7ff;
    color: #7a4a80;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

td {
    color: #39273f;
    font-size: 13px;
    line-height: 1.5;
}

tbody tr {
    transition: background 0.18s ease;
}

tbody tr:hover {
    background: #fffaff;
}

tbody tr:last-child td {
    border-bottom: 0;
}

td a {
    color: var(--purple-dark);
    font-weight: 850;
}

td a:hover {
    color: var(--purple);
}

td .muted,
td small {
    color: var(--muted);
    font-size: 12px;
}

.editor-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    align-items: start;
}

.editor-main,
.editor-aside {
    display: grid;
    gap: 16px;
}

.editor-aside {
    position: sticky;
    top: 16px;
}

.editor-section {
    padding: 20px;
}

.builder-tabs {
    position: sticky;
    top: 12px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
}

.builder-tabs a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border: 1px solid #f0e8f5;
    border-radius: 8px;
    background: #fffaff;
    color: var(--purple);
    font-size: 12px;
    font-weight: 900;
}

.section-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.section-title p {
    margin: 6px 0 0;
}

.studio-upload {
    border: 1px dashed #b9c1ce;
    border-radius: 8px;
    padding: 16px;
    background: #fbfcff;
}

.gallery-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.gallery-item {
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.copy-link {
    border: 1px solid var(--line);
    padding: 9px 12px;
    cursor: pointer;
    font-weight: 800;
}

.alert {
    padding: 13px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    border: 1px solid var(--line);
    background: #ffffff;
}

.alert.success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.alert.danger {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.pagination {
    margin-top: 18px;
}

.auth-body {
    --auth-ink: #1b1420;
    --auth-muted: #716873;
    --auth-panel: rgba(255, 255, 255, 0.88);
    --auth-line: rgba(216, 202, 214, 0.86);
    --auth-plum: #4b0067;
    --auth-rose: #b74178;
    --auth-moss: #47745f;
    --auth-gold: #b9852e;
    min-height: 100vh;
    background:
        linear-gradient(90deg, rgba(75, 0, 103, 0.045) 1px, transparent 1px),
        linear-gradient(180deg, rgba(71, 116, 95, 0.04) 1px, transparent 1px),
        linear-gradient(135deg, #fff9fb 0%, #f8f2f7 43%, #eef7f1 100%);
    background-size: 42px 42px, 42px 42px, auto;
}

.auth-page {
    min-height: 100vh;
    padding: 18px clamp(18px, 4vw, 56px) 42px;
}

.auth-nav {
    align-items: center;
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(216, 202, 214, 0.72);
    border-radius: 8px;
    box-shadow: 0 16px 50px rgba(39, 20, 48, 0.08);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    min-height: 58px;
    gap: 24px;
    margin: 0 auto 28px;
    max-width: 1220px;
    padding: 0 12px 0 18px;
}

.auth-logo {
    color: var(--auth-plum);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    width: max-content;
}

.auth-links {
    align-items: center;
    display: flex;
    gap: 28px;
    justify-content: center;
}

.auth-links a,
.auth-nav-cta {
    color: #5f5764;
    font-size: 12px;
    font-weight: 800;
}

.auth-links a:hover,
.auth-switch a:hover {
    color: var(--auth-plum);
}

.auth-nav-cta {
    align-items: center;
    background: var(--auth-plum);
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    justify-content: center;
    justify-self: end;
    min-height: 36px;
    padding: 0 18px;
}

.auth-nav-cta:hover {
    background: #24052f;
    color: #ffffff;
}

.auth-studio {
    align-items: center;
    display: grid;
    gap: clamp(30px, 5vw, 78px);
    grid-template-columns: minmax(0, 1.12fr) minmax(390px, 500px);
    margin: 0 auto;
    max-width: 1220px;
    min-height: calc(100vh - 150px);
}

.auth-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 252, 253, 0.9)),
        #ffffff;
    border: 1px solid var(--auth-line);
    border-radius: 8px;
    box-shadow: 0 34px 90px rgba(39, 20, 48, 0.14);
    padding: 34px;
    position: relative;
    width: 100%;
}

.auth-showcase {
    display: grid;
    gap: 24px;
}

.auth-chip {
    align-items: center;
    display: inline-flex;
}

.auth-chip {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--auth-line);
    border-radius: 999px;
    color: #65596a;
    gap: 7px;
    justify-self: start;
    padding: 8px 13px;
    font-size: 12px;
    font-weight: 800;
}

.auth-chip .material-symbols-outlined,
.auth-submit .material-symbols-outlined,
.auth-assurance .material-symbols-outlined {
    font-size: 17px;
}

.auth-showcase h1,
.auth-card h1 {
    color: var(--auth-ink);
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 700;
    letter-spacing: 0;
}

.auth-showcase h1 {
    font-size: 64px;
    line-height: 0.96;
    max-width: 760px;
    margin: 0;
}

.auth-showcase p {
    color: var(--auth-muted);
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
    max-width: 610px;
}

.auth-showcase-copy {
    display: grid;
    gap: 18px;
}

.auth-experience {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 620px;
    min-height: 342px;
    position: relative;
}

.auth-invite-panel,
.auth-mini-panel,
.auth-editor-panel {
    background: var(--auth-panel);
    border: 1px solid var(--auth-line);
    border-radius: 8px;
    box-shadow: 0 24px 62px rgba(39, 20, 48, 0.13);
}

.auth-invite-panel {
    display: grid;
    gap: 12px;
    grid-column: 1 / 2;
    min-height: 330px;
    padding: 14px;
    width: min(100%, 280px);
}

.auth-invite-head,
.auth-invite-foot {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.auth-invite-head span,
.auth-invite-foot span,
.auth-editor-panel span {
    color: var(--auth-muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.auth-invite-head strong,
.auth-invite-foot strong,
.auth-editor-panel strong {
    color: var(--auth-ink);
    font-size: 13px;
}

.auth-invite-panel img {
    aspect-ratio: 4 / 5;
    border-radius: 8px;
    display: block;
    min-height: 0;
    object-fit: cover;
    width: 100%;
}

.auth-card-kicker {
    color: var(--auth-rose);
    display: block;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.auth-mini-panel {
    align-items: center;
    display: flex;
    gap: 12px;
    min-height: 86px;
    padding: 14px;
    position: absolute;
    width: 214px;
}

.auth-mini-panel > .material-symbols-outlined {
    align-items: center;
    background: #f6edf7;
    border-radius: 8px;
    color: var(--auth-plum);
    display: inline-flex;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.auth-mini-panel strong {
    color: var(--auth-ink);
    display: block;
    font-size: 18px;
}

.auth-mini-panel small {
    color: var(--auth-muted);
    display: block;
    margin-top: 2px;
}

.auth-panel-rsvp {
    right: 70px;
    top: 30px;
}

.auth-panel-share {
    right: 10px;
    top: 150px;
}

.auth-panel-share > .material-symbols-outlined {
    background: #eef7f1;
    color: var(--auth-moss);
}

.auth-editor-panel {
    bottom: 0;
    display: grid;
    gap: 14px;
    padding: 16px;
    position: absolute;
    right: 54px;
    width: 258px;
}

.auth-editor-lines {
    display: grid;
    gap: 8px;
}

.auth-editor-lines i {
    background: #eee5ed;
    border-radius: 999px;
    display: block;
    height: 8px;
}

.auth-editor-lines i:nth-child(1) {
    width: 86%;
}

.auth-editor-lines i:nth-child(2) {
    background: #e4efe8;
    width: 64%;
}

.auth-editor-lines i:nth-child(3) {
    background: #f2e4d0;
    width: 74%;
}

.auth-metric-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 620px;
}

.auth-metric-grid div {
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid var(--auth-line);
    border-radius: 8px;
    padding: 15px;
}

.auth-metric-grid strong,
.auth-metric-grid span {
    display: block;
}

.auth-metric-grid strong {
    color: var(--auth-ink);
    font-size: 20px;
}

.auth-metric-grid span {
    color: var(--auth-muted);
    font-size: 12px;
    font-weight: 800;
    margin-top: 4px;
    text-transform: uppercase;
}

.auth-card-head {
    align-items: center;
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
}

.auth-card-icon {
    align-items: center;
    background: #f6edf7;
    border: 1px solid rgba(216, 202, 214, 0.86);
    border-radius: 8px;
    color: var(--auth-plum);
    display: inline-flex;
    flex: 0 0 auto;
    height: 52px;
    justify-content: center;
    width: 52px;
}

.auth-card-icon .material-symbols-outlined {
    font-size: 25px;
}

.auth-card h1 {
    font-size: 42px;
    line-height: 1;
    margin: 5px 0 0;
}

.auth-card-copy {
    color: var(--auth-muted);
    line-height: 1.75;
    margin: 0;
}

.auth-form {
    display: grid;
    gap: 16px;
    margin-top: 26px;
}

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

.auth-field-wide,
.auth-form-grid .auth-submit,
.auth-form-grid .auth-secondary-form {
    grid-column: 1 / -1;
}

.auth-field {
    color: #332739;
    display: grid;
    gap: 8px;
    font-weight: 800;
}

.auth-field span {
    font-size: 12px;
    letter-spacing: 0;
    text-transform: uppercase;
}

.auth-field input {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--auth-line);
    border-radius: 8px;
    color: var(--auth-ink);
    min-height: 50px;
    padding: 0 15px;
}

.auth-field input::placeholder {
    color: #a596ab;
}

.auth-field input:focus {
    border-color: var(--auth-plum);
    box-shadow: 0 0 0 4px rgba(75, 0, 103, 0.11);
}

.auth-submit,
.auth-secondary-button {
    align-items: center;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    font-weight: 900;
    justify-content: center;
    min-height: 48px;
    width: 100%;
}

.auth-submit {
    background: var(--auth-plum);
    border: 1px solid var(--auth-plum);
    box-shadow: 0 16px 34px rgba(75, 0, 103, 0.22);
    color: #ffffff;
    gap: 8px;
}

.auth-submit:hover {
    background: #24052f;
}

.auth-secondary-form {
    margin-top: 12px;
}

.auth-secondary-button {
    background: #ffffff;
    border: 1px solid var(--auth-line);
    color: var(--auth-plum);
}

.auth-secondary-button:hover {
    background: #fbf5fc;
}

.auth-switch {
    color: #746879;
    font-size: 14px;
    margin: 18px 0 0;
    text-align: center;
}

.auth-switch a {
    color: var(--auth-plum);
    font-weight: 900;
}

.auth-assurance {
    align-items: center;
    background: #f8f3f7;
    border: 1px solid var(--auth-line);
    border-radius: 8px;
    color: #675c68;
    display: flex;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    padding: 12px 13px;
}

.auth-assurance .material-symbols-outlined {
    color: var(--auth-moss);
    flex: 0 0 auto;
}

.auth-card .alert {
    border-radius: 8px;
    box-shadow: none;
    font-size: 14px;
}

@media (max-width: 1180px) {
    .studio-shell {
        --sidebar-current-width: 236px;
    }

    .auth-studio {
        grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
    }

    .auth-showcase h1 {
        font-size: 54px;
    }

    .dashboard-hero,
    .studio-hero,
    .editor-form,
    .dashboard-command,
    .dashboard-studio-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-side-column {
        position: static;
    }

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

    .editor-aside {
        position: static;
    }

    .filter-row {
        grid-template-columns: 1fr 1fr;
    }

    .studio-metrics,
    .subscription-hero,
    .usage-grid,
    .send-hero,
    .send-metrics,
    .send-layout,
    .limit-grid,
    .delivery-hero,
    .delivery-stats,
    .notification-workspace,
    .composer-grid,
    .reports-grid,
    .dashboard-lower {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .notification-side {
        position: static;
    }

    .quick-contact-form,
    .delivery-filter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-tools {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .studio-shell {
        padding-left: 0;
    }

    .auth-page {
        padding: 16px 16px 32px;
    }

    .auth-nav {
        grid-template-columns: 1fr auto;
        margin-bottom: 24px;
    }

    .auth-links {
        display: none;
    }

    .auth-studio {
        align-items: stretch;
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .auth-showcase {
        text-align: center;
    }

    .auth-chip {
        justify-self: center;
    }

    .auth-showcase h1,
    .auth-showcase p,
    .auth-experience,
    .auth-metric-grid {
        margin-left: auto;
        margin-right: auto;
    }

    .auth-showcase h1 {
        font-size: 48px;
    }

    .auth-experience {
        width: min(100%, 620px);
    }

    .auth-metric-grid {
        width: min(100%, 620px);
    }

    .studio-sidebar {
        position: sticky;
        top: 0;
        z-index: 40;
        bottom: auto;
        left: auto;
        width: auto;
        height: auto;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        overflow-x: auto;
        overflow-y: hidden;
        box-shadow: 0 12px 28px rgba(63, 27, 72, 0.08);
    }

    .studio-brand {
        flex: 0 0 128px;
        padding: 0;
        border-bottom: 0;
    }

    .brand-logo-frame {
        width: 126px;
    }

    .sidebar-toggle {
        flex: 0 0 42px;
        width: 42px;
        padding-inline: 0;
    }

    .sidebar-toggle-text {
        display: none;
    }

    .create-tile {
        flex: 0 0 184px;
        min-height: 46px;
        padding: 8px 10px;
    }

    .create-mark {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }

    .studio-nav {
        display: flex;
        flex: 1 0 auto;
        gap: 8px;
        min-width: 0;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 4px 4px 0;
        scrollbar-width: thin;
    }

    .studio-nav a {
        flex: 0 0 auto;
        min-height: 40px;
        white-space: nowrap;
    }

    .sidebar-card,
    .sidebar-footer {
        display: none;
    }

    .studio-shell.sidebar-collapsed .create-tile,
    .studio-shell.sidebar-collapsed .studio-nav {
        display: none;
    }

    .studio-shell.sidebar-collapsed .studio-sidebar {
        overflow-x: hidden;
    }

    .studio-topbar,
    .topbar-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .command-search {
        width: 100%;
    }

    .topbar-create {
        width: 100%;
    }

    .grid-2,
    .grid-3,
    .grid-4,
    .grid-5,
    .dashboard-insight-grid,
    .project-board,
    .preview-actions,
    .studio-metrics,
    .dashboard-metrics,
    .dashboard-lower,
    .subscription-hero,
    .usage-grid,
    .send-hero,
    .send-metrics,
    .send-layout,
    .limit-grid,
    .delivery-hero,
    .delivery-stats,
    .notification-workspace,
    .contact-tools,
    .quick-contact-form,
    .delivery-filter,
    .import-strip,
    .composer-grid,
    .reports-grid,
    .filter-row {
        grid-template-columns: 1fr;
    }

    .dashboard-hero {
        min-height: auto;
    }

    .invitation-showcase {
        min-height: 280px;
    }

    .dashboard-command {
        min-height: auto;
    }

    .dashboard-command-copy h2 {
        font-size: clamp(32px, 10vw, 44px);
    }
}

@media (max-width: 520px) {
    .workspace {
        padding: 18px 14px 28px;
    }

    .auth-nav {
        gap: 12px;
    }

    .auth-logo {
        font-size: 20px;
    }

    .auth-nav-cta {
        min-height: 34px;
        padding: 0 13px;
    }

    .auth-showcase h1 {
        font-size: 36px;
    }

    .auth-showcase p {
        font-size: 14px;
    }

    .auth-experience {
        display: grid;
        gap: 10px;
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .auth-invite-panel,
    .auth-mini-panel,
    .auth-editor-panel {
        position: static;
        width: 100%;
    }

    .auth-invite-panel {
        min-height: auto;
    }

    .auth-invite-panel img {
        aspect-ratio: 16 / 10;
    }

    .auth-metric-grid,
    .auth-form-grid {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 22px 18px;
    }

    .invitation-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .studio-nav {
        grid-template-columns: 1fr;
    }

    .actions {
        align-items: stretch;
        flex-direction: column;
    }

    .actions > *,
    .delivery-actions > *,
    .composer-actions > *,
    .btn,
    .copy-link {
        width: 100%;
    }

    .dashboard-command,
    .dashboard-section {
        padding: 16px;
    }

    .project-actions {
        grid-template-columns: 1fr;
    }

    .activity-timeline article {
        grid-template-columns: 36px minmax(0, 1fr);
    }

    .activity-timeline article .badge {
        grid-column: 2;
        justify-self: start;
    }
}

/* ==========================================================================
   MODULE: EVENT CREATION FLOW (INPUT FIRST → TEMPLATE SELECTION)
   ========================================================================== */

.wizard-container {
    max-width: 1380px;
    margin: 0 auto;
    padding: 24px;
}

.wizard-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.wizard-title-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.wizard-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
    font-weight: 500;
    transition: all 0.2s ease;
}

.wizard-back-btn:hover {
    background: var(--purple-soft);
    border-color: var(--purple);
    color: var(--purple);
}

.wizard-heading {
    margin: 0;
    font-family: var(--display-font);
    font-size: 26px;
    font-weight: 700;
    color: var(--ink);
}

.wizard-subheading {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--muted);
}

.wizard-step-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.wizard-step-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.22s ease;
}

.wizard-step-pill .step-num {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--soft);
    border-radius: 50%;
    font-size: 12px;

}

.wizard-step-pill.active {
    background: var(--purple);
    border-color: var(--purple);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(173, 0, 191, 0.25);
}

.wizard-step-pill.active .step-num {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.wizard-step-pill.completed {
    background: var(--teal-2);
    border-color: var(--teal);
    color: var(--teal);
}

.step-intro {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 36px;
}

.step-intro h2 {
    font-family: var(--display-font);
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px;
}

.step-intro p {
    color: var(--muted);
    font-size: 15px;
}

/* Event Type Category Grid */
.event-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.event-type-card {
    position: relative;
    background: #ffffff;
    border: 2px solid var(--line);
    border-radius: 18px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-type-card:hover {
    border-color: var(--purple);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.event-type-card.selected {
    border-color: var(--purple);
    background: linear-gradient(180deg, #ffffff, var(--purple-soft));
    box-shadow: 0 12px 30px rgba(173, 0, 191, 0.15);
}

.event-type-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--purple-soft);
    color: var(--purple);
    border-radius: 16px;
    transition: all 0.25s ease;
}

.event-type-card:hover .event-type-icon {
    background: var(--purple);
    color: #ffffff;
}

.event-type-card h3 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
}

.event-type-card p {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
}

.type-select-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
    padding: 4px 10px;
    background: var(--purple);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
}

/* AI Assistant Banner */
.ai-assistant-banner {
    display: flex;
    gap: 20px;
    align-items: center;
    background: linear-gradient(135deg, #2d0036, #6f2075);
    color: #ffffff;
    border-radius: 20px;
    padding: 24px 30px;
    margin-bottom: 32px;
    box-shadow: 0 14px 36px rgba(111, 32, 117, 0.25);
}

.ai-banner-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    font-size: 28px;

}

.ai-banner-body {
    flex: 1;
}

.ai-banner-body h3 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
}

.ai-banner-body p {
    margin: 0 0 14px;
    font-size: 13px;
    opacity: 0.85;
}

.ai-input-wrapper {
    display: flex;
    gap: 12px;
}

.ai-input-wrapper input {
    flex: 1;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 12px;
    color: var(--ink);
    outline: none;
}

.btn-ai-generate {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--sun);
    color: #23152a;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s ease;
}

.btn-ai-generate:hover {
    transform: scale(1.03);
}

/* Forms & Cards */
.form-section-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-soft);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.section-header .material-symbols-outlined {
    font-size: 28px;
    color: var(--purple);
}

.section-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.section-header p {
    margin: 2px 0 0;
    font-size: 13px;
    color: var(--muted);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.col-span-2 {
    grid-column: span 2;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--purple);
    background: #ffffff;
}

/* Dynamic Repeaters */
.repeater-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.repeater-row {
    display: grid;
    grid-template-columns: 1fr 2fr 2fr auto;
    gap: 12px;
    align-items: end;
    background: var(--soft);
    padding: 16px;
    border-radius: 12px;
}

.btn-remove-row {
    background: var(--coral-2);
    color: var(--coral);
    border: none;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
}

.btn-add-repeater {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--purple-soft);
    color: var(--purple);
    border: 1px dashed var(--purple);
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    align-self: start;
}

/* Theme Tags Picker */
.theme-tags-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.theme-tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 20px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-tag-chip.selected {
    background: var(--purple);
    border-color: var(--purple);
    color: #ffffff;
}

/* Wizard Actions Footer */
.wizard-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    color: #ffffff;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(173, 0, 191, 0.25);
    transition: transform 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    padding: 14px 24px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 14px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
}

/* Templates Grid & Scoring */
.template-filter-bar {
    margin-bottom: 24px;
}

.filter-tabs {
    display: flex;
    gap: 10px;
}

.filter-tab {
    padding: 8px 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 20px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
}

.filter-tab.active {
    background: var(--ink);
    border-color: var(--ink);
    color: #ffffff;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.template-card {
    background: #ffffff;
    border: 2px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.template-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.template-card.selected {
    border-color: var(--purple);
    box-shadow: 0 12px 30px rgba(173, 0, 191, 0.2);
}

.template-card-header {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    background: var(--soft);
    border-bottom: 1px solid var(--line);
}

.score-badge {
    background: #fef08a;
    color: #854d0e;
    font-weight: 700;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 10px;
}

.badge-premium {
    background: #fbcfe8;
    color: #9d174d;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
}

.badge-free {
    background: #dcfce7;
    color: #166534;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
}

.badge-mobile {
    background: #e0e7ff;
    color: #3730a3;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 10px;
}

/* Mock Invitation Card Rendering User Data */
.mock-invite-preview {
    background: linear-gradient(135deg, #111827, #374151);
    color: #ffffff;
    padding: 32px 20px;
    text-align: center;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mock-hero {
    max-width: 260px;
}

.mock-badge {
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--sun);
}

.mock-title {
    font-family: var(--display-font);
    font-size: 20px;
    margin: 8px 0;
}

.mock-date {
    font-size: 13px;
    opacity: 0.9;
    margin: 0;
}

.mock-venue {
    font-size: 11px;
    opacity: 0.75;
    margin-top: 4px;
}

.template-card-body {
    padding: 20px;
}

.template-card-body h3 {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 700;
}

.template-tags-line {
    font-size: 12px;
    color: var(--muted);
    margin: 0 0 16px;
}

.template-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

.btn-use-template {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    background: var(--purple-soft);
    color: var(--purple);
    border: 1px solid var(--purple);
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}

.btn-use-template.active {
    background: var(--purple);
    color: #ffffff;
}

/* Studio Layout */
.studio-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 24px;
    min-height: 680px;
}

.studio-controls-panel {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.studio-tabs {
    display: flex;
    gap: 6px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
}

.studio-tabs button {
    flex: 1;
    padding: 8px;
    background: transparent;
    border: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    border-radius: 8px;
}

.studio-tabs button.active {
    background: var(--purple-soft);
    color: var(--purple);
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.control-group label {
    font-size: 13px;
    font-weight: 600;
}

.control-group input[type="color"] {
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.studio-preview-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.preview-viewport-toggle {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.preview-viewport-toggle button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
}

.preview-viewport-toggle button.active {
    background: var(--purple);
    color: #ffffff;
    border-color: var(--purple);
}

.iframe-container {
    flex: 1;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.iframe-container.mobile {
    max-width: 390px;
    margin: 0 auto;
    border-radius: 36px;
    border: 8px solid #111827;
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    min-height: 600px;
    border: none;
}

/* Full Preview Modal */
.preview-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.preview-modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 1100px;
    height: 90vh;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--line);
}

.modal-body {
    flex: 1;
}

.modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.modal-body.mobile {
    max-width: 390px;
    margin: 20px auto;
    border-radius: 32px;
    border: 6px solid #111827;
    height: calc(100% - 40px);
}

/* Success Card */
.success-step {
    text-align: center;
    padding: 60px 20px;
}

.success-card {
    max-width: 580px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal-2);
    color: var(--teal);
    border-radius: 50%;
}

.success-icon .material-symbols-outlined {
    font-size: 48px;
}

.share-box {
    display: flex;
    gap: 10px;
    margin: 24px 0;
}

.share-box input {
    flex: 1;
    padding: 12px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 10px;
}

.btn-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 18px;
    background: var(--purple);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

.success-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
}

[x-cloak] {
    display: none !important;
}

/* Spinner & Loading Utilities */
.spinner {
    display: inline-block !important;
    width: 18px !important;
    height: 18px !important;
    border: 3px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: 50% !important;
    border-top-color: #ffffff !important;
    animation: studioSpin 0.6s linear infinite !important;
    vertical-align: middle !important;
    margin-right: 8px !important;
    flex-shrink: 0;
}

@keyframes studioSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner-dark {
    border-color: rgba(111, 32, 117, 0.25) !important;
    border-top-color: var(--purple-dark, #6f2075) !important;
}

.wizard-overlay-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    background: rgba(26, 16, 32, 0.65);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.overlay-loader-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 36px 40px;
    text-align: center;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    animation: modalScale 0.25s ease-out;
}

@keyframes modalScale {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.overlay-loader-card .spinner-ring {
    width: 48px;
    height: 48px;
    border: 4px solid #f3e8ff;
    border-top-color: #9333ea;
    border-radius: 50%;
    animation: studioSpin 0.75s linear infinite;
}

.overlay-loader-card h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1e1b4b;
}

.overlay-loader-card p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}

.btn-primary:disabled,
.btn-secondary:disabled,
.btn-ai-generate:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    pointer-events: none;
}


