.development-preview {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 180;
    font-family: "Inter", sans-serif;
}

.development-preview-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 15px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(145deg, #334155, #263244);
    color: var(--text-light);
    font: inherit;
    font-size: 11px;
    font-weight: var(--weight-bold);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
    cursor: pointer;
    transition: transform .18s ease, filter .18s ease;
}

.development-preview-trigger:hover {
    transform: translateY(-1px);
    filter: brightness(1.12);
}

.development-preview-trigger span {
    color: var(--accent-hover);
    font-size: 16px;
}

.development-preview-panel {
    position: absolute;
    right: 0;
    bottom: 50px;
    width: 310px;
    max-height: min(720px, calc(100vh - 90px));
    padding: 20px;
    border-radius: 18px;
    background: #1B2432;
    box-shadow: 0 24px 55px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .045);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(.98);
    transform-origin: right bottom;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    overflow-y: auto;
}

.development-preview-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.development-preview-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.development-preview-heading h2 {
    margin: 4px 0 0;
    color: var(--text-primary);
    font-size: 17px;
    letter-spacing: -.02em;
}

.development-preview-eyebrow {
    color: var(--accent-hover);
    font-size: 10px;
    font-weight: var(--weight-bold);
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.development-preview-close {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.development-preview-close:hover {
    color: var(--text-primary);
}

.development-preview-helper {
    margin: 13px 0 17px;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.55;
}

.development-preview-groups {
    display: grid;
    gap: 18px;
}

.development-preview-groups section {
    display: grid;
    gap: 8px;
}

.development-preview-groups h3 {
    margin: 0;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: var(--weight-bold);
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

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

.development-account-preview-overlay {
    z-index: 170;
}

.development-account-preview-overlay.is-entry-preview {
    padding: 0;
    background: var(--bg-page);
    align-items: flex-start;
    justify-content: flex-start;
    overflow-y: auto;
}

.development-account-preview {
    position: relative;
    width: min(510px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    padding: 38px;
    border-radius: 22px;
    background: var(--bg-elevated);
    box-shadow: var(--shadow-modal);
    overflow-y: auto;
}

.development-account-preview.is-entry-page {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
    width: 100%;
    max-height: none;
    min-height: 100vh;
    padding: 0;
    border-radius: 0;
    background: var(--bg-page);
    box-shadow: none;
    overflow: visible;
    box-sizing: border-box;
}

.development-account-preview.is-entry-page .development-account-preview-close {
    z-index: 2;
    top: 24px;
    right: 28px;
}

.development-entry-story,
.development-entry-access {
    min-height: 100vh;
    box-sizing: border-box;
}

.development-entry-story {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(38px, 5vw, 72px);
    background:
        radial-gradient(circle at 16% 18%, rgba(79, 140, 255, .14), transparent 30%),
        radial-gradient(circle at 82% 76%, rgba(139, 124, 255, .09), transparent 32%),
        linear-gradient(145deg, #172234 0%, #111827 68%);
    overflow: hidden;
}

.development-entry-story::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -150px;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(255, 255, 255, .035);
    border-radius: 50%;
    box-shadow:
        0 0 0 55px rgba(255, 255, 255, .012),
        0 0 0 110px rgba(255, 255, 255, .009);
    pointer-events: none;
}

.development-entry-brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 13px;
}

.development-entry-brand-mark {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    border-radius: 13px;
    background: linear-gradient(145deg, var(--lifecycle-pending-header-start), var(--lifecycle-pending-header-end));
    color: white;
    font-size: 12px;
    font-weight: var(--weight-bold);
    box-shadow: 0 12px 28px rgba(79, 140, 255, .18);
}

.development-entry-brand > span:last-child {
    display: grid;
    gap: 3px;
}

.development-entry-brand strong {
    color: var(--text-primary);
    font-size: 17px;
    letter-spacing: -.025em;
}

.development-entry-brand small {
    color: var(--text-muted);
    font-size: 10px;
    font-weight: var(--weight-bold);
    letter-spacing: 2.4px;
    text-transform: uppercase;
}

.development-entry-story-copy {
    position: relative;
    z-index: 1;
    width: min(630px, 100%);
    margin: clamp(52px, 9vh, 110px) 0;
}

.development-entry-story-copy h1 {
    max-width: 610px;
    margin: 15px 0 0;
    color: var(--text-primary);
    font-size: clamp(38px, 4.3vw, 66px);
    line-height: 1.02;
    letter-spacing: -.055em;
}

.development-entry-story-copy > p {
    max-width: 570px;
    margin: 24px 0 0;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.75;
}

.development-entry-lifecycle {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 42px;
}

.development-entry-lifecycle > div {
    display: grid;
    grid-template-columns: 30px 1fr;
    column-gap: 10px;
    row-gap: 4px;
    align-content: start;
    min-width: 0;
    padding: 15px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .035);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

.development-entry-lifecycle span {
    display: grid;
    grid-row: 1 / span 2;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: var(--weight-bold);
}

.development-entry-lifecycle span.is-pending { background: var(--accent-surface); color: var(--accent-hover); }
.development-entry-lifecycle span.is-decided { background: var(--success-surface); color: var(--success); }
.development-entry-lifecycle span.is-reviewed { background: var(--review-surface); color: var(--review); }

.development-entry-lifecycle strong {
    color: var(--text-light);
    font-size: 11px;
}

.development-entry-lifecycle small {
    color: var(--text-muted);
    font-size: 10px;
    line-height: 1.5;
}

.development-entry-story-note {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--text-muted);
    font-size: 10px;
}

.development-entry-access {
    display: grid;
    place-items: center;
    padding: clamp(42px, 6vw, 90px);
    background: #151D2A;
    box-shadow: inset 1px 0 0 rgba(255, 255, 255, .035);
    min-width: 0;
    overflow: hidden;
}

.development-entry-access-inner {
    width: min(430px, 100%);
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.development-entry-mode-switch {
    margin-bottom: 30px;
}

.development-entry-form-content {
    animation: development-entry-form-enter .22s ease both;
}

@keyframes development-entry-form-enter {
    from { opacity: .35; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.development-entry-access-inner h2 {
    font-size: clamp(28px, 3vw, 38px);
    overflow-wrap: break-word;
}

.development-entry-access-inner .ui-button,
.development-entry-access-inner .ui-input {
    box-sizing: border-box;
    max-width: 100%;
}

.development-entry-trust {
    margin-top: 30px;
    color: var(--text-muted);
    font-size: 10px;
    line-height: 1.5;
    text-align: center;
}

.development-account-preview.is-entry-page > .development-account-preview-note {
    position: fixed;
    right: 18px;
    bottom: 15px;
    z-index: 3;
    margin: 0;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(17, 24, 39, .82);
    box-shadow: none;
    backdrop-filter: blur(8px);
}

.development-account-preview-close {
    position: absolute;
    top: 18px;
    right: 20px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font-size: 22px;
    cursor: pointer;
}

.development-account-preview-close:hover {
    color: var(--text-primary);
}

.development-account-brand,
.development-account-status-icon,
.development-account-warning-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 22px;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--lifecycle-pending-header-start), var(--lifecycle-pending-header-end));
    color: white;
    font-size: 13px;
    font-weight: var(--weight-bold);
}

.development-account-status-icon {
    background: var(--success-surface);
    color: var(--success);
    font-size: 20px;
}

.development-account-warning-icon {
    background: var(--accent-surface);
    color: var(--accent-hover);
    font-size: 20px;
}

.development-account-warning-icon.is-danger {
    background: var(--danger-surface);
    color: var(--danger);
}

.development-account-eyebrow {
    color: var(--accent-hover);
    font-size: 10px;
    font-weight: var(--weight-bold);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.development-account-preview h2 {
    margin: 7px 0 0;
    color: var(--text-primary);
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: -.03em;
}

.development-account-message {
    margin: 13px 0 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.65;
}

.development-account-form {
    display: grid;
    gap: 16px;
    margin-top: 25px;
}

.development-account-form .ui-button:not(.ui-button-block) {
    justify-self: end;
}

.development-account-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 17px;
}

.development-account-links button,
.development-account-back,
.development-account-signout {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font: inherit;
    font-size: 11px;
    cursor: pointer;
}

.development-account-links button:hover,
.development-account-back:hover,
.development-account-signout:hover {
    color: var(--text-primary);
}

.development-account-profile-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-right: 28px;
}

.development-account-profile-heading h2 {
    font-size: 22px;
}

.development-account-profile-heading p {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 11px;
}

.development-account-avatar {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: var(--accent-surface);
    color: var(--accent-hover);
    font-weight: var(--weight-bold);
}

.development-account-menu-list {
    display: grid;
    gap: 8px;
    margin-top: 26px;
}

.development-account-menu-list button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border: 0;
    border-radius: 12px;
    background: var(--control-bg);
    color: var(--text-secondary);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.development-account-menu-list button:hover {
    background: var(--control-bg-hover);
    color: var(--text-primary);
}

.development-account-menu-list span {
    display: grid;
    gap: 4px;
}

.development-account-menu-list strong {
    font-size: 12px;
}

.development-account-menu-list small {
    color: var(--text-muted);
    font-size: 10px;
}

.development-account-menu-list b {
    font-size: 18px;
    font-weight: var(--weight-regular);
}

.development-account-signout {
    margin-top: 20px;
    color: var(--danger);
}

.development-account-back {
    margin-bottom: 25px;
}

.development-account-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 28px;
}

