:root {
    --bg: #f3ede1;
    --surface: rgba(255, 252, 246, 0.88);
    --ink: #17211f;
    --muted: #60716b;
    --line: rgba(23, 33, 31, 0.1);
    --accent: #0e7c66;
    --accent-soft: rgba(14, 124, 102, 0.12);
    --accent-warm: #c56a2d;
    --ship-blue: #1a6eae;
    --ship-blue-soft: rgba(26, 110, 174, 0.14);
    --history-earth: #7b5c3d;
    --history-earth-soft: rgba(123, 92, 61, 0.14);
    --rpt-rose: #9d4c65;
    --rpt-rose-soft: rgba(157, 76, 101, 0.14);
    --cancel-gray: #6b7280;
    --cancel-gray-soft: rgba(107, 114, 128, 0.14);
    --danger: #b63b39;
    --danger-soft: rgba(182, 59, 57, 0.12);
    --shadow: 0 24px 60px rgba(58, 46, 34, 0.12);
    --radius-xl: 28px;
    --radius-lg: 20px;
}

/* Dashboard refresh */
.admin-layout {
    gap: 18px;
}

.admin-hero-card,
.admin-users-card,
.admin-create-card {
    padding: 20px;
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(249, 245, 238, 0.9)),
        radial-gradient(circle at top right, rgba(14, 124, 102, 0.06), transparent 28%);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 36px rgba(58, 46, 34, 0.06);
}

.admin-hero-head,
.admin-users-head,
.admin-form-head {
    align-items: flex-start;
    margin-bottom: 14px;
}

.admin-hero-card .section-head h2,
.admin-users-head h2,
.admin-form-head h2 {
    font-size: 1.42rem;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.admin-hero-card .ghost-btn {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(23, 33, 31, 0.06);
    background: rgba(255, 255, 255, 0.74);
}

.admin-overview-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    gap: 14px;
}

.admin-overview-main {
    display: grid;
    gap: 14px;
    align-content: start;
}

.admin-metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.admin-metric-modern {
    padding: 16px 16px 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(23, 33, 31, 0.06);
    box-shadow: none;
}

.admin-metric-modern.success {
    background: linear-gradient(180deg, rgba(241, 252, 248, 0.98), rgba(231, 245, 239, 0.9));
    border-color: rgba(14, 124, 102, 0.12);
}

.admin-metric-modern-top {
    display: grid;
    gap: 2px;
}

.admin-metric-modern-top span {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(23, 33, 31, 0.54);
}

.admin-metric-modern-top small {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.35;
}

.admin-metric-modern strong {
    margin-top: 12px;
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -0.04em;
}

.admin-chart-grid {
    gap: 10px;
}

.admin-chart-card {
    padding: 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(23, 33, 31, 0.06);
    box-shadow: none;
}

.admin-chart-card .eyebrow {
    margin-bottom: 8px;
}

.admin-chart-head h3 {
    font-size: 0.98rem;
}

.admin-chart-head p {
    color: var(--muted);
}

.admin-chart-head strong {
    font-size: 1.48rem;
    letter-spacing: -0.04em;
}

.admin-bar-list {
    gap: 10px;
}

.admin-bar-item {
    gap: 6px;
}

.admin-bar-meta {
    font-size: 0.84rem;
}

.admin-bar-meta strong {
    font-size: 0.88rem;
}

.admin-bar-track {
    height: 8px;
    background: rgba(23, 33, 31, 0.07);
}

.admin-bar-item small {
    font-size: 0.72rem;
}

.admin-meta-note {
    margin-top: 12px;
    font-size: 0.8rem;
}

.admin-content-grid {
    grid-template-columns: 1fr;
    gap: 14px;
}

.admin-create-inline {
    padding: 18px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(23, 33, 31, 0.06);
    box-shadow: none;
}

.admin-users-list {
    gap: 10px;
}

.modern-user-card {
    padding: 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(23, 33, 31, 0.06);
    box-shadow: none;
}

.modern-user-head,
.modern-user-subrow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.modern-user-head {
    align-items: start;
}

.admin-user-identity-shell {
    gap: 12px;
}

.admin-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: rgba(14, 124, 102, 0.08);
    font-size: 0.82rem;
}

.admin-user-identity h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.15;
}

.admin-user-handle {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.admin-user-badges {
    gap: 8px;
    justify-content: flex-end;
}

.admin-user-badges .inline-pill,
.admin-list-count,
.admin-meta-pill {
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(23, 33, 31, 0.05);
    border: 1px solid rgba(23, 33, 31, 0.06);
    font-size: 0.74rem;
}

.admin-user-meta {
    gap: 8px;
    font-size: 0.78rem;
}

.admin-user-actions {
    gap: 6px;
    justify-content: flex-end;
}

.admin-user-scan-card {
    display: grid;
    gap: 8px;
    padding: 12px 13px;
    border-radius: 16px;
    background: rgba(23, 33, 31, 0.03);
    border: 1px solid rgba(23, 33, 31, 0.05);
}

.admin-user-scan-card.is-empty {
    gap: 6px;
}

.admin-user-scan-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-user-scan-head strong {
    font-size: 0.82rem;
    letter-spacing: -0.01em;
}

.admin-user-scan-head span,
.admin-user-scan-empty {
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.35;
}

.admin-user-scan-empty {
    margin: 0;
}

.admin-user-scan-track {
    display: flex;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(23, 33, 31, 0.08);
}

.admin-user-scan-fill {
    min-width: 0;
    height: 100%;
}

.admin-user-scan-fill.is-correct {
    background: linear-gradient(90deg, #0e7c66, #43b78f);
}

.admin-user-scan-fill.is-incorrect {
    background: linear-gradient(90deg, #cf5450, #e1837d);
}

.admin-user-scan-legend {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-user-scan-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.admin-user-scan-pill.is-correct {
    background: rgba(14, 124, 102, 0.08);
    border-color: rgba(14, 124, 102, 0.12);
    color: var(--accent);
}

.admin-user-scan-pill.is-incorrect {
    background: rgba(182, 59, 57, 0.08);
    border-color: rgba(182, 59, 57, 0.12);
    color: var(--danger);
}

.admin-user-order-card {
    display: grid;
    gap: 10px;
    padding: 12px 13px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.46);
    border: 1px solid rgba(23, 33, 31, 0.05);
}

.admin-user-order-card.is-empty {
    gap: 6px;
}

.admin-user-order-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-user-order-head strong {
    font-size: 0.82rem;
    letter-spacing: -0.01em;
}

.admin-user-order-head span,
.admin-user-order-empty {
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.35;
}

.admin-user-order-empty {
    margin: 0;
}

.admin-user-order-bars {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    align-items: end;
    min-height: 88px;
}

.admin-user-order-bar-wrap {
    display: grid;
    gap: 5px;
    justify-items: center;
    align-content: end;
}

.admin-user-order-bar-value {
    font-size: 0.68rem;
    color: rgba(23, 33, 31, 0.62);
}

.admin-user-order-bar {
    display: block;
    width: 100%;
    min-height: 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(14, 124, 102, 0.34), rgba(14, 124, 102, 0.92));
}

.admin-user-order-bar-wrap small {
    font-size: 0.62rem;
    color: rgba(23, 33, 31, 0.46);
    letter-spacing: 0.03em;
}

.team-users-card {
    display: grid;
    grid-column: 1 / -1;
    gap: 16px;
    padding: 18px;
    width: 100%;
    min-width: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(248, 246, 241, 0.9));
    border: 1px solid rgba(23, 33, 31, 0.06);
    box-shadow: 0 18px 42px rgba(23, 33, 31, 0.04);
}

.team-users-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.team-users-head .eyebrow {
    margin: 0 0 6px;
}

.team-list-count {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(23, 33, 31, 0.04);
    border: 1px solid rgba(23, 33, 31, 0.06);
    font-size: 0.74rem;
    font-weight: 700;
    color: rgba(23, 33, 31, 0.66);
}

.team-users-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(320px, 360px);
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 6px 8px 2px;
    align-items: stretch;
    justify-content: start;
    scrollbar-gutter: stable;
    scroll-snap-type: x proximity;
}

.team-user-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    min-width: 0;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(23, 33, 31, 0.06);
    box-shadow: 0 10px 28px rgba(23, 33, 31, 0.04);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
    height: 100%;
    scroll-snap-align: start;
}

.team-user-card:hover {
    transform: translateY(-1px);
    border-color: rgba(23, 33, 31, 0.09);
    box-shadow: 0 16px 32px rgba(23, 33, 31, 0.06);
}

.team-user-card.is-passive {
    background: rgba(252, 251, 249, 0.84);
}

.team-users-list > .empty-state {
    min-width: 100%;
}

.team-user-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
}

