:root {
    --brand-green: #2f9145;
    --brand-green-deep: #17692f;
    --brand-green-soft: rgba(47, 145, 69, 0.10);
    --brand-gold: #caa75d;
    --brand-cream: #fcfaf4;
    --brand-panel: #ffffff;
    --text-main: #1a1d1a;
    --text-soft: #5d655f;
    --line-soft: rgba(47, 145, 69, 0.18);
    --shadow-soft: 0 32px 70px rgba(23, 64, 33, 0.14);
    --danger: #b42318;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: "Barlow", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top center, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.75) 34%, rgba(255, 255, 255, 0) 72%),
        linear-gradient(180deg, #f5f3ee 0%, #f9f7f2 58%, #f2efe7 100%);
    color: var(--text-main);
}

body {
    min-height: 100vh;
}

a {
    color: inherit;
}

button,
textarea {
    font: inherit;
}

.app-shell {
    min-height: 100vh;
}

.shell {
    width: min(100%, 1040px);
    margin: 0 auto;
    padding: 20px 20px 32px;
}

.shell-centered {
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.survey-card {
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(47, 145, 69, 0.12);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
}

.brand-banner {
    position: relative;
    background: linear-gradient(120deg, #0f5a2a, var(--brand-green));
}

.brand-banner::after {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    width: 220px;
    background:
        radial-gradient(circle at right center, rgba(255, 255, 255, 0.05), transparent 52%),
        linear-gradient(150deg, transparent 35%, rgba(255, 255, 255, 0.08) 35%, rgba(255, 255, 255, 0.08) 45%, transparent 45%, transparent 54%, rgba(255, 255, 255, 0.07) 54%, rgba(255, 255, 255, 0.07) 64%, transparent 64%);
    opacity: 0.8;
    pointer-events: none;
}

.survey-header {
    position: relative;
    z-index: 1;
    padding: 12px 22px;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.brand-mark {
    width: clamp(92px, 14vw, 132px);
    height: auto;
}

.brand-divider {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.38);
}

.brand-title {
    margin: 0;
    color: #fff;
    font-size: clamp(1rem, 1.6vw, 1.3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.survey-panel {
    padding: 16px 18px 0;
}

.panel-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    padding: 0 10px 14px;
}

.toolbar-copy h1 {
    margin: 0;
    font-size: clamp(1.4rem, 2.6vw, 2.15rem);
    line-height: 1.06;
    letter-spacing: -0.035em;
}

.language-toggle {
    display: inline-flex;
    gap: 0;
    padding: 2px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(47, 145, 69, 0.20);
    box-shadow: 0 10px 24px rgba(47, 145, 69, 0.10);
}

.lang-button,
.choice-button,
.submit-button,
.primary-link {
    border: 0;
    transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease, color 120ms ease;
}

.lang-button {
    min-width: 88px;
    padding: 10px 14px;
    border-radius: 12px;
    background: transparent;
    color: var(--text-soft);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
}

.lang-button.selected {
    background: linear-gradient(135deg, var(--brand-green), var(--brand-green-deep));
    color: #fff;
}

.survey-body {
    padding: 0 8px 16px;
}

.intro-block {
    padding: 0 10px 14px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--brand-green);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.68rem;
    font-weight: 800;
}

.page-note,
.message-card p,
.loading-card p,
.survey-footer p,
.comment-meta,
.supporting-copy,
.security-note p,
.page-footer p {
    margin: 0;
    line-height: 1.55;
    color: var(--text-soft);
}

.survey-form {
    display: grid;
    gap: 0;
}

.question-block {
    padding: 16px 12px 18px;
    border-top: 1px solid rgba(47, 145, 69, 0.14);
}

.question-block:first-child {
    border-top: 0;
}

.question-title {
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
    font-weight: 700;
}

.rating-meta,
.comment-meta,
.submit-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.rating-meta,
.comment-meta {
    font-size: 0.88rem;
}

.rating-meta-start {
    justify-content: flex-start;
}

.rating-grid,
.binary-grid {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

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

.binary-grid {
    grid-template-columns: repeat(2, minmax(0, 128px));
}

.choice-button {
    min-height: 52px;
    border-radius: 12px;
    border: 1.5px solid rgba(47, 145, 69, 0.70);
    background: #fff;
    color: var(--brand-green);
    font-size: 0.98rem;
    font-weight: 800;
    cursor: pointer;
}

.choice-button.selected {
    background: linear-gradient(135deg, var(--brand-green), var(--brand-green-deep));
    color: #fff;
    box-shadow: 0 14px 28px rgba(47, 145, 69, 0.22);
}

.choice-button:hover,
.lang-button:hover,
.submit-button:hover,
.primary-link:hover {
    transform: translateY(-1px);
}

.comments-input {
    width: 100%;
    min-height: 108px;
    margin-top: 12px;
    padding: 12px 14px;
    resize: vertical;
    border-radius: 12px;
    border: 1px solid rgba(47, 145, 69, 0.22);
    background: #fff;
    color: var(--text-main);
}

.comments-input:focus {
    outline: 3px solid rgba(47, 145, 69, 0.16);
    border-color: rgba(47, 145, 69, 0.58);
}

.field-error,
.status-banner {
    margin: 12px 0 0;
    color: var(--danger);
    font-weight: 700;
}

.status-banner {
    margin: 0 10px 14px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(180, 35, 24, 0.16);
    background: rgba(180, 35, 24, 0.07);
}

.submit-row {
    padding: 14px 12px 10px;
}

.submit-button,
.primary-link {
    width: 100%;
    min-height: 50px;
    justify-content: center;
    align-items: center;
    display: inline-flex;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand-green), var(--brand-green-deep));
    color: #fff;
    text-decoration: none;
    font-size: 0.96rem;
    font-weight: 800;
    box-shadow: 0 18px 32px rgba(47, 145, 69, 0.20);
    cursor: pointer;
}

.submit-button[disabled] {
    opacity: 0.75;
    cursor: wait;
    transform: none;
}

.security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 12px 12px;
}

.security-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(47, 145, 69, 0.12);
    color: var(--brand-green);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.privacy-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 2px 12px 10px;
}