.development-account-preview-note {
    margin-top: 28px;
    padding-top: 14px;
    box-shadow: inset 0 1px 0 var(--divider-soft);
    color: var(--text-muted);
    font-size: 10px;
    text-align: center;
}

.development-live-account-menu {
    position: static;
    width: 100%;
    box-sizing: border-box;
    animation: none;
}

.development-email-preview-overlay {
    z-index: 190;
    padding: 24px;
}

.development-email-preview {
    position: relative;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    width: min(980px, calc(100vw - 48px));
    height: min(840px, calc(100vh - 48px));
    padding: 24px;
    border-radius: 20px;
    background: var(--bg-elevated);
    box-shadow: var(--shadow-modal);
    box-sizing: border-box;
}

.development-email-preview-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding-right: 34px;
}

.development-email-preview-header h2 {
    margin: 6px 0 0;
    color: var(--text-primary);
    font-size: 22px;
}

.development-email-preview-header p {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: 11px;
}

.development-email-preview-tabs {
    display: flex;
    gap: 7px;
    margin: 20px 0 14px;
    overflow-x: auto;
}

.development-email-preview-tabs button {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: var(--control-bg);
    color: var(--text-muted);
    font: inherit;
    font-size: 10px;
    font-weight: var(--weight-semibold);
    cursor: pointer;
}

