:root {
    --table-body-font-size: 14px;
    --table-head-font-size: 15px;
    --n-gain-font-size: 9px;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background: #f6fbff;
    color: #1f1f23;
}

.admin-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    box-sizing: border-box;
    padding: 24px 18px;
    background: linear-gradient(180deg, #641528 0%, #7f1d36 48%, #243447 100%);
    color: #ffffff;
    overflow-y: auto;
    z-index: 20;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 4px 28px;
    color: #ffffff;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.admin-brand strong,
.admin-brand small {
    display: block;
}

.admin-brand strong {
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0;
}

.admin-brand small {
    margin-top: 3px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
}

.admin-nav {
    display: grid;
    font-size: 13px;
    gap: 6px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 46px;
    box-sizing: border-box;
    padding: 0 14px;
    border-radius: 6px;
    border: 0;
    background: transparent;
    color: #dbeafe;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: 180ms ease;
}

.nav-link svg {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-link span {
    min-width: 0;
}

.nav-link:hover,
.nav-link.is-active {
    background: rgba(250, 204, 21, 0.18);
    color: #ffffff;
}

.nav-link.is-active {
    box-shadow: inset 4px 0 0 #facc15;
}

.nav-group {
    display: grid;
    gap: 6px;
}

.nav-parent .nav-chevron {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
    margin-left: auto;
    color: #94a3b8;
    transition: transform 180ms ease;
}

.nav-group.is-open .nav-chevron {
    transform: rotate(180deg);
}

.nav-submenu {
    display: none;
    gap: 4px;
    margin-left: 31px;
    padding-left: 14px;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.nav-group.is-open .nav-submenu {
    display: grid;
}

.nav-sublink {
    display: flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 6px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: 180ms ease;
}

.nav-sublink:hover,
.nav-sublink.is-active {
    background: rgba(250, 204, 21, 0.18);
    color: #ffffff;
}

.nav-sublink.is-active {
    box-shadow: inset 3px 0 0 #facc15;
}

.sidebar-card {
    margin-top: 28px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
}

.sidebar-card strong,
.sidebar-card p {
    display: block;
    margin: 0;
}

.sidebar-card strong {
    margin-top: 8px;
    font-size: 13px;
}

.sidebar-card p {
    margin-top: 6px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 600;
}

.online-dot {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.16);
}

.admin-main {
    min-width: 0;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 28px;
    border-bottom: 1px solid #dbe4ee;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
}

.admin-topbar strong {
    display: block;
    font-size: 18px;
    font-weight: 800;
}

.topbar-kicker,
.section-kicker {
    margin: 0 0 4px;
    color: #7f1d36;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.topbar-kicker {
    color: #64748b;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-actions form {
    margin: 0;
}

.icon-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    color: #1f1f23;
    cursor: pointer;
    transition: 180ms ease;
}

.icon-button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-button:hover {
    border-color: #38bdf8;
    background: #e0f2fe;
    color: #7f1d36;
}

.notification-dot {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 8px;
    height: 8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: #facc15;
}

.notification-menu {
    position: relative;
}

.notification-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 30;
    width: 320px;
    padding: 14px 16px;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: 160ms ease;
}

.notification-menu.is-open .notification-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.notification-panel strong {
    display: block;
    margin-bottom: 8px;
    color: #7f1d36;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.notification-panel p {
    margin: 0;
    color: #1f2937;
    font-size: 14px;
    line-height: 1.5;
}

.admin-shell {
    max-width: none;
    margin: 0;
    padding: 28px 36px 48px;
}

.dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: -28px -36px 28px;
    padding: 34px 36px 30px;
    border-bottom: 1px solid #dbe4ee;
    background:
        linear-gradient(135deg, rgba(127, 29, 54, 0.1) 0%, rgba(186, 230, 253, 0.7) 48%, rgba(250, 204, 21, 0.22) 100%),
        #f6fbff;
}

.dashboard-hero h1 {
    margin: 0;
    font-size: 42px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: 0;
}

.dashboard-hero .section-kicker {
    margin-bottom: 8px;
    font-size: 14px;
}

.dashboard-hero .primary-action {
    align-self: flex-start;
}

.dashboard-hero p {
    max-width: 680px;
    margin: 8px 0 0;
    color: #64748b;
}

.primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 8px;
    background: linear-gradient(135deg, #7f1d36 0%, #b91c4b 62%, #facc15 160%);
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
    white-space: nowrap;
}

.primary-action svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #1f1f23;
    text-decoration: none;
    font-weight: 800;
    white-space: nowrap;
}

