:root {
    --tk-font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --skipa-mint: #00ffab;
    --skipa-charcoal: #1a1a1a;
    --skipa-orange: #d94a1a;
    --text-main: #1a1a1a;
    --text-muted: #667085;
    --tk-background: #f5f6f7;
    --tk-surface: #ffffff;
    --tk-surface-strong: #f7f9fb;
    --tk-border: #dce3ea;
    --tk-text: var(--text-main);
    --tk-muted: var(--text-muted);
    --tk-primary: var(--skipa-orange);
    --tk-primary-dark: #b83a12;
    --tk-primary-soft: rgba(217, 74, 26, 0.12);
    --tk-structure: var(--skipa-charcoal);
    --tk-accent: var(--skipa-mint);
    --tk-accent-dark: #00c987;
    --tk-danger: #b42318;
    --tk-danger-dark: #912018;
    --tk-shadow: 0 16px 34px rgba(26, 26, 26, 0.07);
    --tk-shadow-soft: 0 8px 20px rgba(26, 26, 26, 0.055);
    --tk-radius-lg: 18px;
    --tk-radius-md: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--tk-font-sans);
    background:
        linear-gradient(180deg, rgba(26, 26, 26, 0.04) 0, rgba(26, 26, 26, 0) 210px),
        linear-gradient(135deg, rgba(217, 74, 26, 0.016) 0%, transparent 32%),
        linear-gradient(180deg, #fcfcfb 0%, var(--tk-background) 100%);
    color: var(--tk-text);
    font-size: 16px;
    line-height: 1.45;
    font-synthesis-weight: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.setup-help-open {
    overflow: hidden;
}

button,
input {
    font: inherit;
}

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

.hero,
.content-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.hero {
    padding: 12px 0 6px;
}

.hero-copy {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--tk-structure) 0%, #2a2a2a 100%);
    border: 1px solid rgba(26, 26, 26, 0.9);
    border-radius: var(--tk-radius-lg);
    padding: 16px 18px;
    box-shadow: var(--tk-shadow);
    color: #ffffff;
}

.hero-help-link {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 1;
    color: rgba(217, 74, 26, 0.86);
    font-size: 0.84rem;
    font-weight: 560;
    text-decoration: none;
}

.hero-help-link:hover,
.hero-help-link:focus-visible {
    color: #f06a36;
    text-decoration: underline;
}

.hero-copy::after {
    content: "";
    position: absolute;
    inset: auto 18px 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(217, 74, 26, 0.74), rgba(217, 74, 26, 0));
    border-radius: 999px 999px 0 0;
}

.eyebrow,
.section-label {
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.76rem;
    font-weight: 620;
    color: var(--tk-structure);
}

.hero .eyebrow {
    color: rgba(255, 255, 255, 0.74);
}

.section-icon {
    color: var(--tk-primary);
    font-size: 0.64rem;
    letter-spacing: 0;
    opacity: 0.78;
}

.hero h1,
.panel-heading h2,
.worker-header h2 {
    margin: 0;
    line-height: 1.05;
}

.hero h1 {
    font-size: clamp(1.55rem, 3vw, 2.2rem);
    font-weight: 660;
    letter-spacing: 0;
}

.intro {
    max-width: 640px;
    margin: 5px 0 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.76);
}

.content-shell,
.owner-workspace,
.worker-workspace {
    display: grid;
    gap: 10px;
}

.content-shell {
    padding: 5px 0 16px;
}

.panel {
    background: var(--tk-surface);
    border: 1px solid var(--tk-border);
    border-radius: var(--tk-radius-lg);
    padding: 14px;
    box-shadow: var(--tk-shadow-soft);
}

.summary-panel,
.log-panel,
.links-panel,
.setup-panel,
.manager-link-panel,
.billing-panel,
.kiosks-panel {
    border-top: 3px solid rgba(26, 26, 26, 0.9);
}

.summary-panel {
    border-top-color: var(--tk-accent);
}

