:root {
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --brand-primary: #15356e;
    --brand-primary-deep: #0e2550;
    --brand-accent: #00a4d6;
    --brand-muted: #eff5ff;
    --surface: #ffffff;
    --surface-soft: #f8fbff;
    --surface-tint: #eef4ff;
    --text-color: #1f2c3a;
    --text-muted: #596b80;
    --border-color: #dce5f4;
    --shadow-soft: 0 18px 34px rgba(16, 59, 129, 0.08);
    --shadow-card: 0 12px 30px rgba(16, 59, 129, 0.08);
    --rating-5: #5f9762;
    --rating-5-deep: #355a37;
    --rating-4: #94b87e;
    --rating-4-deep: #50684b;
    --rating-3: #ea9c84;
    --rating-3-deep: #80554a;
    --rating-2: #f16946;
    --rating-2-deep: #7b3323;
    --rating-1: #bb583d;
    --rating-1-deep: #642f23;
}

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

body {
    margin: 0;
    padding: 2rem 1rem 3rem;
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    color: var(--text-color);
}

.page {
    max-width: 1180px;
    margin: 0 auto;
}

.site-brand {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 1.5rem;
}

.site-brand img {
    width: 180px;
    height: auto;
}

.hero {
    background: linear-gradient(135deg, #ffffff 0%, #f5f9ff 100%);
    color: var(--brand-primary);
    border-radius: 28px;
    padding: 3rem;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    position: relative;
    min-height: 250px;
    display: grid;
    align-items: center;
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.96) 26%, rgba(255, 255, 255, 0.9) 42%, rgba(255, 255, 255, 0.56) 62%, rgba(255, 255, 255, 0.14) 82%, rgba(255, 255, 255, 0.04) 100%),
        url('../herobackground.jpg') 72% center/cover no-repeat;
    transform: scale(1.01);
}

.hero::after {
    content: "";
    position: absolute;
    left: 3rem;
    right: 3rem;
    bottom: 1.15rem;
    height: 4px;
    border-radius: 999px;
    z-index: -1;
    background: linear-gradient(90deg, rgba(95, 151, 98, 0.95) 0%, rgba(95, 151, 98, 0.95) 34%, rgba(64, 104, 179, 0.95) 34%, rgba(64, 104, 179, 0.95) 56%, rgba(226, 84, 59, 0.95) 56%, rgba(226, 84, 59, 0.95) 76%, rgba(234, 143, 40, 0.95) 76%, rgba(234, 143, 40, 0.95) 90%, rgba(243, 209, 19, 0.95) 90%, rgba(243, 209, 19, 0.95) 100%);
    opacity: 0.9;
}

.hero__content {
    max-width: min(560px, 100%);
    padding: 1.45rem 1.6rem 1.7rem;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.72) 100%);
    border: 1px solid rgba(220, 229, 244, 0.95);
    box-shadow: 0 16px 30px rgba(16, 59, 129, 0.08);
    backdrop-filter: blur(10px);
}

.hero h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--brand-primary);
    text-shadow: none;
}

.hero p {
    max-width: 620px;
    font-size: 1.1rem;
    line-height: 1.65;
    margin: 0;
    color: var(--text-color);
    text-shadow: none;
}

.content {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.glass-card {
    background: linear-gradient(135deg, #f9fbff, #eef4ff);
    border-radius: 18px;
    padding: 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: var(--shadow-soft);
}

.section-title {
    margin: 0;
    color: var(--brand-primary);
}

.section-subtitle {
    margin: 0.45rem 0 0;
    color: var(--text-muted);
    line-height: 1.5;
}

.section-heading-row,
.dashboard-shell__header,
.chart-section__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.form-grid--results-filter {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
}

label {
    font-weight: 600;
    display: block;
    margin-bottom: 0.35rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 0.78rem 0.95rem;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    font-size: 1rem;
    background: #fff;
    color: var(--text-color);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

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

input:focus,
textarea:focus,
select:focus {
    border-color: var(--brand-accent);
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 164, 214, 0.14);
}

button {
    background: linear-gradient(135deg, var(--brand-accent), #02c1ef);
    border: none;
    color: #fff;
    padding: 0.9rem 2.4rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 15px 30px rgba(2, 193, 239, 0.28);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(2, 193, 239, 0.32);
}

.hint {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

.submit-row {
    display: flex;
    justify-content: center;
}

.success-message,
.error-message {
    padding: 0.95rem 1.1rem;
    border-radius: 14px;
    font-weight: 700;
}

.success-message {
    background: rgba(34, 197, 94, 0.14);
    color: #14532d;
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.error-message {
    background: rgba(244, 63, 94, 0.14);
    color: #7c1d35;
    border: 1px solid rgba(244, 63, 94, 0.3);
}

.tab-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tab-button {
    background: #eef3ff;
    border: 1px solid var(--border-color);
    color: var(--brand-primary);
    padding: 0.55rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    box-shadow: none;
}

.tab-button.active {
    background: linear-gradient(135deg, var(--brand-accent), #02c1ef);
    color: #fff;
    border-color: #02c1ef;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.filter-form {
    margin-bottom: 0.5rem;
}

.filter-form--results {
    gap: 1rem;
}

.filter-form--scope,
.filter-form--list {
    gap: 0.8rem;
    margin-bottom: 0;
}

.results-scope-bar {
    margin-top: 1rem;
    padding: 1rem 1.05rem 0.95rem;
    border-radius: 16px;
    border: 1px solid #dbe6ff;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.form-grid--scope-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
}

.section-heading-row--list {
    align-items: flex-end;
}

.filter-form--list {
    width: min(100%, 520px);
    justify-self: end;
}

.form-grid--list-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
}

.filter-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 0.35rem;
}

.filter-row--actions {
    margin-top: 0;
    justify-content: flex-start;
}

.filter-summary {
    margin-top: 0;
}

.link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.88rem 1.8rem;
    border-radius: 999px;
    border: 1px solid var(--brand-accent);
    color: var(--brand-accent);
    text-decoration: none;
    font-weight: 700;
    transition: background 0.2s ease;
}

.link-button:hover {
    background: rgba(0, 164, 214, 0.08);
}

.smiley-legend {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.smiley-legend--compact {
    display: grid;
    grid-template-columns: repeat(5, max-content);
    justify-content: end;
    gap: 0.5rem;
}

.dashboard-shell__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}

.dashboard-shell__intro,
.dashboard-shell__legend {
    min-width: 0;
}

.smiley-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid #e3ebf8;
    color: var(--brand-primary);
    font-weight: 700;
    font-size: 0.84rem;
    min-height: 40px;
}

.smiley-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--rating-3);
}