.team-user-identity {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.team-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(14, 124, 102, 0.12), rgba(14, 124, 102, 0.04));
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.team-user-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.team-user-name-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.team-user-name-row h3 {
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.team-user-copy p {
    margin: 0;
    color: rgba(23, 33, 31, 0.54);
    font-size: 0.78rem;
}

.team-user-copy > p:not(.team-user-subline) {
    display: none;
}

.team-user-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.team-user-tag {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(23, 33, 31, 0.05);
    border: 1px solid rgba(23, 33, 31, 0.06);
    color: rgba(23, 33, 31, 0.64);
    font-size: 0.66rem;
    font-weight: 700;
}

.team-user-tag.is-active {
    background: rgba(14, 124, 102, 0.08);
    border-color: rgba(14, 124, 102, 0.12);
    color: var(--accent);
}

.team-user-tag.is-passive {
    background: rgba(182, 59, 57, 0.08);
    border-color: rgba(182, 59, 57, 0.12);
    color: var(--danger);
}

.team-user-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.team-user-actions .team-action-btn {
    min-height: 30px;
    padding: 0 10px;
    border-radius: 10px;
    background: rgba(248, 247, 244, 0.96);
    border: 1px solid rgba(23, 33, 31, 0.06);
    box-shadow: none;
    font-size: 0.72rem;
}

.team-status-btn {
    background: rgba(14, 124, 102, 0.08);
    color: var(--accent);
}

.team-delete-btn {
    background: rgba(182, 59, 57, 0.08);
    color: var(--danger);
}

.team-user-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.team-user-stat {
    display: grid;
    gap: 4px;
    padding: 10px 11px;
    border-radius: 14px;
    background: rgba(23, 33, 31, 0.03);
    border: 1px solid rgba(23, 33, 31, 0.05);
}

.team-user-stat.is-primary {
    background: linear-gradient(180deg, rgba(14, 124, 102, 0.08), rgba(14, 124, 102, 0.03));
    border-color: rgba(14, 124, 102, 0.08);
}

.team-user-stat span {
    color: rgba(23, 33, 31, 0.48);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.team-user-stat strong {
    font-size: 1.08rem;
    line-height: 1;
    letter-spacing: -0.03em;
}

.team-user-stat small {
    color: rgba(23, 33, 31, 0.56);
    font-size: 0.7rem;
    line-height: 1.35;
}

.team-user-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.team-mini-panel {
    display: grid;
    gap: 8px;
    padding: 11px;
    border-radius: 16px;
    background: rgba(247, 246, 243, 0.9);
    border: 1px solid rgba(23, 33, 31, 0.05);
}

.team-mini-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.team-mini-panel-label {
    margin: 0 0 4px;
    color: rgba(23, 33, 31, 0.44);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.team-mini-panel-head strong {
    font-size: 0.84rem;
    letter-spacing: -0.01em;
}

.team-mini-panel-head span,
.team-mini-panel-empty {
    color: rgba(23, 33, 31, 0.54);
    font-size: 0.71rem;
    line-height: 1.35;
}

.team-mini-panel-empty {
    margin: 0;
}

.team-order-bars {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    align-items: end;
    min-height: 72px;
}

.team-order-bar-wrap {
    display: grid;
    gap: 5px;
    justify-items: center;
    align-content: end;
}

.team-order-bar-value {
    font-size: 0.62rem;
    color: rgba(23, 33, 31, 0.56);
}

.team-order-bar {
    display: block;
    width: 100%;
    min-height: 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(14, 124, 102, 0.28), rgba(14, 124, 102, 0.92));
}

.team-order-bar-wrap small {
    font-size: 0.56rem;
    color: rgba(23, 33, 31, 0.44);
}

.team-scan-track {
    display: flex;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(23, 33, 31, 0.08);
}

.team-scan-fill {
    min-width: 0;
    height: 100%;
}

.team-scan-fill.is-correct {
    background: linear-gradient(90deg, #0e7c66, #43b78f);
}

.team-scan-fill.is-incorrect {
    background: linear-gradient(90deg, #cf5450, #e1837d);
}

.team-scan-legend {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.team-scan-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 700;
}

.team-scan-pill.is-correct {
    background: rgba(14, 124, 102, 0.08);
    color: var(--accent);
}

.team-scan-pill.is-incorrect {
    background: rgba(182, 59, 57, 0.08);
    color: var(--danger);
}

.team-user-footer {
    display: grid;
    gap: 8px;
    padding-top: 2px;
}

.team-user-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.team-meta-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(23, 33, 31, 0.04);
    border: 1px solid rgba(23, 33, 31, 0.05);
    color: rgba(23, 33, 31, 0.58);
    font-size: 0.66rem;
}

.team-user-note {
    margin: 0;
    padding: 9px 10px;
    border-radius: 12px;
    background: rgba(23, 33, 31, 0.03);
    border: 1px solid rgba(23, 33, 31, 0.05);
    color: rgba(23, 33, 31, 0.8);
    font-size: 0.78rem;
    line-height: 1.45;
}

@media (max-width: 900px) {
    .team-user-top,
    .team-user-panels {
        grid-template-columns: 1fr;
    }

    .team-users-list {
        grid-auto-columns: minmax(300px, 340px);
    }

    .team-user-actions {
        justify-content: flex-start;
    }

    .team-user-stat-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 540px) {
    .team-users-card {
        padding: 16px;
        border-radius: 24px;
    }

    .team-users-list {
        grid-auto-columns: minmax(280px, 92vw);
        overflow-x: auto;
        overflow-y: hidden;
        padding: 2px 2px 8px;
    }

    .team-users-head {
        align-items: stretch;
    }

    .team-user-card {
        padding: 14px;
        border-radius: 20px;
        gap: 12px;
    }

    .team-user-avatar {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        font-size: 0.78rem;
    }

    .team-user-name-row h3 {
        font-size: 0.94rem;
    }

    .team-user-copy p,
    .team-user-stat small,
    .team-mini-panel-head span,
    .team-mini-panel-empty,
    .team-user-note,
    .team-meta-pill {
        font-size: 0.74rem;
    }

    .team-user-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
    }

    .team-user-actions .team-action-btn {
        width: 100%;
        min-height: 32px;
        padding: 0 8px;
        font-size: 0.72rem;
    }

    .team-order-bars {
        gap: 4px;
        min-height: 72px;
    }
}

.admin-action-btn {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(23, 33, 31, 0.06);
    font-size: 0.78rem;
    box-shadow: none;
}

.admin-status-btn {
    background: rgba(14, 124, 102, 0.08);
}

.admin-delete-btn {
    background: rgba(182, 59, 57, 0.08);
}

.modern-user-note {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.45;
}

.admin-user-form {
    gap: 12px;
}

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

.admin-field {
    gap: 7px;
}

.admin-field span,
.admin-check span {
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(23, 33, 31, 0.56);
}

.admin-field input,
.admin-field select,
.admin-field textarea {
    border-radius: 14px;
    min-height: 46px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(23, 33, 31, 0.08);
    box-shadow: none;
}

.admin-field textarea {
    min-height: 98px;
}

.admin-form-footer {
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.admin-form-actions {
    gap: 8px;
}

.admin-form-actions .primary-btn,
.admin-form-actions .secondary-btn {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 14px;
}

@media (max-width: 1100px) {
    .admin-overview-grid,
    .admin-content-grid {
        grid-template-columns: 1fr;
    }

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

    .admin-create-card {
        position: static;
        top: auto;
    }

    .modern-user-head,
    .modern-user-subrow {
        grid-template-columns: 1fr;
    }

    .admin-user-badges,
    .admin-user-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .admin-layout {
        gap: 12px;
    }

    .admin-hero-card,
    .admin-users-card,
    .admin-create-card {
        padding: 14px;
        border-radius: 22px;
    }

    .admin-hero-card .section-head h2,
    .admin-users-head h2,
    .admin-form-head h2 {
        font-size: 1.14rem;
    }

    .admin-metric-grid,
    .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .admin-metric-modern {
        padding: 14px;
        border-radius: 18px;
    }

    .admin-metric-modern strong {
        font-size: 1.55rem;
        margin-top: 10px;
    }

    .admin-chart-card {
        padding: 14px;
        border-radius: 18px;
    }

    .admin-chart-head strong {
        font-size: 1.24rem;
    }

    .admin-form-footer {
        flex-direction: column;
        align-items: stretch;
    }

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

    .admin-form-actions .primary-btn,
    .admin-form-actions .secondary-btn {
        width: 100%;
    }

    .modern-user-card {
        padding: 14px;
        border-radius: 18px;
    }
}

@media (max-width: 480px) {
    .admin-hero-card,
    .admin-users-card,
    .admin-create-card {
        padding: 12px;
        border-radius: 18px;
    }

    .admin-hero-card .section-head h2,
    .admin-users-head h2,
    .admin-form-head h2 {
        font-size: 1.02rem;
    }

    .admin-metric-modern {
        padding: 12px;
        border-radius: 16px;
    }

    .admin-metric-modern-top span {
        font-size: 0.64rem;
    }

    .admin-metric-modern-top small {
        font-size: 0.72rem;
    }

    .admin-metric-modern strong {
        font-size: 1.28rem;
    }

    .admin-chart-card {
        padding: 12px;
        border-radius: 16px;
    }

    .modern-user-card {
        padding: 12px;
        border-radius: 16px;
    }

    .admin-user-identity-shell {
        gap: 10px;
    }

    .admin-user-avatar {
        width: 36px;
        height: 36px;
        border-radius: 12px;
        font-size: 0.74rem;
    }

    .admin-user-identity h3 {
        font-size: 0.92rem;
    }

    .admin-user-handle {
        font-size: 0.76rem;
    }

    .admin-user-badges .inline-pill,
    .admin-list-count,
    .admin-meta-pill {
        min-height: 28px;
        padding: 0 8px;
        font-size: 0.66rem;
    }

    .admin-user-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
    }

    .admin-action-btn {
        width: 100%;
        min-height: 32px;
        padding: 0 8px;
        font-size: 0.7rem;
        border-radius: 10px;
    }

    .modern-user-note {
        font-size: 0.76rem;
    }
}

* {
    box-sizing: border-box;
}

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

body {
    font-family: Bahnschrift, "Trebuchet MS", "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(197, 106, 45, 0.12), transparent 24%),
        radial-gradient(circle at right center, rgba(14, 124, 102, 0.1), transparent 22%),
        linear-gradient(180deg, #f8f3ea 0%, var(--bg) 100%);
}

body.lightbox-open {
    overflow: hidden;
}

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

.page-shell {
    position: relative;
    padding: 16px;
    min-height: 100vh;
    overflow: hidden;
}

.minimal-shell {
    max-width: 1880px;
    margin: 0 auto;
}

.auth-shell {
    min-height: calc(100vh - 130px);
    display: grid;
    place-items: center;
    padding: 6px 0 24px;
}

.auth-card {
    width: min(100%, 460px);
    padding: 28px;
    animation: slide-up 620ms ease;
}

.auth-copy {
    margin: 0 0 22px;
    color: var(--muted);
    line-height: 1.6;
}

.auth-session-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(14, 124, 102, 0.08);
    border: 1px solid rgba(14, 124, 102, 0.14);
    margin-bottom: 16px;
}

.auth-session-box strong {
    display: block;
    margin-bottom: 4px;
}

.auth-session-box p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.auth-form {
    display: grid;
    gap: 14px;
}

.auth-field {
    display: grid;
    gap: 8px;
}

.auth-field label {
    color: var(--muted);
    font-size: 0.9rem;
}

.auth-field input {
    width: 100%;
    min-height: 54px;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.92);
    outline: none;
}

.auth-field input:focus {
    border-color: rgba(14, 124, 102, 0.4);
    box-shadow: 0 0 0 4px rgba(14, 124, 102, 0.12);
}

.auth-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 6px;
}

.auth-submit {
    min-width: 180px;
}

.scanner-hero {
    display: grid;
    gap: 16px;
    padding: 22px;
    margin-bottom: 18px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 249, 241, 0.92)),
        radial-gradient(circle at top right, rgba(14, 124, 102, 0.08), transparent 26%);
}

.scanner-hero-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
}

.scanner-hero-copy h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(2rem, 3vw, 3.4rem);
    line-height: 0.94;
    letter-spacing: -0.05em;
}

.scanner-hero-copy-text {
    margin: 10px 0 0;
    max-width: 720px;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.55;
}

.scanner-hero-side {
    display: grid;
    gap: 10px;
    justify-items: stretch;
    min-width: 340px;
    width: min(100%, 360px);
}

.scanner-hero-pills,
.scanner-hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

.scanner-hero-actions {
    padding: 8px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(23, 33, 31, 0.08);
}

.session-pill {
    display: grid;
    gap: 2px;
    padding: 11px 15px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(23, 33, 31, 0.08);
    min-width: 0;
    min-height: 58px;
    align-content: center;
}

.session-pill strong {
    font-size: 0.9rem;
}

.session-pill span {
    color: var(--muted);
    font-size: 0.8rem;
}

.scanner-form {
    display: grid;
    gap: 10px;
}

.scanner-form-hero {
    padding: 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(23, 33, 31, 0.08);
}

.scanner-form-hero .field-label {
    margin-bottom: 4px;
}

.scanner-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

.scanner-row input {
    width: 100%;
    min-height: 60px;
    border: 1px solid rgba(14, 124, 102, 0.18);
    border-radius: 18px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.92);
    font-size: 1.06rem;
    font-weight: 600;
    outline: none;
}

.scanner-row input:focus {
    border-color: rgba(14, 124, 102, 0.4);
    box-shadow: 0 0 0 4px rgba(14, 124, 102, 0.12);
}

.scanner-row button {
    min-width: 146px;
    min-height: 60px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(180deg, #14856d 0%, #0e7c66 100%);
    color: white;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 14px 26px rgba(14, 124, 102, 0.18);
}

.scanner-note {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.scanner-search-camera-btn,
.scanner-search-camera-panel,
.scanner-search-camera-message {
    display: none;
}

.scanner-note-hero {
    margin: 0;
    padding: 0 4px;
}

@media (max-width: 720px) {
    .scanner-search-camera-btn:not([hidden]) {
        display: block;
        width: 100%;
        margin-top: 10px;
    }

    .scanner-search-camera-panel:not([hidden]) {
        display: block;
        margin-top: 10px;
    }

    .scanner-search-camera-message:not([hidden]) {
        display: block;
        margin-top: 10px;
    }
}

.view-switch {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 10px;
    padding: 8px;
    margin-bottom: 18px;
    width: 100%;
}

.main-switch {
    margin-bottom: 22px;
}

.view-tab {
    min-width: 0;
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}

.view-tab.is-active {
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
    box-shadow: 0 10px 20px rgba(23, 33, 31, 0.08);
}

.view-tab:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.view-page[hidden] {
    display: none !important;
}

.scanner-hero[hidden] {
    display: none !important;
}

.supply-page {
    animation: slide-up 620ms ease;
}

.supply-layout {
    display: grid;
}

.supply-hero-card {
    display: grid;
    gap: 18px;
    padding: 24px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(251, 247, 240, 0.94)),
        radial-gradient(circle at top right, rgba(14, 124, 102, 0.08), transparent 28%);
}

.supply-head {
    align-items: flex-start;
    margin-bottom: 0;
}

.supply-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(14, 124, 102, 0.08);
    border: 1px solid rgba(14, 124, 102, 0.12);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
}

.supply-copy {
    margin: 0;
    max-width: 900px;
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.6;
}

.supply-search-shell {
    display: grid;
    gap: 14px;
    width: min(100%, 760px);
    margin: 0 auto;
    text-align: center;
}

.supply-search-form {
    display: grid;
    gap: 10px;
}

.supply-search-form .field-label {
    justify-self: center;
}

.supply-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.supply-search-row input {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border-radius: 18px;
    border: 1px solid rgba(23, 33, 31, 0.1);
    background: rgba(255, 255, 255, 0.92);
    outline: none;
}

.supply-search-row input:focus {
    border-color: rgba(14, 124, 102, 0.4);
    box-shadow: 0 0 0 4px rgba(14, 124, 102, 0.12);
}

.supply-search-row .primary-btn {
    min-width: 120px;
    min-height: 54px;
    border-radius: 18px;
}

.supply-list-section {
    display: grid;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(23, 33, 31, 0.08);
}

.supply-list-head,
.supply-results-head {
    margin-bottom: 0;
}

.supply-list-count {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(23, 33, 31, 0.05);
    color: rgba(23, 33, 31, 0.68);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.supply-saved-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

.supply-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 14px;
    align-items: start;
}

.supply-product-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(23, 33, 31, 0.06);
    box-shadow: none;
}

.supply-product-card.is-saved {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(14, 124, 102, 0.14);
}

.supply-product-media {
    width: 100%;
    aspect-ratio: 4 / 5;
    border: 0;
    padding: 0;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(23, 33, 31, 0.05);
    cursor: pointer;
}