.log-panel {
    border-top-color: #536579;
}

.links-panel,
.kiosks-panel,
.setup-panel {
    border-top-color: rgba(217, 74, 26, 0.48);
}

.manager-link-panel,
.owner-pin-gate-panel,
.setup-gate-panel {
    border-top: 3px solid var(--tk-structure);
}

.billing-panel {
    padding-top: 12px;
    padding-bottom: 12px;
}

.billing-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 0;
}

.billing-heading-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.billing-heading-copy .status-detail {
    font-size: 0.9rem;
}

.billing-panel .log-actions {
    margin-top: 0;
}

.billing-panel .button {
    min-height: 32px;
    padding: 7px 11px;
}

.owner-pin-gate-panel {
    display: grid;
    gap: 10px;
}

.owner-pin-gate-panel[hidden],
#owner-pin-verify-form[hidden],
#owner-pin-setup-form[hidden],
.owner-mode #owner-workspace[hidden] {
    display: none;
}

.inactive-workers-toggle-row {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 5px;
}

.setup-help-modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 18px;
}

.setup-help-modal[hidden] {
    display: none;
}

.setup-help-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 26, 0.62);
    backdrop-filter: blur(4px);
}

.setup-help-card {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    padding: 22px;
    border: 1px solid rgba(220, 227, 234, 0.95);
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafb 100%);
    box-shadow: 0 28px 64px rgba(26, 26, 26, 0.24);
}

.setup-help-card h2 {
    margin-bottom: 12px;
}

.setup-help-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: rgba(26, 26, 26, 0.08);
    color: var(--tk-structure);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.setup-help-list {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 10px;
    color: var(--tk-text);
    line-height: 1.5;
}

.setup-help-choice {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    color: var(--tk-muted);
}

.setup-help-choice input {
    flex: 0 0 auto;
}

.setup-help-actions {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.worker-deactivate-card,
.billing-plan-choice-card {
    width: min(100%, 500px);
}

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

.billing-plan-choice-button {
    min-height: 84px;
    display: grid;
    align-content: center;
    gap: 5px;
    text-align: left;
}

.billing-plan-choice-button strong,
.billing-plan-choice-button span {
    display: block;
}

.billing-plan-choice-button span {
    font-size: 0.86rem;
    font-weight: 500;
    opacity: 0.82;
}

.panel-heading {
    margin-bottom: 9px;
}

.panel-heading-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.panel-heading-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.worker-panel-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.saved-link-section-label {
    margin: 4px 0 10px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tk-muted);
}

.add-worker-shortcut {
    min-height: 34px;
    padding: 7px 12px;
}

.collapsible-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.collapsible-heading-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.collapsible-heading.is-clickable {
    margin: -4px;
    padding: 6px;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.collapsible-heading.is-clickable:hover {
    background: rgba(26, 26, 26, 0.035);
}

.collapsible-heading.is-clickable:focus-visible {
    outline: none;
    background: rgba(217, 74, 26, 0.035);
    box-shadow: 0 0 0 3px rgba(217, 74, 26, 0.09);
}

.collapsible-heading.is-clickable .panel-heading-actions {
    flex: 0 0 auto;
}

.inactive-workers-group {
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px solid var(--tk-border);
}

.worker-card.is-inactive {
    background: rgba(26, 26, 26, 0.025);
}

.worker-card.is-inactive .worker-card-name,
.worker-card.is-inactive .worker-card-job {
    color: var(--tk-muted);
}

.collapsible-summary {
    margin: 3px 0 0;
    color: var(--tk-muted);
    line-height: 1.45;
}

.collapse-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    color: var(--tk-muted);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    align-self: center;
}

.collapsible-heading.is-expanded {
    margin-bottom: 4px;
}

.collapsible-heading.is-collapsed {
    margin-bottom: 0;
}

.collapsible-panel .panel-body[hidden] {
    display: none;
}

.panel-body {
    display: grid;
    gap: 8px;
}

