:root {
    --bg: #eef5fb;
    --bg-strong: #ffffff;
    --surface: rgba(255, 255, 255, 0.96);
    --surface-strong: #ffffff;
    --surface-soft: #eef5fb;
    --surface-soft-alt: rgba(244, 249, 255, 0.96);
    --border: rgba(19, 58, 99, 0.12);
    --text: #173a63;
    --muted: #5f7d97;
    --teal: #1f5e99;
    --teal-strong: #2d6cac;
    --blue: #2563a9;
    --mint: #2fa7c4;
    --sky: #9bc8f2;
    --warning: #f0a849;
    --danger: #c95f5f;
    --shadow: 0 24px 56px rgba(20, 65, 112, 0.08);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --heading-font: "Bahnschrift", "Trebuchet MS", sans-serif;
    --body-font: "Aptos", "Trebuchet MS", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(77, 143, 243, 0.12), transparent 30%),
        radial-gradient(circle at right 20%, rgba(43, 116, 186, 0.08), transparent 24%),
        linear-gradient(180deg, #f7fbff 0%, var(--bg) 100%);
    color: var(--text);
    font-family: var(--body-font);
    line-height: 1.5;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-family: var(--heading-font);
    letter-spacing: -0.02em;
}

p {
    margin: 0;
}

.page-orbs {
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    position: fixed;
    z-index: 0;
}

.page-orb {
    border-radius: 999px;
    filter: blur(10px);
    position: absolute;
    animation: drift 16s ease-in-out infinite;
}

.page-orb--one {
    background: rgba(82, 158, 223, 0.12);
    height: 280px;
    left: -80px;
    top: 140px;
    width: 280px;
}

.page-orb--two {
    animation-delay: -5s;
    background: rgba(44, 114, 222, 0.1);
    height: 220px;
    right: 10%;
    top: 40px;
    width: 220px;
}

.page-orb--three {
    animation-delay: -9s;
    background: rgba(63, 136, 206, 0.08);
    bottom: -40px;
    height: 240px;
    right: -40px;
    width: 240px;
}

