:root {
    color-scheme: light;
    --bg: #eef3ed;
    --bg-strong: #d9e3d7;
    --surface: rgba(255, 255, 255, 0.94);
    --ink: #14231c;
    --muted: #63756c;
    --line: rgba(20, 35, 28, 0.1);
    --primary: #1c6c51;
    --primary-strong: #124c39;
    --employee: #8c5723;
    --employee-strong: #63380d;
    --success: #16803a;
    --danger: #af4132;
    --shadow: 0 28px 70px rgba(20, 35, 28, 0.14);
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    color: var(--ink);
    font-family: "Segoe UI", "Trebuchet MS", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(28, 108, 81, 0.12), transparent 25%),
        radial-gradient(circle at top right, rgba(201, 106, 43, 0.12), transparent 22%),
        linear-gradient(180deg, #f8fbf8 0%, var(--bg) 52%, var(--bg-strong) 100%);
}

button,
input {
    font: inherit;
}

button {
    border: 0;
}

svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.app-main {
    width: min(1720px, calc(100vw - 40px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 20px 0 24px;
}

.collect-shell {
    display: grid;
    align-content: start;
    gap: 18px;
}

.hero-panel,
.action-card,
.activity-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.hero-panel {
    padding: 18px 24px 14px;
    display: grid;
    gap: 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(244, 248, 245, 0.92) 100%);
}

.hero-intro {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
}

.hero-welcome {
    display: grid;
    gap: 4px;
}

.eyebrow,
.activity-label {
    margin: 0;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-copy h1,
.activity-copy h2 {
    margin: 0;
}

.hero-copy h1 {
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1;
}

.hero-greeting {
    margin: 0;
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.05;
    font-weight: 700;
}

.hero-clock {
    margin: 0;
    color: var(--muted);
    font-size: clamp(18px, 1.9vw, 24px);
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.lead {
    max-width: 28rem;
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.4;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    min-height: min(58vh, 560px);
}

.action-grid.is-hidden {
    display: none;
}

.action-card {
    min-height: min(58vh, 560px);
    padding: 34px 30px;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    gap: 26px;
    text-align: left;
    cursor: pointer;
    transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.action-card:hover,
.action-card:focus-visible,
.action-card.active {
    transform: translateY(-2px);
    box-shadow: 0 30px 72px rgba(20, 35, 28, 0.18);
    outline: none;
}

.action-card-primary {
    background: linear-gradient(135deg, rgba(28, 108, 81, 0.98), rgba(18, 76, 57, 0.98));
    color: #fff;
}

.action-card-primary .action-copy span {
    color: rgba(255, 255, 255, 0.82);
}

.action-card-secondary {
    background: linear-gradient(135deg, rgba(140, 87, 35, 0.98), rgba(99, 56, 13, 0.98));
    color: #fff;
}

.action-card-secondary .action-copy span {
    color: rgba(255, 255, 255, 0.82);
}

.action-icon {
    width: 112px;
    height: 112px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: currentColor;
    background: rgba(255, 255, 255, 0.12);
}

.action-copy {
    display: grid;
    gap: 10px;
}

.action-copy strong {
    font-size: clamp(38px, 3.8vw, 52px);
    line-height: 1;
}

.action-copy span:last-child {
    font-size: 22px;
    line-height: 1.4;
}

.activity-panel {
    min-height: 320px;
    padding: 28px 30px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
}

.activity-panel.is-hidden {
    display: none;
}

.activity-panel.is-interactive {
    cursor: pointer;
}

.activity-panel.scanning {
    background: linear-gradient(135deg, rgba(28, 108, 81, 0.12), rgba(18, 76, 57, 0.08));
}

.activity-panel.success {
    background: linear-gradient(135deg, rgba(22, 128, 58, 0.14), rgba(255, 255, 255, 0.82));
}

.activity-panel.error {
    background: linear-gradient(135deg, rgba(175, 65, 50, 0.14), rgba(255, 255, 255, 0.82));
}

.activity-panel.busy {
    background: linear-gradient(135deg, rgba(140, 87, 35, 0.14), rgba(255, 255, 255, 0.82));
}

.activity-icon {
    width: 104px;
    height: 104px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: rgba(28, 108, 81, 0.12);
    color: var(--primary);
}

.activity-panel.error .activity-icon {
    background: rgba(175, 65, 50, 0.14);
    color: var(--danger);
}

.activity-panel.busy .activity-icon {
    background: rgba(140, 87, 35, 0.14);
    color: var(--employee);
}

.activity-panel.success .activity-icon {
    background: rgba(22, 128, 58, 0.14);
    color: var(--success);
}

.activity-copy h2 {
    margin-top: 6px;
    font-size: clamp(34px, 3vw, 46px);
    line-height: 1.04;
}

.activity-copy p:last-child {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 22px;
    line-height: 1.45;
}

.activity-meta {
    min-width: 160px;
    color: var(--muted);
    font-size: 22px;
    font-weight: 700;
    text-align: right;
}

.scanner-input {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.app-footer {
    min-height: 28px;
    padding: 2px 4px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: rgba(99, 117, 108, 0.82);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: none;
    border: 0;
    border-radius: 0;
}

.app-footer-mark {
    width: 14px;
    height: 7px;
    color: #ff9500;
    flex: 0 0 auto;
    opacity: 0.9;
}

@media (max-width: 1080px) {
    .action-grid,
    .activity-panel {
        grid-template-columns: 1fr;
    }

    .hero-intro {
        display: grid;
    }

    .hero-clock,
    .activity-meta {
        text-align: left;
        white-space: normal;
    }
}

@media (max-width: 720px) {
    .app-main {
        width: min(100vw - 20px, 1720px);
        padding-top: 18px;
    }

    .hero-panel,
    .action-card,
    .activity-panel {
        padding-left: 16px;
        padding-right: 16px;
    }

    .action-card {
        grid-template-columns: 1fr;
        min-height: 220px;
    }

    .action-icon,
    .activity-icon {
        width: 72px;
        height: 72px;
    }

    .action-copy strong {
        font-size: 30px;
    }

    .action-copy span:last-child,
    .activity-copy p:last-child,
    .activity-meta {
        font-size: 18px;
    }
}