.privacy-divider span {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(202, 167, 93, 0.45), rgba(202, 167, 93, 0.15));
}

.privacy-divider img {
    width: 40px;
    height: auto;
    opacity: 0.85;
}

.survey-footer {
    padding: 0 12px 18px;
    text-align: center;
}

.survey-footer strong {
    color: var(--brand-green);
}

.page-footer {
    padding: 14px 18px 18px;
    background: linear-gradient(135deg, var(--brand-green-deep), var(--brand-green));
    text-align: center;
}

.page-footer p {
    color: rgba(255, 255, 255, 0.92);
}

.page-footer p + p {
    margin-top: 6px;
    font-size: 0.88rem;
}

.state-wrap {
    padding: 20px 18px 18px;
}

.message-card,
.loading-card {
    padding: 24px;
    border-radius: 18px;
    border: 1px solid rgba(47, 145, 69, 0.12);
    background: #fff;
}

.admin-app-shell {
    min-height: 100vh;
}

.admin-login-shell,
.admin-dashboard-shell {
    min-height: 100vh;
    background:
        radial-gradient(circle at top center, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.74) 35%, rgba(255, 255, 255, 0) 68%),
        linear-gradient(180deg, #f5f2eb 0%, #f8f7f2 54%, #f1efe8 100%);
}

.admin-brand-header,
.admin-dashboard-header {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #014b22 0%, #03592a 64%, #0e5b2d 100%);
}

.admin-brand-header::after,
.admin-dashboard-header::after {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    width: 300px;
    opacity: 0.28;
    background:
        radial-gradient(circle at right center, rgba(255, 255, 255, 0.18), transparent 52%),
        linear-gradient(150deg, transparent 36%, rgba(255, 255, 255, 0.18) 36%, rgba(255, 255, 255, 0.18) 44%, transparent 44%, transparent 53%, rgba(255, 255, 255, 0.14) 53%, rgba(255, 255, 255, 0.14) 61%, transparent 61%);
}

.admin-header-inner,
.admin-brand-header .admin-brand-lockup {
    position: relative;
    z-index: 1;
}

.admin-brand-lockup {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #fff;
}

.admin-brand-header .admin-brand-lockup,
.admin-header-inner {
    padding: 8px 16px;
}

.admin-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.admin-brand-logo {
    width: clamp(48px, 5vw, 78px);
    height: auto;
}

.admin-brand-divider {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.34);
}

