@font-face {
    font-family: 'Bryson';
    src: url('/studio/assets/fonts/Bryson-Regular.otf') format('opentype');
    font-weight: 400;
}

@font-face {
    font-family: 'Anton';
    src: url('/studio/assets/fonts/Anton-Regular.ttf') format('truetype');
    font-weight: 700;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/studio/assets/fonts/Montserrat-Regular.otf') format('opentype');
    font-weight: 400 900;
}

:root {
    --brand-navy: #282d5b;
    --brand-orange: #e98924;
    --blue: #272b58;
    --orange: #ea8000;
    --white: #ffffff;
    --black: #050505;
    --ink: #191b24;
    --muted: #686868;
    --line: #d9ddea;
    --soft: #f4f5fa;
    --font-title: 'Anton', Impact, sans-serif;
    --font-body: 'Montserrat', Arial, sans-serif;
    --sidebar: 214px;
    --sidebar-edge-gap: 12.5px;
    --sidebar-logo-search-gap: 5px;
    --sidebar-control-width-nudge: 1.5px;
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: #eee4d4;
}

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

a {
    color: inherit;
}

button[data-nav-url],
button[data-open-url],
.button-link-reset {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
}

.text-link-button {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--brand-orange);
    font-weight: 900;
    cursor: pointer;
    text-align: left;
}

.text-link-button:hover,
.text-link-button:focus-visible {
    text-decoration: underline;
    outline: none;
}

.forms-page {
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(39, 43, 88, 0.92), rgba(39, 43, 88, 0.97)),
        radial-gradient(circle at top left, rgba(234, 128, 0, 0.28), transparent 34%);
}

.forms-shell {
    width: min(1440px, calc(100vw - 48px));
    margin: 0 auto;
    padding: 32px 0;
}

.forms-hero {
    min-height: 96px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
    color: #fff;
}

.forms-back,
.btn {
    border: 1px solid rgba(39, 43, 88, 0.14);
    border-radius: 999px;
    padding: 11px 16px;
    background: #fff;
    color: var(--brand-navy);
    font-weight: 900;
    cursor: pointer;
    text-decoration: none;
}

.forms-back {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.11);
    color: #fff;
}

.btn-primary {
    border-color: var(--brand-orange);
    background: var(--brand-orange);
    color: #fff;
}

.btn-secondary {
    background: #fff;
}

.btn-danger {
    border-color: #a94035;
    background: #a94035;
    color: #fff;
}

.forms-identity {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    gap: 14px;
    text-align: left;
}

.forms-avatar {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    border: 4px solid rgba(255, 255, 255, 0.82);
}

.forms-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.forms-identity p,
.forms-identity h1,
.forms-workspace-head p,
.forms-workspace-head h2 {
    margin: 0;
}

.forms-identity p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.86rem;
    font-weight: 800;
}

.forms-identity h1 {
    color: #fff;
    font-family: var(--font-title);
    font-size: clamp(2rem, 5vw, 4.4rem);
    line-height: 0.95;
}

.forms-identity-brand {
    justify-self: center;
}

.forms-brand-logo {
    display: block;
    width: min(360px, 48vw);
    height: auto;
}