.smiley-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.smiley-icon--lg {
    width: 42px;
    height: 42px;
}

.smiley-icon--md {
    width: 34px;
    height: 34px;
}

.smiley-icon--sm {
    width: 22px;
    height: 22px;
}

.smiley-icon__head {
    fill: var(--smiley-fill, var(--rating-3));
    stroke: var(--smiley-stroke, var(--rating-3-deep));
    stroke-width: 2.5;
}

.smiley-icon__eye,
.smiley-icon__mouth,
.smiley-icon__brow {
    stroke: var(--smiley-feature, var(--rating-3-deep));
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.smiley-icon__eye {
    fill: var(--smiley-feature, var(--rating-3-deep));
    stroke: none;
}

.smiley-icon__mouth {
    stroke-width: 3.5;
}

.smiley-icon__brow {
    stroke-width: 2.8;
}

.smiley-icon--excellent {
    --smiley-fill: var(--rating-5);
    --smiley-stroke: var(--rating-5-deep);
    --smiley-feature: #2c4a2e;
}

.smiley-icon--good {
    --smiley-fill: var(--rating-4);
    --smiley-stroke: var(--rating-4-deep);
    --smiley-feature: #465e42;
}

.smiley-icon--neutral {
    --smiley-fill: var(--rating-3);
    --smiley-stroke: var(--rating-3-deep);
    --smiley-feature: #744b43;
}

.smiley-icon--poor {
    --smiley-fill: var(--rating-2);
    --smiley-stroke: var(--rating-2-deep);
    --smiley-feature: #6d2e22;
}

.smiley-icon--bad {
    --smiley-fill: var(--rating-1);
    --smiley-stroke: var(--rating-1-deep);
    --smiley-feature: #55261c;
}

.question-block {
    margin-top: 1rem;
}

.question-block--smiley {
    padding: 0.85rem;
    border: 1px solid #dde7f6;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
}

.question-header {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.question-number {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--brand-primary);
    color: #fff;
    font-weight: 700;
}

.question-label {
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: 0.2rem;
}

.question-hint {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.smiley-scale {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.45rem;
}

.smiley-option {
    display: block;
    margin: 0;
}

.smiley-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.smiley-option__card {
    min-height: 86px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-align: center;
    padding: 0.65rem 0.4rem;
    border-radius: 14px;
    border: 2px solid transparent;
    background: #fff;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    box-shadow: 0 10px 20px rgba(16, 59, 129, 0.06);
}

.smiley-option__card--excellent {
    background: linear-gradient(180deg, rgba(95, 151, 98, 0.14), rgba(255, 255, 255, 0.98));
    border-color: rgba(95, 151, 98, 0.35);
}

.smiley-option__card--good {
    background: linear-gradient(180deg, rgba(148, 184, 126, 0.18), rgba(255, 255, 255, 0.98));
    border-color: rgba(148, 184, 126, 0.35);
}

.smiley-option__card--neutral {
    background: linear-gradient(180deg, rgba(234, 156, 132, 0.16), rgba(255, 255, 255, 0.98));
    border-color: rgba(234, 156, 132, 0.35);
}

.smiley-option__card--poor {
    background: linear-gradient(180deg, rgba(241, 105, 70, 0.14), rgba(255, 255, 255, 0.98));
    border-color: rgba(241, 105, 70, 0.35);
}

.smiley-option__card--bad {
    background: linear-gradient(180deg, rgba(187, 88, 61, 0.18), rgba(255, 255, 255, 0.98));
    border-color: rgba(187, 88, 61, 0.35);
}

.smiley-option__text {
    font-weight: 700;
    color: var(--brand-primary);
    line-height: 1.35;
    font-size: 0.78rem;
}

.smiley-option:hover .smiley-option__card {
    transform: translateY(-2px);
}

.smiley-option input:checked + .smiley-option__card {
    border-color: var(--brand-primary);
    box-shadow: 0 16px 30px rgba(16, 59, 129, 0.16);
    transform: translateY(-2px);
}

.smiley-option input:focus-visible + .smiley-option__card {
    outline: 4px solid rgba(0, 164, 214, 0.18);
    outline-offset: 2px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1rem;
}

.stats-grid--dashboard {
    margin-top: 1rem;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    align-items: stretch;
}

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

.dashboard-overview-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.95fr);
    gap: 1rem;
    align-items: stretch;
}

.dashboard-hero-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(240, 246, 255, 0.98));
    border: 1px solid #dbe6ff;
    border-radius: 22px;
    padding: 1.25rem 1.3rem;
    box-shadow: var(--shadow-card);
    display: grid;
    gap: 0.9rem;
}

.dashboard-hero-card--excellent {
    background: linear-gradient(145deg, rgba(95, 151, 98, 0.14), rgba(255, 255, 255, 0.98));
}

.dashboard-hero-card--good {
    background: linear-gradient(145deg, rgba(148, 184, 126, 0.18), rgba(255, 255, 255, 0.98));
}

.dashboard-hero-card--neutral {
    background: linear-gradient(145deg, rgba(234, 156, 132, 0.16), rgba(255, 255, 255, 0.98));
}

.dashboard-hero-card--poor,
.dashboard-hero-card--bad {
    background: linear-gradient(145deg, rgba(241, 105, 70, 0.14), rgba(255, 255, 255, 0.98));
}

.dashboard-hero-card__eyebrow {
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 800;
}

.dashboard-hero-card__score-row {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    flex-wrap: wrap;
}

.dashboard-hero-card__score {
    font-size: clamp(2.4rem, 4vw, 3.3rem);
    line-height: 0.95;
    font-weight: 800;
    color: var(--brand-primary);
}

.dashboard-hero-card__score span {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-left: 0.35rem;
}

.dashboard-hero-card__positive {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.9);
    color: var(--brand-primary);
    font-weight: 800;
}

.dashboard-hero-card__meta,
.dashboard-hero-card__foot {
    color: var(--text-muted);
    line-height: 1.45;
}

.dashboard-hero-card__foot {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-weight: 700;
}

.distribution-bar--hero {
    min-height: 22px;
}