.collapse-toggle {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--tk-primary);
    font-weight: 600;
    cursor: pointer;
}

.panel-heading h2,
.worker-header h2 {
    font-size: clamp(1.08rem, 1.8vw, 1.42rem);
    color: var(--tk-structure);
    font-weight: 640;
    letter-spacing: 0;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 13px;
    border: 1px solid transparent;
    border-radius: 11px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 1px 0 rgba(26, 26, 26, 0.04);
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}

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

.button-primary {
    background: var(--tk-primary);
    color: #fff;
    border-color: var(--tk-primary);
    box-shadow: 0 6px 14px rgba(184, 58, 18, 0.14), 0 1px 0 rgba(26, 26, 26, 0.04);
}

.button-primary:hover,
.button-primary:focus-visible {
    background: var(--tk-primary-dark);
    border-color: var(--tk-primary-dark);
}

.button-secondary {
    background: #fff;
    color: var(--tk-structure);
    border-color: var(--tk-border);
}

.button-secondary:hover,
.button-secondary:focus-visible {
    background: #f7f9fb;
    border-color: #c8d1dc;
}

.button-tertiary {
    background: transparent;
    color: var(--tk-muted);
    border-color: transparent;
    padding-left: 0;
    padding-right: 0;
}

.button-tertiary:hover,
.button-tertiary:focus-visible {
    background: transparent;
    color: var(--tk-text);
}

.button-accent {
    background: var(--tk-primary);
    color: #ffffff;
    border-color: var(--tk-primary);
    box-shadow: 0 6px 14px rgba(184, 58, 18, 0.14), 0 1px 0 rgba(26, 26, 26, 0.04);
}

.button-accent:hover,
.button-accent:focus-visible {
    background: var(--tk-primary-dark);
    border-color: var(--tk-primary-dark);
}

.button-danger {
    background: #fff1f2;
    color: var(--tk-danger);
    border: 1px solid rgba(180, 35, 24, 0.18);
}

.button-danger:hover,
.button-danger:focus-visible {
    background: #ffe4e6;
    color: var(--tk-danger-dark);
}

.button-full,
.clock-toggle {
    width: 100%;
}

.is-disabled,
.button[aria-disabled="true"] {
    opacity: 0.5;
}

.button-flash {
    box-shadow: 0 0 0 4px rgba(0, 255, 171, 0.22);
}

.setup-form,
.log-filters {
    display: grid;
    gap: 8px;
}

.log-filters {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 8px;
    align-items: end;
}

.filter-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    min-height: 20px;
}

.field {
    display: grid;
    gap: 4px;
}

.field-help {
    margin-top: -2px;
    font-size: 0.78rem;
    line-height: 1.35;
    color: rgba(100, 116, 139, 0.78);
}

.field span,
.meta-label {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--tk-muted);
}

.field input,
.field select {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid var(--tk-border);
    border-radius: 10px;
    background: #fbfcfd;
    color: var(--tk-text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 2px rgba(15, 23, 42, 0.03);
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.field input::placeholder {
    color: rgba(100, 116, 139, 0.48);
}

.field input:focus::placeholder {
    color: transparent;
}

.field input:focus,
.field select:focus {
    background: #ffffff;
    outline: 1px solid rgba(217, 74, 26, 0.12);
    border-color: rgba(217, 74, 26, 0.46);
    box-shadow: 0 0 0 3px rgba(217, 74, 26, 0.045);
}

.field input:disabled,
.field select:disabled {
    background: #f8fafc;
    color: var(--tk-muted);
}

.field select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--tk-muted) 50%), linear-gradient(135deg, var(--tk-muted) 50%, transparent 50%);
    background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.kiosk-management {
    display: grid;
    gap: 10px;
}

.kiosk-list {
    max-height: 360px;
}

.kiosk-link-display {
    display: block;
    margin-top: 4px;
    color: var(--tk-muted);
    font-size: 0.78rem;
    overflow-wrap: anywhere;
}

.kiosk-card-actions {
    align-self: center;
}

