:root {
    --bs-body-font-size: var(--body-font-size);
    --ink: #071733;
    --muted: #667085;
    --line: #e8eaf1;
    --surface: #ffffff;
    --soft: #fbf7f8;
    --red: #ef4444;
    --red-soft: #fff0f0;
    --violet: #7c3aed;
    --violet-soft: #f2ebff;
    --blue: #2684c7;
    --green: #20b26b;
    --yellow: #f6a027;
    --pink: #f472b6;
}

html,
body {
    min-height: 100%;
    margin: 0;
    color: var(--ink);
    background: linear-gradient(135deg, #fff7f5 0%, #f9fbff 45%, #f7f1ff 100%);
    font-family: var(--text-font-family);
}

body {
    font-size: var(--body-font-size);
}

a {
    color: inherit;
    text-decoration: none;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.page {
    min-height: 100vh;
}

.shell {
    padding: 28px clamp(18px, 4vw, 48px) 56px;
}

.content {
    max-width: 1320px;
    margin: 0 auto;
}

.content:has(.admin-page) {
    max-width: 1760px;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px clamp(18px, 4vw, 48px);
    background: rgba(255, 255, 255, 0.76);
    border-bottom: 1px solid rgba(232, 234, 241, 0.8);
    backdrop-filter: blur(18px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand,
.nav-actions,
.question-actions,
.action-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand {
    font-weight: 800;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: block;
    flex: 0 0 auto;
    border-radius: 8px;
    object-fit: contain;
}

.nav-actions {
    flex: 1;
    flex-wrap: wrap;
    justify-content: space-between;
}

.nav-tabs,
.nav-account {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.nav-account {
    justify-content: flex-end;
    margin-left: auto;
}

.nav-actions a,
.nav-tabs a,
.nav-account a {
    color: #475467;
    font-weight: 700;
}

.nav-actions a.active,
.nav-tabs a.active {
    color: var(--violet);
}

.nav-user-menu {
    position: relative;
}

.nav-user-menu summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #475467;
    font-weight: 800;
    list-style: none;
    cursor: pointer;
}

.nav-user-menu summary::-webkit-details-marker {
    display: none;
}

.avatar {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: white;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--blue), var(--violet));
    font-size: 0.82rem;
    font-weight: 900;
}

.nav-user-name {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 20;
    min-width: 160px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: 0 18px 50px rgba(35, 24, 74, 0.14);
}

.nav-user-dropdown a,
.nav-user-dropdown button {
    display: block;
    width: 100%;
    padding: 10px 12px;
    color: #475467;
    border: 0;
    border-radius: 8px;
    background: transparent;
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.nav-user-dropdown a:hover,
.nav-user-dropdown button:hover {
    background: #f8f5ff;
}

.eyebrow {
    color: var(--red);
    text-transform: uppercase;
}

.invite-modal,
.table-panel,
.stat-tile,
.access-card,
.complete-card,
.priority-card,
.options-card,
.empty-state {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 60px rgba(35, 24, 74, 0.08);
}

.pill,
.result-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 4px 12px;
    color: white;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.pdf-view-indicator {
    position: relative;
    display: inline-flex;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    border: 2px solid #344054;
    border-radius: 999px;
    background: #ffffff;
}

.pdf-view-indicator::after {
    content: "";
    position: absolute;
    right: -4px;
    bottom: -3px;
    width: 8px;
    height: 2px;
    border-radius: 999px;
    background: #344054;
    transform: rotate(45deg);
    transform-origin: center;
}

.red {
    background: var(--red);
}

.blue {
    background: var(--blue);
}

.green {
    background: var(--green);
}

.violet {
    background: var(--violet);
}

.drop-slot {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    margin-bottom: 10px;
    padding: 10px 14px;
    border: 2px dashed #d9d8ff;
    border-radius: 8px;
    color: #94a3b8;
    background: #fff;
}

.drop-slot.drop-target {
    border-color: #7c3aed;
    background: #f5efff;
    box-shadow: inset 0 0 0 1px #b79af7, 0 0 0 3px rgba(124, 58, 237, 0.15);
    transition: border-color 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease;
}

.option-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    margin-top: 10px;
    padding: 12px 18px;
    color: var(--ink);
    border: 2px dashed #d8c7ff;
    border-radius: 8px;
    background: white;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 8px;
    font-weight: 900;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.button:disabled {
    color: #c8ccd8;
    background: #eceef4;
    cursor: not-allowed;
}

.button.primary {
    color: white;
    background: linear-gradient(135deg, var(--red), var(--violet));
}

.button.secondary {
    color: #667085;
    background: white;
    border: 1px solid var(--line);
}

.button.small-button {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.82rem;
}

.button.primary:disabled,
.button.secondary:disabled {
    color: #a4acba;
    background: #eceef4;
    border-color: #eceef4;
    cursor: not-allowed;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.admin-grid {
    display: grid;
    gap: clamp(20px, 2vw, 36px);
}

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

.stat-tile {
    display: grid;
    gap: 8px;
    min-height: 124px;
    padding: clamp(18px, 2vw, 26px);
}

.stat-tile span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.stat-tile strong {
    color: var(--ink);
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1;
}

.invite-panel-header,
.table-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.invite-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 16px;
    align-items: start;
}

.invite-form-row .button {
    align-self: end;
    width: fit-content;
    min-width: 220px;
}

.invite-modal label {
    display: grid;
    gap: 8px;
    color: #344054;
    font-weight: 800;
}

.input {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    color: var(--ink);
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: white;
}

.search-input {
    width: min(280px, 100%);
}

.textarea-input {
    min-height: 130px;
    resize: vertical;
}

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

.wide-modal {
    width: min(1100px, 100%);
}

.profile-logo-preview {
    max-width: 160px;
    max-height: 90px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 10px !important;
    min-height: 46px;
    margin-top: 26px;
}

.switch-label {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #344054;
    font-weight: 800;
    white-space: nowrap;
}

.switch-label input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.switch-track {
    position: relative;
    width: 46px;
    height: 26px;
    border-radius: 999px;
    background: #d0d5dd;
    transition: background-color 0.16s ease;
}

.switch-track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: white;
    box-shadow: 0 1px 4px rgba(7, 23, 51, 0.22);
    transition: transform 0.16s ease;
}

.switch-label input:checked + .switch-track {
    background: var(--violet);
}

.switch-label input:checked + .switch-track::after {
    transform: translateX(20px);
}

.checkbox-label input {
    width: 18px;
    height: 18px;
}

.validation-message {
    color: var(--red);
    font-weight: 700;
}
.error-message {
    color: var(--red);
}

.status-message,
.created-box {
    color: var(--muted);
}

.created-box {
    display: grid;
    gap: 6px;
    overflow-wrap: anywhere;
    padding: 12px;
    border-radius: 8px;
    background: #f8f5ff;
}

.status-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    color: #4b5565;
    border: 1px solid #d9d8ff;
    border-radius: 8px;
    background: #f8f5ff;
    font-weight: 800;
}

.status-banner a {
    color: var(--violet);
    white-space: nowrap;
}

.status-toast {
    position: fixed;
    left: 50%;
    bottom: 32px;
    z-index: 1200;
    display: flex;
    align-items: center;
    gap: 18px;
    width: min(680px, calc(100vw - 32px));
    min-height: 72px;
    padding: 20px 24px;
    color: white;
    border-radius: 10px;
    box-shadow: 0 22px 60px rgba(7, 23, 51, 0.28);
    font-size: 1.02rem;
    font-weight: 900;
    line-height: 1.3;
    transform: translateX(-50%);
}

.status-toast-success {
    background: #16803c;
}

.status-toast-error {
    background: #c0262d;
}

.status-toast span {
    flex: 1;
}

.status-toast-action {
    flex: 0 0 auto;
    color: #ffffff;
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}

.table-panel {
    display: grid;
    overflow: hidden;
}

.table-panel-header {
    padding: clamp(18px, 2vw, 26px) clamp(18px, 2.4vw, 32px);
    border-bottom: 1px solid var(--line);
}

.table-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-scroll {
    overflow-x: visible;
}

table {
    width: 100%;
    min-width: 0;
    table-layout: auto;
    border-collapse: collapse;
    background: white;
}

th,
td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #f0f2f6;
    vertical-align: middle;
}

