:root {
    --ink: #121725;
    --muted: #687083;
    --line: #dde5f0;
    --blue: #2764e7;
    --blue-dark: #163c96;
    --cyan: #14b8d1;
    --green: #13a36b;
    --red: #dc2626;
    --surface: rgba(255, 255, 255, 0.9);
    --shadow: 0 22px 55px rgba(21, 36, 74, 0.14);
}

body.dark-theme {
    --ink: #eef4ff;
    --muted: #aebbd2;
    --line: #2b3a56;
    --blue: #4c83ff;
    --blue-dark: #b9d0ff;
    --cyan: #38d5e8;
    --green: #54d79b;
    --surface: rgba(20, 28, 45, 0.9);
    --shadow: 0 22px 55px rgba(0, 0, 0, 0.32);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    min-height: 100vh;
    background:
        linear-gradient(120deg, rgba(245, 249, 255, 0.96), rgba(230, 242, 255, 0.92)),
        url("photo_2025-08-11_13-29-10.jpg") center 28px / min(560px, 76vw) auto no-repeat fixed;
    color: var(--ink);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    margin: 0;
}

body.dark-theme {
    background:
        linear-gradient(120deg, rgba(10, 16, 29, 0.96), rgba(17, 31, 55, 0.92)),
        url("photo_2025-08-11_13-29-10.jpg") center 28px / min(560px, 76vw) auto no-repeat fixed;
}

button,
input,
select {
    font: inherit;
}

button {
    width: fit-content;
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    color: #ffffff;
    cursor: pointer;
    font-weight: 800;
    padding: 0 18px;
    box-shadow: 0 14px 24px rgba(39, 100, 231, 0.22);
}

button.secondary,
button.ghost,
button.danger {
    background: #ffffff;
    border: 1px solid rgba(39, 100, 231, 0.2);
    box-shadow: none;
    color: var(--blue-dark);
}

button.danger {
    border-color: rgba(220, 38, 38, 0.26);
    color: var(--red);
}

.icon-button {
    align-items: center;
    display: inline-flex;
    font-size: 1.2rem;
    justify-content: center;
    min-width: 44px;
    padding: 0;
}

.is-hidden {
    display: none !important;
}

.app-view {
    display: none !important;
}

.app-view.is-active-view.hero {
    display: flex !important;
}

.app-view.is-active-view.metrics,
.app-view.is-active-view.dashboard-grid,
.app-view.is-active-view.dashboard-monitor,
.app-view.is-active-view.section-row,
.view-group:not(.group-hidden) {
    display: grid !important;
}

.app-view.is-active-view.panel {
    display: block !important;
}

.view-group.group-hidden {
    display: none !important;
}

.login-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 22px;
}

.login-card {
    width: min(460px, 100%);
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(22px);
    box-shadow: var(--shadow);
    padding: 30px;
}

.login-card h1 {
    font-size: 2rem;
    line-height: 1.12;
    margin: 0;
}

.login-logo {
    width: 150px;
    height: 94px;
    object-fit: contain;
    border-radius: 18px;
    background: #ffffff;
    margin-bottom: 18px;
}

.login-copy {
    color: var(--muted);
    line-height: 1.6;
    margin: 14px 0 20px;
}

.demo-access {
    display: grid;
    gap: 7px;
    border-radius: 14px;
    background: #f5f8fd;
    color: #34425f;
    margin-top: 18px;
    padding: 14px;
}

.demo-access span {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 800;
}

.platform {
    min-height: 100vh;
}

.security-notice {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 50;
    max-width: min(360px, calc(100vw - 32px));
    border-radius: 8px;
    background: #121725;
    color: #ffffff;
    padding: 13px 16px;
    font-weight: 800;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
}

.security-notice.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.print-blocker {
    display: none;
}

.menu-toggle {
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 8;
    display: inline-grid;
    gap: 5px;
    place-content: center;
    width: 48px;
    min-height: 48px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: var(--blue-dark);
}

body.dark-theme .menu-toggle {
    background: rgba(20, 28, 45, 0.92);
    border-color: rgba(128, 153, 190, 0.28);
}

