:root {
    --bg-main: #07111f;
    --bg-panel: rgba(10, 21, 38, 0.92);
    --bg-soft: rgba(255, 255, 255, 0.05);
    --bg-soft-strong: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.1);
    --text: #eff6ff;
    --muted: #94a3b8;
    --primary: #3da6ff;
    --primary-strong: #0f62fe;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--text);
    font-family: "Segoe UI", Tahoma, sans-serif;
    background:
        radial-gradient(circle at top, rgba(61, 166, 255, 0.16), transparent 32%),
        linear-gradient(180deg, #0a1424 0%, #07111f 100%);
}

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

a {
    color: inherit;
}

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

[hidden] {
    display: none !important;
}

.overlay-screen,
.modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 40;
}

.app-backdrop,
.modal-overlay {
    background: rgba(3, 9, 19, 0.8);
    backdrop-filter: blur(14px);
}

.glass-card,
.sheet-card {
    width: min(100%, 560px);
    border-radius: 28px;
    border: 1px solid var(--border);
    background: var(--bg-panel);
    box-shadow: var(--shadow);
}

.glass-card {
    padding: 28px;
    text-align: center;
}

.clock-device-card {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.clock-device-message {
    margin: 0;
    padding: 10px 12px;
    border: 1px solid rgba(20, 184, 166, 0.24);
    border-radius: 14px;
    background: rgba(20, 184, 166, 0.08);
}

.clock-device-message.is-error {
    border-color: rgba(248, 113, 113, 0.38);
    background: rgba(248, 113, 113, 0.12);
    color: #fecaca;
}

.mobile-notice-card {
    display: grid;
    gap: 16px;
    width: min(100%, 420px);
    padding: 20px;
    border-color: rgba(20, 184, 166, 0.28);
    background:
        linear-gradient(145deg, rgba(20, 184, 166, 0.14), rgba(59, 130, 246, 0.08)),
        rgba(9, 19, 35, 0.96);
}

.mobile-notice-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.mobile-notice-copy {
    margin: 0;
    color: #d6e4f0;
    font-size: 0.98rem;
    line-height: 1.55;
}

.mobile-notice-card.is-warning {
    border-color: rgba(245, 158, 11, 0.38);
    background:
        linear-gradient(145deg, rgba(245, 158, 11, 0.14), rgba(20, 184, 166, 0.08)),
        rgba(9, 19, 35, 0.96);
}

.mobile-notice-card.is-danger {
    border-color: rgba(239, 68, 68, 0.42);
    background:
        linear-gradient(145deg, rgba(239, 68, 68, 0.16), rgba(59, 130, 246, 0.08)),
        rgba(9, 19, 35, 0.96);
}

.mobile-notice-actions {
    margin-top: 0;
}

.icon-mark {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background: rgba(61, 166, 255, 0.12);
    border: 1px solid rgba(61, 166, 255, 0.24);
    font-size: 1.8rem;
}

.glass-card h2,
.sheet-card h3,
.cards-section h2 {
    margin: 0;
}

.glass-card p,
.helper-copy {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.45;
}

.status-chip {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(239, 68, 68, 0.36);
    background: rgba(239, 68, 68, 0.14);
    color: #fecaca;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.back-home-link {
    display: inline-flex;
    margin-top: 18px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(61, 166, 255, 0.14);
    border: 1px solid rgba(61, 166, 255, 0.24);
    color: #dbeafe;
    text-decoration: none;
    font-weight: 700;
}

.mobile-app-shell {
    width: min(100%, 860px);
    margin: 0 auto;
    padding: max(18px, env(safe-area-inset-top)) 16px calc(112px + env(safe-area-inset-bottom));
}

.mobile-topbar {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-link {
    display: inline-flex;
    align-items: center;
}

.brand-link img {
    width: 46px;
    height: 46px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.brand-copy {
    min-width: 0;
}

.eyebrow,
.section-kicker,
.sheet-kicker,
.hero-label,
.field-label {
    color: #8ccfff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.brand-copy h1 {
    margin: 4px 0 0;
    font-size: 1.48rem;
    line-height: 1.1;
}

.signal-pill {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-self: start;
    padding: 6px 0 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    color: #dbeafe;
    font-size: 0.84rem;
    font-weight: 700;
}

.signal-pill .label {
    color: var(--primary);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

.hero-panel,
.manager-preview,
.walker-card,
.metric-card {
    border: 1px solid var(--border);
    background: rgba(10, 21, 38, 0.78);
    box-shadow: var(--shadow);
}

.hero-panel {
    padding: 16px;
    border-radius: 24px;
}

.hero-top {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.hero-top strong {
    display: block;
    margin-top: 6px;
    font-size: 1rem;
}

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

.metric-card {
    padding: 12px;
    border-radius: 18px;
}

.metric-card span {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.metric-card strong {
    display: block;
    margin: 8px 0 10px;
    font-size: 1.3rem;
}

.metric-card small {
    color: var(--muted);
}

.goal-track {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.goal-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #3da6ff, #0f62fe);
    transition: width 0.2s ease;
}

.goal-fill.goal-match {
    background: linear-gradient(90deg, #10b981, #22c55e);
}

.goal-fill.goal-over {
    background: linear-gradient(90deg, #f97316, #ef4444);
}

.overall-metric-card {
    grid-column: 1 / -1;
}

.overall-goal-track {
    margin-top: 10px;
}

.overall-goal-fill {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.overall-goal-fill.goal-match {
    background: linear-gradient(90deg, #10b981, #22c55e);
}

.overall-goal-fill.goal-over {
    background: linear-gradient(90deg, #f97316, #ef4444);
}

.manager-preview {
    margin-top: 16px;
    padding: 16px;
    border-radius: 24px;
}

.manager-preview-btn {
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(61, 166, 255, 0.18), rgba(15, 98, 254, 0.24));
    color: #eff6ff;
    font-weight: 800;
}

.manager-preview p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.cards-section {
    margin-top: 14px;
}

.section-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.walker-picker-shell {
    display: grid;
    gap: 6px;
    margin-bottom: 8px;
}

.picker-help {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.walker-rail {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    overflow-x: auto;
    padding: 2px 2px 6px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.walker-rail::-webkit-scrollbar,
.walker-card-track::-webkit-scrollbar {
    display: none;
}

.walker-rail-btn {
    flex: 0 0 auto;
    min-width: 88px;
    display: grid;
    gap: 3px;
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    text-align: center;
    scroll-snap-align: start;
}

.walker-rail-btn strong {
    font-size: 0.82rem;
    line-height: 1.1;
}

.walker-rail-btn span {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 700;
}

.walker-rail-btn.is-active {
    border-color: rgba(61, 166, 255, 0.4);
    background: linear-gradient(135deg, rgba(61, 166, 255, 0.2), rgba(15, 98, 254, 0.14));
    box-shadow: 0 12px 30px rgba(15, 98, 254, 0.18);
}

.walker-rail-btn.is-transferred {
    border-color: rgba(239, 68, 68, 0.24);
}

.walker-carousel-shell {
    overflow: hidden;
}

.walker-card-track {
    display: flex;
    gap: 0;
    overflow-x: hidden;
    padding: 2px 0 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-y;
}

.walker-slide {
    flex: 0 0 100%;
    min-width: 100%;
    scroll-snap-align: start;
    padding: 0;
}

.walker-pager {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
}

.walker-card {
    padding: 10px;
    border-radius: 20px;
}

.walker-card.is-active {
    border-color: rgba(61, 166, 255, 0.34);
    box-shadow: 0 20px 42px rgba(15, 98, 254, 0.18);
}

.walker-card.is-transferred {
    opacity: 0.72;
    border-color: rgba(239, 68, 68, 0.28);
}

.walker-card.is-status-locked {
    border-color: rgba(245, 158, 11, 0.24);
}

.walker-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.walker-index {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: rgba(61, 166, 255, 0.12);
    color: #dbeafe;
    font-size: 0.78rem;
    font-weight: 800;
}

.walker-name-wrap {
    flex: 1;
    min-width: 0;
}

.walker-name {
    display: block;
    font-size: 0.93rem;
    font-weight: 800;
    word-break: break-word;
}

.walker-subline {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.meta-chip,
.lock-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.meta-chip.info {
    background: rgba(61, 166, 255, 0.12);
    color: #bfdbfe;
}

.meta-chip.success {
    background: rgba(16, 185, 129, 0.14);
    color: #bbf7d0;
}

.meta-chip.warning {
    background: rgba(245, 158, 11, 0.14);
    color: #fde68a;
}

.meta-chip.danger,
.lock-pill {
    background: rgba(239, 68, 68, 0.14);
    color: #fecaca;
}

.status-row,
.device-row,
.action-row {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.status-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.status-copy {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.35;
}

.btn-status,
.btn-time,
.btn-manage,
.dock-btn,
.btn-save,
.btn-secondary,
.btn-cancel,
.btn-danger,
.icon-btn {
    cursor: pointer;
}

.btn-status,
.btn-time,
.btn-manage,
.field-input,
.dock-btn,
.btn-save,
.btn-secondary,
.btn-cancel,
.btn-danger,
.icon-btn {
    border: 1px solid var(--border);
}

.btn-status {
    min-width: 78px;
    padding: 9px 11px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-weight: 800;
}

.btn-status.st-pending {
    color: var(--muted);
}

.btn-status.st-day-suspension {
    background: rgba(249, 115, 22, 0.18);
    color: #fed7aa;
}

.btn-status.st-vto {
    background: rgba(239, 68, 68, 0.2);
    color: #fecaca;
}

.btn-status.st-c-o {
    background: rgba(245, 158, 11, 0.2);
    color: #fde68a;
}

.btn-status.st-s-h {
    background: rgba(59, 130, 246, 0.22);
    color: #bfdbfe;
}

.btn-status.st-n-s {
    background: rgba(99, 102, 241, 0.22);
    color: #c7d2fe;
}

.btn-status.st-late {
    background: rgba(236, 72, 153, 0.22);
    color: #fbcfe8;
}

.btn-status.st-pto {
    background: rgba(16, 185, 129, 0.22);
    color: #bbf7d0;
}

.btn-status.st-ore {
    background: rgba(139, 92, 246, 0.22);
    color: #ddd6fe;
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.btn-time {
    display: grid;
    gap: 4px;
    padding: 9px 8px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    text-align: left;
}

.btn-time span {
    color: var(--muted);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.btn-time strong {
    font-size: 0.84rem;
}

.btn-time-note {
    min-height: 14px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.btn-time.lunch-countdown {
    border-color: rgba(61, 166, 255, 0.36);
}

.btn-time.lunch-ok .btn-time-value,
.btn-time.lunch-ok .btn-time-note {
    color: #bfdbfe;
}

.btn-time.lunch-warning {
    border-color: rgba(245, 158, 11, 0.42);
    background: rgba(245, 158, 11, 0.12);
}

.btn-time.lunch-warning .btn-time-value,
.btn-time.lunch-warning .btn-time-note {
    color: #fde68a;
}

.btn-time.lunch-overdue {
    border-color: rgba(239, 68, 68, 0.42);
    background: rgba(239, 68, 68, 0.12);
}

.btn-time.lunch-overdue .btn-time-value,
.btn-time.lunch-overdue .btn-time-note {
    color: #fecaca;
}

.btn-time.active {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.12);
}

.field-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 700;
    outline: none;
}

select.field-input {
    background: #102038;
    color: #f8fbff;
    color-scheme: dark;
    -webkit-appearance: menulist;
    appearance: menulist;
}

select.field-input option {
    background: #102038;
    color: #f8fbff;
}

select.field-input:focus {
    border-color: rgba(61, 166, 255, 0.48);
    box-shadow: 0 0 0 3px rgba(61, 166, 255, 0.14);
}

.textarea-input {
    min-height: 110px;
    resize: none;
}

.device-row label {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.btn-manage {
    width: 100%;
    padding: 9px 12px;
    border-radius: 14px;
    background: rgba(61, 166, 255, 0.12);
    color: #dbeafe;
    font-weight: 800;
}

.btn-message {
    background: rgba(255, 255, 255, 0.06);
    color: #eff6ff;
}

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

.bottom-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(7, 17, 31, 0), rgba(7, 17, 31, 0.88) 28%, rgba(7, 17, 31, 0.98));
    z-index: 24;
}

.dock-btn {
    min-height: 54px;
    padding: 14px 16px;
    border-radius: 18px;
    color: #fff;
    font-weight: 800;
}

.dock-btn-primary {
    flex: 1.2;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.dock-btn-primary.is-closing {
    background: linear-gradient(135deg, #ef4444, #f97316);
}

.dock-btn-secondary {
    flex: 0.9;
    background: rgba(255, 255, 255, 0.06);
}

.sheet-card {
    padding: 20px;
}

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

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 1.1rem;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding: 0 14px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
}

.search-box input {
    width: 100%;
    padding: 14px 0;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text);
}

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

.search-results {
    display: grid;
    gap: 10px;
    margin-top: 16px;
    max-height: 48vh;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
}

.search-result-item strong {
    display: block;
}

.search-result-item span {
    color: var(--muted);
    font-size: 0.8rem;
}

.search-result-item button {
    padding: 9px 12px;
    border-radius: 12px;
    border: none;
    background: rgba(61, 166, 255, 0.18);
    color: #dbeafe;
    font-size: 0.8rem;
    font-weight: 800;
}

.search-empty {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
}

.section-group + .section-group {
    margin-top: 16px;
}

.history-list {
    max-height: 220px;
    overflow-y: auto;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
}

.history-item + .history-item {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.history-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.78rem;
}

.history-date {
    color: #8ccfff;
    font-weight: 700;
}

.history-tag {
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--muted);
}

.history-text,
.no-data {
    margin: 8px 0 0;
    color: #dbeafe;
    line-height: 1.4;
}

.sheet-actions {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.btn-save,
.btn-secondary,
.btn-cancel,
.btn-danger {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 16px;
    color: #fff;
    font-weight: 800;
}

.btn-save {
    background: linear-gradient(135deg, #10b981, #22c55e);
}

.btn-secondary {
    background: rgba(61, 166, 255, 0.16);
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.08);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.2);
}

.closing-card {
    width: min(100%, 620px);
    max-height: calc(100dvh - 32px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    padding: 0;
}

.closing-card-head {
    padding: 20px 20px 14px;
    border-bottom: 1px solid var(--border);
}

.closing-scroll {
    min-height: 0;
    overflow: auto;
    padding: 14px 20px;
    scrollbar-gutter: stable;
}

.closing-scroll::-webkit-scrollbar,
.closing-validation ul::-webkit-scrollbar {
    width: 10px;
}

.closing-scroll::-webkit-scrollbar-thumb,
.closing-validation ul::-webkit-scrollbar-thumb {
    border: 3px solid transparent;
    border-radius: 999px;
    background: rgba(61, 166, 255, 0.42);
    background-clip: content-box;
}

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

.closing-summary-card {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
}

.closing-summary-label {
    color: #8ccfff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.closing-summary-value {
    font-size: 1rem;
    font-weight: 800;
}

.closing-summary-subtext {
    color: var(--muted);
    font-size: 0.86rem;
}

.closing-validation,
.closing-note {
    margin-top: 16px;
    padding: 14px;
    border-radius: 18px;
}

.closing-validation {
    border: 1px solid rgba(239, 68, 68, 0.28);
    background: rgba(127, 29, 29, 0.26);
}

.closing-validation strong {
    color: #fecaca;
}

.closing-validation ul {
    max-height: 30dvh;
    margin: 8px 0 0;
    padding-left: 18px;
    overflow: auto;
    color: #ffe4e6;
}

.closing-note {
    border: 1px solid rgba(61, 166, 255, 0.22);
    background: rgba(61, 166, 255, 0.08);
}

.closing-note strong {
    display: block;
    margin-bottom: 6px;
}

.closing-card .sheet-actions {
    margin: 0;
    padding: 14px 20px 20px;
    border-top: 1px solid var(--border);
}

button[disabled],
select[disabled],
input[disabled],
textarea[disabled] {
    opacity: 0.52;
    pointer-events: none;
}

.fade-in {
    animation: fadeIn 0.24s ease both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 2026-05-05 swipe + roster list polish */
.section-action-btn {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-weight: 800;
}

.hero-panel {
    padding: 14px;
    border-radius: 22px;
}

.hero-top {
    margin-bottom: 12px;
}

.hero-metrics,
.time-grid,
.action-row {
    gap: 10px;
}

.metric-card {
    padding: 10px 12px;
    border-radius: 16px;
}

.metric-card strong {
    margin: 7px 0 8px;
    font-size: 1.16rem;
}

.cards-section h2 {
    font-size: 1.12rem;
}

.walker-card-track {
    scroll-behavior: smooth;
}

.walker-card-header {
    gap: 8px;
}

.walker-index {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    font-size: 0.78rem;
}

.walker-name {
    font-size: 0.93rem;
}

.walker-subline {
    margin-top: 6px;
}

.status-row,
.device-row,
.action-row {
    margin-top: 8px;
}

.btn-status {
    min-width: 72px;
    padding: 9px 11px;
}

.btn-time {
    padding: 9px 8px;
}

.field-input {
    padding: 10px 12px;
    font-size: 0.9rem;
}

.btn-manage,
.dock-btn,
.btn-save,
.btn-secondary,
.btn-cancel,
.btn-danger {
    border-radius: 14px;
}

.btn-manage {
    padding: 9px 12px;
}

.roster-list-card {
    width: min(100%, 520px);
    max-height: min(82vh, 720px);
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 12px;
}

.walker-list-body {
    min-height: 0;
    display: grid;
    align-content: start;
    gap: 10px;
    overflow-y: auto;
}

.walker-list-item {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--text);
    text-align: left;
}

.walker-list-item.is-active {
    border-color: rgba(61, 166, 255, 0.34);
    background: rgba(61, 166, 255, 0.14);
    box-shadow: 0 12px 28px rgba(15, 98, 254, 0.14);
}

.walker-list-item.is-transferred {
    opacity: 0.62;
    border-color: rgba(239, 68, 68, 0.2);
    background: rgba(80, 92, 105, 0.12);
}

.walker-list-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.walker-list-copy strong {
    display: block;
    font-size: 0.9rem;
    line-height: 1.15;
}

.walker-list-copy small {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 700;
}

.walker-list-status {
    min-width: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.walker-list-status.info {
    background: rgba(61, 166, 255, 0.14);
    color: #bfdbfe;
}

.walker-list-status.success {
    background: rgba(16, 185, 129, 0.16);
    color: #bbf7d0;
}

.walker-list-status.warning {
    background: rgba(245, 158, 11, 0.16);
    color: #fde68a;
}

.walker-list-status.danger {
    background: rgba(239, 68, 68, 0.16);
    color: #fecaca;
}

.walker-list-status.muted {
    color: var(--muted);
}

.walker-list-status.is-countdown {
    border-color: rgba(61, 166, 255, 0.34);
}

.walker-list-status.lunch-ok {
    color: #bfdbfe;
}

.walker-list-status.lunch-warning {
    border-color: rgba(245, 158, 11, 0.42);
    background: rgba(245, 158, 11, 0.14);
    color: #fde68a;
}

.walker-list-status.lunch-overdue {
    border-color: rgba(239, 68, 68, 0.42);
    background: rgba(239, 68, 68, 0.14);
    color: #fecaca;
}

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

.topbar-utility-btn {
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.82);
    color: #dbeafe;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

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

.truck-directory-card {
    max-width: 760px;
}

.truck-directory-body {
    display: grid;
    gap: 12px;
    max-height: min(70vh, 680px);
    overflow-y: auto;
    padding-right: 4px;
}

.truck-directory-item {
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.88);
    padding: 14px;
    display: grid;
    gap: 10px;
}

.truck-directory-item.is-current {
    border-color: rgba(61, 166, 255, 0.34);
    box-shadow: 0 0 0 1px rgba(61, 166, 255, 0.12) inset;
}

.truck-directory-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.truck-directory-copy {
    display: grid;
    gap: 4px;
}

.truck-directory-copy strong {
    font-size: 1.04rem;
}

.truck-directory-copy small {
    color: var(--muted);
}

.truck-directory-label {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #93c5fd;
}

.truck-directory-badge,
.truck-directory-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(30, 41, 59, 0.9);
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.truck-directory-badge.info {
    background: rgba(61, 166, 255, 0.14);
    color: #bfdbfe;
}

.truck-directory-badge.success {
    background: rgba(16, 185, 129, 0.16);
    color: #bbf7d0;
}

.truck-directory-badge.warning {
    background: rgba(245, 158, 11, 0.16);
    color: #fde68a;
}

.truck-directory-badge.danger {
    background: rgba(239, 68, 68, 0.16);
    color: #fecaca;
}

.truck-directory-badge.muted,
.truck-directory-current {
    color: var(--muted);
}

.truck-directory-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(191, 219, 254, 0.78);
    font-size: 0.84rem;
}

.truck-directory-meta span {
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
}

.truck-directory-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

@media (min-width: 720px) {
    .mobile-app-shell {
        padding-left: 20px;
        padding-right: 20px;
    }

    .mobile-topbar {
        grid-template-columns: auto 1fr auto;
    }

    .signal-pill {
        grid-column: auto;
        justify-self: end;
    }

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

    .search-results {
        max-height: 360px;
    }

    .walker-slide {
        flex-basis: 100%;
        min-width: 100%;
    }
}

@media (max-width: 520px) {
    .topbar-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .topbar-utility-btn {
        padding: 9px 12px;
        font-size: 0.84rem;
    }

    .truck-directory-head {
        flex-direction: column;
    }

    .sheet-header-actions {
        gap: 8px;
    }

    .sheet-header-actions .section-action-btn {
        padding-inline: 12px;
    }

    .truck-directory-actions {
        justify-content: space-between;
    }
}

/* 2026-08-04 compact light mobile clock-in */
:root {
    --bg-main: #edf7f6;
    --bg-panel: rgba(255, 255, 255, 0.98);
    --bg-soft: #f5f9f9;
    --bg-soft-strong: #e9f4f3;
    --border: #d2e1e1;
    --text: #102529;
    --muted: #60767b;
    --primary: #0d998a;
    --primary-strong: #08796f;
    --shadow: 0 12px 32px rgba(22, 57, 60, 0.11);
}

body {
    color-scheme: light;
    background:
        radial-gradient(circle at top left, rgba(45, 212, 191, 0.15), transparent 34%),
        linear-gradient(180deg, #f7fbfb 0%, #eaf5f4 100%);
}

.app-backdrop,
.modal-overlay {
    background: rgba(20, 48, 51, 0.4);
    backdrop-filter: blur(10px);
}

.modal-overlay {
    z-index: 10020;
}

.glass-card,
.sheet-card,
.hero-panel,
.manager-preview,
.walker-card,
.metric-card {
    background: rgba(255, 255, 255, 0.98);
}

.mobile-topbar {
    border-color: var(--border);
}

.brand-link img {
    border-color: var(--border);
}

.eyebrow,
.section-kicker,
.sheet-kicker,
.hero-label,
.field-label,
.truck-directory-label {
    color: #087f75;
}

.signal-pill,
.signal-pill .label {
    color: #35666a;
}

.goal-track {
    background: #dfeceb;
}

.goal-fill {
    background: linear-gradient(90deg, #0d9488, #2dd4bf);
}

.section-action-btn,
.topbar-utility-btn,
.btn-status,
.btn-time,
.btn-message,
.icon-btn,
.walker-rail-btn {
    background: #f8fbfb;
    color: var(--text);
}

.walker-index {
    background: #dff3f1;
    color: #08796f;
}

.meta-chip.info {
    background: #e5f1ff;
    color: #235f91;
}

.meta-chip.success {
    background: #def7ed;
    color: #087a58;
}

.meta-chip.warning,
.btn-status.st-c-o {
    background: #fff3d6;
    color: #8a5a00;
}

.meta-chip.danger,
.lock-pill,
.btn-status.st-vto {
    background: #fee7e7;
    color: #a53636;
}

.field-input,
select.field-input,
select.field-input option {
    background: #fff;
    color: var(--text);
    color-scheme: light;
}

.btn-manage {
    background: #e5f3f2;
    color: #125d59;
}

.bottom-dock {
    background: linear-gradient(180deg, rgba(237, 247, 246, 0), rgba(237, 247, 246, 0.94) 24%, #edf7f6 100%);
}

.dock-btn-primary {
    background: linear-gradient(135deg, #08796f, #10a594);
}

.dock-btn-secondary {
    background: #fff;
    color: var(--text);
}

.truck-directory-card {
    width: min(100%, 760px);
    max-height: calc(100dvh - 24px);
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    overflow: hidden;
}

.truck-directory-card .sheet-header {
    position: relative;
    z-index: 2;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    background: #fff;
}

.truck-directory-body {
    min-height: 0;
    max-height: none;
    gap: 7px;
    padding-right: 3px;
    overscroll-behavior: contain;
}

.truck-directory-item {
    padding: 9px 10px;
    gap: 6px;
    border-radius: 15px;
    background: #f8fbfb;
    box-shadow: none;
}

.truck-directory-item.is-current {
    border-color: #6bcac1;
    background: #e7f7f5;
    box-shadow: 0 0 0 1px rgba(13, 153, 138, 0.08) inset;
}

.truck-directory-copy {
    gap: 1px;
}

.truck-directory-copy strong {
    font-size: 0.94rem;
}

.truck-directory-copy small,
.truck-directory-meta {
    color: var(--muted);
}

.truck-directory-badge,
.truck-directory-current {
    min-height: 28px;
    padding: 5px 9px;
    background: #fff;
    color: var(--text);
}

.truck-directory-badge.info {
    background: #e5f1ff;
    color: #235f91;
}

.truck-directory-badge.success {
    background: #def7ed;
    color: #087a58;
}

.truck-directory-badge.warning {
    background: #fff3d6;
    color: #8a5a00;
}

.truck-directory-badge.danger {
    background: #fee7e7;
    color: #a53636;
}

.truck-directory-meta {
    gap: 5px;
    font-size: 0.75rem;
}

.truck-directory-meta span {
    padding: 4px 7px;
    background: #fff;
}

.truck-directory-actions {
    gap: 7px;
}

.truck-directory-actions .btn-manage {
    min-height: 32px;
    padding: 6px 12px;
}

@media (max-width: 600px) {
    .mobile-app-shell {
        height: calc(100dvh - 76px);
        min-height: 560px;
        display: grid;
        grid-template-rows: auto auto minmax(0, 1fr);
        gap: 7px;
        overflow: hidden;
        padding: 7px 10px calc(67px + env(safe-area-inset-bottom));
    }

    .mobile-topbar {
        grid-template-columns: 34px minmax(0, 1fr) auto;
        gap: 8px;
        margin: 0;
        padding: 0 0 7px;
    }

    .brand-link img {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .brand-copy h1 {
        margin-top: 1px;
        font-size: 1.16rem;
    }

    .eyebrow,
    .section-kicker,
    .sheet-kicker,
    .hero-label,
    .field-label {
        font-size: 0.61rem;
    }

    .signal-pill {
        grid-column: auto;
        justify-self: end;
        padding: 0;
        font-size: 0.75rem;
    }

    .hero-panel {
        padding: 9px;
        border-radius: 17px;
        box-shadow: 0 7px 20px rgba(22, 57, 60, 0.08);
    }

    .hero-top {
        gap: 8px;
        margin-bottom: 7px;
    }

    .hero-top strong {
        margin-top: 2px;
        font-size: 0.86rem;
    }

    .hero-metrics {
        gap: 7px;
    }

    .metric-card {
        padding: 7px 9px;
        border-radius: 13px;
        box-shadow: none;
    }

    .metric-card span,
    .metric-card small {
        font-size: 0.68rem;
    }

    .metric-card strong {
        margin: 3px 0 4px;
        font-size: 0.98rem;
    }

    .goal-track {
        height: 6px;
    }

    .overall-goal-track {
        margin-top: 4px;
    }

    .cards-section {
        min-height: 0;
        display: grid;
        grid-template-rows: auto minmax(0, 1fr) auto;
        margin-top: 0;
        overflow: hidden;
    }

    .section-row {
        align-items: center;
        margin-bottom: 5px;
    }

    .cards-section h2 {
        font-size: 1rem;
    }

    .walker-carousel-shell,
    .walker-card-track,
    .walker-slide {
        min-height: 0;
    }

    .walker-card-track {
        height: 100%;
        padding: 0;
    }

    .walker-slide {
        height: 100%;
    }

    .walker-card {
        height: 100%;
        display: flex;
        flex-direction: column;
        padding: 8px;
        border-radius: 16px;
        overflow-y: auto;
        box-shadow: none;
    }

    .walker-card-header,
    .status-row,
    .device-row,
    .action-row {
        flex: 0 0 auto;
    }

    .walker-name {
        font-size: 0.88rem;
    }

    .walker-subline {
        margin-top: 3px;
    }

    .meta-chip,
    .lock-pill {
        padding: 3px 7px;
        font-size: 0.6rem;
    }

    .status-row,
    .device-row,
    .action-row {
        gap: 6px;
        margin-top: 5px;
    }

    .status-copy {
        font-size: 0.69rem;
        line-height: 1.2;
    }

    .btn-status,
    .btn-manage,
    .field-input {
        min-height: 34px;
        padding: 6px 9px;
        border-radius: 11px;
        font-size: 0.78rem;
    }

    .time-grid {
        gap: 6px;
        margin-top: 6px;
    }

    .btn-time {
        min-height: 48px;
        gap: 1px;
        padding: 6px 7px;
        border-radius: 11px;
    }

    .btn-time span,
    .btn-time-note {
        font-size: 0.58rem;
    }

    .btn-time strong {
        font-size: 0.76rem;
    }

    .walker-pager {
        margin-top: 4px;
        font-size: 0.68rem;
    }

    .bottom-dock {
        gap: 7px;
        padding: 7px 10px calc(7px + env(safe-area-inset-bottom));
    }

    .dock-btn {
        min-height: 46px;
        padding: 9px 11px;
        border-radius: 13px;
        font-size: 0.82rem;
    }

    .modal-overlay {
        align-items: center;
        padding: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom));
    }

    .truck-directory-card {
        max-height: calc(100dvh - 16px);
        padding: 11px;
        border-radius: 20px;
    }

    .truck-directory-card .sheet-header {
        align-items: center;
        gap: 8px;
    }

    .truck-directory-card .sheet-header h3 {
        font-size: 1.1rem;
    }

    .sheet-header-actions {
        flex: 0 0 auto;
    }

    .sheet-header-actions .section-action-btn {
        min-height: 34px;
        padding-inline: 9px;
        font-size: 0.7rem;
    }

    .sheet-header-actions .icon-btn {
        width: 36px;
        height: 36px;
        color: var(--text);
    }

    .truck-directory-body {
        gap: 5px;
    }

    .truck-directory-item {
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 7px 8px;
        gap: 4px 7px;
        border-radius: 13px;
    }

    .truck-directory-head {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        gap: 7px;
    }

    .truck-directory-copy strong {
        font-size: 0.85rem;
    }

    .truck-directory-copy small,
    .truck-directory-label {
        font-size: 0.63rem;
    }

    .truck-directory-meta {
        min-width: 0;
        flex-wrap: nowrap;
        gap: 3px;
        overflow: hidden;
    }

    .truck-directory-meta span {
        padding: 3px 5px;
        white-space: nowrap;
    }

    .truck-directory-actions {
        justify-content: flex-end;
    }

    .truck-directory-current {
        display: none;
    }
}

@media (max-width: 600px) and (max-height: 720px) {
    .status-copy,
    .metric-card small,
    .btn-time-note {
        display: none;
    }

    .hero-panel {
        padding: 7px;
    }

    .btn-time {
        min-height: 42px;
    }
}

/* 2026-08-04 accessibility contrast pass for light mobile views */
#closed-screen .center-card {
    background: #ffffff;
    border: 1px solid #b9cfcd;
    box-shadow: 0 18px 48px rgba(13, 42, 45, 0.22);
}

#closed-screen .status-chip {
    background: #fde4e7;
    border: 1px solid #e9a7b1;
    color: #8f2035;
}

#closed-screen h2 {
    color: #102529;
}

#closed-screen p {
    color: #405b60;
}

#closed-screen .back-home-link {
    background: #d9efed;
    border: 1px solid #8dc7c1;
    color: #075f58;
    box-shadow: 0 6px 16px rgba(7, 95, 88, 0.12);
}

#closed-screen .back-home-link:hover,
#closed-screen .back-home-link:focus-visible {
    background: #c8e7e3;
    border-color: #58aaa1;
    color: #064d48;
}

#truckDirectoryModal .helper-copy {
    color: #405b60;
}

#truckDirectoryModal .truck-directory-item {
    background: #f8fbfb;
    border-color: #bdd2d0;
}

#truckDirectoryModal .truck-directory-copy strong {
    color: #102529;
}

#truckDirectoryModal .truck-directory-copy small {
    color: #4b656a;
}

#truckDirectoryModal .truck-directory-label {
    color: #08776e;
}

#truckDirectoryModal .truck-directory-meta span {
    background: #ffffff;
    border: 1px solid #c5d7d6;
    color: #3e595e;
}

#truckDirectoryModal .truck-directory-badge.danger {
    background: #fde3e7;
    border-color: #edafb8;
    color: #92243a;
}

#truckDirectoryModal .truck-directory-badge.success {
    background: #d9f3e8;
    border-color: #9bd8bd;
    color: #086747;
}

#truckDirectoryModal .truck-directory-badge.info {
    background: #deedfb;
    border-color: #a9cce8;
    color: #1e577f;
}

#truckDirectoryModal .truck-directory-badge.warning {
    background: #fff0c7;
    border-color: #e8c467;
    color: #765000;
}