.admin-brand-lockup p {
    margin: 0;
    font-size: clamp(0.8rem, 0.95vw, 1rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.admin-login-main {
    display: grid;
    place-items: center;
    padding: 18px 14px 12px;
}

.admin-login-card {
    width: min(460px, 100%);
    padding: 18px 18px 0;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(15, 90, 42, 0.08);
    box-shadow: 0 10px 28px rgba(18, 42, 23, 0.11);
    text-align: center;
}

.admin-login-icon,
.summary-icon,
.admin-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
}

.admin-login-icon {
    width: 56px;
    height: 56px;
    background: radial-gradient(circle at top, rgba(199, 228, 190, 0.9), rgba(200, 222, 179, 0.55));
    color: #0d6b31;
    letter-spacing: 0.05em;
    font-size: 0.78rem;
    text-transform: uppercase;
}

.admin-login-card h1 {
    margin: 10px 0 6px;
    font-size: clamp(1.5rem, 1.9vw, 2rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.admin-login-title {
    border: 0;
    outline: 0;
    box-shadow: none;
    background: transparent;
}

.admin-login-card > p {
    margin: 0 0 14px;
    color: #6a7380;
    font-size: 0.9rem;
}

.admin-login-form {
    display: grid;
    gap: 8px;
    padding-top: 2px;
    text-align: left;
}

.admin-login-form label {
    font-size: 0.9rem;
    font-weight: 700;
}

.admin-login-form input,
.admin-search-group input,
.admin-range-fields input,
.admin-select {
    width: 100%;
    min-height: 40px;
    padding: 9px 12px;
    border-radius: 10px;
    border: 1px solid rgba(15, 90, 42, 0.14);
    background: #fff;
    color: #1f2421;
    font: inherit;
}

.admin-login-form input:focus,
.admin-search-group input:focus,
.admin-range-fields input:focus,
.admin-select:focus {
    outline: 3px solid rgba(47, 145, 69, 0.12);
    border-color: rgba(47, 145, 69, 0.48);
}

.password-field {
    position: relative;
}

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

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--brand-green);
    font-weight: 700;
    cursor: pointer;
    font-size: 0.86rem;
}

.admin-login-button {
    margin-top: 8px;
    min-height: 42px;
    font-size: 0.92rem;
}

.admin-login-footer {
    margin-top: 16px;
    padding: 14px 18px;
    border-top: 1px solid rgba(15, 90, 42, 0.08);
}

.admin-login-note {
    padding: 0 0 14px;
    text-align: center;
    color: #6a7380;
    font-size: 0.84rem;
}

.admin-dashboard-main {
    padding: 10px;
}

.admin-user-card {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 188px;
    padding: 6px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.admin-user-avatar {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.92);
    color: #33533b;
    font-size: 0.8rem;
}

.admin-user-card strong,
.admin-user-card span {
    display: block;
}

.admin-user-card span {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.72rem;
}

.admin-logout-link {
    margin-left: auto;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.8rem;
}

.admin-filter-shell,
.admin-summary-card,
.admin-chart-card,
.admin-table-card {
    border-radius: 16px;
    border: 1px solid rgba(15, 90, 42, 0.08);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 6px 16px rgba(21, 45, 25, 0.06);
}

.admin-filter-shell {
    padding: 10px;
}

.admin-preset-row,
.admin-range-row,
.admin-table-toolbar,
.admin-pagination-controls,
.admin-inline-filters,
.admin-range-fields,
.admin-search-group {
    display: flex;
    gap: 8px;
}

.admin-preset-row {
    flex-wrap: wrap;
}

.admin-preset-button,
.admin-secondary-button,
.admin-page-button,
.table-sort-button,
.table-view-link,
.modal-close-button {
    border: 1px solid rgba(15, 90, 42, 0.12);
    background: #fff;
    color: #1f2421;
    cursor: pointer;
    font: inherit;
    transition: background 120ms ease, color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

.admin-preset-button,
.admin-secondary-button,
.admin-page-button {
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 9px;
    font-size: 0.85rem;
}

.admin-preset-button.selected,
.admin-page-button.selected {
    border-color: rgba(15, 90, 42, 0.2);
    background: linear-gradient(135deg, var(--brand-green), var(--brand-green-deep));
    color: #fff;
    box-shadow: 0 16px 28px rgba(47, 145, 69, 0.2);
}

.admin-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #25422d;
    text-decoration: none;
    white-space: nowrap;
}

.admin-preset-button:hover,
.admin-secondary-button:hover,
.admin-page-button:hover,
.table-sort-button:hover,
.table-view-link:hover,
.modal-close-button:hover {
    transform: translateY(-1px);
}

.admin-range-row {
    margin-top: 8px;
    align-items: center;
    justify-content: space-between;
}

.admin-range-fields {
    align-items: flex-end;
}

.admin-range-fields label {
    display: grid;
    gap: 4px;
    color: #4d5751;
    font-size: 0.8rem;
    font-weight: 700;
}

.admin-range-fields .admin-secondary-button {
    min-height: 40px;
}

.admin-range-summary {
    color: #44504a;
    font-weight: 700;
    font-size: 0.88rem;
}

.admin-summary-grid {
    margin-top: 10px;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-summary-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
}

.summary-icon {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle at top, rgba(199, 228, 190, 0.96), rgba(200, 222, 179, 0.6));
    color: #0f6e34;
    font-size: 0.82rem;
}