.forms-layout {
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.forms-layout-preview-only {
    grid-template-columns: minmax(0, 1fr);
    max-width: 980px;
    margin: 0 auto;
}

.forms-list-card,
.forms-workspace,
.admin-card,
.admin-panel {
    border: 1px solid rgba(226, 230, 243, 0.92);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 18px 40px rgba(3, 6, 28, 0.16);
}

.forms-list-card {
    padding: 16px;
    position: sticky;
    top: 18px;
}

.forms-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.forms-list-head h2 {
    margin: 0;
    color: var(--brand-navy);
    font-size: 1rem;
}

.forms-list-head span {
    min-width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: var(--brand-orange);
    color: #fff;
    font-weight: 900;
}

.forms-list-head-completed {
    margin-top: 22px;
}

.forms-list-item {
    width: 100%;
    border: 1px solid #dfe4f2;
    border-radius: 14px;
    display: grid;
    gap: 3px;
    margin-bottom: 9px;
    padding: 12px;
    background: #fff;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}

.forms-list-item.is-active,
.forms-list-item:hover,
.forms-list-item:focus-visible {
    border-color: rgba(234, 128, 0, 0.62);
    box-shadow: 0 0 0 3px rgba(234, 128, 0, 0.1);
}

.forms-list-item strong {
    color: var(--brand-navy);
}

.forms-list-item span,
.forms-empty,
.muted {
    color: var(--muted);
    font-size: 0.9rem;
}

.forms-workspace {
    min-height: 620px;
    padding: 24px;
}

.forms-page-template-preview .forms-shell {
    width: min(1180px, calc(100vw - 48px));
}

.forms-page-template-preview .forms-hero {
    position: relative;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
}

.forms-page-template-preview .forms-hero .forms-back {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.forms-page-template-preview .forms-workspace {
    min-height: auto;
}

.forms-workspace-head {
    margin-bottom: 22px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e4e8f4;
    text-align: center;
}

.forms-workspace-head p {
    color: var(--brand-orange);
    font-weight: 900;
    text-transform: uppercase;
}

.forms-workspace-head h2,
.admin-title {
    margin-top: 0;
    color: var(--brand-navy);
    font-family: var(--font-title);
    font-size: clamp(2rem, 4vw, 3.8rem);
    line-height: 0.95;
}

.forms-workspace-head h2 {
    text-transform: uppercase;
}

.forms-workspace-head span {
    display: block;
    max-width: 780px;
    margin: 10px auto 0;
    color: var(--muted);
    line-height: 1.45;
    text-align: center;
}

body.forms-page-portal-signup-form {
    min-height: 100dvh;
    overflow-x: hidden;
}

.forms-page-portal-signup-form .forms-shell {
    width: min(1480px, calc(100vw - 64px));
    min-height: 100dvh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 16px;
    padding: clamp(18px, 2vw, 28px) 0;
}

.forms-page-portal-signup-form .forms-hero {
    min-height: 0;
    margin-bottom: 0;
}

.forms-page-template-preview.forms-page-portal-signup-form .forms-hero {
    padding-top: 0;
}

.forms-page-portal-signup-form .forms-brand-logo {
    max-height: 128px;
    object-fit: contain;
}

.forms-page-portal-signup-form .forms-layout {
    min-height: 0;
    align-items: stretch;
}

.forms-page-portal-signup-form .forms-layout-preview-only {
    width: 100%;
    max-width: 1320px;
    height: 100%;
}

.forms-page-portal-signup-form .forms-workspace {
    min-height: 0;
    max-height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding: clamp(24px, 3vw, 42px);
}

.forms-fill-form,
.forms-field,
.admin-form,
.admin-section {
    display: grid;
    gap: 16px;
}

.forms-field {
    gap: 8px;
}

.forms-portal-multistep {
    gap: 18px;
}

.forms-step-progress {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    gap: 8px;
    margin-bottom: 4px;
}

.forms-step-dot {
    appearance: none;
    -webkit-appearance: none;
    display: grid;
    justify-items: center;
    gap: 6px;
    border: 1px solid #dfe4f2;
    border-radius: 8px;
    padding: 10px 8px;
    background: #fff;
    color: var(--muted);
    cursor: pointer;
    text-align: center;
}

.forms-step-dot span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #eef1f8;
    color: var(--brand-navy);
    font-size: 0.82rem;
    font-weight: 900;
}

.forms-step-dot strong {
    font-size: 0.76rem;
    line-height: 1.15;
}

.forms-step-dot.is-active {
    border-color: rgba(234, 128, 0, 0.72);
    color: var(--brand-navy);
    box-shadow: 0 0 0 3px rgba(234, 128, 0, 0.1);
}

.forms-step-dot.is-active span {
    background: var(--brand-orange);
    color: #fff;
}

.forms-step-dot.is-complete span {
    background: #eef1f8;
    color: var(--brand-navy);
}

.forms-step-panel {
    display: none;
    gap: 16px;
}

.forms-step-panel.is-active {
    display: grid;
}

.forms-social-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid #dfe4f2;
    border-radius: 8px;
    margin: 0;
    padding: 12px;
    background: #fff;
}

.forms-social-question {
    margin: 0;
    color: var(--brand-navy);
    font-weight: 800;
    line-height: 1.3;
}

.forms-social-toggle-options {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(68px, 1fr));
    gap: 5px;
    flex: 0 0 auto;
    padding: 3px;
    border: 1px solid #e1e6f4;
    border-radius: 999px;
    background: #f6f7fb;
}

