:root {
    --bg: #f5f5f7;
    --bg-elevated: #ffffff;
    --bg-muted: #fbfbfd;
    --bg-tint: rgba(255, 255, 255, 0.72);
    --ink: #1d1d1f;
    --ink-soft: #424245;
    --muted: #6e6e73;
    --line: rgba(29, 29, 31, 0.08);
    --line-strong: rgba(29, 29, 31, 0.14);
    --accent: #0071e3;
    --accent-strong: #0066cc;
    --accent-soft: rgba(0, 113, 227, 0.1);
    --success-bg: #e8f3ec;
    --success-ink: #215e36;
    --error-bg: #fff0f0;
    --error-ink: #b42318;
    --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 18px 44px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 30px 72px rgba(0, 0, 0, 0.12);
    --radius-xs: 12px;
    --radius-sm: 18px;
    --radius-md: 24px;
    --radius-lg: 32px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.47059;
    letter-spacing: -0.022em;
    color: var(--ink);
    background:
        radial-gradient(circle at top center, rgba(0, 113, 227, 0.07), transparent 24rem),
        linear-gradient(180deg, #fbfbfd 0%, var(--bg) 32%, #f2f2f5 100%);
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--accent-strong);
}

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

button {
    letter-spacing: inherit;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 76px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    min-width: 54px;
    min-height: 32px;
    padding: 0 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(29, 29, 31, 0.06);
    color: var(--ink-soft);
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: 180ms ease;
}

.password-toggle:hover {
    background: rgba(29, 29, 31, 0.1);
    color: var(--ink);
}

.page-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 64px;
}

.page-shell-auth {
    padding-top: 104px;
}

.content,
.stack,
.hero,
.grid-panels,
.grid-two,
.section-header,
.actions {
    display: grid;
    gap: 24px;
}

.content {
    gap: 28px;
}

.single-column {
    display: flex;
    justify-content: center;
}

.single-column .card {
    width: min(760px, 100%);
}

.topbar,
.appbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: saturate(180%) blur(20px);
    background: rgba(251, 251, 253, 0.82);
    border-bottom: 1px solid rgba(29, 29, 31, 0.06);
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0 24px;
    margin-bottom: 8px;
    background: transparent;
    border-bottom: 0;
    position: static;
    backdrop-filter: none;
}

.appbar {
    left: 0;
    right: 0;
}

.appbar-inner {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 72px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
}

.brand,
.appbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--ink);
}

.brand {
    font-size: 1.15rem;
    font-weight: 600;
}

.brand-with-logo {
    gap: 12px;
}

.brand-logo {
    display: block;
    object-fit: contain;
}

.brand-logo-appbar {
    width: 48px;
    height: auto;
}

.brand-logo-topbar {
    width: 150px;
    height: auto;
}

.appbar-brand strong,
.appbar-user span {
    display: block;
    font-size: 0.95rem;
    line-height: 1.2;
    font-weight: 600;
    color: var(--ink);
}

.appbar-brand small,
.appbar-user small {
    display: block;
    margin-top: 2px;
    font-size: 0.76rem;
    line-height: 1.2;
    color: var(--muted);
}

.appbar-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(180deg, #111111, #3a3a3c);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.landing-logo {
    width: min(320px, 100%);
    height: auto;
}

.auth-brand,
.public-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.public-brand-inline {
    justify-content: flex-start;
    margin-bottom: 14px;
}

.auth-brand-logo,
.public-brand-logo {
    width: min(260px, 100%);
    height: auto;
}

.public-brand-logo-compact {
    width: 190px;
}

.topbar-links,
.appbar-nav,
.appbar-tools,
.actions-inline,
.table-actions,
.modal-actions,
.question-card-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.appbar-nav {
    justify-content: center;
    gap: 8px;
}

.appbar-nav a,
.appbar-logout,
.link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--ink-soft);
    transition: 180ms ease;
    cursor: pointer;
}

.appbar-nav a:hover,
.appbar-logout:hover,
.link-button:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--ink);
}

