:root {
    --bg: rgb(36 41 60);
    --bg-dark: rgb(54 62 90);
    --accent: rgb(77 88 128);
    --success: rgb(114 181 127);
    --danger: rgb(222 91 73);
    --text: rgb(238 240 247);
    --muted: rgb(131 135 151);
    --hover: rgba(0 0 0 / 0.2);
    --panel: rgba(36 41 60 / 0.9);
    --panel-soft: rgba(59 67 98 / 0.34);
    --line: rgba(131 135 151 / 0.16);
    --line-strong: rgba(131 135 151 / 0.28);
    --input: rgba(30 35 52 / 0.9);
    --radius: 4px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        linear-gradient(rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.22)),
        radial-gradient(circle at top, rgb(77 88 128 / 0.18), transparent 35%),
        var(--bg);
    color: var(--text);
    font-family: Calibri, "Segoe UI", sans-serif;
}

body.application-page {
    padding: 32px 20px 48px;
}

body.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

a:hover {
    color: var(--text);
}

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}

p {
    color: var(--muted);
    line-height: 1.6;
}

.container {
    width: min(900px, calc(100vw - 40px));
    margin: 40px auto;
    padding: 28px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.container-large {
    width: min(1200px, calc(100vw - 40px));
}

.auth-card {
    width: min(460px, calc(100vw - 32px));
    margin: 0;
}

.auth-card__top {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 18px;
}

.auth-card__title {
    margin-bottom: 10px;
    text-align: center;
    font-size: 34px;
    line-height: 1.1;
}

.auth-card__description {
    max-width: 340px;
    margin: 0 auto 22px;
    text-align: center;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.brand-lockup__logo {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(255 255 255 / 0.14);
    background: rgba(255 255 255 / 0.06);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.brand-lockup__copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.brand-lockup__kicker {
    color: rgba(255 255 255 / 0.62);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.brand-lockup__name {
    font: 700 30px/1 "Bahnschrift", Calibri, sans-serif;
    color: var(--text);
}

.brand-lockup__project {
    color: rgba(255 255 255 / 0.74);
    font-size: 14px;
    line-height: 1.4;
}

.brand-lockup--hero {
    margin-bottom: 18px;
}

.brand-lockup--hero .brand-lockup__logo {
    width: 86px;
    height: 86px;
    flex-basis: 86px;
    border-radius: 22px;
}

.brand-lockup--auth {
    flex-direction: column;
    gap: 14px;
    margin-bottom: 22px;
    text-align: center;
}

.brand-lockup--auth .brand-lockup__copy {
    justify-items: center;
}

.brand-lockup--auth .brand-lockup__logo {
    width: 88px;
    height: 88px;
    flex-basis: 88px;
    border-radius: 24px;
}

.brand-lockup--compact .brand-lockup__logo {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
    border-radius: 16px;
}

.brand-lockup--compact .brand-lockup__name {
    font-size: 24px;
}

.page-brand {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 22px;
    padding: 18px;
    border-radius: var(--radius);
    border: 1px solid rgba(255 255 255 / 0.06);
    background:
        linear-gradient(180deg, rgba(77 88 128 / 0.2), rgba(59 67 98 / 0.14)),
        radial-gradient(circle at top right, rgba(255 255 255 / 0.06), transparent 42%);
}

.page-brand__meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.page-brand__tag {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: var(--radius);
    border: 1px solid rgba(255 255 255 / 0.08);
    background: rgba(255 255 255 / 0.04);
    color: rgba(255 255 255 / 0.82);
    font: 600 13px/1 Calibri, "Segoe UI", sans-serif;
}

.header-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.header {
    margin-bottom: 24px;
}

.header h1 {
    margin-bottom: 8px;
    font-size: 34px;
    line-height: 1.08;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

nav a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(77 88 128 / 0.18);
}

nav a:hover {
    background: var(--hover);
}

form {
    display: block;
}

form > button,
form > .btn,
form > a.btn {
    margin-top: 18px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
}

input + label,
textarea + label,
select + label {
    margin-top: 16px;
}

input[type="text"],
input[type="password"],
input[type="url"],
textarea,
select {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--input);
    color: var(--text);
    font: inherit;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

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

input::placeholder,
textarea::placeholder {
    color: rgba(255 255 255 / 0.28);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: rgba(77 88 128 / 0.85);
    box-shadow: 0 0 0 3px rgba(77 88 128 / 0.16);
    background: rgba(30 35 52 / 0.98);
}

button,
.btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid rgba(77 88 128 / 0.42);
    border-radius: var(--radius);
    background: rgba(77 88 128 / 0.26);
    color: var(--text);
    font: 600 14px/1 Calibri, "Segoe UI", sans-serif;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

button:hover,
.btn:hover {
    background: rgba(77 88 128 / 0.38);
    border-color: rgba(77 88 128 / 0.62);
}

button:active,
.btn:active {
    transform: translateY(1px);
}

.btn-secondary {
    background: rgba(255 255 255 / 0.05);
    border-color: var(--line);
}

.btn-secondary:hover {
    background: var(--hover);
}

.btn-primary {
    min-width: 220px;
}

.success-box,
.notice-box,
.error-box,
.status-box,
.header-banner {
    padding: 16px 18px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(59 67 98 / 0.28);
}

.success-box {
    border-left: 4px solid var(--accent);
}

.notice-box {
    margin-bottom: 14px;
    border-left: 4px solid rgba(114 181 127 / 0.9);
    color: rgba(255 255 255 / 0.86);
}

.error-box {
    border-left: 4px solid var(--danger);
}

.status-box {
    margin: 20px 0;
    font-weight: 700;
}

.status-box.status-pending,
.status-pending {
    color: #f4d88d;
}

.status-box.status-approved,
.status-approved {
    color: #93efb2;
}

.status-box.status-rejected,
.status-rejected {
    color: #ff9f92;
}

.id-highlight {
    display: inline-block;
    padding: 10px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(0 0 0 / 0.3);
    color: var(--danger);
    font: 700 24px/1 Consolas, monospace;
    letter-spacing: 0.06em;
}

.info-group {
    display: grid;
    gap: 14px;
}

.info-group p {
    margin: 0;
    padding: 12px 14px;
    border-radius: var(--radius);
    background: rgba(255 255 255 / 0.03);
    border: 1px solid rgba(255 255 255 / 0.05);
    color: var(--text);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.info-group strong {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.status-answer {
    padding: 12px 14px;
    border-radius: var(--radius);
    background: rgba(255 255 255 / 0.03);
    border: 1px solid rgba(255 255 255 / 0.05);
    color: var(--text);
}

.status-answer__title {
    display: block;
    margin-top: 10px;
}

.status-answer__response {
    margin-top: 10px;
    color: var(--text);
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.header-banner,
.status-box,
.admin-app p,
.admin-app h4,
td,
th {
    overflow-wrap: anywhere;
    word-break: break-word;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

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

th {
    background: rgba(255 255 255 / 0.04);
    color: var(--text);
}

.admin-app {
    background: rgba(255 255 255 / 0.04);
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 2px);
}

body.admin-page {
    padding: 32px 20px 48px;
}

.admin-dashboard {
    display: grid;
    gap: 20px;
}

.admin-header {
    display: grid;
    gap: 18px;
}

.admin-header__copy {
    display: grid;
    gap: 8px;
}

.admin-header__copy p {
    max-width: 920px;
    margin-bottom: 0;
}

.admin-eyebrow {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.admin-stat {
    padding: 16px;
    border-radius: var(--radius);
    border: 1px solid rgba(255 255 255 / 0.08);
    background: rgba(59 67 98 / 0.28);
}

.admin-stat span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.admin-stat strong {
    display: block;
    margin-top: 8px;
    font-size: 28px;
    line-height: 1;
}

.admin-empty {
    padding: 24px;
}

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

.admin-card {
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 2px);
    background: rgba(59 67 98 / 0.14);
    overflow: hidden;
}

.admin-card[open] {
    background: rgba(59 67 98 / 0.18);
}

.admin-card__summary {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    list-style: none;
    background:
        linear-gradient(180deg, rgba(77 88 128 / 0.28), rgba(59 67 98 / 0.14));
}

.admin-card__summary::-webkit-details-marker {
    display: none;
}

.admin-card__title {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.admin-card__id {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 52px;
    padding: 0 12px;
    border-radius: var(--radius);
    background: rgba(77 88 128 / 0.3);
    color: var(--text);
    font: 700 15px/1 "Bahnschrift", Calibri, sans-serif;
}

.admin-card__copy {
    min-width: 0;
}

.admin-card__copy h2 {
    margin-bottom: 6px;
    font-size: 24px;
    line-height: 1.1;
}

.admin-card__copy p {
    margin-bottom: 0;
}

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

.admin-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255 255 255 / 0.08);
    background: rgba(59 67 98 / 0.38);
    font: 700 13px/1 Calibri, "Segoe UI", sans-serif;
}

.admin-card__toggle {
    color: var(--muted);
    font-size: 13px;
}

.admin-card__body {
    display: grid;
    gap: 16px;
    padding: 0 20px 20px;
}

.admin-panel {
    padding: 16px;
    border-radius: var(--radius);
    border: 1px solid rgba(255 255 255 / 0.06);
    background: rgba(36 41 60 / 0.48);
}

.admin-panel--actions {
    background: rgba(77 88 128 / 0.18);
    border-color: rgba(77 88 128 / 0.28);
}

.admin-panel__head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255 255 255 / 0.06);
}

.admin-panel__head h3 {
    margin-bottom: 0;
    font-size: 20px;
}

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

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

.admin-summary-item {
    padding: 14px;
    border-radius: var(--radius);
    border: 1px solid rgba(255 255 255 / 0.05);
    background: rgba(59 67 98 / 0.18);
}

.admin-summary-item span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.admin-summary-item strong,
.admin-summary-item a {
    color: var(--text);
    overflow-wrap: anywhere;
    word-break: break-word;
}

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

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

.admin-answer-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius);
    border: 1px solid rgba(255 255 255 / 0.05);
    background: rgba(59 67 98 / 0.16);
}

.admin-answer-item__index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    min-height: 40px;
    border-radius: var(--radius);
    background: rgba(59 67 98 / 0.42);
    color: var(--text);
    font: 700 13px/1 "Bahnschrift", Calibri, sans-serif;
}

.admin-answer-item__body {
    min-width: 0;
}

.admin-answer-item__body strong {
    display: block;
    margin-bottom: 6px;
    color: var(--text);
}

.admin-answer-item__body p {
    margin-bottom: 0;
    color: rgba(255 255 255 / 0.78);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.admin-backstory {
    padding: 14px;
    border-radius: var(--radius);
    border: 1px solid rgba(255 255 255 / 0.05);
    background: rgba(59 67 98 / 0.16);
    color: rgba(255 255 255 / 0.82);
    line-height: 1.7;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.admin-status-form {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.admin-dropdown {
    position: relative;
    width: max-content;
}

.admin-dropdown__toggle {
    min-width: 220px;
    min-height: 46px;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--input);
    color: var(--text);
    box-shadow: none;
    font: 600 14px/1 Calibri, "Segoe UI", sans-serif;
}

.admin-dropdown__toggle:hover {
    background: rgba(59 67 98 / 0.28);
    border-color: rgba(77 88 128 / 0.62);
}

.admin-dropdown__icon {
    width: 12px;
    height: 12px;
    fill: var(--text);
    transition: transform 0.18s ease;
}

.admin-dropdown__toggle[aria-expanded="true"] .admin-dropdown__icon {
    transform: rotate(180deg);
}

.admin-dropdown__menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 1000;
    min-width: 100%;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(24 27 40 / 0.98);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.admin-dropdown__item {
    width: 100%;
    min-height: auto;
    justify-content: flex-start;
    padding: 12px 16px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text);
    box-shadow: none;
    font: 600 14px/1.25 Calibri, "Segoe UI", sans-serif;
}

.admin-dropdown__item:hover,
.admin-dropdown__item.is-selected {
    background: rgba(77 88 128 / 0.26);
    border: 0;
}

.admin-dropdown__item:active {
    transform: none;
}

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

.radio-group label {
    margin: 0;
    font-weight: 400;
}

.question-label {
    margin-bottom: 12px;
    font-size: 15px;
}

.answer-block {
    padding: 16px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(0 0 0 / 0.24);
}

.f4-window {
    width: min(1380px, calc(100vw - 48px));
    margin: 0 auto;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    overflow: hidden;
}

.f4-tabs {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(54 62 90 / 0.72);
    border-bottom: 1px solid rgba(255 255 255 / 0.06);
    flex-wrap: wrap;
}

.f4-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: var(--radius);
    color: var(--muted);
    font: 600 15px/1 "Bahnschrift", Calibri, sans-serif;
}

.f4-tab:hover {
    background: var(--hover);
    color: var(--text);
}

.f4-tab.is-active {
    background: rgba(77 88 128 / 0.36);
    color: var(--text);
}

.f4-tab.is-active::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -8px;
    width: 32px;
    height: 6px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: white;
    opacity: 0.9;
}