#truckDirectoryModal .btn-manage {
    background: #d7eeeb;
    border-color: #9accc6;
    color: #075f58;
    font-weight: 800;
}

#truckDirectoryModal .btn-manage:hover,
#truckDirectoryModal .btn-manage:focus-visible {
    background: #c4e5e1;
    border-color: #61afa7;
    color: #064d48;
}

/* Truck directory rows are full-width navigation buttons. */
#truckDirectoryModal .truck-directory-body {
    gap: 7px;
}

#truckDirectoryModal .truck-directory-button {
    width: 100%;
    min-height: 66px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid #acd8d2;
    border-left: 4px solid #20aa99;
    border-radius: 13px;
    color: #102529;
    background: #ffffff;
    box-shadow: none;
    cursor: pointer;
    font: inherit;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

#truckDirectoryModal .truck-directory-button:hover,
#truckDirectoryModal .truck-directory-button:focus-visible {
    border-color: #55bdb1;
    background: #eefaf8;
    outline: none;
    transform: translateY(-1px);
}

#truckDirectoryModal .truck-directory-button.is-danger {
    border-color: #edafb8;
    border-left-color: #c92f49;
    background: #fff6f7;
}

#truckDirectoryModal .truck-directory-button.is-current {
    border-color: #4ebeb2;
    background: #e9f8f6;
    box-shadow: inset 0 0 0 1px rgba(13, 153, 138, 0.08);
}