.stat-card {
    padding: 1.05rem;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid #dbe6ff;
    box-shadow: var(--shadow-card);
    min-height: 126px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.92rem;
    color: #53667e;
    line-height: 1.35;
    min-height: 2.5em;
}

.stat-value {
    margin-top: auto;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--brand-primary);
    display: inline-flex;
    align-items: baseline;
    gap: 0.3rem;
}

.stat-value__suffix {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-muted);
}

.insight-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    grid-auto-rows: 1fr;
    align-items: stretch;
}

.insight-card {
    background: var(--surface);
    border: 1px solid #dbe6ff;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: var(--shadow-card);
    min-height: 142px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.insight-grid--dashboard-focus {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.insight-card--attention {
    border-color: rgba(241, 105, 70, 0.28);
    background: linear-gradient(180deg, rgba(241, 105, 70, 0.08), #fff);
}

.insight-card__eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 800;
}

.insight-card__title {
    margin-top: 0.45rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--brand-primary);
    min-height: 2.4em;
}

.insight-card__meta {
    margin-top: auto;
    padding-top: 0.6rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.chart-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chart-grid {
    display: grid;
    gap: 1rem;
    align-items: stretch;
    grid-auto-rows: 1fr;
}

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

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}

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

.chart-grid--question-team {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.chart-card {
    background: var(--surface);
    border: 1px solid #dbe6ff;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: var(--shadow-card);
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.chart-card--detail {
    gap: 0.75rem;
}

.chart-card--timeline {
    gap: 0.9rem;
    min-width: 0;
}

.chart-card h3 {
    margin: 0;
    color: var(--brand-primary);
}

.chart-card__header {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-height: 78px;
}

.chart-card__header--static {
    min-height: auto;
}

.chart-card__subtitle {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.45;
}

.chart-mount {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    flex: 1;
}

.chart-mount--timeline {
    min-height: 320px;
}

.mini-stats {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.mini-stat {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: var(--brand-muted);
    color: var(--brand-primary);
    font-weight: 700;
    font-size: 0.82rem;
}

.timeline-insight-grid {
    display: grid;
    gap: 0.9rem;
}

.timeline-insight-grid__inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    align-items: stretch;
}

.timeline-insight-card {
    border-radius: 18px;
    border: 1px solid #dbe6ff;
    background: linear-gradient(180deg, rgba(246, 249, 255, 0.96), #fff);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.38rem;
    min-height: 154px;
    box-shadow: var(--shadow-card);
}

.timeline-insight-card--excellent {
    background: linear-gradient(180deg, rgba(95, 151, 98, 0.13), #fff);
    border-color: rgba(95, 151, 98, 0.24);
}

.timeline-insight-card--good {
    background: linear-gradient(180deg, rgba(148, 184, 126, 0.16), #fff);
    border-color: rgba(148, 184, 126, 0.24);
}

.timeline-insight-card--neutral {
    background: linear-gradient(180deg, rgba(234, 156, 132, 0.14), #fff);
    border-color: rgba(234, 156, 132, 0.24);
}

.timeline-insight-card--poor,
.timeline-insight-card--bad {
    background: linear-gradient(180deg, rgba(241, 105, 70, 0.14), #fff);
    border-color: rgba(241, 105, 70, 0.24);
}

.timeline-insight-card__eyebrow {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.timeline-insight-card__value {
    font-size: 1.7rem;
    line-height: 1.05;
    font-weight: 800;
    color: var(--brand-primary);
}

.timeline-insight-card__meta,
.timeline-insight-card__delta {
    color: var(--text-muted);
    line-height: 1.45;
}

.timeline-insight-card__delta {
    margin-top: auto;
    font-weight: 700;
}

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

.timeline-grid--timeline > * {
    min-width: 0;
}

.chart-mount--timeline-list {
    min-height: 320px;
}

.timeline-year-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.58rem;
    align-items: start;
}

.timeline-year-head,
.timeline-year-row {
    display: grid;
    grid-template-columns: 84px 96px 110px 96px minmax(0, 1fr);
    gap: 0.8rem;
    align-items: center;
}

.timeline-year-head {
    padding: 0 0.45rem 0.1rem;
}

.timeline-year-head__cell--year {
    grid-column: 1;
}

.timeline-year-head__cell--responses {
    grid-column: 2;
}

.timeline-year-head__cell--average {
    grid-column: 3;
}

.timeline-year-head__cell--positive {
    grid-column: 4;
}

.timeline-year-head__cell--distribution {
    grid-column: 5;
}

.timeline-year-head__cell {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.timeline-year-row {
    padding: 0.72rem 0.88rem;
    border-radius: 14px;
    border: 1px solid #dbe6ff;
    background: #fff;
    grid-template-areas: "year responses average positive distribution";
}

.timeline-year-row__year {
    grid-area: year;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    background: #f4f7fc;
    border: 1px solid #dfe7f5;
    font-size: 1rem;
    font-weight: 800;
    color: var(--brand-primary);
}

.timeline-year-row__body,
.timeline-year-row__value {
    min-width: 0;
}

.timeline-year-row__body {
    grid-area: distribution;
    display: flex;
    align-items: center;
}

.timeline-year-row__value {
    color: var(--text-muted);
    line-height: 1.25;
    font-size: 0.96rem;
    font-weight: 700;
}

.timeline-year-row__value::before {
    display: none;
    content: attr(data-label);
}

.timeline-year-row__value--responses,
.timeline-year-row__value--positive {
    font-variant-numeric: tabular-nums;
}

.timeline-year-row__value--responses {
    grid-area: responses;
}

.timeline-year-row__value--average {
    grid-area: average;
    justify-content: flex-start;
}

.timeline-year-row__value--positive {
    grid-area: positive;
}

.timeline-year-row__score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 86px;
    padding: 0.34rem 0.58rem;
    border-radius: 999px;
    border: 1px solid #dbe6ff;
    font-weight: 800;
    color: var(--brand-primary);
    background: #f6f9ff;
}

.timeline-year-row__score--excellent {
    background: rgba(95, 151, 98, 0.14);
    border-color: rgba(95, 151, 98, 0.28);
}

.timeline-year-row__score--good {
    background: rgba(148, 184, 126, 0.18);
    border-color: rgba(148, 184, 126, 0.28);
}

.timeline-year-row__score--neutral {
    background: rgba(234, 156, 132, 0.16);
    border-color: rgba(234, 156, 132, 0.28);
}

.timeline-year-row__score--poor,
.timeline-year-row__score--bad {
    background: rgba(241, 105, 70, 0.16);
    border-color: rgba(241, 105, 70, 0.28);
}

.distribution-bar--year {
    min-height: 14px;
    box-shadow: inset 0 0 0 1px rgba(219, 230, 255, 0.85);
    width: 100%;
}

.timeline-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-highlight-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.36rem 0.68rem;
    border-radius: 999px;
    background: #f6f9ff;
    border: 1px solid #dbe6ff;
    color: var(--brand-primary);
    font-size: 0.82rem;
    font-weight: 700;
}

.timeline-summary {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.timeline-month-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.timeline-month-legend__item {
    display: inline-flex;
    align-items: center;
    padding: 0.32rem 0.62rem;
    border-radius: 999px;
    background: #f6f9ff;
    border: 1px solid #dbe6ff;
    color: var(--brand-primary);
    font-size: 0.82rem;
    font-weight: 700;
}

.timeline-combo-chart {
    width: 100%;
    min-height: 280px;
    border-radius: 18px;
    border: 1px solid #e1e8f7;
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.95), #fff);
    overflow: hidden;
}

.timeline-combo-chart svg {
    display: block;
    width: 100%;
    height: 300px;
}

.timeline-combo-chart__grid {
    stroke: #dde6f5;
    stroke-width: 1;
    stroke-dasharray: 4 6;
}

.timeline-combo-chart__axis {
    fill: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}

.timeline-combo-chart__axis--excellent {
    fill: var(--rating-5-deep);
}

.timeline-combo-chart__axis--good {
    fill: var(--rating-4-deep);
}

.timeline-combo-chart__axis--neutral {
    fill: var(--rating-3-deep);
}

.timeline-combo-chart__axis--poor {
    fill: var(--rating-2-deep);
}

.timeline-combo-chart__axis--bad {
    fill: var(--rating-1-deep);
}

.timeline-combo-chart__tick,
.timeline-combo-chart__year {
    fill: var(--brand-primary);
    font-size: 12px;
    font-weight: 700;
}

.timeline-combo-chart__year {
    fill: var(--text-muted);
}

.timeline-combo-chart__line {
    fill: none;
    stroke: var(--brand-primary);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 6px 10px rgba(15, 34, 68, 0.12));
}

.timeline-combo-chart__point {
    fill: #fff;
    stroke: var(--brand-primary);
    stroke-width: 3;
}

.timeline-combo-chart__bar {
    opacity: 0.72;
}

.timeline-combo-chart__bar--excellent {
    fill: var(--rating-5);
}

.timeline-combo-chart__bar--good {
    fill: var(--rating-4);
}

.timeline-combo-chart__bar--neutral {
    fill: var(--rating-3);
}

.timeline-combo-chart__bar--poor {
    fill: var(--rating-2);
}

.timeline-combo-chart__bar--bad {
    fill: var(--rating-1);
}

.timeline-recent-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.timeline-recent-card {
    border-radius: 14px;
    border: 1px solid #dbe6ff;
    background: #fff;
    padding: 0.7rem 0.8rem;
    display: grid;
    gap: 0.15rem;
}

.timeline-recent-card--excellent {
    background: rgba(95, 151, 98, 0.12);
    border-color: rgba(95, 151, 98, 0.24);
}

.timeline-recent-card--good {
    background: rgba(148, 184, 126, 0.16);
    border-color: rgba(148, 184, 126, 0.24);
}

.timeline-recent-card--neutral {
    background: rgba(234, 156, 132, 0.14);
    border-color: rgba(234, 156, 132, 0.24);
}

.timeline-recent-card--poor,
.timeline-recent-card--bad {
    background: rgba(241, 105, 70, 0.12);
    border-color: rgba(241, 105, 70, 0.24);
}

.timeline-recent-card__label {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--brand-primary);
}

.timeline-recent-card__value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--brand-primary);
}

.timeline-recent-card__meta {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.timeline-month-strip-wrap {
    overflow-x: auto;
    padding-bottom: 0.3rem;
    width: 100%;
    max-width: 100%;
}

.timeline-month-strip {
    display: grid;
    grid-template-columns: repeat(24, minmax(0, 1fr));
    gap: 0.38rem;
    align-items: end;
    min-height: 250px;
    width: max-content;
    min-width: 720px;
}

.timeline-month {
    min-width: 0;
    display: grid;
    gap: 0.28rem;
    justify-items: stretch;
}

.timeline-month__year {
    min-height: 1.1rem;
    font-size: 0.72rem;
    font-weight: 800;
    text-align: center;
    color: var(--text-muted);
}

.timeline-month__year--placeholder {
    color: transparent;
}

.timeline-month__bar-wrap {
    position: relative;
    min-height: 160px;
    display: flex;
    align-items: end;
    justify-content: center;
}

.timeline-month__bar {
    width: 100%;
    min-height: 8px;
    border-radius: 12px 12px 5px 5px;
    border: 1px solid rgba(15, 34, 68, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.timeline-month__bar--excellent {
    background: linear-gradient(180deg, rgba(95, 151, 98, 0.96), rgba(148, 184, 126, 0.92));
}

.timeline-month__bar--good {
    background: linear-gradient(180deg, rgba(148, 184, 126, 0.95), rgba(196, 214, 161, 0.92));
}

.timeline-month__bar--neutral {
    background: linear-gradient(180deg, rgba(234, 156, 132, 0.95), rgba(245, 192, 176, 0.92));
}

.timeline-month__bar--poor {
    background: linear-gradient(180deg, rgba(241, 105, 70, 0.95), rgba(233, 138, 112, 0.92));
}

.timeline-month__bar--bad {
    background: linear-gradient(180deg, rgba(187, 88, 61, 0.96), rgba(220, 131, 106, 0.92));
}

.timeline-month__label,
.timeline-month__score {
    text-align: center;
    font-size: 0.72rem;
    line-height: 1.2;
}

.timeline-month__label {
    font-weight: 800;
    color: var(--brand-primary);
}

.timeline-month__score {
    color: var(--text-muted);
    font-weight: 700;
}

.timeline-month__tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%);
    min-width: 138px;
    padding: 0.6rem 0.7rem;
    border-radius: 12px;
    background: rgba(15, 34, 68, 0.96);
    color: #fff;
    box-shadow: 0 16px 30px rgba(15, 34, 68, 0.22);
    display: grid;
    gap: 0.1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
    z-index: 4;
}

.timeline-month__tooltip strong {
    font-size: 0.82rem;
}

.timeline-month__tooltip span {
    font-size: 0.76rem;
    line-height: 1.35;
}

.timeline-month:hover .timeline-month__tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

.distribution-bar {
    display: flex;
    width: 100%;
    min-height: 18px;
    background: #edf2fb;
    border-radius: 999px;
    overflow: hidden;
}

.distribution-bar__segment {
    min-width: 0;
}

.distribution-bar__segment--excellent {
    background: var(--rating-5);
}

.distribution-bar__segment--good {
    background: var(--rating-4);
}

.distribution-bar__segment--neutral {
    background: var(--rating-3);
}

.distribution-bar__segment--poor {
    background: var(--rating-2);
}

.distribution-bar__segment--bad {
    background: var(--rating-1);
}

.distribution-legend {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.65rem;
}

.distribution-legend__item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.75rem;
    border-radius: 14px;
    border: 1px solid #e4ebf7;
    background: #fcfdff;
}

.distribution-legend__copy {
    min-width: 0;
}

.distribution-legend__title {
    font-weight: 700;
    color: var(--brand-primary);
}

.distribution-legend__meta {
    margin-top: 0.15rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.bar-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.bar-list--dense {
    gap: 0.65rem;
}

.question-insight-card {
    gap: 0.85rem;
}

.question-insight-card__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.8rem;
    align-items: start;
}

.question-insight-card__heading {
    min-width: 0;
}

.question-insight-card__score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    font-weight: 800;
    color: var(--brand-primary);
    background: #f6f9ff;
    border: 1px solid #dbe6ff;
}

.question-insight-card__score--excellent {
    background: rgba(95, 151, 98, 0.14);
    border-color: rgba(95, 151, 98, 0.28);
}

.question-insight-card__score--good {
    background: rgba(148, 184, 126, 0.18);
    border-color: rgba(148, 184, 126, 0.28);
}

.question-insight-card__score--neutral {
    background: rgba(234, 156, 132, 0.16);
    border-color: rgba(234, 156, 132, 0.28);
}

.question-insight-card__score--poor,
.question-insight-card__score--bad {
    background: rgba(241, 105, 70, 0.16);
    border-color: rgba(241, 105, 70, 0.28);
}

.mini-stats--question {
    gap: 0.5rem;
}

.question-insight-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.question-insight-card__dominant {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    color: var(--brand-primary);
    font-weight: 700;
}

.question-insight-card__dominant-icon {
    display: inline-flex;
    align-items: center;
}

.question-insight-card__dominant-text {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.question-insight-card__delta {
    display: inline-flex;
    align-items: center;
    padding: 0.34rem 0.65rem;
    border-radius: 999px;
    background: #f6f9ff;
    border: 1px solid #dbe6ff;
    color: var(--brand-primary);
    font-size: 0.82rem;
    font-weight: 800;
}

.question-insight-card__delta.is-positive {
    background: rgba(95, 151, 98, 0.12);
    border-color: rgba(95, 151, 98, 0.24);
}

.question-insight-card__delta.is-negative {
    background: rgba(241, 105, 70, 0.12);
    border-color: rgba(241, 105, 70, 0.24);
}

.comparison-warning-card {
    grid-column: 1 / -1;
    border-radius: 16px;
    border: 1px solid rgba(241, 105, 70, 0.2);
    background: linear-gradient(180deg, rgba(241, 105, 70, 0.08), rgba(255, 255, 255, 0.98));
    padding: 1rem 1.05rem;
    box-shadow: var(--shadow-card);
}

.comparison-warning-card h3 {
    margin: 0 0 0.35rem;
    color: var(--brand-primary);
}

.comparison-card {
    gap: 0.72rem;
}

.comparison-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.comparison-card__gap {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.68rem;
    border-radius: 999px;
    background: #eef4ff;
    border: 1px solid #d6e2f8;
    color: var(--brand-primary);
    font-weight: 800;
    white-space: nowrap;
}

.comparison-card__team {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: baseline;
    flex-wrap: wrap;
}

.comparison-card__team-name {
    font-weight: 800;
    color: var(--brand-primary);
}

.comparison-card__team-meta {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.bar-row {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.bar-row__header {
    display: flex;
    justify-content: space-between;
    gap: 0.7rem;
    align-items: baseline;
    flex-wrap: wrap;
}

.bar-row__title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 800;
    color: var(--brand-primary);
}

.bar-row__name--solo,
.bar-row__name {
    font-weight: 800;
    color: var(--brand-primary);
}

.bar-row__rank {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.bar-row__meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.bar-track__fill {
    height: 100%;
    border-radius: inherit;
}

.bar-track__fill--excellent {
    background: linear-gradient(90deg, rgba(95, 151, 98, 0.72), var(--rating-5));
}

.bar-track__fill--good {
    background: linear-gradient(90deg, rgba(148, 184, 126, 0.72), var(--rating-4));
}

.bar-track__fill--neutral {
    background: linear-gradient(90deg, rgba(234, 156, 132, 0.72), var(--rating-3));
}

.bar-track__fill--poor {
    background: linear-gradient(90deg, rgba(241, 105, 70, 0.72), var(--rating-2));
}

.bar-track__fill--bad {
    background: linear-gradient(90deg, rgba(187, 88, 61, 0.72), var(--rating-1));
}

.bar-track__fill--empty {
    background: #cfd8ea;
}

.heatmap-wrapper {
    overflow: auto;
    border: 1px solid #dbe6ff;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-card);
}

.heatmap-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 860px;
}

.heatmap-table th,
.heatmap-table td {
    padding: 0.85rem;
    border-bottom: 1px solid #e1e9f6;
    border-right: 1px solid #e1e9f6;
    text-align: left;
    vertical-align: middle;
}

.heatmap-table th:first-child,
.heatmap-table td:first-child {
    border-left: 1px solid #e1e9f6;
}

.heatmap-table thead th {
    position: sticky;
    top: 0;
    background: #f2f6ff;
    color: var(--brand-primary);
    font-weight: 800;
    z-index: 1;
}

.heatmap-table__team-name {
    font-weight: 800;
    color: var(--brand-primary);
}

.heatmap-table__team-meta {
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.heatmap-cell {
    min-width: 118px;
    border-radius: 0;
}

.heatmap-cell__score {
    font-weight: 800;
    color: var(--brand-primary-deep);
}

.heatmap-cell__label {
    margin-top: 0.2rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.heatmap-cell--excellent {
    background: rgba(95, 151, 98, 0.18);
}

.heatmap-cell--good {
    background: rgba(148, 184, 126, 0.2);
}

.heatmap-cell--neutral {
    background: rgba(234, 156, 132, 0.2);
}

.heatmap-cell--poor {
    background: rgba(241, 105, 70, 0.18);
}

.heatmap-cell--bad {
    background: rgba(187, 88, 61, 0.22);
}

.heatmap-cell--empty {
    background: #f4f7fc;
}

.empty-state-card {
    text-align: left;
}

.response-list {
    display: grid;
    gap: 0.55rem;
}

.response-card {
    background: #fff;
    border: 1px solid #dbe6ff;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: var(--shadow-card);
    display: grid;
    gap: 1rem;
}

.response-card--collapsible {
    padding: 0;
    overflow: hidden;
}

.response-card--collapsible summary {
    list-style: none;
}

.response-card--collapsible summary::-webkit-details-marker {
    display: none;
}

.response-card__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0;
    padding: 0.75rem 0.9rem;
}

.response-card__toggle {
    cursor: pointer;
}

.response-card__toggle:hover {
    background: linear-gradient(180deg, rgba(238, 243, 255, 0.35), rgba(255, 255, 255, 0));
}

.response-card__summary {
    min-width: 0;
    display: grid;
    gap: 0;
}

.response-card__summary-line {
    display: grid;
    grid-template-columns: minmax(118px, max-content) minmax(92px, max-content) minmax(132px, 1fr) minmax(170px, 1.35fr) minmax(92px, max-content) minmax(92px, max-content);
    gap: 0.45rem;
    align-items: center;
    min-width: 0;
}

.response-card__item {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0.36rem 0.62rem;
    border-radius: 999px;
    border: 1px solid #dde6f6;
    background: #f8fbff;
    color: var(--brand-primary);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
}

.response-card__item--date {
    background: transparent;
    border-style: dashed;
    color: var(--text-muted);
}

.response-card__item--team,
.response-card__item--address {
    background: #fbfcff;
}

.response-card__item--score {
    justify-self: end;
    background: #eef4ff;
    border-color: #d4e0f8;
}

.response-meta {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    align-items: center;
}

.meta-pill {
    background: #eef3ff;
    color: var(--brand-primary);
    border: 1px solid #dbe6ff;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font-weight: 700;
    font-size: 0.84rem;
}

.response-score-summary {
    margin-top: 0;
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.response-score-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    background: #f7fbff;
    border: 1px solid #dbe6ff;
    color: var(--brand-primary);
    font-weight: 700;
    font-size: 0.88rem;
}

.response-card__toggle-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--brand-primary);
    font-weight: 800;
    align-self: center;
    justify-self: end;
    white-space: nowrap;
}

.response-card__toggle-label {
    font-size: 0.82rem;
    letter-spacing: 0.01em;
}

.response-card__chevron {
    width: 0.65rem;
    height: 0.65rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.response-card--collapsible[open] .response-card__chevron {
    transform: rotate(225deg);
}

.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
}

.pagination-bar--bottom {
    margin-top: 1rem;
    margin-bottom: 0;
}

.pagination-bar__summary {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.pagination-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.42rem;
    flex-wrap: wrap;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    min-height: 2.15rem;
    padding: 0.42rem 0.72rem;
    border-radius: 12px;
    border: 1px solid #dbe6ff;
    background: #fff;
    color: var(--brand-primary);
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(15, 34, 68, 0.06);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.pagination-link:hover {
    transform: translateY(-1px);
    border-color: #b8c9eb;
    box-shadow: 0 12px 24px rgba(15, 34, 68, 0.1);
}

.pagination-link:focus-visible {
    outline: 3px solid rgba(26, 72, 140, 0.18);
    outline-offset: 2px;
}

.pagination-link.is-active {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
    box-shadow: 0 14px 28px rgba(15, 34, 68, 0.18);
}

.response-card__content {
    border-top: 1px solid #e7eefc;
    padding: 0.9rem;
    display: grid;
    gap: 0.9rem;
}

.response-card__actions,
.response-delete {
    margin: 0;
    justify-self: end;
    align-self: start;
}

.response-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.85rem;
    align-items: stretch;
}

.response-sections--wide {
    grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr) minmax(240px, 1fr);
}

.response-section {
    background: var(--surface-soft);
    border: 1px solid #e4ebf8;
    border-radius: 14px;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
}

.response-section--muted {
    background: #fbfcff;
}

.response-section h3 {
    margin: 0;
    color: var(--brand-primary);
    font-size: 1rem;
}

.rating-answer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    grid-auto-rows: 1fr;
    align-items: stretch;
}

.rating-answer-item {
    background: #fff;
    border: 1px solid #e2e9f5;
    border-radius: 14px;
    padding: 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    justify-content: space-between;
    min-height: 92px;
    height: 100%;
}

.rating-answer-item__label {
    font-weight: 800;
    color: var(--brand-primary);
}

.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.6rem;
    border-radius: 14px;
    border: 1px solid #dfe7f4;
    background: #fff;
    min-height: 52px;
    width: 100%;
    align-self: stretch;
}

