:root {
    --bg: #07111f;
    --panel: rgba(10, 22, 39, 0.72);
    --panel-strong: rgba(9, 19, 34, 0.92);
    --line: rgba(255, 255, 255, 0.08);
    --text: #f4f7fb;
    --muted: #9fb0c4;
    --accent: #49c6a5;
    --accent-strong: #2fe0b6;
    --warm: #ffb454;
    --danger: #ff7d7d;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(73, 198, 165, 0.18), transparent 28%),
        radial-gradient(circle at bottom right, rgba(255, 180, 84, 0.18), transparent 30%),
        linear-gradient(135deg, #06101d 0%, #0d1d35 48%, #09111f 100%);
}

.auth-body,
.dashboard-body,
.worker-body {
    position: relative;
    overflow-x: hidden;
}

.orb {
    position: fixed;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.35;
    z-index: 0;
}

.orb-one {
    top: -90px;
    left: -50px;
    background: #2fe0b6;
}

.orb-two {
    bottom: -120px;
    right: -80px;
    background: #f5a33b;
}

.auth-shell,
.dashboard-shell,
.worker-shell {
    position: relative;
    z-index: 1;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 48px;
}

.dashboard-shell {
    width: min(1860px, calc(100% - 16px));
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
    align-items: center;
}

.glass-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.auth-brand h1,
.topbar h1,
.worker-header h1 {
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1;
    margin: 12px 0;
}

.auth-brand p,
.topbar p,
.worker-header p,
.hero-card p,
.timer-card p {
    color: var(--muted);
    line-height: 1.6;
}

.brand-pill,
.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #d7f7ee;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-logo-image {
    display: block;
    width: min(320px, 100%);
    margin-bottom: 18px;
    filter: drop-shadow(0 18px 30px rgba(47, 224, 182, 0.18));
}

.credentials-card,
.block-section,
.stat-card,
.history-panel {
    margin-top: 24px;
    padding: 24px;
}

.credential-grid,
.stats-grid,
.admin-layout,
.worker-hero,
.today-summary,
.punch-actions {
    display: grid;
    gap: 18px;
}

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

.auth-panel {
    padding: 28px;
}

.panel-top,
.topbar,
.worker-header,
.section-heading,
.topbar-actions,
.mini-profile,
.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo-mark,
.logo-badge,
.hero-logo {
    width: 62px;
    height: 62px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--accent), #1b7f67);
    color: #041019;
    font-size: 1.35rem;
    font-weight: 800;
}

.logo-mark,
.logo-badge {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    color: transparent;
}