body.dark-theme .menu-toggle span {
    background: var(--ink);
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 4;
    display: none;
    background: rgba(8, 14, 25, 0.42);
    backdrop-filter: blur(2px);
}

.platform.sidebar-open .sidebar-backdrop {
    display: block;
}

.sidebar {
    position: fixed;
    inset: 18px auto 18px 18px;
    width: 282px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(24px);
    box-shadow: var(--shadow);
    padding: 22px;
    transform: translateX(calc(-100% - 34px));
    transition: transform 0.22s ease;
    z-index: 7;
}

.platform.sidebar-open .sidebar {
    transform: translateX(0);
}

.platform.sidebar-open .menu-toggle {
    left: 318px;
}

body.dark-theme .sidebar,
body.dark-theme .login-card {
    background: rgba(20, 28, 45, 0.86);
    border-color: rgba(128, 153, 190, 0.24);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--ink);
    text-decoration: none;
}

.brand img {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    object-fit: cover;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(25, 88, 215, 0.18);
}

body.dark-theme .brand {
    color: var(--ink);
}

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

.brand strong {
    font-size: 1.28rem;
    letter-spacing: 0;
}

.brand small {
    color: var(--muted);
    margin-top: 2px;
}

.main-nav {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr;
}

.main-nav a {
    border-radius: 8px;
    color: #33415d;
    font-weight: 750;
    line-height: 1.25;
    min-width: 0;
    padding: 13px 14px;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.main-nav a:hover,
.main-nav a.active {
    background: #eaf2ff;
    color: var(--blue-dark);
}

body.dark-theme .main-nav a {
    color: #d5def0;
}

body.dark-theme .main-nav a:hover,
body.dark-theme .main-nav a.active {
    background: rgba(76, 131, 255, 0.18);
}

.sidebar-panel {
    margin-top: auto;
    border-radius: 18px;
    background: linear-gradient(145deg, #12337e, #2370f3);
    color: #ffffff;
    display: grid;
    gap: 10px;
    padding: 18px;
}

.sidebar-panel-toggle {
    justify-self: end;
    min-height: 30px;
    min-width: 34px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.14);
    box-shadow: none;
}

.sidebar-panel-content {
    display: grid;
}

.sidebar-panel.is-collapsed {
    padding: 8px;
}

.sidebar-panel.is-collapsed .sidebar-panel-content {
    display: none;
}

.sidebar-panel span,
.eyebrow {
    color: #6d7890;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.sidebar-panel span {
    color: rgba(255, 255, 255, 0.78);
}

.sidebar-panel strong {
    display: block;
    font-size: 1.45rem;
    line-height: 1.1;
}

.sidebar-panel p {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.45;
    margin: 12px 0 0;
}

.app-shell {
    display: grid;
    gap: 22px;
    margin-left: 0;
    max-width: none;
    min-width: 0;
    padding: 84px 26px 34px;
}

.hero {
    min-height: 280px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    overflow: hidden;
    position: relative;
    border-radius: 28px;
    background:
        linear-gradient(105deg, rgba(18, 30, 58, 0.9), rgba(23, 88, 211, 0.76)),
        url("photo_2025-08-11_13-29-10.jpg") right 42px center / 300px auto no-repeat,
        #173d88;
    color: #ffffff;
    padding: 38px;
    box-shadow: var(--shadow);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 7px;
    background: linear-gradient(90deg, var(--blue), var(--cyan), #ffffff);
}

.hero-copy {
    max-width: 720px;
    position: relative;
    z-index: 1;
}

.hero-logo {
    width: 130px;
    height: 82px;
    object-fit: contain;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    margin-bottom: 18px;
    padding: 8px;
}

.hero .eyebrow {
    color: rgba(255, 255, 255, 0.74);
}

.hero h1 {
    font-size: clamp(1.65rem, 3vw, 3rem);
    line-height: 1.02;
    margin: 0;
    max-width: 850px;
}

.hero p:last-child {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    line-height: 1.65;
    margin: 18px 0 0;
    max-width: 690px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    position: relative;
    z-index: 1;
}

.role-chip,
.status-pill,
.paid,
.pending {
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 13px;
    background: #ecfdf4;
    color: var(--green);
    font-size: 0.84rem;
    font-weight: 900;
}

.role-chip {
    background: rgba(255, 255, 255, 0.92);
    color: var(--blue-dark);
}

body.dark-theme .role-chip,
body.dark-theme button.secondary,
body.dark-theme button.ghost,
body.dark-theme button.danger {
    background: rgba(16, 25, 42, 0.92);
    border-color: rgba(128, 153, 190, 0.28);
}

.status-pill.blue {
    background: #eaf2ff;
    color: var(--blue-dark);
}

.status-pill.green {
    background: #e9fbf4;
    color: var(--green);
}

.metrics,
.dashboard-grid,
.dashboard-monitor,
.section-row {
    display: grid;
    gap: 18px;
}

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

.admissions-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 18px 0;
}

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

.metrics article,
.panel {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 15px 35px rgba(24, 52, 97, 0.08);
}

.chart-panel {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.income-chart-layout {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
}

.donut-chart {
    width: 152px;
    aspect-ratio: 1;
    border-radius: 50%;
    display: grid;
    place-items: center;
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.donut-chart::after {
    content: "";
    position: absolute;
    inset: 32px;
    border-radius: inherit;
    background: var(--surface);
}

.donut-chart span {
    position: relative;
    z-index: 1;
    display: grid;
    color: var(--ink);
    font-weight: 900;
    text-align: center;
}

.donut-chart small {
    color: var(--muted);
    font-size: 0.72rem;
}

.income-bars {
    display: grid;
    gap: 14px;
}

.chart-row {
    display: grid;
    grid-template-columns: 78px minmax(130px, 1fr) minmax(120px, auto);
    gap: 12px;
    align-items: center;
}

.chart-row span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-weight: 800;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex: 0 0 10px;
}

.chart-row strong {
    font-size: 0.95rem;
    text-align: right;
    white-space: nowrap;
}

.chart-track {
    min-height: 16px;
    border-radius: 999px;
    background: rgba(39, 100, 231, 0.12);
    overflow: hidden;
}

.chart-track i {
    display: block;
    min-height: 16px;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.percent-meter {
    height: 14px;
    border-radius: 999px;
    background: rgba(39, 100, 231, 0.14);
    margin: 12px 0 8px;
    overflow: hidden;
}

.percent-meter span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--green), var(--cyan));
}

