﻿:root {
    --bg: #f4efe6;
    --panel: rgba(255, 255, 255, 0.82);
    --panel-strong: #fffaf3;
    --text: #18222f;
    --muted: #5d6c7d;
    --line: rgba(24, 34, 47, 0.1);
    --accent: #0d6b72;
    --accent-strong: #0a4e54;
    --ok: #d7f3dc;
    --warn: #fff0c8;
    --bad: #ffd7d7;
    --shadow: 0 24px 70px rgba(24, 34, 47, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Manrope", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(13, 107, 114, 0.22), transparent 35%),
        radial-gradient(circle at right, rgba(245, 195, 88, 0.28), transparent 32%),
        linear-gradient(145deg, #f6f1e9, #efe5d8 55%, #f9f5ef);
    overflow-x: hidden;
}

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

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

.site-credit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 600;
    white-space: nowrap;
}

.site-credit-logo {
    height: 62px;
    width: auto;
    flex: none;
}

.flash-stack {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.flash {
    padding: 14px 18px;
    border-radius: 16px;
    backdrop-filter: blur(12px);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    background: var(--panel);
}

.flash.success {
    border-color: rgba(48, 124, 74, 0.25);
}

.flash.error {
    border-color: rgba(169, 56, 56, 0.25);
}

.login-layout,
.app-layout {
    display: grid;
    gap: 24px;
    min-width: 0;
}

.login-layout {
    min-height: calc(100vh - 80px);
    align-items: center;
    grid-template-columns: 1.1fr 0.9fr;
}

.brand-panel h1,
.topbar h1,
.auth-card h2,
.section-heading h2,
.spotlight h2 {
    margin: 0;
    line-height: 1;
}

.brand-panel h1 {
    font-size: clamp(2rem, 4.6vw, 3.6rem);
    max-width: 10ch;
}

.brand-bullet-heading span {
    display: block;
    position: relative;
    padding-left: 0.9em;
}

.brand-bullet-heading span::before {
    content: "•";
    position: absolute;
    left: 0;
}

.brand-panel .lead {
    max-width: 52ch;
    font-size: 0.88rem;
    line-height: 1.42;
}

.login-panel {
    display: grid;
    gap: 18px;
    align-content: start;
}

.lead {
    max-width: 58ch;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--muted);
}

.lead.compact {
    margin: 6px 0 0;
}

.shift-label {
    display: inline-flex;
    align-items: center;
    margin: 12px 0 10px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--accent-strong);
    font-size: 0.9rem;
    font-weight: 700;
}

.shift-chip {
    display: inline-flex;
    align-items: center;
    margin: 12px 0 0;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.9rem;
    font-weight: 700;
}

.eyebrow {
    margin: 0 0 10px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
}

.info-grid,
.dashboard-grid,
.calendar-grid,
.matrix-grid {
    display: grid;
    gap: 18px;
}

.info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 28px;
}

.dashboard-grid {
    grid-template-columns: 1.3fr 0.7fr;
}

.dashboard-grid.employee {
    grid-template-columns: 0.8fr 1.2fr;
}

.card,
.info-card,
.calendar-card,
.matrix-card {
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: var(--panel);
    backdrop-filter: blur(14px);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card {
    padding: 20px;
    min-width: 0;
}

.info-card,
.matrix-card {
    padding: 18px;
}

.info-card span,
.matrix-card p,
.muted {
    color: var(--muted);
}

.auth-card {
    display: grid;
    gap: 18px;
    padding: 32px;
    background: linear-gradient(180deg, rgba(255, 250, 243, 0.9), rgba(255, 255, 255, 0.84));
}

.field {
    display: grid;
    gap: 8px;
    font-weight: 700;
}

.field.inline {
    min-width: 180px;
}

.field.inline span {
    min-height: 24px;
}

input,
select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.8);
    font: inherit;
    color: var(--text);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 18px;
    border: 0;
    border-radius: 16px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: transform 160ms ease, opacity 160ms ease, background 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button.primary {
    color: white;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.button.ghost {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--line);
}

.topbar,
.toolbar,
.section-heading,
.absence-row,
.reserve-panel,
.topbar-actions,
.inline-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
}

.topbar > div,
.section-heading > div,
.toolbar-primary,
.toolbar-secondary,
.topbar-actions {
    min-width: 0;
}

.absence-row {
    align-items: flex-start;
}