.text-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--tk-structure);
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.subdued-action {
    color: var(--tk-muted);
}

.inline-message,
.last-action-line,
.helper-text,
.unlock-note {
    margin: 5px 0 0;
    color: var(--tk-muted);
    line-height: 1.5;
}

.summary-business-context {
    margin-top: 3px;
}

.refresh-button {
    min-height: 34px;
    padding: 7px 13px;
}

.summary-grid,
.worker-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

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

.meta-card {
    display: grid;
    gap: 2px;
    padding: 12px 13px;
    border: 1px solid var(--tk-border);
    border-radius: var(--tk-radius-md);
    background: linear-gradient(180deg, #ffffff 0%, var(--tk-surface-strong) 100%);
}

.meta-card strong {
    font-size: 1.12rem;
    color: var(--tk-structure);
}

.recovery-panel {
    border-color: var(--tk-accent);
    box-shadow: 0 0 0 1px rgba(0, 255, 171, 0.18), var(--tk-shadow-soft);
}

.qr-code-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    margin: 16px 0;
    padding: 16px;
    border: 1px solid var(--tk-border);
    border-radius: 16px;
    background: var(--tk-surface-strong);
}

.qr-code-wrap canvas,
.qr-code-wrap img {
    display: block;
    width: min(100%, 220px);
    height: auto;
}

.qr-code-message {
    margin: 0;
    text-align: center;
    color: var(--tk-muted);
    line-height: 1.5;
}

.link-display {
    padding: 10px 12px;
    border: 1px solid var(--tk-border);
    border-radius: 10px;
    background: #f7f9fb;
    color: var(--tk-text);
    font-weight: 500;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.qr-actions {
    margin-top: 0;
}

.saved-links-list,
.worker-status-list {
    display: grid;
    gap: 6px;
}

.saved-links-list {
    max-height: 338px;
    overflow-y: auto;
    padding-right: 4px;
    overscroll-behavior: contain;
}

.saved-link-row,
.worker-status-row {
    display: grid;
    gap: 6px;
    padding: 10px 11px;
    border: 1px solid var(--tk-border);
    border-radius: var(--tk-radius-md);
    background: #fff;
}

.saved-link-row.is-recently-added {
    animation: workerRowAddedFlash 1.1s ease-out;
    border-color: rgba(0, 255, 171, 0.48);
    background: linear-gradient(180deg, rgba(239, 255, 250, 0.98) 0%, #ffffff 100%);
}

.saved-link-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 9px;
}

.saved-link-actions {
    justify-content: flex-end;
    align-items: center;
    margin-top: 0;
}

.saved-link-meta {
    display: block;
    font-weight: 600;
}

.worker-card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    background: #fff;
}

@keyframes workerRowAddedFlash {
    0% {
        background: rgba(0, 255, 171, 0.18);
        border-color: rgba(0, 255, 171, 0.65);
        box-shadow: 0 0 0 0 rgba(0, 255, 171, 0.2);
    }

    100% {
        background: #ffffff;
        border-color: var(--tk-border);
        box-shadow: 0 0 0 10px rgba(0, 255, 171, 0);
    }
}

.worker-card-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.worker-card-name {
    font-size: 1rem;
}

.worker-card-job,
.worker-card-status {
    color: var(--tk-muted);
    font-size: 0.86rem;
    line-height: 1.35;
}

.worker-card-status.is-active {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #008b62;
    font-weight: 620;
}

.worker-card-status.is-active::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--tk-accent);
    box-shadow: 0 0 0 2px rgba(0, 255, 171, 0.16);
}

.worker-card-actions {
    justify-content: flex-end;
    align-items: center;
    align-self: center;
    flex: 0 0 auto;
    gap: 6px;
}

.compact-action-button {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 6px 8px;
    font-size: 0.82rem;
    white-space: nowrap;
}

.worker-action-menu {
    display: contents;
}

.worker-action-menu summary {
    list-style: none;
}