.secondary-action svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.heading-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.primary-action:hover {
    background: linear-gradient(135deg, #641528 0%, #9f1743 70%, #eab308 160%);
}

.secondary-action:hover {
    background: #f1f5f9;
}

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

.page-heading h1 {
    margin: 0;
    font-size: 38px;
    line-height: 1.15;
    font-weight: 800;
}

.page-heading p {
    max-width: 720px;
    margin: 8px 0 0;
    color: #64748b;
}

.toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.toolbar input,
.toolbar select {
    min-height: 42px;
    box-sizing: border-box;
    padding: 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #1f2937;
    font: inherit;
}

.toolbar input[type="search"] {
    min-width: 280px;
    flex: 1;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

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

.stat-grid.compact .stat-card strong {
    font-size: 28px;
}

.stat-card,
.panel {
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background: #ffffff;
}

.panel {
    border-top: 6px solid #7f1d36;
    box-shadow: 0 18px 45px rgba(31, 41, 55, 0.06);
}

.stat-card {
    padding: 18px;
    box-shadow: 0 14px 34px rgba(31, 41, 55, 0.05);
}

.stat-card span {
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.stat-card strong {
    display: block;
    margin-top: 8px;
    font-size: 34px;
    line-height: 1;
    font-weight: 800;
}

.stat-card p {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 14px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
    gap: 18px;
}

.panel {
    padding: 20px;
}

.panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.panel-header h2 {
    margin: 0;
    font-size: 20px;
}

.panel-header a {
    color: #7f1d36;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

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

.quick-actions a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid #dbe4ee;
    border-radius: 6px;
    color: #1f1f23;
    text-decoration: none;
    font-weight: 800;
}

.quick-actions a svg {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.quick-actions a:hover {
    border-color: #38bdf8;
    color: #7f1d36;
    background: #e0f2fe;
}

.empty-state {
    padding: 18px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
}

.empty-state p {
    margin: 6px 0 0;
    color: #64748b;
}

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

.schedule-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid #dbe4ee;
    border-radius: 6px;
    color: #1f1f23;
    text-decoration: none;
}

.schedule-list span {
    font-weight: 800;
}

.schedule-list small {
    color: #64748b;
    white-space: nowrap;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.question-table {
    min-width: 1500px;
}

.data-table th,
.data-table td {
    padding: 13px 14px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: top;
    font-size: var(--table-body-font-size);
}

.data-table th {
    color: #475569;
    background: #f8fafc;
    font-size: var(--table-head-font-size);
    font-weight: 900;
    text-transform: uppercase;
}

.data-table td a {
    color: #7f1d36;
    font-weight: 800;
    text-decoration: none;
}

.data-table td small {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-weight: 700;
}

.data-table tbody tr:hover {
    background: #f0f9ff;
}

.table-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.data-table .is-action-column {
    text-align: center;
}

.table-actions form {
    margin: 0;
}

.table-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    color: #7f1d36;
    cursor: pointer;
    transition: 180ms ease;
}

.table-icon-button svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.table-icon-button:hover {
    border-color: #38bdf8;
    background: #e0f2fe;
}

.table-icon-button.is-danger {
    color: #b91c1c;
}

.table-icon-button.is-danger:hover {
    border-color: #fecaca;
    background: #fef2f2;
}

.has-tooltip {
    position: relative;
}

.has-tooltip::after {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    z-index: 30;
    min-width: max-content;
    max-width: 180px;
    padding: 6px 8px;
    border-radius: 6px;
    background: #1f1f23;
    color: #ffffff;
    content: attr(data-tooltip);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(4px);
    transition: 160ms ease;
}

.has-tooltip::before {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 3px);
    z-index: 30;
    width: 8px;
    height: 8px;
    background: #1f1f23;
    content: "";
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) rotate(45deg);
    transition: 160ms ease;
}

.has-tooltip:hover::after,
.has-tooltip:hover::before,
.has-tooltip:focus-visible::after,
.has-tooltip:focus-visible::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.has-tooltip:hover::before,
.has-tooltip:focus-visible::before {
    transform: translateX(-50%) rotate(45deg);
}

.pagination-wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.pagination-wrap nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-wrap .hidden {
    display: none;
}

.pagination-wrap a,
.pagination-wrap span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    color: #1f1f23;
    font-weight: 800;
    text-decoration: none;
}

.pagination-wrap a:hover {
    border-color: #38bdf8;
    background: #e0f2fe;
    color: #7f1d36;
}