.f4-card {
    background: rgba(59 67 98 / 0.24);
    border: 1px solid rgba(255 255 255 / 0.06);
    border-radius: var(--radius);
    padding: 16px;
}

.f4-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(255 255 255 / 0.08);
    border-radius: var(--radius);
    background: rgba(77 88 128 / 0.22);
    color: var(--text);
    font: 600 13px/1 Calibri, "Segoe UI", sans-serif;
    letter-spacing: 0.03em;
}

.f4-chip.is-danger {
    border-color: rgba(222 91 73 / 0.4);
    background: rgba(222 91 73 / 0.12);
}

.f4-badge {
    display: inline-flex;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--danger);
    color: white;
    font: 700 12px/1 Arial, sans-serif;
}

.goo-defs {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
}

.goo-control {
    position: relative;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
}

.goo-control__outline,
.goo-control__bubble {
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

.goo-control__outline {
    border: 2px solid rgba(255 255 255 / 0.34);
    transition: border-color 0.18s ease, transform 0.18s ease;
}

.goo-control__bubble {
    background: transparent;
    filter: url("#goo-accent");
    transform: translate3d(0, 0, 0);
}

.goo-control__icon {
    position: absolute;
    top: 5px;
    left: 4px;
    z-index: 1;
    pointer-events: none;
}

.goo-control__icon path {
    stroke: #fff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 19;
    stroke-dashoffset: 19;
    transition: stroke-dashoffset 0.3s ease;
    transition-delay: 0.18s;
}

.application-window {
    min-height: calc(100vh - 80px);
}

.application-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.95fr);
    gap: 24px;
    padding: 30px 32px 26px;
    background:
        linear-gradient(180deg, rgba(77 88 128 / 0.22), rgba(59 67 98 / 0.16)),
        radial-gradient(circle at top right, rgba(77 88 128 / 0.18), transparent 46%);
    border-bottom: 1px solid rgba(255 255 255 / 0.06);
}

