:root {
    --blue: #155b9d;
    --blue-dark: #073f78;
    --blue-soft: #c9e9f4;
    --green-soft: #d8eac8;
    --pink-soft: #ffc8cc;
    --ink: #12324f;
    --muted: #60758a;
    --line: #d8e2ea;
    --bg: #f6f9fb;
    --panel: #ffffff;
    --danger: #b93645;
    --success: #24724f;
    --shadow: 0 14px 35px rgba(18, 50, 79, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    margin: 0;
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    background:
        linear-gradient(180deg, rgba(201, 233, 244, 0.30), rgba(246, 249, 251, 0) 300px),
        var(--bg);
}

a {
    color: var(--blue);
}

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

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

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 18px clamp(16px, 4vw, 40px);
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--blue-dark);
    text-decoration: none;
    min-width: max-content;
}

.brand-mark {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: 0 0 128px;
    width: 128px;
    height: 58px;
}

.brand-mark span {
    position: absolute;
    width: 58px;
    height: 58px;
    border-radius: 999px;
}

.brand-mark span:nth-child(1) {
    left: 0;
    background: var(--pink-soft);
}

.brand-mark span:nth-child(2) {
    left: 27px;
    background: var(--blue);
}

.brand-mark span:nth-child(3) {
    left: 65px;
    background: #b7d987;
}

.topbar .brand-mark {
    flex-basis: 100px;
    width: 100px;
    height: 44px;
}

.topbar .brand-mark span {
    width: 44px;
    height: 44px;
}

.topbar .brand-mark span:nth-child(2) {
    left: 22px;
}

.topbar .brand-mark span:nth-child(3) {
    left: 51px;
}

.brand-text {
    display: grid;
    line-height: 1.08;
}

.brand-text strong {
    font-size: 15px;
}

.brand-text small {
    color: var(--muted);
}

.main-nav {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.main-nav a {
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--blue-dark);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

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

.nav-toggle {
    display: none;
}

.session-pill {
    display: grid;
    gap: 1px;
    min-width: max-content;
    padding: 8px 13px;
    border-radius: 8px;
    background: var(--green-soft);
    color: var(--blue-dark);
    font-size: 13px;
}

.session-pill.readonly {
    background: var(--pink-soft);
}

.session-pill span {
    color: var(--muted);
    font-weight: 700;
}

.content {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 56px;
}

.page-header,
.section-heading,
.toolbar,
.day-panel-header,
.header-actions,
.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.page-header {
    margin-bottom: 18px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 0;
    color: var(--blue-dark);
    font-size: 32px;
    line-height: 1.15;
}

h2 {
    margin-bottom: 0;
    color: var(--blue-dark);
    font-size: 22px;
}

h3 {
    margin-bottom: 4px;
    color: var(--blue-dark);
    font-size: 18px;
}

.eyebrow {
    display: block;
    margin-bottom: 4px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.panel,
.day-panel,
.room-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.panel {
    padding: 22px;
}

.compact-panel {
    width: min(560px, 100%);
    margin: 60px auto;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.button.primary {
    background: var(--blue);
    color: #fff;
}

.button.primary:hover {
    background: var(--blue-dark);
}

.button.secondary {
    background: var(--green-soft);
    color: var(--blue-dark);
}

.button.ghost {
    background: #fff;
    border-color: var(--blue);
    color: var(--blue);
}

.button.danger {
    background: #fff;
    border-color: var(--danger);
    color: var(--danger);
}

.button.small {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 14px;
}

.button.large {
    min-height: 50px;
}

.button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.alert {
    margin: 0 0 16px;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    font-weight: 700;
}

.alert.error {
    border-color: #e7a5ae;
    background: #fff3f4;
    color: #7f1f2b;
}

.alert.success {
    border-color: #9ed0b6;
    background: #effaf4;
    color: #155a3b;
}

.alert.info {
    background: #eef7fb;
    color: var(--blue-dark);
}

.login-page {
    display: grid;
    gap: 28px;
    padding-top: 32px;
}

.login-intro {
    max-width: 760px;
}

.login-intro h1 {
    font-size: 40px;
}

.login-intro p {
    max-width: 620px;
    font-size: 18px;
}

.login-grid,
.split-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(420px, 1.4fr);
    gap: 22px;
    align-items: start;
}

.login-card {
    display: grid;
    gap: 16px;
}

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

.brand-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.setup-form {
    display: grid;
    gap: 18px;
}

.with-margin {
    margin-top: 8px;
}

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

.mini-panel {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
}

.mini-panel legend {
    padding: 0 6px;
    color: var(--blue-dark);
    font-weight: 800;
}

label {
    display: grid;
    gap: 6px;
    color: var(--blue-dark);
    font-weight: 800;
}

label span,
.hint {
    color: var(--muted);
    font-size: 14px;
}

.prose {
    max-width: 860px;
}

.prose p:last-child {
    margin-bottom: 0;
}

input,
select,
textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 2px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--blue);
    outline: 3px solid rgba(21, 91, 157, 0.18);
}

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

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

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