.supply-product-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.supply-product-media.is-placeholder {
    display: grid;
    place-items: center;
    color: rgba(23, 33, 31, 0.5);
    font-size: 0.78rem;
    cursor: default;
}

.supply-product-copy {
    min-width: 0;
    display: grid;
    gap: 10px;
}

.supply-product-meta {
    display: grid;
    gap: 4px;
}

.supply-product-eyebrow {
    margin: 0;
    color: rgba(23, 33, 31, 0.48);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.supply-product-copy h3 {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.supply-product-code {
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
}

.supply-saved-meta {
    margin: 0;
    color: rgba(23, 33, 31, 0.52);
    font-size: 0.76rem;
    line-height: 1.45;
}

.supply-product-chip-group {
    display: grid;
    gap: 6px;
}

.supply-product-chip-label {
    color: rgba(23, 33, 31, 0.5);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.supply-chip-list {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.supply-chip,
.supply-color-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(23, 33, 31, 0.07);
    background: rgba(255, 255, 255, 0.9);
    color: rgba(23, 33, 31, 0.72);
    font-size: 0.74rem;
    font-weight: 600;
}

.supply-color-chip {
    cursor: pointer;
}

.supply-color-chip:disabled,
.supply-chip.is-muted {
    color: rgba(23, 33, 31, 0.48);
    background: rgba(23, 33, 31, 0.04);
    cursor: default;
}

.supply-card-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-top: 4px;
    border-top: 1px solid rgba(23, 33, 31, 0.06);
}

.supply-card-status {
    color: rgba(23, 33, 31, 0.48);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.supply-action-btn {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 14px;
    font-size: 0.8rem;
}

.supply-action-btn.is-saved {
    color: rgba(23, 33, 31, 0.46);
    background: rgba(23, 33, 31, 0.05);
    border-color: rgba(23, 33, 31, 0.08);
}

.supply-action-btn.is-danger {
    color: #9d2b22;
    border-color: rgba(157, 43, 34, 0.16);
    background: rgba(157, 43, 34, 0.06);
}

.supply-note-form {
    display: grid;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(23, 33, 31, 0.03);
    border: 1px solid rgba(23, 33, 31, 0.06);
}

.supply-note-input {
    width: 100%;
    min-height: 64px;
    resize: vertical;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(23, 33, 31, 0.1);
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
    font: inherit;
    outline: none;
}

.supply-note-input:focus {
    border-color: rgba(14, 124, 102, 0.34);
    box-shadow: 0 0 0 4px rgba(14, 124, 102, 0.1);
}

.supply-note-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.supply-note-hint {
    color: rgba(23, 33, 31, 0.48);
    font-size: 0.72rem;
    line-height: 1.4;
}

.supply-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.supply-panel {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(23, 33, 31, 0.06);
    box-shadow: none;
}

.supply-panel span {
    color: rgba(23, 33, 31, 0.5);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.supply-panel strong {
    font-size: 1.18rem;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.supply-panel p {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

@media (max-width: 720px) {
    .supply-hero-card {
        padding: 18px;
    }

    .supply-saved-list,
    .supply-results {
        grid-template-columns: 1fr;
    }

    .supply-search-row,
    .supply-product-card {
        grid-template-columns: 1fr;
    }

    .supply-search-row .primary-btn,
    .supply-product-media {
        width: 100%;
    }

    .supply-product-media {
        aspect-ratio: 16 / 11;
    }
}

.bg-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(10px);
    opacity: 0.45;
    pointer-events: none;
}

.orb-one {
    top: -110px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(14, 124, 102, 0.26), rgba(14, 124, 102, 0));
}

.orb-two {
    bottom: -120px;
    left: -60px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(197, 106, 45, 0.24), rgba(197, 106, 45, 0));
}

.hero,
.layout {
    position: relative;
    z-index: 1;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
    margin-bottom: 28px;
    animation: slide-up 500ms ease;
}

.hero h1 {
    margin: 0;
    max-width: 820px;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 0.96;
    letter-spacing: -0.04em;
}

.eyebrow {
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.72rem;
    color: var(--muted);
}

.hero-copy {
    margin: 14px 0 0;
    max-width: 760px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.6;
}

.hero-status {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 11px 15px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(23, 33, 31, 0.08);
    border-radius: 20px;
    box-shadow: none;
    backdrop-filter: blur(10px);
    min-width: 0;
    min-height: 58px;
    white-space: normal;
    line-height: 1.35;
    font-size: 0.9rem;
}

.scanner-hero-actions .ghost-btn {
    width: 100%;
    min-height: 52px;
    padding: 0 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(23, 33, 31, 0.06);
}

.scanner-hero-actions .session-pill {
    min-height: 52px;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(23, 33, 31, 0.06);
}

.hero-status-action {
    min-height: 52px;
    padding: 0 12px;
    border-radius: 16px;
    font-size: 0.82rem;
    line-height: 1.25;
    justify-content: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(23, 33, 31, 0.06);
}

.hero-status-action .dot {
    width: 8px;
    height: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-warm);
}

.hero-status.is-ready .dot {
    background: var(--accent);
}

.hero-status.is-error .dot {
    background: var(--danger);
}

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

.minimal-layout {
    display: grid;
    grid-template-columns: 620px minmax(0, 1.2fr);
    gap: 28px;
    align-items: start;
}

.card {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.admin-page {
    animation: slide-up 760ms ease;
}

.admin-layout {
    display: grid;
    gap: 16px;
}

.admin-hero-card,
.admin-create-card,
.admin-users-card {
    padding: 22px;
}

.admin-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.85fr);
    gap: 16px;
    align-items: start;
}

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

.admin-chart-grid {
    display: grid;
    gap: 12px;
}

.admin-metric-card,
.admin-chart-card {
    min-width: 0;
    border-radius: 22px;
    padding: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(246, 242, 235, 0.88));
    border: 1px solid rgba(23, 33, 31, 0.08);
    box-shadow: 0 16px 32px rgba(58, 46, 34, 0.05);
}

.admin-metric-card.success {
    background: linear-gradient(180deg, rgba(241, 252, 248, 0.96), rgba(232, 246, 240, 0.92));
    border-color: rgba(14, 124, 102, 0.14);
}

.admin-metric-card span,
.admin-metric-card p,
.admin-chart-head p,
.admin-user-meta,
.admin-user-note {
    color: var(--muted);
}

.admin-metric-card {
    display: grid;
    gap: 8px;
    align-content: start;
}

.admin-metric-card strong {
    display: block;
    margin: 0;
    font-size: 1.9rem;
    line-height: 1;
}

.admin-metric-card p {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.3;
}

.admin-metric-card span {
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-chart-card {
    display: grid;
    gap: 14px;
}

.admin-chart-card .eyebrow {
    margin: 0;
}

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

.admin-chart-head h3 {
    margin: 0 0 4px;
    font-size: 1rem;
}

.admin-chart-head p {
    margin: 0;
    font-size: 0.84rem;
}

.admin-chart-head strong {
    font-size: 1.6rem;
    line-height: 1;
}

.admin-bar-list {
    display: grid;
    gap: 12px;
}

.admin-bar-item {
    display: grid;
    gap: 8px;
}

.admin-bar-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    font-size: 0.9rem;
}

.admin-bar-meta strong {
    font-size: 0.96rem;
}

.admin-bar-item small {
    color: var(--muted);
    font-size: 0.78rem;
}

.admin-bar-track {
    position: relative;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(23, 33, 31, 0.08);
}

.admin-bar-fill {
    display: block;
    height: 100%;
    min-width: 0;
    border-radius: inherit;
    transition: width 220ms ease;
}

.admin-bar-fill.tone-success,
.admin-bar-fill.tone-warehouse {
    background: linear-gradient(90deg, #0e7c66, #43b78f);
}

.admin-bar-fill.tone-passive {
    background: linear-gradient(90deg, #8e948f, #b2b7b3);
}

.admin-bar-fill.tone-admin {
    background: linear-gradient(90deg, #1c3d39, #35645d);
}

.admin-bar-fill.tone-operator {
    background: linear-gradient(90deg, #c56a2d, #de945f);
}

.admin-bar-fill.tone-whatsapp {
    background: linear-gradient(90deg, #0b7a59, #26c281);
}

.admin-bar-fill.tone-katma {
    background: linear-gradient(90deg, #705bd7, #9584ec);
}

.admin-hero-card {
    padding: 20px;
}

.admin-hero-card .section-head {
    align-items: center;
    margin-bottom: 16px;
}

.admin-hero-card .section-head h2 {
    font-size: 1.34rem;
}

.admin-hero-card .ghost-btn {
    min-height: 42px;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.68);
}

.admin-meta-note {
    margin: 14px 0 0;
    font-size: 0.84rem;
}

.admin-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    gap: 16px;
    align-items: start;
}

.admin-user-form {
    display: grid;
    gap: 12px;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 220px 180px;
    gap: 10px;
    align-items: end;
}

.admin-field {
    display: grid;
    gap: 6px;
}

.admin-field span,
.admin-check span {
    font-size: 0.82rem;
    color: var(--muted);
    letter-spacing: 0.03em;
}

.admin-field input,
.admin-field select,
.admin-field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.82);
    outline: none;
}

.admin-field textarea {
    resize: vertical;
    min-height: 88px;
}

.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus {
    border-color: rgba(14, 124, 102, 0.4);
    box-shadow: 0 0 0 4px rgba(14, 124, 102, 0.12);
}

.admin-field-block {
    width: 100%;
}

.admin-create-card {
    padding: 18px;
    position: sticky;
    top: 18px;
}

.admin-create-card .section-head {
    margin-bottom: 12px;
    align-items: center;
}

.admin-create-card .section-head h2 {
    font-size: 1.18rem;
}

.admin-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 2px;
}

.admin-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-form-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-form-actions .primary-btn,
.admin-form-actions .secondary-btn {
    min-height: 42px;
    padding: 0 16px;
}

.admin-create-card #adminMessage {
    margin-top: 12px;
}

.admin-users-list {
    display: grid;
    gap: 12px;
}

.admin-user-card {
    border-radius: 22px;
    padding: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(247, 243, 237, 0.86));
    border: 1px solid rgba(23, 33, 31, 0.08);
    border-left: 4px solid transparent;
    box-shadow: 0 14px 26px rgba(58, 46, 34, 0.04);
}

.admin-user-card.is-active {
    border-left-color: var(--accent);
}

.admin-user-card.is-passive {
    border-left-color: var(--cancel-gray);
}

.admin-user-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
}

.admin-user-main {
    min-width: 0;
    display: grid;
    gap: 12px;
}

.admin-user-top,
.admin-user-meta,
.admin-user-actions,
.admin-user-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-user-top {
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.admin-user-identity {
    min-width: 0;
}

.admin-user-identity-shell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.admin-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(14, 124, 102, 0.1);
    color: var(--accent);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    flex: 0 0 auto;
}

.admin-user-top h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.2;
}

.admin-user-top p,
.admin-user-note {
    margin: 0;
}

.admin-user-top p {
    margin-top: 4px;
    color: var(--muted);
}

.admin-user-meta {
    font-size: 0.82rem;
    margin-bottom: 0;
    gap: 8px;
}

.admin-user-statebar {
    position: relative;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(23, 33, 31, 0.07);
}