th {
    color: #475467;
    font-size: 0.8rem;
    white-space: nowrap;
}

.table-sort {
    padding: 0;
    color: inherit;
    border: 0;
    background: transparent;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

td {
    overflow-wrap: anywhere;
}

.color-test-id {
    display: inline-block;
    padding: 5px 8px;
    color: var(--ink);
    border-radius: 8px;
    background: #f1f3f7;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 900;
}

.type-editor {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 220px;
}

.type-select {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 0.86rem;
}

.confirm-type-button {
    width: 34px;
    min-width: 34px;
    min-height: 34px;
    padding: 0;
    color: white;
    background: var(--green);
    font-size: 1rem;
    line-height: 1;
}

.icon-button {
    width: 30px;
    height: 30px;
    color: white;
    border: 0;
    border-radius: 8px;
    font-weight: 900;
    cursor: pointer;
}

.add-invite-button {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--red), var(--violet));
    font-size: 1.35rem;
    line-height: 1;
}

.modal-close-button {
    flex: 0 0 auto;
    color: #667085;
    background: #f1f3f7;
}

.invite-dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(7, 23, 51, 0.34);
    backdrop-filter: blur(10px);
}

.invite-modal {
    display: grid;
    gap: 18px;
    width: min(920px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: clamp(22px, 3vw, 36px);
}

.dialog-form {
    display: grid;
    gap: 18px;
}

.table-footer {
    padding: 14px 20px;
    color: #667085;
    background: #fafbfc;
}

.pagination-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.color-test-page {
    max-width: 760px;
    margin: 0 auto;
}

.access-card,
.complete-card,
.empty-state {
    padding: clamp(24px, 6vw, 48px);
}

.color-test-id-input {
    max-width: 220px;
    margin: 8px 0 14px;
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-align: center;
}

.test-welcome {
    display: grid;
    gap: 28px;
}

.welcome-heading {
    text-align: center;
}

.welcome-heading p:last-child {
    max-width: 620px;
    margin-inline: auto;
    color: #475467;
}

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

.welcome-summary-card,
.welcome-panel {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.08);
}