.development-email-preview-tabs button:hover,
.development-email-preview-tabs button.is-active {
    background: var(--control-bg-hover);
    color: var(--text-primary);
}

.development-email-preview-frame {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 14px;
    background: #0f1726;
}

.development-preview-actions button {
    min-height: 42px;
    padding: 9px 11px;
    border: 0;
    border-radius: 10px;
    background: var(--control-bg);
    color: var(--text-secondary);
    font: inherit;
    font-size: 10px;
    font-weight: var(--weight-semibold);
    text-align: left;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.development-preview-actions button:hover {
    background: var(--control-bg-hover);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.development-preview-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding-top: 14px;
    box-shadow: inset 0 1px 0 var(--divider-soft);
}

.development-preview-footer span {
    color: var(--text-muted);
    font-size: 10px;
}

.development-preview-footer span.is-active {
    color: var(--accent-hover);
}

.development-preview-footer button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-light);
    font: inherit;
    font-size: 10px;
    font-weight: var(--weight-semibold);
    cursor: pointer;
}

.development-preview-footer button:hover {
    color: var(--text-primary);
}

@media (max-width: 560px) {
    .development-preview {
        right: 12px;
        bottom: 12px;
    }

    .development-preview-panel {
        width: min(310px, calc(100vw - 24px));
    }

    .development-account-preview {
        width: calc(100vw - 24px);
        padding: 32px 22px 24px;
    }
}

@media (max-width: 1400px) {
    .development-account-preview.is-entry-page {
        grid-template-columns: 1fr;
    }

    .development-entry-story,
    .development-entry-access {
        min-height: auto;
    }

    .development-entry-story {
        padding: 28px clamp(24px, 5vw, 48px) 32px;
    }

    .development-entry-story-copy {
        margin: 32px 0 0;
    }

    .development-entry-story-copy h1 {
        max-width: 760px;
        font-size: clamp(36px, 5vw, 48px);
    }

    .development-entry-story-copy > p {
        margin-top: 16px;
    }

    .development-entry-lifecycle {
        margin-top: 24px;
    }

    .development-entry-story-note {
        display: none;
    }

    .development-entry-access {
        padding: 46px 24px 72px;
    }
}

@media (max-width: 640px) {
    .development-entry-lifecycle {
        grid-template-columns: 1fr;
        margin-top: 32px;
    }

    .development-entry-story-copy > p {
        font-size: 13px;
    }

    .development-account-preview.is-entry-page > .development-account-preview-note {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .development-preview-trigger,
    .development-preview-panel,
    .development-preview-actions button,
    .development-entry-form-content {
        transition: none;
        animation: none;
    }
}