.admin-user-statebar span {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.admin-user-statebar span.is-active {
    background: linear-gradient(90deg, #0e7c66, #43b78f);
}

.admin-user-statebar span.is-passive {
    background: linear-gradient(90deg, #9ea39f, #bfc3c0);
}

.admin-meta-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(23, 33, 31, 0.05);
    border: 1px solid rgba(23, 33, 31, 0.06);
}

.admin-user-note {
    line-height: 1.45;
    font-size: 0.9rem;
}

.admin-user-actions {
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-action-btn {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
}

.admin-status-btn {
    background: rgba(14, 124, 102, 0.08);
    color: var(--accent);
}

.admin-delete-btn {
    background: rgba(182, 59, 57, 0.08);
    color: var(--danger);
}

.admin-users-head,
.admin-form-head,
.admin-hero-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.admin-list-count {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(23, 33, 31, 0.06);
    color: var(--muted);
    font-size: 0.84rem;
}

.dev-panel {
    margin-top: 18px;
    padding: 18px;
    animation: slide-up 820ms ease;
}

.dev-panel.is-collapsed {
    padding-bottom: 12px;
}

.dev-panel.is-collapsed .dev-panel-body {
    display: none;
}

.dev-panel-body {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 16px;
}

.dev-column {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.dev-card {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(23, 33, 31, 0.08);
    background: rgba(255, 255, 255, 0.72);
    padding: 16px;
}

.dev-card h3 {
    margin: 0 0 12px;
    font-size: 1rem;
}

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

.dev-metric-card {
    border-radius: 16px;
    padding: 14px;
    background: rgba(23, 33, 31, 0.05);
    border: 1px solid transparent;
}

.dev-metric-card span,
.dev-log-meta,
.dev-log-item p,
.dev-empty {
    color: var(--muted);
}

.dev-metric-card strong {
    display: block;
    margin: 8px 0 6px;
    font-size: 1.15rem;
}

.dev-metric-card p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
}

.dev-metric-card.success {
    background: rgba(14, 124, 102, 0.08);
    border-color: rgba(14, 124, 102, 0.14);
}

.dev-metric-card.error {
    background: rgba(182, 59, 57, 0.08);
    border-color: rgba(182, 59, 57, 0.14);
}

.dev-log-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.dev-log-item {
    border-radius: 16px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.78);
    border-left: 4px solid rgba(23, 33, 31, 0.12);
}

.dev-log-item.ok {
    border-left-color: var(--accent);
}

.dev-log-item.error {
    border-left-color: var(--danger);
}

.dev-log-top,
.dev-log-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.dev-log-top {
    margin-bottom: 6px;
}

.dev-log-top strong {
    font-size: 0.9rem;
    word-break: break-word;
}

.dev-log-meta {
    margin-bottom: 8px;
    font-size: 0.82rem;
}

.dev-log-item p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
    word-break: break-word;
}

.dev-empty {
    padding: 16px;
    border-radius: 16px;
    background: rgba(23, 33, 31, 0.04);
}

.dev-empty p {
    margin: 0;
}

.dev-json {
    margin: 0;
    padding: 14px;
    border-radius: 16px;
    background: rgba(23, 33, 31, 0.05);
    overflow: auto;
    max-height: 340px;
    font: 0.84rem/1.55 Consolas, "Courier New", monospace;
    white-space: pre-wrap;
    word-break: break-word;
}

.queue-panel,
.detail-panel {
    animation: slide-up 700ms ease;
}

.queue-panel {
    padding: 26px;
    position: sticky;
    top: 24px;
}

.queue-strip {
    padding: 26px;
    position: sticky;
    top: 18px;
    background:
        linear-gradient(180deg, rgba(255, 253, 249, 0.9), rgba(255, 250, 244, 0.82)),
        radial-gradient(circle at top left, rgba(197, 106, 45, 0.08), transparent 26%);
}

.queue-strip .section-head {
    align-items: center;
    margin-bottom: 16px;
}

.queue-strip .ghost-btn {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(23, 33, 31, 0.06);
    background: rgba(255, 255, 255, 0.72);
}

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

.section-head h2,
.empty-state h2 {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.15;
}

.ghost-btn,
.search-row button,
.primary-btn,
.secondary-btn,
.manual-btn {
    border: 0;
    cursor: pointer;
    transition: transform 140ms ease, opacity 140ms ease, background 140ms ease;
}

.ghost-btn:hover,
.search-row button:hover,
.primary-btn:hover,
.secondary-btn:hover,
.manual-btn:hover {
    transform: translateY(-1px);
}

.ghost-btn {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--ink);
}

.search-form {
    margin-bottom: 14px;
}

.field-label {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 0.9rem;
}

.search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.search-row input,
.scan-row input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.85);
    outline: none;
}

.search-row input:focus,
.scan-row input:focus {
    border-color: rgba(14, 124, 102, 0.4);
    box-shadow: 0 0 0 4px rgba(14, 124, 102, 0.12);
}

.search-row button,
.primary-btn {
    padding: 0 16px;
    border-radius: 14px;
    background: var(--accent);
    color: white;
    min-height: 48px;
}

.secondary-btn {
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
}

.manual-btn {
    padding: 8px 10px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.86rem;
}

.queue-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 2px 2px 4px;
}

.queue-count-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(14, 124, 102, 0.08);
    color: var(--accent);
    border: 1px solid rgba(14, 124, 102, 0.12);
    font-size: 0.84rem;
    font-weight: 700;
}

.queue-active-title {
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 700;
}

.queue-workbench {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.category-tabs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    align-content: start;
    padding: 8px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.46);
    border: 1px solid rgba(23, 33, 31, 0.06);
}

.queue-list-panel {
    min-width: 0;
    display: grid;
    gap: 12px;
    padding: 8px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.36);
    border: 1px solid rgba(23, 33, 31, 0.06);
}

.category-chip {
    display: grid;
    gap: 4px;
    text-align: left;
    width: 100%;
    padding: 14px 15px;
    border: 1px solid rgba(23, 33, 31, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.74);
    color: inherit;
    box-shadow: none;
    transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.category-chip.is-active {
    border-color: rgba(23, 33, 31, 0.14);
    background: rgba(255, 255, 255, 0.96);
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(58, 46, 34, 0.08);
}

.category-chip strong {
    font-size: 0.96rem;
    line-height: 1.2;
}

.category-chip span {
    color: var(--muted);
    font-size: 0.8rem;
}

.queue-list {
    display: grid;
    gap: 12px;
    max-height: calc(100vh - 320px);
    overflow: auto;
    padding-right: 4px;
}

.queue-list-minimal {
    max-height: calc(100vh - 250px);
}

.order-card {
    width: 100%;
    text-align: left;
    padding: 16px 17px;
    border: 1px solid rgba(23, 33, 31, 0.06);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    color: inherit;
    border-left: 3px solid transparent;
    box-shadow: none;
    transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.order-card:hover,
.order-card.is-active {
    border-color: rgba(14, 124, 102, 0.18);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 28px rgba(58, 46, 34, 0.08);
    transform: translateY(-1px);
}

.order-card-top,
.order-card-meta,
.detail-top,
.detail-actions,
.summary-grid,
.scan-row,
.item-meta,
.item-footer,
.info-grid,
.mini-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.order-card-top {
    align-items: flex-start;
    margin-bottom: 12px;
}

.order-card-title {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.order-code {
    font-size: 1.06rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.status-badge,
.inline-pill,
.progress-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.78rem;
    font-weight: 700;
}

.status-badge.status-1,
.inline-pill.status-1 {
    background: rgba(197, 106, 45, 0.14);
    color: #8d4b1e;
}

.status-badge.status-2,
.inline-pill.status-2 {
    background: rgba(14, 124, 102, 0.14);
    color: #0b6a57;
}

.status-badge.status-3,
.inline-pill.status-3 {
    background: rgba(26, 110, 174, 0.14);
    color: #1a6eae;
}

.status-badge.category-new,
.inline-pill.category-new,
.category-chip.category-new {
    background: rgba(197, 106, 45, 0.14);
    color: #8d4b1e;
}

.status-badge.category-ready,
.inline-pill.category-ready,
.category-chip.category-ready {
    background: var(--accent-soft);
    color: var(--accent);
}

.status-badge.category-shipped,
.inline-pill.category-shipped,
.category-chip.category-shipped {
    background: var(--ship-blue-soft);
    color: var(--ship-blue);
}

.status-badge.category-history,
.inline-pill.category-history,
.category-chip.category-history {
    background: var(--history-earth-soft);
    color: var(--history-earth);
}

.status-badge.category-rpt,
.inline-pill.category-rpt,
.category-chip.category-rpt {
    background: var(--rpt-rose-soft);
    color: var(--rpt-rose);
}

.status-badge.category-patlak,
.inline-pill.category-patlak,
.category-chip.category-patlak {
    background: var(--danger-soft);
    color: var(--danger);
}

.status-badge.category-cancelled,
.inline-pill.category-cancelled,
.category-chip.category-cancelled {
    background: var(--cancel-gray-soft);
    color: var(--cancel-gray);
}

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

.order-meta-item {
    min-width: 0;
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(23, 33, 31, 0.04);
}

.order-meta-label {
    color: var(--muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.order-meta-value {
    font-size: 0.9rem;
    line-height: 1.35;
    word-break: break-word;
}

.order-card.category-new {
    border-left-color: var(--accent-warm);
}

.order-card.category-ready {
    border-left-color: var(--accent);
}

.order-card.category-shipped {
    border-left-color: var(--ship-blue);
}

.order-card.category-history {
    border-left-color: var(--history-earth);
}

.order-card.category-rpt {
    border-left-color: var(--rpt-rose);
}

.order-card.category-patlak {
    border-left-color: var(--danger);
}

.order-card.category-cancelled {
    border-left-color: var(--cancel-gray);
}

.detail-panel {
    min-height: 72vh;
    padding: 32px;
}

.detail-stack {
    position: relative;
    display: grid;
    gap: 18px;
    isolation: isolate;
}

.detail-stack.ready-celebration::before {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 32px;
    background:
        radial-gradient(circle at top right, rgba(67, 183, 143, 0.24), rgba(67, 183, 143, 0) 48%),
        linear-gradient(135deg, rgba(14, 124, 102, 0.16), rgba(14, 124, 102, 0) 56%);
    pointer-events: none;
    z-index: -1;
    animation: ready-halo 1500ms ease-out;
}

.detail-stack.ready-celebration::after {
    content: "Hazir Havuzda";
    position: absolute;
    top: -12px;
    right: 0;
    padding: 10px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), #43b78f);
    color: white;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 18px 30px rgba(14, 124, 102, 0.22);
    pointer-events: none;
    animation: ready-chip 1500ms ease-out;
}

.detail-stack.ready-celebration .summary-card,
.detail-stack.ready-celebration .progress-bar,
.detail-stack.ready-celebration .scan-card {
    animation: ready-glow 1500ms ease-out;
}

.detail-stack.is-cancelled-order::before {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 32px;
    background:
        radial-gradient(circle at top right, rgba(182, 59, 57, 0.22), rgba(182, 59, 57, 0) 44%),
        radial-gradient(circle at left center, rgba(182, 59, 57, 0.16), rgba(182, 59, 57, 0) 36%),
        linear-gradient(180deg, rgba(182, 59, 57, 0.08), rgba(182, 59, 57, 0));
    pointer-events: none;
    z-index: -1;
}

.detail-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 18px 24px;
}

.detail-heading {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.detail-title-block {
    display: grid;
    gap: 8px;
}

.detail-top h2 {
    margin: 0;
    font-size: clamp(1.8rem, 2vw, 2.5rem);
    line-height: 1;
}

.detail-subcopy {
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
}

.detail-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-actions {
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-actions .secondary-btn,
.detail-actions .primary-btn {
    min-height: 46px;
    padding: 0 18px;
}

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

.summary-card,
.info-card,
.scan-card,
.product-card,
.history-card,
.notice-card,
.order-note-card {
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.summary-card {
    min-width: 0;
    padding: 12px 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.56);
}

.summary-card .muted {
    font-size: 0.84rem;
    line-height: 1.2;
}

.summary-card strong {
    display: block;
    margin-top: 0;
    font-size: 1.25rem;
    line-height: 1;
    text-align: right;
    white-space: nowrap;
}

.info-grid {
    flex-wrap: wrap;
}

.info-disclosure {
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.6);
    overflow: hidden;
}

.info-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 18px;
    border: 0;
    background: transparent;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}

.info-toggle-copy {
    display: grid;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
}

.info-toggle-title {
    font-size: inherit;
    font-weight: 700;
    line-height: 1.2;
}

.info-toggle-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.info-toggle-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(23, 33, 31, 0.08);
    color: rgba(23, 33, 31, 0.82);
}

.info-toggle-pill-label {
    color: rgba(23, 33, 31, 0.5);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.info-toggle-pill-value {
    min-width: 0;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.25;
}

.info-toggle-icon {
    color: var(--muted);
    font-size: 0.88rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-disclosure-body {
    padding: 0 18px 18px;
}

.info-disclosure-body[hidden] {
    display: none !important;
}

.info-card {
    flex: 1 1 240px;
    min-width: 240px;
    padding: 18px;
}

.info-card h3,
.scan-card h3,
.history-card h3,
.category-control h3 {
    margin: 0 0 12px;
    font-size: 1rem;
}

.mini-stack {
    display: grid;
    gap: 10px;
}

.mini-row {
    align-items: baseline;
}

.mini-row span:first-child {
    color: var(--muted);
    min-width: 88px;
}

.scan-card,
.history-card,
.notice-card,
.category-control {
    padding: 18px;
}

.scan-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.scan-camera-toggle {
    min-height: 40px;
    padding: 0 12px;
    border-radius: 14px;
    white-space: nowrap;
}

.category-control {
    display: grid;
    gap: 12px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.category-control-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.category-control-head .eyebrow {
    margin: 0 0 4px;
}

.category-control-head h3 {
    margin: 0;
}

.category-state-pill {
    white-space: nowrap;
}

.category-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.category-action-btn {
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(96, 113, 107, 0.12);
    background: rgba(255, 255, 255, 0.84);
}

.category-action-btn.is-clear {
    background: rgba(96, 113, 107, 0.08);
}

.category-action-btn[data-category="rpt"].is-active {
    background: var(--rpt-rose-soft);
    border-color: rgba(164, 63, 108, 0.14);
    color: var(--rpt-rose);
}

.category-action-btn[data-category="patlak"].is-active {
    background: var(--danger-soft);
    border-color: rgba(200, 69, 63, 0.14);
    color: var(--danger);
}

.category-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.category-hint {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.scan-row {
    align-items: stretch;
}

.scan-row input {
    min-height: 58px;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.scan-helper {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.scan-camera-panel {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(23, 33, 31, 0.06);
    border: 1px solid rgba(23, 33, 31, 0.08);
}

.scan-camera-panel::before {
    content: '';
    position: absolute;
    inset: 34% 8%;
    border: 2px solid rgba(255, 255, 255, 0.82);
    border-radius: 18px;
    box-shadow: 0 0 0 999px rgba(10, 17, 16, 0.18);
    pointer-events: none;
}

.scan-camera-panel::after {
    content: '';
    position: absolute;
    left: 10%;
    right: 10%;
    top: 50%;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(18, 132, 109, 0), rgba(78, 235, 195, 0.95), rgba(18, 132, 109, 0));
    box-shadow: 0 0 18px rgba(78, 235, 195, 0.42);
    transform: translateY(-50%);
    pointer-events: none;
}

.scan-camera-preview {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #111;
}

.scan-camera-message {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.scan-alert {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 0.92rem;
}

.scan-alert.error {
    background: var(--danger-soft);
    color: var(--danger);
}

.scan-alert.success {
    background: var(--accent-soft);
    color: var(--accent);
}

.progress-bar {
    position: relative;
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(23, 33, 31, 0.08);
}

.progress-bar > span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), #31a58a);
    transition: width 200ms ease;
}

.product-list {
    display: grid;
    gap: 14px;
}

.product-card {
    padding: 18px;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.product-layout {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.product-media {
    width: 92px;
    overflow: hidden;
    border-radius: 16px;
}

.product-media-button {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.product-media-button:focus-visible {
    outline: 2px solid rgba(14, 124, 102, 0.4);
    outline-offset: 3px;
}

.product-main {
    min-width: 0;
}

.product-image {
    width: 92px;
    height: 120px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
    background: rgba(23, 33, 31, 0.06);
    transform: scale(1);
    transition: transform 180ms ease;
    transform-origin: center;
}

.product-media:hover .product-image:not(.placeholder) {
    transform: scale(1.08);
}

.product-image.placeholder {
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 0.82rem;
    text-align: center;
    padding: 8px;
    border: 1px dashed rgba(23, 33, 31, 0.12);
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 28px;
}

.image-lightbox[hidden] {
    display: none !important;
}

.image-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 24, 22, 0.6);
    backdrop-filter: blur(8px);
}

.image-lightbox-dialog {
    position: relative;
    width: min(92vw, 820px);
    max-height: calc(100vh - 56px);
    padding: 18px;
    border-radius: 28px;
    background: rgba(248, 246, 241, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 28px 80px rgba(16, 24, 22, 0.24);
    display: grid;
    gap: 16px;
}

.image-lightbox-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.image-lightbox-head .eyebrow {
    margin: 0;
}

.image-lightbox-close {
    min-height: 42px;
    padding: 0 16px;
}

.image-lightbox-image {
    display: block;
    width: 100%;
    max-height: calc(100vh - 150px);
    object-fit: contain;
    border-radius: 22px;
    background: rgba(23, 33, 31, 0.04);
}

.supply-alert-modal {
    position: fixed;
    inset: 0;
    z-index: 55;
    display: grid;
    place-items: center;
    padding: 24px;
}

.supply-alert-modal[hidden] {
    display: none !important;
}

.supply-alert-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 24, 22, 0.58);
    backdrop-filter: blur(8px);
}

.supply-alert-dialog {
    position: relative;
    width: min(92vw, 900px);
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 24px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 251, 244, 0.96), rgba(248, 245, 239, 0.94));
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 28px 80px rgba(16, 24, 22, 0.24);
    display: grid;
    gap: 18px;
}

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

.supply-alert-head h2,
.supply-alert-card h3 {
    margin: 0;
}

.supply-alert-summary {
    margin: 0;
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.6;
}

.supply-alert-close {
    min-height: 42px;
    padding: 0 16px;
}

.supply-alert-list {
    display: grid;
    gap: 14px;
}

.supply-alert-card {
    display: grid;
    grid-template-columns: 152px minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(23, 33, 31, 0.08);
}

.supply-alert-card-media {
    width: 100%;
    aspect-ratio: 4 / 5;
    border: 0;
    padding: 0;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(23, 33, 31, 0.05);
    cursor: pointer;
}

.supply-alert-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.supply-alert-card-media.is-placeholder {
    display: grid;
    place-items: center;
    color: rgba(23, 33, 31, 0.5);
    font-size: 0.78rem;
}

.supply-alert-card-copy {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.supply-alert-card-head {
    display: grid;
    gap: 6px;
}

.supply-alert-card-eyebrow {
    margin: 0;
    color: rgba(23, 33, 31, 0.48);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.supply-alert-card-code {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.supply-alert-card-note {
    display: grid;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(14, 124, 102, 0.06);
    border: 1px solid rgba(14, 124, 102, 0.1);
}

.supply-alert-card-note.is-empty {
    background: rgba(23, 33, 31, 0.04);
    border-color: rgba(23, 33, 31, 0.06);
}

.supply-alert-card-note span {
    color: rgba(23, 33, 31, 0.5);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.supply-alert-card-note p {
    margin: 0;
    color: var(--ink);
    line-height: 1.6;
}

.admin-api-entry-card {
    gap: 18px;
}

.admin-api-entry-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.admin-api-entry-note {
    margin: 0;
    max-width: 56ch;
}

.admin-api-status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(23, 33, 31, 0.08);
    background: rgba(255, 255, 255, 0.78);
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.admin-api-status-chip.is-ready {
    background: rgba(14, 124, 102, 0.12);
    border-color: rgba(14, 124, 102, 0.2);
    color: var(--accent);
}

.admin-api-status-chip.is-missing {
    background: rgba(212, 84, 39, 0.1);
    border-color: rgba(212, 84, 39, 0.14);
    color: var(--danger);
}

.api-config-modal {
    position: fixed;
    inset: 0;
    z-index: 57;
    display: grid;
    place-items: center;
    padding: 24px;
}

.api-config-modal[hidden] {
    display: none !important;
}

.api-config-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 24, 22, 0.58);
    backdrop-filter: blur(8px);
}

.api-config-dialog {
    position: relative;
    width: min(94vw, 920px);
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 24px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 251, 244, 0.97), rgba(248, 245, 239, 0.94));
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 28px 80px rgba(16, 24, 22, 0.24);
    display: grid;
    gap: 18px;
}

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

.api-config-head h2 {
    margin: 0;
}

.api-config-summary {
    margin: 0;
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.6;
}

.api-config-close {
    min-height: 42px;
    padding: 0 16px;
}

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

.api-config-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.8fr) minmax(260px, 1fr);
    align-items: start;
}

.api-config-field-wide {
    grid-column: 1 / -1;
}

.api-config-input-mono {
    font-family: Consolas, "Cascadia Code", "Courier New", monospace;
    font-size: 0.94rem;
    letter-spacing: 0;
}

#adminApiBaseUrlInput {
    min-height: 52px;
}

#adminApiBaseUrlInput,
#adminApiKeyInput,
#adminApiSecretInput {
    overflow-x: auto;
}