.logo-mark img,
.logo-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-form,
.stack-form {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

label {
    color: #d7e4f2;
    font-weight: 600;
}

input,
button {
    border: none;
    border-radius: 16px;
    font: inherit;
}

input {
    padding: 15px 16px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

input::placeholder {
    color: #8091a5;
}

.role-switch {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 18px;
}

.role-switch label {
    flex: 1;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.primary-btn,
.secondary-btn,
.ghost-btn {
    padding: 15px 20px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.primary-btn {
    color: #051019;
    background: linear-gradient(135deg, var(--accent-strong), #94ffd8);
    box-shadow: 0 18px 40px rgba(47, 224, 182, 0.22);
}

.secondary-btn {
    color: var(--text);
    background: linear-gradient(135deg, #1f3354, #36598a);
}

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

.danger-btn {
    min-height: 52px;
    padding: 14px 20px;
    border: 1px solid rgba(255, 112, 112, 0.28);
    border-radius: 16px;
    background: rgba(255, 112, 112, 0.14);
    color: #ffd9d9;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.danger-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 112, 112, 0.2);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

button:hover,
.ghost-btn:hover {
    transform: translateY(-2px);
}

button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.alert {
    margin: 16px 0;
    padding: 16px 18px;
    border-radius: 18px;
    font-weight: 600;
}

.alert-error {
    background: rgba(255, 125, 125, 0.12);
    border: 1px solid rgba(255, 125, 125, 0.4);
    color: #ffd2d2;
}

.alert-success {
    background: rgba(73, 198, 165, 0.12);
    border: 1px solid rgba(73, 198, 165, 0.35);
    color: #d5fff4;
}

.worker-location-status {
    margin: 14px 0 0;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(14, 24, 40, 0.65);
    color: rgba(228, 238, 255, 0.88);
    font-size: 0.95rem;
    line-height: 1.45;
}

.worker-location-status.is-success {
    border-color: rgba(73, 198, 165, 0.35);
    background: rgba(73, 198, 165, 0.1);
    color: #d5fff4;
}

.worker-location-status.is-error {
    border-color: rgba(255, 125, 125, 0.35);
    background: rgba(255, 125, 125, 0.1);
    color: #ffd2d2;
}

.worker-location-status.is-pending {
    border-color: rgba(110, 170, 255, 0.28);
    background: rgba(110, 170, 255, 0.1);
    color: #dfe9ff;
}

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

.stat-card strong {
    display: block;
    margin-top: 12px;
    font-size: 2.4rem;
}

.stat-card.warning strong,
.incident-tag {
    color: var(--warm);
}

.stat-card.success strong {
    color: var(--accent-strong);
}

.admin-layout {
    grid-template-columns: minmax(0, 1fr) 430px;
    align-items: start;
    gap: 28px;
}

.admin-main,
.admin-side,
.history-list,
.incidents-grid {
    display: grid;
    gap: 20px;
}

.admin-main,
.admin-side {
    min-width: 0;
}

.admin-main > .block-section {
    overflow: hidden;
}

.admin-side {
    position: relative;
    top: auto;
    align-self: start;
    margin-left: 0;
}

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

.incident-card,
.history-item,
.mini-profile {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.table-wrap {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}

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

.admin-main table {
    min-width: 100%;
}

th,
td {
    padding: 16px 10px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    vertical-align: top;
}

th {
    color: #dcecff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

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

.status-pill.warning {
    background: rgba(255, 180, 84, 0.16);
    color: #ffd7a1;
}

.status-pill.success {
    background: rgba(73, 198, 165, 0.18);
    color: #cffff0;
}

.inline-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(73, 198, 165, 0.14);
    border: 1px solid rgba(73, 198, 165, 0.28);
    color: #d8fff4;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
    transition: transform 0.2s ease, background 0.2s ease;
}

.inline-action-btn:hover {
    transform: translateY(-1px);
    background: rgba(73, 198, 165, 0.22);
}

.stat-title {
    font-size: 1.3rem;
    line-height: 1.2;
}

.admin-incident-list {
    display: grid;
    gap: 18px;
}

.incident-search-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 18px 0 22px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.incident-search-bar input {
    flex: 1;
    min-height: 54px;
    padding: 15px 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(20, 33, 53, 0.88);
    color: var(--text);
    font: inherit;
}

.incident-search-bar input::placeholder {
    color: #93a7be;
}

.admin-filter-bar {
    display: grid;
    grid-template-columns: minmax(280px, 1.7fr) repeat(2, minmax(190px, 1fr)) auto auto;
    gap: 14px;
    align-items: center;
    margin: 18px 0 22px;
}

.history-filter-bar {
    grid-template-columns: repeat(2, minmax(180px, 220px)) auto;
}

.history-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 18px 0 22px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.history-toolbar-fields,
.history-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.history-toolbar input {
    min-height: 52px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(20, 33, 53, 0.88);
    color: var(--text);
    font: inherit;
}

.admin-tools-card {
    position: sticky;
    top: 20px;
}

.admin-tools-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0 20px;
    padding: 8px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-tab-btn {
    min-height: 48px;
    padding: 12px 10px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: rgba(222, 235, 255, 0.76);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.admin-tab-btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.05);
}

.admin-tab-btn.is-active {
    background: linear-gradient(135deg, rgba(47, 224, 182, 0.18), rgba(104, 231, 215, 0.1));
    color: #effffb;
    box-shadow: inset 0 0 0 1px rgba(108, 233, 208, 0.22);
}

.admin-tab-panel {
    display: none;
    animation: fadePanel 0.22s ease;
}

.admin-tab-panel.is-active {
    display: block;
}

.compact-grid {
    display: grid;
    gap: 12px;
}

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

.compact-password-form {
    margin-top: 8px;
}

.dashboard-shell .admin-tools-card .stack-form input {
    min-width: 0;
}

.admin-filter-bar input,
.admin-filter-bar select {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(20, 33, 53, 0.88);
    color: var(--text);
    font: inherit;
}

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

.admin-incident-detail {
    padding: 22px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

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

.admin-incident-detail h3 {
    margin: 0 0 10px;
    font-size: 1.35rem;
}

.admin-incident-detail p {
    margin: 8px 0;
    color: var(--muted);
}

.admin-incident-detail p strong {
    color: var(--text);
}

.empty-state {
    text-align: center;
    padding: 36px 24px;
}

.empty-state h3 {
    margin: 0 0 10px;
}

.empty-state p {
    margin: 0;
    color: var(--muted);
}

.worker-header {
    padding: 24px;
    margin-bottom: 20px;
}

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

.worker-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.header-logo-image {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 16px 32px rgba(47, 224, 182, 0.18);
}

.hero-card,
.timer-card {
    padding: 28px;
    text-align: center;
}

.live-clock {
    margin: 18px 0 12px;
    font-size: clamp(2.2rem, 6vw, 4.6rem);
    font-weight: 800;
    letter-spacing: 0.08em;
}

.timer-value {
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 800;
    margin: 18px 0;
    color: #c8fff0;
}

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

.today-summary div {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
}

.today-summary span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
}

.worker-user-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(73, 198, 165, 0.14);
    border: 1px solid rgba(73, 198, 165, 0.28);
    color: #d8fff4;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.history-item {
    animation: floatIn 0.6s ease both;
}

.history-meta {
    text-align: right;
}

.fade-in-up {
    animation: floatIn 0.8s ease both;
}

.fade-in-delay {
    animation: floatIn 0.95s ease both;
}

.worker-body {
    background:
        radial-gradient(circle at 14% 18%, rgba(47, 224, 182, 0.15), transparent 24%),
        radial-gradient(circle at 84% 14%, rgba(118, 103, 255, 0.16), transparent 20%),
        radial-gradient(circle at 50% 82%, rgba(255, 180, 84, 0.12), transparent 18%),
        linear-gradient(135deg, #07131f 0%, #091828 42%, #0b1222 100%);
}

.worker-shell {
    width: min(1320px, calc(100% - 32px));
    padding-top: 34px;
}

.worker-shell .worker-header {
    position: relative;
    overflow: hidden;
    padding: 30px 34px;
    background:
        linear-gradient(135deg, rgba(10, 26, 44, 0.96) 0%, rgba(13, 30, 52, 0.92) 54%, rgba(9, 20, 38, 0.96) 100%);
    border-color: rgba(122, 205, 255, 0.12);
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.worker-shell .worker-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(47, 224, 182, 0.14), transparent 24%),
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    pointer-events: none;
}

.worker-shell .worker-header > * {
    position: relative;
    z-index: 1;
}

.worker-shell .worker-header h1 {
    margin: 12px 0 10px;
    font-size: clamp(2.4rem, 4vw, 4rem);
    letter-spacing: -0.04em;
}

.worker-shell .worker-header p {
    max-width: 640px;
    font-size: 1.02rem;
}

.worker-shell .worker-brand-row {
    gap: 16px;
}

.worker-shell .header-logo-image {
    width: 82px;
    height: 82px;
    border-radius: 22px;
    box-shadow: 0 20px 36px rgba(47, 224, 182, 0.18);
}

.worker-shell .ghost-btn {
    min-height: 52px;
    padding: 14px 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.06);
}

.worker-shell .ghost-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.worker-shell .worker-hero {
    gap: 24px;
}

.worker-shell .hero-card,
.worker-shell .timer-card,
.worker-shell .history-panel {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(10, 27, 45, 0.96), rgba(8, 21, 36, 0.9));
    border: 1px solid rgba(138, 190, 255, 0.08);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.worker-shell .hero-card::before,
.worker-shell .timer-card::before,
.worker-shell .history-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.025), transparent 30%);
    pointer-events: none;
}

.worker-shell .hero-card:hover,
.worker-shell .timer-card:hover,
.worker-shell .history-panel:hover {
    transform: translateY(-4px);
    border-color: rgba(115, 223, 255, 0.16);
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.26);
}

.worker-shell .worker-user-badge {
    padding: 13px 22px;
    background: linear-gradient(135deg, rgba(47, 224, 182, 0.2), rgba(43, 114, 152, 0.18));
    border-color: rgba(93, 235, 209, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.worker-shell .worker-phase-badge {
    margin-bottom: 14px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.worker-shell .worker-phase-badge.is-working {
    background: linear-gradient(135deg, rgba(47, 224, 182, 0.2), rgba(63, 199, 163, 0.12));
}

.worker-shell .worker-phase-badge.is-break {
    background: linear-gradient(135deg, rgba(255, 180, 84, 0.2), rgba(255, 180, 84, 0.1));
}

.worker-shell .worker-phase-badge.is-completed {
    background: linear-gradient(135deg, rgba(110, 170, 255, 0.2), rgba(110, 170, 255, 0.1));
}

.worker-phase-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.02em;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.worker-phase-badge.is-pending {
    background: rgba(132, 159, 192, 0.18);
    color: #dbe8f7;
}

.worker-phase-badge.is-working {
    background: rgba(73, 198, 165, 0.16);
    color: #d9fff3;
    border-color: rgba(73, 198, 165, 0.26);
}

.worker-phase-badge.is-break {
    background: rgba(255, 180, 84, 0.16);
    color: #ffe2b4;
    border-color: rgba(255, 180, 84, 0.26);
}

.worker-phase-badge.is-completed {
    background: rgba(110, 170, 255, 0.16);
    color: #dce8ff;
    border-color: rgba(110, 170, 255, 0.24);
}

.worker-phase-message {
    max-width: 620px;
    margin: 0 auto 16px;
    padding: 14px 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #d9e7f6;
    line-height: 1.55;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.worker-shell .live-clock {
    margin: 22px 0 10px;
    font-size: clamp(2.7rem, 7vw, 5.2rem);
    letter-spacing: 0.04em;
    text-shadow: 0 0 26px rgba(47, 224, 182, 0.16);
}

.worker-shell .hero-card h2 {
    margin-bottom: 8px;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.worker-shell .hero-card p {
    font-size: 1rem;
}

.worker-shell .punch-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.worker-shell .punch-actions form {
    margin: 0;
}

.worker-shell .punch-actions .primary-btn,
.worker-shell .punch-actions .secondary-btn {
    width: 100%;
    min-height: 58px;
    border-radius: 18px;
    font-size: 1rem;
    letter-spacing: 0.02em;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.16);
}

.worker-shell .punch-actions .primary-btn {
    background: linear-gradient(135deg, #40dfbf, #7cf1cf);
}

.worker-shell .punch-actions .secondary-btn {
    background: linear-gradient(135deg, #22395f, #315385);
}

.worker-shell .timer-card {
    text-align: left;
}

.worker-shell .timer-card .kicker {
    margin-bottom: 10px;
}

.worker-shell .timer-value {
    margin: 12px 0 12px;
    font-size: clamp(2.8rem, 6vw, 4.4rem);
    color: #d7fff4;
    text-shadow: 0 0 24px rgba(47, 224, 182, 0.14);
}

.worker-shell .timer-card p {
    margin-bottom: 18px;
}

.worker-shell .today-summary {
    gap: 14px;
}

.worker-shell .today-summary div {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.worker-shell .today-summary div:hover {
    transform: translateY(-3px);
    border-color: rgba(115, 223, 255, 0.18);
}

.worker-shell .today-summary strong {
    font-size: 1.3rem;
}

.worker-shell .history-panel {
    padding: 28px 28px 22px;
}

.worker-shell .history-panel h2 {
    margin: 10px 0 0;
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    letter-spacing: -0.03em;
}

.worker-shell .history-list {
    gap: 14px;
}

.worker-shell .history-item {
    position: relative;
    align-items: center;
    padding: 18px 20px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.worker-shell .history-item::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #40dfbf;
    box-shadow: 0 0 0 7px rgba(64, 223, 191, 0.12);
    flex: 0 0 auto;
}

.worker-shell .history-item:hover {
    transform: translateX(4px);
    border-color: rgba(115, 223, 255, 0.14);
    background: linear-gradient(135deg, rgba(47, 224, 182, 0.08), rgba(255, 255, 255, 0.03));
}

.worker-shell .history-item > div:first-child {
    flex: 1;
}

.worker-shell .history-item strong {
    font-size: 1.02rem;
}

.worker-shell .history-item p {
    margin: 6px 0 0;
    color: #afc2d7;
}

.worker-shell .history-meta span {
    display: block;
    margin-bottom: 6px;
    font-weight: 800;
    color: #ffffff;
}

.dashboard-body {
    background:
        radial-gradient(circle at 8% 18%, rgba(47, 224, 182, 0.14), transparent 24%),
        radial-gradient(circle at 88% 12%, rgba(255, 180, 84, 0.12), transparent 22%),
        radial-gradient(circle at 60% 80%, rgba(53, 109, 255, 0.12), transparent 20%),
        linear-gradient(135deg, #07131f 0%, #091726 38%, #0a1222 100%);
}

.dashboard-shell {
    padding-top: 36px;
}

.dashboard-shell .topbar {
    position: relative;
    overflow: hidden;
    padding: 34px 36px;
    background:
        linear-gradient(135deg, rgba(9, 23, 40, 0.94) 0%, rgba(13, 28, 49, 0.92) 52%, rgba(8, 20, 37, 0.96) 100%);
    border-color: rgba(122, 205, 255, 0.12);
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.dashboard-shell .topbar::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(47, 224, 182, 0.15), transparent 26%),
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    pointer-events: none;
}

.dashboard-shell .topbar > * {
    position: relative;
    z-index: 1;
}

.dashboard-shell .topbar h1 {
    margin: 14px 0 10px;
    font-size: clamp(2.8rem, 5vw, 5rem);
    letter-spacing: -0.04em;
}

.dashboard-shell .topbar p {
    max-width: 980px;
    font-size: 1.05rem;
}

.dashboard-shell .topbar-actions {
    align-items: center;
    gap: 14px;
}

.dashboard-shell .logo-badge {
    width: 78px;
    height: 78px;
    border-radius: 24px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.26);
}

.dashboard-shell .ghost-btn {
    min-height: 52px;
    padding: 14px 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.06);
}

.dashboard-shell .ghost-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.admin-incident-list {
    display: grid;
    gap: 18px;
}

.admin-incident-detail {
    padding: 22px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(17, 31, 51, 0.96), rgba(13, 25, 42, 0.92));
    border: 1px solid rgba(132, 180, 255, 0.08);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.admin-incident-detail:hover {
    transform: translateY(-3px);
    border-color: rgba(132, 180, 255, 0.16);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.22);
}

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

.incident-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 18px;
}

.incident-actions form {
    margin: 0;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(5, 12, 22, 0.72);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
    z-index: 1000;
}

.modal-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-card {
    width: min(520px, 100%);
    padding: 26px;
    border-radius: 28px;
    border: 1px solid rgba(132, 180, 255, 0.12);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    transform: translateY(10px) scale(0.98);
    transition: transform 0.22s ease;
}

.modal-overlay.is-visible .modal-card {
    transform: translateY(0) scale(1);
}

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

.modal-head h3 {
    margin: 8px 0 0;
    font-size: 1.6rem;
}

.modal-close {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

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

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

.modal-form label span {
    color: rgba(226, 235, 255, 0.9);
    font-weight: 600;
}

.modal-form input,
.modal-form select,
.modal-form textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(20, 33, 53, 0.9);
    color: var(--text);
    font: inherit;
    resize: vertical;
}

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

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 6px;
}

@media (max-width: 1180px) {
    .admin-filter-bar {
        grid-template-columns: 1fr 1fr;
    }

    .history-filter-bar {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .admin-filter-bar,
    .history-filter-bar {
        grid-template-columns: 1fr;
    }
}

.dashboard-shell .stats-grid {
    gap: 24px;
}

.dashboard-shell .stat-card {
    position: relative;
    overflow: hidden;
    margin-top: 0;
    padding: 28px 28px 24px;
    background:
        linear-gradient(180deg, rgba(10, 27, 45, 0.96), rgba(8, 21, 36, 0.88));
    border: 1px solid rgba(133, 188, 255, 0.1);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.dashboard-shell .stat-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 4px;
    background: linear-gradient(90deg, rgba(47, 224, 182, 0.9), rgba(115, 223, 255, 0.15));
}

.dashboard-shell .stat-card.warning::after {
    background: linear-gradient(90deg, rgba(255, 180, 84, 0.95), rgba(255, 180, 84, 0.15));
}

.dashboard-shell .stat-card.success::after {
    background: linear-gradient(90deg, rgba(47, 224, 182, 0.95), rgba(47, 224, 182, 0.15));
}

.dashboard-shell .stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(115, 223, 255, 0.2);
    box-shadow: 0 26px 55px rgba(0, 0, 0, 0.24);
}

.dashboard-shell .stat-card span {
    color: #b6c8dc;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.82rem;
}

.dashboard-shell .stat-card strong {
    margin-top: 16px;
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    letter-spacing: -0.04em;
}

.dashboard-shell .block-section {
    position: relative;
    overflow: hidden;
    padding: 28px 28px 26px;
    background:
        linear-gradient(180deg, rgba(11, 26, 43, 0.96), rgba(8, 20, 35, 0.92));
    border: 1px solid rgba(138, 190, 255, 0.08);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.dashboard-shell .block-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), transparent 30%);
    pointer-events: none;
}

.dashboard-shell .block-section:hover {
    transform: translateY(-3px);
    border-color: rgba(115, 223, 255, 0.14);
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.18);
}