.worker-action-menu summary::-webkit-details-marker {
    display: none;
}

.worker-action-menu-button {
    display: none;
}

.worker-action-menu-list {
    position: static;
    z-index: auto;
    display: contents !important;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.worker-action-menu:not([open]) > .worker-action-menu-list {
    display: contents !important;
}

.worker-action-menu-item {
    width: auto;
}

.worker-action-menu-note {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border-radius: 10px;
    background: #f8fafc;
    color: var(--tk-muted);
    font-size: 0.84rem;
    line-height: 1.4;
}

.worker-status-row {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    font-size: 0.95rem;
}

.worker-status-value {
    color: var(--tk-muted);
    text-align: right;
}

.worker-status-value.is-active {
    display: inline-flex;
    justify-content: flex-end;
    align-items: center;
    gap: 5px;
    color: #008b62;
    font-weight: 620;
}

.worker-status-value.is-active::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--tk-accent);
    box-shadow: 0 0 0 2px rgba(0, 255, 171, 0.16);
}

.worker-card:has(.worker-card-status.is-active) .worker-card-actions > .button-primary {
    background: var(--tk-accent);
    border-color: var(--tk-accent);
    color: var(--tk-structure);
    box-shadow: 0 6px 14px rgba(0, 137, 98, 0.12), 0 1px 0 rgba(26, 26, 26, 0.04);
}

.worker-card:has(.worker-card-status.is-active) .worker-card-actions > .button-primary:hover,
.worker-card:has(.worker-card-status.is-active) .worker-card-actions > .button-primary:focus-visible {
    background: var(--tk-accent-dark);
    border-color: var(--tk-accent-dark);
}

.log-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 7px;
}

.log-actions .button {
    flex: 0 0 auto;
}

.log-range-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 2px;
}

.log-range-button.is-active {
    border-color: rgba(0, 255, 171, 0.5);
    background: rgba(0, 255, 171, 0.12);
    color: var(--tk-structure);
}

.worker-log-range-controls {
    margin: -2px 0 4px;
}

.worker-log-range-controls .log-range-button {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 0.84rem;
}

.log-count-line {
    margin-top: 0;
}

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

.table-wrap.is-scrollable {
    max-height: 520px;
    overflow-y: auto;
    border: 1px solid var(--tk-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(26, 26, 26, 0.025);
}

.table-wrap.is-scrollable thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8fafb;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}

.worker-log-panel table {
    min-width: 520px;
}

th,
td {
    padding: 8px 9px;
    border-bottom: 1px solid var(--tk-border);
    text-align: left;
}

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

.sort-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    cursor: pointer;
}

.sort-indicator {
    min-width: 10px;
}

td {
    font-size: 0.94rem;
}

.row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.row-action-button {
    min-height: 30px;
    padding: 6px 8px;
    border-radius: 10px;
    font-size: 0.82rem;
}

.button-danger-text {
    color: var(--tk-danger);
}

.worker-card-actions .button-danger-text {
    padding-left: 8px;
    padding-right: 8px;
    border: 1px solid rgba(180, 35, 24, 0.14);
    background: #fffafa;
}

.worker-card-actions .button-danger-text:hover,
.worker-card-actions .button-danger-text:focus-visible {
    background: #fff1f2;
    color: var(--tk-danger-dark);
}

.empty-state {
    text-align: center;
    color: var(--tk-muted);
    padding: 16px 10px;
    background: linear-gradient(180deg, rgba(247, 249, 251, 0.75), rgba(255, 255, 255, 0));
    border-radius: var(--tk-radius-md);
}

.worker-panel {
    gap: 10px;
}

.worker-header,
.worker-identity {
    display: grid;
    gap: 4px;
}

.worker-header .section-label {
    margin-bottom: 2px;
}

.worker-header h2 {
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(100, 116, 139, 0.72);
}

.worker-name {
    font-size: clamp(1.95rem, 5.6vw, 2.7rem);
    line-height: 1.02;
    font-weight: 620;
}