.absence-row-body {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.absence-row-detail {
    margin: 0;
    font-size: 0.92rem;
    color: var(--muted);
}

.warning-text {
    color: #9d5b00;
}

.toolbar {
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 14px;
}

.toolbar-primary {
    flex: 1 1 680px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.toolbar-secondary {
    margin-left: auto;
    align-items: flex-end;
}

.updated-at {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 4px;
    color: #1f7a38;
    font-weight: 800;
    white-space: nowrap;
}

@media (min-width: 901px) {
    .toolbar {
        flex-wrap: nowrap;
        align-items: flex-end;
    }

    .toolbar-primary {
        flex: 0 1 auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 24px;
    }

    .toolbar-secondary {
        flex: 1 1 auto;
        flex-wrap: nowrap;
        justify-content: flex-end;
        gap: 14px;
        min-width: 0;
    }
}

.table-wrap {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    min-width: 0;
}

.scroll-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(13, 107, 114, 0.08);
    color: var(--accent-strong);
    font-size: 0.78rem;
    font-weight: 800;
}

.scroll-hint-icon {
    font-size: 0.95rem;
    line-height: 1;
}

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

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

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

.status-pill,
.tag,
.assignment-badge,
.assignment-chip,
.priority-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.assignment-chip,
.status-pill,
.tag,
.priority-pill {
    border-radius: 999px;
}

.status-pill {
    padding: 7px 12px;
    font-size: 0.82rem;
}

.status-pill.ok {
    background: var(--ok);
}

.status-pill.warn {
    background: var(--warn);
}

.status-pill.bad {
    background: var(--bad);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    padding: 8px 12px;
    background: rgba(13, 107, 114, 0.1);
    color: var(--accent-strong);
    font-size: 0.88rem;
}

.assignment-chip {
    margin: 0 8px 8px 0;
    padding: 8px 12px;
    background: rgba(24, 34, 47, 0.06);
    font-size: 0.84rem;
}

.priority-pill {
    min-width: 56px;
    padding: 9px 12px;
    font-size: 0.82rem;
}

.priority-pill.priority-high {
    background: #d9f6df;
    color: #1f6b31;
}

.priority-pill.priority-mid {
    background: #fff2c9;
    color: #8a5a00;
}

.priority-pill.priority-low {
    background: #ffd7d7;
    color: #8b2323;
}

.matrix-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.matrix-card h3 {
    margin: 0 0 8px;
}

.absence-list {
    display: grid;
    gap: 12px;
}

.spotlight {
    background: linear-gradient(160deg, rgba(13, 107, 114, 0.92), rgba(8, 46, 51, 0.92));
    color: white;
}

.spotlight .eyebrow,
.spotlight .muted {
    color: rgba(255, 255, 255, 0.8);
}

.assignment-badge {
    min-height: 104px;
    margin: 18px 0 12px;
    padding: 18px 22px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.12);
    font-size: clamp(1.5rem, 4vw, 2.3rem);
}

.assignment-badge.neutral {
    background: rgba(255, 255, 255, 0.08);
}

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

.calendar-card {
    display: grid;
    gap: 12px;
    padding: 18px;
}

@media (min-width: 1100px) {
    html {
        zoom: 0.8;
    }
}

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

    .topbar,
    .toolbar,
    .section-heading,
    .inline-form {
        align-items: stretch;
        flex-direction: column;
    }

    .toolbar-secondary {
        margin-left: 0;
    }

    .page-shell {
        width: min(100% - 20px, 1240px);
        padding-top: 18px;
    }

    .field.inline {
        min-width: 0;
    }

    .toolbar-primary,
    .toolbar-secondary {
        width: 100%;
    }

    .toolbar-primary {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
        gap: 8px;
    }

    .brand-panel h1 {
        max-width: none;
    }
}

.table-input {
    max-width: 92px;
    padding: 10px 12px;
}

.priority-editor {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.priority-input {
    max-width: 84px;
}

.table-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.top-gap {
    margin-top: 24px;
}

.split-note {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.chips-line {
    margin-top: 10px;
}

.qualification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.qualification-card {
    display: grid;
    gap: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: var(--panel);
    backdrop-filter: blur(14px);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.qualification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

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

.section-dropdown-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    margin-bottom: 18px;
    border-radius: 18px;
    background: rgba(13, 107, 114, 0.08);
    color: var(--accent-strong);
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

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

.dropdown-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 92px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(13, 107, 114, 0.1);
    color: var(--accent-strong);
    font-size: 0.82rem;
    font-weight: 800;
}

.dropdown-indicator::after {
    content: "▾";
    font-size: 0.9rem;
}

.section-dropdown[open] .dropdown-indicator::after {
    content: "▴";
}

.check-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.check-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(24, 34, 47, 0.06);
    font-size: 0.9rem;
}

.check-pill input {
    width: auto;
    margin: 0;
}

.absence-form {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.field-wide {
    grid-column: span 2;
}

.calendar-month-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
}

.calendar-day {
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.72);
}