.forms-social-toggle label {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    white-space: nowrap;
    cursor: pointer;
}

.forms-choice-list label.is-disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.forms-social-toggle input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.forms-social-toggle label span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    min-height: 32px;
    border-radius: 999px;
    padding: 7px 12px;
    color: rgba(39, 43, 88, 0.78);
    font-weight: 800;
    line-height: 1;
    transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.forms-social-toggle input[type="radio"]:checked + span {
    background: var(--brand-orange);
    color: #fff;
    box-shadow: 0 5px 12px rgba(234, 128, 0, 0.24);
}

.forms-social-toggle input[type="radio"]:focus-visible + span {
    outline: 2px solid rgba(234, 128, 0, 0.45);
    outline-offset: 2px;
}

.forms-social-input {
    display: none;
}

.forms-social-field.is-open .forms-social-input {
    display: grid;
    gap: 8px;
}

.forms-submit-final[hidden],
.forms-actions [hidden] {
    display: none;
}

.forms-field-trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.forms-field label,
.field label {
    color: var(--brand-navy);
    font-weight: 900;
}

.forms-field p,
.field small {
    margin: -3px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.forms-field input,
.forms-field select,
.forms-field textarea,
.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid #cfd4e8;
    border-radius: 14px;
    background: #fff;
    padding: 13px 14px;
    color: var(--ink);
}

.forms-field textarea,
.field textarea {
    min-height: 130px;
}

.forms-current-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid #e2e6f3;
    border-radius: 14px;
    background: #f8f9fc;
    padding: 10px 12px;
}

.forms-current-file span {
    color: var(--muted);
    font-size: 0.9rem;
    min-width: 0;
    overflow-wrap: anywhere;
}

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

.forms-choice-list label {
    border: 1px solid #dfe4f2;
    border-radius: 14px;
    padding: 11px 13px;
    background: #fff;
    color: var(--ink);
}

.forms-signature-pad {
    display: grid;
    gap: 10px;
}

.forms-signature-pad canvas {
    width: 100%;
    height: 220px;
    border: 1px solid #cfd4e8;
    border-radius: 16px;
    background: #fff;
    touch-action: none;
}

.forms-account-fields {
    border: 1px solid #e2e6f3;
    border-radius: 16px;
    padding: 18px;
    background: #f9fafc;
}

.forms-account-fields-head {
    margin-bottom: 14px;
}

.forms-account-fields-head h3 {
    margin: 0;
    color: var(--brand-navy);
    font-size: 1.05rem;
}

.forms-account-fields-head p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

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

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

.forms-answer-grid,
.admin-answer-grid {
    display: grid;
    gap: 12px;
}

.forms-answer,
.admin-answer {
    border: 1px solid #e2e6f3;
    border-radius: 14px;
    padding: 14px;
    background: #fff;
}

.forms-answer strong,
.admin-answer strong {
    display: block;
    margin-bottom: 7px;
    color: var(--brand-navy);
}

.forms-answer p,
.admin-answer p {
    margin: 0;
    line-height: 1.45;
}