.application-hero__chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.application-title {
    margin-bottom: 12px;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 0.98;
    letter-spacing: 0.02em;
}

.application-lead {
    max-width: 760px;
    margin-bottom: 0;
    font-size: 16px;
    color: rgba(255 255 255 / 0.78);
}

.application-hero__stats {
    display: grid;
    gap: 12px;
}

.hero-stat {
    display: grid;
    gap: 4px;
    padding: 16px;
    border-radius: var(--radius);
    border: 1px solid rgba(255 255 255 / 0.08);
    background: rgba(54 62 90 / 0.42);
}

.hero-stat strong {
    font-size: 28px;
    line-height: 1;
}

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

.hero-stat__hint {
    color: rgba(255 255 255 / 0.7);
    font-size: 13px;
}

.application-tabs {
    padding-inline: 24px;
}

.application-shell {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 22px;
    padding: 24px;
    align-items: start;
}

.application-sidebar {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-card {
    display: grid;
    gap: 14px;
}

.sidebar-card__header {
    display: grid;
    gap: 6px;
}

.sidebar-card__header h2 {
    margin-bottom: 0;
    font-size: 20px;
}

.sidebar-card__eyebrow {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sidebar-card--accent {
    background: rgba(77 88 128 / 0.24);
    border-color: rgba(77 88 128 / 0.34);
}

.sidebar-card--warning {
    background: rgba(222 91 73 / 0.08);
    border-color: rgba(222 91 73 / 0.22);
}

.sidebar-card__text {
    margin-bottom: 0;
}

.section-link {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius);
    background: rgba(59 67 98 / 0.18);
    border: 1px solid rgba(255 255 255 / 0.05);
}

.section-link:hover {
    background: var(--hover);
}

.section-link__index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius);
    background: rgba(77 88 128 / 0.28);
    color: var(--text);
    font: 700 13px/1 "Bahnschrift", Calibri, sans-serif;
}

