:root {
    --bg: #f4efe6;
    --panel: #fffdf8;
    --panel-border: #d5cbba;
    --ink: #181818;
    --muted: #695f55;
    --black: #000000;
    --white: #ffffff;
    --accent: #dd6a00;
    --accent-soft: #ffd8b3;
    --danger: #ae1f1f;
    --warning: #d49d00;
    --success: #18864b;
    --shadow: 0 16px 40px rgba(25, 16, 0, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(221, 106, 0, 0.12), transparent 32%),
        linear-gradient(180deg, #f8f2e9 0%, var(--bg) 100%);
    color: var(--ink);
    font-family: "Trebuchet MS", "Arial Rounded MT Bold", Arial, sans-serif;
    overflow-x: hidden;
}

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

.brand-header {
    background: var(--black);
    padding: 28px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    width: 100%;
}

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

.brand-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo-link {
    display: inline-flex;
    align-items: center;
}

.logo-lockup {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.logo-text {
    color: var(--white);
    font-size: clamp(2.5rem, 5vw, 4.4rem);
    font-weight: 900;
    letter-spacing: 0.02em;
    line-height: 0.9;
    text-transform: uppercase;
    transform: scaleY(1.02);
    text-shadow: 0 2px 0 rgba(255, 255, 255, 0.08);
}

.logo-tagline {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.2;
    white-space: nowrap;
}

.top-nav {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
    margin-left: auto;
    flex: 1;
    justify-content: flex-end;
    align-items: center;
}

.top-nav a {
    color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 10px 14px;
    border-radius: 999px;
}

.top-nav a:hover {
    background: rgba(255, 255, 255, 0.08);
}

.nav-gear-link,
.nav-home-link,
.nav-auth-link {
    display: inline-flex;
    align-items: center;
    min-width: 58px;
    min-height: 44px;
    padding-left: 16px;
    padding-right: 16px;
    justify-content: center;
    font-size: 1.4rem;
    line-height: 1;
    border-radius: 999px;
    position: relative;
    left: 0;
    color: rgba(255, 255, 255, 0.96) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
    background: transparent;
}

.nav-home-link {
    min-width: 58px;
    min-height: 44px;
    padding-left: 14px;
    padding-right: 14px;
    margin-left: 0;
    margin-right: 0;
}

.nav-home-link svg,
.nav-auth-link svg {
    width: 1.36rem;
    height: 1.36rem;
    display: block;
    color: #ffffff;
    stroke: #ffffff;
    fill: none;
    overflow: visible;
    vector-effect: non-scaling-stroke;
}

.table-head-inline-filter {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.table-head-inline-filter select {
    min-width: 112px;
    width: 112px;
    padding: 6px 24px 6px 10px;
    font-size: 0.8rem;
}

.page-shell {
    padding: 32px 0 56px;
}

.page-shell-narrow {
    width: min(760px, calc(100% - 32px));
}

.hero-card,
.panel {
    background: rgba(255, 253, 248, 0.92);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-card {
    padding: 36px;
    margin-bottom: 24px;
}

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

.hero-card h1,
.panel-head h1,
.panel-head h2 {
    margin: 0 0 10px;
    font-size: clamp(1.05rem, 1.45vw, 1.35rem);
}

.hero-text,
.panel-head p,
.field span,
.hint,
.footnote,
table,
.notification-preview p {
    color: var(--muted);
}

.hero-copy {
    max-width: 820px;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.9fr);
    gap: 24px;
    align-items: start;
}

.content-grid-single {
    grid-template-columns: minmax(0, 1fr);
}

.form-panel,
.side-panel {
    padding: 26px;
}

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

.panel-head-compact {
    margin-bottom: 8px;
}

.panel-head-note-right {
    display: flex;
    justify-content: flex-end;
}

.panel-head-note-right p {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.2;
    text-align: right;
    color: #7a7065;
}

.panel-head-inline {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
}

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

.field,
.rating-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-with-hint .field-hint {
    margin-top: 2px;
    margin-left: 12px;
    display: none;
    color: #7a7065;
    font-size: 0.75rem;
    line-height: 1.25;
}

.field-with-hint:focus-within .field-hint {
    display: block;
}

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

.field-half {
    grid-column: span 1;
}

.field-single-column {
    max-width: calc(50% - 9px);
}

.field span,
.rating-card legend {
    color: var(--ink);
    font-weight: 700;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid #cbbfad;
    border-radius: 16px;
    background: #fff;
    color: var(--ink);
    padding: 14px 16px;
    font: inherit;
    outline: none;
}

select {
    -webkit-appearance: none;
    appearance: none;
    min-height: 52px;
    height: 52px;
    line-height: 1.2;
    border-radius: 16px;
    background-image:
        linear-gradient(45deg, transparent 50%, #6d6258 50%),
        linear-gradient(135deg, #6d6258 50%, transparent 50%);
    background-position:
        calc(100% - 22px) calc(50% - 2px),
        calc(100% - 16px) calc(50% - 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 36px;
}

input[readonly] {
    background: #f1ebe1;
    color: #5f574d;
    cursor: not-allowed;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(221, 106, 0, 0.15);
}

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

.ratings {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 20px 0;
}

.rating-card {
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    padding: 18px;
    background: #fffdfa;
}

.rating-scale {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    padding-top: 4px;
    padding-bottom: 4px;
    justify-content: center;
}

.rating-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    left: 2px;
}

.rating-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rating-pill span {
    min-width: 38px;
    min-height: 38px;
    padding: 10px 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    border: 2px solid transparent;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.rating-pill:hover span,
.rating-pill input:checked + span {
    transform: translateY(-2px);
    border-color: rgba(0, 0, 0, 0.4);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.rating-red span {
    background: #ff5f57;
    color: #ffffff;
}

.rating-yellow span {
    background: #ffcc1f;
    color: #2b2300;
}

.rating-green span {
    background: #22c55e;
    color: #ffffff;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

.btn:disabled,
.btn.is-loading {
    opacity: 0.72;
    cursor: wait;
}

.btn-success {
    background: #18864b;
    color: var(--white);
}

.btn-dark {
    background: var(--black);
    color: var(--white);
}

.btn-danger {
    background: #c72828;
    color: var(--white);
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.form-actions-left {
    justify-content: flex-start;
}

.form-actions-split {
    width: 100%;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

.footnote {
    margin: 0;
    max-width: 460px;
}

.alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    font-weight: 700;
}

.alert-success {
    background: rgba(24, 134, 75, 0.12);
    color: #0d6c39;
    border: 1px solid rgba(24, 134, 75, 0.24);
}

.alert-error {
    background: rgba(174, 31, 31, 0.12);
    color: #8d1717;
    border: 1px solid rgba(174, 31, 31, 0.24);
}

.error-text {
    min-height: 18px;
    color: var(--danger);
    font-size: 0.88rem;
}

.field.has-error input,
.field.has-error textarea,
.field.has-error select,
.rating-card.has-error {
    border-color: var(--danger);
    box-shadow: 0 0 0 4px rgba(174, 31, 31, 0.09);
}

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

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

th,
td {
    padding: 14px 12px;
    border-bottom: 1px solid #e7dece;
    text-align: left;
    white-space: nowrap;
}

th {
    color: var(--ink);
    font-size: 0.9rem;
}

.logged-user {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: #f3e4d0;
    font-weight: 700;
}

.user-list-panel {
    margin-top: 20px;
}

.user-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #e7dece;
}

.user-row p,
.empty-state {
    margin: 6px 0 0;
    color: var(--muted);
}

.dashboard-panel {
    padding: 28px;
}

.dashboard-head {
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.dashboard-user-meta {
    min-width: 0;
}

.dashboard-head h1 {
    margin-bottom: 6px;
}

.dashboard-head p {
    margin: 0;
}

.dashboard-filters {
    display: none;
    margin-bottom: 20px;
}

.dashboard-filters.is-visible {
    display: block;
}

.filter-row {
    display: grid;
    grid-template-columns: 220px 180px 180px minmax(240px, 1fr);
    gap: 14px;
    align-items: end;
}

.field-search {
    min-width: 0;
}

.field-search-group {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.filter-chip-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 0;
    flex-wrap: nowrap;
}

.dashboard-filters .field select,
.dashboard-filters .field input {
    min-height: 52px;
    height: 52px;
    border-radius: 16px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    border: 1px solid #d7c6ad;
    background: #fff8ef;
    color: #40382f;
    font-size: 1.45rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    flex: 0 0 auto;
}

.filter-chip span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.filter-chip-clear span {
    font-size: 1.95rem;
    line-height: 1;
    color: #fff;
}

.filter-chip-search {
    background: var(--black);
    border-color: var(--black);
    color: #fff;
}

.filter-chip-clear {
    background: var(--black);
    border-color: var(--black);
    color: #fff;
}

.mobile-filter-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    border: 1px solid #d7c6ad;
    background: #fff8ef;
    color: #5b544c;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    flex: 0 0 auto;
}

.mobile-filter-toggle.is-active {
    background: #000;
    border-color: #000;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.mobile-filter-toggle svg,
.filter-chip svg {
    width: 26px;
    height: 26px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.filter-chip-search svg,
.filter-chip-clear svg {
    stroke: #fff;
}

.dashboard-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
    margin-bottom: 22px;
    width: 100%;
}

.dashboard-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-height: 56px;
    padding: 0 18px;
    border-radius: 18px;
    border: 1px solid #d7c6ad;
    background: #fff8ef;
    font-weight: 700;
    font-size: 1rem;
    color: #5b544c;
}

.dashboard-tab.is-active {
    background: var(--black);
    border-color: var(--black);
    color: var(--white);
}

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

.stat-card {
    background: #f4eadc;
    border: 1px solid #d5c4ab;
    border-radius: 20px;
    padding: 18px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.stat-card span {
    display: block;
    color: var(--muted);
    font-size: 0.92rem;
    margin-bottom: 0;
}

.stat-card strong {
    font-size: 2rem;
    line-height: 1;
    text-align: right;
    align-self: flex-end;
}

.stat-card-red {
    background: #fff1f0;
    border-color: #f0d0cd;
}

.stat-card-yellow {
    background: #fff1f0;
    border-color: #f0d0cd;
}

.stat-card-green {
    background: #f0fff4;
    border-color: #cfe9d7;
}

.chart-panel {
    background: #fffaf2;
    border: 1px solid #dfd0bb;
    border-radius: 20px;
    padding: 20px;
}

.bar-chart {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bar-row {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) 56px;
    gap: 12px;
    align-items: center;
}

.bar-label,
.bar-value {
    font-weight: 700;
    color: #51483d;
}

.bar-label-link {
    text-decoration: none;
}

.bar-label-link.is-active {
    color: var(--accent);
}

.bar-track {
    height: 16px;
    background: #efe4d3;
    border-radius: 999px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 999px;
}

.bar-fill-red {
    background: #ff5f57;
}

.bar-fill-yellow {
    background: #ffcc1f;
}

.bar-fill-green {
    background: #22c55e;
}

.score-band-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.score-band-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #d7c6ad;
    background: #fff8ef;
    font-weight: 700;
}

.score-band-chip-red.is-active {
    background: #ff5f57;
    border-color: #ff5f57;
    color: #fff;
}

.score-band-chip-yellow.is-active {
    background: #ffcc1f;
    border-color: #ffcc1f;
    color: #2b2300;
}

.score-band-chip-yellow {
    color: #5b544c;
}

.score-band-chip-green.is-active {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
}

.table-row-link {
    cursor: pointer;
}

.table-row-link:hover td {
    background: rgba(221, 106, 0, 0.06);
}

.table-primary-text {
    display: block;
}

.table-secondary-text {
    display: block;
    margin-top: 4px;
    font-size: 0.85rem;
    color: var(--muted);
}

.toggle-switch-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

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

.toggle-switch-ui {
    position: relative;
    width: 52px;
    height: 30px;
    border-radius: 999px;
    background: #d8d0c4;
    transition: background 0.2s ease;
    flex: 0 0 auto;
}

.toggle-switch-ui::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease;
}

.toggle-switch-input:checked + .toggle-switch-ui {
    background: #000;
}

.toggle-switch-input:checked + .toggle-switch-ui::after {
    transform: translateX(22px);
}

.toggle-switch-text {
    color: var(--muted);
    font-weight: 700;
}

.toggle-switch-row-compact {
    gap: 8px;
}

.toggle-switch-row-compact .toggle-switch-text {
    display: none;
}

.toggle-switch-row-compact .toggle-switch-ui {
    width: 46px;
    height: 26px;
}

.toggle-switch-row-compact .toggle-switch-ui::after {
    width: 20px;
    height: 20px;
}

.toggle-switch-row-compact .toggle-switch-input:checked + .toggle-switch-ui::after {
    transform: translateX(20px);
}

.toggle-switch-row-compact .toggle-switch-text {
    font-size: 0.84rem;
}

.toggle-switch-row-readonly {
    cursor: default;
    opacity: 0.72;
}

.toggle-switch-row-readonly .toggle-switch-ui {
    background: #c9c0b3;
}

.toggle-switch-row-readonly .toggle-switch-input:checked + .toggle-switch-ui {
    background: #77706a;
}

.toggle-switch-row-readonly .toggle-switch-text {
    color: #7f776d;
}

.form-actions-between {
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: nowrap;
}

.form-actions-edit {
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: nowrap;
}

.edit-action-group {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
}

.modal-backdrop[hidden] {
    display: none;
}

.modal-card {
    width: min(420px, 100%);
    background: #fffaf2;
    border: 1px solid #dfd0bb;
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 24px;
}

.modal-card h2 {
    margin: 0 0 10px;
}

.modal-card p {
    margin: 0 0 18px;
    color: var(--muted);
}

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

@media (max-width: 900px) {
    :root {
        --mobile-card-width: calc(100vw - 24px);
        --mobile-card-offset: calc(50% - 50vw + 12px);
    }

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .brand-header {
        width: 100vw;
        min-width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        padding-left: 0;
        padding-right: 0;
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .content-grid,
    .ratings,
    .field-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        align-items: flex-end;
        flex-direction: column;
    }

    .form-actions-split {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .form-actions-between,
    .form-actions-edit {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 12px;
        flex-wrap: nowrap;
    }

    .toggle-switch-row {
        gap: 8px;
    }

    .toggle-switch-ui {
        width: 46px;
        height: 26px;
    }

    .toggle-switch-ui::after {
        width: 20px;
        height: 20px;
    }

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

    .toggle-switch-text {
        font-size: 0.82rem;
    }

    .page-shell,
    .page-shell-narrow {
        display: block;
        width: 100%;
        margin: 0;
        padding: 10px 0 40px;
    }

    .brand-shell {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 0 14px;
        margin: 0 auto;
    }

    .logo-text {
        font-size: 2.48rem;
        line-height: 0.82;
        transform: none;
    }

    .logo-tagline {
        font-size: 0.62rem;
        letter-spacing: 0.1em;
    }

    .top-nav {
        gap: 8px;
        flex-wrap: nowrap;
        white-space: nowrap;
    }

    .top-nav a {
        padding: 8px 10px;
        font-size: 0.78rem;
        white-space: nowrap;
    }

    .nav-gear-link,
    .nav-home-link,
    .nav-auth-link {
        display: inline-flex;
        align-items: center;
        min-width: 42px;
        min-height: 36px;
        padding-left: 10px;
        padding-right: 10px;
        font-size: 1.12rem;
        left: 0;
    }

    .nav-home-link,
    .nav-auth-link {
        min-width: 44px;
        min-height: 36px;
        padding-left: 10px;
        padding-right: 10px;
        margin-left: 0;
        margin-right: 0;
    }

    .nav-home-link svg,
    .nav-auth-link svg {
        width: 1.2rem;
        height: 1.2rem;
    }

    .dashboard-panel {
        width: var(--mobile-card-width);
        max-width: none;
        margin-left: var(--mobile-card-offset);
        margin-right: var(--mobile-card-offset);
        padding: 18px;
    }

    .mobile-filter-toggle {
        align-self: center;
        width: 46px;
        height: 46px;
    }

    .filter-row,
    .bar-row {
        grid-template-columns: 1fr;
    }

    .filter-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 10px;
    }

    .filter-row .field {
        min-width: 0;
    }

    .filter-row .field:nth-child(1),
    .filter-row .field:nth-child(4) {
        grid-column: 1 / -1;
    }

    .field-search-group {
        grid-column: 1 / -1;
        display: flex;
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        gap: 8px;
        width: 100%;
    }

    .field-search {
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
        margin-bottom: 0;
    }

    .filter-row .field:nth-child(2) input,
    .filter-row .field:nth-child(3) input {
        min-width: 0;
        width: 100%;
        max-width: 100%;
        min-height: 42px;
        height: 42px;
        padding: 6px 8px;
        font-size: 0.84rem;
    }

    .dashboard-filters input[type="date"] {
        -webkit-appearance: none;
        appearance: none;
        box-sizing: border-box;
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }

    .dashboard-filters .field select,
    .dashboard-filters .field input {
        min-height: 42px;
        height: 42px;
        padding: 6px 8px;
        font-size: 0.84rem;
    }

    .filter-chip-actions {
        display: flex;
        justify-content: flex-end;
        align-self: flex-end;
        margin-bottom: 0;
        height: 42px;
        align-items: center;
        flex-wrap: nowrap;
        flex: 0 0 auto;
        margin-top: 0;
        margin-left: auto;
    }

    .filter-chip {
        width: 42px;
        height: 42px;
        font-size: 1.45rem;
        background: #000 !important;
        border-color: #000 !important;
        color: #fff !important;
    }

    .filter-chip-clear span {
        font-size: 1.7rem;
        line-height: 1;
        color: #fff;
    }

    .filter-chip-search,
    .filter-chip-clear {
        color: #fff;
    }

    .mobile-filter-toggle {
        border: 1px solid #d7c6ad !important;
        background: #fff8ef !important;
        color: #5b544c !important;
    }

    .mobile-filter-toggle.is-active {
        background: #000 !important;
        border-color: #000 !important;
        color: #fff !important;
        box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
    }

    .mobile-filter-toggle svg,
    .filter-chip svg {
        width: 22px;
        height: 22px;
    }

    .dashboard-filters input[type="date"]::-webkit-date-and-time-value {
        text-align: left;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .bar-row {
        gap: 6px;
    }

    .hero-copy,
    .hero-card,
    .form-panel,
    .panel,
    .field,
    input,
    textarea,
    select {
        max-width: 100%;
    }

    .hero-copy h1,
    .hero-text {
        text-align: justify;
    }

    .hero-card {
        width: var(--mobile-card-width);
        max-width: none;
        margin-left: var(--mobile-card-offset);
        margin-right: var(--mobile-card-offset);
        margin-bottom: 10px;
        padding: 12px 24px;
        border-radius: var(--radius);
    }

    .eyebrow {
        margin-bottom: 6px;
    }

    .hero-card h1 {
        margin-bottom: 6px;
    }

    .form-panel {
        position: static;
        width: var(--mobile-card-width);
        max-width: none;
        margin-left: var(--mobile-card-offset);
        margin-right: var(--mobile-card-offset);
    }

    .survey-form-panel {
        width: var(--mobile-card-width);
        max-width: none;
        margin-left: var(--mobile-card-offset);
        margin-right: var(--mobile-card-offset);
        position: static;
        left: auto;
    }

    .form-panel,
    .side-panel {
        padding: 18px;
    }

    .panel-head-compact {
        margin-bottom: 2px;
    }

    .field-grid {
        gap: 3px;
    }

    .field,
    .rating-card {
        gap: 4px;
    }

    input,
    textarea,
    select {
        padding: 12px 14px;
    }

    textarea {
        min-height: 92px;
    }

    .field-hint {
        margin-top: 4px;
        margin-bottom: 4px;
    }

    .ratings {
        gap: 12px;
        margin: 12px 0;
    }

    .rating-card {
        padding: 14px;
    }

    .form-actions {
        margin-top: 16px;
    }

    .top-nav a {
        text-align: center;
    }

    .dashboard-tabs {
        justify-content: center;
        gap: 10px;
    }

    .dashboard-tab {
        flex: 0 1 auto;
        min-height: 42px;
        padding: 0 18px;
        border-radius: 999px;
        font-size: 0.95rem;
    }

    .score-band-filters {
        justify-content: center;
        gap: 8px;
    }

    .score-band-chip {
        min-width: 0;
        min-height: 44px;
        padding: 0 12px;
        font-size: 0.82rem;
        text-align: center;
    }

    .dashboard-head {
        align-items: center;
    }

    .dashboard-user-meta p {
        white-space: nowrap;
    }

    .rating-scale {
        justify-content: flex-start;
        gap: 3px;
        flex-wrap: nowrap;
        overflow-x: hidden;
    }

    .rating-pill span {
        min-width: 31px;
        min-height: 31px;
        padding: 5px 4px 5px 5px;
        font-size: 1.05rem;
        line-height: 1;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    th,
    td {
        white-space: normal;
    }
}