.dashboard-shell .section-heading h2,
.dashboard-shell .block-section h2 {
    margin: 10px 0 0;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    letter-spacing: -0.03em;
}

.dashboard-shell .kicker {
    background: rgba(132, 159, 192, 0.16);
    color: #dbefff;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.dashboard-shell .table-wrap {
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(4, 11, 20, 0.28);
}

.dashboard-shell td:nth-child(1) {
    min-width: 150px;
}

.dashboard-shell td:nth-child(2) {
    min-width: 140px;
}

.dashboard-shell td:nth-child(3) {
    min-width: 130px;
}

.dashboard-shell td:nth-child(5) {
    min-width: 150px;
}

.dashboard-shell td:nth-child(10),
.dashboard-shell th:nth-child(10) {
    min-width: 138px;
}

.dashboard-shell table {
    border-collapse: separate;
    border-spacing: 0;
}

.dashboard-shell th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(9, 19, 34, 0.94);
    color: #d8e8fb;
    backdrop-filter: blur(10px);
}

.dashboard-shell td {
    color: #eef4fb;
}

.dashboard-shell tbody tr {
    transition: background 0.2s ease, transform 0.2s ease;
}

.dashboard-shell tbody tr:hover {
    background: rgba(255, 255, 255, 0.035);
}