.subsection-head {
    margin-top: 24px;
}

.subsection-head h3 {
    font-size: 1.1rem;
    margin: 0 0 12px;
}

body.dark-theme .metrics article,
body.dark-theme .panel {
    border-color: rgba(148, 163, 184, 0.25);
    background: var(--surface);
}


.metrics article {
    padding: 20px;
}

.metrics span,
.metrics small {
    color: var(--muted);
    display: block;
}

.metrics strong {
    display: block;
    font-size: 2rem;
    line-height: 1.15;
    margin: 10px 0 6px;
}

.metrics small {
    color: var(--green);
    font-weight: 800;
}

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

.section-row {
    grid-template-columns: 1fr;
}

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

.panel {
    width: 100%;
    min-width: 0;
    padding: 22px;
}

.finance-view .panel,
.salary-view .panel,
.tutor-view .panel,
.zauch-view {
    position: relative;
    overflow: hidden;
}

.finance-view .panel::before,
.salary-view .panel::before,
.tutor-view .panel::before,
.zauch-view::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--blue), var(--cyan), var(--green));
    animation: financePulse 3.8s ease-in-out infinite;
}

.animated-panel {
    animation: panelRise 0.55s ease both;
}

@keyframes panelRise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes financePulse {
    0%,
    100% {
        opacity: 0.75;
    }

    50% {
        opacity: 1;
    }
}

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

h2 {
    font-size: 1.3rem;
    margin: 0;
}

form,
.record-list {
    display: grid;
    gap: 12px;
}