.rating-badge--excellent {
    background: rgba(95, 151, 98, 0.12);
    border-color: rgba(95, 151, 98, 0.35);
}

.rating-badge--good {
    background: rgba(148, 184, 126, 0.16);
    border-color: rgba(148, 184, 126, 0.35);
}

.rating-badge--neutral {
    background: rgba(234, 156, 132, 0.15);
    border-color: rgba(234, 156, 132, 0.35);
}

.rating-badge--poor {
    background: rgba(241, 105, 70, 0.12);
    border-color: rgba(241, 105, 70, 0.3);
}

.rating-badge--bad {
    background: rgba(187, 88, 61, 0.18);
    border-color: rgba(187, 88, 61, 0.32);
}

.rating-badge--empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.45rem 0.7rem;
    border-radius: 12px;
    background: #f4f7fc;
    border: 1px dashed #d6deed;
    color: var(--text-muted);
}

.rating-badge__copy {
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
}

.rating-badge__label {
    font-weight: 800;
    color: var(--brand-primary);
    line-height: 1.2;
}

.rating-badge__score {
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.answer-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.94rem;
    color: var(--text-color);
    flex: 1;
}

.answer-list div {
    line-height: 1.5;
    word-break: break-word;
}

.answer-list strong {
    color: var(--brand-primary);
    font-weight: 800;
    margin-right: 0.2rem;
}

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