.dashboard-shell tbody tr:hover td {
    color: #ffffff;
}

.dashboard-shell td strong {
    font-size: 1.02rem;
}

.dashboard-shell td small {
    display: inline-block;
    margin-top: 4px;
}

.dashboard-shell .inline-action-btn {
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(45, 164, 140, 0.26), rgba(28, 74, 92, 0.32));
    border-color: rgba(105, 235, 212, 0.24);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    white-space: normal;
    text-align: center;
}

.dashboard-shell .inline-action-btn:hover {
    background: linear-gradient(135deg, rgba(70, 216, 183, 0.34), rgba(52, 108, 128, 0.36));
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.18);
}

.dashboard-shell .stack-form input {
    min-height: 50px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-shell .stack-form input[type="date"] {
    color-scheme: dark;
}

.dashboard-shell .stack-form input:focus {
    outline: none;
    border-color: rgba(108, 233, 208, 0.4);
    box-shadow: 0 0 0 4px rgba(47, 224, 182, 0.1);
    transform: translateY(-1px);
}

.admin-form-note {
    margin: 8px 0 16px;
    color: #9eb2c8;
    line-height: 1.5;
}

.dashboard-shell .stack-form .primary-btn {
    min-height: 54px;
    border-radius: 18px;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.dashboard-shell .mini-profile {
    align-items: center;
    padding: 18px 18px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.dashboard-shell .mini-profile:hover {
    transform: translateX(4px);
    border-color: rgba(115, 223, 255, 0.14);
    background: linear-gradient(135deg, rgba(47, 224, 182, 0.07), rgba(255, 255, 255, 0.03));
}

.dashboard-shell .mini-profile span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 180, 84, 0.12);
    color: #ffd9a4;
    font-weight: 700;
    white-space: nowrap;
}

.dashboard-shell .admin-incident-detail {
    background:
        linear-gradient(180deg, rgba(11, 28, 46, 0.95), rgba(8, 20, 35, 0.92));
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.dashboard-shell .admin-incident-detail:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 187, 89, 0.2);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.2);
}

