:root {
    color-scheme: light;
    --navy: #0c2340;
    --navy-soft: #15385f;
    --red: #cf1f2c;
    --ink: #17202c;
    --muted: #5b6878;
    --line: #dce3eb;
    --surface: #ffffff;
    --background: #f3f6fa;
    --success: #176b43;
    --danger: #a51f2d;
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        radial-gradient(
            circle at top right,
            rgba(207, 31, 44, 0.08),
            transparent 30rem
        ),
        var(--background);
    color: var(--ink);
}

.site-header {
    min-height: 72px;
    padding: 0 5vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.brand {
    text-decoration: none;
    color: var(--navy);
    font-size: 1.55rem;
    font-weight: 750;
    letter-spacing: -0.04em;
}

.brand-t {
    color: var(--red);
    font-weight: 900;
}

.page-shell {
    width: min(1120px, 92vw);
    margin: 0 auto;
    padding: 4rem 0 6rem;
}

.intro-panel {
    max-width: 830px;
    margin-bottom: 2rem;
}

.eyebrow,
.section-label {
    color: var(--red);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1 {
    max-width: 780px;
    margin: 0.5rem 0 1rem;
    color: var(--navy);
    font-size: clamp(2.2rem, 5vw, 4.6rem);
    line-height: 1.02;
    letter-spacing: -0.055em;
}

h2,
h3 {
    color: var(--navy);
}

.intro-copy {
    max-width: 720px;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.7;
}

.workflow {
    margin-top: 1.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.workflow span {
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--navy-soft);
    font-size: 0.88rem;
    font-weight: 700;
}

.card {
    padding: clamp(1.4rem, 4vw, 2.7rem);
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 20px 60px rgba(12, 35, 64, 0.08);
}

#login-panel {
    max-width: 620px;
}

.studio-heading {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.session-user {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    overflow-wrap: anywhere;
}

form {
    display: grid;
    gap: 1.1rem;
}

.grid {
    display: grid;
    gap: 1rem;
}

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

label {
    display: grid;
    gap: 0.45rem;
    color: var(--navy);
    font-size: 0.91rem;
    font-weight: 750;
}

input,
textarea,
select {
    width: 100%;
    padding: 0.85rem 0.9rem;
    border: 1px solid #c9d3df;
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-weight: 450;
}

textarea {
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    outline: 3px solid rgba(207, 31, 44, 0.13);
    border-color: var(--red);
}

button,
.primary-link {
    display: inline-flex;
    width: fit-content;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.15rem;
    border: 0;
    border-radius: 10px;
    background: var(--red);
    color: #fff;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

button:hover,
.primary-link:hover {
    filter: brightness(0.94);
}

button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.secondary {
    background: var(--navy);
}

.form-note,
.status-message {
    color: var(--muted);
    line-height: 1.6;
}

.result-panel {
    margin-top: 1.8rem;
    padding: 1.4rem;
    border: 1px solid rgba(23, 107, 67, 0.3);
    border-radius: 14px;
    background: rgba(23, 107, 67, 0.06);
}

.status-message {
    min-height: 1.5rem;
    margin: 1rem 0 0;
}

.status-message.error {
    color: var(--danger);
}

.status-message.success {
    color: var(--success);
}

.hidden {
    display: none !important;
}

@media (max-width: 760px) {
    .two-columns {
        grid-template-columns: 1fr;
    }

    .studio-heading {
        display: block;
    }

    .site-header {
        padding-inline: 4vw;
    }

    .page-shell {
        padding-top: 2.5rem;
    }
}