.welcome-summary-card {
    display: grid;
    justify-items: center;
    gap: 8px;
    min-height: 150px;
    padding: 22px 18px;
    text-align: center;
}

.welcome-summary-card strong {
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 900;
}

.welcome-summary-card span:last-child {
    color: #475467;
    line-height: 1.45;
}

.welcome-summary-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: #ffffff;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 900;
}

.welcome-summary-icon.red {
    background: #df4f49;
}

.welcome-summary-icon.green {
    background: #34a853;
}

.welcome-summary-icon.violet {
    background: #8e44ad;
}

.welcome-panel {
    padding: clamp(22px, 4vw, 34px);
}

.welcome-panel h2 {
    color: var(--ink);
}

.welcome-instructions {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    color: #344054;
    list-style: none;
}

.welcome-instructions li {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    line-height: 1.5;
}

.welcome-instructions span {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    color: #ffffff;
    border-radius: 999px;
    background: var(--red);
    font-size: 0.78rem;
    font-weight: 900;
}

.welcome-instructions li:nth-child(2) span {
    background: #f0a227;
}

.welcome-instructions li:nth-child(3) span {
    background: #34a853;
}

.welcome-instructions li:nth-child(4) span {
    background: #3f7fbb;
}

.welcome-instructions li:nth-child(5) span {
    background: #8e44ad;
}

.welcome-start-panel {
    display: grid;
    gap: 16px;
}

.welcome-start-panel p {
    color: #475467;
}

.welcome-start-button {
    width: 100%;
    justify-content: center;
}

.question-sticky {
    position: sticky;
    top: 92px;
    z-index: 5;
    margin: -10px -8px 10px;
    padding: 10px 8px 12px;
    background: linear-gradient(135deg, rgba(255, 247, 245, 0.94) 0%, rgba(249, 251, 255, 0.94) 55%, rgba(247, 241, 255, 0.94) 100%);
    backdrop-filter: blur(14px);
}

.question-hint {
    color: var(--muted);
}

.priority-card {
    padding: 16px;
    border-color: #ffb9b9;
    background: rgba(255, 251, 251, 0.9);
}

.card-title {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
    color: var(--red);
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
}

.slot-number {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    color: white;
    border-radius: 999px;
    background: #cfd5de;
    font-weight: 900;
}

.drop-slot.filled .slot-number {
    background: var(--violet);
}

.drop-slot strong {
    color: var(--ink);
}

.priority-option {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    color: var(--ink);
    border: 1px solid #eadfff;
    border-radius: 8px;
    background: #ffffff;
    text-align: left;
    cursor: grab;
}

.priority-option strong {
    font-weight: 900;
    text-align: center;
}

.clear-mark {
    color: var(--red);
    font-weight: 900;
}

.add-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 18px auto;
    width: fit-content;
    text-align: center;
    padding: 10px 18px;
    color: var(--red);
    border: 0;
    border-radius: 999px;
    background: var(--red-soft);
    font-weight: 900;
}

.add-button span {
    font-size: 1.05rem;
}

.add-button:disabled {
    color: #c4a0a0;
    background: #f7eeee;
    cursor: not-allowed;
}

.options-card {
    padding: 16px;
}

.options-card .card-title {
    color: #475467;
}

.option-row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 42px;
    cursor: grab;
}

.option-row strong {
    font-weight: 900;
    text-align: center;
}

.option-row span.click-hint {
    color: #98a2b3;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: lowercase;
}

.drag-handle {
    color: var(--violet);
    font-weight: 900;
}

.answer-option-visual {
    display: block;
    min-width: 0;
}