.wide-form {
    align-items: end;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.wide-form label {
    min-width: 0;
}

label {
    color: #34425f;
    display: grid;
    gap: 7px;
    font-weight: 800;
    min-width: 0;
}

.check-row {
    align-items: center;
    display: flex;
    min-height: 44px;
}

.check-row input {
    width: 18px;
    min-height: 18px;
}

input,
select {
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink);
    outline: 0;
    padding: 0 13px;
}

body.dark-theme input,
body.dark-theme select,
body.dark-theme .record-item {
    background: #111a2c;
    color: var(--ink);
    border-color: var(--line);
}

body.dark-theme label,
body.dark-theme .record-item strong,
body.dark-theme td {
    color: var(--ink);
}

input:focus,
select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(39, 100, 231, 0.12);
}

input:disabled,
select:disabled,
button:disabled {
    cursor: not-allowed;
    opacity: 0.56;
}

.form-message {
    color: var(--blue-dark);
    font-weight: 800;
    grid-column: 1 / -1;
    margin: 0;
    min-height: 20px;
}

.record-list:empty::before {
    content: "Hali ma'lumot kiritilmagan.";
    border: 1px dashed #c7d3e3;
    border-radius: 12px;
    color: var(--muted);
    display: block;
    padding: 16px;
}

body.dark-theme .record-list:empty::before {
    border-color: var(--line);
}

.stacked-list {
    margin-top: 16px;
}

.record-item {
    display: grid;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
    padding: 14px;
}

.founder-summary {
    display: grid;
    gap: 6px;
    border-radius: 16px;
    background: linear-gradient(135deg, #102c70, #2764e7);
    color: #ffffff;
    margin: 14px 0;
    padding: 16px;
}

.founder-summary strong,
.founder-summary span {
    display: block;
}

.founder-summary span {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.45;
}

.record-item strong {
    color: var(--ink);
}

.record-item span,
.record-item small {
    color: var(--muted);
    line-height: 1.45;
}

.record-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.record-actions button {
    min-height: 34px;
    padding: 0 12px;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 0 0;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.65);
    display: grid;
    place-items: center;
    padding: 18px;
}

.modal-overlay.is-hidden {
    display: none;
}

.modal-panel {
    width: min(720px, 100%);
    background: var(--surface);
    border-radius: 18px;
    box-shadow: 0 22px 80px rgba(15, 23, 42, 0.24);
    padding: 24px;
    max-height: 90vh;
    overflow: auto;
}

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

.modal-header h2 {
    margin: 0;
    font-size: 1.05rem;
}

.modal-description {
    color: var(--muted);
    font-size: 0.92rem;
}

.modal-close {
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 1.75rem;
    cursor: pointer;
    line-height: 1;
}

.modal-form {
    display: grid;
    gap: 14px;
}

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

.modal-form label {
    display: grid;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    grid-column: 1 / -1;
    margin-top: 8px;
}

.modal-form .form-message {
    grid-column: 1 / -1;
}

.table-wrap {
    margin-top: 18px;
    overflow-x: auto;
    width: 100%;
}

.table-wrap.is-empty {
    display: none;
}

.compact-table {
    max-height: min(62vh, 680px);
    overflow: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}

.report-table {
    border-collapse: collapse;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
}

.report-table th,
.report-table td {
    border: 1px solid rgba(148, 163, 184, 0.16);
    color: #0f172a;
}

.report-table th {
    background: #f8fafc;
    font-size: 0.85rem;
    text-align: center;
    color: #0f172a;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.report-table td {
    background: #ffffff;
    font-weight: 500;
    color: #1f2937;
}

.report-table tbody tr:nth-child(even) td {
    background: #f8fafc;
}

body.dark-theme .report-table th {
    background: #dbeafe;
    color: #111827;
}

body.dark-theme .report-table td {
    background: #f8fafc;
    color: #111827;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 15px 12px;
    text-align: left;
    white-space: nowrap;
}