@media (max-width: 720px) {
    .supply-alert-modal {
        padding: 16px;
    }

    .supply-alert-dialog {
        padding: 18px;
        border-radius: 22px;
    }

    .supply-alert-head {
        align-items: stretch;
    }

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

    .supply-alert-card-media {
        aspect-ratio: 16 / 11;
    }

    .supply-alert-close {
        width: 100%;
    }

    .api-config-modal {
        padding: 16px;
    }

    .api-config-dialog {
        padding: 18px;
        border-radius: 22px;
    }

    .api-config-grid {
        grid-template-columns: 1fr;
    }

    .api-config-field-wide {
        grid-column: auto;
    }

    .api-config-head {
        align-items: stretch;
    }

    .api-config-close {
        width: 100%;
    }
}

.product-card.is-complete {
    border-color: rgba(14, 124, 102, 0.25);
    box-shadow: 0 12px 28px rgba(14, 124, 102, 0.08);
}

.product-card.is-over {
    border-color: rgba(182, 59, 57, 0.2);
    box-shadow: 0 12px 28px rgba(182, 59, 57, 0.08);
}

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

.product-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 14px;
    margin-bottom: 12px;
}

.product-head h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
}

.product-code {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.product-variants,
.history-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-keyfacts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.product-keyfact {
    min-width: 0;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(23, 33, 31, 0.05);
    border: 1px solid rgba(23, 33, 31, 0.08);
}

.product-keyfact span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-keyfact strong {
    display: block;
    font-size: 1rem;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-keyfact.quantity strong {
    color: var(--accent);
    font-size: 1.12rem;
}

.product-keyfact.quantity.complete {
    background: var(--accent-soft);
    border-color: rgba(14, 124, 102, 0.12);
}

.product-keyfact.quantity.over {
    background: var(--danger-soft);
    border-color: rgba(200, 69, 63, 0.12);
}

.product-keyfact.quantity.over strong {
    color: var(--danger);
}

.product-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.product-price-pill {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(23, 33, 31, 0.06);
    color: var(--ink);
    font-size: 0.88rem;
    white-space: nowrap;
}

.product-undo-btn {
    min-height: 40px;
    padding: 0 14px;
}

.inline-pill {
    background: rgba(23, 33, 31, 0.07);
    color: var(--ink);
}

.progress-pill {
    background: rgba(23, 33, 31, 0.07);
    color: var(--muted);
}

.progress-pill.complete {
    background: var(--accent-soft);
    color: var(--accent);
}

.progress-pill.over {
    background: var(--danger-soft);
    color: var(--danger);
}

.item-meta {
    flex-wrap: wrap;
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.9rem;
}

.item-footer {
    align-items: center;
    margin-top: 14px;
    flex-wrap: wrap;
}

.history-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.history-card li {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.76);
}

.notice-card {
    border-style: dashed;
}

.order-note-card {
    padding: 16px 18px;
    display: grid;
    gap: 12px;
}

.order-note-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.order-note-head .eyebrow {
    margin: 0 0 4px;
}

.order-note-head h3 {
    margin: 0;
    font-size: 1rem;
}

.order-note-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.order-note-form input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.84);
    outline: none;
}

.order-note-form input:focus {
    border-color: rgba(14, 124, 102, 0.4);
    box-shadow: 0 0 0 4px rgba(14, 124, 102, 0.12);
}

.order-note-form .secondary-btn {
    min-height: 44px;
    padding: 0 16px;
}

.order-note-list {
    display: grid;
    gap: 8px;
}

.order-note-feedback {
    margin: 0;
    font-size: 0.84rem;
}

.order-note-feedback.success {
    color: var(--accent);
}

.order-note-feedback.error {
    color: var(--danger);
}

.order-note-item {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(23, 33, 31, 0.04);
    border: 1px solid rgba(23, 33, 31, 0.06);
}

.order-note-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.order-note-item p,
.order-note-item span {
    margin: 0;
}

.order-note-item p {
    line-height: 1.45;
    margin-top: 6px;
}

.order-note-item span,
.order-note-empty {
    color: var(--muted);
    font-size: 0.82rem;
}

.order-note-item span {
    display: block;
}

.order-note-delete {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--danger);
    cursor: pointer;
    font-size: 0.82rem;
}

.package-control-note {
    margin: 0 0 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(14, 124, 102, 0.07);
    color: var(--ink);
    font-size: 0.88rem;
}

.detail-panel {
    min-height: 72vh;
    padding: 28px;
    background:
        radial-gradient(circle at top right, rgba(14, 124, 102, 0.08), transparent 24%),
        radial-gradient(circle at left center, rgba(197, 106, 45, 0.08), transparent 22%),
        linear-gradient(180deg, rgba(255, 253, 249, 0.92), rgba(247, 242, 234, 0.88));
    border: 1px solid rgba(255, 255, 255, 0.75);
}

.detail-stack {
    gap: 16px;
}

.detail-hero-card {
    display: grid;
    gap: 18px;
    padding: 22px;
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(239, 250, 246, 0.92) 48%, rgba(248, 243, 233, 0.92));
    border: 1px solid rgba(14, 124, 102, 0.12);
    box-shadow: 0 22px 44px rgba(58, 46, 34, 0.08);
}