.pagination-wrap span[aria-current="page"] span,
.pagination-wrap [aria-current="page"] {
    border-color: #7f1d36;
    background: #7f1d36;
    color: #ffffff;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.status-badge.is-success {
    background: #dcfce7;
    color: #166534;
}

.report-section {
    margin-top: 18px;
}

.report-chart {
    display: grid;
    gap: 18px;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 18px;
    color: #475569;
    font-weight: 800;
}

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

.chart-legend i {
    width: 26px;
    height: 12px;
    border-radius: 3px;
}

.chart-legend .is-pre,
.chart-bar.is-pre {
    border: 2px solid #1d4ed8;
    background: #3b82f6;
}

.chart-legend .is-post,
.chart-bar.is-post {
    border: 2px solid #c2410c;
    background: #f97316;
}

.chart-frame {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
}

.chart-y-axis {
    height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    text-align: right;
}

.chart-grid {
    position: relative;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(130px, 1fr);
    align-items: start;
    gap: 18px;
    overflow-x: auto;
    padding: 0 12px;
}

.chart-grid::before {
    position: absolute;
    inset: 0 0 auto 0;
    height: 260px;
    border-left: 1px solid #dbe4ee;
    border-bottom: 1px solid #dbe4ee;
    background:
        linear-gradient(to top, rgba(148, 163, 184, 0.45) 1px, transparent 1px) 0 0 / 100% 20%,
        linear-gradient(to right, rgba(148, 163, 184, 0.36) 1px, transparent 1px) 0 0 / 10% 100%;
    content: "";
    pointer-events: none;
}

.chart-group {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: 260px minmax(44px, auto);
    gap: 10px;
    min-width: 0;
}

.chart-bars {
    height: 260px;
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 8px;
}

.chart-bar-wrap {
    position: relative;
    display: flex;
    align-items: end;
    justify-content: center;
    width: 34px;
    height: 100%;
}

.chart-bar-value {
    position: absolute;
    left: 50%;
    bottom: calc(var(--bar-height, 0%) + 6px);
    z-index: 2;
    padding: 2px 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.92);
    color: #1f2937;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    transform: translateX(-50%);
}

.chart-bar {
    width: 34px;
    min-height: 3px;
    border-radius: 4px 4px 0 0;
}

.chart-group strong {
    display: block;
    min-width: 0;
    color: #475569;
    font-size: 12px;
    line-height: 1.35;
    text-align: center;
}

.chart-group strong small {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 11px;
}

.schedule-report-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 20px;
    align-items: start;
}

.schedule-chart-full {
    max-width: 980px;
    margin: 0 auto;
}

.schedule-comparison-chart {
    grid-auto-columns: minmax(170px, 220px);
    justify-content: center;
}

.schedule-distribution-chart {
    grid-auto-columns: minmax(58px, 1fr);
    gap: 10px;
}

.schedule-distribution-chart .chart-bars {
    gap: 4px;
}

.schedule-distribution-chart .chart-bar,
.schedule-distribution-chart .chart-bar-wrap {
    width: 24px;
}

.chart-axis-caption {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.chart-axis-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-left: 50px;
}

.chart-axis-note {
    display: grid;
    gap: 2px;
    font-size: 11px;
    line-height: 1.4;
}

.chart-average-note {
    display: grid;
    gap: 2px;
    min-width: 160px;
    font-size: 11px;
    line-height: 1.4;
}

.chart-axis-note strong,
.chart-average-note strong {
    color: #334155;
}

.average-bar-chart {
    display: grid;
    gap: 18px;
    padding: 10px 0 4px;
}

.average-bar-frame {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.average-bar-y-axis {
    height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    text-align: right;
}

.average-bar-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 220px));
    justify-content: center;
    gap: 46px;
    min-height: 304px;
    padding: 0 18px;
}

.average-bar-grid::before {
    position: absolute;
    inset: 0 0 auto 0;
    height: 260px;
    border-left: 1px solid #dbe4ee;
    border-bottom: 1px solid #dbe4ee;
    background: linear-gradient(to top, rgba(148, 163, 184, 0.45) 1px, transparent 1px) 0 0 / 100% 20%;
    content: "";
    pointer-events: none;
}

.average-bar-group {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: 260px minmax(34px, auto);
    gap: 10px;
    text-align: center;
}

.average-bar-wrap {
    position: relative;
    display: flex;
    align-items: end;
    justify-content: center;
    height: 260px;
}

.average-bar {
    width: 78px;
    min-height: 4px;
    border-radius: 8px 8px 0 0;
}

.average-bar.is-pre {
    border: 2px solid #1d4ed8;
    background: #3b82f6;
}