.table-button {
    background: #fff;
    color: #c62828;
    border: 1px solid #c62828;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.82rem;
    box-shadow: none;
}

.table-button:hover {
    background: #c62828;
    color: #fff;
    transform: none;
    box-shadow: none;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.95rem;
}

th,
td {
    padding: 0.85rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

th {
    background: var(--brand-muted);
    color: var(--brand-primary);
    font-weight: 700;
}

.qr-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
    margin-top: 0.5rem;
}

#admin-qrcode {
    padding: 12px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

input[type="file"] {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px dashed #bdd0ee;
    border-radius: 14px;
    background: #fff;
    color: var(--text-color);
}

.import-config-meta,
.import-meta-row {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    align-items: center;
}

.import-inline-message {
    margin-top: 1rem;
}

.import-stats-grid {
    margin-top: 1rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.82rem;
    border: 1px solid transparent;
}

.status-pill.is-neutral {
    background: #eef3ff;
    border-color: #d9e5ff;
    color: var(--brand-primary);
}

.status-pill.is-success {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.28);
    color: #166534;
}

.status-pill.is-warning {
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.35);
    color: #9a5a00;
}

.status-pill.is-muted {
    background: #f3f6fc;
    border-color: #dce5f4;
    color: #53657d;
}

.status-pill.is-danger {
    background: rgba(244, 63, 94, 0.12);
    border-color: rgba(244, 63, 94, 0.28);
    color: #9f1239;
}