#truckDirectoryModal .truck-directory-button.is-danger.is-current {
    border-color: #e79ca8;
    border-left-color: #c92f49;
    background: #fff2f4;
}

#truckDirectoryModal .truck-directory-route {
    min-height: 42px;
    display: grid;
    place-items: center;
    padding: 0 7px;
    border: 1px solid #b6ddd8;
    border-radius: 10px;
    color: #08776e;
    background: #e9f8f6;
    font-size: 0.78rem;
    font-weight: 900;
    white-space: nowrap;
}

#truckDirectoryModal .truck-directory-button.is-danger .truck-directory-route {
    border-color: #efbdc5;
    color: #92243a;
    background: #fde8ec;
}

#truckDirectoryModal .truck-directory-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

#truckDirectoryModal .truck-directory-copy strong,
#truckDirectoryModal .truck-directory-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#truckDirectoryModal .truck-directory-copy strong {
    color: #102529;
    font-size: 0.9rem;
}

#truckDirectoryModal .truck-directory-copy small {
    color: #526b70;
    font-size: 0.69rem;
    font-weight: 750;
}

#truckDirectoryModal .truck-directory-end {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

#truckDirectoryModal .truck-directory-current {
    min-height: 25px;
    padding: 4px 7px;
    color: #08776e;
    background: #dcf4f0;
}