.form-grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

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

.check-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: max-content;
    max-width: 100%;
}

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

.toolbar {
    margin-bottom: 18px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.segmented {
    display: inline-flex;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f0f6fa;
}

.segmented a {
    padding: 9px 14px;
    border-radius: 6px;
    color: var(--blue-dark);
    font-weight: 800;
    text-decoration: none;
}

.segmented a.active {
    background: var(--blue);
    color: #fff;
}

.date-jump {
    display: flex;
    gap: 10px;
    align-items: end;
}

.calendar-month {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--line);
    box-shadow: var(--shadow);
}

.weekday,
.day-cell {
    background: #fff;
}

.weekday {
    padding: 10px;
    color: var(--muted);
    font-weight: 800;
    text-align: center;
}

.day-cell {
    min-height: 132px;
    padding: 10px;
}

.day-cell.today {
    background: #eef7fb;
}

.day-cell.selected {
    outline: 3px solid rgba(21, 91, 157, 0.22);
    outline-offset: -3px;
}

.day-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    color: var(--blue-dark);
    font-weight: 800;
    text-decoration: none;
}

.event-stack {
    display: grid;
    gap: 5px;
    margin-top: 8px;
}

.event-chip {
    display: grid;
    gap: 1px;
    min-width: 0;
    padding: 7px 8px;
    border-left: 4px solid var(--blue);
    border-radius: 6px;
    background: #eef7fb;
    color: var(--blue-dark);
    font-size: 13px;
    text-decoration: none;
}

.event-chip.nurse,
.event-row.nurse {
    border-left-color: #6a9c3e;
}

.event-chip.doctor,
.event-row.doctor {
    border-left-color: var(--blue);
}

.event-chip.planning,
.event-row.planning {
    border-left-color: #cf7b85;
}

.event-chip.planning {
    background: #fff3f4;
}

.event-chip.special,
.event-row.special {
    border-left-color: #6a9c3e;
}

.event-chip.special {
    background: #f3faef;
}

.event-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.more-link {
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
}

.calendar-list {
    display: grid;
    gap: 14px;
}

.day-panel {
    padding: 18px;
}

.day-panel-header {
    margin-bottom: 14px;
}

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

.event-row {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-left: 6px solid var(--blue);
    border-radius: 8px;
    background: #fbfdff;
}

.event-time {
    color: var(--blue-dark);
    font-weight: 900;
}

.event-main p {
    margin-bottom: 0;
    color: var(--muted);
}

.event-main .notes {
    margin-top: 6px;
    color: var(--ink);
}

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

.row-actions form {
    margin: 0;
}

.inline-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0;
}

.inline-details {
    position: relative;
}

.inline-details summary {
    list-style: none;
    cursor: pointer;
}

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

.inline-details[open] {
    flex-basis: 100%;
}

.inline-details[open] form {
    margin-top: 8px;
    min-width: min(520px, 100%);
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.compact-list {
    margin: 8px 0 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: 0.88rem;
}

.bar-meter {
    display: block;
    width: min(180px, 100%);
    height: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #edf4f8;
}

.bar-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--blue);
}

.bar-meter.over span {
    background: var(--danger);
}

.print-page {
    background: #fff;
}

.print-document {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 48px;
}

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

.print-header h1 {
    margin: 0;
}

.print-header p {
    margin: 6px 0 0;
    color: var(--muted);
}

.print-section {
    break-inside: avoid;
    margin-bottom: 16px;
}

.form-panel,
.list-panel {
    min-width: 0;
}

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

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

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

th {
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
}