@media (min-width: 981px) {
    body.forms-page-portal-signup-form {
        height: 100dvh;
        overflow: hidden;
    }

    .forms-page-portal-signup-form .forms-shell {
        height: 100dvh;
        overflow: hidden;
    }

    .forms-page-portal-signup-form .forms-brand-logo {
        width: min(280px, 22vw);
    }

    .forms-page-portal-signup-form .forms-workspace-head {
        margin-top: -22px;
        margin-bottom: 24px;
        padding-bottom: 20px;
    }

    .forms-page-portal-signup-form .forms-workspace-head h2 {
        font-size: clamp(3.4rem, 4.3vw, 5.4rem);
    }

    .forms-page-portal-signup-form .forms-step-progress {
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 10px;
    }

    .forms-page-portal-signup-form .forms-step-dot {
        min-height: 88px;
        padding: 12px 8px;
    }

    .forms-page-portal-signup-form .forms-step-panel.is-active {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 24px;
        row-gap: 18px;
        align-items: start;
    }

    .forms-page-portal-signup-form .forms-step-panel > .forms-account-fields,
    .forms-page-portal-signup-form .forms-step-panel > .forms-field-trap,
    .forms-page-portal-signup-form .forms-step-panel > .forms-field:has(textarea),
    .forms-page-portal-signup-form .forms-step-panel > .forms-field:has(.forms-choice-list),
    .forms-page-portal-signup-form .forms-step-panel > .forms-field:has(input[type="file"]),
    .forms-page-portal-signup-form .forms-step-panel > .forms-field:has(.forms-signature-pad) {
        grid-column: 1 / -1;
    }

    .forms-page-portal-signup-form .forms-actions {
        justify-content: flex-end;
    }
}

.forms-answer a,
.admin-answer a,
.forms-answer .text-link-button,
.admin-answer .text-link-button {
    color: var(--brand-orange);
    font-weight: 900;
}

.forms-empty-panel {
    min-height: 440px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    text-align: center;
    color: var(--muted);
}

.forms-empty-panel img {
    width: 86px;
}

.forms-empty-panel h2 {
    margin: 0;
    color: var(--brand-navy);
    font-family: var(--font-title);
    font-size: 2.6rem;
}

.flash {
    border-radius: 14px;
    margin: 0 0 16px;
    padding: 13px 15px;
    font-weight: 900;
}

.flash-success {
    border: 1px solid #a5d6af;
    background: #eaf8ed;
    color: #1f6730;
}

.flash-preview {
    border: 1px solid #f1ca6b;
    background: #fff8df;
    color: var(--brand-navy);
}

.flash-error {
    border: 1px solid #f0a7a0;
    background: #fff1ef;
    color: #8b2f25;
}

.forms-signed-page {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background:
        radial-gradient(circle at top right, rgba(234, 128, 0, 0.14) 0%, rgba(234, 128, 0, 0) 28%),
        radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 24%),
        linear-gradient(135deg, #20254f 0%, #272b58 48%, #31377a 100%);
    isolation: isolate;
}

@supports (height: 100dvh) {
    .forms-signed-page {
        height: 100dvh;
    }
}

.forms-confetti-layer {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: block;
}

.forms-confetti-back {
    z-index: 1;
}

.forms-confetti-front {
    z-index: 4;
    opacity: 1;
    transition: opacity 900ms ease;
}

.forms-confetti-front.is-done {
    opacity: 0;
}

.forms-signed-card {
    position: relative;
    z-index: 3;
    width: min(100%, 920px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(39, 43, 88, 0.94) 0%, rgba(49, 55, 122, 0.94) 100%);
    padding: 44px 44px 40px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(11, 14, 38, 0.34);
}

.forms-signed-logo {
    display: block;
    width: 260px;
    max-width: 100%;
    height: auto;
    margin: 0 auto 28px;
}

.forms-signed-card h1 {
    width: 100%;
    margin: 0 0 18px;
    color: var(--brand-orange);
    font-family: 'Bryson', var(--font-title);
    font-size: 3rem;
    line-height: 1.08;
    text-align: center;
    white-space: nowrap;
}

.forms-signed-card p {
    max-width: 260px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.82);
    font-family: 'Bryson', var(--font-title);
    font-size: clamp(2rem, 3.1vw, 2.9rem);
    line-height: 0.96;
    font-weight: 600;
    text-transform: uppercase;
}

.forms-signed-card .forms-signed-redirect {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.72);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.35;
    max-width: 720px;
    text-transform: none;
}

.forms-signed-redirect strong {
    color: #fff;
    font-weight: 900;
}

.forms-signed-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.forms-calendar-connect-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    max-width: 760px;
    margin: 26px auto 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    padding: 18px;
    text-align: left;
}

.forms-calendar-connect-card span {
    display: block;
    margin-bottom: 5px;
    color: var(--brand-orange);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.forms-calendar-connect-card h2 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 1.35rem;
    line-height: 1.18;
}