.average-bar.is-post {
    border: 2px solid #c2410c;
    background: #f97316;
}

.average-bar-value {
    position: absolute;
    left: 50%;
    bottom: calc(var(--bar-height, 0%) + 8px);
    z-index: 2;
    padding: 4px 7px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.94);
    color: #111827;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    transform: translateX(-50%);
}

.average-bar-group strong {
    color: #475569;
    font-size: 13px;
    font-weight: 900;
}

.average-bar-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    color: #475569;
    font-size: 13px;
    font-weight: 800;
}

.average-bar-summary strong {
    padding: 8px 12px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #111827;
    white-space: nowrap;
}

.average-bar-summary span:last-child {
    text-align: right;
}

.report-score-table {
    min-width: 700px;
}

.report-score-table th,
.report-score-table td {
    text-align: center;
}

.report-score-table th:nth-child(2),
.report-score-table td:nth-child(2) {
    text-align: left;
}

.score-delta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    font-weight: 900;
}

.score-delta.is-up {
    background: #dcfce7;
    color: #166534;
}

.score-delta.is-down {
    background: #fee2e2;
    color: #991b1b;
}

.report-note {
    display: grid;
    gap: 14px;
    color: #1f2937;
}

.report-note-separated {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    align-items: start;
}

.report-note h3 {
    margin: 0;
    font-size: 18px;
}

.report-note p {
    margin: 0;
    color: #1f2937;
    font-size: 16px;
    line-height: 1.65;
}

.score-legend-table {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid #94a3b8;
    background: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

.score-legend-table strong,
.score-legend-table span {
    padding: 8px 10px;
    border-right: 1px solid #94a3b8;
    border-bottom: 1px solid #cbd5e1;
}

.score-legend-table strong:nth-child(2n),
.score-legend-table span:nth-child(2n) {
    border-right: 0;
}

.score-legend-table strong {
    background: #e2e8f0;
    color: #111827;
    font-size: 14px;
}

.score-legend-table span:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.chart-interpretation {
    display: grid;
    gap: 4px;
    margin-left: 50px;
    color: #1f1f23;
    font-size: 13px;
    line-height: 1.45;
}

.chart-interpretation strong {
    color: #7f1d36;
    font-weight: 900;
}

.chart-interpretation span {
    display: block;
}

.n-gain-row td {
    padding-top: 0;
    border-bottom: 0;
    background: #ffffff;
}

.n-gain-interpretation {
    display: grid;
    gap: 5px;
    min-width: 240px;
    color: #1f1f23;
    font-size: var(--n-gain-font-size);
    line-height: 1.35;
}

.n-gain-interpretation strong {
    color: #7f1d36;
    font-weight: 900;
}

.n-gain-interpretation span {
    display: block;
}

.report-description {
    display: grid;
    gap: 14px;
    min-height: 86px;
    padding: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
}

.description-item {
    display: grid;
    gap: 6px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e2e8f0;
}

.description-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.description-item h3 {
    margin: 0;
    color: #7f1d36;
    font-size: 15px;
}

.description-item p {
    margin: 0;
    color: #1f1f23;
    line-height: 1.55;
}

.description-score {
    color: #475569;
    font-weight: 800;
}

.description-score strong,
.description-score span {
    color: #1f1f23;
}

.alert-success {
    margin-bottom: 16px;
    padding: 13px 14px;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    background: #f0fdf4;
    color: #166534;
    font-weight: 800;
}

.form-panel {
    max-width: 680px;
}

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

.admin-form label {
    font-size: 14px;
    font-weight: 800;
    color: #1f1f23;
}

.admin-form input[type="password"],
.admin-form input[type="date"],
.admin-form input[type="file"],
.admin-form input[type="number"],
.admin-form input[type="text"],
.admin-form input[type="email"],
.admin-form select,
.admin-form textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #1f1f23;
    font: inherit;
}

.admin-form textarea {
    resize: vertical;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    border-color: #38bdf8;
    outline: 4px solid rgba(56, 189, 248, 0.18);
}

.form-submit {
    width: fit-content;
    border: 0;
    cursor: pointer;
    font: inherit;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.question-picker {
    display: grid;
    gap: 16px;
}

.question-builder {
    display: grid;
    gap: 16px;
}

.builder-instruction {
    display: grid;
    gap: 10px;
    padding: 16px 18px;
    border: 1px solid #facc15;
    border-radius: 8px;
    background: #fffbeb;
    color: #1f1f23;
}

.builder-instruction strong {
    display: block;
    font-size: 16px;
    font-weight: 900;
}

.builder-instruction p {
    margin: 0;
    color: #334155;
    line-height: 1.6;
}

.builder-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    background: #f0f9ff;
}