.status {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.status.ok {
    background: var(--green-soft);
    color: #285a19;
}

.status.info {
    background: var(--blue-soft);
    color: var(--blue-dark);
}

.status.warn {
    background: var(--pink-soft);
    color: #7c1f2c;
}

.status.muted {
    background: #eef1f4;
    color: var(--muted);
}

.impact-list {
    display: grid;
    gap: 6px;
    max-width: 460px;
    margin: 0;
    padding-left: 18px;
    color: var(--ink);
    font-size: 14px;
}

.impact-list.compact {
    max-width: 360px;
    font-size: 13px;
}

.impact-list .warning,
.impact-list .warn {
    color: var(--danger);
}

.impact-list .info {
    color: var(--blue-dark);
}

.impact-list .ok {
    color: var(--success);
}

.inline-decision-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.inline-decision-form input {
    min-width: 150px;
    max-width: 210px;
    padding: 7px 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.room-load-wrap {
    max-height: 620px;
}

.room-load-table th:first-child,
.room-load-table td:first-child {
    min-width: 190px;
}

.load-cell {
    display: grid;
    gap: 3px;
    min-width: 150px;
    min-height: 58px;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #eef1f4;
}

.load-cell strong {
    color: var(--blue-dark);
}

.load-cell span {
    color: var(--muted);
    font-size: 13px;
}

.load-cell.empty {
    background: #f8fafc;
}

.load-cell.ok {
    background: var(--blue-soft);
}

.load-cell.full {
    background: var(--green-soft);
}

.load-cell.over {
    border-color: var(--danger);
    background: var(--pink-soft);
}

.load-cell.over strong,
.load-cell.over span {
    color: #7c1f2c;
}

.room-card {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    box-shadow: none;
}

.room-card.inactive {
    opacity: 0.72;
}

.room-card p {
    color: var(--muted);
}

.settings-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.settings-list div {
    display: grid;
    gap: 2px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.settings-list dt {
    color: var(--muted);
    font-weight: 800;
}

.settings-list dd {
    margin: 0;
}

.planner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.metric-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.metric-card strong {
    display: block;
    color: var(--blue-dark);
    font-size: 34px;
    line-height: 1.1;
}

.metric-card p {
    margin-bottom: 0;
    color: var(--muted);
    font-weight: 700;
}

.stats-dashboard {
    display: grid;
    gap: 16px;
    margin-bottom: 22px;
}

.dashboard-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
}

.dashboard-card,
.chart-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.dashboard-card {
    display: grid;
    gap: 6px;
    min-height: 132px;
    padding: 18px;
    border-left: 8px solid var(--blue);
}

.dashboard-card span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.dashboard-card strong {
    display: block;
    color: var(--blue-dark);
    font-size: 32px;
    line-height: 1.1;
}

.dashboard-card p {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}

.dashboard-card-green {
    border-left-color: #6a9c3e;
}

.dashboard-card-pink {
    border-left-color: #cf7b85;
}

.dashboard-card-neutral {
    border-left-color: #8a98a8;
}

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

.chart-panel {
    min-width: 0;
    padding: 18px;
}

.trend-panel {
    grid-column: 1 / -1;
}

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

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

.chart-scale {
    min-width: max-content;
    padding: 5px 9px;
    border-radius: 999px;
    background: #eef7fb;
    color: var(--blue-dark);
    font-size: 13px;
    font-weight: 800;
}

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

.trend-axis {
    stroke: #c9d6e2;
    stroke-width: 1.5;
}

.trend-reference {
    stroke: #8a98a8;
    stroke-dasharray: 5 6;
    stroke-width: 1.5;
}

.trend-label {
    fill: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.trend-line {
    fill: none;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.trend-line.overall,
.trend-dot.overall,
.legend-dot.overall {
    stroke: var(--blue);
    background: var(--blue);
}

.trend-line.omalaakari,
.trend-dot.omalaakari,
.legend-dot.omalaakari {
    stroke: #6a9c3e;
    background: #6a9c3e;
}

.trend-line.rooms,
.trend-dot.rooms,
.legend-dot.rooms {
    stroke: #cf7b85;
    background: #cf7b85;
}

.trend-dot {
    fill: #fff;
    stroke-width: 3;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

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

.legend-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 999px;
}

.mini-bars {
    display: grid;
    gap: 12px;
}

.mini-bar-row {
    display: grid;
    grid-template-columns: minmax(140px, 1fr) minmax(130px, 1.4fr) auto;
    gap: 12px;
    align-items: center;
}

.mini-bar-label {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.mini-bar-label strong {
    overflow-wrap: anywhere;
    color: var(--blue-dark);
}

.mini-bar-label span {
    color: var(--muted);
    font-size: 13px;
}

.mini-bar-track {
    display: block;
    height: 13px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #edf4f8;
}

.mini-bar-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--blue);
}

.mini-bar-fill.ok {
    background: #6a9c3e;
}

.mini-bar-fill.warning {
    background: #cf7b85;
}

.mini-bar-fill.danger {
    background: var(--danger);
}

.mini-bar-value {
    min-width: 58px;
    color: var(--blue-dark);
    font-size: 14px;
    font-weight: 900;
    text-align: right;
}

.metric-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.metric {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.metric span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.metric strong {
    display: block;
    color: var(--blue-dark);
    font-size: 24px;
    line-height: 1.1;
}

.filter-panel {
    margin-bottom: 18px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.tag,
.source-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eef7fb;
    color: var(--blue-dark);
    font-size: 13px;
    font-weight: 800;
}

.source-badge.school {
    background: var(--blue-soft);
}

.source-badge.neuvola {
    background: var(--green-soft);
}

.compact-table {
    margin-top: 12px;
}

.planner-day {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.planner-day.special-day {
    background: #fbfff8;
}

.special-day-note {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.planner-day header h2 {
    font-size: 20px;
}

.shift-list {
    display: grid;
    gap: 8px;
}

.shift-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
    padding: 12px;
    border: 1px solid var(--line);
    border-left: 5px solid var(--blue);
    border-radius: 8px;
    background: #fbfdff;
}

.shift-card.PM {
    border-left-color: #6a9c3e;
}

.shift-card.FULL_DAY {
    border-left-color: #cf7b85;
}

.shift-card p {
    margin-bottom: 8px;
    color: var(--muted);
}

.compact-form {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.empty {
    margin: 0;
    padding: 16px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    background: #fbfdff;
    color: var(--muted);
    font-weight: 700;
}

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

@media (max-width: 980px) {
    .topbar {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        min-height: 42px;
        padding: 9px 14px;
        border: 2px solid var(--blue);
        border-radius: 8px;
        background: #fff;
        color: var(--blue);
        font-weight: 800;
    }

    .main-nav {
        display: none;
        flex-basis: 100%;
        order: 4;
        flex-direction: column;
        align-items: stretch;
    }

    .main-nav.open {
        display: flex;
    }

    .session-pill {
        margin-left: auto;
    }

    .login-grid,
    .split-layout,
    .dashboard-grid,
    .form-grid.two,
    .form-grid.three,
    .form-grid.four,
    .form-grid.five,
    .user-setup-grid,
    .room-grid {
        grid-template-columns: 1fr;
    }

    .calendar-month {
        display: block;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .weekday {
        display: none;
    }

    .day-cell {
        min-height: auto;
        margin-bottom: 10px;
        border: 1px solid var(--line);
        border-radius: 8px;
        box-shadow: var(--shadow);
    }
}

@media (max-width: 680px) {
    .content {
        width: min(100% - 20px, 1220px);
        padding-top: 22px;
    }

    .topbar .brand-mark {
        flex-basis: 82px;
        width: 82px;
        height: 36px;
    }

    .topbar .brand-mark span {
        width: 36px;
        height: 36px;
    }

    .topbar .brand-mark span:nth-child(2) {
        left: 18px;
    }

    .topbar .brand-mark span:nth-child(3) {
        left: 42px;
    }

    .brand-text strong {
        max-width: 170px;
    }

    .page-header,
    .section-heading,
    .toolbar,
    .day-panel-header,
    .header-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .header-actions,
    .date-jump {
        width: 100%;
    }

    .header-actions .button,
    .date-jump .button {
        flex: 1;
    }

    .segmented {
        width: 100%;
    }

    .segmented a {
        flex: 1;
        text-align: center;
    }

    .event-row {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .row-actions {
        justify-content: flex-start;
    }

    .button {
        width: 100%;
    }

    .row-actions .button,
    .room-card .button {
        width: auto;
    }

    .chart-panel-header,
    .mini-bar-row {
        grid-template-columns: 1fr;
    }

    .chart-panel-header {
        flex-direction: column;
    }

    .mini-bar-value {
        text-align: left;
    }

    h1 {
        font-size: 28px;
    }

    .login-intro h1 {
        font-size: 32px;
    }
}

@media print {
    html,
    body {
        background: #fff;
    }

    .no-print,
    .topbar,
    .toolbar,
    .form-panel,
    .nav-toggle,
    .session-pill {
        display: none !important;
    }

    .content,
    .print-document {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .panel,
    .list-panel,
    .print-section {
        box-shadow: none;
        border: 1px solid #cfd9e2;
        break-inside: avoid;
    }

    table {
        font-size: 12px;
    }

    th,
    td {
        padding: 6px;
    }
}