.admin-summary-card p,
.admin-summary-card span,
.admin-card-header p,
.donut-legend p,
.admin-pagination p,
.admin-detail-modal p {
    margin: 0;
    color: #65706b;
}

.admin-summary-card h2 {
    margin: 4px 0 3px;
    font-size: clamp(1.45rem, 1.8vw, 2rem);
    line-height: 1;
}

.admin-chart-grid {
    margin-top: 10px;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr);
}

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

.admin-chart-card,
.admin-table-card {
    padding: 12px 14px;
}

.admin-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.admin-card-header h3 {
    margin: 0 0 4px;
    font-size: 1.08rem;
    letter-spacing: -0.03em;
}

.admin-card-header p,
.admin-summary-card p,
.admin-summary-card span,
.donut-legend p,
.admin-pagination p,
.admin-detail-modal p {
    font-size: 0.84rem;
}

.trend-chart-wrap {
    overflow: hidden;
}

.trend-chart {
    display: block;
    width: 100%;
    height: auto;
}

.chart-grid-line {
    stroke: rgba(15, 90, 42, 0.12);
    stroke-dasharray: 4 6;
}

.chart-axis-label {
    fill: #78817d;
    font-size: 12px;
}

.chart-area {
    fill: url(#trend-fill);
}

.chart-line {
    fill: none;
    stroke: #0b6b31;
    stroke-width: 4;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.chart-dot {
    fill: #fff;
    stroke: #0b6b31;
    stroke-width: 3;
}

.trend-label-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
    gap: 6px;
    margin-top: 4px;
    color: #74807a;
    font-size: 0.74rem;
}

.donut-layout {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 210px;
}

.donut-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 154px;
}

.donut-ring {
    position: relative;
    display: grid;
    place-items: center;
    width: 154px;
    aspect-ratio: 1;
    border-radius: 50%;
}

.donut-ring::after {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: inset 0 0 0 1px rgba(15, 90, 42, 0.05);
}

.donut-hole {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 2px;
    text-align: center;
}

.donut-hole strong {
    color: #0f1411;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1;
}

.donut-hole span {
    color: #68736d;
    font-size: 0.78rem;
}

.donut-chart {
    width: min(154px, 100%);
    height: auto;
}

.donut-track,
.donut-value {
    fill: none;
    stroke-width: 18;
    transform: rotate(-90deg);
    transform-origin: 90px 90px;
}

.donut-track {
    stroke: rgba(24, 48, 29, 0.12);
}

.donut-value {
    stroke: #05642e;
}

.donut-total {
    fill: #0f1411;
    font-size: 1.45rem;
    font-weight: 800;
}

.donut-caption {
    fill: #68736d;
    font-size: 0.78rem;
}

.donut-legend {
    display: grid;
    gap: 10px;
}

.legend-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 8px;
    border-radius: 50%;
}

.legend-dot.solved {
    background: #05642e;
}

.legend-dot.unsolved {
    background: rgba(24, 48, 29, 0.22);
}

.comment-summary {
    padding-top: 6px;
    border-top: 1px solid rgba(15, 90, 42, 0.08);
}

.admin-rating-card {
    display: flex;
    flex-direction: column;
}

.rating-distribution {
    display: grid;
    gap: 10px;
}