.answer-option-image {
    display: block;
    width: 100%;
    max-height: 136px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid rgba(7, 23, 51, 0.12);
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(16, 24, 40, 0.12);
}

.answer-option-color {
    display: block;
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(7, 23, 51, 0.22);
    border-radius: 8px;
    background: var(--option-color);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38);
}

.priority-option.image-option,
.option-row.image-option {
    position: relative;
    overflow: hidden;
}

.drop-slot.filled.image-option {
    display: block;
    position: relative;
    width: min(100%, 440px);
    min-height: 0;
    aspect-ratio: 4 / 3;
    margin-right: auto;
    margin-left: auto;
    padding: 0;
    overflow: hidden;
    border-style: solid;
    background: #111827;
}

.drop-slot.filled.image-option .slot-number,
.priority-option.image-option .drag-handle,
.priority-option.image-option .clear-mark,
.option-row.image-option .drag-handle,
.option-row.image-option .click-hint {
    position: absolute;
    z-index: 3;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: rgba(7, 23, 51, 0.72);
    box-shadow: 0 8px 18px rgba(7, 23, 51, 0.18);
    backdrop-filter: blur(10px);
}

.drop-slot.filled.image-option .slot-number {
    top: 10px;
    left: 10px;
}

.priority-option.image-option {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: #111827;
}

.priority-option.image-option .answer-option-visual,
.option-row.image-option .answer-option-visual {
    position: absolute;
    inset: 0;
}

.priority-option.image-option .answer-option-image,
.option-row.image-option .answer-option-image {
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.priority-option.image-option .drag-handle,
.option-row.image-option .drag-handle {
    left: 10px;
    bottom: 10px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
}

.priority-option.image-option .clear-mark {
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
}

.options-card.image-options-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.options-card.image-options-card .card-title {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.options-card.image-options-card .option-row.image-option {
    display: block;
    min-height: 0;
    margin-top: 0;
    padding: 0;
    aspect-ratio: 4 / 3;
    border-style: solid;
    background: #111827;
}

.option-row.image-option .click-hint {
    right: 10px;
    bottom: 10px;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.72rem;
}

.priority-option.color-option,
.option-row.color-option {
    position: relative;
    overflow: hidden;
}

.priority-option.color-option .answer-option-color,
.option-row.color-option .answer-option-color {
    position: absolute;
    inset: 0;
    min-height: 0;
    height: 100%;
    border: 0;
    border-radius: inherit;
    background: var(--option-color);
    box-shadow: inset 0 0 0 1px rgba(7, 23, 51, 0.18);
}

.priority-option.color-option > :not(.answer-option-color),
.option-row.color-option > :not(.answer-option-color) {
    position: relative;
    z-index: 1;
}

.question-actions {
    justify-content: center;
    margin-top: 18px;
}

.progress-dots {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 34px;
}

.progress-dots span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #d8dce4;
}

.progress-dots span.active {
    width: 24px;
    background: var(--violet);
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
}

.complete-card .completion-message {
    margin-top: 28px;
}

.report-tile {
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px solid #d9d8ff;
    border-radius: 8px;
    background: white;
}

.report-tile > span {
    color: var(--ink);
    font-weight: 900;
}

.report-tile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.report-tile strong {
    color: var(--violet);
}

.report-tile-disabled {
    color: #98a2b3;
    background: #f3f4f7;
    border-color: #e4e7ec;
}

.report-tile-disabled strong {
    color: #98a2b3;
}

.report-dialog {
    width: min(720px, 100%);
}

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

.report-dialog-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #ffffff;
}

.report-dialog-row > strong {
    color: var(--ink);
}

.report-dialog-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.report-dialog-row-disabled {
    color: #98a2b3;
    background: #f3f4f7;
}

#blazor-error-ui {
    display: none;
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1000;
    padding: 14px 18px;
    color: white;
    background: var(--red);
    border-radius: 8px;
}

#blazor-error-ui .dismiss {
    margin-left: 16px;
    cursor: pointer;
}

@media (max-width: 900px) {
    .nav-actions {
        width: 100%;
    }

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

    .site-header,
    .admin-header,
    .invite-panel-header,
    .table-panel-header {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .table-header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .invite-form-row {
        grid-template-columns: 1fr;
    }

    .invite-form-row .button {
        width: 100%;
    }

    .table-scroll table {
        min-width: 760px;
    }

    .table-scroll {
        overflow-x: auto;
    }
}

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

    .status-banner {
        align-items: flex-start;
        flex-direction: column;
    }

    .status-toast {
        bottom: 16px;
        align-items: flex-start;
        flex-direction: column;
    }

    .invite-dialog-backdrop {
        padding: 12px;
    }
}