.builder-summary strong {
    font-size: 14px;
}

.builder-summary div {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.builder-summary span {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    gap: 4px;
    padding: 0 10px;
    border-radius: 999px;
    background: #ffffff;
    color: #7f1d36;
    font-weight: 800;
}

.builder-summary span[hidden] {
    display: none;
}

.builder-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.builder-modules {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 8px;
}

.builder-module {
    display: grid;
    gap: 5px;
    width: 100%;
    min-height: 82px;
    padding: 12px;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background: #ffffff;
    color: #1f1f23;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: 180ms ease;
}

.builder-module span {
    color: #7f1d36;
    font-weight: 900;
}

.builder-module strong {
    line-height: 1.3;
}

.builder-module small {
    color: #64748b;
    font-weight: 800;
}

.builder-module:hover,
.builder-module.is-active {
    border-color: #38bdf8;
    background: #e0f2fe;
}

.builder-module.is-active {
    box-shadow: inset 4px 0 0 #facc15;
}

.builder-questions {
    min-width: 0;
}

.question-group-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 6px;
}

.question-group-header h2 {
    margin: 0;
}

.selected-summary {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    background: #f0f9ff;
}

.selected-summary strong {
    font-size: 14px;
}

.selected-summary div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.selected-summary span {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: #ffffff;
    color: #7f1d36;
    font-weight: 800;
}

.question-group {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background: #f8fafc;
}

.question-group[hidden] {
    display: none;
}

.question-group h2 {
    margin: 0 0 6px;
    font-size: 17px;
}

.question-check {
    display: grid;
    grid-template-columns: 18px minmax(320px, 1fr) minmax(260px, 340px);
    gap: 10px;
    align-items: start;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #ffffff;
}

.question-check input {
    margin-top: 2px;
    accent-color: #7f1d36;
}

.question-check-text {
    grid-column: 2;
    min-width: 0;
    line-height: 1.45;
}

.question-check-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(120px, 150px);
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.question-check-meta span {
    display: grid;
    gap: 2px;
    min-height: 38px;
    align-content: center;
    padding: 5px 8px;
    border-radius: 6px;
    background: #f8fafc;
    color: #7f1d36;
    text-align: center;
}

.question-check-meta small {
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.question-check-meta b {
    min-width: 0;
    font-size: 13px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.user-summary {
    display: grid;
    gap: 4px;
    margin-bottom: 20px;
    padding: 14px;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background: #f8fafc;
}

.user-summary strong {
    font-size: 17px;
}

.user-summary span {
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
}

.auth-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(250, 204, 21, 0.24), transparent 28%),
        radial-gradient(circle at bottom right, rgba(186, 230, 253, 0.72), transparent 34%),
        linear-gradient(135deg, #fff7d6 0%, #f6fbff 48%, #f0f9ff 100%);
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    padding: 32px;
}

.auth-panel {
    width: min(100%, 980px);
    min-height: 560px;
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
    overflow: hidden;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(31, 41, 55, 0.16);
}

.auth-side {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 34px;
    background: linear-gradient(180deg, #641528 0%, #7f1d36 52%, #243447 100%);
    color: #ffffff;
}

.auth-brand,
.auth-logo-wrap {
    display: flex;
    align-items: center;
}

.auth-brand {
    gap: 12px;
}

.auth-logo-wrap {
    justify-content: center;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.auth-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.auth-brand strong,
.auth-brand span {
    display: block;
}

.auth-brand strong {
    font-size: 20px;
    line-height: 1.2;
    font-weight: 800;
}

.auth-brand span {
    margin-top: 3px;
    color: #fef3c7;
    font-size: 13px;
    font-weight: 600;
}

.auth-copy p {
    margin: 0 0 8px;
    color: #facc15;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
}

.auth-illustration {
    display: grid;
    place-items: center;
    margin: 22px 0;
}

.auth-illustration svg {
    width: min(100%, 360px);
    height: auto;
    overflow: visible;
}

.ill-card,
.ill-ring {
    fill: rgba(255, 255, 255, 0.06);
    stroke: rgba(255, 255, 255, 0.34);
    stroke-width: 3;
}

.ill-line {
    fill: none;
    stroke: rgba(255, 255, 255, 0.76);
    stroke-width: 5;
    stroke-linecap: round;
}

.ill-line.soft {
    stroke: rgba(255, 255, 255, 0.42);
}

.ill-dot {
    fill: #facc15;
}

.ill-accent {
    fill: none;
    stroke: #facc15;
    stroke-width: 10;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 12px 24px rgba(250, 204, 21, 0.28));
}

.auth-copy h1 {
    margin: 0;
    font-size: 44px;
    line-height: 1.08;
    font-weight: 800;
}

.auth-copy span {
    display: block;
    max-width: 340px;
    margin-top: 16px;
    color: #e0f2fe;
    font-size: 15px;
    line-height: 1.6;
}

.auth-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 56px;
}

.auth-heading {
    margin-bottom: 28px;
}

.auth-kicker {
    margin: 0 0 8px;
    color: #7f1d36;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.auth-heading h2 {
    margin: 0;
    color: #161b24;
    font-size: 34px;
    line-height: 1.12;
    font-weight: 800;
}

.auth-form {
    display: grid;
    gap: 11px;
}

.auth-form label {
    font-size: 14px;
    font-weight: 800;
    color: #161b24;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #161b24;
    font: inherit;
}

.password-field {
    position: relative;
}

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

.password-toggle {
    position: absolute;
    top: 1px;
    right: 1px;
    width: 46px;
    height: calc(100% - 2px);
    min-height: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0 8px 8px 0;
    background: transparent;
    color: #64748b;
    cursor: pointer;
}

.password-toggle:hover {
    background: transparent;
    color: #7f1d36;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.password-toggle .eye-closed {
    display: none;
}

.password-toggle.is-visible {
    color: #7f1d36;
}

.password-toggle.is-visible .eye-open {
    display: none;
}

.password-toggle.is-visible .eye-closed {
    display: block;
}

.auth-form input:focus {
    border-color: #38bdf8;
    outline: 4px solid rgba(56, 189, 248, 0.18);
}

.remember-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0 10px;
    color: #475569;
    font-weight: 700;
}