.appbar-nav a.is-active {
    background: rgba(29, 29, 31, 0.9);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.appbar-user {
    text-align: right;
}

.appbar-profile {
    position: relative;
}

.appbar-profile-trigger {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid rgba(29, 29, 31, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
    color: var(--ink);
    cursor: pointer;
    transition: 180ms ease;
}

.appbar-profile-trigger:hover {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(29, 29, 31, 0.12);
}

.appbar-profile-trigger[aria-expanded="true"] {
    box-shadow: var(--shadow-sm);
    border-color: rgba(29, 29, 31, 0.14);
}

.appbar-profile-caret {
    font-size: 0.78rem;
    color: var(--muted);
}

.appbar-profile-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(280px, calc(100vw - 32px));
    padding: 10px;
    border: 1px solid rgba(29, 29, 31, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: saturate(180%) blur(24px);
    box-shadow: var(--shadow-md);
}

.appbar-profile-summary {
    padding: 12px 14px;
}

.appbar-profile-summary strong,
.appbar-profile-summary small {
    display: block;
}

.appbar-profile-summary strong {
    font-size: 0.96rem;
    line-height: 1.25;
}

.appbar-profile-summary small {
    margin-top: 4px;
    color: var(--muted);
}

.appbar-profile-link {
    width: 100%;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    transition: 180ms ease;
}

.appbar-profile-link:hover {
    background: rgba(29, 29, 31, 0.05);
}

.appbar-profile-link-danger {
    color: #d92d20;
}

.appbar-profile-link-danger:hover {
    background: rgba(217, 45, 32, 0.08);
}

.appbar-logout {
    border-color: var(--line);
}

.hero {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: stretch;
}

.hero > div:first-child,
.hero .card {
    min-height: 100%;
}

.section-header {
    grid-template-columns: 1fr auto;
    align-items: end;
}

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

.card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.36), transparent 34%);
    pointer-events: none;
}

.accent-card {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 32%),
        linear-gradient(180deg, #0b84ff 0%, #005ecb 100%);
    color: #fff;
}

.accent-card .muted,
.accent-card .lead,
.accent-card p,
.accent-card li,
.accent-card h2 {
    color: rgba(255, 255, 255, 0.92);
}

.landing-hero,
.landing-steps,
.landing-sections,
.landing-process {
    display: grid;
    gap: 24px;
}

.landing-hero {
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    min-height: 66vh;
    padding: 24px 0 12px;
}

.landing-hero-copy {
    display: grid;
    gap: 24px;
}

.landing-hero-copy .lead {
    max-width: 60ch;
}

.landing-hero-visual {
    position: relative;
    display: grid;
    gap: 16px;
    padding: 20px;
    border-radius: 36px;
    background:
        radial-gradient(circle at top left, rgba(11, 132, 255, 0.2), transparent 38%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.58));
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-md);
}

.landing-preview-card {
    position: relative;
    overflow: hidden;
    padding: 24px;
    border-radius: 26px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-sm);
}

.landing-preview-card span,
.landing-step-number {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.landing-preview-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.25rem;
    line-height: 1.16;
    letter-spacing: -0.03em;
}

.landing-preview-card p {
    margin-bottom: 0;
    color: var(--ink-soft);
}

.landing-preview-card-primary {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 40%),
        linear-gradient(180deg, #0b84ff 0%, #005ecb 100%);
    border-color: rgba(255, 255, 255, 0.18);
}

.landing-preview-card-primary span,
.landing-preview-card-primary strong,
.landing-preview-card-primary p {
    color: rgba(255, 255, 255, 0.94);
}

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

.landing-step {
    display: grid;
    gap: 10px;
}

.landing-step h3 {
    margin-bottom: 0;
}

.landing-step p {
    margin-bottom: 0;
}

.landing-cta {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
}

.eyebrow {
    margin: 0 0 10px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

h1,
h2,
h3,
p,
ul,
ol,
dl {
    margin-top: 0;
}

h1 {
    margin-bottom: 12px;
    font-size: clamp(2.5rem, 5vw, 4.6rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
    font-weight: 600;
}

h2 {
    margin-bottom: 14px;
    font-size: clamp(1.6rem, 2vw, 2rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
    font-weight: 600;
}

h3 {
    margin-bottom: 10px;
    font-size: 1.15rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
    font-weight: 600;
}

p,
li,
dd,
dt,
input,
textarea,
select,
button {
    font-size: 1rem;
}

.lead {
    font-size: 1.25rem;
    line-height: 1.38;
    color: var(--ink-soft);
    max-width: 55ch;
}

.muted,
.question-copy p,
.note-box p,
.question-preview p {
    color: var(--muted);
}

.plain-list {
    padding-left: 20px;
    margin-bottom: 0;
}

.plain-list li {
    margin-bottom: 10px;
}

.numbered {
    list-style: decimal;
}

.button,
button.button,
.table-action-pill,
.danger-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 999px;
    border: 0;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.button,
button.button {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 10px 24px rgba(0, 113, 227, 0.2);
}

.button:hover,
button.button:hover {
    background: var(--accent-strong);
    transform: translateY(-1px);
}

.button:disabled,
button.button:disabled,
button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

.button.secondary,
.table-action-pill-secondary {
    background: rgba(0, 0, 0, 0.04);
    color: var(--ink);
    box-shadow: none;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.button.secondary:hover,
.table-action-pill-secondary:hover {
    background: rgba(0, 0, 0, 0.07);
}

.table-action-pill {
    min-height: 36px;
    padding: 0 16px;
    background: rgba(0, 113, 227, 0.1);
    color: var(--accent);
    box-shadow: none;
}

.table-action-pill:hover {
    background: rgba(0, 113, 227, 0.16);
    color: var(--accent-strong);
    transform: none;
}

.danger-button {
    background: rgba(191, 53, 51, 0.1);
    color: #bf3533;
    border: 1px solid rgba(191, 53, 51, 0.14);
    box-shadow: none;
}

.danger-button:hover {
    background: rgba(191, 53, 51, 0.15);
    transform: none;
}

label {
    display: grid;
    gap: 10px;
    color: var(--ink-soft);
}

label > span,
legend {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink);
}

fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

input,
textarea,
select {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.84);
    color: var(--ink);
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: rgba(0, 113, 227, 0.4);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
    background: #fff;
}

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

.inline-check input,
.radio-card input,
.check-card input {
    width: auto;
    min-height: auto;
    padding: 0;
    margin: 0;
}

.top-gap {
    margin-top: 34px;
}

.flash {
    border-radius: 18px;
    padding: 16px 18px;
    box-shadow: var(--shadow-sm);
}

.flash.success {
    background: var(--success-bg);
    color: var(--success-ink);
}

.flash.error {
    background: var(--error-bg);
    color: var(--error-ink);
}

.error-text {
    color: var(--error-ink);
    font-size: 0.88rem;
}

.required-indicator {
    color: #d92d20;
    font-weight: 700;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.75);
}

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

thead th {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.9);
}

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