.detail-stack.is-cancelled-order .detail-hero-card {
    background:
        linear-gradient(135deg, rgba(255, 248, 248, 0.82), rgba(255, 233, 232, 0.94) 52%, rgba(251, 238, 237, 0.92));
    border-color: rgba(182, 59, 57, 0.16);
    box-shadow: 0 22px 44px rgba(182, 59, 57, 0.08);
}

.detail-hero-card .eyebrow,
.detail-block .eyebrow {
    color: rgba(23, 33, 31, 0.64);
}

.detail-stack.is-cancelled-order .detail-hero-card .eyebrow,
.detail-stack.is-cancelled-order .detail-block .eyebrow,
.detail-stack.is-cancelled-order .summary-card .muted,
.detail-stack.is-cancelled-order .mini-row span:first-child,
.detail-stack.is-cancelled-order .scan-helper,
.detail-stack.is-cancelled-order .category-hint,
.detail-stack.is-cancelled-order .product-keyfact span,
.detail-stack.is-cancelled-order .product-code {
    color: rgba(126, 53, 52, 0.72);
}

.detail-stack.is-cancelled-order .detail-subcopy,
.detail-stack.is-cancelled-order .mini-row span:last-child,
.detail-stack.is-cancelled-order .notice-card p,
.detail-stack.is-cancelled-order .order-note-item p,
.detail-stack.is-cancelled-order .order-meta-value {
    color: #5f2a29;
}

.detail-stack.is-cancelled-order .detail-status-row .inline-pill,
.detail-stack.is-cancelled-order .category-state-pill,
.detail-stack.is-cancelled-order .inline-pill.category-cancelled {
    background: rgba(182, 59, 57, 0.12);
    color: var(--danger);
    border-color: rgba(182, 59, 57, 0.12);
}

.detail-top {
    gap: 20px 24px;
}

.detail-title-block {
    gap: 10px;
}

.detail-top h2 {
    font-size: clamp(1.95rem, 2.1vw, 2.8rem);
    letter-spacing: -0.03em;
}

.detail-subcopy {
    font-size: 0.96rem;
}

.detail-status-row {
    gap: 10px;
}

.detail-status-row .inline-pill,
.category-state-pill {
    min-height: 34px;
    padding: 0 14px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 1px solid rgba(255, 255, 255, 0.36);
    backdrop-filter: blur(10px);
}

.detail-actions {
    gap: 8px;
}

.detail-actions .secondary-btn,
.detail-actions .primary-btn {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 16px;
}

.detail-actions .secondary-btn {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(23, 33, 31, 0.08);
}

.detail-actions .primary-btn {
    background: linear-gradient(135deg, var(--accent), #16947d);
    box-shadow: 0 14px 28px rgba(14, 124, 102, 0.18);
}

.detail-actions .primary-btn:disabled {
    box-shadow: none;
    opacity: 0.55;
}

.summary-grid {
    gap: 12px;
}

.summary-card {
    padding: 14px 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.64);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.summary-card .muted {
    color: rgba(23, 33, 31, 0.58);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.74rem;
}

.summary-card strong {
    text-align: left;
    font-size: 1.35rem;
}

.progress-shell {
    padding-top: 2px;
}

.progress-bar {
    height: 10px;
    background: rgba(23, 33, 31, 0.06);
}

.progress-bar > span {
    background: linear-gradient(90deg, #1a8c73, #41ba95);
    box-shadow: 0 10px 18px rgba(14, 124, 102, 0.2);
}

.detail-stack.is-cancelled-order .progress-bar {
    background: rgba(182, 59, 57, 0.12);
}

.detail-stack.is-cancelled-order .progress-bar > span {
    background: linear-gradient(90deg, #dc6a67, #b63b39);
    box-shadow: 0 10px 18px rgba(182, 59, 57, 0.22);
}

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

.detail-block {
    border-radius: 22px;
    border: 1px solid rgba(23, 33, 31, 0.08);
    box-shadow: 0 10px 26px rgba(23, 33, 31, 0.045);
    backdrop-filter: blur(12px);
}

.detail-block-info {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(250, 249, 246, 0.8));
}

.detail-block-category {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(249, 247, 245, 0.8));
}

.detail-block-scan {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(245, 249, 247, 0.8));
}

.detail-block-note {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(246, 248, 249, 0.82));
}

.detail-block-notice {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(250, 244, 235, 0.92));
}

.detail-stack.is-cancelled-order .detail-block,
.detail-stack.is-cancelled-order .summary-card,
.detail-stack.is-cancelled-order .info-card,
.detail-stack.is-cancelled-order .product-card,
.detail-stack.is-cancelled-order .order-note-item,
.detail-stack.is-cancelled-order .product-keyfact,
.detail-stack.is-cancelled-order .product-price-pill,
.detail-stack.is-cancelled-order .progress-pill,
.detail-stack.is-cancelled-order .product-undo-btn {
    border-color: rgba(182, 59, 57, 0.12);
}

.detail-stack.is-cancelled-order .summary-card {
    background: rgba(255, 245, 245, 0.82);
}

.detail-stack.is-cancelled-order .detail-block-info {
    background: linear-gradient(180deg, rgba(255, 251, 251, 0.9), rgba(255, 244, 244, 0.84));
}

.detail-stack.is-cancelled-order .detail-block-category {
    background: linear-gradient(180deg, rgba(255, 249, 249, 0.9), rgba(255, 241, 241, 0.84));
}

.detail-stack.is-cancelled-order .detail-block-scan {
    background: linear-gradient(180deg, rgba(255, 249, 249, 0.9), rgba(255, 240, 240, 0.84));
}

.detail-stack.is-cancelled-order .detail-block-note {
    background: linear-gradient(180deg, rgba(255, 250, 250, 0.9), rgba(253, 242, 242, 0.84));
}

.detail-stack.is-cancelled-order .detail-block-notice {
    background: linear-gradient(180deg, rgba(255, 246, 246, 0.84), rgba(255, 235, 234, 0.92));
}

.detail-stack.is-cancelled-order .info-card,
.detail-stack.is-cancelled-order .order-note-item {
    background: rgba(255, 249, 249, 0.68);
}

.info-disclosure,
.category-control,
.scan-card,
.notice-card,
.order-note-card,
.history-card {
    border-style: solid;
    overflow: hidden;
}

.info-toggle {
    padding: 16px 18px 14px;
    font-weight: 700;
    font-size: 0.96rem;
    gap: 12px;
}

.info-toggle-icon {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 11px;
    background: rgba(23, 33, 31, 0.04);
    border: 1px solid rgba(23, 33, 31, 0.06);
    color: rgba(23, 33, 31, 0.72);
    font-size: 0.74rem;
    font-weight: 600;
}

.info-disclosure-body {
    padding: 0 18px 18px;
}

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

.info-card {
    min-width: 0;
    padding: 14px 15px;
    border-radius: 18px;
    background: rgba(248, 247, 244, 0.78);
    border: 1px solid rgba(23, 33, 31, 0.06);
}

.info-card h3 {
    margin: 0 0 9px;
    font-size: 0.92rem;
    letter-spacing: -0.01em;
}

.mini-stack {
    gap: 7px;
}

.mini-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
}

.mini-row span:first-child {
    min-width: 0;
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(23, 33, 31, 0.46);
}

.mini-row span:last-child {
    min-width: 0;
    font-size: 0.88rem;
    line-height: 1.35;
    color: rgba(23, 33, 31, 0.84);
    overflow-wrap: anywhere;
}

.category-control,
.scan-card,
.notice-card,
.order-note-card,
.history-card {
    padding: 18px;
}

.scan-card-head,
.category-control-head,
.order-note-head {
    align-items: flex-start;
}

.scan-card h3,
.order-note-card h3,
.category-control h3,
.info-toggle-title {
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.category-action-btn {
    min-height: 44px;
    border-radius: 12px;
    background: transparent;
    border: 1px solid transparent;
    color: rgba(23, 33, 31, 0.84);
    font-weight: 650;
    box-shadow: none;
}

.category-action-btn.is-clear {
    background: transparent;
    color: rgba(23, 33, 31, 0.58);
}

.scan-card h3,
.order-note-card h3,
.category-control h3 {
    margin-bottom: 6px;
}

.scan-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.scan-row input,
.order-note-form input {
    min-height: 48px;
    border-radius: 14px;
    background: rgba(249, 248, 245, 0.84);
    border: 1px solid rgba(23, 33, 31, 0.08);
    box-shadow: none;
    padding: 0 15px;
    font-size: 0.94rem;
    font-weight: 500;
}

.scan-row input::placeholder,
.order-note-form input::placeholder {
    color: rgba(23, 33, 31, 0.4);
}

.scan-row input:focus,
.order-note-form input:focus {
    border-color: rgba(14, 124, 102, 0.18);
    box-shadow: 0 0 0 3px rgba(14, 124, 102, 0.08);
}

.detail-stack.is-cancelled-order .scan-row input,
.detail-stack.is-cancelled-order .order-note-form input {
    background: rgba(255, 250, 250, 0.92);
    border-color: rgba(182, 59, 57, 0.14);
}

.scan-card .primary-btn,
.order-note-form .secondary-btn {
    min-height: 48px;
    border-radius: 14px;
}

.scan-card .primary-btn {
    background: rgba(20, 128, 103, 0.96);
    border: 1px solid rgba(20, 128, 103, 0.96);
    box-shadow: none;
}

.detail-stack.is-cancelled-order .detail-actions .primary-btn,
.detail-stack.is-cancelled-order .scan-card .primary-btn {
    background: rgba(190, 70, 66, 0.94);
    border-color: rgba(190, 70, 66, 0.94);
    box-shadow: none;
}

.detail-stack.is-cancelled-order .detail-actions .secondary-btn,
.detail-stack.is-cancelled-order .category-action-btn,
.detail-stack.is-cancelled-order .order-note-form .secondary-btn,
.detail-stack.is-cancelled-order .product-undo-btn {
    background: rgba(255, 247, 247, 0.82);
    border-color: rgba(182, 59, 57, 0.14);
    color: #7e3534;
}

.scan-camera-toggle,
.order-note-form .secondary-btn,
.category-state-pill,
.order-note-head .inline-pill {
    background: rgba(23, 33, 31, 0.04);
    border: 1px solid rgba(23, 33, 31, 0.06);
    color: rgba(23, 33, 31, 0.72);
    box-shadow: none;
}

.scan-camera-toggle {
    min-height: 34px;
    padding: 0 11px;
    border-radius: 10px;
    font-size: 0.76rem;
    font-weight: 600;
}

.category-state-pill,
.order-note-head .inline-pill {
    min-height: 28px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 600;
}

.category-state-pill.inline-pill.category-rpt {
    background: rgba(164, 63, 108, 0.1);
    border-color: rgba(164, 63, 108, 0.14);
    color: var(--rpt-rose);
}

.category-state-pill.inline-pill.category-patlak {
    background: rgba(200, 69, 63, 0.1);
    border-color: rgba(200, 69, 63, 0.14);
    color: var(--danger);
}

.info-toggle-preview {
    gap: 6px;
}

.info-toggle-pill {
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 11px;
    background: rgba(23, 33, 31, 0.03);
    border: 1px solid rgba(23, 33, 31, 0.06);
}

.info-toggle-pill-label {
    font-size: 0.6rem;
}

.info-toggle-pill-value {
    font-size: 0.76rem;
    font-weight: 600;
}

.category-actions {
    gap: 6px;
    padding: 4px;
    border-radius: 16px;
    background: rgba(23, 33, 31, 0.03);
    border: 1px solid rgba(23, 33, 31, 0.05);
}

.category-action-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(23, 33, 31, 0.06);
}

.scan-helper {
    font-size: 0.78rem;
    line-height: 1.45;
    color: rgba(23, 33, 31, 0.58);
}

.scan-alert {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 14px;
    font-weight: 600;
}

.detail-stack.is-cancelled-order .scan-alert {
    background: rgba(182, 59, 57, 0.1);
    color: var(--danger);
}

.notice-card {
    display: grid;
    gap: 10px;
}

.notice-card p {
    margin: 0;
}

.order-note-form {
    gap: 8px;
}

.order-note-list {
    gap: 8px;
}

.order-note-item {
    padding: 12px 13px;
    border-radius: 16px;
    background: rgba(250, 249, 246, 0.82);
    border: 1px solid rgba(23, 33, 31, 0.06);
}

.order-note-item p {
    margin-top: 7px;
    font-size: 0.9rem;
    line-height: 1.4;
    color: rgba(23, 33, 31, 0.86);
}

.order-note-item span,
.order-note-empty,
.order-note-feedback,
.scan-camera-message,
.category-hint {
    color: rgba(23, 33, 31, 0.58);
    font-size: 0.76rem;
}

.order-note-delete {
    min-height: 28px;
    padding: 0 2px;
    font-weight: 700;
}

.product-list {
    gap: 12px;
}

.product-card {
    padding: 18px 18px 16px;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.66));
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 18px 36px rgba(58, 46, 34, 0.05);
}

