:root {
    --bg: #0f1724;
    --bg-accent: linear-gradient(135deg, rgba(23, 34, 54, 0.96) 0%, rgba(31, 48, 78, 0.94) 55%, rgba(77, 181, 44, 0.18) 100%);
    --panel: rgba(252, 253, 255, 0.94);
    --text: #142033;
    --muted: #62718a;
    --line: rgba(20, 32, 51, 0.12);
    --brand: #4db52c;
    --brand-strong: #182131;
    --brand-soft: #edf8e8;
    --gold-soft: #eff4ff;
    --tablet-ink: #101b2d;
    --danger: #b42318;
    --success: #067647;
    --shadow: 0 20px 60px rgba(6, 15, 30, 0.22);
    --shadow-strong: 0 30px 90px rgba(6, 15, 30, 0.32);
    --torres-blue: #426ab2;
    --torres-pink: #f199a9;
    --torres-blue-soft: #eaf0fb;
    --torres-pink-soft: #fff1f4;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(77, 181, 44, 0.14), transparent 26%),
        radial-gradient(circle at top right, rgba(67, 95, 150, 0.24), transparent 24%),
        radial-gradient(circle at bottom right, rgba(77, 181, 44, 0.1), transparent 28%),
        var(--bg);
    font: 16px/1.45 "Avenir Next", "Segoe UI", sans-serif;
}

body.survey-public-body {
    background:
        radial-gradient(circle at top left, rgba(66, 106, 178, 0.12), transparent 24%),
        radial-gradient(circle at top right, rgba(241, 153, 169, 0.14), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
}

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

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

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

.shell-survey {
    width: min(1240px, calc(100% - 32px));
}

.hero,
.panel,
.card,
.submission,
.question-card,
.stat-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}

.brand-bar {
    z-index: 20;
}

.brand-bar-admin {
    background: #161e2c;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.survey-public-body .brand-bar {
    background: #ffffff;
    border-bottom: 1px solid rgba(66, 106, 178, 0.14);
}

body.survey-public-body .brand-bar-copy {
    color: var(--torres-blue);
}

body.survey-public-body .brand-bar-copy p {
    color: rgba(66, 106, 178, 0.72);
}

body.survey-public-body .brand-pill {
    background: rgba(241, 153, 169, 0.16);
    border-color: rgba(241, 153, 169, 0.32);
    color: var(--torres-blue);
}

.brand-bar-inner {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand-bar-inner-admin {
    width: min(1440px, calc(100% - 32px));
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-lockup img {
    display: block;
    width: min(250px, 42vw);
    height: auto;
}

.brand-bar-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    text-align: right;
    color: rgba(255, 255, 255, 0.9);
}

.brand-bar-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
}

.brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(77, 181, 44, 0.12);
    border: 1px solid rgba(77, 181, 44, 0.32);
    color: #d8f2d0;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.brand-bar-admin .brand-pill {
    background: rgba(94, 137, 219, 0.14);
    border-color: rgba(94, 137, 219, 0.24);
    color: #dbe8ff;
}

.hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 32px;
    margin-bottom: 24px;
    background-image: var(--bg-accent);
    color: white;
}

.hero.compact {
    align-items: center;
}