#truckDirectoryModal .truck-directory-arrow {
    color: #0a8f83;
    font-size: 1.55rem;
    font-weight: 900;
    line-height: 1;
}

@media (max-width: 480px) {
    #truckDirectoryModal .truck-directory-button {
        grid-template-columns: 48px minmax(0, 1fr) auto;
        gap: 8px;
        min-height: 60px;
        padding: 7px 8px;
    }

    #truckDirectoryModal .truck-directory-route {
        min-height: 38px;
        padding-inline: 5px;
        font-size: 0.7rem;
    }

    #truckDirectoryModal .truck-directory-copy small {
        font-size: 0.62rem;
    }

    #truckDirectoryModal .truck-directory-current {
        display: none;
    }
}

/* Live ADP presence. The tablet only shows confirmation, never ADP punch times. */
.walker-list-row.is-adp-clocked-in,
.walker-list-item.is-adp-clocked-in {
    border-color: #72a5ea !important;
    background: linear-gradient(90deg, #e8f1ff 0%, #f7faff 62%, #fff 100%) !important;
    box-shadow: inset 4px 0 #2563eb, 0 8px 18px rgba(37, 99, 235, .08) !important;
}

.walker-list-row.is-adp-clocked-out,
.walker-list-item.is-adp-clocked-out {
    border-color: #ef9eaa !important;
    background: linear-gradient(90deg, #fff0f2 0%, #fff8f9 62%, #fff 100%) !important;
    box-shadow: inset 4px 0 #dc3545, 0 8px 18px rgba(220, 53, 69, .08) !important;
}

.walker-list-row.is-roster-confirmed,
.walker-list-item.is-roster-confirmed {
    border-color: #65cbbf !important;
    background: linear-gradient(90deg, #e5f8f4 0%, #f7fcfb 62%, #fff 100%) !important;
    box-shadow: inset 4px 0 #0d998a, 0 8px 18px rgba(13, 153, 138, .08) !important;
}

.adp-live-badge {
    display: inline-flex;
    align-items: center;
    width: max-content;
    margin-top: 3px;
    padding: 2px 7px;
    border: 1px solid #72a5ea;
    border-radius: 999px;
    background: #dbeafe;
    color: #174ea6;
    font-size: .58rem;
    font-weight: 900;
    letter-spacing: .05em;
    line-height: 1.2;
    animation: mobile-adp-live-pulse-blue 1.25s ease-in-out infinite;
}

.adp-live-badge.is-out {
    border-color: #72a5ea;
    background: #dbeafe;
    color: #174ea6;
    animation-name: mobile-adp-live-pulse-blue;
}

.mobile-roster-badge {
    display: inline-flex;
    align-items: center;
    width: max-content;
    margin-top: 3px;
    padding: 3px 8px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: .58rem;
    font-weight: 950;
    letter-spacing: .05em;
    line-height: 1.2;
    text-transform: uppercase;
}

.mobile-roster-badge.is-roster {
    border-color: #65cbbf;
    background: #d9f5f0;
    color: #086b63;
}

.mobile-roster-badge.is-adp-in {
    border-color: #72a5ea;
    background: #dbeafe;
    color: #174ea6;
    animation: mobile-adp-live-pulse-blue 1.25s ease-in-out infinite;
}

.mobile-roster-badge.is-ready {
    border-color: #eab85f;
    background: #fff4d6;
    color: #8b5a08;
}

.mobile-roster-badge.is-waiting-adp {
    border-color: #e0aa35;
    background: #fff1ca;
    color: #704b00;
    animation: none;
}

@keyframes mobile-adp-live-pulse-blue {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, .08); opacity: 1; }
    50% { box-shadow: 0 0 0 4px rgba(37, 99, 235, .18); opacity: .7; }
}

@keyframes mobile-adp-live-pulse-red {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, .08); opacity: 1; }
    50% { box-shadow: 0 0 0 4px rgba(220, 53, 69, .2); opacity: .7; }
}