.remember-row input {
    width: 18px;
    height: 18px;
    accent-color: #7f1d36;
}

.auth-submit {
    min-height: 50px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #7f1d36 0%, #b91c4b 62%, #facc15 160%);
    color: #ffffff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(127, 29, 54, 0.22);
    transition: 180ms ease;
}

.auth-submit:hover {
    background: linear-gradient(135deg, #641528 0%, #9f1743 70%, #eab308 160%);
    transform: translateY(-1px);
}

.auth-switch {
    margin: 18px 0 0;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.auth-switch a {
    color: #7f1d36;
    font-weight: 800;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.form-error {
    margin: -4px 0 4px;
    color: #b91c1c;
    font-size: 13px;
}

.admin-layout {
    font-size: 12px;
}

.admin-layout p,
.admin-layout a,
.admin-layout button,
.admin-layout input,
.admin-layout select,
.admin-layout label,
.admin-layout small,
.admin-layout span {
    font-size: 12px;
}

.admin-layout h1,
.admin-layout h2,
.admin-layout h3,
.admin-layout .admin-brand strong,
.admin-layout .admin-topbar strong,
.admin-layout .dashboard-hero h1,
.admin-layout .page-heading h1,
.admin-layout .panel-header h2,
.admin-layout .stat-card strong,
.admin-layout .auth-heading h2 {
    font-size: 16px;
}

.admin-layout .section-kicker,
.admin-layout .topbar-kicker,
.admin-layout .stat-card span {
    font-size: 12px;
}

.admin-layout .n-gain-interpretation,
.admin-layout .n-gain-interpretation strong,
.admin-layout .n-gain-interpretation span {
    font-size: var(--n-gain-font-size);
}

/* Corporate black gradient theme */
body {
    background:
        linear-gradient(135deg, #f8fafc 0%, #eef2f7 48%, #e5e7eb 100%);
    color: #111827;
}

.admin-sidebar,
.auth-side {
    background:
        linear-gradient(180deg, #020617 0%, #111827 46%, #27272a 100%);
}

.admin-brand small,
.sidebar-card p,
.nav-parent .nav-chevron {
    color: #cbd5e1;
}

.nav-link {
    color: #e5e7eb;
}

.nav-link:hover,
.nav-link.is-active,
.nav-sublink:hover,
.nav-sublink.is-active {
    background: rgba(34, 211, 238, 0.14);
    color: #ffffff;
}

.nav-link.is-active,
.nav-sublink.is-active,
.builder-module.is-active {
    box-shadow: inset 4px 0 0 #22d3ee;
}

.sidebar-card {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
}

.topbar-kicker,
.section-kicker,
.notification-panel strong,
.panel-header a,
.data-table td a,
.table-icon-button,
.chart-interpretation strong,
.n-gain-interpretation strong,
.description-item h3,
.auth-kicker,
.auth-switch a,
.builder-module span,
.builder-summary span,
.selected-summary span,
.question-check-meta span {
    color: #111827;
}

.dashboard-hero {
    background:
        linear-gradient(135deg, rgba(2, 6, 23, 0.08) 0%, rgba(100, 116, 139, 0.16) 50%, rgba(34, 211, 238, 0.14) 100%),
        #f8fafc;
}

.primary-action,
.auth-submit,
.participant-submit {
    background: linear-gradient(135deg, #020617 0%, #18181b 58%, #3f3f46 100%);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.24);
}

.primary-action:hover,
.auth-submit:hover,
.participant-submit:hover {
    background: linear-gradient(135deg, #18181b 0%, #27272a 58%, #52525b 100%);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.28);
}

.panel {
    border-top-color: #111827;
}

.icon-button:hover,
.quick-actions a:hover,
.table-icon-button:hover,
.builder-module:hover,
.builder-module.is-active {
    border-color: #22d3ee;
    background: #ecfeff;
    color: #111827;
}

.pagination-wrap a:hover {
    border-color: #22d3ee;
    background: #ecfeff;
    color: #111827;
}

.pagination-wrap span[aria-current="page"] span,
.pagination-wrap [aria-current="page"] {
    border-color: #111827;
    background: #111827;
}

.auth-page {
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.2), transparent 30%),
        radial-gradient(circle at bottom right, rgba(15, 23, 42, 0.2), transparent 34%),
        linear-gradient(135deg, #f8fafc 0%, #eef2f7 50%, #e5e7eb 100%);
}

.auth-copy p,
.auth-brand span,
.ill-dot {
    color: #67e8f9;
    fill: #67e8f9;
}

.ill-accent {
    stroke: #67e8f9;
    filter: drop-shadow(0 12px 24px rgba(34, 211, 238, 0.26));
}

.auth-submit,
.remember-row input,
.question-check input {
    accent-color: #111827;
}

@media (max-width: 900px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
    }

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

    .stat-grid,
    .dashboard-grid,
    .builder-layout {
        grid-template-columns: 1fr;
    }

    .builder-modules {
        position: static;
    }

    .auth-panel {
        grid-template-columns: 1fr;
    }

    .auth-side {
        gap: 32px;
    }
}

@media (max-width: 620px) {
    .admin-topbar,
    .dashboard-hero,
    .page-heading,
    .panel-header {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-shell {
        padding: 20px;
    }

    .admin-nav,
    .quick-actions,
    .toolbar,
    .heading-actions {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar input[type="search"] {
        min-width: 0;
    }

    .builder-summary,
    .question-group-header {
        align-items: stretch;
        flex-direction: column;
    }

    .builder-summary div {
        justify-content: flex-start;
    }

    .question-check {
        grid-template-columns: 18px minmax(0, 1fr);
    }

    .question-check-meta {
        grid-column: 2;
        width: 100%;
        min-width: 0;
    }

    .chart-interpretation {
        margin-left: 0;
    }

    .average-bar-summary {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .average-bar-summary span:last-child {
        text-align: left;
    }

    .schedule-report-grid {
        grid-template-columns: 1fr;
    }

    .schedule-comparison-chart {
        justify-content: start;
    }

    .schedule-distribution-chart {
        grid-auto-columns: minmax(54px, 1fr);
    }

    .report-note-separated {
        grid-template-columns: 1fr;
    }

    .auth-shell {
        padding: 18px;
    }

    .auth-content,
    .auth-side {
        padding: 28px;
    }

    .auth-copy h1,
    .auth-heading h2 {
        font-size: 30px;
    }
}

@media print {
    @page {
        size: A4 landscape;
        margin: 8mm;
    }

    body {
        background: #ffffff;
        color: #111827;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .admin-layout {
        display: block;
        min-height: 0;
        font-size: 11px;
    }

    .admin-sidebar,
    .admin-topbar,
    .print-hidden,
    .topbar-actions,
    .icon-button,
    .pagination-wrap {
        display: none !important;
    }

    .admin-main,
    .admin-shell {
        display: block;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
    }

    .page-heading {
        display: block;
        margin-bottom: 6px;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .page-heading h1 {
        font-size: 18px;
    }

    .page-heading p {
        margin-top: 4px;
    }

    .stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        margin-bottom: 6px;
    }

    .stat-card {
        break-inside: avoid;
        box-shadow: none;
    }

    .stat-card {
        padding: 8px 10px;
    }

    .stat-card strong {
        font-size: 16px;
    }

    .panel {
        margin-top: 7px;
        padding: 8px 10px;
        border-top-width: 3px;
        box-shadow: none;
        break-inside: auto;
    }

    .report-table-section {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .report-chart-section,
    .report-note-section,
    .report-description-section {
        break-before: page;
        page-break-before: always;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .report-average-section {
        break-before: page;
        page-break-before: always;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .report-average-section + .report-note-section {
        break-before: auto;
        page-break-before: auto;
    }

    .panel-header {
        margin-bottom: 6px;
    }

    .panel-header h2 {
        font-size: 14px;
    }

    .section-kicker {
        margin-bottom: 2px;
        font-size: 14px;
    }

    .table-wrap {
        overflow: visible;
    }

    .data-table {
        min-width: 0;
    }

    .data-table th,
    .data-table td {
        padding: 8px 10px;
        font-size: var(--table-body-font-size);
    }

    .data-table th {
        font-size: var(--table-head-font-size);
    }

    .n-gain-interpretation {
        gap: 4px;
        min-width: 210px;
        font-size: var(--n-gain-font-size);
        line-height: 1.35;
    }

    .report-chart {
        gap: 6px;
    }

    .chart-frame {
        grid-template-columns: 30px minmax(0, 1fr);
    }

    .chart-y-axis,
    .chart-grid::before,
    .chart-bars {
        height: 240px;
    }

    .chart-group {
        grid-template-rows: 240px minmax(28px, auto);
    }

    .chart-grid {
        grid-auto-columns: minmax(120px, 1fr);
        gap: 10px;
        overflow: visible;
    }

    .chart-bar {
        width: 26px;
    }

    .chart-bar-wrap {
        width: 26px;
    }

    .chart-bar-value {
        font-size: 9px;
    }

    .chart-group strong {
        font-size: 8px;
    }

    .chart-group strong small {
        font-size: 7px;
    }

    .schedule-report-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .schedule-comparison-chart {
        grid-auto-columns: minmax(110px, 1fr);
        justify-content: stretch;
    }

    .schedule-distribution-chart {
        grid-auto-columns: minmax(42px, 1fr);
        gap: 6px;
    }

    .schedule-distribution-chart .chart-bar,
    .schedule-distribution-chart .chart-bar-wrap {
        width: 18px;
    }

    .chart-axis-footer {
        margin-left: 30px;
        gap: 10px;
    }

    .chart-axis-note,
    .chart-average-note {
        gap: 6px;
        font-size: 8px;
    }

    .average-bar-chart {
        gap: 8px;
        padding: 2px 0;
    }

    .average-bar-frame {
        grid-template-columns: 30px minmax(0, 1fr);
    }

    .average-bar-y-axis,
    .average-bar-grid::before,
    .average-bar-wrap {
        height: 190px;
    }

    .average-bar-grid {
        grid-template-columns: repeat(2, minmax(90px, 1fr));
        gap: 22px;
        min-height: 220px;
        padding: 0 12px;
    }

    .average-bar-group {
        grid-template-rows: 190px minmax(24px, auto);
        gap: 6px;
    }

    .average-bar {
        width: 42px;
    }

    .average-bar-value,
    .average-bar-group strong,
    .average-bar-y-axis,
    .average-bar-summary {
        font-size: 8px;
    }

    .average-bar-value {
        padding: 2px 4px;
    }

    .average-bar-summary strong {
        padding: 4px 7px;
    }

    .schedule-chart-full {
        max-width: none;
    }

    .report-note {
        gap: 6px;
    }

    .report-note-separated {
        grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
        gap: 14px;
        align-items: start;
    }

    .report-note h3 {
        font-size: 12px;
    }

    .report-note p {
        font-size: 14px;
        line-height: 1.45;
        text-align: justify;
        align-self: start;
    }

    .score-legend-table {
        grid-template-columns: 58px minmax(0, 1fr);
        font-size: 9px;
    }

    .score-legend-table strong,
    .score-legend-table span {
        padding: 4px 5px;
    }

    .score-legend-table strong {
        font-size: 10px;
    }

    .report-description {
        gap: 7px;
        min-height: 0;
        padding: 8px;
    }

    .description-item {
        gap: 3px;
        padding-bottom: 7px;
    }

    .description-item h3 {
        font-size: 14px;
    }

    .description-item p {
        font-size: 14px;
        line-height: 1.38;
    }
}