.import-card-list {
    display: grid;
    gap: 1rem;
}

.import-card {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 1rem;
    padding: 1rem;
    border-radius: 18px;
    border: 1px solid #dbe6ff;
    background: #fff;
    box-shadow: var(--shadow-card);
}

.import-card--review {
    border-color: #f4d7b2;
}

.import-card__media {
    display: flex;
}

.import-card__media a {
    display: block;
    width: 100%;
}

.import-card__media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    border: 1px solid #dbe6ff;
    background: #fff;
    object-fit: contain;
}

.import-card__content {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    min-width: 0;
}

.import-card__header h3 {
    margin: 0 0 0.35rem;
    color: var(--brand-primary);
}

.import-inline-form {
    display: grid;
    grid-template-columns: minmax(220px, 320px) auto;
    gap: 0.75rem;
    align-items: end;
}

.review-form {
    gap: 1rem;
}

.review-form__grid {
    align-items: start;
}

.review-form__grid--text {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.review-ratings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.8rem;
}

.review-rating-field {
    background: var(--surface-soft);
    border: 1px solid #e4ebf8;
    border-radius: 14px;
    padding: 0.8rem;
}

.review-ai-summary {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 0.78rem 0.95rem;
    border-radius: 14px;
    background: var(--surface-soft);
    border: 1px solid #e4ebf8;
    color: var(--brand-primary);
    font-weight: 700;
}