.rating-row {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.rating-label,
.rating-value,
.rating-average-row {
    font-size: 0.84rem;
}

.rating-label {
    color: #24472c;
    font-weight: 700;
    white-space: nowrap;
}

.rating-star {
    color: #0b6b31;
}

.rating-bar-track {
    height: 10px;
    border-radius: 999px;
    background: rgba(15, 90, 42, 0.10);
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0b6b31, #2f9145);
}

.rating-value {
    color: #5d6863;
    text-align: right;
    white-space: nowrap;
}

.rating-average-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(15, 90, 42, 0.08);
    color: #0b6b31;
    font-weight: 700;
}

.admin-table-card {
    margin-top: 10px;
}

.admin-table-toolbar {
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.admin-search-group {
    flex: 1;
    align-items: center;
}

.admin-search-group input {
    flex: 1;
}

.admin-inline-filters {
    align-items: center;
}

.admin-select {
    min-width: 124px;
}

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

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

.admin-table th,
.admin-table td {
    padding: 9px 8px;
    border-top: 1px solid rgba(15, 90, 42, 0.08);
    text-align: left;
    vertical-align: top;
    font-size: 0.84rem;
}

.admin-table th {
    color: #52605a;
    font-size: 0.8rem;
    font-weight: 700;
}

.table-sort-button,
.table-view-link,
.modal-close-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #21492b;
    font-weight: 700;
}

.response-pill {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.response-pill.solved {
    background: rgba(47, 145, 69, 0.14);
    color: #0c6b31;
}

.response-pill.unsolved {
    background: rgba(219, 68, 55, 0.12);
    color: #b42318;
}

.admin-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}

.admin-empty-state {
    display: grid;
    place-items: center;
    min-height: 110px;
    border-radius: 14px;
    background: rgba(245, 248, 244, 0.8);
    color: #64726c;
    text-align: center;
    font-size: 0.88rem;
}

.admin-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(18, 31, 21, 0.42);
    backdrop-filter: blur(6px);
}

.admin-detail-modal {
    width: min(720px, 100%);
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

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

.admin-detail-grid strong,
.admin-comment-panel strong {
    display: block;
    margin-bottom: 6px;
}

.admin-comment-panel {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(15, 90, 42, 0.08);
}

#blazor-error-ui {
    display: none;
}

#blazor-error-ui.show {
    display: block;
    position: fixed;
    inset: auto 16px 16px 16px;
    padding: 16px 18px;
    border-radius: 16px;
    background: #231f20;
    color: #fff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

#blazor-error-ui .reload {
    margin-left: 12px;
    color: #fff;
    font-weight: 700;
}

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

@media (max-width: 760px) {
    .shell {
        padding: 12px 10px 20px;
    }

    .survey-header,
    .survey-panel,
    .page-footer,
    .state-wrap {
        padding-left: 12px;
        padding-right: 12px;
    }

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

    .brand-divider {
        display: none;
    }

    .admin-brand-header .admin-brand-lockup,
    .admin-header-inner,
    .admin-dashboard-main {
        padding-left: 14px;
        padding-right: 14px;
    }

    .admin-header-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-user-card {
        min-width: 0;
    }

    .admin-login-card {
        padding-left: 18px;
        padding-right: 18px;
    }

    .admin-range-row,
    .admin-table-toolbar,
    .donut-layout,
    .admin-pagination {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-range-fields,
    .admin-inline-filters,
    .admin-search-group,
    .admin-pagination-controls {
        flex-wrap: wrap;
    }

    .admin-summary-grid,
    .admin-chart-grid,
    .admin-detail-grid {
        grid-template-columns: 1fr;
    }

    .admin-side-chart-grid {
        grid-template-columns: 1fr;
    }

    .trend-label-row {
        grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    }

    .admin-detail-modal {
        padding: 18px;
    }

    .donut-wrap {
        flex-basis: auto;
        width: 100%;
    }

    .rating-row {
        grid-template-columns: 32px minmax(0, 1fr);
    }

    .rating-value {
        grid-column: 1 / -1;
        text-align: left;
    }

    .panel-toolbar {
        flex-direction: column;
        align-items: stretch;
        padding-left: 4px;
        padding-right: 4px;
    }

    .language-toggle {
        align-self: flex-start;
    }

    .question-block,
    .submit-row,
    .survey-footer,
    .privacy-divider {
        padding-left: 4px;
        padding-right: 4px;
    }

    .rating-grid {
        gap: 8px;
    }

    .choice-button {
        min-height: 46px;
    }

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

    .security-note {
        flex-direction: column;
        text-align: center;
    }
}