.detail-stack.is-cancelled-order .product-card {
    background: linear-gradient(180deg, rgba(255, 249, 249, 0.88), rgba(255, 238, 237, 0.8));
    box-shadow: 0 18px 36px rgba(182, 59, 57, 0.08);
}

.product-head {
    margin-bottom: 10px;
}

.product-head h3 {
    font-size: 1.02rem;
}

.product-code {
    color: rgba(23, 33, 31, 0.56);
}

.product-variants .inline-pill,
.product-price-pill,
.progress-pill,
.product-undo-btn {
    border: 1px solid rgba(23, 33, 31, 0.06);
}

.progress-pill {
    background: rgba(255, 255, 255, 0.72);
}

.product-keyfacts {
    gap: 10px;
}

.product-keyfact {
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.72);
}

.product-keyfact:nth-child(1) {
    background: linear-gradient(180deg, rgba(235, 244, 252, 0.92), rgba(255, 255, 255, 0.7));
}

.product-keyfact:nth-child(2) {
    background: linear-gradient(180deg, rgba(249, 244, 228, 0.92), rgba(255, 255, 255, 0.72));
}

.product-keyfact.quantity {
    background: linear-gradient(180deg, rgba(235, 248, 243, 0.94), rgba(255, 255, 255, 0.74));
}

.detail-stack.is-cancelled-order .product-keyfact:nth-child(1),
.detail-stack.is-cancelled-order .product-keyfact:nth-child(2),
.detail-stack.is-cancelled-order .product-keyfact.quantity {
    background: linear-gradient(180deg, rgba(255, 242, 242, 0.94), rgba(255, 255, 255, 0.8));
}

.detail-stack.is-cancelled-order .product-head h3,
.detail-stack.is-cancelled-order .progress-pill,
.detail-stack.is-cancelled-order .product-keyfact strong {
    color: #7e3534;
}

.product-keyfact span {
    font-size: 0.68rem;
    color: rgba(23, 33, 31, 0.52);
}

.product-toolbar {
    margin-top: 14px;
}

.product-price-pill {
    background: rgba(255, 255, 255, 0.74);
}

.product-undo-btn {
    background: rgba(255, 255, 255, 0.74);
}

.detail-stack.is-cancelled-order .product-price-pill,
.detail-stack.is-cancelled-order .progress-pill,
.detail-stack.is-cancelled-order .product-undo-btn {
    background: rgba(255, 244, 244, 0.84);
}

.empty-state {
    display: grid;
    place-items: center;
    min-height: 380px;
    text-align: center;
    color: var(--muted);
    padding: 32px;
}

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

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

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

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ready-halo {
    0% {
        opacity: 0;
        transform: scale(0.98);
    }
    24% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.02);
    }
}

@keyframes ready-glow {
    0% {
        box-shadow: 0 0 0 rgba(14, 124, 102, 0);
        transform: translateY(0);
    }
    30% {
        box-shadow: 0 18px 34px rgba(14, 124, 102, 0.16);
        transform: translateY(-2px);
    }
    100% {
        box-shadow: 0 0 0 rgba(14, 124, 102, 0);
        transform: translateY(0);
    }
}

@keyframes ready-chip {
    0% {
        opacity: 0;
        transform: translateY(8px) scale(0.94);
    }
    20% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    76% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-10px) scale(1.02);
    }
}

@media (max-width: 1100px) {
    .scanner-hero-top {
        grid-template-columns: 1fr;
    }

    .scanner-hero-side,
    .scanner-hero-pills,
    .scanner-hero-actions {
        justify-items: start;
        justify-content: flex-start;
    }

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

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

    .queue-workbench {
        grid-template-columns: 1fr;
    }

    .dev-panel-body {
        grid-template-columns: 1fr;
    }

    .admin-overview-grid,
    .admin-content-grid {
        grid-template-columns: 1fr;
    }

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

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

    .admin-create-card {
        position: static;
        top: auto;
    }

    .detail-support-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .queue-panel {
        position: static;
    }

    .queue-strip {
        position: static;
    }

    .queue-list {
        max-height: none;
    }
}