.section-link__copy {
    display: grid;
    gap: 4px;
}

.section-link__copy strong {
    font-size: 14px;
}

.section-link__copy small {
    color: var(--muted);
    line-height: 1.35;
}

.sidebar-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 18px;
    color: rgba(255 255 255 / 0.76);
}

.sidebar-list li {
    line-height: 1.5;
}

.application-form {
    display: grid;
    gap: 20px;
}

.application-section {
    padding: 24px;
    border-radius: calc(var(--radius) + 2px);
    background: rgba(59 67 98 / 0.18);
    border: 1px solid rgba(255 255 255 / 0.06);
    scroll-margin-top: 110px;
}

.section-head {
    margin-bottom: 20px;
}

.section-head h2 {
    margin-bottom: 8px;
    font-size: 28px;
}

.section-head p {
    margin-bottom: 0;
}

.section-head__eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.intro-banner {
    margin-bottom: 18px;
    background:
        linear-gradient(90deg, rgba(77 88 128 / 0.24), rgba(59 67 98 / 0.12));
}

.intro-banner__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 18px;
}

.intro-banner p {
    margin-bottom: 0;
}

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

.field-group {
    display: grid;
}

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

.field-hint {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

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

.segment-option {
    position: relative;
    display: block;
}

.segment-option__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.segment-option__body {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    min-height: 132px;
    padding: 16px;
    border-radius: var(--radius);
    border: 1px solid rgba(255 255 255 / 0.08);
    background: rgba(59 67 98 / 0.18);
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.segment-option:hover .segment-option__body {
    background: var(--hover);
    transform: translateY(-1px);
}

.segment-option__input:checked + .segment-option__body {
    border-color: rgba(77 88 128 / 0.65);
    background: rgba(77 88 128 / 0.3);
    box-shadow: inset 0 0 0 1px rgba(77 88 128 / 0.3);
}

.segment-option__input:checked + .segment-option__body .goo-control__outline,
.choice-option__input:checked + .choice-option__body .goo-control__outline {
    border-color: rgba(114 181 127 / 0.86);
}

.segment-option__input:checked + .segment-option__body .goo-control__bubble,
.choice-option__input:checked + .choice-option__body .goo-control__bubble {
    animation: splash-accent 0.6s ease forwards;
}

.segment-option__input:checked + .segment-option__body .goo-control__icon path,
.choice-option__input:checked + .choice-option__body .goo-control__icon path {
    stroke-dashoffset: 0;
}

.segment-option__title {
    color: var(--text);
    font: 700 17px/1.2 "Bahnschrift", Calibri, sans-serif;
}

.segment-option__content {
    display: grid;
    gap: 8px;
}

.segment-option__text {
    color: var(--muted);
    line-height: 1.5;
    font-size: 14px;
}

.question-stack {
    display: grid;
    gap: 16px;
}

.question-card {
    padding: 18px;
    border-radius: var(--radius);
    border: 1px solid rgba(255 255 255 / 0.08);
    background: rgba(36 41 60 / 0.48);
}

.question-card__head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.question-card__head h3 {
    margin-bottom: 0;
    font-size: 19px;
    line-height: 1.45;
}

.question-card__category {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.question-card__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(59 67 98 / 0.54);
    color: var(--text);
    font: 700 13px/1 "Bahnschrift", Calibri, sans-serif;
}

.question-card__note {
    margin-bottom: 14px;
    color: rgba(255 255 255 / 0.72);
}

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

.choice-option {
    position: relative;
    display: block;
}

.choice-option__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice-option__body {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 14px 16px;
    border-radius: var(--radius);
    border: 1px solid rgba(255 255 255 / 0.08);
    background: rgba(59 67 98 / 0.16);
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.choice-option:hover .choice-option__body {
    background: var(--hover);
    transform: translateY(-1px);
}

.choice-option__input:checked + .choice-option__body {
    border-color: rgba(77 88 128 / 0.65);
    background: rgba(77 88 128 / 0.26);
    box-shadow: inset 0 0 0 1px rgba(77 88 128 / 0.28);
}

.choice-option__copy {
    display: block;
    color: rgba(255 255 255 / 0.84);
    line-height: 1.45;
}

@keyframes splash-accent {
    40% {
        background: var(--success);
        box-shadow:
            0 -16px 0 -8px var(--success),
            14px -7px 0 -8px var(--success),
            14px 7px 0 -8px var(--success),
            0 16px 0 -8px var(--success),
            -14px 7px 0 -8px var(--success),
            -14px -7px 0 -8px var(--success);
    }
    100% {
        background: var(--success);
        box-shadow:
            0 -30px 0 -10px transparent,
            26px -13px 0 -10px transparent,
            26px 13px 0 -10px transparent,
            0 30px 0 -10px transparent,
            -26px 13px 0 -10px transparent,
            -26px -13px 0 -10px transparent;
    }
}

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

.writing-tip {
    display: grid;
    gap: 8px;
}

.writing-tip__label {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.writing-tip strong {
    font-size: 20px;
    line-height: 1.2;
}

.writing-tip p {
    margin-bottom: 0;
}

.backstory-field textarea {
    min-height: 320px;
}

.word-counter.is-good {
    color: var(--accent);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 4px;
}

.submit-note {
    max-width: 560px;
    color: var(--muted);
    line-height: 1.5;
}

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

@media (max-width: 1180px) {
    .application-shell {
        grid-template-columns: 1fr;
    }

    .application-sidebar {
        position: static;
        order: 1;
    }
}

@media (max-width: 960px) {
    body.admin-page {
        padding-inline: 12px;
    }

    body.application-page {
        padding-inline: 12px;
    }

    .page-brand {
        flex-direction: column;
    }

    .page-brand__meta {
        justify-content: flex-start;
    }

    .f4-window {
        width: min(100%, calc(100vw - 24px));
    }

    .application-hero {
        grid-template-columns: 1fr;
        padding: 24px 20px 22px;
    }

    .application-tabs {
        padding-inline: 12px;
    }

    .application-shell {
        padding: 16px;
    }

    .form-grid,
    .segment-grid,
    .writing-grid,
    .admin-stats,
    .admin-summary-grid,
    .admin-sections-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100%, calc(100vw - 24px));
        padding: 20px;
        margin: 20px auto;
    }

    .application-title {
        font-size: 30px;
    }

    .brand-lockup {
        align-items: flex-start;
    }

    .brand-lockup__logo {
        width: 62px;
        height: 62px;
        flex-basis: 62px;
    }

    .brand-lockup__name {
        font-size: 24px;
    }

    .brand-lockup--hero .brand-lockup__logo,
    .brand-lockup--auth .brand-lockup__logo {
        width: 72px;
        height: 72px;
        flex-basis: 72px;
    }

    .application-section {
        padding: 18px;
    }

    .question-card__head {
        flex-direction: column;
    }

    .question-card__number {
        width: fit-content;
    }

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

    .form-actions__buttons {
        width: 100%;
    }

    .form-actions__buttons .btn,
    .form-actions__buttons button {
        width: 100%;
    }

    .admin-card__summary,
    .admin-panel__head,
    .admin-status-form {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-card__meta {
        justify-content: flex-start;
    }

    .admin-answer-item {
        grid-template-columns: 1fr;
    }

    .admin-answer-item__index {
        width: fit-content;
    }

    .admin-dropdown,
    .admin-dropdown__toggle {
        width: 100%;
    }

    .header-actions {
        flex-direction: column;
    }

    .header-actions .btn {
        width: 100%;
    }
}