.dashboard-shell .admin-incident-head strong {
    color: #fff2d5;
}

.account-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.inline-mini-btn {
    min-height: 40px;
    padding: 10px 14px;
    font-size: 0.92rem;
}

.account-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.account-info-grid div {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.account-info-grid .full,
.modal-grid .full {
    grid-column: 1 / -1;
}

.account-info-grid span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.88rem;
}

.account-info-grid strong {
    display: block;
    line-height: 1.45;
    word-break: break-word;
}

.dashboard-shell .empty-state {
    background:
        linear-gradient(180deg, rgba(10, 25, 42, 0.92), rgba(8, 19, 33, 0.9));
    border-radius: 24px;
}

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

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

@media (max-width: 980px) {
    .auth-shell,
    .worker-hero,
    .admin-layout,
    .credential-grid,
    .stats-grid,
    .today-summary {
        grid-template-columns: 1fr;
    }

    .topbar,
    .worker-header,
    .panel-top,
    .section-heading,
    .topbar-actions,
    .history-item,
    .mini-profile {
        align-items: flex-start;
        flex-direction: column;
    }

    .worker-brand-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-side {
        margin-left: 0;
    }

    .admin-tools-card {
        position: relative;
        top: 0;
    }

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

    .admin-incident-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .history-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .history-toolbar-fields,
    .history-toolbar-actions {
        flex-wrap: wrap;
        width: 100%;
    }

    .incident-search-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .account-info-grid {
        grid-template-columns: 1fr;
    }

    .auth-shell {
        min-height: auto;
        padding: 30px 0 42px;
        gap: 22px;
    }

    .auth-brand,
    .auth-panel {
        width: 100%;
    }

    .auth-brand {
        text-align: center;
        display: grid;
        justify-items: center;
        max-width: 760px;
        margin: 0 auto;
    }

    .auth-brand p {
        max-width: 620px;
    }

    .auth-panel {
        max-width: 640px;
        margin: 0 auto;
    }

    .auth-form {
        width: 100%;
    }

    .auth-form label {
        text-align: left;
    }

    .brand-logo-image {
        width: min(260px, 72vw);
        margin: 0 auto 18px;
    }

    .worker-shell {
        width: min(100% - 24px, 1120px);
        padding-top: 24px;
    }

    .worker-shell .worker-header {
        padding: 24px 24px 22px;
    }

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

    .worker-shell .worker-header p {
        max-width: none;
    }

    .worker-shell .worker-header-actions {
        width: 100%;
        justify-content: stretch;
    }

    .worker-shell .worker-header-actions .ghost-btn {
        flex: 1 1 240px;
    }

    .worker-shell .hero-card,
    .worker-shell .timer-card,
    .worker-shell .history-panel {
        padding: 24px 22px;
    }

    .worker-shell .punch-actions {
        grid-template-columns: 1fr;
    }

    .worker-shell .today-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .worker-shell .location-hint,
    .worker-shell .worker-location-status {
        max-width: 100%;
    }

    .worker-shell .history-item {
        gap: 14px;
    }

    .worker-shell .history-meta {
        width: 100%;
        text-align: left;
    }

    .worker-shell .history-meta span {
        margin-bottom: 8px;
    }

    .modal-card {
        width: min(560px, 100%);
    }
}