th {
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

thead tr:first-child th[colspan] {
    text-align: center;
}

td {
    font-weight: 750;
}

tbody tr:hover {
    background: #f6faff;
}

body.dark-theme tbody tr:hover {
    background: rgba(76, 131, 255, 0.12);
}

[data-role-block] {
    transition: opacity 0.2s ease;
}

.locked {
    opacity: 0.58;
}

@media (max-width: 1180px) {
    .sidebar {
        position: fixed;
        width: min(320px, calc(100vw - 28px));
        margin: 0;
    }

    .platform.sidebar-open .menu-toggle {
        left: min(calc(100vw - 62px), 334px);
    }

    .app-shell {
        margin-left: 0;
        padding: 82px 14px 28px;
    }

    .main-nav {
        grid-template-columns: 1fr;
    }

    .metrics,
    .dashboard-grid,
    .dashboard-monitor,
    .section-row,
    .finance-entry-grid {
        grid-template-columns: 1fr;
    }

    .wide-form {
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    }

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

@media (max-width: 720px) {
    body {
        background-size: 88vw auto;
    }

    .login-card {
        padding: 22px;
    }

    .app-shell {
        gap: 16px;
        padding: 0 10px 24px;
    }

    .panel,
    .metrics article {
        border-radius: 14px;
        padding: 16px;
    }

    .main-nav,
    .metrics,
    .dashboard-grid,
    .dashboard-monitor,
    .section-row,
    .finance-entry-grid,
    .wide-form {
        grid-template-columns: 1fr;
    }

    .sidebar {
        border-radius: 18px;
        padding: 16px;
    }

    .main-nav a {
        padding: 12px;
    }

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

    .chart-row strong {
        text-align: left;
    }

    .income-chart-layout {
        grid-template-columns: 1fr;
    }

    .donut-chart {
        justify-self: center;
    }

    .hero {
        min-height: 260px;
        align-items: flex-end;
        flex-direction: row;
        justify-content: space-between;
        background:
            linear-gradient(180deg, rgba(18, 30, 58, 0.86), rgba(18, 30, 58, 0.96)),
            url("photo_2025-08-11_13-29-10.jpg") right 18px top 18px / 170px auto no-repeat,
            #173d88;
        padding: 20px;
    }

    .hero-logo {
        width: 86px;
        height: 54px;
        border-radius: 12px;
        margin-bottom: 10px;
        padding: 6px;
    }

    .hero h1 {
        font-size: 1.65rem;
    }

    .hero p:last-child {
        font-size: 0.92rem;
        line-height: 1.45;
        margin-top: 10px;
    }

    .hero-actions {
        justify-content: stretch;
        width: 100%;
    }

    .hero-actions button,
    .hero-actions span,
    .panel-head button {
        flex: 1;
        justify-content: center;
    }

    .panel-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .metrics strong {
        font-size: 1.7rem;
    }

    form,
    .record-list {
        gap: 10px;
    }

    button {
        width: 100%;
        min-height: 46px;
    }

    input,
    select {
        min-height: 46px;
        padding: 0 12px;
    }

    .table-wrap {
        border: 1px solid var(--line);
        border-radius: 12px;
    }

    table {
        min-width: 620px;
    }

    th,
    td {
        padding: 12px 10px;
    }
}

@media print {
    .platform > :not(.print-blocker) {
        display: none !important;
    }

    .print-blocker {
        display: grid !important;
        min-height: 100vh;
        place-content: center;
        gap: 12px;
        color: #111827;
        text-align: center;
    }

    .print-blocker strong {
        font-size: 2rem;
    }
}

@media (max-width: 430px) {
    .login-screen {
        padding: 12px;
    }

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

    .login-card h1 {
        font-size: 1.65rem;
    }

    .brand {
        align-items: flex-start;
    }

    .brand img {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
    }

    .brand strong {
        font-size: 1.1rem;
    }

    .hero {
        min-height: 220px;
        border-radius: 20px;
        padding: 18px;
    }

    .hero-copy h1 {
        font-size: 1.45rem;
    }

    .record-item {
        padding: 12px;
    }
}