/* 2026-08-20: Uniform-style mobile walker list and control sheet. */
.section-count-pill {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 11px;
    border: 1px solid #b9dcd7;
    border-radius: 999px;
    color: #08776e;
    background: #edf9f7;
    font-size: .72rem;
    font-weight: 900;
    white-space: nowrap;
}

.walker-list-shell {
    min-height: 0;
    overflow: hidden;
}

.walker-card-track.walker-list-mode {
    height: 100%;
    min-height: 0;
    max-height: 100%;
    display: grid;
    align-content: start;
    gap: 0;
    overflow-x: hidden;
    overflow-y: scroll;
    padding: 0;
    border: 1px solid #b8ded9;
    border-radius: 15px;
    background: #fff;
    scroll-snap-type: none;
    touch-action: pan-y;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
}

.walker-list-mode .walker-slide {
    height: auto;
    flex: none;
    min-width: 0;
    scroll-snap-align: none;
}

.walker-list-end-spacer {
    width: 100%;
    min-height: calc(104px + env(safe-area-inset-bottom));
    grid-column: 1 / -1;
    pointer-events: none;
}

.walker-list-row {
    width: 100%;
    min-height: 66px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto 18px;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border: 0;
    border-bottom: 1px solid #dbeae8;
    border-left: 4px solid #20ad9c;
    border-radius: 0;
    color: #10282d;
    background: #fff;
    box-shadow: none;
    font: inherit;
    text-align: left;
    cursor: pointer;
    touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 600px) {
    .cards-section,
    .walker-list-shell {
        min-height: 0;
    }

    .walker-list-shell {
        position: static;
    }

    .walker-card-track.walker-list-mode {
        position: static;
        height: 100%;
        max-height: 100%;
        overflow-y: scroll !important;
        padding-bottom: 0;
        scroll-padding-bottom: calc(104px + env(safe-area-inset-bottom));
        touch-action: pan-y !important;
    }
}