.forms-signed-card .forms-calendar-connect-card p {
    max-width: none;
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.98rem;
    line-height: 1.45;
}

.forms-calendar-connect-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border: 1px solid #ccd0df;
    border-radius: 999px;
    padding: 4px 10px;
    color: var(--brand-navy);
    background: #fff;
    font-size: 0.82rem;
    font-weight: 900;
}

.tag-preview {
    border-color: #f4c94f;
    background: #fff8d8;
}

.admin-page {
    min-height: 100vh;
    background: #eee4d4;
}

.admin-app-shell {
    min-height: 100vh;
}

.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    width: var(--sidebar);
    display: flex;
    flex-direction: column;
    background: var(--blue);
    border-right: 1px solid var(--blue);
}

.sidebar-brand {
    border: 0;
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100% - (var(--sidebar-edge-gap) * 2));
    margin: var(--sidebar-edge-gap) var(--sidebar-edge-gap) var(--sidebar-logo-search-gap);
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.sidebar-brand img {
    display: block;
    width: calc(100% + 3.5px);
    height: auto;
    object-fit: contain;
    transform: translateX(-2.5px);
}

.sidebar-search-launch {
    width: calc(100% - (var(--sidebar-edge-gap) * 2) + var(--sidebar-control-width-nudge));
    min-height: 38px;
    margin: 0 var(--sidebar-edge-gap) var(--sidebar-edge-gap);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.82);
    cursor: pointer;
    text-align: left;
}

.sidebar-search-launch:hover,
.sidebar-search-launch:focus-visible {
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
    outline: none;
}

.sidebar-search-launch span:nth-child(2) {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 700;
}

.sidebar-search-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    background-color: currentColor;
    mask: var(--search-icon-url) center / contain no-repeat;
    -webkit-mask: var(--search-icon-url) center / contain no-repeat;
}

.sidebar-nav {
    display: grid;
    gap: 4px;
    padding: 0 var(--sidebar-edge-gap) 18px;
    overflow: auto;
    scrollbar-width: none;
}

.sidebar-nav::-webkit-scrollbar {
    display: none;
}

.sidebar-nav-item {
    display: grid;
    gap: 4px;
}

.sidebar-nav a,
.sidebar-nav button {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    align-items: center;
    gap: 10px;
    width: calc(100% + var(--sidebar-control-width-nudge));
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: rgba(255, 255, 255, 0.74);
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.sidebar-nav a:hover,
.sidebar-nav a:focus-visible,
.sidebar-nav a.active,
.sidebar-nav button:hover,
.sidebar-nav button:focus-visible,
.sidebar-nav button.active {
    background: var(--white);
    border-color: var(--white);
    color: var(--black);
    outline: none;
}

.nav-icon {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: transparent;
    color: var(--white);
    font-size: 0.72rem;
    flex: 0 0 auto;
}

.sidebar-nav a:hover .nav-icon,
.sidebar-nav a:focus-visible .nav-icon,
.sidebar-nav a.active .nav-icon,
.sidebar-nav button:hover .nav-icon,
.sidebar-nav button:focus-visible .nav-icon,
.sidebar-nav button.active .nav-icon {
    background: transparent;
    color: var(--orange);
}

.nav-icon-mask::before {
    content: "";
    display: block;
    width: 22px;
    height: 22px;
    background: currentColor;
    -webkit-mask: var(--nav-icon-url) center / contain no-repeat;
    mask: var(--nav-icon-url) center / contain no-repeat;
}

.admin-shell {
    width: auto;
    max-width: none;
    margin-left: var(--sidebar);
    padding: 32px clamp(16px, 4vw, 54px);
}

.admin-top {
    display: block;
    margin-bottom: 22px;
}

.admin-kicker {
    margin: 0 0 8px;
    color: var(--brand-orange);
    font-weight: 900;
    text-transform: uppercase;
}

.admin-title {
    margin: 0;
}

.admin-subtitle {
    margin: 8px 0 0;
    color: var(--muted);
    font-weight: 700;
}

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

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

.admin-list {
    display: grid;
    gap: 10px;
}

.admin-list-item {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    display: grid;
    gap: 4px;
    border: 1px solid #dfe4f2;
    border-radius: 14px;
    padding: 13px;
    color: var(--ink);
    background: #fff;
    text-decoration: none;
    cursor: pointer;
    text-align: left;
}

.admin-list-item.is-active {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 3px rgba(234, 128, 0, 0.1);
}

.admin-list-item strong {
    color: var(--brand-navy);
}

.admin-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 0.86rem;
}