.eyebrow {
    color: var(--teal);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.muted {
    color: var(--muted);
}

.btn {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 18px;
    cursor: pointer;
    display: inline-flex;
    font-weight: 700;
    gap: 0.5rem;
    justify-content: center;
    min-height: 40px;
    padding: 0.62rem 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, #173a63, #24558f);
    border-color: rgba(19, 58, 99, 0.16);
    box-shadow: 0 14px 28px rgba(23, 58, 99, 0.16);
    color: #fff;
}

.btn-secondary {
    background: linear-gradient(135deg, #244c7a, #2f629d);
    border-color: rgba(19, 58, 99, 0.14);
    color: #fff;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.92);
    border-color: var(--border);
    color: var(--text);
}

.btn-danger {
    background: rgba(201, 95, 95, 0.12);
    border-color: rgba(201, 95, 95, 0.22);
    color: #a24646;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.56;
    transform: none;
}

.action-icon {
    fill: none;
    flex-shrink: 0;
    height: 1rem;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
    width: 1rem;
}

.brand-lockup {
    align-items: center;
    display: flex;
    gap: 0.9rem;
}

.brand-lockup--sidebar {
    margin-bottom: 1rem;
}

.brand-mark {
    align-items: center;
    background: linear-gradient(145deg, var(--teal), var(--blue));
    border-radius: 20px;
    box-shadow: 0 14px 28px rgba(28, 116, 157, 0.24);
    color: #fff;
    display: inline-flex;
    font-family: var(--heading-font);
    font-size: 1rem;
    font-weight: 800;
    height: 48px;
    justify-content: center;
    letter-spacing: 0.04em;
    width: 48px;
}

.brand-name {
    font-family: var(--heading-font);
    font-size: 1.2rem;
    font-weight: 800;
}

.brand-tag {
    color: var(--muted);
    font-size: 0.9rem;
}

.field-group {
    display: grid;
    gap: 0.45rem;
}

.field-group label {
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 700;
}

.field-group input,
.field-group select,
.field-group textarea {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(19, 58, 99, 0.14);
    border-radius: 16px;
    color: var(--text);
    min-height: 52px;
    padding: 0.85rem 1rem;
}

.field-group input::placeholder,
.field-group select::placeholder,
.field-group textarea::placeholder {
    color: rgba(95, 125, 151, 0.72);
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
    border-color: rgba(37, 99, 169, 0.44);
    box-shadow: 0 0 0 4px rgba(37, 99, 169, 0.1);
    outline: none;
}

.field-group textarea {
    min-height: 92px;
    resize: vertical;
}

.field-error {
    color: var(--danger);
    font-size: 0.84rem;
}

.form-errors {
    background: rgba(225, 124, 124, 0.12);
    border: 1px solid rgba(225, 124, 124, 0.22);
    border-radius: var(--radius-sm);
    color: #ffc3c3;
    display: grid;
    gap: 0.35rem;
    padding: 0.85rem 1rem;
}

.flash-stack {
    display: grid;
    gap: 0.7rem;
    position: fixed;
    right: 1.25rem;
    top: 1.25rem;
    width: min(360px, calc(100vw - 2rem));
    z-index: 4;
}

.flash {
    backdrop-filter: blur(18px);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    font-weight: 700;
    padding: 0.9rem 1rem;
}

.flash--success {
    background: rgba(74, 214, 191, 0.16);
}

.flash--error {
    background: rgba(225, 124, 124, 0.14);
}

.flash--info {
    background: rgba(255, 255, 255, 0.96);
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.auth-panel {
    padding: 3rem;
}

.auth-panel--brand {
    background:
        linear-gradient(160deg, rgba(236, 245, 252, 0.96), rgba(221, 237, 250, 0.94)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.72));
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
}

.auth-panel--form {
    align-items: center;
    display: flex;
    justify-content: center;
}

.auth-copy {
    display: grid;
    gap: 1rem;
    max-width: 640px;
}

.auth-copy h1 {
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    line-height: 1.02;
}

.auth-copy .muted {
    font-size: 1.06rem;
    max-width: 560px;
}

.auth-visual {
    background: linear-gradient(180deg, rgba(245, 250, 255, 0.98), rgba(234, 243, 251, 0.96));
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    min-height: 320px;
    overflow: hidden;
    padding: 2rem;
    position: relative;
}

.auth-visual__cloud {
    background: rgba(160, 196, 230, 0.28);
    border-radius: 999px;
    position: absolute;
}

.auth-visual__cloud--one {
    height: 82px;
    left: 10%;
    top: 14%;
    width: 190px;
}

.auth-visual__cloud--two {
    height: 58px;
    right: 13%;
    top: 22%;
    width: 132px;
}

.auth-visual__card {
    background: linear-gradient(160deg, rgba(233, 242, 253, 0.96), rgba(242, 248, 255, 0.98));
    border: 1px solid rgba(19, 58, 99, 0.08);
    border-radius: 28px;
    bottom: 2rem;
    left: 2rem;
    padding: 1.4rem;
    position: absolute;
    width: min(420px, calc(100% - 4rem));
}

.auth-visual__pill,
.hero-visual__pill,
.section-pill,
.stack-list__badge,
.coverage-card__badge {
    background: rgba(239, 246, 255, 0.96);
    border: 1px solid rgba(19, 58, 99, 0.1);
    border-radius: 999px;
    color: var(--teal-strong);
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
}

.auth-visual__bars,
.hero-visual__lines {
    display: grid;
    gap: 0.65rem;
    margin-top: 1rem;
}

.auth-visual__bars span,
.hero-visual__lines span {
    background: linear-gradient(90deg, rgba(15, 140, 147, 0.88), rgba(44, 114, 222, 0.72));
    border-radius: 999px;
    display: block;
    height: 12px;
}

.auth-visual__bars span:nth-child(1),
.hero-visual__lines span:nth-child(1) {
    width: 78%;
}

.auth-visual__bars span:nth-child(2),
.hero-visual__lines span:nth-child(2) {
    width: 56%;
}

.auth-visual__bars span:nth-child(3),
.hero-visual__lines span:nth-child(3) {
    width: 88%;
}

.auth-visual__route,
.hero-visual__nodes {
    display: flex;
    gap: 1rem;
    margin-top: 1.25rem;
}

.auth-visual__route span,
.hero-visual__nodes span {
    background: linear-gradient(180deg, var(--mint), var(--blue));
    border-radius: 999px;
    box-shadow: 0 10px 22px rgba(44, 114, 222, 0.22);
    display: block;
    height: 14px;
    width: 14px;
}

.auth-visual__badge {
    background: rgba(235, 244, 254, 0.98);
    border: 1px solid rgba(19, 58, 99, 0.1);
    border-radius: 999px;
    color: var(--teal-strong);
    font-size: 0.92rem;
    font-weight: 700;
    padding: 0.65rem 1rem;
    position: absolute;
    right: 2rem;
    top: 2rem;
}

.testimonial-card {
    background: var(--surface-soft-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: grid;
    gap: 0.65rem;
    max-width: 560px;
    padding: 1.35rem 1.4rem;
}

.testimonial-card__title {
    font-weight: 800;
}

.testimonial-card__quote {
    color: var(--muted);
}

.auth-form-card {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--border);
    border-radius: 32px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 1.25rem;
    max-width: 520px;
    padding: 2.4rem;
    width: 100%;
}

.auth-form-card h2 {
    font-size: 2.2rem;
}

.auth-form {
    display: grid;
    gap: 1rem;
}

.auth-note {
    border-top: 1px solid var(--border);
    color: var(--muted);
    display: grid;
    gap: 0.35rem;
    padding-top: 1rem;
}

.dashboard-shell {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 270px minmax(0, 1fr);
    min-height: 100vh;
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.dashboard-sidebar {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    padding: 1.4rem;
    position: sticky;
    top: 1.5rem;
    height: calc(100vh - 3rem);
}

.sidebar-group {
    display: grid;
    gap: 0.7rem;
}

.sidebar-label {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sidebar-nav {
    display: grid;
    gap: 0.35rem;
}

.sidebar-nav a,
.sidebar-link {
    border-radius: 14px;
    color: var(--muted);
    font-weight: 700;
    padding: 0.8rem 0.95rem;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sidebar-nav a:hover,
.sidebar-link:hover {
    background: rgba(37, 99, 169, 0.08);
    color: var(--text);
}

.sidebar-nav a.is-active {
    background: linear-gradient(135deg, rgba(220, 235, 252, 0.98), rgba(233, 242, 255, 0.94));
    color: var(--text);
}

.sidebar-card {
    background: linear-gradient(180deg, rgba(232, 242, 253, 0.98), rgba(245, 249, 255, 0.96));
    border-radius: 22px;
    display: grid;
    gap: 0.5rem;
    padding: 1.1rem;
}

.sidebar-card__title {
    font-family: var(--heading-font);
    font-size: 1.08rem;
    font-weight: 800;
}

.sidebar-card__copy,
.sidebar-card__meta {
    color: var(--muted);
}

.sidebar-profile {
    align-items: center;
    background: var(--surface-soft-alt);
    border: 1px solid var(--border);
    border-radius: 22px;
    display: flex;
    gap: 0.85rem;
    margin-top: auto;
    padding: 0.9rem 0.95rem;
}

.sidebar-profile__name {
    font-weight: 800;
}

.sidebar-profile__email {
    color: var(--muted);
    font-size: 0.86rem;
}

.dashboard-main {
    display: grid;
    gap: 1.25rem;
    min-width: 0;
}

.page-header {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.page-header__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: flex-end;
}

.page-header h1 {
    font-size: clamp(2rem, 3vw, 3rem);
}

.page-tabs {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--border);
    border-radius: 999px;
    display: inline-flex;
    gap: 0.35rem;
    max-width: 100%;
    overflow-x: auto;
    padding: 0.3rem;
}

.page-tab {
    border-radius: 999px;
    color: var(--muted);
    font-weight: 800;
    min-width: 122px;
    padding: 0.72rem 1rem;
    text-align: center;
}

.page-tab.is-active {
    background: linear-gradient(135deg, rgba(223, 237, 252, 0.98), rgba(236, 244, 255, 0.96));
    color: var(--text);
}

.toolbar-strip {
    display: flex;
    justify-content: space-between;
}

.date-nav {
    align-items: center;
    display: flex;
    gap: 0.8rem;
}

.date-nav__label {
    font-family: var(--heading-font);
    font-size: 1.05rem;
    font-weight: 800;
}

.dashboard-topbar {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.dashboard-topbar h1 {
    font-size: clamp(2rem, 3vw, 3rem);
}

.segmented-control {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--border);
    border-radius: 999px;
    display: inline-flex;
    gap: 0.35rem;
    padding: 0.3rem;
}

.segmented-link {
    border-radius: 999px;
    color: var(--muted);
    font-weight: 800;
    min-width: 82px;
    padding: 0.7rem 1rem;
    text-align: center;
}

.segmented-link.is-active {
    background: linear-gradient(135deg, rgba(223, 237, 252, 0.98), rgba(236, 244, 255, 0.96));
    color: var(--text);
}

.filter-strip {
    align-items: end;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 180px)) minmax(220px, 1fr) auto auto;
    padding: 1rem;
}

.field-group--inline label,
.field-group--search label {
    font-size: 0.82rem;
}

.filter-strip--timesheets {
    grid-template-columns: repeat(2, minmax(0, 180px)) minmax(220px, 1fr) auto auto;
}

.filter-strip--tracking {
    grid-template-columns: repeat(2, minmax(0, 220px)) auto auto;
}

.summary-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.summary-card {
    display: grid;
    gap: 0.3rem;
}

.summary-card__label {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.summary-card strong {
    font-family: var(--heading-font);
    font-size: 1.7rem;
}

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

.dashboard-layout {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.9fr);
}

.dashboard-content,
.dashboard-rail {
    display: grid;
    gap: 1.25rem;
}

.card {
    background: var(--surface);
    backdrop-filter: blur(18px);
    border: 1px solid var(--border);
    border-radius: 30px;
    box-shadow: var(--shadow);
    overflow: hidden;
    padding: 1.5rem;
}

.card--soft {
    background: linear-gradient(180deg, rgba(240, 247, 255, 0.98), rgba(248, 251, 255, 0.96));
}

.hero-card {
    align-items: center;
    display: grid;
    gap: 1.2rem;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.9fr);
    min-height: 360px;
}

.hero-copy {
    display: grid;
    gap: 1rem;
}

.hero-copy h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.hero-text {
    color: var(--muted);
    font-size: 1.04rem;
    max-width: 700px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.metric-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-tile {
    background: rgba(246, 250, 255, 0.98);
    border: 1px solid rgba(19, 58, 99, 0.08);
    border-radius: 22px;
    display: grid;
    gap: 0.15rem;
    padding: 1rem;
}

.metric-tile__value {
    font-family: var(--heading-font);
    font-size: 1.55rem;
    font-weight: 800;
}

.metric-tile__label {
    font-weight: 800;
}

.metric-tile__detail {
    color: var(--muted);
    font-size: 0.9rem;
}

.hero-visual {
    min-height: 100%;
}

.hero-visual__stage {
    background: linear-gradient(180deg, rgba(242, 248, 255, 0.98), rgba(232, 243, 252, 0.94));
    border-radius: 30px;
    height: 100%;
    min-height: 300px;
    overflow: hidden;
    padding: 1.4rem;
    position: relative;
}

.hero-visual__glow {
    border-radius: 999px;
    filter: blur(12px);
    position: absolute;
}

.hero-visual__glow--one {
    background: rgba(48, 199, 177, 0.24);
    height: 180px;
    right: -20px;
    top: 10px;
    width: 180px;
}

.hero-visual__glow--two {
    background: rgba(44, 114, 222, 0.18);
    bottom: 10px;
    height: 160px;
    left: 10px;
    width: 160px;
}

.hero-visual__screen {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(19, 58, 99, 0.08);
    border-radius: 26px;
    min-height: 220px;
    padding: 1.2rem;
    position: relative;
}

.hero-visual__float-card {
    background: linear-gradient(135deg, rgba(15, 140, 147, 0.96), rgba(44, 114, 222, 0.92));
    border-radius: 22px;
    bottom: 1.2rem;
    box-shadow: 0 16px 34px rgba(28, 116, 157, 0.28);
    color: #fff;
    display: grid;
    gap: 0.3rem;
    padding: 1rem 1.1rem;
    position: absolute;
    right: 1.2rem;
}

.hero-visual__float-card p,
.hero-visual__float-card span {
    color: rgba(255, 255, 255, 0.86);
}

.hero-visual__float-card strong {
    font-family: var(--heading-font);
    font-size: 1.12rem;
}

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

.section-heading {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1.15rem;
}

.section-heading h3 {
    font-size: 1.45rem;
}

.status-card-grid,
.count-strip {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.status-card,
.count-strip__item {
    border-radius: 20px;
    display: grid;
    gap: 0.2rem;
    padding: 1rem;
    text-align: center;
}

.status-card--good {
    background: rgba(48, 199, 177, 0.12);
}

.status-card--warn {
    background: rgba(239, 154, 59, 0.12);
}

.status-card--muted,
.count-strip__item {
    background: rgba(239, 246, 255, 0.96);
}

.status-card__count,
.count-strip__value {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    font-weight: 800;
}

.status-card__label,
.count-strip__label {
    color: var(--muted);
    font-weight: 700;
}

.mini-meta {
    border-top: 1px solid var(--border);
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1.1rem;
    padding-top: 1.1rem;
}

.mini-meta__label {
    color: var(--muted);
    display: block;
    font-size: 0.84rem;
    margin-bottom: 0.25rem;
}

.stack-list,
.people-list {
    display: grid;
    gap: 0.9rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.stack-list__item,
.people-list__item {
    align-items: center;
    display: flex;
    gap: 0.9rem;
}

.stack-list__content,
.people-list__content {
    min-width: 0;
}

.stack-list__title,
.people-list__name,
.session-person__name {
    font-weight: 800;
}

.stack-list__detail,
.people-list__meta,
.people-list__sub,
.session-person__sub,
.session-cell span,
.coverage-card__footer,
.rail-helper {
    color: var(--muted);
    font-size: 0.92rem;
}

.stack-list__badge {
    margin-left: auto;
    white-space: nowrap;
}

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

.coverage-card {
    background: var(--surface-soft-alt);
    border: 1px solid rgba(121, 210, 233, 0.1);
    border-radius: 24px;
    display: grid;
    gap: 1rem;
    padding: 1rem;
}

.coverage-card__top {
    align-items: start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.coverage-card__top h4 {
    font-size: 1.12rem;
    margin-bottom: 0.25rem;
}

.coverage-card__top p {
    color: var(--muted);
    font-size: 0.94rem;
}

.coverage-stats {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.coverage-stats span {
    color: var(--muted);
    display: block;
    font-size: 0.82rem;
    margin-bottom: 0.2rem;
}

.coverage-stats strong {
    font-family: var(--heading-font);
    font-size: 1.2rem;
}

.coverage-meter {
    background: rgba(121, 210, 233, 0.08);
    border-radius: 999px;
    height: 10px;
    overflow: hidden;
}

.coverage-meter span {
    background: linear-gradient(90deg, var(--teal), var(--blue));
    border-radius: inherit;
    display: block;
    height: 100%;
}

.session-table {
    display: grid;
}

.session-table__head,
.session-table__row {
    align-items: center;
    column-gap: 1rem;
    display: grid;
    grid-template-columns: minmax(220px, 1.1fr) minmax(180px, 0.8fr) minmax(180px, 0.8fr) auto;
}

.session-table__head {
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding-bottom: 0.8rem;
    text-transform: uppercase;
}

.session-table__row {
    border-bottom: 1px solid rgba(15, 140, 147, 0.08);
    padding: 1rem 0;
}

.session-table__row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.session-person {
    align-items: center;
    display: flex;
    gap: 0.8rem;
}

.session-cell {
    display: grid;
    gap: 0.18rem;
}

.status-pill {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 800;
    justify-content: center;
    min-height: 34px;
    padding: 0.35rem 0.8rem;
}

.status-pill--in {
    background: rgba(48, 199, 177, 0.16);
    color: #0e7b6e;
}

.status-pill--break {
    background: rgba(239, 154, 59, 0.16);
    color: #9b6113;
}

.status-pill--out {
    background: rgba(223, 237, 252, 0.96);
    color: #3a5f84;
}

.status-pill--approved,
.status-pill--paid {
    background: rgba(48, 199, 177, 0.16);
    color: #0e7b6e;
}

.status-pill--pending,
.status-pill--open {
    background: rgba(239, 154, 59, 0.16);
    color: #9b6113;
}

.status-pill--rejected {
    background: rgba(208, 93, 93, 0.12);
    color: #a23b3b;
}

.avatar {
    align-items: center;
    border-radius: 18px;
    color: #fff;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 0.92rem;
    font-weight: 800;
    height: 46px;
    justify-content: center;
    overflow: hidden;
    width: 46px;
}

.avatar img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.avatar--teal {
    background: linear-gradient(135deg, var(--teal), #16b0a6);
}

.avatar--blue,
.avatar--sky {
    background: linear-gradient(135deg, var(--blue), #58a9ef);
}

.avatar--mint {
    background: linear-gradient(135deg, var(--mint), var(--teal));
}

.people-list__item {
    align-items: start;
    border-bottom: 1px solid rgba(15, 140, 147, 0.08);
    border-radius: 20px;
    padding-bottom: 0.9rem;
}

.people-list__item.is-active {
    background: linear-gradient(180deg, rgba(230, 240, 252, 0.72), rgba(243, 248, 255, 0.78));
    border-bottom-color: transparent;
    padding: 0.9rem;
}

.people-list__item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.people-list__item.is-active:last-child {
    padding-bottom: 0.9rem;
}

.people-list__header {
    align-items: center;
    display: flex;
    gap: 0.6rem;
    justify-content: space-between;
    margin-bottom: 0.2rem;
}

.empty-state {
    align-items: center;
    background: rgba(248, 251, 255, 0.98);
    border: 1px dashed rgba(19, 58, 99, 0.12);
    border-radius: 24px;
    color: var(--muted);
    display: flex;
    justify-content: center;
    min-height: 180px;
    padding: 1.25rem;
    text-align: center;
}

.empty-state--compact {
    min-height: 120px;
}

.shift-card {
    display: grid;
    gap: 1rem;
}

.shift-card__action-strip {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: -0.25rem;
    width: 100%;
}

.action-chip {
    appearance: none;
    align-items: center;
    border: 1px solid rgba(19, 58, 99, 0.12);
    border-radius: 20px;
    color: var(--text);
    display: flex;
    font-size: 0.84rem;
    font-weight: 800;
    gap: 0.5rem;
    justify-content: center;
    min-height: 56px;
    padding: 0.72rem 0.85rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    width: 100%;
}

.action-chip--button {
    cursor: pointer;
}

.action-chip--button:hover:not(:disabled):not(.is-disabled) {
    box-shadow: 0 12px 20px rgba(20, 65, 112, 0.1);
    transform: translateY(-1px);
}

.action-chip--button:disabled,
.action-chip--button.is-disabled {
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.45;
    transform: none;
}

.action-chip--clock-in {
    background: rgba(232, 244, 255, 0.98);
    color: #1d5d97;
}

.action-chip--break {
    background: rgba(255, 246, 231, 0.98);
    color: #9b6113;
}

.action-chip--clock-out {
    background: rgba(230, 239, 252, 0.98);
    color: #255493;
}

.shift-card__status {
    background: linear-gradient(180deg, rgba(238, 246, 255, 0.98), rgba(248, 251, 255, 0.96));
    border: 1px solid rgba(19, 58, 99, 0.08);
    border-radius: 22px;
    display: grid;
    gap: 0.35rem;
    padding: 1rem;
}

.shift-card__title {
    font-family: var(--heading-font);
    font-size: 1.1rem;
    font-weight: 800;
}

.shift-card__meta {
    color: var(--muted);
    font-size: 0.92rem;
}

.shift-card__warning {
    color: #9b6113;
    font-size: 0.92rem;
    font-weight: 700;
}

.shift-card__form {
    background: rgba(248, 251, 255, 0.98);
    border: 1px solid rgba(19, 58, 99, 0.08);
    border-radius: 20px;
    display: grid;
    gap: 0.75rem;
    padding: 0.95rem;
}

.shift-card__form textarea {
    min-height: 74px;
}

.geo-form__hint {
    color: var(--muted);
    font-size: 0.84rem;
}

.geo-form__status {
    color: var(--teal-strong);
    font-size: 0.86rem;
    font-weight: 700;
    min-height: 1.2rem;
}

.geo-form__status.is-error {
    color: var(--danger);
}

.btn-small {
    min-height: 36px;
    padding: 0.55rem 0.85rem;
}

.locations-layout {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.65fr);
}

.locations-list-panel,
.locations-map-panel {
    min-height: 720px;
}

.locations-list-panel {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.locations-list {
    display: grid;
    gap: 0.85rem;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 0.2rem;
}

.location-list-item {
    align-items: start;
    appearance: none;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(19, 58, 99, 0.08);
    border-radius: 22px;
    color: var(--text);
    cursor: pointer;
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
    text-align: left;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.location-list-item:hover {
    border-color: rgba(37, 99, 169, 0.18);
    box-shadow: 0 12px 24px rgba(20, 65, 112, 0.1);
    transform: translateY(-1px);
}

.location-list-item:focus-visible {
    border-color: rgba(37, 99, 169, 0.28);
    box-shadow: 0 0 0 4px rgba(37, 99, 169, 0.12);
    outline: none;
}

.location-list-item.is-active {
    background: linear-gradient(180deg, rgba(230, 240, 252, 0.98), rgba(243, 248, 255, 0.96));
    border-color: rgba(37, 99, 169, 0.18);
}

.location-list-item__content {
    cursor: pointer;
    display: grid;
    gap: 0.3rem;
}

.location-list-item__title {
    font-family: var(--heading-font);
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.location-list-item__meta,
.location-list-item__stats span {
    color: var(--muted);
    font-size: 0.92rem;
}

.location-list-item__stats {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    flex: 1 1 auto;
    gap: 0.6rem;
    min-width: 0;
}

.location-list-item__footer {
    align-items: center;
    display: flex;
    gap: 0.8rem;
    justify-content: space-between;
}

.location-list-item__actions {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 0.65rem;
    justify-content: flex-end;
    margin-left: auto;
}

.location-list-item__edit {
    flex: 0 0 auto;
    min-width: 74px;
}

.locations-map-panel {
    display: grid;
    gap: 1rem;
    grid-template-rows: auto minmax(0, 1fr) auto;
}

.locations-map-canvas {
    border: 1px solid rgba(121, 210, 233, 0.1);
    border-radius: 24px;
    min-height: 600px;
    overflow: hidden;
}

.locations-map-footer {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.locations-map-footer p {
    color: var(--muted);
    max-width: 520px;
}

.locations-map-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.locations-editor-panel {
    display: grid;
    gap: 1rem;
    margin-top: 1.25rem;
    opacity: 0;
    scroll-margin-top: 1.5rem;
    transform: translateY(18px);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.locations-editor-panel.is-open {
    opacity: 1;
    transform: translateY(0);
}

.locations-editor-panel__actions {
    align-items: center;
    display: flex;
    gap: 0.75rem;
}

.locations-editor-form {
    display: grid;
    gap: 1rem;
}

.location-radius-grid {
    display: grid;
    gap: 0.75rem;
}

.radius-option input {
    display: none;
}

.radius-option__card {
    align-items: center;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(19, 58, 99, 0.08);
    border-radius: 18px;
    color: var(--text);
    cursor: pointer;
    display: flex;
    font-weight: 700;
    gap: 0.7rem;
    justify-content: space-between;
    min-height: 52px;
    padding: 0.85rem 1rem;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.radius-option input:checked + .radius-option__card {
    background: linear-gradient(180deg, rgba(255, 243, 225, 0.98), rgba(255, 249, 240, 0.96));
    border-color: rgba(240, 168, 73, 0.34);
    transform: translateY(-1px);
}

.radius-option__tag {
    background: rgba(225, 238, 253, 0.98);
    border: 1px solid rgba(37, 99, 169, 0.12);
    border-radius: 999px;
    color: #24558f;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.25rem 0.55rem;
    text-transform: uppercase;
}

.checkbox-row {
    align-items: center;
    background: rgba(248, 251, 255, 0.98);
    border: 1px solid rgba(19, 58, 99, 0.08);
    border-radius: 18px;
    display: flex;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
}

.checkbox-row input {
    accent-color: var(--teal);
    margin: 0;
}

.locations-editor-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.assignment-layout {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.2fr);
}

.assignment-list-panel,
.assignment-editor-panel {
    display: grid;
    gap: 1rem;
    min-height: 680px;
}

.assignment-list {
    display: grid;
    gap: 0.85rem;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 0.2rem;
}

.assignment-item {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(19, 58, 99, 0.08);
    border-radius: 22px;
    color: var(--text);
    display: grid;
    gap: 0.9rem;
    padding: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.assignment-item:hover {
    border-color: rgba(37, 99, 169, 0.18);
    box-shadow: 0 12px 24px rgba(20, 65, 112, 0.1);
    transform: translateY(-1px);
}

.assignment-item.is-active {
    background: linear-gradient(180deg, rgba(230, 240, 252, 0.98), rgba(243, 248, 255, 0.96));
    border-color: rgba(37, 99, 169, 0.18);
}

.assignment-item__top {
    align-items: start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.assignment-item__title {
    font-family: var(--heading-font);
    font-size: 1.04rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
}

.assignment-item__meta,
.assignment-item__body p {
    color: var(--muted);
    font-size: 0.92rem;
}

.assignment-item__body {
    display: grid;
    gap: 0.22rem;
}

.assignment-item__body strong {
    color: var(--text);
}

.assignment-editor-form {
    display: grid;
    gap: 1rem;
}

.date-input {
    position: relative;
}

.date-input input[type="date"] {
    padding-right: 3.75rem;
    width: 100%;
}

.date-input input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    position: absolute;
    right: 0;
    width: 3.4rem;
}

.date-input__trigger {
    align-items: center;
    background: rgba(245, 249, 255, 0.98);
    border: 1px solid rgba(19, 58, 99, 0.12);
    border-radius: 14px;
    color: var(--teal-strong);
    cursor: pointer;
    display: inline-flex;
    height: 40px;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: 0.55rem;
    top: 50%;
    transform: translateY(-50%);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    width: 40px;
}

.date-input__trigger:hover {
    background: rgba(236, 244, 254, 0.98);
    border-color: rgba(37, 99, 169, 0.22);
    transform: translateY(calc(-50% - 1px));
}

.date-input__trigger:focus-visible {
    box-shadow: 0 0 0 4px rgba(15, 140, 147, 0.12);
    outline: none;
}

.assignment-editor-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.employee-layout {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.2fr);
}

.employee-list-panel,
.employee-editor-panel {
    align-content: start;
    display: grid;
    gap: 1rem;
}

.employee-editor-panel {
    min-height: 700px;
}

.employee-list {
    align-content: start;
    display: grid;
    gap: 0.85rem;
    grid-auto-rows: max-content;
    max-height: 620px;
    overflow-y: auto;
    padding-right: 0.2rem;
}

.employee-item {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(19, 58, 99, 0.08);
    border-radius: 22px;
    display: grid;
    gap: 0.55rem;
    padding: 0.9rem 1rem;
}

.employee-item.is-active {
    background: linear-gradient(180deg, rgba(230, 240, 252, 0.98), rgba(243, 248, 255, 0.96));
    border-color: rgba(37, 99, 169, 0.18);
}

.employee-item__top {
    align-items: start;
    display: grid;
    gap: 0.8rem;
    grid-template-columns: auto minmax(0, 1fr);
}

.employee-item__content {
    display: grid;
    gap: 0.12rem;
}

.employee-item__header {
    align-items: start;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
}

.employee-item__title {
    font-family: var(--heading-font);
    font-size: 1.04rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
}

.employee-item__meta,
.employee-item__detail {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.35;
}

.employee-item__actions {
    display: flex;
    justify-content: flex-end;
}

.employee-item__edit {
    min-width: 74px;
}

.employee-editor-panel__actions {
    align-items: center;
    display: flex;
    gap: 0.75rem;
}

.employee-editor-form {
    display: grid;
    gap: 1rem;
}

.employee-editor-form__note {
    font-size: 0.86rem;
}

.employee-editor-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.employee-editor-panel__danger {
    align-items: center;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding-top: 1rem;
}

.employee-editor-panel__danger-title {
    color: var(--text);
    font-weight: 800;
}

.profile-layout {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.3fr);
}

.profile-editor-stack {
    display: grid;
    gap: 1.25rem;
}

.profile-summary-card {
    align-content: start;
    display: grid;
    gap: 1.2rem;
}

.profile-summary-card__top {
    align-items: center;
    display: flex;
    gap: 1rem;
}

.avatar--profile {
    border-radius: 24px;
    font-size: 1.45rem;
    height: 84px;
    width: 84px;
}

.profile-meta-grid {
    display: grid;
    gap: 0.85rem;
}

.profile-meta-item {
    background: rgba(248, 251, 255, 0.98);
    border: 1px solid rgba(19, 58, 99, 0.08);
    border-radius: 18px;
    display: grid;
    gap: 0.2rem;
    padding: 0.9rem 1rem;
}

.profile-meta-item span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.profile-meta-item strong {
    font-size: 1rem;
}

.profile-form {
    display: grid;
    gap: 1rem;
}

.profile-form-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.leaflet-container {
    background: #dfeef4;
    color: #24414d;
    font-family: var(--body-font);
}

.leaflet-control-zoom a,
.leaflet-bar a {
    background: rgba(255, 255, 255, 0.94);
    border-bottom-color: rgba(36, 65, 77, 0.08);
    color: #1d3641;
}

.leaflet-tooltip {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(36, 65, 77, 0.1);
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(36, 65, 77, 0.16);
    color: #1d3641;
}

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

.timesheet-table {
    display: grid;
    min-width: 980px;
}

.timesheet-table__head,
.timesheet-table__row {
    align-items: stretch;
    column-gap: 0.75rem;
    display: grid;
    grid-template-columns: minmax(220px, 1.3fr) repeat(7, minmax(96px, 1fr)) minmax(110px, 0.8fr);
}

.timesheet-table__head {
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding-bottom: 0.85rem;
    text-transform: uppercase;
}

.timesheet-table__day-col {
    display: grid;
    gap: 0.15rem;
    justify-items: center;
}

.timesheet-table__day-col em {
    color: var(--muted);
    font-style: normal;
}

.timesheet-table__row {
    border-bottom: 1px solid rgba(15, 140, 147, 0.08);
    padding: 1rem 0;
}

.timesheet-table__row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.timesheet-table__worker {
    align-items: center;
    display: flex;
    gap: 0.85rem;
}

.timesheet-table__name {
    font-weight: 800;
}

.timesheet-table__meta {
    color: var(--muted);
    font-size: 0.92rem;
}

.timesheet-cell,
.timesheet-total {
    align-items: center;
    background: rgba(121, 210, 233, 0.06);
    border-radius: 18px;
    display: grid;
    justify-items: center;
    min-height: 78px;
    padding: 0.75rem 0.55rem;
    text-align: center;
}

.timesheet-cell strong,
.timesheet-total strong {
    font-family: var(--heading-font);
}

.timesheet-cell span,
.timesheet-total span {
    color: var(--muted);
    font-size: 0.82rem;
}

.timesheet-cell.is-overtime {
    background: rgba(239, 154, 59, 0.12);
}

.timesheet-cell.is-issue {
    background: rgba(208, 93, 93, 0.1);
}

.approval-table {
    display: grid;
}

.approval-table__head,
.approval-table__row {
    align-items: center;
    column-gap: 0.9rem;
    display: grid;
    grid-template-columns: minmax(220px, 1.3fr) repeat(4, minmax(90px, 0.7fr)) minmax(100px, 0.8fr) minmax(180px, 1fr);
}

.approval-table__head {
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding-bottom: 0.85rem;
    text-transform: uppercase;
}

.approval-table__row {
    border-bottom: 1px solid rgba(15, 140, 147, 0.08);
    padding: 1rem 0;
}

.approval-table__row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.approval-worker {
    align-items: center;
    display: flex;
    gap: 0.8rem;
}

.approval-worker__name {
    font-weight: 800;
}

.approval-worker__meta {
    color: var(--muted);
    font-size: 0.9rem;
}

.review-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.payroll-table {
    display: grid;
}

.payroll-table__head,
.payroll-table__row {
    align-items: center;
    column-gap: 0.9rem;
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) minmax(120px, 0.8fr) minmax(160px, 1fr) minmax(100px, 0.75fr) minmax(130px, 0.9fr) minmax(170px, 1fr) minmax(150px, 0.95fr);
}

.payroll-table__head {
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding-bottom: 0.85rem;
    text-transform: uppercase;
}

.payroll-table__row {
    border-bottom: 1px solid rgba(15, 140, 147, 0.08);
    padding: 1rem 0;
}

.payroll-table__row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.payroll-cell {
    display: grid;
    gap: 0.2rem;
}

.payroll-cell strong {
    font-family: var(--heading-font);
}

.payroll-cell span {
    color: var(--muted);
    font-size: 0.84rem;
}

.payroll-cell--action {
    align-items: start;
}

.tracking-layout {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.95fr);
}

.tracking-stage {
    min-height: 620px;
}

.tracking-stage__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.tracking-map {
    background: #dfeef4;
    border: 1px solid rgba(121, 210, 233, 0.1);
    border-radius: 28px;
    min-height: 500px;
    overflow: hidden;
    position: relative;
}

.tracking-map__meta {
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem 1.4rem;
    font-size: 0.92rem;
    margin-top: 0.95rem;
}

.tracking-map__meta p {
    margin: 0;
}

.live-route-marker-icon {
    background: transparent !important;
    border: 0 !important;
}

.live-route-marker {
    align-items: center;
    background: linear-gradient(135deg, var(--mint), var(--teal));
    border: 3px solid rgba(255, 255, 255, 0.94);
    border-radius: 999px;
    box-shadow: 0 12px 24px rgba(15, 140, 147, 0.24);
    display: inline-flex;
    height: 40px;
    justify-content: center;
    overflow: hidden;
    position: relative;
    width: 40px;
}

.live-route-marker.is-latest {
    border-color: rgba(255, 245, 232, 0.98);
    box-shadow: 0 16px 28px rgba(240, 168, 73, 0.28);
    height: 44px;
    width: 44px;
}

.live-route-marker.is-warn {
    box-shadow: 0 0 0 4px rgba(217, 98, 83, 0.18), 0 12px 24px rgba(217, 98, 83, 0.2);
}

.live-route-marker__image {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.live-route-marker__initials {
    align-items: center;
    color: #fff;
    display: inline-flex;
    font-size: 0.68rem;
    font-weight: 800;
    height: 100%;
    justify-content: center;
    width: 100%;
}

.live-route-marker__badge {
    align-items: center;
    background: rgba(23, 58, 99, 0.92);
    border: 2px solid rgba(255, 255, 255, 0.96);
    border-radius: 999px;
    bottom: -1px;
    color: #fff;
    display: inline-flex;
    font-size: 0.58rem;
    font-weight: 800;
    height: 14px;
    justify-content: center;
    min-width: 14px;
    padding: 0 0.2rem;
    position: absolute;
    right: -1px;
}

.live-route-marker.is-latest .live-route-marker__badge {
    font-size: 0.62rem;
    height: 16px;
    min-width: 16px;
}

.live-route-marker.is-warn .live-route-marker__badge {
    background: rgba(201, 95, 95, 0.94);
}

.timeline-list {
    display: grid;
    gap: 0.9rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.timeline-list__item {
    align-items: start;
    display: grid;
    gap: 0.8rem;
    grid-template-columns: auto 1fr;
}

.timeline-list__dot {
    border-radius: 999px;
    display: inline-block;
    height: 14px;
    margin-top: 0.35rem;
    width: 14px;
}

.timeline-list__dot--good {
    background: var(--mint);
}

.timeline-list__dot--warn {
    background: var(--warning);
}

.timeline-list__title {
    font-weight: 800;
}

.timeline-list__meta {
    color: var(--muted);
    font-size: 0.92rem;
}

.count-strip--compact {
    max-width: 360px;
}

@keyframes drift {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -14px, 0);
    }
}

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

    .dashboard-rail {
        order: -1;
    }

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

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

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

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

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

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

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

@media (max-width: 1080px) {
    .auth-shell,
    .dashboard-shell,
    .hero-card,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

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

    .dashboard-topbar {
        align-items: start;
        flex-direction: column;
    }

    .page-header {
        align-items: start;
        flex-direction: column;
    }

    .page-header__actions {
        justify-content: flex-start;
        width: 100%;
    }

    .segmented-control {
        overflow-x: auto;
        width: 100%;
    }
}

@media (max-width: 760px) {
    .auth-panel,
    .dashboard-shell,
    .card {
        padding: 1.15rem;
    }

    .auth-form-card {
        padding: 1.5rem;
    }

    .auth-copy h1,
    .dashboard-topbar h1,
    .hero-copy h2 {
        font-size: 2rem;
    }

    .metric-grid,
    .status-card-grid,
    .count-strip,
    .coverage-grid,
    .coverage-stats,
    .mini-meta,
    .filter-strip,
    .summary-grid,
    .tracking-layout,
    .locations-layout {
        grid-template-columns: 1fr;
    }

    .locations-editor-panel__actions,
    .employee-editor-panel__actions,
    .locations-map-footer,
    .locations-editor-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .location-list-item__footer {
        align-items: stretch;
        flex-direction: column;
    }

    .location-list-item__actions {
        justify-content: space-between;
        margin-left: 0;
    }

    .assignment-editor-grid {
        grid-template-columns: 1fr;
    }

    .employee-editor-grid {
        grid-template-columns: 1fr;
    }

    .employee-editor-panel__danger {
        align-items: stretch;
        flex-direction: column;
    }

    .profile-form-grid {
        grid-template-columns: 1fr;
    }

    .session-table__head {
        display: none;
    }

    .session-table__row {
        border: 1px solid rgba(15, 140, 147, 0.08);
        border-radius: 20px;
        grid-template-columns: 1fr;
        margin-bottom: 0.9rem;
        padding: 1rem;
        row-gap: 0.85rem;
    }

    .session-table__row:last-child {
        margin-bottom: 0;
    }

    .people-list__header {
        align-items: start;
        flex-direction: column;
    }

    .shift-card__action-strip {
        grid-template-columns: 1fr;
    }

    .approval-table__head,
    .timesheet-table__head,
    .payroll-table__head {
        display: none;
    }

    .approval-table__row,
    .timesheet-table__row,
    .payroll-table__row {
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid rgba(19, 58, 99, 0.08);
        border-radius: 22px;
        grid-template-columns: 1fr;
        margin-bottom: 0.9rem;
        padding: 1rem;
        row-gap: 0.75rem;
    }

    .approval-table__row:last-child,
    .timesheet-table__row:last-child,
    .payroll-table__row:last-child {
        margin-bottom: 0;
    }

    .timesheet-table,
    .timesheet-table-wrap,
    .payroll-table {
        min-width: 0;
        overflow: visible;
    }
}