@media (max-width: 720px) {
    .admin-page {
        padding-bottom: 24px;
    }

    .auth-card {
        padding: 22px;
    }

    .auth-session-box {
        flex-direction: column;
        align-items: stretch;
    }

    .page-shell {
        padding: 14px;
    }

    .scanner-hero {
        padding: 16px;
    }

    .scanner-hero-top,
    .scanner-hero-side {
        grid-template-columns: 1fr;
        min-width: 0;
    }

    .scanner-hero-side,
    .scanner-hero-pills,
    .scanner-hero-actions {
        justify-items: stretch;
        justify-content: flex-start;
    }

    .scanner-hero-side {
        display: none;
    }

    .session-pill,
    .hero-status,
    .scanner-hero-actions .ghost-btn {
        width: 100%;
    }

    .queue-meta {
        align-items: flex-start;
    }

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

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

    .detail-panel {
        padding: 14px;
    }

    .detail-hero-card,
    .detail-block {
        padding-left: 16px;
        padding-right: 16px;
    }

    .info-disclosure-body {
        padding-left: 14px;
        padding-right: 14px;
    }

    .mini-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .product-head,
    .detail-actions,
    .scan-row,
    .scanner-row,
    .dev-log-top,
    .dev-log-meta,
    .admin-chart-head,
    .admin-user-top,
    .admin-user-meta,
    .admin-user-actions {
        flex-direction: column;
    }

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

    .product-keyfact {
        padding: 10px 12px;
    }

    .product-keyfact strong {
        font-size: 0.92rem;
    }

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

    .detail-top,
    .summary-grid,
    .detail-support-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .admin-user-shell {
        grid-template-columns: 1fr;
    }

    .admin-metric-grid,
    .admin-overview-grid,
    .admin-content-grid {
        grid-template-columns: 1fr;
    }

    .admin-layout {
        gap: 12px;
    }

    .admin-hero-card,
    .admin-users-card,
    .admin-create-card {
        padding: 16px;
        border-radius: 22px;
    }

    .admin-users-head,
    .admin-form-head,
    .admin-hero-head,
    .admin-user-identity-shell {
        align-items: flex-start;
    }

    .admin-hero-head,
    .admin-users-head,
    .admin-form-head {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .admin-hero-head .ghost-btn,
    .admin-form-actions .primary-btn,
    .admin-form-actions .secondary-btn {
        width: 100%;
    }

    .admin-overview-grid,
    .admin-content-grid,
    .admin-chart-grid,
    .admin-users-list {
        gap: 12px;
    }

    .admin-metric-card,
    .admin-chart-card,
    .admin-user-card {
        padding: 14px;
        border-radius: 18px;
    }

    .admin-metric-card strong {
        font-size: 1.55rem;
    }

    .admin-chart-head {
        align-items: flex-start;
        gap: 8px;
    }

    .admin-chart-head strong {
        font-size: 1.3rem;
    }

    .admin-bar-list {
        gap: 10px;
    }

    .admin-bar-item {
        gap: 6px;
    }

    .admin-bar-track {
        height: 8px;
    }

    .admin-users-card {
        order: 1;
    }

    .admin-create-card {
        order: 2;
    }

    .admin-list-count {
        width: fit-content;
    }

    .admin-user-shell {
        gap: 12px;
    }

    .admin-user-identity-shell {
        gap: 10px;
    }

    .admin-user-avatar {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .admin-user-top {
        align-items: flex-start;
        gap: 10px;
    }

    .admin-user-badges,
    .admin-user-meta {
        gap: 6px;
    }

    .admin-user-statebar {
        height: 6px;
    }

    .admin-meta-pill {
        min-height: 30px;
        padding: 0 10px;
        font-size: 0.78rem;
    }

    .admin-user-note {
        font-size: 0.84rem;
        line-height: 1.35;
    }

    .admin-user-actions {
        gap: 8px;
        align-items: stretch;
    }

    .admin-action-btn {
        width: 100%;
        min-height: 40px;
        justify-content: center;
    }

    .admin-user-top h3 {
        font-size: 0.96rem;
    }

    .admin-user-top p {
        margin-top: 2px;
        font-size: 0.84rem;
    }

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

    .product-media {
        width: 100%;
    }

    .product-image {
        width: 100%;
        max-width: 180px;
        height: auto;
        aspect-ratio: 3 / 4;
    }

    .search-row {
        grid-template-columns: 1fr;
    }

    .scanner-row {
        grid-template-columns: 1fr;
    }

    .dev-metric-grid {
        grid-template-columns: 1fr;
    }

    .view-switch {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .view-tab {
        min-width: 0;
    }

    .admin-form-grid,
    .admin-metric-grid {
        grid-template-columns: 1fr;
    }

    .admin-form-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-field input,
    .admin-field select,
    .admin-field textarea {
        min-height: 44px;
        padding: 12px;
    }

    .admin-field textarea {
        min-height: 78px;
    }

    .admin-check {
        min-height: auto;
        padding: 0;
    }

    .admin-meta-note {
        margin-top: 10px;
        font-size: 0.8rem;
    }

    .scanner-hero {
        gap: 12px;
        padding: 14px;
        margin-bottom: 14px;
        border-radius: 24px;
    }

    .scanner-hero-copy h1 {
        font-size: clamp(1.75rem, 8vw, 2.35rem);
        line-height: 0.98;
    }

    .scanner-hero-copy-text,
    .scanner-note-hero {
        display: none;
    }

    .scanner-form-hero {
        padding: 10px 12px;
        border-radius: 18px;
    }

    .scanner-row {
        gap: 8px;
    }

    .scanner-row input,
    .scanner-row button {
        min-height: 46px;
    }

    .minimal-layout {
        gap: 14px;
    }

    .workspace {
        order: 1;
    }

    .queue-strip {
        order: 2;
        padding: 16px;
        border-radius: 24px;
    }

    .queue-strip .section-head {
        margin-bottom: 10px;
    }

    .queue-strip .section-head h2 {
        font-size: 1.08rem;
    }

    .queue-workbench {
        gap: 10px;
    }

    .category-tabs {
        display: flex;
        gap: 8px;
        padding: 0 0 4px;
        background: transparent;
        border: 0;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
    }

    .category-tabs::-webkit-scrollbar {
        display: none;
    }

    .category-chip {
        min-width: 132px;
        width: auto;
        padding: 11px 12px;
        border-radius: 18px;
        gap: 2px;
        flex: 0 0 auto;
    }

    .category-chip strong {
        font-size: 0.88rem;
    }

    .category-chip span {
        font-size: 0.74rem;
    }

    .queue-list-panel {
        padding: 0;
        background: transparent;
        border: 0;
        gap: 10px;
    }

    .queue-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .queue-count-chip {
        min-height: 30px;
        padding: 0 10px;
        font-size: 0.76rem;
    }

    .queue-active-title {
        font-size: 0.86rem;
    }

    .queue-list,
    .queue-list-minimal {
        max-height: 300px;
        padding-right: 2px;
    }

    .order-card {
        padding: 14px 14px 13px;
        border-radius: 18px;
    }

    .order-card-top {
        margin-bottom: 8px;
    }

    .detail-panel {
        padding: 12px;
        border-radius: 24px;
    }

    .detail-panel.is-empty {
        min-height: 220px;
    }

    .detail-hero-card,
    .detail-block {
        padding: 14px;
        border-radius: 22px;
        gap: 12px;
    }

    .detail-top h2 {
        font-size: clamp(1.7rem, 8vw, 2.2rem);
    }

    .detail-subcopy {
        font-size: 0.86rem;
    }

    .detail-status-row {
        gap: 6px;
    }

    .detail-status-row .inline-pill,
    .category-state-pill {
        min-height: 30px;
        padding: 0 10px;
        font-size: 0.72rem;
    }

    .detail-actions {
        gap: 8px;
    }

    .detail-actions .secondary-btn,
    .detail-actions .primary-btn {
        width: 100%;
        min-height: 42px;
    }

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

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

    .scan-card,
    .notice-card,
    .order-note-card,
    .history-card,
    .category-control {
        padding: 14px 14px 13px;
        border-radius: 20px;
    }

    .scan-card h3,
    .order-note-card h3,
    .category-control h3 {
        margin-bottom: 8px;
        font-size: 0.94rem;
    }

    .order-note-card {
        gap: 8px;
    }

    .order-note-head {
        align-items: center;
        gap: 8px;
    }

    .order-note-head h3 {
        font-size: 0.88rem;
    }

    .order-note-head .inline-pill {
        min-height: 26px;
        padding: 0 8px;
        font-size: 0.7rem;
    }

    .order-note-form {
        grid-template-columns: minmax(0, 1fr) 72px;
        gap: 6px;
    }

    .order-note-form input {
        min-height: 42px;
        padding: 0 12px;
        border-radius: 13px;
        font-size: 0.84rem;
    }

    .order-note-form .secondary-btn {
        min-height: 42px;
        padding: 0 8px;
        border-radius: 13px;
        font-size: 0.78rem;
    }

    .order-note-feedback,
    .order-note-empty {
        font-size: 0.76rem;
    }

    .scan-card {
        gap: 8px;
    }

    .scan-card-head {
        gap: 8px;
    }

    .scan-row {
        grid-template-columns: minmax(0, 1fr) 78px;
        gap: 6px;
    }

    .scan-row input {
        min-height: 42px;
        padding: 0 12px;
        border-radius: 13px;
        font-size: 0.88rem;
        font-weight: 600;
    }

    .scan-card .primary-btn {
        min-height: 42px;
        padding: 0 8px;
        border-radius: 13px;
        font-size: 0.78rem;
        box-shadow: none;
    }

    .scan-camera-toggle {
        min-height: 42px;
        padding: 0 10px;
        font-size: 0.76rem;
    }

    .scan-camera-panel {
        border-radius: 14px;
    }

    .scan-camera-preview {
        aspect-ratio: 16 / 10;
    }

    .scan-camera-message {
        font-size: 0.76rem;
    }

    .scan-helper {
        margin-top: 8px;
        font-size: 0.78rem;
    }

    .scan-alert {
        margin-top: 8px;
        padding: 10px 12px;
        font-size: 0.82rem;
        border-radius: 12px;
    }

    .category-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .category-action-btn {
        min-height: 38px;
        padding: 0 8px;
        border-radius: 12px;
        font-size: 0.76rem;
    }

    .category-control {
        gap: 8px;
    }

    .category-control-head {
        align-items: center;
        gap: 8px;
    }

    .category-control-head h3 {
        margin: 0;
        font-size: 0.88rem;
    }

    .category-hint {
        display: none;
    }

    .product-list {
        gap: 10px;
    }

    .product-card {
        padding: 14px;
        border-radius: 20px;
    }

    .product-layout {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 12px;
        align-items: start;
    }

    .product-media {
        width: 72px;
    }

    .product-image {
        width: 72px;
        max-width: none;
        height: 92px;
        aspect-ratio: auto;
    }

    .product-head {
        margin-bottom: 8px;
    }

    .product-keyfacts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin-top: 10px;
    }

    .product-keyfact {
        padding: 9px 10px;
        border-radius: 14px;
    }

    .product-keyfact strong {
        font-size: 0.86rem;
    }

    .detail-stack {
        gap: 8px;
    }

    .detail-hero-card .eyebrow,
    .detail-block .eyebrow {
        display: none;
    }

    .detail-title-block {
        gap: 4px;
    }

    .detail-subcopy,
    .progress-shell {
        display: none;
    }

    .detail-support-grid {
        gap: 10px;
    }

    .detail-support-grid-primary,
    .detail-support-grid-secondary {
        display: contents;
    }

    .detail-block-scan {
        order: 1;
    }

    .detail-block-info {
        order: 2;
    }

    .detail-block-category {
        order: 3;
    }

    .detail-block-note {
        order: 4;
    }

    .summary-card,
    .detail-block,
    .info-card,
    .product-card,
    .order-note-item,
    .history-card li {
        box-shadow: none;
        background: rgba(255, 255, 255, 0.86);
    }

    .info-toggle {
        padding: 12px 14px;
        font-size: 0.88rem;
    }

    .info-toggle-icon {
        min-height: 24px;
        padding: 0 8px;
        font-size: 0.72rem;
    }

    .info-disclosure-body {
        padding: 0 12px 12px;
    }

    .info-card {
        padding: 12px;
        border-radius: 14px;
    }

    .info-card h3 {
        margin-bottom: 8px;
        font-size: 0.88rem;
    }

    .mini-row {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 8px;
    }

    .mini-row span:first-child {
        font-size: 0.64rem;
    }

    .mini-row span:last-child {
        font-size: 0.84rem;
        line-height: 1.32;
    }

    .notice-card p,
    .package-control-note,
    .order-note-item p {
        font-size: 0.84rem;
        line-height: 1.35;
    }

    .order-note-list,
    .history-card ul {
        gap: 8px;
    }

    .history-card li,
    .order-note-item {
        padding: 10px 12px;
        border-radius: 14px;
    }

    .product-head {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 6px;
    }

    .product-head h3 {
        font-size: 0.96rem;
        margin-bottom: 4px;
    }

    .product-code {
        font-size: 0.76rem;
    }

    .product-keyfacts {
        margin-top: 8px;
        gap: 6px;
    }

    .product-keyfact {
        padding: 8px 9px;
    }

    .product-keyfact span {
        font-size: 0.62rem;
    }

    .product-keyfact strong {
        font-size: 0.8rem;
    }

    .product-toolbar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin-top: 8px;
    }

    .product-price-pill,
    .progress-pill,
    .product-undo-btn {
        min-height: 34px;
        padding: 0 10px;
        font-size: 0.72rem;
    }

    .detail-empty-state {
        min-height: 170px;
        padding: 16px 14px;
        gap: 8px;
    }

    .detail-empty-state h2 {
        font-size: 0.96rem;
        line-height: 1.24;
    }

    .detail-empty-state p:last-child {
        margin: 0;
        font-size: 0.76rem;
        line-height: 1.38;
    }
}

@media (max-width: 480px) {
    .page-shell {
        padding: 12px;
    }

    .scanner-hero,
    .admin-hero-card,
    .admin-users-card,
    .admin-create-card,
    .detail-panel {
        padding: 14px;
    }

    .scanner-hero {
        gap: 8px;
        padding: 12px;
        border-radius: 18px;
    }

    .scanner-hero-copy h1 {
        font-size: 1.32rem;
        line-height: 1.02;
    }

    .scanner-form-hero {
        padding: 8px;
        border-radius: 16px;
    }

    .scanner-form-hero .field-label {
        margin-bottom: 3px;
        font-size: 0.74rem;
    }

    .scanner-row {
        gap: 6px;
    }

    .scanner-row input,
    .scanner-row button {
        min-height: 42px;
    }

    .scanner-row input {
        padding: 0 12px;
        border-radius: 14px;
        font-size: 0.84rem;
        font-weight: 600;
    }

    .scanner-row button {
        min-width: 108px;
        padding: 0 10px;
        border-radius: 14px;
        font-size: 0.84rem;
        box-shadow: none;
    }

    .minimal-layout {
        gap: 10px;
    }

    .queue-strip {
        padding: 14px;
    }

    .category-chip {
        min-width: 118px;
        padding: 10px 11px;
    }

    .queue-list,
    .queue-list-minimal {
        max-height: 240px;
    }

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

    .product-layout {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 10px;
    }

    .product-media {
        width: 64px;
    }

    .product-image {
        width: 64px;
        height: 84px;
    }

    .detail-panel {
        padding: 10px;
        border-radius: 18px;
    }

    .detail-panel.is-empty {
        min-height: 138px;
    }

    .detail-empty-state {
        min-height: 124px;
        padding: 12px 10px;
        gap: 6px;
    }

    .detail-empty-state .eyebrow {
        display: block;
        margin: 0;
        font-size: 0.6rem;
    }

    .detail-empty-state h2 {
        font-size: 0.84rem;
        line-height: 1.2;
    }

    .detail-empty-state p:last-child {
        font-size: 0.7rem;
        line-height: 1.3;
    }

    .detail-hero-card,
    .detail-block {
        padding: 12px;
        border-radius: 16px;
        gap: 10px;
    }

    .detail-top {
        gap: 10px;
    }

    .detail-top h2 {
        font-size: 1.45rem;
    }

    .detail-status-row .inline-pill,
    .category-state-pill {
        min-height: 28px;
        padding: 0 8px;
        font-size: 0.68rem;
    }

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

    .detail-actions .secondary-btn,
    .detail-actions .primary-btn {
        width: 100%;
        min-height: 34px;
        padding: 0 10px;
        border-radius: 12px;
        font-size: 0.78rem;
    }

    .summary-card {
        padding: 10px 11px;
        border-radius: 14px;
        gap: 4px;
    }

    .summary-card .muted {
        font-size: 0.62rem;
        letter-spacing: 0.05em;
    }

    .summary-card strong {
        font-size: 0.88rem;
        line-height: 1.05;
    }

    .info-toggle {
        padding: 10px 12px;
        font-size: 0.84rem;
    }

    .info-toggle-icon {
        min-height: 22px;
        padding: 0 7px;
    }

    .info-card {
        padding: 10px;
    }

    .mini-row {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 6px;
    }

    .category-control,
    .scan-card,
    .notice-card,
    .order-note-card,
    .history-card {
        padding: 10px 11px;
        border-radius: 16px;
    }

    .order-note-card {
        gap: 6px;
    }

    .order-note-head {
        gap: 6px;
        align-items: center;
    }

    .order-note-head h3 {
        margin: 0;
        font-size: 0.8rem;
    }

    .order-note-head .inline-pill {
        min-height: 22px;
        padding: 0 6px;
        font-size: 0.64rem;
    }

    .order-note-form {
        grid-template-columns: minmax(0, 1fr) 60px;
        gap: 5px;
    }

    .order-note-form input {
        min-height: 38px;
        padding: 0 10px;
        border-radius: 11px;
        font-size: 0.8rem;
    }

    .order-note-form .secondary-btn {
        min-height: 38px;
        padding: 0 6px;
        border-radius: 11px;
        font-size: 0.7rem;
    }

    .scan-card {
        gap: 6px;
    }

    .scan-card h3 {
        margin-bottom: 4px;
        font-size: 0.82rem;
    }

    .scan-card-head {
        gap: 6px;
    }

    .scan-card-head h3 {
        margin: 0;
    }

    .scan-row {
        grid-template-columns: minmax(0, 1fr) 68px;
        gap: 5px;
    }

    .scan-row input {
        min-height: 38px;
        padding: 0 10px;
        border-radius: 11px;
        font-size: 0.82rem;
    }

    .scan-card .primary-btn {
        min-height: 38px;
        padding: 0 6px;
        border-radius: 11px;
        font-size: 0.7rem;
    }

    .scan-camera-toggle {
        min-height: 36px;
        padding: 0 8px;
        border-radius: 11px;
        font-size: 0.68rem;
    }

    .scan-camera-panel {
        border-radius: 12px;
    }

    .scan-camera-preview {
        aspect-ratio: 1 / 1;
    }

    .scan-camera-message {
        margin-top: 6px;
        font-size: 0.72rem;
    }

    .scan-helper,
    .category-hint {
        display: none;
    }

    .order-note-feedback,
    .order-note-empty {
        font-size: 0.72rem;
    }

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

    .product-layout {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 8px;
    }

    .product-media {
        width: 56px;
    }

    .product-image {
        width: 56px;
        height: 74px;
        border-radius: 12px;
    }

    .product-head h3 {
        font-size: 0.9rem;
        margin-bottom: 3px;
    }

    .product-code {
        font-size: 0.72rem;
    }

    .product-keyfacts {
        gap: 6px;
        margin-top: 6px;
    }

    .product-keyfact {
        padding: 7px 8px;
        border-radius: 12px;
    }

    .product-keyfact span {
        font-size: 0.58rem;
    }

    .product-keyfact strong {
        font-size: 0.76rem;
    }

    .product-toolbar {
        margin-top: 6px;
    }

    .product-price-pill,
    .progress-pill,
    .product-undo-btn {
        min-height: 32px;
        padding: 0 8px;
        font-size: 0.68rem;
    }

    .scan-alert {
        margin-top: 6px;
        padding: 8px 10px;
        font-size: 0.74rem;
        border-radius: 10px;
    }

    .category-control {
        gap: 6px;
    }

    .category-control-head {
        gap: 6px;
    }

    .category-control-head h3 {
        font-size: 0.82rem;
    }

    .category-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;
    }

    .category-action-btn {
        min-height: 34px;
        padding: 0 6px;
        border-radius: 10px;
        font-size: 0.66rem;
    }

    .admin-metric-card span,
    .admin-metric-card p,
    .admin-chart-head p,
    .admin-meta-note,
    .admin-user-note,
    .admin-user-top p,
    .admin-meta-pill {
        font-size: 0.76rem;
    }

    .admin-metric-card strong {
        font-size: 1.4rem;
    }

    .admin-chart-head h3,
    .admin-users-head h2,
    .admin-form-head h2,
    .admin-hero-head h2 {
        font-size: 1rem;
    }

    .admin-user-card {
        padding: 12px;
    }

    .admin-user-avatar {
        width: 34px;
        height: 34px;
        font-size: 0.78rem;
    }

    .admin-action-btn,
    .admin-form-actions .primary-btn,
    .admin-form-actions .secondary-btn,
    .admin-hero-head .ghost-btn {
        min-height: 38px;
    }
}