tbody tr:hover {
    background: rgba(255, 255, 255, 0.48);
}

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

.text-right {
    text-align: right;
}

.table-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.table-pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.88);
    color: var(--ink);
}

.table-pagination-link.is-disabled {
    opacity: 0.45;
}

.table-pagination-meta {
    color: var(--muted);
    font-size: 0.92rem;
}

.link-copy-group {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
}

.link-copy-group a {
    word-break: break-all;
}

.icon-button-copy {
    flex: 0 0 auto;
    font-size: 0.92rem;
}

.copy-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1400;
    min-width: 220px;
    max-width: min(360px, calc(100vw - 32px));
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(29, 29, 31, 0.94);
    color: #fff;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.copy-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 500;
}

.status-draft {
    background: rgba(110, 110, 115, 0.1);
    color: var(--muted);
}

.status-published {
    background: rgba(52, 199, 89, 0.14);
    color: #107c41;
}

.status-closed {
    background: rgba(255, 59, 48, 0.12);
    color: #c1271a;
}

.detail-tabs-card {
    padding: 18px;
}

.detail-tabs {
    display: grid;
    gap: 18px;
}

.detail-tabs-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(29, 29, 31, 0.05);
    border: 1px solid var(--line);
    width: fit-content;
}

.detail-tab {
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: 180ms ease;
}

.detail-tab:hover {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.58);
}

.detail-tab.is-active {
    background: #ffffff;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}

.detail-tab-panel {
    display: grid;
    gap: 24px;
}

.detail-tab-panel > .card {
    box-shadow: none;
}

.report-layout,
.report-chart-list,
.report-note-list {
    display: grid;
    gap: 24px;
}

.report-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: end;
}

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

.report-metric-card {
    padding: 24px 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow-sm);
}