.hero-actions {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

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

h1,
h2 {
    margin: 0 0 10px;
}

.lead,
.muted,
small {
    color: var(--muted);
}

.hero .lead,
.hero .muted,
.hero small,
.hero.compact .lead {
    color: rgba(255, 255, 255, 0.78);
}

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

.card,
.stat-card {
    padding: 22px;
}

.stat-card strong {
    display: block;
    font-size: 42px;
    margin: 8px 0 4px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #4db52c, #2c8b1f);
    color: white;
    padding: 12px 18px;
    cursor: pointer;
    box-shadow: 0 16px 30px rgba(77, 181, 44, 0.22);
}

body.survey-public-body .button {
    background: linear-gradient(135deg, var(--torres-blue), #5a84cf);
    box-shadow: 0 16px 30px rgba(66, 106, 178, 0.2);
}

.button.secondary {
    background: white;
    color: var(--brand-strong);
}

.button.danger {
    background: var(--danger);
}

.panel {
    padding: 24px;
    margin-bottom: 24px;
}

.auth-form {
    width: min(440px, 100%);
    margin: 10vh auto 0;
}

.filter-bar form,
.field-row {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

label,
fieldset {
    display: block;
}

label span,
legend {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px 14px;
    background: white;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid rgba(77, 181, 44, 0.24);
    border-color: rgba(77, 181, 44, 0.6);
}

.notice {
    border-radius: 18px;
    padding: 14px 18px;
    margin-bottom: 18px;
    background: white;
}

.notice.error {
    border: 1px solid rgba(180, 35, 24, 0.25);
    color: var(--danger);
}

.notice.success {
    border: 1px solid rgba(6, 118, 71, 0.25);
    color: var(--success);
}

.survey-form {
    display: grid;
    gap: 20px;
}

.survey-brand-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(240px, 320px);
    gap: 22px;
    align-items: center;
    margin-bottom: 24px;
}

.survey-brand-copy,
.survey-brand-logo-card {
    border-radius: 28px;
    border: 1px solid rgba(66, 106, 178, 0.12);
    box-shadow: 0 18px 42px rgba(66, 106, 178, 0.08);
}

.survey-brand-copy {
    padding: 34px;
    background:
        radial-gradient(circle at top right, rgba(241, 153, 169, 0.18), transparent 24%),
        linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.survey-brand-copy h1 {
    margin-bottom: 12px;
    color: var(--torres-blue);
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 0.98;
}

.survey-brand-copy .eyebrow {
    color: var(--torres-pink);
}

.survey-brand-copy .lead {
    color: #5f7194;
    max-width: 52ch;
}

.survey-brand-logo-card {
    display: grid;
    place-items: center;
    padding: 20px;
    background:
        radial-gradient(circle at bottom left, rgba(66, 106, 178, 0.12), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #fff7f8 100%);
}

.survey-brand-logo-card img {
    width: 100%;
    max-width: 220px;
    height: auto;
    display: block;
    border-radius: 20px;
    object-fit: cover;
}

.torres-home-hero {
    margin-bottom: 28px;
}

.torres-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

body.survey-public-body .torres-card {
    border-color: rgba(66, 106, 178, 0.12);
    border-radius: 28px;
    box-shadow: 0 18px 42px rgba(66, 106, 178, 0.08);
    background:
        radial-gradient(circle at top right, rgba(241, 153, 169, 0.12), transparent 24%),
        linear-gradient(180deg, #ffffff, #f8fbff);
}

body.survey-public-body .torres-card h2 {
    color: var(--torres-blue);
}

body.survey-public-body .torres-card .muted {
    color: #7182a1;
}

.survey-form-tablet {
    gap: 24px;
}

.survey-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
    gap: 22px;
    margin-bottom: 28px;
}

.survey-hero-copy,
.survey-hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    box-shadow: var(--shadow-strong);
}

.survey-hero-copy {
    padding: 42px;
    color: white;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 20%),
        linear-gradient(140deg, #182131 0%, #223556 52%, #4db52c 100%);
}

.survey-hero-copy h1 {
    font-size: clamp(2.25rem, 4vw, 4.4rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
}

.survey-hero-copy .lead,
.survey-hero-copy .eyebrow {
    color: rgba(255, 255, 255, 0.84);
}

.survey-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.survey-meta span {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

.survey-hero-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 30px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 235, 0.96));
    border: 1px solid rgba(11, 31, 42, 0.08);
}

.survey-hero-card::after {
    content: "";
    position: absolute;
    inset: auto -40px -40px auto;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(77, 181, 44, 0.18), transparent 66%);
}

.survey-hero-label {
    margin: 0;
    color: var(--brand);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.survey-hero-card strong {
    font-size: 1.6rem;
    line-height: 1.1;
    color: var(--tablet-ink);
}

.survey-intro-panel,
.survey-submit-panel {
    border-radius: 28px;
}

body.survey-public-body .survey-intro-panel,
body.survey-public-body .survey-submit-panel,
body.survey-public-body .question-card-tablet {
    border-color: rgba(66, 106, 178, 0.12);
    box-shadow: 0 18px 42px rgba(66, 106, 178, 0.08);
}

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

.room-picker {
    display: grid;
    gap: 14px;
}

.room-picker input {
    min-height: 64px;
    padding: 16px 18px;
    font-size: 1.1rem;
}

.room-picker-panel {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid rgba(11, 31, 42, 0.08);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(239, 244, 255, 0.72), rgba(255, 255, 255, 0.92));
}

body.survey-public-body .room-picker-panel {
    border-color: rgba(66, 106, 178, 0.12);
    background: linear-gradient(180deg, var(--torres-blue-soft), #ffffff);
}

.room-picker-help {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.room-picker-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 4px;
}

.room-chip {
    min-height: 52px;
    padding: 12px 18px;
    border: 1px solid rgba(11, 31, 42, 0.1);
    border-radius: 999px;
    background: #fff;
    color: var(--tablet-ink);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.room-chip:hover,
.room-chip[aria-pressed="true"] {
    transform: translateY(-1px);
    border-color: rgba(77, 181, 44, 0.45);
    background: var(--brand-soft);
    box-shadow: 0 14px 28px rgba(77, 181, 44, 0.16);
}

body.survey-public-body .room-chip:hover,
body.survey-public-body .room-chip[aria-pressed="true"] {
    border-color: rgba(66, 106, 178, 0.42);
    background: var(--torres-pink-soft);
    box-shadow: 0 14px 28px rgba(241, 153, 169, 0.18);
}

.room-picker.room-picker-empty .room-picker-help::after {
    content: " • Sin coincidencias";
    color: var(--danger);
}

.question-card-tablet {
    padding: 26px;
    border-radius: 28px;
    border: 1px solid rgba(11, 31, 42, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 247, 238, 0.96));
}

body.survey-public-body .question-card-tablet {
    background:
        radial-gradient(circle at top right, rgba(241, 153, 169, 0.12), transparent 20%),
        linear-gradient(180deg, #ffffff, #fffafb);
}

.question-head {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}

.question-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border-radius: 22px;
    background: linear-gradient(135deg, #eef6ff, #ffffff);
    color: var(--tablet-ink);
    font-size: 1.4rem;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(11, 31, 42, 0.08);
}

body.survey-public-body .question-index {
    background: linear-gradient(135deg, var(--torres-blue-soft), #ffffff);
    color: var(--torres-blue);
    box-shadow: inset 0 0 0 1px rgba(66, 106, 178, 0.14);
}

.question-kicker {
    margin: 0 0 8px;
    color: var(--brand);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
}

body.survey-public-body .question-kicker {
    color: var(--torres-pink);
}

.question-card-tablet legend {
    margin-bottom: 0;
    font-size: clamp(1.25rem, 2vw, 1.8rem);
    line-height: 1.18;
    color: var(--tablet-ink);
}

.question-card {
    padding: 20px;
    border-radius: 20px;
}

.answer-options {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin: 20px 0 18px;
}

.choice {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 88px;
    padding: 18px 20px;
    border: 1px solid rgba(11, 31, 42, 0.1);
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff, #f9fcff);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    cursor: pointer;
}

body.survey-public-body .choice {
    border-color: rgba(66, 106, 178, 0.1);
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.choice input {
    width: auto;
    margin: 0;
    transform: scale(1.45);
    accent-color: var(--brand);
}

body.survey-public-body .choice input {
    accent-color: var(--torres-blue);
}

.choice span {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--tablet-ink);
}

.choice:hover {
    transform: translateY(-2px);
    border-color: rgba(77, 181, 44, 0.34);
    box-shadow: 0 18px 38px rgba(77, 181, 44, 0.16);
}

body.survey-public-body .choice:hover {
    border-color: rgba(241, 153, 169, 0.36);
    box-shadow: 0 18px 38px rgba(241, 153, 169, 0.16);
}

.survey-textarea {
    min-height: 120px;
}

.survey-comment {
    min-height: 92px;
}

.survey-submit-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 30px;
    background:
        linear-gradient(135deg, rgba(235, 244, 255, 0.96), rgba(237, 248, 232, 0.92));
}

body.survey-public-body .survey-submit-panel {
    background:
        radial-gradient(circle at top right, rgba(241, 153, 169, 0.18), transparent 22%),
        linear-gradient(135deg, #ffffff, var(--torres-blue-soft));
}

body.survey-public-body input:focus,
body.survey-public-body select:focus,
body.survey-public-body textarea:focus {
    outline: 2px solid rgba(66, 106, 178, 0.22);
    border-color: rgba(66, 106, 178, 0.6);
}

.survey-submit-button {
    min-width: 220px;
    min-height: 62px;
    font-size: 1.05rem;
    font-weight: 800;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.18);
}

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

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

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

.submission-list {
    display: grid;
    gap: 16px;
}

.submission {
    padding: 18px;
}

.submission header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.submission p {
    margin: 4px 0 0;
    color: var(--muted);
}

.submission ul {
    margin: 0;
    padding-left: 18px;
}

.submission li {
    margin-bottom: 8px;
}

.submission li span,
.submission li em {
    display: block;
    color: var(--muted);
}

.shell-admin-panel {
    width: min(1440px, calc(100% - 32px));
}

.admin-page-shell {
    min-height: calc(100vh - 92px);
    padding: 18px 0 40px;
    background:
        radial-gradient(circle at top left, rgba(74, 98, 138, 0.18), transparent 22%),
        radial-gradient(circle at top right, rgba(94, 137, 219, 0.12), transparent 24%),
        linear-gradient(180deg, #1a2332 0%, #161e2c 45%, #161e2c 100%);
}

.admin-app {
    display: grid;
    grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.admin-sidebar {
    position: sticky;
    top: 24px;
    display: grid;
    gap: 18px;
}

.admin-sidebar-card,
.admin-nav,
.admin-sidebar-actions,
.admin-content > * {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(6, 15, 30, 0.12);
    backdrop-filter: blur(14px);
}

.admin-sidebar-card,
.admin-sidebar-actions {
    padding: 22px;
}

.admin-sidebar-card h2,
.admin-page-header h1,
.admin-section-heading h2 {
    margin-bottom: 8px;
}

.admin-nav {
    display: grid;
    gap: 6px;
    padding: 10px;
}

.admin-nav-link {
    display: block;
    padding: 14px 16px;
    border-radius: 8px;
    color: var(--tablet-ink);
    font-weight: 700;
    border: 1px solid transparent;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.admin-nav-link:hover,
.admin-nav-link.active {
    background: linear-gradient(135deg, rgba(58, 78, 109, 0.2), rgba(229, 236, 248, 0.86));
    color: #122033;
    border-color: rgba(61, 87, 128, 0.24);
    transform: translateX(2px);
}

.admin-sidebar-actions {
    display: grid;
    gap: 12px;
}

.admin-logout-button {
    width: 100%;
}

.admin-content {
    display: grid;
    gap: 24px;
}

.admin-page-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    padding: 28px 30px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 24%),
        linear-gradient(140deg, #161e2c 0%, #20314a 58%, #2b4468 100%);
    color: white;
    border-radius: 10px;
}

.admin-page-header .lead,
.admin-page-header .eyebrow {
    color: rgba(255, 255, 255, 0.84);
}

.admin-crud-grid {
    display: grid;
    grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.admin-form-panel,
.admin-table-panel {
    margin-bottom: 0;
}

.admin-form-panel {
    position: sticky;
    top: 24px;
}

.admin-form-stack {
    display: grid;
    gap: 16px;
}

.admin-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.toggle-field {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 12px 14px;
    border: 1px solid rgba(11, 31, 42, 0.08);
    border-radius: 8px;
    background: rgba(233, 239, 247, 0.8);
}

.toggle-field input {
    width: auto;
    margin: 0;
    transform: scale(1.2);
    accent-color: var(--brand);
}

.toggle-field span {
    margin: 0;
    font-weight: 700;
}

.admin-actions-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 210px;
}

.admin-actions-cell form {
    margin: 0;
}

.admin-app .button {
    border-radius: 10px;
    min-height: 46px;
    padding: 12px 16px;
    box-shadow: none;
}

.admin-app input,
.admin-app select,
.admin-app textarea {
    border-radius: 8px;
    border-color: rgba(20, 32, 51, 0.16);
    background: rgba(255, 255, 255, 0.98);
}

.admin-app .panel {
    border-radius: 12px;
}

.admin-app table {
    background: white;
}

.admin-app th {
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.admin-app th,
.admin-app td {
    border-bottom-color: rgba(20, 32, 51, 0.08);
}

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

.admin-kpi-card {
    padding: 24px;
}

.admin-kpi-card strong {
    display: block;
    margin: 10px 0 6px;
    font-size: clamp(1.9rem, 3vw, 3rem);
    line-height: 0.95;
    color: #0f1f33;
}

.admin-kpi-label {
    margin: 0;
    color: #4b6487;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.admin-kpi-emphasis {
    background: linear-gradient(145deg, rgba(22, 30, 44, 0.96), rgba(35, 56, 89, 0.96));
    color: white;
}

.admin-kpi-emphasis strong,
.admin-kpi-emphasis .admin-kpi-label,
.admin-kpi-emphasis span {
    color: white;
}

.admin-dashboard-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
}

.admin-chart-card {
    padding: 24px;
}

.poll-bars {
    display: grid;
    gap: 16px;
}

.poll-bar-row {
    display: grid;
    gap: 8px;
}

.poll-bar-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.poll-bar-track {
    overflow: hidden;
    height: 16px;
    border-radius: 999px;
    background: linear-gradient(180deg, #e6edf7, #f2f6fb);
}

.poll-bar-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #355078, #5c86c7);
}

.donut-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
}

.donut-chart {
    position: relative;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    margin: 0 auto;
}

.donut-chart-center {
    position: absolute;
    inset: 22px;
    display: grid;
    place-items: center;
    text-align: center;
    border-radius: 50%;
    background: white;
    box-shadow: inset 0 0 0 1px rgba(20, 32, 51, 0.08);
}

.donut-chart-center strong {
    display: block;
    font-size: 2.1rem;
    line-height: 1;
    color: #10233a;
}

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

.donut-legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    flex-shrink: 0;
}

.donut-legend-item strong,
.question-highlight-head strong {
    display: block;
    color: #10233a;
}

.trend-chart {
    display: grid;
    grid-template-columns: repeat(14, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
    min-height: 270px;
}

.trend-column {
    display: grid;
    gap: 10px;
    justify-items: center;
}

.trend-value {
    color: #3d587f;
    font-size: 0.9rem;
    font-weight: 700;
}

.trend-bar {
    display: flex;
    align-items: end;
    width: 100%;
    height: 180px;
    padding: 6px;
    border-radius: 14px;
    background: linear-gradient(180deg, #eef3fa, #f9fbfd);
}

.trend-bar-fill {
    width: 100%;
    border-radius: 10px;
    background: linear-gradient(180deg, #6ea2ff, #355078);
}

.trend-column span {
    color: #60728d;
    font-size: 0.78rem;
    text-align: center;
}

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

.question-highlight-item {
    padding: 18px;
    border: 1px solid rgba(20, 32, 51, 0.08);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(249, 251, 253, 0.98), rgba(240, 245, 251, 0.94));
}

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

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

.stacked-segment {
    display: block;
    height: 100%;
}

.stacked-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 12px;
    color: #546781;
    font-size: 0.86rem;
}

.stacked-legend span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.stacked-legend i {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

@media (max-width: 720px) {
    .brand-bar-inner,
    .hero,
    .submission header,
    .hero-actions {
        flex-direction: column;
    }

    .brand-bar-inner,
    .brand-bar-copy {
        align-items: flex-start;
        text-align: left;
    }

    .shell {
        width: min(100% - 20px, 1120px);
    }
}

@media (max-width: 960px) {
    .survey-brand-hero,
    .survey-hero,
    .survey-intro-grid,
    .survey-submit-panel,
    .question-head {
        grid-template-columns: 1fr;
    }

    .survey-submit-panel {
        align-items: stretch;
    }

    .survey-submit-button {
        width: 100%;
    }

    .question-index {
        width: 62px;
        height: 62px;
        border-radius: 18px;
        font-size: 1.2rem;
    }

    .admin-app,
    .admin-crud-grid,
    .admin-dashboard-grid,
    .admin-kpi-grid,
    .donut-layout {
        grid-template-columns: 1fr;
    }

    .admin-page-header {
        align-items: start;
    }

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

    .admin-sidebar,
    .admin-form-panel {
        position: static;
    }
}