.admin-panel + .admin-panel {
    margin-top: 18px;
}

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

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

.field-full {
    grid-column: 1 / -1;
}

.builder-row {
    display: grid;
    grid-template-columns: minmax(160px, 1.2fr) minmax(140px, 0.75fr) minmax(160px, 1fr) 80px auto auto;
    gap: 10px;
    align-items: end;
    padding: 12px 0;
    border-bottom: 1px solid #edf1f8;
}

.builder-row .field {
    display: grid;
    gap: 6px;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    color: var(--brand-navy);
    font-weight: 900;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid #e1e5f0;
    padding: 12px 10px;
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: var(--brand-navy);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-table td {
    font-weight: 700;
}

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

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

.admin-section-heading h2,
.admin-section-heading p {
    margin: 0;
}

.admin-section-kicker {
    color: var(--brand-orange);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-count-pill {
    display: inline-grid;
    place-items: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--brand-orange);
    color: #fff;
    font-weight: 900;
}

.submission-browser {
    display: grid;
    grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.submission-index {
    display: grid;
    gap: 10px;
    max-height: 680px;
    overflow: auto;
    padding-right: 4px;
}

.submission-card {
    appearance: none;
    -webkit-appearance: none;
    display: grid;
    gap: 5px;
    width: 100%;
    border: 1px solid #dfe4f2;
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    padding: 14px;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(39, 43, 88, 0.04);
}

.submission-card.is-active {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 3px rgba(234, 128, 0, 0.12);
}

.submission-card span,
.submission-card small {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.submission-card strong {
    color: var(--brand-navy);
}

.submission-detail {
    min-height: 520px;
    border: 1px solid #dfe4f2;
    border-radius: 18px;
    background: #fbfcff;
    padding: 18px;
}

.submission-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e3e7f2;
}

.submission-detail-head h3,
.submission-detail-head p {
    margin: 0;
}

.submission-detail-head h3 {
    margin-top: 4px;
    color: var(--brand-navy);
    font-size: 1.45rem;
}

.submission-detail-head p:last-child {
    margin-top: 4px;
    color: var(--muted);
    font-weight: 800;
}

.submission-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0;
}

.submission-summary-grid div {
    border: 1px solid #e0e5f1;
    border-radius: 14px;
    background: #fff;
    padding: 12px;
}

.submission-summary-grid span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.submission-summary-grid strong {
    display: block;
    margin-top: 4px;
    color: var(--brand-navy);
    font-size: 1.15rem;
}

.submission-answer-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.submission-answer-card {
    display: grid;
    gap: 10px;
    border: 1px solid #e2e6f3;
    border-radius: 14px;
    background: #fff;
    padding: 14px;
}

.submission-answer-card.is-empty {
    background: #f7f8fc;
}

.submission-answer-head {
    display: grid;
    gap: 3px;
}

.submission-answer-head span {
    color: var(--brand-orange);
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.submission-answer-head h4 {
    margin: 0;
    color: var(--brand-navy);
    font-size: 1rem;
}

.submission-answer-card p {
    margin: 0;
    color: var(--ink);
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.submission-image-preview,
.submission-file-link {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.submission-image-preview {
    overflow: hidden;
    width: 100%;
    min-height: 160px;
    border: 1px solid #dfe4f2;
    border-radius: 12px;
    background: #f2f4fa;
    padding: 0;
}

.submission-image-preview img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.submission-file-link {
    justify-self: start;
    border: 1px solid rgba(234, 128, 0, 0.35);
    border-radius: 999px;
    background: #fff7ee;
    color: var(--brand-navy);
    padding: 9px 13px;
    font-weight: 900;
}

.submissions-empty-state {
    display: grid;
    place-items: center;
    min-height: 280px;
    border: 1px dashed #d9deeb;
    border-radius: 18px;
    background: #fbfcff;
    padding: 24px;
    text-align: center;
}

.submissions-empty-state h3 {
    margin: 0;
    color: var(--brand-navy);
}

.submissions-empty-state p {
    max-width: 420px;
    margin: 8px 0 0;
}

@media (max-width: 768px) {
    .forms-signed-page {
        padding:
            calc(18px + env(safe-area-inset-top))
            18px
            calc(18px + env(safe-area-inset-bottom));
    }

    .forms-signed-card {
        padding: 28px 20px 26px;
        border-radius: 22px;
    }

    .forms-signed-logo {
        width: 180px;
        margin-bottom: 22px;
    }

    .forms-signed-card h1 {
        margin-bottom: 14px;
        font-size: 1.5rem;
    }

    .forms-signed-card p {
        font-size: 1rem;
        line-height: 1.45;
    }

    .forms-calendar-connect-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .forms-calendar-connect-actions {
        justify-content: center;
    }
}

@media (max-width: 420px) {
    .forms-signed-card {
        padding: 24px 16px 22px;
    }

    .forms-signed-logo {
        width: 160px;
    }

    .forms-signed-card h1 {
        font-size: 1.25rem;
    }

    .forms-signed-card p {
        font-size: 0.94rem;
    }
}

@media (max-width: 980px) {
    .forms-shell,
    .admin-shell {
        width: min(100% - 24px, 760px);
        padding: 20px 0;
    }

    .forms-hero,
    .forms-layout,
    .admin-top,
    .admin-grid,
    .admin-split,
    .submission-browser,
    .submission-answer-list {
        grid-template-columns: 1fr;
    }

    .submission-index {
        max-height: 360px;
    }

    .submission-summary-grid {
        grid-template-columns: 1fr;
    }

    .forms-hero {
        justify-items: start;
    }

    .forms-page-template-preview .forms-hero {
        justify-items: center;
        padding-top: 56px;
    }

    .forms-page-template-preview .forms-hero .forms-back {
        top: 0;
        transform: none;
    }

    .forms-identity {
        width: 100%;
        justify-content: flex-start;
    }

    .forms-page-portal-signup-form .forms-identity {
        justify-content: center;
    }

    .forms-page-portal-signup-form .forms-shell {
        width: min(100% - 24px, 760px);
        height: auto;
        overflow: visible;
        padding: 18px 0;
    }

    .forms-page-portal-signup-form .forms-layout {
        overflow: visible;
    }

    .forms-page-portal-signup-form .forms-layout-preview-only {
        height: auto;
    }

    .forms-page-portal-signup-form .forms-workspace {
        max-height: none;
        overflow: visible;
        padding: clamp(20px, 5vw, 28px);
    }

    .forms-brand-logo {
        width: min(300px, 72vw);
    }

    .forms-avatar {
        width: 58px;
        height: 58px;
        border-width: 3px;
        flex: 0 0 58px;
    }

    .forms-identity h1 {
        font-size: 2.45rem;
        line-height: 0.94;
    }

    .forms-list-card {
        position: static;
    }

    .forms-account-grid {
        grid-template-columns: 1fr;
    }

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

    .forms-page-portal-signup-form .forms-step-progress {
        display: flex;
        gap: 8px;
        margin-right: calc(clamp(20px, 5vw, 28px) * -1);
        margin-left: calc(clamp(20px, 5vw, 28px) * -1);
        padding: 0 clamp(20px, 5vw, 28px) 6px;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .forms-page-portal-signup-form .forms-step-dot {
        min-width: 136px;
        scroll-snap-align: start;
    }

    .forms-social-toggle {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .forms-social-question {
        width: 100%;
    }

    .forms-social-toggle-options {
        width: 100%;
    }

    .forms-social-toggle label span {
        min-width: 0;
        width: 100%;
    }

    .admin-app-shell {
        display: block;
    }

    .app-sidebar {
        position: static;
        width: 100%;
        padding-bottom: 12px;
    }

    .sidebar-brand {
        max-width: 220px;
    }

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

    .admin-shell {
        margin-left: 0;
    }

    .builder-row,
    .form-grid,
    .form-grid-3 {
        grid-template-columns: 1fr;
    }
}