@media (max-width: 640px) {
    .auth-shell,
    .dashboard-shell,
    .worker-shell {
        width: min(100% - 20px, 1200px);
    }

    .orb {
        width: 220px;
        height: 220px;
        filter: blur(24px);
        opacity: 0.28;
    }

    .auth-shell {
        padding: 18px 0 30px;
        gap: 18px;
    }

    .auth-brand {
        gap: 8px;
    }

    .auth-brand h1,
    .worker-header h1 {
        font-size: clamp(2rem, 10vw, 2.8rem);
    }

    .auth-brand p,
    .worker-shell .worker-header p,
    .worker-shell .hero-card p,
    .worker-shell .timer-card p {
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .brand-logo-image {
        width: min(220px, 78vw);
    }

    .auth-panel,
    .hero-card,
    .timer-card,
    .block-section,
    .worker-header,
    .topbar,
    .credentials-card,
    .history-panel {
        padding: 20px;
        border-radius: 22px;
    }

    .auth-panel {
        padding: 22px 18px;
    }

    .auth-panel h2 {
        font-size: 1.75rem;
    }

    .panel-top {
        gap: 14px;
    }

    .panel-top .logo-mark {
        width: 54px;
        height: 54px;
        border-radius: 18px;
    }

    .auth-form input,
    .auth-form .primary-btn {
        min-height: 52px;
    }

    .auth-form {
        gap: 12px;
    }

    .auth-form .primary-btn {
        margin-top: 6px;
    }

    .live-clock,
    .timer-value {
        letter-spacing: 0.02em;
    }

    .worker-shell {
        width: min(100% - 16px, 720px);
        padding-top: 16px;
        padding-bottom: 28px;
    }

    .worker-shell .worker-header {
        padding: 20px 18px;
        gap: 18px;
    }

    .worker-shell .worker-brand-row {
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .worker-shell .header-logo-image {
        width: 68px;
        height: 68px;
        border-radius: 18px;
    }

    .worker-shell .brand-pill {
        justify-content: center;
        width: 100%;
        text-align: center;
    }

    .worker-shell .worker-header-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        gap: 10px;
        align-items: stretch;
    }

    .worker-shell .worker-header-actions .ghost-btn {
        width: 100%;
        min-height: 46px;
        padding: 12px 10px;
        flex: initial;
        white-space: nowrap;
        font-size: 0.9rem;
        border-radius: 16px;
    }

    .worker-shell .hero-card,
    .worker-shell .timer-card,
    .worker-shell .history-panel {
        padding: 20px 16px;
        border-radius: 24px;
    }

    .worker-shell .worker-user-badge,
    .worker-shell .worker-phase-badge {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .worker-phase-message {
        padding: 12px 14px;
        font-size: 0.94rem;
    }

    .worker-shell .location-hint {
        margin-top: 8px;
        font-size: 0.92rem;
    }

    .worker-shell .worker-location-status {
        min-height: 52px;
        padding: 12px 14px;
        font-size: 0.92rem;
        line-height: 1.45;
    }

    .worker-shell .live-clock {
        margin: 18px 0 10px;
        font-size: clamp(2.2rem, 13vw, 3.3rem);
        line-height: 1;
    }

    .worker-shell .hero-card h2 {
        font-size: clamp(1.55rem, 8vw, 2rem);
        line-height: 1.1;
    }

    .worker-shell .punch-actions {
        gap: 12px;
    }

    .worker-shell .punch-actions .primary-btn,
    .worker-shell .punch-actions .secondary-btn {
        min-height: 56px;
        font-size: 0.98rem;
        padding: 14px 16px;
    }

    .worker-shell .timer-card {
        text-align: center;
    }

    .worker-shell .timer-value {
        font-size: clamp(2.15rem, 12vw, 3.3rem);
        line-height: 1;
    }

    .worker-shell .timer-card .kicker,
    .worker-shell .history-panel .kicker {
        justify-content: center;
    }

    .worker-shell .today-summary {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .worker-shell .today-summary div {
        padding: 14px;
    }

    .worker-shell .today-summary strong {
        font-size: 1.18rem;
    }

    .worker-shell .history-panel h2 {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }

    .worker-shell .section-heading {
        gap: 10px;
    }

    .worker-shell .history-item {
        padding: 16px;
        gap: 12px;
    }

    .worker-shell .history-item::before {
        display: none;
    }

    .worker-shell .history-item p {
        font-size: 0.93rem;
    }

    .worker-shell .history-meta .status-pill {
        display: inline-flex;
    }

    .worker-shell .history-meta span {
        font-size: 1rem;
    }

    .admin-filter-bar,
    .history-filter-bar,
    .compact-grid-double,
    .admin-tools-tabs {
        grid-template-columns: 1fr;
    }

    .modal-overlay {
        padding: 14px;
    }

    .modal-card {
        width: 100%;
        padding: 20px 16px;
        border-radius: 24px;
    }

    .modal-head {
        gap: 12px;
        align-items: flex-start;
    }

    .modal-close {
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
    }

    .modal-form input,
    .modal-actions .primary-btn,
    .modal-actions .ghost-btn {
        min-height: 50px;
    }

    .modal-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }
}

@media (max-width: 420px) {
    .auth-shell,
    .worker-shell {
        width: min(100% - 12px, 720px);
    }

    .auth-panel,
    .worker-shell .worker-header,
    .worker-shell .hero-card,
    .worker-shell .timer-card,
    .worker-shell .history-panel,
    .modal-card {
        border-radius: 20px;
    }

    .worker-shell .live-clock,
    .worker-shell .timer-value {
        font-variant-numeric: tabular-nums;
    }

    .worker-shell .hero-card h2 {
        font-size: 1.45rem;
    }

    .worker-shell .history-item p {
        line-height: 1.5;
    }

    .worker-shell .worker-header-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .worker-shell .worker-header-actions .ghost-btn {
        min-height: 44px;
        padding: 11px 8px;
        font-size: 0.86rem;
        border-radius: 16px;
    }
}