.worker-job,
.worker-business {
    margin: 0;
    color: var(--tk-muted);
    line-height: 1.35;
}

.clock-status {
    margin: 6px 0 1px;
    font-size: clamp(1.55rem, 4.3vw, 2.25rem);
    line-height: 1;
    font-weight: 640;
}

.worker-panel.is-clocked-in .clock-status {
    color: #008b62;
}

.worker-panel.is-clocked-in .clock-toggle {
    background: var(--tk-accent);
    border-color: var(--tk-accent);
    color: var(--tk-structure);
}

.worker-panel.is-clocked-in .clock-toggle:hover,
.worker-panel.is-clocked-in .clock-toggle:focus-visible {
    background: var(--tk-accent-dark);
    border-color: var(--tk-accent-dark);
}

.status-detail {
    margin: 0;
    color: var(--tk-muted);
    line-height: 1.5;
}

.clock-toggle {
    min-height: 54px;
    font-size: 1.04rem;
    margin-top: 8px;
    margin-bottom: 6px;
}

#download-my-hours-button {
    background: #ffffff;
    border-color: #c8d1dc;
    color: var(--tk-structure);
    box-shadow: 0 1px 0 rgba(26, 26, 26, 0.04);
}

#download-my-hours-button:hover,
#download-my-hours-button:focus-visible {
    background: #f7f9fb;
    border-color: rgba(26, 26, 26, 0.28);
    box-shadow: 0 0 0 3px rgba(217, 74, 26, 0.055);
}

.worker-mode .hero,
.worker-mode #owner-workspace {
    display: none;
}

.owner-mode #worker-workspace {
    display: none;
}

.owner-mode .hero-copy {
    padding-bottom: 15px;
}

.owner-mode .hero .eyebrow {
    display: none;
}

.owner-identity-line {
    margin-bottom: 10px;
}

.app-footer {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 28px;
}

.app-footer p {
    margin: 0;
    text-align: center;
    color: var(--tk-muted);
    font-size: 0.9rem;
}

.app-footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.app-footer-version {
    margin-top: 8px;
    font-size: 0.78rem;
    color: rgba(100, 116, 139, 0.72);
}

.app-footer a {
    color: inherit;
}

@media (max-width: 900px) {
    .log-filters,
    .summary-grid,
    .worker-summary-grid,
    .worker-status-row,
    .saved-link-row {
        grid-template-columns: 1fr;
    }

    .panel-heading-inline,
    .panel-heading-actions,
    .collapsible-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .collapsible-heading.is-clickable {
        gap: 10px;
    }

    .collapsible-heading.is-clickable .panel-heading-actions,
    .worker-panel-actions {
        width: 100%;
        justify-content: space-between;
    }

    .collapse-indicator {
        align-self: flex-end;
    }

    .worker-card {
        grid-template-columns: 1fr;
    }

    .worker-card-actions {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        justify-content: stretch;
    }

    .worker-action-menu {
        justify-self: stretch;
    }

    .worker-action-menu-button {
        width: 100%;
    }

    .compact-action-button {
        width: 100%;
    }

    .worker-status-value {
        text-align: left;
        justify-content: flex-start;
    }

    .billing-heading-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .worker-card-actions,
    .billing-plan-choice-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero,
    .content-shell,
    .app-footer {
        width: min(100% - 20px, 1120px);
    }

    .worker-action-menu-list {
        left: 0;
        right: 0;
        min-width: 0;
    }

    .hero {
        padding: 7px 0 3px;
    }

    .hero-copy,
    .panel {
        padding: 12px;
        border-radius: 14px;
    }

    .hero h1 {
        font-size: clamp(1.45rem, 7vw, 2rem);
    }

    .intro {
        font-size: 0.88rem;
    }

    .content-shell,
    .owner-workspace,
    .worker-workspace {
        gap: 8px;
    }

    .clock-toggle {
        min-height: 50px;
        font-size: 1rem;
    }
}