.field-status-note {
    margin-top: 0.35rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.review-notes-textarea {
    min-height: 90px;
}

.import-card__actions {
    margin-top: 0;
}

.import-analysis-actions {
    margin-top: 1rem;
}

.import-upload-note {
    margin-top: 0.45rem;
}

.import-upload-status {
    margin: 0.8rem 0 0;
}

.import-upload-status.is-error {
    color: #9f1239;
}

.table-button--danger {
    background: #fff5f7;
    border-color: #d61f45;
    color: #d61f45;
}

.table-button--danger:hover {
    background: #d61f45;
}

.import-history-table td {
    vertical-align: top;
}

.import-history-row--details td {
    padding-top: 0;
    background: #fbfdff;
}

.import-analysis-details {
    margin: 0.2rem 0 0.4rem;
}

.import-analysis-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    border: 1px solid #dbe6ff;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    font-weight: 800;
    color: var(--brand-primary);
    list-style: none;
}

.import-analysis-details summary::-webkit-details-marker {
    display: none;
}

.import-analysis-details[open] summary {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.import-analysis-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 0.9rem;
}

.import-analysis-panel {
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid #dbe6ff;
    background: #fff;
    box-shadow: 0 12px 26px rgba(16, 41, 86, 0.06);
}

.import-analysis-panel__header {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.import-analysis-panel__header h4 {
    margin: 0 0 0.2rem;
    color: var(--brand-primary);
}

.import-analysis-panel__header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.import-analysis-links {
    margin: -0.2rem 0 0.9rem;
}

.import-analysis-block + .import-analysis-block {
    margin-top: 1rem;
}

.import-analysis-block h5 {
    margin: 0 0 0.65rem;
    color: var(--brand-primary);
}

.import-analysis-field-list {
    display: grid;
    gap: 0.65rem;
}

.import-analysis-field {
    padding: 0.8rem;
    border-radius: 14px;
    border: 1px solid #e4ebf8;
    background: var(--surface-soft);
}

.import-analysis-field__top {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: flex-start;
}

.import-analysis-field__label {
    font-weight: 800;
    color: var(--brand-primary);
}

.import-analysis-field__value {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.45rem;
    color: var(--text-color);
}

.import-analysis-change {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: #eaf4ff;
    border: 1px solid #c8ddff;
    color: #1f5da8;
    font-size: 0.78rem;
    font-weight: 800;
}

.import-analysis-note {
    margin-top: 1rem;
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    background: #fffaf0;
    border: 1px solid #f2dfb2;
    color: #6f5118;
    display: grid;
    gap: 0.25rem;
}

.import-analysis-empty,
.import-analysis-empty-state {
    color: var(--text-muted);
}

.import-analysis-empty {
    font-style: italic;
}

.import-analysis-empty-state {
    margin-top: 0.85rem;
    padding: 0.95rem 1rem;
    border: 1px dashed #d3ddec;
    border-radius: 14px;
    background: #fff;
}

@media (max-width: 1100px) {
    .form-grid--results-filter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-heading-row--list {
        align-items: start;
    }

    .filter-form--list {
        width: 100%;
    }

    .dashboard-overview-grid {
        grid-template-columns: 1fr;
    }

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

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

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

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

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

    .response-section--ratings {
        grid-column: 1 / -1;
    }

    .import-card {
        grid-template-columns: 1fr;
    }

    .import-analysis-layout {
        grid-template-columns: 1fr;
    }

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

    .timeline-year-head {
        display: none;
    }

    .timeline-year-row {
        grid-template-columns: 72px 1fr 1fr 1fr;
        grid-template-areas:
            "year responses average positive"
            "distribution distribution distribution distribution";
        align-items: start;
    }

    .timeline-year-row__year {
        min-height: 100%;
    }

    .timeline-year-row__value {
        display: grid;
        gap: 0.18rem;
    }

    .timeline-year-row__value::before {
        display: block;
        font-size: 0.68rem;
        font-weight: 800;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: var(--text-muted);
    }

    .timeline-year-row__value--average {
        justify-content: flex-start;
    }

}

@media (max-width: 900px) {
    body {
        padding: 1.5rem 1rem 2.5rem;
    }

    .hero {
        padding: 2.2rem;
        min-height: 220px;
    }

    .hero::before {
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.86) 28%, rgba(255, 255, 255, 0.72) 52%, rgba(255, 255, 255, 0.38) 100%),
            url('../herobackground.jpg') 68% center/cover no-repeat;
    }

    .hero::after {
        left: 2.2rem;
        right: 2.2rem;
        bottom: 0.95rem;
    }

    .hero__content {
        max-width: 100%;
        padding: 1.2rem 1.2rem 1.45rem;
    }

    .dashboard-shell__header {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .smiley-legend--compact {
        grid-template-columns: repeat(3, max-content);
        justify-content: start;
    }

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

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

    .chart-grid--two-up {
        grid-template-columns: 1fr;
    }

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

    .timeline-insight-grid__inner {
        grid-template-columns: 1fr;
    }

    .form-grid--scope-filter,
    .form-grid--list-controls {
        grid-template-columns: 1fr;
    }

    .timeline-year-row {
        grid-template-columns: 72px 1fr 1fr;
        grid-template-areas:
            "year average positive"
            "responses responses responses"
            "distribution distribution distribution";
        align-items: start;
    }

    .timeline-year-row__year {
        min-height: 100%;
    }

    .timeline-year-row__value {
        display: grid;
        gap: 0.18rem;
        font-size: 0.88rem;
    }

    .timeline-year-row__value::before {
        display: block;
        font-size: 0.68rem;
        font-weight: 800;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: var(--text-muted);
    }

    .timeline-year-row__value--average {
        justify-content: flex-start;
    }

    .smiley-option__card {
        min-height: 76px;
        padding: 0.55rem 0.3rem;
    }

    .distribution-legend {
        grid-template-columns: 1fr;
    }

    .import-inline-form {
        grid-template-columns: 1fr;
    }

    .response-card__header {
        grid-template-columns: 1fr;
        padding-bottom: 0.7rem;
    }

    .response-card__toggle-meta {
        justify-self: start;
    }

    .response-card__summary-line {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .response-card__item--score {
        justify-self: stretch;
    }

    .pagination-bar {
        align-items: stretch;
    }

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

    .response-card__actions,
    .response-delete {
        justify-self: start;
    }
}

@media (max-width: 680px) {
    .hero {
        padding: 1.8rem;
        border-radius: 22px;
        min-height: 200px;
    }

    .hero::before {
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.88) 24%, rgba(255, 255, 255, 0.8) 54%, rgba(255, 255, 255, 0.52) 100%),
            url('../herobackground.jpg') 67% center/cover no-repeat;
    }

    .hero::after {
        left: 1.8rem;
        right: 1.8rem;
        bottom: 0.85rem;
        height: 3px;
    }

    .hero__content {
        padding: 1.05rem 1rem 1.2rem;
        border-radius: 18px;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 7vw, 2.4rem);
    }

    .hero p {
        font-size: 1rem;
        line-height: 1.5;
    }

    .glass-card {
        padding: 1rem;
    }

    .form-grid--results-filter {
        grid-template-columns: 1fr;
    }

    .filter-row--actions {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-row--actions > * {
        width: 100%;
    }

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

    .stats-grid--dashboard-side,
    .insight-grid--dashboard-focus {
        grid-template-columns: 1fr;
    }

    .smiley-legend--compact {
        display: flex;
        gap: 0.5rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.15rem;
    }

    .smiley-legend--compact .smiley-legend__item {
        justify-content: center;
        flex: 0 0 auto;
    }

    .smiley-scale {
        gap: 0.3rem;
    }

    .smiley-option__card {
        min-height: 62px;
        padding: 0.4rem 0.2rem;
    }

    .smiley-option__text {
        display: none;
    }

    .question-block--smiley {
        padding: 0.75rem;
    }

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

    .bar-row__header,
    .section-heading-row,
    .chart-section__header {
        flex-direction: column;
        align-items: stretch;
    }

    .response-score-summary {
        flex-direction: column;
        gap: 0.2rem;
    }

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

    .response-card__item {
        font-size: 0.8rem;
    }

    .pagination-bar__summary {
        width: 100%;
    }

    .pagination-nav {
        width: 100%;
    }

    .pagination-link {
        flex: 1 0 auto;
        min-width: 0;
    }

    .response-card__content {
        padding-top: 0.9rem;
    }

    .response-card__actions,
    .response-delete {
        width: 100%;
    }

    .response-delete .table-button {
        width: 100%;
    }

    .response-sections--wide,
    .chart-grid--question,
    .chart-grid--question-team,
    .timeline-grid {
        grid-template-columns: 1fr;
    }

    .timeline-recent-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-hero-card__score-row,
    .question-insight-card__header,
    .comparison-card__header {
        grid-template-columns: 1fr;
        display: grid;
    }

    .response-section--ratings {
        grid-column: auto;
    }

    .import-analysis-panel__header,
    .import-analysis-field__top,
    .import-analysis-details summary {
        flex-direction: column;
        align-items: stretch;
    }

    .review-ratings-grid,
    .review-form__grid--text {
        grid-template-columns: 1fr;
    }
}

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

    .smiley-legend--compact {
        grid-template-columns: 1fr;
    }

    .smiley-legend--compact .smiley-legend__item:last-child {
        width: 100%;
    }

    .response-card__summary-line {
        grid-template-columns: 1fr;
    }

    .response-card__item--score {
        justify-self: stretch;
    }
}