.calendar-day-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.calendar-entries {
    display: grid;
    gap: 10px;
}

.calendar-entry {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(24, 34, 47, 0.05);
}

.warning-entry {
    background: rgba(255, 215, 215, 0.65);
}

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

.timeline-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(24, 34, 47, 0.05);
}

.timeline-item.temporary {
    background: rgba(13, 107, 114, 0.1);
    border: 1px solid rgba(13, 107, 114, 0.16);
}

.timeline-item.absence {
    background: rgba(255, 215, 215, 0.5);
    border: 1px solid rgba(169, 56, 56, 0.12);
}

.timeline-time {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    font-weight: 800;
}

.timeline-content strong {
    display: block;
    margin-bottom: 4px;
}

.schedule-board {
    display: grid;
    gap: 16px;
}

.schedule-board-header,
.schedule-row {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.schedule-name-head,
.schedule-row-name {
    font-weight: 800;
    color: var(--text);
}

.schedule-name-head {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.schedule-time-head,
.schedule-row-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 12px;
}

.schedule-time-head span {
    text-align: center;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.schedule-row-track {
    position: relative;
    min-height: 96px;
}

.schedule-row-grid {
    position: absolute;
    inset: 0;
}

.schedule-row-grid span {
    border-radius: 20px;
    background: rgba(24, 34, 47, 0.04);
    border: 1px solid rgba(24, 34, 47, 0.04);
}

.schedule-segment {
    position: absolute;
    top: 8px;
    bottom: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 22px;
    border: 1px solid transparent;
    box-shadow: 0 10px 28px rgba(24, 34, 47, 0.08);
    overflow: hidden;
}

.schedule-segment.plant {
    background: linear-gradient(135deg, rgba(13, 107, 114, 0.14), rgba(13, 107, 114, 0.08));
    border-color: rgba(13, 107, 114, 0.18);
}

.schedule-segment.temporary {
    background: linear-gradient(135deg, rgba(255, 240, 200, 0.95), rgba(255, 233, 170, 0.9));
    border-color: rgba(212, 155, 0, 0.2);
}

.schedule-segment.absence {
    background: linear-gradient(135deg, rgba(255, 215, 215, 0.98), rgba(255, 193, 193, 0.9));
    border-color: rgba(169, 56, 56, 0.16);
}

.schedule-segment.reserve {
    background: linear-gradient(135deg, rgba(230, 235, 240, 0.98), rgba(218, 225, 232, 0.92));
    border-color: rgba(24, 34, 47, 0.1);
}

.schedule-segment.empty {
    background: rgba(24, 34, 47, 0.06);
    border-color: rgba(24, 34, 47, 0.06);
}

.schedule-segment-title {
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.schedule-segment-detail {
    font-size: 0.78rem;
    line-height: 1.35;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shift-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.legend-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 800;
}

.legend-pill.plant {
    background: rgba(13, 107, 114, 0.08);
}

.legend-pill.temporary {
    background: rgba(255, 240, 200, 0.8);
}

.legend-pill.absence {
    background: rgba(255, 215, 215, 0.8);
}

.legend-pill.reserve {
    background: rgba(230, 235, 240, 0.9);
}

.view-body {
    background:
        radial-gradient(circle at top left, rgba(13, 107, 114, 0.18), transparent 36%),
        linear-gradient(145deg, #f4efe6, #efe4d6 55%, #f8f4ec);
}

.view-shell {
    width: min(1440px, calc(100% - 24px));
    padding-top: 14px;
    padding-bottom: 22px;
}

.view-layout {
    display: grid;
    gap: 8px;
}

.view-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.view-header .eyebrow {
    margin-bottom: 6px;
}

.view-header .lead.compact {
    margin-top: 0;
}

.view-header .updated-at {
    margin: 2px 0 0;
}

.view-card {
    padding: 14px 14px 12px;
}

.view-layout .schedule-board {
    gap: 8px;
}

.view-layout .schedule-board-header,
.view-layout .schedule-row {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 10px;
}

.view-layout .schedule-name-head,
.view-layout .schedule-time-head span {
    font-size: 0.76rem;
}

.view-layout .schedule-row-name {
    font-size: 0.84rem;
}

.view-layout .schedule-row-track {
    min-height: 48px;
}

.view-layout .schedule-row-grid span {
    border-radius: 14px;
}

.view-layout .schedule-segment {
    top: 3px;
    bottom: 3px;
    padding: 6px 8px;
    border-radius: 12px;
    gap: 2px;
}

.view-layout .schedule-segment-title {
    font-size: 0.72rem;
}

.view-layout .schedule-segment-detail {
    font-size: 0.62rem;
}

.view-layout .schedule-segment:not(.temporary):not(.absence) .schedule-segment-detail {
    display: none;
}

.grouped-schedule {
    display: grid;
    gap: 16px;
}

.schedule-group {
    display: grid;
    gap: 8px;
}

.schedule-group + .schedule-group {
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.schedule-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.schedule-group-header h2 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.1;
}

.schedule-group-header .muted {
    margin: 4px 0 0;
    font-size: 0.8rem;
}

.employee-board {
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
}

.employee-board-header,
.employee-board-row {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 10px;
}

.employee-board-slot {
    text-align: center;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.month-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.month-label {
    min-width: 140px;
    text-align: center;
    font-weight: 800;
}

.button.small {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.86rem;
}

@media (max-width: 900px) {
    .split-note,
    .absence-form {
        grid-template-columns: 1fr;
    }

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

    .employee-board-header,
    .employee-board-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .field-wide {
        grid-column: auto;
    }

    .qualification-header,
    .month-nav,
    .view-header {
        flex-direction: column;
        align-items: stretch;
    }

    .schedule-board-header,
    .schedule-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .schedule-time-head,
    .schedule-row-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .app-layout {
        gap: 10px;
    }

    .page-shell {
        width: calc(100% - 12px);
        padding-top: 8px;
        padding-bottom: 16px;
    }

    .site-credit {
        margin-top: 18px;
        font-size: 0.68rem;
    }

    .site-credit-logo {
        height: 50px;
    }

    .card {
        padding: 12px;
    }

    .topbar,
    .toolbar,
    .section-heading,
    .inline-form {
        gap: 6px;
        justify-content: flex-start;
    }

    .topbar h1 {
        font-size: clamp(1.18rem, 5.6vw, 1.45rem);
        line-height: 0.94;
        overflow-wrap: anywhere;
        word-break: break-word;
        max-width: 100%;
    }

    .eyebrow {
        margin-bottom: 3px;
        font-size: 0.68rem;
    }

    .lead.compact {
        margin-top: 2px;
        font-size: 0.78rem;
        line-height: 1.24;
        max-width: 100%;
    }

    .toolbar {
        gap: 6px;
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .inline-form,
    .toolbar-primary,
    .toolbar-secondary,
    .topbar-actions {
        width: 100%;
        flex: none;
    }

    .toolbar-secondary {
        gap: 6px;
    }

    .field {
        gap: 4px;
    }

    .field.inline span {
        min-height: 0;
        font-size: 0.82rem;
    }

    .toolbar-primary .field.inline {
        gap: 2px;
    }

    input,
    select {
        padding: 10px 12px;
        font-size: 16px;
        border-radius: 14px;
    }

    .button,
    .button.ghost,
    .button.primary {
        width: 100%;
        min-height: 42px;
    }

    .updated-at {
        min-height: 0;
        padding: 0;
        white-space: normal;
        font-size: 0.88rem;
    }

    .shift-label {
        margin: 6px 0 8px;
        padding: 0;
        font-size: 0.82rem;
    }

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

    .qualification-card {
        padding: 12px;
    }

    .month-label {
        min-width: 0;
    }

    .view-shell {
        width: calc(100% - 16px);
        padding-top: 10px;
        padding-bottom: 18px;
    }

    .view-header {
        gap: 8px;
    }

    .view-layout .schedule-row-name {
        font-size: 0.8rem;
    }

    th,
    td {
        padding: 10px 8px;
        font-size: 0.9rem;
    }

    thead th {
        font-size: 0.72rem;
    }

    .table-wrap table {
        min-width: 640px;
    }

    .scroll-hint {
        margin-bottom: 8px;
        font-size: 0.72rem;
    }

    .section-heading h2,
    .auth-card h2 {
        font-size: clamp(1.22rem, 5.8vw, 1.5rem);
        line-height: 0.98;
        overflow-wrap: anywhere;
        word-break: break-word;
        max-width: 100%;
    }

    .brand-panel h1 {
        font-size: clamp(1.6rem, 6vw, 2.05rem);
        line-height: 0.94;
        max-width: 100%;
    }

    .brand-panel .lead {
        font-size: 0.78rem;
        line-height: 1.24;
        max-width: 100%;
    }

    .topbar-actions .button,
    .toolbar-secondary .button {
        width: 100%;
    }
}