.report-metric-card span {
    display: block;
    margin-bottom: 12px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.report-metric-card strong {
    display: block;
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

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

.report-bar-row {
    display: grid;
    gap: 10px;
}

.report-bar-copy strong,
.report-note strong {
    display: block;
    margin-bottom: 4px;
}

.report-bar-copy small,
.report-note small {
    color: var(--muted);
}

.report-bar-track {
    height: 12px;
    border-radius: 999px;
    background: rgba(29, 29, 31, 0.08);
    overflow: hidden;
}

.report-bar-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #0b84ff 0%, #005ecb 100%);
}

.report-bar-fill-soft {
    background: linear-gradient(90deg, #63a6ff 0%, #0b84ff 100%);
}

.report-bar-fill-neutral {
    background: linear-gradient(90deg, #8c8c92 0%, #52525a 100%);
}

.report-bar-fill-excellent {
    background: linear-gradient(90deg, #20c56f 0%, #107c41 100%);
}

.report-bar-fill-strong {
    background: linear-gradient(90deg, #53aef9 0%, #0b84ff 100%);
}

.report-bar-fill-moderate {
    background: linear-gradient(90deg, #ffb347 0%, #f28b12 100%);
}

.report-bar-fill-weak {
    background: linear-gradient(90deg, #ff7b72 0%, #d92d20 100%);
}

.report-deductions {
    margin-bottom: 0;
}

.report-note-list {
    gap: 0;
}

.report-note {
    padding: 16px 0;
    border-top: 1px solid var(--line);
}

.report-note:first-child {
    padding-top: 0;
    border-top: 0;
}

.report-note p {
    margin: 8px 0 0;
}

.permalink-value-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.success-text {
    color: var(--success-ink);
    font-size: 0.88rem;
}

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

.summary-list div {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 12px;
    align-items: start;
}

.summary-list dt {
    color: var(--muted);
    font-weight: 500;
}

.form-summary {
    display: grid;
    gap: 22px;
}

.form-summary-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.form-summary-head .eyebrow {
    margin-bottom: 8px;
}

.form-summary-head h2 {
    margin-bottom: 0;
}

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

.form-summary-metric,
.form-summary-panel,
.form-summary-item {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.74);
}

.form-summary-metric {
    padding: 18px 20px;
}

.form-summary-metric span,
.form-summary-item dt {
    display: block;
    margin-bottom: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.form-summary-metric strong {
    display: block;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1;
    letter-spacing: -0.04em;
    font-weight: 600;
    color: var(--ink);
}

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

.form-summary-item {
    margin: 0;
    padding: 18px 20px;
}

.form-summary-item dd {
    margin: 0;
    color: var(--ink);
    font-weight: 500;
    line-height: 1.4;
}

.form-summary-item code {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(29, 29, 31, 0.06);
    font-size: 0.84rem;
}

.form-summary-panel {
    padding: 22px 24px;
}

.form-summary-panel h3 {
    margin-bottom: 10px;
}

.form-summary-panel p {
    margin-bottom: 0;
}

.vendor-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.vendor-pill {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(0, 113, 227, 0.08);
    color: var(--accent-strong);
    font-size: 0.92rem;
    font-weight: 500;
}

.vendor-pill-muted {
    background: rgba(29, 29, 31, 0.06);
    color: var(--muted);
}

.note-box,
.question-block,
.question-editor-card,
.check-card,
.radio-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.82);
}

.note-box,
.question-block,
.question-editor-card {
    padding: 20px;
}

.question-block {
    display: grid;
    gap: 18px;
}

.question-builder-form,
.question-manager,
.question-sort-row {
    display: grid;
    gap: 16px;
}

.question-editor-card {
    gap: 16px;
    box-shadow: var(--shadow-sm);
}

.question-editor-head,
.question-editor-title,
.question-card-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.question-editor-head {
    justify-content: space-between;
}

.question-preview h3 {
    margin-bottom: 6px;
}

.question-sort-row.is-dragging {
    opacity: 0.56;
}

.drag-handle,
.icon-button {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.88);
    color: var(--muted);
    cursor: pointer;
}

.drag-handle {
    font-weight: 600;
    letter-spacing: 0.08em;
    cursor: grab;
}

.drag-handle:active {
    cursor: grabbing;
}

.icon-button {
    font-size: 1rem;
    color: var(--ink);
}

.icon-button:hover,
.drag-handle:hover {
    background: rgba(0, 0, 0, 0.04);
}

.check-grid,
.rating-grid {
    display: grid;
    gap: 12px;
}

.check-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.rating-grid {
    grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
}

.check-card,
.radio-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
}

.check-card:hover,
.radio-card:hover {
    border-color: var(--line-strong);
    background: #fff;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(29, 29, 31, 0.28);
    backdrop-filter: blur(16px);
}

.modal-card {
    width: min(560px, 100%);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 28px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
}

@media (max-width: 960px) {
    .hero,
    .grid-panels,
    .grid-two,
    .section-header {
        grid-template-columns: 1fr;
    }

    .landing-hero,
    .landing-steps,
    .landing-cta {
        grid-template-columns: 1fr;
    }

    .section-header {
        align-items: start;
    }

    .summary-list div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .form-summary-metrics,
    .form-summary-grid,
    .report-metrics,
    .report-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    body {
        font-size: 16px;
    }

    .page-shell {
        width: min(100% - 24px, 1120px);
        padding-bottom: 40px;
    }

    .page-shell-auth {
        padding-top: 128px;
    }

    .appbar-inner {
        width: min(100% - 24px, 1120px);
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 10px 0;
    }

    .appbar-nav {
        justify-content: flex-start;
    }

    .appbar-tools {
        justify-content: space-between;
    }

    .appbar-user {
        text-align: left;
    }

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

    .landing-hero {
        min-height: auto;
        padding-top: 8px;
    }

    .detail-tabs-nav {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .detail-tab {
        width: 100%;
    }

    .report-hero {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .form-summary-head {
        flex-direction: column;
        align-items: stretch;
    }

    .card,
    .modal-card {
        padding: 24px;
        border-radius: 24px;
    }

    h1 {
        font-size: clamp(2.25rem, 9vw, 3.5rem);
    }

    .lead {
        font-size: 1.1rem;
    }
}