.walker-list-row:last-child {
    border-bottom: 0;
}

.walker-list-row:nth-child(even) {
    background: #f8fcfb;
}

.walker-list-row:hover,
.walker-list-row:focus-visible,
.walker-list-row.is-active {
    border-left-color: #078f83;
    background: #edf9f7;
    outline: none;
}

.walker-list-row.is-transferred {
    border-left-color: #cf5d66;
    background: #fff7f8;
}

.walker-list-row.is-status-locked {
    border-left-color: #d99b21;
}

.walker-list-index {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid #b7ded9;
    border-radius: 11px;
    color: #08776e;
    background: #e8f8f5;
    font-size: .72rem;
    font-weight: 950;
}

.walker-list-identity {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.walker-list-identity strong,
.walker-list-identity small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.walker-list-identity strong {
    color: #10282d;
    font-size: .9rem;
}

.walker-list-identity small {
    color: #60777c;
    font-size: .67rem;
    font-weight: 750;
}

.walker-list-row-status {
    max-width: 104px;
    padding: 5px 8px;
    overflow: hidden;
    border: 1px solid #c6dfdc;
    border-radius: 999px;
    color: #4d666b;
    background: #f5faf9;
    font-size: .61rem;
    font-weight: 950;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.walker-list-row-status.success {
    border-color: #a6ddc5;
    color: #08724e;
    background: #e5f7ef;
}

.walker-list-row-status.info {
    border-color: #a9d5e8;
    color: #176184;
    background: #e8f5fb;
}

.walker-list-row-status.warning {
    border-color: #ead18a;
    color: #795200;
    background: #fff7dd;
}

.walker-list-row-status.danger {
    border-color: #edb1ba;
    color: #97253a;
    background: #fdecef;
}

.walker-list-arrow {
    color: #078f83;
    font-size: 1.45rem;
    font-weight: 950;
    line-height: 1;
}

.walker-list-shell + .walker-pager,
.walker-pager:empty {
    display: none;
}

.walker-options-modal {
    align-items: flex-end;
    padding: 6px;
    background: rgba(2, 25, 31, .7);
    backdrop-filter: none;
}

.walker-options-card {
    width: min(100%, 620px);
    max-height: calc(100dvh - 78px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #9fd5ce;
    border-radius: 22px 22px 12px 12px;
    background: #f5fbfa;
    box-shadow: 0 30px 80px rgba(1, 22, 28, .42);
}

.walker-options-head {
    min-height: 104px;
    margin: 0;
    padding: 20px 16px 15px;
    border: 0;
    color: #fff;
    background:
        radial-gradient(circle at 88% 4%, rgba(108, 233, 216, .22), transparent 30%),
        linear-gradient(120deg, #073f47, #08766d 65%, #12a08e);
}

.walker-options-head h3,
.walker-options-head .sheet-kicker,
.walker-options-head .helper-copy {
    color: #fff;
}

.walker-options-head h3 {
    margin-top: 2px;
    font-size: 1.45rem;
}

.walker-options-head .helper-copy {
    margin: 3px 0 0;
    opacity: .78;
    font-size: .7rem;
}

.walker-options-head .icon-btn {
    color: #fff;
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .28);
}

.walker-options-body {
    min-height: 0;
    overflow-y: auto;
    padding: 10px;
    overscroll-behavior: contain;
}

.walker-options-panel.walker-card {
    height: auto;
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.walker-options-panel .walker-card-header,
.walker-options-panel .status-row,
.walker-options-panel .device-row,
.walker-options-panel .action-row {
    margin: 0;
    padding: 11px;
    border: 1px solid #cfe3e0;
    border-radius: 13px;
    background: #fff;
}

.walker-options-panel .walker-index {
    color: #08776e;
    background: #e8f8f5;
}

.walker-options-panel .walker-name {
    color: #10282d;
}

.walker-options-panel .status-copy,
.walker-options-panel .device-row label {
    color: #60777c;
}

.walker-options-panel .time-grid {
    gap: 8px;
    margin: 0;
}

.walker-options-panel .btn-time {
    min-height: 72px;
    border: 1px solid #cfe3e0;
    border-radius: 13px;
    color: #17343a;
    background: #fff;
    box-shadow: none;
}

.walker-options-panel .btn-time.active {
    border-color: #6ec9bd;
    background: #eaf9f6;
}

.walker-options-panel .btn-time.lunch-out.has-time-value:not(.is-adp-pending):not(.is-adp-confirmed),
.walker-options-panel .btn-time.lunch-in.has-time-value:not(.is-adp-pending):not(.is-adp-confirmed),
.walker-options-panel .btn-time.lunch-out.has-time-value:not(.is-adp-pending):not(.is-adp-confirmed):disabled,
.walker-options-panel .btn-time.lunch-in.has-time-value:not(.is-adp-pending):not(.is-adp-confirmed):disabled {
    border-color: #e0aa35 !important;
    color: #704b00 !important;
    background: linear-gradient(135deg, #fff1ca, #fffaf0) !important;
    box-shadow: inset 4px 0 #c48708 !important;
    opacity: 1;
}

.walker-options-panel .btn-time.clock-out.has-time-value:not(.is-adp-pending):not(.is-adp-confirmed),
.walker-options-panel .btn-time.clock-out.has-time-value:not(.is-adp-pending):not(.is-adp-confirmed):disabled {
    border-color: #e36a7c !important;
    color: #9f1930 !important;
    background: linear-gradient(135deg, #ffe1e6, #fff7f8) !important;
    box-shadow: inset 4px 0 #cf2e46 !important;
    opacity: 1;
}

.walker-options-panel .btn-time.is-adp-pending,
.walker-options-panel .btn-time.is-adp-pending:disabled {
    border-color: #4d8fe8 !important;
    color: #123f83 !important;
    background: linear-gradient(135deg, #dcecff, #f4f8ff) !important;
    box-shadow: inset 4px 0 #2563eb, 0 0 0 2px rgba(37, 99, 235, .08) !important;
    opacity: 1;
    animation: mobile-adp-control-pulse-blue 1.25s ease-in-out infinite;
}

.walker-options-panel .btn-time.is-local-in,
.walker-options-panel .btn-time.is-local-in:disabled {
    border-color: #e0aa35 !important;
    color: #704b00 !important;
    background: linear-gradient(135deg, #fff1ca, #fffaf0) !important;
    box-shadow: inset 4px 0 #c48708, 0 0 0 2px rgba(196, 135, 8, .08) !important;
    opacity: 1;
    animation: none;
}

.walker-options-panel .btn-time.is-adp-confirmed,
.walker-options-panel .btn-time.is-adp-confirmed:disabled {
    border-color: #5fc5a5 !important;
    color: #086548 !important;
    background: linear-gradient(135deg, #ddf8ed, #f5fffb) !important;
    box-shadow: inset 4px 0 #18a878, 0 0 0 2px rgba(24, 168, 120, .08) !important;
    opacity: 1;
    animation: none;
}

.walker-options-panel .btn-time.clock-out.is-adp-confirmed,
.walker-options-panel .btn-time.clock-out.is-adp-confirmed:disabled {
    border-color: #e36a7c !important;
    color: #9f1930 !important;
    background: linear-gradient(135deg, #ffe1e6, #fff7f8) !important;
    box-shadow: inset 4px 0 #cf2e46 !important;
}

.walker-options-panel .btn-time.clock-out.is-adp-confirmed .btn-time-note {
    color: #087043 !important;
}

.walker-options-panel .btn-time.is-empty-time:not(.is-adp-pending),
.walker-options-panel .btn-time.is-empty-time:not(.is-adp-pending):disabled {
    border-color: #cfe3e0 !important;
    color: #17343a !important;
    background: #fff !important;
    box-shadow: none !important;
    animation: none !important;
    opacity: 1;
}

.walker-options-panel .btn-time.is-adp-live-in,
.walker-options-panel .btn-time.is-adp-live-in:disabled {
    border-color: #4d8fe8 !important;
    color: #123f83 !important;
    background: linear-gradient(135deg, #dcecff, #f4f8ff) !important;
    box-shadow: inset 4px 0 #2563eb, 0 0 0 2px rgba(37, 99, 235, .08) !important;
    opacity: 1;
    animation: mobile-adp-control-pulse-blue 1.25s ease-in-out infinite;
}

.walker-options-panel .btn-time.is-adp-live-out,
.walker-options-panel .btn-time.is-adp-live-out:disabled {
    border-color: #4d8fe8 !important;
    color: #123f83 !important;
    background: linear-gradient(135deg, #dcecff, #f4f8ff) !important;
    box-shadow: inset 4px 0 #2563eb, 0 0 0 2px rgba(37, 99, 235, .08) !important;
    opacity: 1;
    animation: mobile-adp-control-pulse-blue 1.25s ease-in-out infinite;
}

.walker-options-panel .btn-time.is-adp-live-in .btn-time-note,
.walker-options-panel .btn-time.is-adp-live-out .btn-time-note {
    color: currentColor;
    font-weight: 900;
    letter-spacing: .03em;
    text-transform: uppercase;
}

@keyframes mobile-adp-control-pulse-blue {
    0%, 100% { filter: saturate(1); }
    50% { filter: saturate(1.35) brightness(.96); }
}

@keyframes mobile-adp-control-pulse-red {
    0%, 100% { filter: saturate(1); }
    50% { filter: saturate(1.4) brightness(.96); }
}

.walker-options-panel .field-input {
    color: #17343a;
    background: #fbfdfd;
    border-color: #c9dfdc;
}

.walker-options-panel .btn-manage {
    min-height: 42px;
    border-color: #add8d2;
    color: #08776e;
    background: #eaf8f6;
}

.walker-options-footer {
    justify-content: flex-end;
    padding: 9px 10px;
    border-top: 1px solid #cfe3e0;
    background: #f9fcfb;
}

.walker-options-footer .btn-save {
    width: auto;
    min-width: 120px;
    min-height: 42px;
}

@media (max-width: 480px) {
    .walker-list-row {
        grid-template-columns: 38px minmax(0, 1fr) auto 14px;
        gap: 7px;
        min-height: 62px;
        padding: 7px 8px;
    }

    .walker-list-index {
        width: 34px;
        height: 36px;
    }

    .walker-list-row-status {
        max-width: 84px;
        padding-inline: 6px;
        font-size: .56rem;
    }

    .walker-options-card {
        max-height: calc(100dvh - var(--dc-nav-height, 64px) - 8px);
    }

    .walker-options-head {
        min-height: 92px;
        padding: 17px 13px 12px;
    }

    .walker-options-body {
        padding: 8px;
    }
}

/* Live worked-time clock and the active lunch policy. */
.walker-live-clock {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 3px 10px;
    padding: 11px;
    border: 1px solid #cfe3e0;
    border-left: 4px solid #20ad9c;
    border-radius: 13px;
    background: #fff;
}

.walker-live-clock-label {
    grid-column: 1 / -1;
    color: #08776e;
    font-size: .62rem;
    font-weight: 950;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.walker-live-clock-value {
    color: #10282d;
    font-variant-numeric: tabular-nums;
    font-size: 1.25rem;
    letter-spacing: .01em;
}

.walker-live-clock-note {
    color: #60777c;
    font-size: .67rem;
    font-weight: 800;
    text-align: right;
}

.walker-live-clock-track {
    grid-column: 1 / -1;
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: #e3eeec;
}

.walker-live-clock-progress {
    width: 0;
    height: 100%;
    display: block;
    border-radius: inherit;
    background: #20ad9c;
    transition: width .3s ease;
}

.walker-live-clock.shift-warning {
    border-left-color: #dda525;
    background: #fffaf0;
}

.walker-live-clock.shift-warning .walker-live-clock-progress {
    background: #dda525;
}

.walker-live-clock.shift-due,
.walker-live-clock.lunch-warning {
    border-left-color: #df7d24;
    background: #fff6ed;
}

.walker-live-clock.shift-due .walker-live-clock-progress,
.walker-live-clock.lunch-warning .walker-live-clock-progress {
    background: #df7d24;
}

.walker-live-clock.shift-overdue,
.walker-live-clock.lunch-overdue {
    border-left-color: #cf4658;
    background: #fff1f3;
}

.walker-live-clock.shift-overdue .walker-live-clock-progress,
.walker-live-clock.lunch-overdue .walker-live-clock-progress {
    background: #cf4658;
}

.walker-live-clock.shift-complete {
    border-left-color: #5574c7;
    background: #f3f6ff;
}

.walker-live-clock.is-compact {
    min-width: 82px;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: end;
    gap: 1px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.walker-live-clock.is-compact .walker-live-clock-value {
    font-size: .75rem;
}

.walker-live-clock.is-compact .walker-live-clock-note {
    max-width: 100px;
    overflow: hidden;
    font-size: .55rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.walker-lunch-rules {
    display: grid;
    gap: 9px;
    padding: 11px;
    border: 1px solid #ead49b;
    border-radius: 13px;
    background: #fffaf0;
}

.walker-lunch-rules-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.walker-lunch-rules-head span {
    color: #966300;
    font-size: .63rem;
    font-weight: 950;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.walker-lunch-rules-head strong {
    color: #684900;
    font-size: .72rem;
}

.walker-lunch-rule-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid #eadcb8;
    border-radius: 10px;
    background: #fff;
}

.walker-lunch-rule-grid > span {
    min-width: 0;
    display: grid;
    gap: 2px;
    padding: 8px;
    border-right: 1px solid #eadcb8;
}

.walker-lunch-rule-grid > span:last-child {
    border-right: 0;
}

.walker-lunch-rule-grid b {
    color: #4a3b12;
    font-size: .75rem;
}

.walker-lunch-rule-grid small {
    color: #776a49;
    font-size: .55rem;
    font-weight: 750;
}

@media (max-width: 600px) {
    .hero-panel {
        display: grid;
        gap: 5px;
        padding: 7px 8px;
        border-radius: 15px;
    }

    .hero-top {
        min-height: 30px;
        align-items: center;
        gap: 8px;
        margin: 0;
        padding: 0 2px;
    }

    .hero-label {
        font-size: .54rem;
    }

    .hero-top strong {
        margin-top: 0;
        font-size: .75rem;
    }

    .hero-metrics {
        gap: 5px;
    }

    .hero-panel .metric-card {
        min-height: 42px;
        padding: 5px 7px;
        border-radius: 10px;
    }

    .hero-panel .metric-card span,
    .hero-panel .metric-card small {
        font-size: .56rem;
    }

    .hero-panel .metric-card strong {
        margin: 1px 0 2px;
        font-size: .83rem;
    }

    .hero-panel .metric-card small {
        display: none;
    }

    .hero-panel .goal-track {
        height: 4px;
        margin-top: 1px;
    }

    .hero-panel .overall-metric-card {
        min-height: 44px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto auto 4px;
        align-items: center;
        gap: 1px 8px;
        margin: 0;
    }

    .hero-panel .overall-metric-card > span {
        grid-column: 1;
        grid-row: 1;
    }

    .hero-panel .overall-metric-card > strong {
        grid-column: 2;
        grid-row: 1 / 3;
        font-size: .9rem;
    }

    .hero-panel .overall-metric-card > small {
        grid-column: 1;
        grid-row: 2;
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .hero-panel .overall-metric-card > .goal-track {
        grid-column: 1 / -1;
        grid-row: 3;
    }
}

@media (max-width: 480px) {
    .walker-list-row {
        grid-template-columns: 34px minmax(0, 1fr) 76px 12px;
    }

    .walker-live-clock.is-compact {
        min-width: 72px;
    }

    .walker-live-clock.is-compact .walker-live-clock-value {
        font-size: .68rem;
    }

    .walker-lunch-rule-grid > span {
        padding: 7px 5px;
    }
}

/* Lead/driver tablet mode switch */
.topbar-utility-btn.dispatch-mode-btn { border-color:rgba(13,148,136,.42); background:#dff7f2; color:#075d59; }

/* Compact mobile operations header: the shared menu already carries the app identity. */
@media (max-width: 600px) {
    body.dc-has-shared-nav {
        --dc-nav-height: 60px;
    }

    body.dc-has-shared-nav .dc-nav,
    body.dc-has-shared-nav .dc-nav-inner {
        min-height: var(--dc-nav-height);
    }

    body.dc-has-shared-nav .dc-nav-inner {
        padding: 6px 10px;
    }

    body.dc-has-shared-nav .dc-nav-brand img {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    body.dc-has-shared-nav .dc-nav-mobile-button {
        min-height: 40px;
        padding: 0 13px;
    }

    .mobile-app-shell {
        height: calc(100dvh - var(--dc-nav-height, 60px));
    }

    .mobile-topbar {
        min-height: 44px;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 6px;
        margin: 0;
        padding: 0 0 5px;
    }

    .mobile-topbar .brand-link,
    .mobile-topbar .eyebrow,
    .mobile-topbar .signal-pill {
        display: none;
    }

    .mobile-topbar .brand-copy {
        min-width: 0;
        display: flex;
        align-items: center;
    }

    .mobile-topbar .brand-copy h1 {
        margin: 0;
        overflow: hidden;
        font-size: 1rem;
        line-height: 1;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-topbar .topbar-actions {
        width: auto;
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-end;
        gap: 5px;
    }

    .mobile-topbar .topbar-utility-btn {
        min-height: 34px;
        padding: 6px 10px;
        font-size: .7rem;
        line-height: 1;
        white-space: nowrap;
    }
}
