: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;
}

/* Operations surface redesign */
:root {
    --ops-display-font: "Inter", "Segoe UI", sans-serif;
    --ops-body-font: "Inter", "Segoe UI", sans-serif;
    --ops-ink: #18382f;
    --ops-deep: #102e28;
    --ops-mint: #dff6ec;
    --ops-glow: rgba(61, 185, 128, 0.16);
    --ops-coral: #d97b43;
    --ops-coral-soft: rgba(217, 123, 67, 0.14);
}

#scannerHero,
#operationsView .queue-strip,
#operationsView .queue-list-panel,
#operationsView #detailPanel {
    font-family: var(--ops-body-font);
}

#scannerHero {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    border: 1px solid rgba(24, 56, 47, 0.08);
    background:
        radial-gradient(circle at 0% 0%, rgba(223, 246, 236, 0.96), transparent 30%),
        radial-gradient(circle at 100% 0%, rgba(212, 239, 248, 0.72), transparent 26%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 252, 249, 0.94) 52%, rgba(241, 249, 245, 0.96));
    box-shadow: 0 26px 60px rgba(16, 61, 43, 0.1);
}

#scannerHero::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 10px;
    background: linear-gradient(180deg, #1596be, #1b69b3 56%, #9fdff3);
    box-shadow: 10px 0 40px rgba(27, 117, 191, 0.18);
}

#scannerHero .scanner-hero-top,
#operationsView .queue-strip-head {
    position: relative;
    z-index: 1;
}

#operationsView .queue-strip-head {
    display: block;
    align-items: flex-start;
}

#scannerHero .eyebrow,
#operationsView .queue-strip .eyebrow,
#operationsView .detail-empty-state .eyebrow {
    font-family: var(--ops-display-font);
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(24, 56, 47, 0.72);
}

#scannerHero .scanner-hero-copy {
    display: grid;
    gap: 0;
}

#scannerHero .scanner-hero-copy h1 {
    font-family: var(--ops-display-font);
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    line-height: 1.14 !important;
    letter-spacing: -0.03em !important;
    color: var(--ops-deep);
}

#scannerHero .scanner-hero-compact-head {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 34px;
}

#scannerHero .scanner-hero-compact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #1596be;
    flex: 0 0 auto;
}

#scannerHero .scanner-hero-compact-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.scanner-form-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 250px);
    gap: 12px 18px;
    align-items: end;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.scanner-form-hero .field-label {
    grid-column: 1 / -1;
    margin-bottom: 0;
    font-family: var(--ops-display-font);
    font-size: 0.72rem !important;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(16, 42, 97, 0.64);
}

.scanner-row input {
    min-height: 60px;
    padding: 0 24px;
    border-radius: 20px;
    border: 1px solid rgba(24, 56, 47, 0.1);
    background: rgba(255, 255, 255, 0.96);
    font-family: var(--ops-body-font);
    font-size: 0.95rem !important;
    font-weight: 500;
    color: var(--ops-deep);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.scanner-input-shell {
    position: relative;
}

.scanner-input-icon {
    position: absolute;
    top: 50%;
    left: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: rgba(76, 89, 109, 0.78);
    pointer-events: none;
    transform: translateY(-50%);
}

.scanner-input-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    fill: none;
}

.scanner-input-shell input {
    padding-left: 54px;
}

.scanner-row input::placeholder {
    color: rgba(92, 113, 152, 0.74);
}

.scanner-row input:focus {
    border-color: rgba(27, 117, 191, 0.28);
    box-shadow: 0 0 0 5px rgba(33, 120, 199, 0.12);
}

.scanner-row-actions {
    margin-top: 0;
    display: grid;
    grid-template-columns: 1fr;
    align-self: stretch;
}

.scanner-row-actions .primary-btn,
.scanner-row-actions .scan-camera-toggle {
    min-height: 60px;
    border-radius: 20px;
    padding: 0 20px;
    font-family: var(--ops-display-font);
    font-size: 0.92rem !important;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.scanner-row-actions .primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #18382f, #229c58 58%, #6ad58f);
    box-shadow: 0 24px 40px rgba(28, 125, 73, 0.22);
}

.scanner-row-actions .primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 28px 46px rgba(28, 125, 73, 0.26);
}

.scanner-submit-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.scanner-submit-btn-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

#operationsView .queue-strip {
    border-radius: 32px;
    border: 1px solid rgba(24, 56, 47, 0.07);
    background:
        radial-gradient(circle at 0% 0%, rgba(223, 246, 236, 0.9), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(246, 251, 248, 0.94));
    box-shadow: 0 22px 48px rgba(16, 61, 43, 0.08);
}

#operationsView .queue-strip-title h2,
#operationsView .detail-empty-state h2 {
    font-family: var(--ops-display-font);
    font-weight: 800;
    letter-spacing: -0.05em;
    color: var(--ops-deep);
}

#operationsView .queue-strip-title h2 {
    font-size: clamp(1.7rem, 2.2vw, 2.45rem);
    line-height: 1.02;
}

#operationsView .queue-strip-subtitle {
    max-width: 34ch;
    font-size: 0.95rem;
    line-height: 1.56;
    color: rgba(24, 56, 47, 0.7);
}

#operationsView .queue-strip .ghost-btn {
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(24, 56, 47, 0.08);
    background: rgba(223, 246, 236, 0.86);
    color: var(--ops-deep);
    font-family: var(--ops-display-font);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

#operationsView .queue-strip-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

#operationsView .queue-strip-icon-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    padding: 0;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(24, 56, 47, 0.08);
    background: linear-gradient(180deg, rgba(226, 247, 236, 0.96), rgba(214, 242, 226, 0.92));
    color: #16543f;
    box-shadow: 0 10px 22px rgba(16, 61, 43, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

#operationsView .queue-strip-toggle-btn {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: auto;
    border: 1px solid rgba(24, 56, 47, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 246, 0.96));
    color: #102e28;
    box-shadow: 0 10px 22px rgba(16, 61, 43, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

#operationsView .queue-strip-icon-btn:hover,
#operationsView .queue-strip-toggle-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(24, 56, 47, 0.14);
}

#operationsView .queue-strip-icon-btn:focus-visible,
#operationsView .queue-strip-toggle-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(61, 185, 128, 0.18);
}

#operationsView .queue-strip-icon-btn svg,
#operationsView .queue-strip-toggle-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

#operationsView .category-tabs,
#operationsView .queue-list-panel {
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(244, 249, 246, 0.92));
    border: 1px solid rgba(24, 56, 47, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

#operationsView .queue-meta-kicker,
#operationsView .category-rail-kicker {
    font-family: var(--ops-display-font);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: rgba(24, 56, 47, 0.54);
}

#operationsView .queue-active-title {
    font-family: var(--ops-display-font);
    font-size: 0.94rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ops-deep);
}

#operationsView .queue-count-chip {
    min-height: 31px;
    padding: 0 10px;
    background: rgba(223, 246, 236, 0.92);
    border-color: rgba(24, 56, 47, 0.08);
    color: #146744;
    font-family: var(--ops-display-font);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

#operationsView .queue-list-panel {
    padding: 13px;
}

#operationsView .category-chip {
    border-radius: 20px;
    padding: 11px 12px;
    box-shadow: 0 14px 24px rgba(16, 61, 43, 0.05);
}

#operationsView .category-chip strong,
#operationsView .order-code {
    font-family: var(--ops-display-font);
    font-weight: 700;
    color: var(--ops-deep);
}

#operationsView .category-chip strong {
    font-size: 0.84rem;
    line-height: 1.15;
}

#operationsView .category-chip-count {
    min-width: 29px;
    min-height: 24px;
    padding: 0 7px;
    font-size: 0.68rem;
}

#operationsView .order-card {
    padding: 10px 11px;
}

#operationsView .order-card-top {
    gap: 6px;
    margin-bottom: 7px;
}

#operationsView .order-card-overline {
    font-size: 0.56rem;
    letter-spacing: 0.16em;
}

#operationsView .order-code {
    font-size: 0.9rem;
}

#operationsView .order-card-side {
    gap: 4px;
    flex: 0 0 auto;
}

#operationsView .status-badge {
    padding: 3px 6px;
    font-size: 0.56rem;
    white-space: nowrap;
}

#operationsView #detailPanel.is-empty {
    border-radius: 34px;
    background:
        radial-gradient(circle at 50% 0%, rgba(223, 246, 236, 0.78), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 251, 248, 0.94));
}

#operationsView .detail-empty-state {
    min-height: 100%;
    padding: 36px 24px;
    gap: 14px;
    place-items: center;
    text-align: center;
}

#operationsView .detail-empty-state h2 {
    max-width: 18ch;
    font-size: clamp(1.7rem, 2.35vw, 2.55rem);
    line-height: 1.08;
}

#operationsView .detail-empty-state p:last-child {
    max-width: 52ch;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(24, 56, 47, 0.68);
}

#operationsView .scanner-hero-visual--empty {
    width: min(100%, 460px);
    padding: 18px;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 249, 244, 0.9)),
        radial-gradient(circle at top right, rgba(61, 185, 128, 0.1), transparent 28%);
    border: 1px solid rgba(24, 56, 47, 0.07);
    box-shadow: 0 18px 38px rgba(16, 61, 43, 0.07);
}

@media (max-width: 900px) {
    .scanner-form-hero {
        grid-template-columns: 1fr;
    }

    .scanner-row-actions {
        grid-template-columns: 1fr;
    }

    #operationsView .queue-strip-title h2,
    #operationsView .detail-empty-state h2 {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }
}

/* Final detail theme override */
.detail-panel {
    --pack-peach: #ff8b6b;
    --pack-sun: #ffc857;
    --pack-mint: #18b899;
    --pack-sky: #59a9ff;
    --pack-grape: #8b7bff;
    --pack-cloud: rgba(255, 255, 255, 0.78);
    --pack-card-border: rgba(255, 255, 255, 0.62);
    --pack-card-shadow: 0 24px 70px rgba(61, 48, 33, 0.12);
    background:
        radial-gradient(circle at top left, rgba(255, 139, 107, 0.18), transparent 26%),
        radial-gradient(circle at 85% 12%, rgba(89, 169, 255, 0.16), transparent 28%),
        radial-gradient(circle at 50% 100%, rgba(24, 184, 153, 0.12), transparent 30%),
        linear-gradient(180deg, rgba(255, 250, 244, 0.98), rgba(246, 240, 230, 0.96));
}

.detail-stack {
    gap: 22px;
}

.detail-stack > * {
    animation: pack-joy-rise 580ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.detail-stack > *:nth-child(2) {
    animation-delay: 40ms;
}

.detail-stack > *:nth-child(3) {
    animation-delay: 90ms;
}

.detail-stack > *:nth-child(4) {
    animation-delay: 140ms;
}

.detail-hero-card {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 20px;
    padding: 26px;
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 248, 239, 0.7) 45%, rgba(232, 252, 246, 0.92)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0));
    border: 1px solid rgba(255, 255, 255, 0.88);
    box-shadow: var(--pack-card-shadow);
    backdrop-filter: blur(18px);
}

.detail-hero-card::before,
.detail-hero-card::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    z-index: 0;
}

.detail-hero-card::before {
    width: 260px;
    height: 260px;
    top: -90px;
    right: -70px;
    background: radial-gradient(circle, rgba(255, 200, 87, 0.42), rgba(255, 200, 87, 0) 70%);
    animation: pack-joy-float 7s ease-in-out infinite;
}

.detail-hero-card::after {
    width: 220px;
    height: 220px;
    bottom: -100px;
    left: -60px;
    background: radial-gradient(circle, rgba(89, 169, 255, 0.28), rgba(89, 169, 255, 0) 70%);
    animation: pack-joy-float 9s ease-in-out infinite reverse;
}

.detail-top,
.summary-grid,
.detail-support-grid,
.detail-status-row,
.detail-actions,
.product-toolbar,
.product-keyfacts {
    position: relative;
    z-index: 1;
}

.detail-top {
    grid-template-columns: minmax(0, 1.08fr) minmax(260px, 320px);
    gap: 18px 24px;
}

.detail-title-block {
    display: grid;
    gap: 8px;
}

.detail-title-block .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 9px 14px;
    width: fit-content;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 139, 107, 0.18), rgba(255, 200, 87, 0.22));
    color: #9a5334;
    letter-spacing: 0.09em;
}

.detail-title-block h2 {
    margin: 0;
    font-size: clamp(2.3rem, 4vw, 3.5rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
    text-shadow: 0 10px 34px rgba(255, 255, 255, 0.48);
}

.detail-subcopy {
    margin: 0;
    max-width: 48ch;
    font-size: 1rem;
    color: rgba(23, 33, 31, 0.68);
}

.detail-status-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
}

.detail-status-row .inline-pill,
.category-state-pill,
.order-note-head .inline-pill,
.info-toggle-pill {
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.detail-actions {
    display: grid;
    align-content: start;
    gap: 12px;
}

.detail-actions .secondary-btn,
.detail-actions .primary-btn {
    min-height: 52px;
    border-radius: 18px;
    padding: 0 20px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.detail-actions .secondary-btn {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(23, 33, 31, 0.08);
    box-shadow: 0 14px 26px rgba(61, 48, 33, 0.08);
}

.detail-actions .primary-btn {
    background: linear-gradient(135deg, var(--pack-mint), #0f8a72 55%, var(--pack-sky));
    box-shadow: 0 18px 34px rgba(24, 184, 153, 0.28);
}

.detail-actions .primary-btn:disabled {
    background: linear-gradient(135deg, rgba(24, 184, 153, 0.42), rgba(89, 169, 255, 0.34));
}

.summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.summary-card {
    position: relative;
    overflow: hidden;
    padding: 18px;
    display: grid;
    gap: 10px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.58));
    border: 1px solid var(--pack-card-border);
    box-shadow: 0 18px 28px rgba(61, 48, 33, 0.08);
}

.summary-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--pack-peach), var(--pack-sun));
}

.summary-card:nth-child(2)::before {
    background: linear-gradient(90deg, var(--pack-mint), var(--pack-sky));
}

.summary-card:nth-child(3)::before {
    background: linear-gradient(90deg, var(--pack-sky), var(--pack-grape));
}

.summary-card:nth-child(4)::before {
    background: linear-gradient(90deg, var(--pack-sun), var(--pack-peach));
}

.summary-card .muted {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(23, 33, 31, 0.56);
}

.summary-card strong {
    font-size: clamp(1.4rem, 2vw, 2rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.progress-shell {
    padding: 8px 0 0;
}

.progress-bar {
    position: relative;
    overflow: hidden;
    height: 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.66);
    box-shadow: inset 0 1px 4px rgba(23, 33, 31, 0.12);
}

.progress-bar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.15));
    transform: translateX(-100%);
    animation: pack-joy-sheen 3.6s ease-in-out infinite;
}

.progress-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--pack-peach), var(--pack-sun) 26%, var(--pack-mint) 65%, var(--pack-sky));
    box-shadow: 0 10px 18px rgba(24, 184, 153, 0.22);
}

.detail-support-grid {
    gap: 16px;
}

.detail-support-grid-primary {
    grid-template-columns: 1.3fr 0.9fr;
}

.detail-support-grid-secondary {
    grid-template-columns: 1.1fr 0.9fr;
}

.scan-card,
.notice-card,
.order-note-card,
.history-card,
.category-control,
.info-disclosure {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.68));
    border: 1px solid var(--pack-card-border);
    box-shadow: 0 18px 34px rgba(61, 48, 33, 0.08);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.scan-card:hover,
.notice-card:hover,
.order-note-card:hover,
.history-card:hover,
.category-control:hover,
.info-disclosure:hover,
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 38px rgba(61, 48, 33, 0.12);
}

.scan-card {
    background:
        radial-gradient(circle at top right, rgba(89, 169, 255, 0.18), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(241, 252, 248, 0.78));
}

.notice-card {
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 200, 87, 0.2), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 248, 239, 0.86));
}

.order-note-card {
    background:
        radial-gradient(circle at top right, rgba(139, 123, 255, 0.16), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 245, 255, 0.78));
}

.history-card {
    background:
        radial-gradient(circle at top left, rgba(255, 139, 107, 0.16), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 244, 239, 0.76));
}

.category-control {
    background:
        radial-gradient(circle at bottom right, rgba(24, 184, 153, 0.18), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(240, 252, 248, 0.82));
}

.info-disclosure {
    background:
        radial-gradient(circle at top right, rgba(89, 169, 255, 0.16), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(242, 248, 255, 0.82));
}

.scan-card,
.history-card,
.notice-card,
.category-control,
.order-note-card {
    padding: 22px;
}

.scan-card h3,
.history-card h3,
.category-control h3,
.order-note-card h3,
.info-card h3 {
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.scan-card-head,
.category-control-head,
.order-note-head {
    align-items: center;
}

.scan-card-head .secondary-btn,
.order-note-form .secondary-btn,
.category-action-btn,
.scan-camera-toggle {
    border-radius: 16px;
}

.scan-row {
    gap: 10px;
}

.scan-row input,
.order-note-form input {
    min-height: 50px;
    border-radius: 16px;
    border: 1px solid rgba(23, 33, 31, 0.08);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.65);
}

.scan-row input:focus,
.order-note-form input:focus {
    border-color: rgba(24, 184, 153, 0.42);
    box-shadow: 0 0 0 4px rgba(24, 184, 153, 0.12);
}

.scan-camera-panel {
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(23, 33, 31, 0.08);
}

.scan-camera-preview {
    aspect-ratio: 16 / 9;
}

.scan-helper,
.scan-camera-message,
.category-hint,
.order-note-feedback,
.order-note-empty,
.history-card .muted {
    font-size: 0.84rem;
}

.scan-alert {
    margin-top: 12px;
    border-radius: 18px;
    padding: 14px 16px;
    font-weight: 700;
}

.scan-alert.success {
    background: rgba(24, 184, 153, 0.14);
    color: #0c6a58;
}

.scan-alert.error {
    background: rgba(182, 59, 57, 0.13);
    color: #8a3636;
}

.info-toggle {
    gap: 18px;
}

.info-toggle-title {
    font-size: 1.02rem;
    letter-spacing: -0.02em;
}

.info-toggle-icon {
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(23, 33, 31, 0.08);
}

.info-toggle-preview {
    gap: 8px;
}

.info-toggle-pill {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(23, 33, 31, 0.06);
}

.info-card {
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.7);
}

.mini-row {
    padding: 8px 0;
    border-bottom: 1px dashed rgba(23, 33, 31, 0.08);
}

.mini-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.mini-row span:first-child {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
}

.category-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.category-action-btn {
    min-height: 48px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(23, 33, 31, 0.08);
}

.category-action-btn.is-active {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(24, 184, 153, 0.18), rgba(89, 169, 255, 0.16));
    border-color: rgba(24, 184, 153, 0.28);
    color: #0a6b59;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.product-card {
    position: relative;
    overflow: hidden;
    padding: 18px;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 250, 245, 0.82));
    border: 1px solid var(--pack-card-border);
    box-shadow: 0 18px 34px rgba(61, 48, 33, 0.08);
}

.product-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 7px;
    border-radius: 28px 0 0 28px;
    background: linear-gradient(180deg, var(--pack-peach), var(--pack-sun), var(--pack-mint));
}

.product-card.is-complete::before {
    background: linear-gradient(180deg, var(--pack-mint), #2ad6b3, var(--pack-sky));
}

.product-card.is-over::before {
    background: linear-gradient(180deg, #ff6b6b, #ff9a62);
}

.product-layout {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.product-media {
    width: 108px;
}

.product-image {
    width: 108px;
    height: 138px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 16px 26px rgba(61, 48, 33, 0.12);
}

.product-head {
    gap: 12px;
    margin-bottom: 12px;
}

.product-head h3 {
    margin: 0 0 6px;
    font-size: 1.12rem;
    letter-spacing: -0.02em;
}

.product-code {
    color: rgba(23, 33, 31, 0.58);
}

.progress-pill {
    min-width: 92px;
    min-height: 42px;
    padding: 0 14px;
    font-size: 0.84rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.product-variants {
    gap: 8px;
    margin-bottom: 14px;
}

.product-variants .inline-pill {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(23, 33, 31, 0.06);
    color: rgba(23, 33, 31, 0.76);
}

.product-keyfacts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.product-keyfact {
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(23, 33, 31, 0.06);
}

.product-keyfact span {
    display: block;
    margin-bottom: 6px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(23, 33, 31, 0.5);
}

.product-keyfact strong {
    font-size: 0.94rem;
    letter-spacing: -0.02em;
}

.product-keyfact.quantity.complete {
    background: rgba(24, 184, 153, 0.12);
}

.product-keyfact.quantity.over {
    background: rgba(182, 59, 57, 0.12);
}

.product-toolbar {
    align-items: center;
    gap: 12px;
}

.product-price-pill {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(23, 33, 31, 0.06);
    color: rgba(23, 33, 31, 0.68);
}

.manual-btn {
    min-height: 40px;
    border-radius: 14px;
    padding: 0 14px;
    font-weight: 700;
}

.product-undo-btn {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(23, 33, 31, 0.08);
    color: var(--ink);
}

.history-card ul {
    display: grid;
    gap: 10px;
}

.history-card li,
.order-note-item {
    padding: 14px 15px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(23, 33, 31, 0.06);
}

.order-note-delete {
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(182, 59, 57, 0.1);
    color: #8a3636;
}

.detail-stack.ready-celebration::before {
    inset: -14px;
    border-radius: 38px;
    background:
        radial-gradient(circle at top right, rgba(255, 200, 87, 0.3), rgba(255, 200, 87, 0) 34%),
        radial-gradient(circle at left center, rgba(24, 184, 153, 0.24), rgba(24, 184, 153, 0) 38%),
        linear-gradient(135deg, rgba(255, 139, 107, 0.14), rgba(89, 169, 255, 0.08) 45%, rgba(24, 184, 153, 0.16));
    animation: pack-joy-pulse 1800ms ease-out;
}

.detail-stack.ready-celebration::after {
    content: "Hazır Havuzda";
    top: -16px;
    right: 8px;
    padding: 12px 18px;
    background: linear-gradient(135deg, var(--pack-mint), var(--pack-sky));
    box-shadow: 0 20px 32px rgba(24, 184, 153, 0.24);
}

.detail-stack.ready-celebration .detail-hero-card,
.detail-stack.ready-celebration .summary-card,
.detail-stack.ready-celebration .scan-card {
    animation: pack-joy-ready-glow 1700ms ease-out;
}

.detail-stack.is-cancelled-order .detail-hero-card {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 244, 243, 0.86) 52%, rgba(255, 240, 240, 0.92));
}

@keyframes pack-joy-rise {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pack-joy-float {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, 14px, 0);
    }
}

@keyframes pack-joy-sheen {
    0%,
    20% {
        transform: translateX(-100%);
    }

    50%,
    100% {
        transform: translateX(100%);
    }
}

@keyframes pack-joy-pulse {
    0% {
        opacity: 0;
        transform: scale(0.98);
    }

    45% {
        opacity: 1;
    }

    100% {
        opacity: 0.16;
        transform: scale(1);
    }
}

@keyframes pack-joy-ready-glow {
    0% {
        box-shadow: 0 0 0 rgba(24, 184, 153, 0);
    }

    35% {
        box-shadow: 0 22px 40px rgba(24, 184, 153, 0.18);
    }

    100% {
        box-shadow: 0 18px 34px rgba(61, 48, 33, 0.08);
    }
}

@media (max-width: 1220px) {
    .detail-top,
    .detail-support-grid-primary,
    .detail-support-grid-secondary {
        grid-template-columns: 1fr;
    }

    .detail-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .detail-panel {
        padding: 16px;
    }

    .detail-hero-card,
    .scan-card,
    .notice-card,
    .order-note-card,
    .history-card,
    .category-control,
    .info-disclosure,
    .product-card {
        border-radius: 24px;
    }

    .summary-grid,
    .product-keyfacts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-layout {
        grid-template-columns: 84px minmax(0, 1fr);
    }

    .product-media,
    .product-image {
        width: 84px;
    }

    .product-image {
        height: 112px;
    }
}

@media (max-width: 640px) {
    .detail-panel {
        padding: 12px;
    }

    .detail-top h2 {
        font-size: clamp(1.8rem, 10vw, 2.5rem);
    }

    .detail-actions,
    .category-actions,
    .scan-row,
    .product-toolbar {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .summary-grid,
    .product-keyfacts {
        grid-template-columns: 1fr;
    }

    .product-layout {
        grid-template-columns: 1fr;
    }

    .product-media,
    .product-image {
        width: 100%;
    }

    .product-image {
        height: auto;
        aspect-ratio: 4 / 5;
    }

    .detail-status-row {
        gap: 8px;
    }

    .detail-status-row .inline-pill {
        min-height: 30px;
        padding: 0 10px;
        font-size: 0.68rem;
    }
}

/* Paket kontrol ekranini daha modern, enerjik ve neseli bir katmanla override et */
.detail-panel {
    --pack-peach: #ff8b6b;
    --pack-sun: #ffc857;
    --pack-mint: #18b899;
    --pack-sky: #59a9ff;
    --pack-grape: #8b7bff;
    --pack-cloud: rgba(255, 255, 255, 0.78);
    --pack-card-border: rgba(255, 255, 255, 0.62);
    --pack-card-shadow: 0 24px 70px rgba(61, 48, 33, 0.12);
    background:
        radial-gradient(circle at top left, rgba(255, 139, 107, 0.18), transparent 26%),
        radial-gradient(circle at 85% 12%, rgba(89, 169, 255, 0.16), transparent 28%),
        radial-gradient(circle at 50% 100%, rgba(24, 184, 153, 0.12), transparent 30%),
        linear-gradient(180deg, rgba(255, 250, 244, 0.98), rgba(246, 240, 230, 0.96));
}

.detail-stack {
    gap: 22px;
}

.detail-stack > * {
    animation: pack-joy-rise 580ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.detail-stack > *:nth-child(2) {
    animation-delay: 40ms;
}

.detail-stack > *:nth-child(3) {
    animation-delay: 90ms;
}

.detail-stack > *:nth-child(4) {
    animation-delay: 140ms;
}

.detail-hero-card {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 20px;
    padding: 26px;
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 248, 239, 0.7) 45%, rgba(232, 252, 246, 0.92)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0));
    border: 1px solid rgba(255, 255, 255, 0.88);
    box-shadow: var(--pack-card-shadow);
    backdrop-filter: blur(18px);
}

.detail-hero-card::before,
.detail-hero-card::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    z-index: 0;
}

.detail-hero-card::before {
    width: 260px;
    height: 260px;
    top: -90px;
    right: -70px;
    background: radial-gradient(circle, rgba(255, 200, 87, 0.42), rgba(255, 200, 87, 0) 70%);
    animation: pack-joy-float 7s ease-in-out infinite;
}

.detail-hero-card::after {
    width: 220px;
    height: 220px;
    bottom: -100px;
    left: -60px;
    background: radial-gradient(circle, rgba(89, 169, 255, 0.28), rgba(89, 169, 255, 0) 70%);
    animation: pack-joy-float 9s ease-in-out infinite reverse;
}

.detail-top,
.summary-grid,
.detail-support-grid,
.detail-status-row,
.detail-actions,
.product-toolbar,
.product-keyfacts {
    position: relative;
    z-index: 1;
}

.detail-top {
    grid-template-columns: minmax(0, 1.08fr) minmax(260px, 320px);
    gap: 18px 24px;
}

.detail-title-block {
    display: grid;
    gap: 8px;
}

.detail-title-block .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 9px 14px;
    width: fit-content;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 139, 107, 0.18), rgba(255, 200, 87, 0.22));
    color: #9a5334;
    letter-spacing: 0.09em;
}

.detail-title-block h2 {
    margin: 0;
    font-size: clamp(2.3rem, 4vw, 3.5rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
    text-shadow: 0 10px 34px rgba(255, 255, 255, 0.48);
}

.detail-subcopy {
    margin: 0;
    max-width: 48ch;
    font-size: 1rem;
    color: rgba(23, 33, 31, 0.68);
}

.detail-status-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
}

.detail-status-row .inline-pill,
.category-state-pill,
.order-note-head .inline-pill,
.info-toggle-pill {
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.detail-actions {
    display: grid;
    align-content: start;
    gap: 12px;
}

.detail-actions .secondary-btn,
.detail-actions .primary-btn {
    min-height: 52px;
    border-radius: 18px;
    padding: 0 20px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.detail-actions .secondary-btn {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(23, 33, 31, 0.08);
    box-shadow: 0 14px 26px rgba(61, 48, 33, 0.08);
}

.detail-actions .primary-btn {
    background: linear-gradient(135deg, var(--pack-mint), #0f8a72 55%, var(--pack-sky));
    box-shadow: 0 18px 34px rgba(24, 184, 153, 0.28);
}

.detail-actions .primary-btn:disabled {
    background: linear-gradient(135deg, rgba(24, 184, 153, 0.42), rgba(89, 169, 255, 0.34));
}

.summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.summary-card {
    position: relative;
    overflow: hidden;
    padding: 18px;
    display: grid;
    gap: 10px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.58));
    border: 1px solid var(--pack-card-border);
    box-shadow: 0 18px 28px rgba(61, 48, 33, 0.08);
}

.summary-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--pack-peach), var(--pack-sun));
}

.summary-card:nth-child(2)::before {
    background: linear-gradient(90deg, var(--pack-mint), var(--pack-sky));
}

.summary-card:nth-child(3)::before {
    background: linear-gradient(90deg, var(--pack-sky), var(--pack-grape));
}

.summary-card:nth-child(4)::before {
    background: linear-gradient(90deg, var(--pack-sun), var(--pack-peach));
}

.summary-card .muted {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(23, 33, 31, 0.56);
}

.summary-card strong {
    font-size: clamp(1.4rem, 2vw, 2rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.progress-shell {
    padding: 8px 0 0;
}

.progress-bar {
    position: relative;
    overflow: hidden;
    height: 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.66);
    box-shadow: inset 0 1px 4px rgba(23, 33, 31, 0.12);
}

.progress-bar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.15));
    transform: translateX(-100%);
    animation: pack-joy-sheen 3.6s ease-in-out infinite;
}

.progress-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--pack-peach), var(--pack-sun) 26%, var(--pack-mint) 65%, var(--pack-sky));
    box-shadow: 0 10px 18px rgba(24, 184, 153, 0.22);
}

.detail-support-grid {
    gap: 16px;
}

.detail-support-grid-primary {
    grid-template-columns: 1.3fr 0.9fr;
}

.detail-support-grid-secondary {
    grid-template-columns: 1.1fr 0.9fr;
}

.scan-card,
.notice-card,
.order-note-card,
.history-card,
.category-control,
.info-disclosure {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.68));
    border: 1px solid var(--pack-card-border);
    box-shadow: 0 18px 34px rgba(61, 48, 33, 0.08);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.scan-card:hover,
.notice-card:hover,
.order-note-card:hover,
.history-card:hover,
.category-control:hover,
.info-disclosure:hover,
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 38px rgba(61, 48, 33, 0.12);
}

.scan-card {
    background:
        radial-gradient(circle at top right, rgba(89, 169, 255, 0.18), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(241, 252, 248, 0.78));
}

.notice-card {
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 200, 87, 0.2), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 248, 239, 0.86));
}

.order-note-card {
    background:
        radial-gradient(circle at top right, rgba(139, 123, 255, 0.16), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 245, 255, 0.78));
}

.history-card {
    background:
        radial-gradient(circle at top left, rgba(255, 139, 107, 0.16), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 244, 239, 0.76));
}

.category-control {
    background:
        radial-gradient(circle at bottom right, rgba(24, 184, 153, 0.18), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(240, 252, 248, 0.82));
}

.info-disclosure {
    background:
        radial-gradient(circle at top right, rgba(89, 169, 255, 0.16), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(242, 248, 255, 0.82));
}

.scan-card,
.history-card,
.notice-card,
.category-control,
.order-note-card {
    padding: 22px;
}

.scan-card h3,
.history-card h3,
.category-control h3,
.order-note-card h3,
.info-card h3 {
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.scan-card-head,
.category-control-head,
.order-note-head {
    align-items: center;
}

.scan-card-head .secondary-btn,
.order-note-form .secondary-btn,
.category-action-btn,
.scan-camera-toggle {
    border-radius: 16px;
}

.scan-row {
    gap: 10px;
}

.scan-row input,
.order-note-form input {
    min-height: 50px;
    border-radius: 16px;
    border: 1px solid rgba(23, 33, 31, 0.08);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.65);
}

.scan-row input:focus,
.order-note-form input:focus {
    border-color: rgba(24, 184, 153, 0.42);
    box-shadow: 0 0 0 4px rgba(24, 184, 153, 0.12);
}

.scan-camera-panel {
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(23, 33, 31, 0.08);
}

.scan-camera-preview {
    aspect-ratio: 16 / 9;
}

.scan-helper,
.scan-camera-message,
.category-hint,
.order-note-feedback,
.order-note-empty,
.history-card .muted {
    font-size: 0.84rem;
}

.scan-alert {
    margin-top: 12px;
    border-radius: 18px;
    padding: 14px 16px;
    font-weight: 700;
}

.scan-alert.success {
    background: rgba(24, 184, 153, 0.14);
    color: #0c6a58;
}

.scan-alert.error {
    background: rgba(182, 59, 57, 0.13);
    color: #8a3636;
}

.info-toggle {
    gap: 18px;
}

.info-toggle-title {
    font-size: 1.02rem;
    letter-spacing: -0.02em;
}

.info-toggle-icon {
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(23, 33, 31, 0.08);
}

.info-toggle-preview {
    gap: 8px;
}

.info-toggle-pill {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(23, 33, 31, 0.06);
}

.info-card {
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.7);
}

.mini-row {
    padding: 8px 0;
    border-bottom: 1px dashed rgba(23, 33, 31, 0.08);
}

.mini-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.mini-row span:first-child {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
}

.category-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.category-action-btn {
    min-height: 48px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(23, 33, 31, 0.08);
}

.category-action-btn.is-active {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(24, 184, 153, 0.18), rgba(89, 169, 255, 0.16));
    border-color: rgba(24, 184, 153, 0.28);
    color: #0a6b59;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.product-card {
    position: relative;
    overflow: hidden;
    padding: 18px;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 250, 245, 0.82));
    border: 1px solid var(--pack-card-border);
    box-shadow: 0 18px 34px rgba(61, 48, 33, 0.08);
}

.product-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 7px;
    border-radius: 28px 0 0 28px;
    background: linear-gradient(180deg, var(--pack-peach), var(--pack-sun), var(--pack-mint));
}

.product-card.is-complete::before {
    background: linear-gradient(180deg, var(--pack-mint), #2ad6b3, var(--pack-sky));
}

.product-card.is-over::before {
    background: linear-gradient(180deg, #ff6b6b, #ff9a62);
}

.product-layout {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.product-media {
    width: 108px;
}

.product-image {
    width: 108px;
    height: 138px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 16px 26px rgba(61, 48, 33, 0.12);
}

.product-head {
    gap: 12px;
    margin-bottom: 12px;
}

.product-head h3 {
    margin: 0 0 6px;
    font-size: 1.12rem;
    letter-spacing: -0.02em;
}

.product-code {
    color: rgba(23, 33, 31, 0.58);
}

.progress-pill {
    min-width: 92px;
    min-height: 42px;
    padding: 0 14px;
    font-size: 0.84rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.product-variants {
    gap: 8px;
    margin-bottom: 14px;
}

.product-variants .inline-pill {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(23, 33, 31, 0.06);
    color: rgba(23, 33, 31, 0.76);
}

.product-keyfacts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.product-keyfact {
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(23, 33, 31, 0.06);
}

.product-keyfact span {
    display: block;
    margin-bottom: 6px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(23, 33, 31, 0.5);
}

.product-keyfact strong {
    font-size: 0.94rem;
    letter-spacing: -0.02em;
}

.product-keyfact.quantity.complete {
    background: rgba(24, 184, 153, 0.12);
}

.product-keyfact.quantity.over {
    background: rgba(182, 59, 57, 0.12);
}

.product-toolbar {
    align-items: center;
    gap: 12px;
}

.product-price-pill {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(23, 33, 31, 0.06);
    color: rgba(23, 33, 31, 0.68);
}

.manual-btn {
    min-height: 40px;
    border-radius: 14px;
    padding: 0 14px;
    font-weight: 700;
}

.product-undo-btn {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(23, 33, 31, 0.08);
    color: var(--ink);
}

.history-card ul {
    display: grid;
    gap: 10px;
}

.history-card li,
.order-note-item {
    padding: 14px 15px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(23, 33, 31, 0.06);
}

.order-note-delete {
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(182, 59, 57, 0.1);
    color: #8a3636;
}

.detail-stack.ready-celebration::before {
    inset: -14px;
    border-radius: 38px;
    background:
        radial-gradient(circle at top right, rgba(255, 200, 87, 0.3), rgba(255, 200, 87, 0) 34%),
        radial-gradient(circle at left center, rgba(24, 184, 153, 0.24), rgba(24, 184, 153, 0) 38%),
        linear-gradient(135deg, rgba(255, 139, 107, 0.14), rgba(89, 169, 255, 0.08) 45%, rgba(24, 184, 153, 0.16));
    animation: pack-joy-pulse 1800ms ease-out;
}

.detail-stack.ready-celebration::after {
    content: "Hazır Havuzda";
    top: -16px;
    right: 8px;
    padding: 12px 18px;
    background: linear-gradient(135deg, var(--pack-mint), var(--pack-sky));
    box-shadow: 0 20px 32px rgba(24, 184, 153, 0.24);
}

.detail-stack.ready-celebration .detail-hero-card,
.detail-stack.ready-celebration .summary-card,
.detail-stack.ready-celebration .scan-card {
    animation: pack-joy-ready-glow 1700ms ease-out;
}

.detail-stack.is-cancelled-order .detail-hero-card {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 244, 243, 0.86) 52%, rgba(255, 240, 240, 0.92));
}

@keyframes pack-joy-rise {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pack-joy-float {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, 14px, 0);
    }
}

@keyframes pack-joy-sheen {
    0%,
    20% {
        transform: translateX(-100%);
    }

    50%,
    100% {
        transform: translateX(100%);
    }
}

@keyframes pack-joy-pulse {
    0% {
        opacity: 0;
        transform: scale(0.98);
    }

    45% {
        opacity: 1;
    }

    100% {
        opacity: 0.16;
        transform: scale(1);
    }
}

@keyframes pack-joy-ready-glow {
    0% {
        box-shadow: 0 0 0 rgba(24, 184, 153, 0);
    }

    35% {
        box-shadow: 0 22px 40px rgba(24, 184, 153, 0.18);
    }

    100% {
        box-shadow: 0 18px 34px rgba(61, 48, 33, 0.08);
    }
}

@media (max-width: 1220px) {
    .detail-top,
    .detail-support-grid-primary,
    .detail-support-grid-secondary {
        grid-template-columns: 1fr;
    }

    .detail-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .detail-panel {
        padding: 16px;
    }

    .detail-hero-card,
    .scan-card,
    .notice-card,
    .order-note-card,
    .history-card,
    .category-control,
    .info-disclosure,
    .product-card {
        border-radius: 24px;
    }

    .summary-grid,
    .product-keyfacts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-layout {
        grid-template-columns: 84px minmax(0, 1fr);
    }

    .product-media,
    .product-image {
        width: 84px;
    }

    .product-image {
        height: 112px;
    }
}

@media (max-width: 640px) {
    .detail-panel {
        padding: 12px;
    }

    .detail-top h2 {
        font-size: clamp(1.8rem, 10vw, 2.5rem);
    }

    .detail-actions,
    .category-actions,
    .scan-row,
    .product-toolbar {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .summary-grid,
    .product-keyfacts {
        grid-template-columns: 1fr;
    }

    .product-layout {
        grid-template-columns: 1fr;
    }

    .product-media,
    .product-image {
        width: 100%;
    }

    .product-image {
        height: auto;
        aspect-ratio: 4 / 5;
    }

    .detail-status-row {
        gap: 8px;
    }

    .detail-status-row .inline-pill {
        min-height: 30px;
        padding: 0 10px;
        font-size: 0.68rem;
    }
}

/* 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);
    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-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-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    overflow: visible;
    padding: 2px 2px 8px;
    align-items: stretch;
    justify-content: stretch;
}

.team-user-card {
    display: grid;
    gap: 14px;
    padding: 18px 18px 14px;
    min-width: 0;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(23, 33, 31, 0.08);
    box-shadow: 0 10px 26px rgba(23, 33, 31, 0.05);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
    height: 100%;
    align-content: 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.92);
}

.team-users-list > .empty-state {
    grid-column: 1 / -1;
}

.team-user-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
}

.team-user-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.team-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(14, 124, 102, 0.12), rgba(14, 124, 102, 0.04));
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.team-user-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.team-user-copy h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.team-user-subline {
    margin: 0;
    color: rgba(23, 33, 31, 0.58);
    font-size: 0.82rem;
    line-height: 1.25;
}

.team-user-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.team-user-role-pill {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 10px;
    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.66rem;
    font-weight: 700;
}

.team-user-tag {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 10px;
    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-aside {
    display: grid;
    justify-items: end;
    align-content: start;
    gap: 10px;
}

.team-user-menu {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(23, 33, 31, 0.72);
    font-size: 1.2rem;
    line-height: 1;
}

.team-user-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 0 10px 0 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(23, 33, 31, 0.08);
    color: var(--ink);
    font-size: 0.72rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(23, 33, 31, 0.04);
}

.team-user-status-pill.is-active {
    background: rgba(243, 252, 248, 0.98);
    border-color: rgba(14, 124, 102, 0.18);
}

.team-user-status-pill.is-passive {
    background: rgba(252, 248, 248, 0.98);
    border-color: rgba(182, 59, 57, 0.18);
}

.team-user-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(14, 124, 102, 0.12);
}

.team-user-status-pill.is-passive .team-user-status-dot {
    background: var(--danger);
    box-shadow: 0 0 0 3px rgba(182, 59, 57, 0.12);
}

.team-user-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(23, 33, 31, 0.08);
    background: rgba(255, 255, 255, 0.92);
}

.team-user-actions .team-action-btn {
    min-height: 44px;
    padding: 0 10px;
    border-radius: 0;
    background: transparent;
    border: 0;
    border-right: 1px solid rgba(23, 33, 31, 0.08);
    box-shadow: none;
    font-size: 0.78rem;
    color: var(--ink);
    justify-content: center;
}

.team-user-actions .team-pin-btn {
    background: rgba(14, 124, 102, 0.05);
    color: var(--accent);
}

.team-user-actions .team-action-btn:last-child {
    border-right: 0;
}

.team-action-icon {
    width: 14px;
    height: 14px;
    display: inline-grid;
    place-items: center;
    color: currentColor;
    flex: none;
}

.team-action-icon svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.team-user-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(23, 33, 31, 0.08);
    background: rgba(255, 255, 255, 0.9);
}

.team-user-stat {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 0;
    background: transparent;
    border: 0;
}

.team-user-stat + .team-user-stat {
    border-left: 1px solid rgba(23, 33, 31, 0.08);
}

.team-user-stat.is-primary {
    background: transparent;
    border-color: transparent;
}

.team-user-stat span {
    color: rgba(23, 33, 31, 0.48);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: none;
}

.team-user-stat strong {
    font-size: 1.12rem;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.team-user-stat small {
    color: rgba(23, 33, 31, 0.56);
    font-size: 0.72rem;
    line-height: 1.35;
}

.team-user-performance {
    display: grid;
    gap: 8px;
}

.team-user-performance-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.team-user-performance-head span {
    font-size: 0.78rem;
    color: var(--ink);
    font-weight: 500;
}

.team-user-performance-head strong {
    font-size: 0.78rem;
    color: var(--accent);
    font-weight: 700;
}

.team-user-performance-track {
    display: flex;
    height: 6px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(23, 33, 31, 0.08);
}

.team-user-performance-fill {
    display: block;
    height: 100%;
}

.team-user-performance-fill.is-correct {
    background: linear-gradient(90deg, #0e7c66, #43b78f);
}

.team-user-performance-fill.is-incorrect {
    background: linear-gradient(90deg, #f03d3d, #ff8f8f);
}

.team-user-performance-legend {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.team-user-performance-good,
.team-user-performance-bad {
    font-size: 0.72rem;
    font-weight: 700;
}

.team-user-performance-good {
    color: var(--accent);
}

.team-user-performance-bad {
    color: var(--danger);
}

.team-user-panels,
.team-user-footer,
.team-user-note,
.team-meta-pill,
.team-mini-panel {
    display: none !important;
}

@media (max-width: 900px) {
    .team-users-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .team-user-top {
        grid-template-columns: 1fr;
    }

    .team-user-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .team-user-actions .team-action-btn:nth-child(2n) {
        border-right: 0;
    }

    .team-user-actions .team-action-btn:nth-child(n + 3) {
        border-top: 1px solid rgba(23, 33, 31, 0.08);
    }

    .team-user-stat-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 540px) {
    .team-users-card {
        padding: 16px;
        border-radius: 24px;
    }

    .team-users-list {
        grid-template-columns: 1fr;
        overflow: visible;
        padding: 2px 0 8px;
    }

    .team-users-head {
        align-items: stretch;
    }

    .team-user-card {
        padding: 14px;
        border-radius: 20px;
        gap: 12px;
    }

    .team-user-avatar {
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }

    .team-user-copy h3 {
        font-size: 0.96rem;
    }

    .team-user-subline,
    .team-user-stat small,
    .team-user-performance-head span,
    .team-user-performance-head strong {
        font-size: 0.74rem;
    }

    .team-user-actions {
        width: 100%;
    }

    .team-user-actions .team-action-btn {
        width: 100%;
        min-height: 32px;
        padding: 0 8px;
        font-size: 0.72rem;
    }

    .team-user-stat strong {
        font-size: 1rem;
    }
}

.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: 16px;
        border-radius: 20px;
        grid-template-columns: 74px minmax(0, 1fr) 36px;
        gap: 14px;
        min-height: 150px;
    }

    .admin-metric-visual-main {
        width: 74px;
        height: 74px;
        border-radius: 18px;
    }

    .admin-metric-visual-main svg {
        width: 30px;
        height: 30px;
    }

    .admin-metric-mini {
        width: 36px;
        height: 36px;
    }

    .admin-metric-modern strong {
        font-size: 2.25rem;
    }

    .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: 14px;
        border-radius: 18px;
        grid-template-columns: 64px minmax(0, 1fr) 32px;
        gap: 12px;
        min-height: 136px;
    }

    .admin-metric-modern-top span {
        font-size: 0.64rem;
    }

    .admin-metric-modern-top small {
        font-size: 0.72rem;
    }

    .admin-metric-visual-main {
        width: 64px;
        height: 64px;
        border-radius: 16px;
    }

    .admin-metric-visual-main svg {
        width: 26px;
        height: 26px;
    }

    .admin-metric-mini {
        width: 32px;
        height: 32px;
    }

    .admin-metric-modern strong {
        font-size: 1.9rem;
    }

    .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: "Inter", "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-x: hidden;
    overflow-y: visible;
}

.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: var(--hero-card-gap);
    padding: var(--hero-card-padding);
    margin-bottom: 4px;
    border-radius: var(--hero-card-radius);
    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%);
}

.home-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
    justify-items: start;
    padding: 0;
    margin-bottom: 18px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

#homeView,
#homeView * {
    font-family: "Inter", "Segoe UI", sans-serif;
}

.home-hero-copy {
    display: grid;
    gap: 4px;
    max-width: none;
    align-self: start;
    position: static;
}

.home-hero-copy h1 {
    margin: 0;
    font-size: clamp(2rem, calc(3vw * var(--heading-scale)), 3.2rem);
    line-height: 0.96;
    letter-spacing: -0.05em;
    color: var(--ink);
}

.home-hero-copy p {
    margin: 0;
    max-width: 92ch;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.6;
}

.home-hero-top {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}

.home-hero-actions {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-left: auto;
    padding-top: 2px;
    z-index: 2;
}

.home-icon-btn {
    position: relative;
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    border: 1px solid rgba(36, 72, 106, 0.14);
    background: rgba(255, 255, 255, 0.94);
    color: #18344a;
    box-shadow: 0 8px 20px rgba(16, 61, 43, 0.06);
    z-index: 3;
}

.home-icon-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-icon-btn:hover,
.home-icon-btn:focus-visible {
    border-color: rgba(14, 124, 102, 0.28);
    color: var(--accent);
    box-shadow: 0 10px 24px rgba(16, 61, 43, 0.1);
    z-index: 3;
}

.home-notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: #e76f70;
    color: #fff;
    font-size: 0.66rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 8px 16px rgba(231, 111, 112, 0.26);
}

.home-feedback-button {
    min-height: 46px;
    padding-inline: 14px;
    gap: 10px;
    border-radius: 14px;
    border-color: rgba(36, 72, 106, 0.14);
    background: rgba(255, 255, 255, 0.96);
    color: var(--ink);
    box-shadow: 0 8px 20px rgba(16, 61, 43, 0.06);
    z-index: 2;
}

.home-feedback-button__icon {
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    color: var(--accent);
}

.home-feedback-button__icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-notification-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(360px, calc(100vw - 32px));
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(25, 135, 84, 0.12);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 22px 48px rgba(16, 61, 43, 0.14);
    z-index: 1;
}

.home-notification-panel[hidden] {
    display: none !important;
}

.home-notification-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.home-notification-panel-head-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.home-notification-panel-head strong {
    display: block;
    margin-top: 2px;
    color: var(--ink);
    font-size: 1rem;
}

.home-notification-summary {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.home-notification-close {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    border: 1px solid rgba(23, 33, 31, 0.08);
    background: rgba(255, 255, 255, 0.96);
    color: var(--muted);
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
}

.home-notification-close svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
}

.home-notification-list {
    display: grid;
    gap: 10px;
}

.home-notification-banner {
    display: grid;
    gap: 8px;
    padding: 14px 15px;
    border-radius: 16px;
    border: 1px solid rgba(23, 33, 31, 0.08);
    background: linear-gradient(180deg, rgba(247, 250, 247, 0.96), rgba(255, 255, 255, 0.98));
}

.home-notification-banner strong {
    color: var(--ink);
    font-size: 0.95rem;
    line-height: 1.35;
}

.home-notification-banner p {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.45;
}

.home-notification-note-list {
    display: grid;
    gap: 8px;
}

.home-notification-note {
    display: grid;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(23, 33, 31, 0.06);
    background: rgba(247, 250, 247, 0.88);
}

.home-notification-note-label {
    width: fit-content;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(14, 124, 102, 0.12);
    color: var(--accent);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.8;
    text-transform: uppercase;
}

.home-notification-note p {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.45;
}

.home-notification-empty {
    padding: 10px 4px 2px;
    color: var(--muted);
    font-size: 0.88rem;
}

.home-feedback-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 16px;
}

.home-feedback-modal[hidden] {
    display: none;
}

.home-feedback-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(14, 26, 22, 0.38);
    backdrop-filter: blur(5px);
}

.home-feedback-dialog {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    display: grid;
    gap: 14px;
    padding: 22px;
    border-radius: 24px;
    border: 1px solid rgba(25, 135, 84, 0.12);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 54px rgba(16, 61, 43, 0.18);
}

.home-feedback-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.home-feedback-head h3 {
    margin: 4px 0 0;
    font-size: 1.05rem;
    line-height: 1.2;
    color: var(--ink);
}

.home-feedback-close {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(23, 33, 31, 0.1);
    background: rgba(255, 255, 255, 0.96);
    color: var(--muted);
    display: inline-grid;
    place-items: center;
}

.home-feedback-close svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
}

.home-feedback-copy {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.home-feedback-form {
    display: grid;
    gap: 14px;
}

.home-feedback-field {
    display: grid;
    gap: 8px;
}

.home-feedback-field span {
    color: rgba(23, 33, 31, 0.58);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.home-feedback-field textarea {
    width: 100%;
    min-height: 140px;
    resize: vertical;
    border-radius: 18px;
    border: 1px solid rgba(23, 33, 31, 0.1);
    background: rgba(255, 255, 255, 0.98);
    color: var(--ink);
    padding: 14px 16px;
    font: inherit;
    line-height: 1.5;
}

.home-feedback-field textarea:focus {
    outline: none;
    border-color: rgba(14, 124, 102, 0.3);
    box-shadow: 0 0 0 4px rgba(14, 124, 102, 0.1);
}

.home-feedback-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.home-feedback-message {
    min-height: 20px;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.35;
}

.home-feedback-message.is-success {
    color: #1d8f59;
}

.home-feedback-message.is-error {
    color: var(--danger);
}

.home-cargo-card {
    display: grid;
    gap: 14px;
    padding: 22px;
    border-radius: var(--hero-card-radius);
    border: 1px solid rgba(25, 135, 84, 0.12);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 247, 0.95)),
        radial-gradient(circle at top right, rgba(14, 124, 102, 0.08), transparent 26%);
    box-shadow: 0 18px 42px rgba(16, 61, 43, 0.08);
    overflow: hidden;
    align-self: start;
    width: min(100%, var(--home-cargo-width));
    max-width: var(--home-cargo-width);
}

.home-cargo-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: calc(var(--hero-card-gap) + 2px);
}

.home-cargo-head--dashboard {
    padding-bottom: 2px;
}

.home-cargo-head-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.home-cargo-head-copy h2 {
    margin: 0;
    font-size: calc(1.22rem * var(--heading-scale));
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.home-cargo-head-copy p {
    margin: 0;
    max-width: 68ch;
    color: var(--muted);
    font-size: 0.96em;
    line-height: 1.5;
}

.home-cargo-period {
    flex: 0 0 auto;
    min-width: 146px;
    display: grid;
    gap: 6px;
}

.home-cargo-period span {
    color: rgba(23, 33, 31, 0.52);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.home-cargo-period select {
    width: 100%;
    min-height: calc(var(--control-height) - 2px);
    padding: 0 12px;
    border-radius: var(--control-radius);
    border: 1px solid rgba(23, 33, 31, 0.1);
    background: rgba(255, 255, 255, 0.95);
    color: var(--ink);
    font: inherit;
    box-shadow: 0 4px 10px rgba(16, 61, 43, 0.05);
}

.home-cargo-period select:focus {
    outline: none;
    border-color: rgba(14, 124, 102, 0.32);
    box-shadow: 0 0 0 4px rgba(14, 124, 102, 0.12);
}

.home-cargo-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.home-cargo-metric {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: calc(var(--control-height) * 2.3);
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(23, 33, 31, 0.07);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 8px 22px rgba(16, 61, 43, 0.04);
}

.home-cargo-metric-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    background: rgba(47, 158, 98, 0.1);
    color: #2f9e62;
}

.home-cargo-metric-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.home-cargo-metric-copy {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.home-cargo-metric span {
    color: rgba(23, 33, 31, 0.54);
    font-size: 0.66em;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-cargo-metric strong {
    font-size: clamp(1.45rem, calc(2vw * var(--heading-scale)), 2rem);
    line-height: 1;
    letter-spacing: -0.05em;
    color: var(--ink);
}

.home-cargo-metric small {
    color: var(--muted);
    font-size: 0.78em;
    line-height: 1.35;
}

.home-cargo-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(380px, 0.85fr);
    gap: 16px;
    align-items: start;
}

.home-cargo-side {
    display: grid;
    gap: 14px;
}

.home-cargo-panel {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(23, 33, 31, 0.07);
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 10px 26px rgba(16, 61, 43, 0.04);
}

.home-cargo-panel--chart .home-cargo-chart-shell {
    min-height: 420px;
}

.home-cargo-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.home-cargo-panel-head--stacked {
    align-items: center;
    gap: 12px;
}

.home-cargo-panel-head h3 {
    margin: 4px 0 0;
    font-size: 1.02rem;
    line-height: 1.2;
}

.home-cargo-panel-head--actions {
    align-items: center;
}

.home-cargo-all-button {
    min-height: 34px;
    padding-inline: 12px;
    border-radius: 999px;
}

.home-cargo-insights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.home-cargo-insight-card {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(23, 33, 31, 0.07);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 20px rgba(16, 61, 43, 0.04);
}

.home-cargo-insight-icon {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    display: inline-grid;
    place-items: center;
    color: #1db96f;
    background: rgba(29, 185, 111, 0.12);
}

.home-cargo-insight-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.home-cargo-insight-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.home-cargo-insight-copy > span {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.home-cargo-insight-copy strong {
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.12;
}

.home-cargo-insight-copy small {
    color: rgba(23, 33, 31, 0.58);
    font-size: 0.74rem;
    line-height: 1.34;
}

.home-cargo-activity-list {
    display: grid;
    gap: 10px;
}

.home-cargo-activity-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(23, 33, 31, 0.07);
    background: rgba(255, 255, 255, 0.88);
}

.home-cargo-activity-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-grid;
    place-items: center;
    color: #2f9e62;
    background: rgba(47, 158, 98, 0.1);
}

.home-cargo-activity-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.home-cargo-activity-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.home-cargo-activity-copy strong {
    font-size: 0.88rem;
    line-height: 1.28;
    color: var(--ink);
}

.home-cargo-activity-copy span {
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.35;
}

.home-cargo-activity-time {
    color: rgba(23, 33, 31, 0.56);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.home-cargo-activity-item--warning .home-cargo-activity-icon {
    color: #c77d00;
    background: rgba(244, 182, 63, 0.14);
}

.home-cargo-activity-item--muted .home-cargo-activity-icon {
    color: #6c7b8c;
    background: rgba(108, 123, 140, 0.12);
}

.home-cargo-status-shell {
    display: grid;
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.home-cargo-status-chart {
    min-height: 320px;
    display: grid;
    place-items: center;
}

.home-cargo-status-chart .apexcharts-canvas {
    margin: 0 auto;
}

.home-cargo-status-legend {
    display: grid;
    gap: 10px;
}

.home-cargo-status-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    min-height: 30px;
}

.home-cargo-status-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 600;
}

.home-cargo-status-label strong {
    font: inherit;
}

.home-cargo-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    flex: 0 0 auto;
    background: var(--status-color);
    box-shadow: 0 0 0 4px rgba(47, 158, 98, 0.12);
}

.home-cargo-status-row strong {
    color: var(--ink);
    font-size: 0.88rem;
}

.home-cargo-status-percent {
    min-width: 42px;
    color: var(--muted);
    text-align: right;
    font-size: 0.8rem;
}

.home-cargo-chart-shell {
    position: relative;
    min-height: calc(var(--control-height) * 6.8);
    padding: calc(var(--list-card-padding) - 2px) calc(var(--list-card-padding) - 4px) calc(var(--list-card-padding) - 6px);
    border-radius: var(--list-card-radius);
    border: 1px solid rgba(23, 33, 31, 0.06);
    background:
        linear-gradient(180deg, rgba(14, 124, 102, 0.04), rgba(255, 255, 255, 0.64)),
        linear-gradient(90deg, rgba(23, 33, 31, 0.03) 0, rgba(23, 33, 31, 0.03) 1px, transparent 1px, transparent 100%);
    overflow: visible;
}

.home-cargo-chart-tooltip {
    display: grid;
    gap: 8px;
    min-width: 180px;
    max-width: 240px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(29, 185, 111, 0.16);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 28px rgba(16, 61, 43, 0.12);
    backdrop-filter: blur(8px);
    pointer-events: none;
}

.home-cargo-chart-tooltip-head {
    display: grid;
    gap: 3px;
}

.home-cargo-chart-tooltip-label {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-cargo-chart-tooltip-head strong {
    color: var(--ink);
    font-size: 0.92rem;
    line-height: 1.25;
}

.home-cargo-chart-tooltip-grid {
    display: grid;
    gap: 8px;
}

.home-cargo-chart-tooltip-row {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.home-cargo-chart-tooltip-row span {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.home-cargo-chart-tooltip-row strong {
    color: #169157;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.1;
}

.home-cargo-chart-shell.is-empty {
    display: grid;
    place-items: center;
}

.home-cargo-chart-shell .uplot {
    width: 100% !important;
    height: 100% !important;
    background: transparent;
}

.home-cargo-chart-shell .u-wrap,
.home-cargo-chart-shell .u-over,
.home-cargo-chart-shell .u-under {
    width: 100% !important;
    height: 100% !important;
}

.home-cargo-chart-shell .u-axis {
    color: rgba(23, 33, 31, 0.5);
    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.home-cargo-chart-shell .u-legend,
.home-cargo-chart-shell .u-cursor-x,
.home-cargo-chart-shell .u-cursor-y,
.home-cargo-chart-shell .u-cursor-pt {
    display: none !important;
}

.home-cargo-empty {
    display: grid;
    gap: 6px;
    justify-items: center;
    text-align: center;
    padding: 18px;
    color: var(--muted);
}

.home-cargo-empty--compact {
    padding: 10px 12px;
    justify-items: start;
    text-align: left;
}

.home-cargo-empty--chart {
    min-height: 100%;
    align-content: center;
}

.home-cargo-empty strong {
    color: var(--ink);
    font-size: 0.96rem;
}

.home-cargo-empty p {
    margin: 0;
    max-width: 32ch;
    font-size: 0.88rem;
    line-height: 1.5;
}

.scanner-hero-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: start;
}

.scanner-hero-copy h1 {
    margin: 0;
    max-width: none;
    font-size: 1.05rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.scanner-hero-side {
    display: grid;
    gap: var(--panel-card-gap);
    justify-items: stretch;
    min-width: 340px;
    width: min(100%, 360px);
}

.scanner-hero-visual {
    display: grid;
    gap: 10px;
    padding: var(--list-card-padding);
    border-radius: var(--list-card-radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(248, 244, 236, 0.92)),
        radial-gradient(circle at top right, rgba(14, 124, 102, 0.08), transparent 28%);
    border: 1px solid rgba(23, 33, 31, 0.08);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.scanner-hero-visual--empty {
    width: min(100%, 380px);
    margin: 6px auto 2px;
    padding: calc(var(--list-card-padding) - 2px);
    border-radius: calc(var(--list-card-radius) - 2px);
    box-shadow: 0 12px 26px rgba(23, 33, 31, 0.05);
}

.scanner-hero-visual--empty .scanner-hero-visual-stage {
    min-height: calc(var(--control-height) * 2.7);
}

.scanner-hero-visual-stage {
    position: relative;
    min-height: calc(var(--control-height) * 2.8);
    border-radius: var(--list-card-radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(242, 247, 244, 0.9)),
        linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    border: 1px solid rgba(23, 33, 31, 0.06);
    overflow: hidden;
}

.scanner-hero-visual-track {
    position: absolute;
    left: 16px;
    right: 88px;
    bottom: 24px;
    height: 14px;
    border-radius: 999px;
    background:
        repeating-linear-gradient(90deg, rgba(23, 33, 31, 0.08) 0 14px, rgba(23, 33, 31, 0.02) 14px 28px);
    box-shadow: inset 0 1px 2px rgba(23, 33, 31, 0.08);
}

.scanner-hero-visual-track::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(28, 139, 116, 0), rgba(28, 139, 116, 0.14), rgba(28, 139, 116, 0));
    animation: scanner-hero-track-flow 2.2s linear infinite;
}

.scanner-hero-scan-gate {
    position: absolute;
    left: 50%;
    bottom: 18px;
    width: 42px;
    height: 54px;
    border-radius: 16px 16px 10px 10px;
    border: 2px solid rgba(28, 139, 116, 0.22);
    background: rgba(255, 255, 255, 0.46);
    transform: translateX(-50%);
    box-shadow: 0 10px 24px rgba(28, 139, 116, 0.08);
}

.scanner-hero-scan-gate__beam {
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 50%;
    width: 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(28, 139, 116, 0), rgba(28, 139, 116, 0.42), rgba(28, 139, 116, 0));
    transform: translateX(-50%);
    animation: scanner-hero-beam-pulse 1.8s ease-in-out infinite;
}

.scanner-hero-package {
    position: absolute;
    left: 18px;
    bottom: 34px;
    width: 52px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(180deg, #f0c28f, #d49c67);
    box-shadow: 0 12px 22px rgba(115, 77, 41, 0.18);
    animation: scanner-hero-package-move 4.2s cubic-bezier(0.38, 0, 0.2, 1) infinite;
}

.scanner-hero-package::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(115, 77, 41, 0.12);
}

.scanner-hero-package__tape {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 8px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(255, 245, 228, 0.82), rgba(255, 230, 194, 0.96));
}

.scanner-hero-package__label {
    position: absolute;
    top: 11px;
    right: 8px;
    width: 16px;
    height: 11px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 0 0 1px rgba(23, 33, 31, 0.06);
}

.scanner-hero-dock {
    position: absolute;
    right: 16px;
    bottom: 18px;
    width: 54px;
    height: 62px;
    display: grid;
    align-content: end;
    gap: 5px;
}

.scanner-hero-dock__slot {
    display: block;
    height: 12px;
    border-radius: 999px;
    background: rgba(23, 33, 31, 0.08);
}

.scanner-hero-visual-meta {
    display: grid;
    gap: 2px;
}

.scanner-hero-visual-meta span {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(23, 33, 31, 0.48);
}

.scanner-hero-visual-meta strong {
    font-size: 0.92rem;
    font-weight: 700;
    color: rgba(23, 33, 31, 0.78);
}

.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: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
}

.scanner-form-hero .field-label {
    margin-bottom: 0;
}

.scanner-row {
    display: block;
}

.scanner-row input {
    width: 100%;
    min-height: 60px;
    border: 1px solid rgba(14, 124, 102, 0.18);
    border-radius: 20px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
    font-weight: 500;
    outline: none;
}

.scanner-input-shell input {
    padding-left: 54px;
    padding-right: 18px;
}

.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-actions,
.scan-row-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.scanner-row-actions > button,
.scan-row-actions > button {
    flex: 1 1 0;
    min-width: 0;
}

.scanner-row-actions .primary-btn,
.scanner-row-actions .scan-camera-toggle,
.scan-row-actions .primary-btn,
.scan-row-actions .scan-camera-toggle {
    min-height: 60px;
    border-radius: 20px;
    padding: 0 16px;
    font-size: 0.92rem;
}

.scanner-row-actions .primary-btn,
.scan-row-actions .primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.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: auto;
        margin-top: 0;
    }

    .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: linear-gradient(135deg, #0c265f, #153a7d 58%, #1b69b3 100%);
    color: #ffffff;
    box-shadow: 0 18px 30px rgba(7, 23, 59, 0.22);
}

.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: var(--hero-card-gap);
    padding: var(--hero-card-padding);
    border-radius: var(--hero-card-radius);
    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: calc(var(--control-height) - 8px);
    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.78em;
    font-weight: 700;
}

.design-page {
    animation: slide-up 620ms ease;
}

.design-layout {
    display: grid;
    gap: 14px;
}

.design-hero-card {
    display: grid;
    gap: 18px;
    padding: 24px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(245, 250, 247, 0.94)),
        radial-gradient(circle at top right, rgba(14, 124, 102, 0.08), transparent 28%);
}

.design-head {
    align-items: flex-start;
    margin-bottom: 0;
}

.design-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;
}

.design-copy {
    margin: 0;
    max-width: 760px;
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.6;
}

.design-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cargo-page {
    animation: slide-up 620ms ease;
    padding-bottom: 112px;
}

.cargo-layout {
    display: grid;
}

.cargo-hero-card {
    display: grid;
    gap: var(--hero-card-gap);
    padding: var(--hero-card-padding);
    border-radius: var(--hero-card-radius);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(243, 247, 251, 0.94)),
        radial-gradient(circle at top right, rgba(35, 110, 186, 0.1), transparent 30%);
}

.cargo-head {
    align-items: flex-start;
    gap: var(--panel-card-gap);
    margin-bottom: 0;
}

.cargo-head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--card-gap);
    justify-content: flex-end;
}

.cargo-copy {
    margin: 0;
    color: var(--muted);
    font-size: 0.96em;
}

.cargo-workbench {
    display: grid;
    grid-template-columns: minmax(220px, var(--cargo-workbench-aside-width)) minmax(0, 1fr);
    align-items: start;
    gap: var(--card-gap);
}

.cargo-company-panel {
    display: grid;
    gap: var(--list-card-gap);
    border: 1px solid rgba(27, 38, 59, 0.1);
    border-radius: var(--list-card-radius);
    padding: var(--list-card-padding);
    background: rgba(255, 255, 255, 0.78);
}

.cargo-company-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 22px;
}

.cargo-company-panel-head .eyebrow {
    margin: 0;
}

.cargo-company-grid {
    display: grid;
    gap: 8px;
}

.cargo-company-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: calc(var(--list-card-padding) - 6px);
    border-radius: calc(var(--list-card-radius) - 6px);
    border: 1px solid rgba(27, 38, 59, 0.12);
    background: rgba(255, 255, 255, 0.85);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.cargo-company-card:hover {
    border-color: rgba(14, 124, 102, 0.35);
    box-shadow: 0 10px 18px rgba(23, 33, 31, 0.08);
    transform: translateY(-1px);
}

.cargo-company-card.is-active {
    border-color: rgba(14, 124, 102, 0.62);
    box-shadow: 0 10px 20px rgba(14, 124, 102, 0.18);
    background: linear-gradient(135deg, rgba(235, 250, 246, 0.86), rgba(255, 255, 255, 0.95));
}

.cargo-company-card-main {
    min-width: 0;
    display: grid;
    grid-template-columns: calc(var(--control-height) - 0px) minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.cargo-company-card-content {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.cargo-company-card-title {
    overflow: hidden;
    font-size: 0.94em;
    line-height: 1.25;
    color: var(--ink);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cargo-company-card-meta {
    overflow: hidden;
    font-size: 0.82em;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cargo-company-logo {
    width: calc(var(--control-height) - 0px);
    height: calc(var(--control-height) - 0px);
    display: inline-grid;
    place-items: center;
    border-radius: calc(var(--control-radius) - 4px);
    border: 1px solid rgba(27, 38, 59, 0.12);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0;
    overflow: hidden;
    box-shadow: inset 0 -10px 18px rgba(0, 0, 0, 0.08);
}

.cargo-company-logo-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.cargo-company-logo-image + .cargo-company-logo-fallback {
    display: none;
}

.cargo-company-logo-image[hidden] + .cargo-company-logo-fallback {
    display: inline;
}

.cargo-company-logo--trendyol {
    width: calc(var(--control-height) - 0px);
    height: calc(var(--control-height) - 0px);
    padding: 0;
    background: #ffffff;
    color: #111827;
    border-radius: calc(var(--control-radius) - 4px);
    border-color: rgba(15, 23, 42, 0.16);
    box-shadow: inset 0 -6px 12px rgba(0, 0, 0, 0.03);
}

.cargo-company-logo--dfast {
    background: #121826;
}

.cargo-company-logo--ups {
    background: #351c15;
    color: #ffb500;
}

.cargo-company-logo--mng {
    width: calc(var(--control-height) * 1.95);
    height: calc(var(--control-height) * 0.66);
    padding: 0 10px;
    background: #ffffff;
    color: #e31e24;
    border-radius: calc(var(--control-radius) - 4px);
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: inset 0 -6px 12px rgba(0, 0, 0, 0.02);
}

.cargo-order-hover-brand-logo--mng {
    width: calc(var(--control-height) * 1.45);
    height: calc(var(--control-height) * 0.48);
    border-radius: calc(var(--control-radius) - 8px);
}

.cargo-company-logo--dhl {
    background: #ffcc00;
    color: #d40511;
}

.cargo-company-logo--aras {
    background: #004b93;
}

.cargo-company-logo--yurtici {
    background: #233a8b;
}

.cargo-company-logo--surat {
    background: #ef7d00;
}

.cargo-company-logo--ptt {
    background: #f5c400;
    color: #203a8f;
}

.cargo-company-logo--hepsijet {
    background: #5724c9;
}

.cargo-company-logo--kolay {
    background: #00a1df;
}

.cargo-company-logo--depot {
    background: #0f766e;
}

.cargo-company-logo--other {
    background: #475569;
}

.cargo-company-order-actions {
    display: inline-grid;
    gap: 4px;
}

.cargo-company-order-btn {
    width: 28px;
    height: 25px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(27, 38, 59, 0.12);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}

.cargo-company-order-btn:hover:not(:disabled) {
    border-color: rgba(14, 124, 102, 0.36);
    background: rgba(238, 252, 247, 0.95);
    color: #0e7c66;
}

.cargo-company-order-btn:disabled {
    cursor: not-allowed;
    opacity: 0.36;
}

.cargo-orders-shell {
    display: grid;
    gap: var(--list-card-gap);
    border: 1px solid rgba(27, 38, 59, 0.1);
    border-radius: var(--panel-card-radius);
    padding: var(--panel-card-padding);
    background: rgba(255, 255, 255, 0.88);
}

.cargo-orders-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cargo-orders-head h3 {
    margin: 3px 0 0;
}

.cargo-pagination {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
}

.cargo-pagination-buttons {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    min-width: 0;
}

.cargo-pagination-select,
.cargo-pagination-btn {
    height: 34px;
    border: 1px solid rgba(27, 38, 59, 0.12);
    border-radius: 4px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 0.86rem;
}

.cargo-pagination-select {
    min-width: 80px;
    padding: 0 30px 0 10px;
}

.cargo-pagination-size {
    min-width: 60px;
}

.cargo-pagination-btn {
    min-width: 36px;
    padding: 0 10px;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    line-height: 1;
    transition: border-color 140ms ease, color 140ms ease, background-color 140ms ease;
}

.cargo-pagination-btn:hover:not(:disabled) {
    border-color: rgba(245, 158, 11, 0.54);
    color: #9a5b00;
}

.cargo-pagination-btn.is-active {
    border-color: #f59e0b;
    color: #9a5b00;
    background: rgba(245, 158, 11, 0.06);
}

.cargo-pagination-btn:disabled {
    cursor: not-allowed;
    opacity: 0.42;
    background: rgba(248, 250, 252, 0.72);
}

.cargo-order-list {
    display: grid;
    gap: 10px;
}

.cargo-order-item {
    position: relative;
    overflow: visible;
    display: grid;
    grid-template-columns: minmax(calc(var(--control-height) * 2.8), 170px) minmax(calc(var(--control-height) * 5), 1fr) auto;
    align-items: center;
    gap: var(--list-card-gap);
    border: 1px dashed rgba(27, 38, 59, 0.18);
    border-radius: var(--list-item-radius);
    padding: calc(var(--list-card-padding) - 4px) var(--list-card-padding) calc(var(--list-card-padding) + 2px);
    background: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.cargo-order-item:hover {
    border-color: rgba(14, 124, 102, 0.28);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.cargo-order-item.is-selected {
    border-color: rgba(14, 124, 102, 0.48);
    background: rgba(14, 124, 102, 0.06);
    box-shadow: 0 10px 28px rgba(14, 124, 102, 0.08);
}

.cargo-order-number-trigger {
    cursor: default;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 4px 10px;
    background: rgba(17, 33, 31, 0.04);
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.cargo-order-number-trigger:hover,
.cargo-order-number-trigger:focus-visible {
    background: rgba(14, 124, 102, 0.12);
    color: var(--accent);
    transform: translateY(-1px);
    outline: none;
}

.cargo-order-number-trigger.is-active {
    background: rgba(14, 124, 102, 0.12);
    color: var(--accent);
}

.cargo-order-item.is-disabled {
    background: rgba(241, 243, 246, 0.85);
}

.cargo-order-select {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--ink);
    padding: 6px 8px;
    border-radius: calc(var(--control-radius) - 2px);
    background: rgba(17, 33, 31, 0.02);
    user-select: none;
}

.cargo-order-select input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    accent-color: var(--accent);
}

.cargo-order-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    color: var(--muted);
    font-size: 0.84rem;
}

.cargo-order-actions {
    display: inline-flex;
    gap: 8px;
    justify-content: flex-end;
}

.cargo-order-hover-card {
    position: absolute;
    top: calc(100% + 4px);
    left: 12px;
    right: auto;
    width: min(332px, calc(100vw - 24px));
    display: none;
    gap: 12px;
    padding: var(--list-card-padding);
    border-radius: var(--panel-card-radius);
    border: 1px solid rgba(27, 38, 59, 0.12);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96)),
        rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 44px rgba(30, 41, 59, 0.14);
    backdrop-filter: blur(12px);
    z-index: 4;
    transform-origin: top left;
}

.cargo-order-hover-card.is-open {
    display: grid;
}

.cargo-order-hover-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    height: 12px;
    background: transparent;
}

.cargo-order-item:has(.cargo-order-number-trigger:hover) .cargo-order-hover-card,
.cargo-order-item:has(.cargo-order-hover-card:hover) .cargo-order-hover-card,
.cargo-order-item:has(.cargo-order-number-trigger:focus-visible) .cargo-order-hover-card,
.cargo-order-item:focus-within .cargo-order-hover-card {
    display: grid;
}

.cargo-order-hover-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.cargo-order-hover-top-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    font-weight: 700;
}

.cargo-order-hover-top-value {
    font-size: 0.98rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.cargo-order-hover-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 26px;
}

.cargo-order-hover-row--wrap {
    align-items: flex-start;
}

.cargo-order-hover-row-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 0 0 auto;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    font-weight: 700;
}

.cargo-order-hover-row strong {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
    max-width: 62%;
    text-align: right;
    font-size: 0.88rem;
    line-height: 1.35;
    color: var(--ink);
    word-break: break-word;
}

.cargo-order-hover-row--tracking strong {
    max-width: 100%;
}

.cargo-order-hover-row-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    color: var(--accent);
}

.cargo-order-hover-row-icon svg,
.cargo-order-hover-action-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.cargo-order-hover-status {
    color: var(--accent);
}

.cargo-order-hover-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(14, 124, 102, 0.12);
}

.cargo-order-hover-brand {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    text-align: right;
}

.cargo-order-hover-brand-logo {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: #fff;
    border: 1px solid rgba(27, 38, 59, 0.08);
}

.cargo-order-hover-brand-logo--trendyol {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

.cargo-order-hover-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.cargo-order-hover-brand-logo--fallback {
    background: linear-gradient(135deg, #ff6a2d, #ff9a1f);
    color: #fff;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.cargo-order-hover-tracking {
    max-width: 100%;
}

.cargo-order-hover-copy-btn {
    width: 26px;
    height: 26px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(27, 38, 59, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--muted);
    flex: 0 0 auto;
    cursor: pointer;
}

.cargo-order-hover-copy-btn:hover {
    border-color: rgba(14, 124, 102, 0.24);
    color: var(--accent);
}

.cargo-order-hover-products {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.cargo-order-hover-thumb-strip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.cargo-order-hover-thumb {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    overflow: visible;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef2f7;
    border: 1px solid rgba(27, 38, 59, 0.08);
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 0.56rem;
    font-weight: 800;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.cargo-order-hover-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cargo-order-hover-thumb-preview {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 112px;
    height: 112px;
    padding: 8px;
    border-radius: 20px;
    background: rgba(252, 250, 246, 0.98);
    border: 1px solid rgba(23, 33, 31, 0.08);
    box-shadow: 0 20px 42px rgba(23, 33, 31, 0.18);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
    transform-origin: center;
    transition: opacity 180ms ease, transform 220ms ease;
    pointer-events: none;
    z-index: 6;
}

.cargo-order-hover-thumb-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 12px;
}

.cargo-order-hover-thumb:hover .cargo-order-hover-thumb-preview,
.cargo-order-hover-thumb:focus-within .cargo-order-hover-thumb-preview {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.cargo-order-hover-thumb-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 12px;
    background: rgba(14, 124, 102, 0.1);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    flex: 0 0 auto;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.cargo-order-hover-row--products:hover .cargo-order-hover-thumb,
.cargo-order-hover-row--products:hover .cargo-order-hover-thumb-more,
.cargo-order-hover-row--products:focus-within .cargo-order-hover-thumb,
.cargo-order-hover-row--products:focus-within .cargo-order-hover-thumb-more {
    transform: scale(1.08);
    box-shadow: 0 10px 20px rgba(23, 33, 31, 0.1);
    border-color: rgba(14, 124, 102, 0.18);
}

.cargo-order-hover-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 2px;
}

.cargo-order-hover-action {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    border: 1px solid rgba(27, 38, 59, 0.14);
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
}

.cargo-order-hover-action--primary {
    background: rgba(14, 124, 102, 0.08);
    color: var(--accent);
}

.cargo-order-hover-action--ghost {
    background: #fff;
    color: var(--ink);
}

.cargo-order-hover-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
}

.cargo-order-hover-action--primary:hover {
    background: rgba(14, 124, 102, 0.14);
}

.cargo-order-hover-action--ghost:hover {
    background: rgba(17, 33, 31, 0.04);
}

.cargo-order-print-btn {
    min-width: 94px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding-inline: 12px;
}

.cargo-order-print-btn-icon,
.cargo-order-print-btn-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.cargo-order-print-btn-icon svg,
.cargo-order-print-btn-check svg {
    width: 16px;
    height: 16px;
    display: block;
}

.cargo-order-print-btn-icon {
    color: currentColor;
}

.cargo-order-print-btn-label {
    font-size: 0.88rem;
    font-weight: 700;
}

.cargo-order-print-btn-check {
    margin-left: 1px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(15, 157, 88, 0.14);
    color: #0f9d58;
}

.cargo-order-note {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 0.8rem;
    color: #8a3f3f;
}

.cargo-orders-footnote {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.cargo-selection-bar {
    position: fixed;
    left: 50%;
    bottom: 22px;
    width: min(320px, calc(100vw - 24px));
    transform: translateX(-50%);
    z-index: 24;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 11px;
    padding: 10px 11px;
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(248, 242, 232, 0.94)),
        rgba(255, 253, 248, 0.94);
    color: var(--ink);
    box-shadow: 0 18px 34px rgba(58, 46, 34, 0.12);
    border: 1px solid rgba(23, 33, 31, 0.08);
    backdrop-filter: blur(14px);
    animation: cargo-selection-pop 160ms ease-out both;
}

.cargo-selection-bar.is-visible {
    display: flex;
}

.cargo-selection-bar-copy {
    min-width: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.cargo-selection-bar-copy strong {
    min-width: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    height: 30px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid rgba(14, 124, 102, 0.15);
}

.cargo-selection-bar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: flex-end;
}

.cargo-selection-bar .secondary-btn {
    background: rgba(255, 255, 255, 0.84);
    border-color: rgba(23, 33, 31, 0.08);
    color: var(--ink);
    min-height: 36px;
    min-width: 36px;
    padding: 0;
    border-radius: 999px;
    font-size: 0.9rem;
    box-shadow: 0 7px 18px rgba(58, 46, 34, 0.08);
    transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease, border-color 140ms ease;
}

.cargo-selection-bar .secondary-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(14, 124, 102, 0.18);
    transform: translateY(-1px);
}

.cargo-selection-bar .primary-btn {
    background: linear-gradient(135deg, rgba(14, 124, 102, 0.22), rgba(14, 124, 102, 0.12));
    color: var(--accent);
    border: 1px solid rgba(14, 124, 102, 0.2);
    box-shadow: 0 10px 20px rgba(14, 124, 102, 0.14);
    min-height: 36px;
    min-width: 36px;
    padding: 0;
    border-radius: 999px;
    font-size: 0.9rem;
    transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease, border-color 140ms ease;
}

.cargo-selection-bar .primary-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(14, 124, 102, 0.28), rgba(14, 124, 102, 0.16));
    transform: translateY(-1px);
}

.cargo-bar-icon-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cargo-bar-icon-button::before {
    content: "";
    width: 16px;
    height: 16px;
    display: block;
    background-color: currentColor;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
}

.cargo-bar-icon-button--clear::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7.4 6.2 12 10.8l4.6-4.6 1.4 1.4-4.6 4.6 4.6 4.6-1.4 1.4-4.6-4.6-4.6 4.6-1.4-1.4 4.6-4.6-4.6-4.6z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7.4 6.2 12 10.8l4.6-4.6 1.4 1.4-4.6 4.6 4.6 4.6-1.4 1.4-4.6-4.6-4.6 4.6-1.4-1.4 4.6-4.6-4.6-4.6z'/%3E%3C/svg%3E");
}

.cargo-bar-icon-button--receipt::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6 3h9l3 3v15l-2-1.2L14 21l-2-1.2L10 21l-2-1.2L6 21V3zm2 2v12.9l1-.6 2 1.2 2-1.2 2 1.2 1-.6V7.2L13.8 5H8zm1.5 4h5v1.5h-5V9zm0 3h5v1.5h-5V12zm0 3h3.8v1.5H9.5V15z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6 3h9l3 3v15l-2-1.2L14 21l-2-1.2L10 21l-2-1.2L6 21V3zm2 2v12.9l1-.6 2 1.2 2-1.2 2 1.2 1-.6V7.2L13.8 5H8zm1.5 4h5v1.5h-5V9zm0 3h5v1.5h-5V12zm0 3h3.8v1.5H9.5V15z'/%3E%3C/svg%3E");
}

.cargo-bar-icon-button--barcode::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 6h2v12H4V6zm4 0h1v12H8V6zm3 0h3v12h-3V6zm5 0h1v12h-1V6zm3 0h2v12h-2V6zM4 4h16v2H4V4zm0 14h16v2H4v-2z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 6h2v12H4V6zm4 0h1v12H8V6zm3 0h3v12h-3V6zm5 0h1v12h-1V6zm3 0h2v12h-2V6zM4 4h16v2H4V4zm0 14h16v2H4v-2z'/%3E%3C/svg%3E");
}

.cargo-selection-bar .cargo-bar-icon-button--clear {
    background: rgba(255, 255, 255, 0.9);
}

.cargo-selection-bar .cargo-bar-icon-button--receipt {
    color: #9a5e24;
    background: rgba(255, 245, 232, 0.98);
    border-color: rgba(197, 106, 45, 0.16);
}

.cargo-selection-bar .cargo-bar-icon-button--receipt:hover:not(:disabled) {
    border-color: rgba(197, 106, 45, 0.22);
}

.cargo-selection-bar .cargo-bar-icon-button--barcode {
    color: #0f7c66;
}

@keyframes cargo-reprint-in {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes cargo-reprint-out {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
}

.cargo-reprint-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 20px;
}

.cargo-reprint-modal[hidden] {
    display: none;
}

.cargo-reprint-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 25, 30, 0.46);
    backdrop-filter: blur(10px);
}

.cargo-reprint-dialog {
    position: relative;
    width: min(430px, calc(100vw - 32px));
    padding: 20px;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(248, 242, 232, 0.96)),
        rgba(255, 253, 248, 0.98);
    border: 1px solid rgba(23, 33, 31, 0.08);
    box-shadow: 0 28px 70px rgba(58, 46, 34, 0.18);
    color: var(--ink);
    animation: cargo-reprint-in 180ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cargo-reprint-modal.is-leaving .cargo-reprint-dialog {
    animation: cargo-reprint-out 160ms ease-in both;
}

.cargo-reprint-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cargo-reprint-icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(14, 124, 102, 0.18), rgba(14, 124, 102, 0.1));
    border: 1px solid rgba(14, 124, 102, 0.16);
    position: relative;
}

.cargo-reprint-icon::before {
    content: "";
    position: absolute;
    inset: 11px;
    background: var(--accent);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 4h10l3 3v13H4V7l3-3zm0 2-1 1v2h12V7l-1-1H7zm-1 7h12v5H6v-5zm2 1.5v2h3v-2H8zm4 0v2h4v-2h-4z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 4h10l3 3v13H4V7l3-3zm0 2-1 1v2h12V7l-1-1H7zm-1 7h12v5H6v-5zm2 1.5v2h3v-2H8zm4 0v2h4v-2h-4z'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.cargo-reprint-copy {
    min-width: 0;
}

.cargo-reprint-copy h2 {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.2;
}

.cargo-reprint-summary {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.cargo-reprint-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 18px;
}

.cargo-reprint-actions .secondary-btn,
.cargo-reprint-actions .primary-btn {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
}

.cargo-reprint-actions .secondary-btn {
    background: rgba(255, 255, 255, 0.9);
}

.cargo-reprint-actions .primary-btn {
    background: linear-gradient(135deg, rgba(14, 124, 102, 0.22), rgba(14, 124, 102, 0.12));
    color: var(--accent);
    border: 1px solid rgba(14, 124, 102, 0.18);
}

@keyframes cargo-selection-pop {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

@media (max-width: 960px) {
    .cargo-head-actions {
        justify-content: flex-start;
    }

    .cargo-order-item {
        grid-template-columns: 1fr;
    }

    .cargo-pagination {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    .cargo-pagination-buttons {
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .cargo-pagination-select {
        width: 100%;
    }

    .cargo-order-meta {
        grid-template-columns: 1fr;
    }

    .cargo-order-actions {
        justify-content: flex-start;
    }

    .cargo-order-hover-card {
        left: 8px;
        right: auto;
        width: min(320px, calc(100vw - 16px));
    }

    .cargo-order-hover-actions {
        grid-template-columns: 1fr;
    }

    .cargo-order-hover-row strong {
        max-width: 68%;
    }

    .cargo-selection-bar {
        width: min(280px, calc(100vw - 16px));
        bottom: 12px;
        padding: 9px 9px;
    }

    .cargo-selection-bar-actions {
        gap: 6px;
    }

    .cargo-selection-bar-actions .secondary-btn,
    .cargo-selection-bar-actions .primary-btn {
        flex: 0 0 auto;
        min-height: 34px;
        min-width: 34px;
        padding: 0;
    }

    .cargo-reprint-dialog {
        width: min(380px, calc(100vw - 24px));
        padding: 18px;
    }

    .cargo-reprint-actions {
        flex-direction: column-reverse;
    }

    .cargo-reprint-actions .secondary-btn,
    .cargo-reprint-actions .primary-btn {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 640px) {
    .cargo-workbench {
        grid-template-columns: 1fr;
    }

    .cargo-company-panel {
        padding: 10px;
    }

    .cargo-selection-bar {
        width: min(250px, calc(100vw - 12px));
        padding: 8px 9px;
    }

    .cargo-selection-bar-actions {
        justify-content: flex-end;
        flex-wrap: nowrap;
    }
}

@keyframes scanner-hero-track-flow {
    from {
        transform: translateX(-32%);
    }

    to {
        transform: translateX(132%);
    }
}

@keyframes scanner-hero-beam-pulse {
    0%,
    100% {
        opacity: 0.24;
        transform: translateX(-50%) scaleY(0.86);
    }

    50% {
        opacity: 0.72;
        transform: translateX(-50%) scaleY(1.04);
    }
}

@keyframes scanner-hero-package-move {
    0% {
        transform: translateX(0) translateY(0) scale(0.98);
        opacity: 0.88;
    }

    52% {
        transform: translateX(128px) translateY(0) scale(1);
        opacity: 1;
    }

    72% {
        transform: translateX(164px) translateY(-2px) scale(0.98);
        opacity: 0.94;
    }

    100% {
        transform: translateX(210px) translateY(4px) scale(0.9);
        opacity: 0;
    }
}

@media (max-width: 1100px) {
    .scanner-hero-side {
        min-width: 0;
        width: 100%;
    }

    .scanner-hero-visual {
        order: -1;
    }
}

@media (max-width: 640px) {
    .scanner-hero-visual {
        padding: 12px;
        border-radius: 20px;
    }

    .scanner-hero-visual-stage {
        min-height: 102px;
    }

    .scanner-hero-package {
        width: 46px;
        height: 34px;
    }

    .scanner-hero-package__label {
        width: 14px;
        height: 10px;
    }

    .scanner-hero-scan-gate {
        width: 36px;
        height: 48px;
    }

    .scanner-hero-dock {
        width: 46px;
    }

    .scanner-hero-visual--empty {
        width: min(100%, 320px);
        margin-top: 2px;
    }

    .scanner-hero-visual--empty .scanner-hero-visual-stage {
        min-height: 96px;
    }
}

@media (prefers-reduced-motion: reduce) {
}

.supply-copy {
    margin: 0;
    max-width: 900px;
    color: var(--muted);
    font-size: 0.96em;
    line-height: 1.6;
}

.supply-search-shell {
    display: grid;
    gap: var(--panel-card-gap);
    width: min(100%, var(--supply-shell-width));
    margin: 0 auto;
    text-align: center;
}

.supply-search-form {
    display: grid;
    gap: var(--card-gap);
}

.supply-search-form .field-label {
    justify-self: center;
}

.supply-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--card-gap);
    align-items: center;
}

.supply-search-row input {
    width: 100%;
    min-height: calc(var(--control-height) + 10px);
    padding: 0 16px;
    border-radius: calc(var(--control-radius) + 4px);
    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: calc(var(--control-height) + 10px);
    border-radius: calc(var(--control-radius) + 4px);
}

.supply-list-section,
.supply-history-section {
    display: grid;
    gap: var(--panel-card-gap);
    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: calc(var(--control-height) - 10px);
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(23, 33, 31, 0.05);
    color: rgba(23, 33, 31, 0.68);
    font-size: 0.76em;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.supply-saved-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--card-gap);
    align-items: start;
}

.supply-history-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--card-gap);
    align-items: start;
}

.supply-results {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--card-gap);
    align-items: start;
}

.supply-product-card {
    display: grid;
    grid-template-columns: clamp(96px, calc(var(--control-height) * 2.45), 132px) minmax(0, 1fr);
    gap: var(--card-gap);
    padding: var(--supply-product-padding);
    border-radius: var(--supply-product-radius);
    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: calc(var(--supply-product-radius) - 4px);
    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: var(--panel-card-gap);
}

.supply-product-variant-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.supply-product-meta {
    display: grid;
    gap: 4px;
}

.supply-product-eyebrow {
    margin: 0;
    color: rgba(23, 33, 31, 0.48);
    font-size: 0.68em;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.supply-product-copy h3 {
    margin: 0;
    font-size: calc(1.08rem * var(--heading-scale));
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.supply-product-code {
    margin: 0;
    color: var(--muted);
    font-size: 0.8em;
}

.supply-saved-meta {
    margin: 0;
    color: rgba(23, 33, 31, 0.52);
    font-size: 0.76em;
    line-height: 1.45;
}

.supply-history-card {
    display: grid;
    grid-template-columns: clamp(76px, calc(var(--control-height) * 1.92), 96px) minmax(0, 1fr);
    gap: var(--card-gap);
    padding: var(--supply-history-padding);
    border-radius: var(--supply-history-radius);
    border: 1px solid rgba(23, 33, 31, 0.06);
    background: rgba(248, 250, 249, 0.88);
}

.supply-history-media {
    width: 100%;
    aspect-ratio: 4 / 5;
    border: 0;
    padding: 0;
    border-radius: calc(var(--supply-history-radius) - 4px);
    overflow: hidden;
    background: rgba(23, 33, 31, 0.05);
    cursor: pointer;
}

.supply-history-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.supply-history-media.is-placeholder {
    display: grid;
    place-items: center;
    color: rgba(23, 33, 31, 0.5);
    font-size: 0.74em;
    cursor: default;
}

.supply-history-copy {
    display: grid;
    gap: var(--panel-card-gap);
    min-width: 0;
}

.supply-history-detail,
.supply-history-note {
    margin: 0;
    color: rgba(23, 33, 31, 0.66);
    font-size: 0.8em;
    line-height: 1.45;
}

.supply-history-note {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(23, 33, 31, 0.04);
}

.supply-product-chip-group {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.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: calc(var(--control-height) - 4px);
    padding: 0 14px;
    border-radius: 14px;
    font-size: 0.8em;
}

.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-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.supply-note-meta-pill {
    display: inline-flex;
    align-items: center;
    min-height: calc(var(--control-height) - 18px);
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(23, 33, 31, 0.04);
    color: rgba(23, 33, 31, 0.58);
    font-size: 0.72em;
    font-weight: 600;
}

.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-previous {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(157, 43, 34, 0.05);
    border: 1px dashed rgba(157, 43, 34, 0.18);
}

.supply-note-previous-label {
    color: rgba(157, 43, 34, 0.82);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.supply-note-previous p {
    margin: 0;
    color: rgba(23, 33, 31, 0.74);
    font-size: 0.82rem;
    line-height: 1.5;
    white-space: pre-wrap;
}

.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: var(--panel-card-padding);
    border-radius: var(--panel-card-radius);
    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.7em;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.supply-panel strong {
    font-size: calc(1.18rem * var(--heading-scale));
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.supply-panel p {
    margin: 0;
    color: var(--muted);
    font-size: 0.88em;
    line-height: 1.5;
}

@media (max-width: 1600px) {
    .supply-results {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1280px) {
    .supply-results {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .supply-results {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .supply-hero-card {
        padding: 18px;
    }

    .supply-saved-list,
    .supply-history-list,
    .supply-results {
        grid-template-columns: 1fr;
    }

    .supply-search-row {
        grid-template-columns: 1fr;
    }

    .supply-search-row,
    .supply-history-card,
    .supply-product-card {
        grid-template-columns: 1fr;
    }

    .supply-search-row .primary-btn,
    .supply-history-media,
    .supply-product-media {
        width: 100%;
    }

    .supply-product-variant-grid,
    .supply-results {
        grid-template-columns: 1fr;
    }

    .supply-history-media,
    .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: minmax(580px, 0.8fr) minmax(0, 1.7fr);
    gap: 20px;
    align-items: start;
    min-height: calc(100vh - 250px);
}

.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, 1fr);
    gap: 16px;
    align-items: start;
}

.admin-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.admin-metric-card,
.admin-chart-card {
    min-width: 0;
    border-radius: 24px;
    padding: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(247, 243, 237, 0.92));
    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;
    grid-template-columns: 84px minmax(0, 1fr) 40px;
    gap: 18px;
    align-items: center;
    min-height: 168px;
}

.admin-metric-visual {
    display: grid;
    place-items: center;
}

.admin-metric-visual-main,
.admin-metric-mini {
    display: inline-grid;
    place-items: center;
    color: var(--accent);
    border: 1px solid rgba(14, 124, 102, 0.12);
}

.admin-metric-visual-main {
    width: 84px;
    height: 84px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.76);
}

.admin-metric-mini {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    justify-self: end;
}

.admin-metric-visual-main svg,
.admin-metric-mini svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.admin-metric-mini svg {
    width: 18px;
    height: 18px;
}

.admin-metric-copy {
    display: grid;
    gap: 6px;
}

.admin-metric-modern strong {
    display: block;
    margin: 0;
    font-size: 2.9rem;
    line-height: 1;
    letter-spacing: -0.05em;
}

.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-role-chart-card {
    padding-bottom: 18px;
}

.admin-role-chart-shell {
    position: relative;
    min-height: 286px;
}

.admin-role-chart-shell.is-empty {
    display: grid;
    place-items: center;
}

.admin-role-empty {
    display: grid;
    gap: 6px;
    justify-items: center;
    text-align: center;
    padding: 18px 12px;
    color: var(--muted);
}

.admin-role-empty strong {
    color: var(--ink);
    font-size: 0.98rem;
}

.admin-role-empty p {
    margin: 0;
    max-width: 28ch;
    font-size: 0.88rem;
    line-height: 1.45;
}

.admin-role-legend {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.admin-role-legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 12px 12px 11px;
    border-radius: 18px;
    background: rgba(23, 33, 31, 0.03);
    border: 1px solid rgba(23, 33, 31, 0.05);
}

.admin-role-legend-swatch {
    flex: none;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--admin-role-swatch, #1db96f);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.72);
}

.admin-role-legend-copy {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.admin-role-legend-copy strong {
    display: block;
    font-size: 0.9rem;
    line-height: 1.2;
}

.admin-role-legend-copy span {
    color: var(--muted);
    font-size: 0.77rem;
    line-height: 1.35;
}

.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: var(--panel-card-padding);
    position: sticky;
    top: 24px;
}

.queue-strip {
    padding: var(--panel-card-padding);
    position: sticky;
    top: 18px;
    border-radius: var(--panel-card-radius);
    background:
        linear-gradient(180deg, rgba(255, 254, 250, 0.94), rgba(250, 246, 240, 0.88)),
        radial-gradient(circle at top left, rgba(255, 204, 159, 0.12), transparent 28%);
    min-height: calc(100vh - 268px);
}

.queue-strip .section-head {
    align-items: center;
    margin-bottom: var(--panel-card-gap);
}

.queue-strip .ghost-btn {
    min-height: var(--control-height);
    padding: 0 calc(var(--control-height) * 0.35);
    border: 1px solid rgba(23, 33, 31, 0.08);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 10px 20px rgba(58, 46, 34, 0.04);
}

.queue-strip-title {
    display: grid;
    gap: 8px;
}

.queue-strip-subtitle {
    margin: 0;
    max-width: 60ch;
    color: rgba(23, 33, 31, 0.56);
    font-size: 0.88em;
    line-height: 1.5;
}

.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: calc(1.35rem * var(--heading-scale));
    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: var(--control-radius);
    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: var(--control-radius);
    background: var(--accent);
    color: white;
    min-height: 48px;
}

.secondary-btn {
    padding: 12px 16px;
    border-radius: var(--control-radius);
    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: 12px;
    flex-wrap: wrap;
    padding: 2px 2px 10px;
    border-bottom: 1px solid rgba(23, 33, 31, 0.06);
}

.queue-count-chip {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 13px;
    border-radius: 999px;
    background: rgba(14, 124, 102, 0.1);
    color: var(--accent);
    border: 1px solid rgba(14, 124, 102, 0.12);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.queue-meta-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.queue-meta-kicker {
    color: rgba(23, 33, 31, 0.44);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.queue-active-title {
    color: var(--ink);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.15;
}

.queue-workbench {
    display: grid;
    grid-template-columns: minmax(236px, 276px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.category-rail {
    display: grid;
    gap: 12px;
    align-content: start;
}

.category-rail-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    padding: 0 4px;
}

.category-rail-kicker,
.category-rail-note {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

.category-rail-kicker {
    color: rgba(23, 33, 31, 0.7);
    font-weight: 700;
    text-transform: uppercase;
}

.category-rail-note {
    color: rgba(23, 33, 31, 0.46);
}

.category-tabs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-content: start;
    padding: 10px;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(248, 243, 237, 0.66));
    border: 1px solid rgba(23, 33, 31, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.queue-list-panel {
    min-width: 0;
    display: grid;
    gap: 14px;
    padding: 16px;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(248, 243, 237, 0.62));
    border: 1px solid rgba(23, 33, 31, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.category-chip {
    display: grid;
    gap: 8px;
    text-align: left;
    width: 100%;
    padding: 15px 16px 14px;
    border: 1px solid rgba(23, 33, 31, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.74);
    color: inherit;
    box-shadow: 0 10px 18px rgba(58, 46, 34, 0.03);
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
    position: relative;
    overflow: hidden;
}

.category-chip.is-active {
    border-color: rgba(23, 33, 31, 0.12);
    background: rgba(255, 255, 255, 0.96);
    transform: translateY(-1px);
    box-shadow: 0 18px 30px rgba(58, 46, 34, 0.08);
}

.category-chip::before {
    content: '';
    position: absolute;
    inset: 10px auto 10px 0;
    width: 4px;
    border-radius: 999px;
    background: var(--category-accent, rgba(23, 33, 31, 0.14));
    opacity: 0.95;
}

.category-chip-top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 10px;
}

.category-chip strong {
    font-size: 0.98rem;
    line-height: 1.2;
}

.category-chip-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(23, 33, 31, 0.08);
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 700;
}

.category-chip-support {
    color: rgba(23, 33, 31, 0.62);
    font-size: 0.8rem;
    line-height: 1.45;
}

.category-chip-meta {
    color: rgba(23, 33, 31, 0.46);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.queue-list {
    display: grid;
    gap: 10px;
    max-height: calc(100vh - 282px);
    overflow: auto;
    padding-right: 4px;
}

.queue-list-minimal {
    max-height: calc(100vh - 212px);
}

.order-card {
    width: 100%;
    text-align: left;
    padding: 14px 15px;
    border: 1px solid rgba(23, 33, 31, 0.06);
    border-radius: 21px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 244, 239, 0.9));
    color: inherit;
    border-left: 4px solid var(--order-accent, transparent);
    box-shadow: 0 10px 20px rgba(58, 46, 34, 0.04);
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms 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 14px 24px rgba(58, 46, 34, 0.07);
    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: 10px;
}

.order-card-title {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.order-card-overline {
    color: rgba(23, 33, 31, 0.42);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.order-code {
    font-size: 0.98rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.order-card-side {
    display: grid;
    justify-items: end;
    gap: 6px;
}

.order-card-index {
    color: rgba(23, 33, 31, 0.34);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.status-badge,
.inline-pill,
.progress-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.7rem;
    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);
}

.category-chip.category-new,
.order-card.category-new {
    --category-accent: var(--accent-warm);
    --order-accent: var(--accent-warm);
}

.category-chip.category-ready,
.order-card.category-ready {
    --category-accent: var(--accent);
    --order-accent: var(--accent);
}

.category-chip.category-shipped,
.order-card.category-shipped {
    --category-accent: var(--ship-blue);
    --order-accent: var(--ship-blue);
}

.category-chip.category-history,
.order-card.category-history {
    --category-accent: var(--history-earth);
    --order-accent: var(--history-earth);
}

.category-chip.category-rpt,
.order-card.category-rpt {
    --category-accent: var(--rpt-rose);
    --order-accent: var(--rpt-rose);
}

.category-chip.category-patlak,
.order-card.category-patlak {
    --category-accent: var(--danger);
    --order-accent: var(--danger);
}

.category-chip.category-cancelled,
.order-card.category-cancelled {
    --category-accent: var(--cancel-gray);
    --order-accent: var(--cancel-gray);
}

.category-chip.category-new {
    background: linear-gradient(180deg, rgba(255, 242, 232, 0.98), rgba(248, 229, 214, 0.94));
}

.category-chip.category-ready {
    background: linear-gradient(180deg, rgba(240, 250, 247, 0.98), rgba(225, 242, 236, 0.94));
}

.category-chip.category-shipped {
    background: linear-gradient(180deg, rgba(241, 247, 253, 0.98), rgba(225, 235, 244, 0.94));
}

.category-chip.category-history {
    background: linear-gradient(180deg, rgba(245, 241, 235, 0.98), rgba(234, 228, 221, 0.94));
}

.category-chip.category-rpt {
    background: linear-gradient(180deg, rgba(248, 239, 244, 0.98), rgba(239, 225, 233, 0.94));
}

.category-chip.category-patlak {
    background: linear-gradient(180deg, rgba(252, 239, 237, 0.98), rgba(244, 224, 221, 0.94));
}

.category-chip.category-cancelled {
    background: linear-gradient(180deg, rgba(242, 242, 242, 0.98), rgba(230, 230, 230, 0.94));
}

.order-card-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.order-meta-item {
    min-width: 0;
    display: grid;
    gap: 4px;
    padding: 10px 11px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(23, 33, 31, 0.05);
}

.order-meta-label {
    color: var(--muted);
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.order-meta-value {
    font-size: 0.82rem;
    line-height: 1.3;
    word-break: break-word;
}

.category-chip.category-new,
.order-card.category-new {
    --category-accent: var(--accent-warm);
    --order-accent: var(--accent-warm);
}

.category-chip.category-ready,
.order-card.category-ready {
    --category-accent: var(--accent);
    --order-accent: var(--accent);
}

.category-chip.category-shipped,
.order-card.category-shipped {
    --category-accent: var(--ship-blue);
    --order-accent: var(--ship-blue);
}

.category-chip.category-history,
.order-card.category-history {
    --category-accent: var(--history-earth);
    --order-accent: var(--history-earth);
}

.category-chip.category-rpt,
.order-card.category-rpt {
    --category-accent: var(--rpt-rose);
    --order-accent: var(--rpt-rose);
}

.category-chip.category-patlak,
.order-card.category-patlak {
    --category-accent: var(--danger);
    --order-accent: var(--danger);
}

.category-chip.category-cancelled,
.order-card.category-cancelled {
    --category-accent: var(--cancel-gray);
    --order-accent: var(--cancel-gray);
}

.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: calc(100vh - 268px);
    padding: 20px;
}

.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: "Hazır 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-camera-tools {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.scan-torch-toggle.is-active {
    background: rgba(20, 128, 103, 0.1);
    border-color: rgba(20, 128, 103, 0.22);
    color: #0a6b59;
}

.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 {
    position: relative;
    width: 92px;
    overflow: visible;
    border-radius: 16px;
    z-index: 0;
}

.product-media-button {
    position: relative;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    z-index: 0;
}

.product-media-button:hover,
.product-media-button:focus-visible {
    z-index: 5;
}

.product-media-button:focus-visible {
    outline: 2px solid rgba(14, 124, 102, 0.4);
    outline-offset: 3px;
}

.product-main {
    min-width: 0;
}

.product-image {
    position: relative;
    z-index: 2;
    width: 92px;
    height: 120px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
    background: rgba(23, 33, 31, 0.06);
    transform: scale(1);
    transition: transform 200ms ease, box-shadow 200ms ease, filter 200ms ease;
    transform-origin: center;
    will-change: transform;
}

.product-media:hover .product-image:not(.placeholder) {
    transform: scale(1.12);
    box-shadow: 0 18px 38px rgba(23, 33, 31, 0.16);
    filter: saturate(1.02) contrast(1.02);
}

.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);
}

.product-media-hover-preview {
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    width: 156px;
    height: 214px;
    padding: 8px;
    border-radius: 18px;
    background: rgba(252, 250, 246, 0.96);
    border: 1px solid rgba(23, 33, 31, 0.08);
    box-shadow: 0 24px 60px rgba(16, 24, 22, 0.2);
    opacity: 0;
    transform: translateY(-50%) scale(0.94);
    transform-origin: center left;
    transition: opacity 180ms ease, transform 220ms ease;
    pointer-events: none;
    z-index: 5;
    display: grid;
    place-items: center;
}

.product-media-hover-preview-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 12px;
    background: rgba(23, 33, 31, 0.04);
}

.product-media-button:hover .product-media-hover-preview,
.product-media-button:focus-visible .product-media-hover-preview {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.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);
}

@media (max-width: 860px) {
    .product-media-hover-preview {
        left: 50%;
        top: calc(100% + 10px);
        width: 180px;
        height: 240px;
        transform: translateX(-50%) scale(0.94);
        transform-origin: top center;
    }

    .product-media-button:hover .product-media-hover-preview,
    .product-media-button:focus-visible .product-media-hover-preview {
        transform: translateX(-50%) scale(1);
    }
}

.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:
        radial-gradient(circle at top, rgba(255, 244, 230, 0.18), transparent 34%),
        rgba(17, 23, 22, 0.34);
}

.supply-alert-dialog {
    position: relative;
    width: min(92vw, 820px);
    max-height: calc(100vh - 56px);
    overflow: auto;
    padding: 28px;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255, 254, 251, 0.985), rgba(248, 244, 238, 0.965));
    border: 1px solid rgba(23, 33, 31, 0.08);
    box-shadow: 0 20px 56px rgba(16, 24, 22, 0.16);
    display: grid;
    gap: 20px;
    isolation: isolate;
    will-change: transform, opacity;
}

.supply-alert-dialog::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 120px;
    border-radius: 26px 26px 0 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 236, 214, 0.56), rgba(255, 236, 214, 0));
    opacity: 0.9;
}

.supply-alert-dialog > * {
    position: relative;
    z-index: 1;
}

.supply-alert-modal.is-entering .supply-alert-backdrop {
    animation: supply-alert-backdrop-in 220ms ease-out both;
}

.supply-alert-modal.is-entering .supply-alert-dialog {
    animation: supply-alert-dialog-in 280ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.supply-alert-modal.is-leaving .supply-alert-backdrop {
    animation: supply-alert-backdrop-out 220ms ease-in both;
}

.supply-alert-modal.is-leaving .supply-alert-dialog {
    animation: supply-alert-dialog-out 240ms ease-in both;
}

.supply-alert-modal.is-docking .supply-alert-backdrop {
    animation: supply-alert-backdrop-out 240ms ease-in both;
}

.supply-alert-modal.is-docking .supply-alert-dialog {
    transform-origin: 88% 50%;
    animation: supply-alert-dialog-dock 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.supply-alert-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.supply-alert-intro {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.supply-alert-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 16px;
    background:
        radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.92), transparent 42%),
        linear-gradient(145deg, rgba(255, 199, 149, 0.95), rgba(255, 148, 103, 0.88));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    position: relative;
}

.supply-alert-icon::before,
.supply-alert-icon::after {
    content: '';
    position: absolute;
    left: 50%;
    background: rgba(126, 66, 34, 0.94);
    border-radius: 999px;
    transform: translateX(-50%);
}

.supply-alert-icon::before {
    top: 13px;
    width: 5px;
    height: 16px;
}

.supply-alert-icon::after {
    bottom: 11px;
    width: 5px;
    height: 5px;
}

.supply-alert-heading {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.supply-alert-head h2,
.supply-alert-card h3 {
    margin: 0;
}

.supply-alert-eyebrow {
    color: rgba(126, 66, 34, 0.72);
}

.supply-alert-head h2 {
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.supply-alert-summary {
    margin: 0;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 247, 238, 0.82);
    border: 1px solid rgba(240, 180, 131, 0.22);
    color: rgba(49, 58, 55, 0.82);
    font-size: 0.94rem;
    line-height: 1.6;
}

.supply-alert-close {
    min-height: 42px;
    padding: 0 16px;
    border-color: rgba(23, 33, 31, 0.08);
    background: rgba(255, 255, 255, 0.72);
}

.supply-alert-list {
    display: grid;
    gap: 14px;
}

.supply-alert-card {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
    align-items: start;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(23, 33, 31, 0.07);
    box-shadow: 0 10px 24px rgba(16, 24, 22, 0.05);
}

.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;
}

.supply-alert-dock {
    --supply-alert-dock-offset-y: -50%;
    position: fixed;
    top: 50%;
    right: 0;
    z-index: 42;
    display: flex;
    align-items: stretch;
    transform: translateY(var(--supply-alert-dock-offset-y));
    will-change: transform, opacity;
}

.supply-alert-dock[hidden] {
    display: none !important;
}

.supply-alert-dock.is-entering {
    animation: supply-alert-dock-in 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.supply-alert-dock-button,
.supply-alert-dock-dismiss {
    border: 0;
}

.supply-alert-dock-button {
    min-width: 176px;
    padding: 14px 18px 14px 20px;
    display: grid;
    gap: 4px;
    text-align: left;
    border-radius: 18px 0 0 18px;
    background: linear-gradient(180deg, rgba(255, 254, 251, 0.98), rgba(247, 243, 238, 0.96));
    border-left: 1px solid rgba(23, 33, 31, 0.08);
    border-top: 1px solid rgba(23, 33, 31, 0.08);
    border-bottom: 1px solid rgba(23, 33, 31, 0.08);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(16, 24, 22, 0.12);
}

.supply-alert-dock-button::before {
    content: '';
    position: absolute;
    inset: 12px auto 12px 0;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 150, 102, 0.96), rgba(255, 196, 143, 0.92));
}

.supply-alert-dock-eyebrow {
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(23, 33, 31, 0.46);
}

.supply-alert-dock-title {
    font-size: 0.98rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.supply-alert-dock-summary {
    font-size: 0.8rem;
    line-height: 1.35;
    color: rgba(23, 33, 31, 0.62);
}

.supply-alert-dock-dismiss {
    width: 40px;
    display: grid;
    place-items: center;
    border-radius: 0 0 0 18px;
    background: linear-gradient(180deg, rgba(182, 59, 57, 0.12), rgba(182, 59, 57, 0.06));
    border-top: 1px solid rgba(23, 33, 31, 0.08);
    border-bottom: 1px solid rgba(23, 33, 31, 0.08);
    border-left: 1px solid rgba(23, 33, 31, 0.06);
    color: #8a3636;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(16, 24, 22, 0.08);
}

@keyframes supply-alert-backdrop-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes supply-alert-backdrop-out {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes supply-alert-dialog-in {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes supply-alert-dialog-out {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(12px) scale(0.985);
    }
}

@keyframes supply-alert-dialog-dock {
    0% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1, 1);
    }

    58% {
        opacity: 0.92;
        transform: translate3d(104px, 0, 0) scale(0.96, 0.98);
    }

    100% {
        opacity: 0;
        transform: translate3d(184px, 0, 0) scale(0.88, 0.94);
    }
}

@keyframes supply-alert-dock-in {
    0% {
        opacity: 0;
        transform: translate(18px, var(--supply-alert-dock-offset-y)) scale(0.96);
    }

    100% {
        opacity: 1;
        transform: translate(0, var(--supply-alert-dock-offset-y)) scale(1);
    }
}

.admin-api-entry-card {
    gap: 18px;
}

.founder-connections-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}

.connection-section {
    min-width: 0;
}

.connection-section--infrastructure {
    grid-column: 1 / -1;
}

.connection-section--cargo-company {
    grid-column: 1 / -1;
}

.connection-plugin-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.connection-plugin-card {
    display: grid;
    grid-template-rows: auto auto auto;
    align-items: start;
    gap: 8px;
    min-width: 0;
    min-height: 176px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(23, 33, 31, 0.08);
    background: rgba(255, 255, 255, 0.76);
}

.connection-plugin-card--soon {
    background: rgba(255, 255, 255, 0.52);
    border-style: dashed;
}

.connection-plugin-actions {
    width: 100%;
}

.connection-state-button {
    width: 100%;
    min-height: 34px;
    min-width: 0;
    padding-inline: 12px;
    white-space: normal;
    font-size: 0.8rem;
}

.connection-state-button.is-passive {
    background: linear-gradient(180deg, #d45427 0%, #b63b39 100%);
    box-shadow: 0 14px 28px rgba(182, 59, 57, 0.18);
}

.connection-state-button.is-active {
    background: linear-gradient(180deg, #0f2f6c 0%, #1b69b3 100%);
    box-shadow: 0 14px 28px rgba(27, 117, 191, 0.2);
}

.connection-plugin-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    width: 76px;
    max-width: 100%;
    height: 42px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(23, 33, 31, 0.06);
}

.connection-plugin-logo--mark {
    width: 42px;
}

.connection-plugin-logo--wide {
    width: 92px;
}

.connection-plugin-logo--xl {
    width: 104px;
}

.connection-plugin-logo--ikas-wordmark {
    width: 78px;
    height: 30px;
    padding: 0 4px;
}

.connection-plugin-logo img {
    width: auto;
    height: auto;
    max-width: calc(100% - 8px);
    max-height: calc(100% - 8px);
    object-fit: contain;
}

.connection-plugin-logo .connection-plugin-logo-wordmark-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.connection-plugin-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.connection-plugin-kicker {
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.connection-plugin-copy strong {
    color: var(--text);
    font-size: 0.9rem;
}

.connection-plugin-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.3;
}

.connection-plugin-soon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    width: 100%;
    border-radius: 999px;
    background: rgba(23, 33, 31, 0.06);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

@media (max-width: 720px) {
    .connection-plugin-grid {
        grid-template-columns: 1fr;
    }

    .connection-plugin-card {
        min-height: 0;
    }
}

@media (min-width: 721px) and (max-width: 1180px) {
    .connection-plugin-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.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-entry-note:empty {
    display: none;
}

.connection-section .eyebrow {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.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;
}

.team-pin-modal {
    z-index: 58;
}

.team-pin-modal .api-config-dialog {
    width: min(92vw, 380px);
    gap: 12px;
    padding: 18px;
    border-radius: 22px;
}

.team-pin-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.team-pin-head h2 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.2;
}

.team-pin-close {
    min-height: 36px;
    padding: 0 12px;
}

.team-pin-summary {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.team-pin-form {
    display: grid;
    gap: 12px;
}

.team-pin-field {
    display: grid;
    gap: 6px;
}

.team-pin-field span {
    color: rgba(23, 33, 31, 0.58);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.team-pin-field input {
    min-height: 44px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(23, 33, 31, 0.1);
    background: rgba(255, 255, 255, 0.94);
    color: var(--ink);
    font-size: 0.94rem;
    outline: none;
}

.team-pin-field input:focus {
    border-color: rgba(14, 124, 102, 0.28);
    box-shadow: 0 0 0 4px rgba(14, 124, 102, 0.1);
}

.team-pin-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.team-pin-actions .secondary-btn,
.team-pin-actions .primary-btn {
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
}

.team-pin-message {
    min-height: 0;
}

.team-pin-message .scan-alert {
    margin: 0;
}

@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-intro {
        align-items: flex-start;
    }

    .supply-alert-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        border-radius: 14px;
    }

    .supply-alert-card {
        grid-template-columns: 1fr;
    }

    .supply-alert-card-media {
        aspect-ratio: 16 / 11;
    }

    .supply-alert-close {
        width: 100%;
    }

    .supply-alert-dock {
        --supply-alert-dock-offset-y: 0%;
        top: auto;
        bottom: 18px;
        right: 12px;
        transform: none;
    }

    .supply-alert-dock-button {
        min-width: 148px;
        padding: 14px 16px;
    }

    .api-config-modal {
        padding: 16px;
    }

    .api-config-dialog {
        padding: 18px;
        border-radius: 22px;
    }

    .team-pin-modal .api-config-dialog {
        width: min(92vw, 360px);
        padding: 16px;
    }

    .team-pin-actions {
        justify-content: stretch;
    }

    .team-pin-actions .secondary-btn,
    .team-pin-actions .primary-btn {
        width: 100%;
    }

    .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: block;
}

.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);
}

.scan-row-actions {
    gap: 8px;
    margin-top: 8px;
}

.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: 36px;
    padding: 0 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    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-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-role-chart-shell {
        min-height: 250px;
    }

    .admin-role-legend {
        grid-template-columns: 1fr;
    }

    .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-actions 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-strip-subtitle {
        font-size: 0.8rem;
    }

    .queue-workbench {
        gap: 10px;
    }

    .category-rail {
        gap: 8px;
    }

    .category-rail-head {
        padding: 0;
    }

    .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: 6px;
        flex: 0 0 auto;
    }

    .category-chip-top {
        gap: 8px;
    }

    .category-chip strong {
        font-size: 0.88rem;
    }

    .category-chip-count {
        min-width: 32px;
        min-height: 26px;
        padding: 0 8px;
        font-size: 0.74rem;
    }

    .category-chip-support,
    .category-chip-meta {
        font-size: 0.72rem;
    }

    .queue-list-panel {
        padding: 0;
        background: transparent;
        border: 0;
        gap: 10px;
        box-shadow: none;
    }

    .queue-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding-bottom: 8px;
    }

    .queue-count-chip {
        min-height: 30px;
        padding: 0 10px;
        font-size: 0.76rem;
    }

    .queue-meta-kicker {
        font-size: 0.62rem;
    }

    .queue-active-title {
        font-size: 0.86rem;
    }

    .queue-list,
    .queue-list-minimal {
        max-height: 360px;
        padding-right: 2px;
    }

    .order-card {
        padding: 12px;
        border-radius: 17px;
    }

    .order-card-top {
        margin-bottom: 7px;
    }

    .order-card-overline {
        font-size: 0.58rem;
    }

    .order-code {
        font-size: 0.9rem;
    }

    .order-card-side {
        gap: 4px;
    }

    .order-card-index {
        font-size: 0.6rem;
    }

    .status-badge {
        padding: 5px 9px;
        font-size: 0.66rem;
    }

    .order-card-meta {
        gap: 7px;
    }

    .order-meta-item {
        padding: 9px 10px;
        border-radius: 15px;
    }

    .order-meta-label {
        font-size: 0.58rem;
    }

    .order-meta-value {
        font-size: 0.78rem;
    }

    .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 {
        gap: 6px;
    }

    .scan-row input {
        min-height: 42px;
        padding: 0 12px;
        border-radius: 13px;
        font-size: 0.88rem;
        font-weight: 600;
    }

    .scan-row-actions {
        display: flex;
        gap: 6px;
        margin-top: 6px;
    }

    .scan-row-actions > button {
        flex: 1 1 0;
        min-width: 0;
    }

    .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;
    }

    .product-list {
        order: 2;
    }

    .detail-block-info {
        order: 3;
    }

    .detail-block-category {
        order: 4;
    }

    .detail-block-note {
        order: 5;
    }

    .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-actions button {
        min-height: 42px;
    }

    .scanner-row input {
        padding: 0 12px;
        border-radius: 14px;
        font-size: 0.84rem;
        font-weight: 600;
    }

    .scanner-row-actions 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: 38px;
        padding: 0 12px;
        border-radius: 14px;
        font-size: 0.82rem;
    }

    .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 {
        gap: 5px;
    }

    .scan-row input {
        min-height: 38px;
        padding: 0 10px;
        border-radius: 11px;
        font-size: 0.82rem;
    }

    .scan-row-actions {
        display: flex;
        gap: 5px;
        margin-top: 5px;
    }

    .scan-row-actions > button {
        flex: 1 1 0;
        min-width: 0;
    }

    .scan-card .primary-btn {
        min-height: 38px;
        padding: 0 6px;
        border-radius: 11px;
        font-size: 0.7rem;
    }

    .scan-camera-toggle {
        min-height: 38px;
        padding: 0 10px;
        border-radius: 12px;
        font-size: 0.72rem;
    }

    .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: 36px;
        padding: 0 8px;
        border-radius: 12px;
        font-size: 0.72rem;
    }

    .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;
    }
}

/* Final detail theme override at EOF */
.detail-panel {
    --pack-peach: #ff8b6b;
    --pack-sun: #ffc857;
    --pack-mint: #18b899;
    --pack-sky: #59a9ff;
    --pack-card-border: rgba(255, 255, 255, 0.62);
    --pack-card-shadow: 0 24px 70px rgba(61, 48, 33, 0.12);
    background:
        radial-gradient(circle at top left, rgba(255, 139, 107, 0.18), transparent 26%),
        radial-gradient(circle at 85% 12%, rgba(89, 169, 255, 0.16), transparent 28%),
        radial-gradient(circle at 50% 100%, rgba(24, 184, 153, 0.12), transparent 30%),
        linear-gradient(180deg, rgba(255, 250, 244, 0.98), rgba(246, 240, 230, 0.96));
    border-radius: var(--panel-card-radius);
}

.detail-stack {
    gap: var(--panel-card-gap);
}

.detail-stack > * {
    animation: pack-joy-rise 580ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.detail-hero-card {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: var(--hero-card-gap);
    padding: var(--hero-card-padding);
    border-radius: calc(var(--hero-card-radius) + 6px);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 248, 239, 0.7) 45%, rgba(232, 252, 246, 0.92)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0));
    border: 1px solid rgba(255, 255, 255, 0.88);
    box-shadow: var(--pack-card-shadow);
    backdrop-filter: blur(18px);
}

.detail-top {
    grid-template-columns: minmax(0, 1.08fr) minmax(260px, 320px);
    gap: var(--hero-card-gap) calc(var(--hero-card-gap) + 8px);
}

.detail-title-block {
    gap: 10px;
}

.detail-title-block .eyebrow {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 9px 14px;
    width: fit-content;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 139, 107, 0.18), rgba(255, 200, 87, 0.22));
    color: #9a5334;
    letter-spacing: 0.09em;
}

.detail-title-block h2 {
    margin: 0;
    font-size: clamp(2.3rem, 4vw, 3.5rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.detail-subcopy {
    margin: 0;
    max-width: 48ch;
    font-size: 1em;
    color: rgba(23, 33, 31, 0.68);
}

.detail-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-status-row .inline-pill,
.category-state-pill,
.order-note-head .inline-pill,
.info-toggle-pill {
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    font-weight: 800;
}

.detail-actions {
    display: grid;
    align-content: start;
    gap: var(--panel-card-gap);
}

.detail-actions .secondary-btn,
.detail-actions .primary-btn {
    min-height: 52px;
    border-radius: 18px;
    padding: 0 20px;
    font-weight: 800;
}

.detail-actions .secondary-btn {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(23, 33, 31, 0.08);
    box-shadow: 0 14px 26px rgba(61, 48, 33, 0.08);
}

.detail-actions .primary-btn {
    background: linear-gradient(135deg, var(--pack-mint), #0f8a72 55%, var(--pack-sky));
    box-shadow: 0 18px 34px rgba(24, 184, 153, 0.28);
}

.summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.summary-card {
    position: relative;
    overflow: hidden;
    padding: 18px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.58));
    border: 1px solid var(--pack-card-border);
    box-shadow: 0 18px 28px rgba(61, 48, 33, 0.08);
}

.summary-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--pack-peach), var(--pack-sun));
}

.progress-bar {
    position: relative;
    overflow: hidden;
    height: 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.66);
    box-shadow: inset 0 1px 4px rgba(23, 33, 31, 0.12);
}

.progress-bar span {
    background: linear-gradient(90deg, var(--pack-peach), var(--pack-sun) 26%, var(--pack-mint) 65%, var(--pack-sky));
    box-shadow: 0 10px 18px rgba(24, 184, 153, 0.22);
}

.detail-support-grid {
    gap: 16px;
}

.detail-support-grid-primary {
    grid-template-columns: 1.3fr 0.9fr;
}

.detail-support-grid-secondary {
    grid-template-columns: 1.1fr 0.9fr;
}

.scan-card,
.notice-card,
.order-note-card,
.history-card,
.category-control,
.info-disclosure,
.product-card {
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid var(--pack-card-border);
    box-shadow: 0 18px 34px rgba(61, 48, 33, 0.08);
}

.scan-card,
.history-card,
.notice-card,
.category-control,
.order-note-card {
    padding: 22px;
}

.scan-card {
    background:
        radial-gradient(circle at top right, rgba(89, 169, 255, 0.18), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(241, 252, 248, 0.78));
}

.notice-card {
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 200, 87, 0.2), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 248, 239, 0.86));
}

.order-note-card {
    background:
        radial-gradient(circle at top right, rgba(139, 123, 255, 0.16), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 245, 255, 0.78));
}

.history-card {
    background:
        radial-gradient(circle at top left, rgba(255, 139, 107, 0.16), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 244, 239, 0.76));
}

.category-control {
    background:
        radial-gradient(circle at bottom right, rgba(24, 184, 153, 0.18), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(240, 252, 248, 0.82));
}

.info-disclosure {
    background:
        radial-gradient(circle at top right, rgba(89, 169, 255, 0.16), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(242, 248, 255, 0.82));
}

.scan-row input,
.order-note-form input {
    min-height: 50px;
    border-radius: 16px;
    border: 1px solid rgba(23, 33, 31, 0.08);
    background: rgba(255, 255, 255, 0.86);
}

.category-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.category-action-btn {
    min-height: 48px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(23, 33, 31, 0.08);
}

.category-action-btn.is-active {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(24, 184, 153, 0.18), rgba(89, 169, 255, 0.16));
    border-color: rgba(24, 184, 153, 0.28);
    color: #0a6b59;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.product-card {
    position: relative;
    padding: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 250, 245, 0.82));
}

.product-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 7px;
    border-radius: 28px 0 0 28px;
    background: linear-gradient(180deg, var(--pack-peach), var(--pack-sun), var(--pack-mint));
}

.product-layout {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.product-media {
    width: 108px;
}

.product-image {
    width: 108px;
    height: 138px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 16px 26px rgba(61, 48, 33, 0.12);
}

.product-keyfacts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.product-keyfact {
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(23, 33, 31, 0.06);
}

.product-price-pill {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(23, 33, 31, 0.06);
}

.history-card li,
.order-note-item {
    padding: 14px 15px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(23, 33, 31, 0.06);
}

.detail-stack.ready-celebration::before {
    inset: -14px;
    border-radius: 38px;
    background:
        radial-gradient(circle at top right, rgba(255, 200, 87, 0.3), rgba(255, 200, 87, 0) 34%),
        radial-gradient(circle at left center, rgba(24, 184, 153, 0.24), rgba(24, 184, 153, 0) 38%),
        linear-gradient(135deg, rgba(255, 139, 107, 0.14), rgba(89, 169, 255, 0.08) 45%, rgba(24, 184, 153, 0.16));
    animation: pack-joy-pulse 1800ms ease-out;
}

.detail-stack.ready-celebration::after {
    content: "Hazır Havuzda";
    top: -16px;
    right: 8px;
    padding: 12px 18px;
    background: linear-gradient(135deg, var(--pack-mint), var(--pack-sky));
    box-shadow: 0 20px 32px rgba(24, 184, 153, 0.24);
}

.detail-stack.ready-celebration .detail-hero-card,
.detail-stack.ready-celebration .summary-card,
.detail-stack.ready-celebration .scan-card {
    animation: pack-joy-ready-glow 1700ms ease-out;
}

@media (max-width: 1220px) {
    .detail-top,
    .detail-support-grid-primary,
    .detail-support-grid-secondary {
        grid-template-columns: 1fr;
    }

    .detail-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .detail-panel {
        padding: 16px;
    }

    .summary-grid,
    .product-keyfacts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-layout {
        grid-template-columns: 84px minmax(0, 1fr);
    }

    .product-media,
    .product-image {
        width: 84px;
    }

    .product-image {
        height: 112px;
    }
}

@media (max-width: 640px) {
    .detail-panel {
        padding: 12px;
    }

    .detail-top h2 {
        font-size: clamp(1.8rem, 10vw, 2.5rem);
    }

    .detail-actions,
    .category-actions,
    .scan-row,
    .product-toolbar {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .summary-grid,
    .product-keyfacts {
        grid-template-columns: 1fr;
    }

    .product-layout {
        grid-template-columns: 1fr;
    }

    .product-media,
    .product-image {
        width: 100%;
    }

    .product-image {
        height: auto;
        aspect-ratio: 4 / 5;
    }
}

.summary-grid {
    perspective: 1800px;
    transform-style: preserve-3d;
}

.summary-card {
    isolation: isolate;
    overflow: hidden;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform, box-shadow;
}

.summary-card > * {
    position: relative;
    z-index: 2;
}

.summary-card::before {
    background-size: 180% 100%;
    animation: pack-summary-edge-sweep 6.8s linear infinite;
}

.summary-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0.9;
    z-index: 1;
}

.summary-card strong {
    display: inline-block;
    transform-origin: left center;
}

.summary-card:nth-child(1) {
    animation: pack-summary-pivot-a 4.6s cubic-bezier(0.33, 1, 0.68, 1) infinite;
}

.summary-card:nth-child(1)::after {
    background:
        radial-gradient(circle at 16% 26%, rgba(255, 200, 87, 0.44), transparent 18%),
        conic-gradient(from 200deg at 16% 34%, rgba(255, 139, 107, 0.26), rgba(255, 255, 255, 0) 32%, rgba(255, 200, 87, 0.22) 58%, rgba(255, 255, 255, 0) 78%);
    animation: pack-summary-beacon-a 3.9s ease-in-out infinite;
}

.summary-card:nth-child(1) strong {
    animation: pack-summary-pop-a 2.1s cubic-bezier(0.2, 0.9, 0.2, 1) infinite;
}

.summary-card:nth-child(2) {
    animation: pack-summary-sway-b 4.1s cubic-bezier(0.32, 1, 0.68, 1) infinite;
}

.summary-card:nth-child(2)::after {
    background:
        repeating-linear-gradient(115deg, rgba(24, 184, 153, 0) 0px, rgba(24, 184, 153, 0) 14px, rgba(24, 184, 153, 0.16) 14px, rgba(24, 184, 153, 0.16) 20px, rgba(89, 169, 255, 0.1) 20px, rgba(89, 169, 255, 0.1) 26px),
        linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0));
    background-size: 180% 180%, 42% 100%;
    background-repeat: repeat, no-repeat;
    animation: pack-summary-rail-b 2.8s linear infinite;
}

.summary-card:nth-child(2) strong {
    animation: pack-summary-nudge-b 1.8s steps(2, end) infinite;
}

.summary-card:nth-child(3) {
    animation: pack-summary-hover-c 5.8s ease-in-out infinite;
}

.summary-card:nth-child(3)::after {
    background:
        radial-gradient(circle at 50% 50%, rgba(89, 169, 255, 0.14), transparent 24%),
        radial-gradient(circle at 50% 50%, rgba(139, 123, 255, 0.18), transparent 42%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 58%, rgba(89, 169, 255, 0.14) 60%, rgba(255, 255, 255, 0) 66%);
    animation: pack-summary-sonar-c 4.8s ease-out infinite;
}

.summary-card:nth-child(3) strong {
    animation: pack-summary-breathe-c 3.6s ease-in-out infinite;
}

.summary-card:nth-child(4) {
    animation: pack-summary-tilt-d 4.8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.summary-card:nth-child(4)::after {
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0) 18%, rgba(255, 255, 255, 0.46) 36%, rgba(255, 255, 255, 0) 54%),
        radial-gradient(circle at 82% 24%, rgba(255, 200, 87, 0.48), transparent 22%),
        linear-gradient(135deg, rgba(255, 139, 107, 0.14), rgba(255, 255, 255, 0) 52%);
    background-size: 220% 100%, auto, auto;
    background-repeat: no-repeat;
    animation: pack-summary-vault-d 3.6s ease-in-out infinite;
}

.summary-card:nth-child(4) strong {
    color: transparent;
    background: linear-gradient(90deg, #5e3a11, #c56a2d 24%, #fff4b8 48%, #c56a2d 72%, #5e3a11);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: pack-summary-cash-d 3.2s linear infinite;
}

.progress-shell {
    position: relative;
    perspective: 1400px;
    padding-top: 14px;
}

.progress-shell::before {
    content: "";
    position: absolute;
    inset: 8px 18px -12px;
    border-radius: 999px;
    background: conic-gradient(from 180deg at 50% 50%, rgba(255, 139, 107, 0.12), rgba(255, 200, 87, 0.26), rgba(24, 184, 153, 0.32), rgba(89, 169, 255, 0.12), rgba(255, 139, 107, 0.12));
    filter: blur(18px);
    opacity: 0.74;
    pointer-events: none;
    animation: pack-progress-underlight 4.4s linear infinite;
}

.progress-bar {
    transform-style: preserve-3d;
    transform: rotateX(11deg) translateZ(0);
    box-shadow:
        inset 0 1px 4px rgba(23, 33, 31, 0.14),
        0 18px 30px rgba(24, 184, 153, 0.14);
    animation: pack-progress-levitate 3.8s ease-in-out infinite;
}

.progress-bar::before {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: inherit;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0px, rgba(255, 255, 255, 0.14) 18px, rgba(255, 255, 255, 0) 18px, rgba(255, 255, 255, 0) 36px);
    opacity: 0.58;
    mix-blend-mode: screen;
    pointer-events: none;
    animation: pack-progress-grid 2.6s linear infinite;
}

.progress-bar::after {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0));
    background-size: 26% 100%;
    background-repeat: no-repeat;
    animation: pack-progress-search 1.9s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.progress-bar span {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, var(--pack-peach), var(--pack-sun), var(--pack-mint), var(--pack-sky), var(--pack-grape), var(--pack-sky));
    background-size: 240% 100%;
    animation: pack-progress-spectrum 3.2s linear infinite;
}

.progress-bar span::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.08) 32%, rgba(255, 255, 255, 0.28) 42%, rgba(255, 255, 255, 0.08) 52%, rgba(255, 255, 255, 0) 60%);
    background-size: 120% 100%;
    animation: pack-progress-zig 1.8s linear infinite;
}

.progress-bar span::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -10px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    transform: translateY(-50%);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.24) 36%, rgba(255, 255, 255, 0) 72%);
    filter: blur(1px);
    animation: pack-progress-comet 1.8s ease-in-out infinite;
}

@keyframes pack-summary-edge-sweep {
    from {
        background-position: 0% 0;
    }

    to {
        background-position: 180% 0;
    }
}

@keyframes pack-summary-pivot-a {
    0%,
    100% {
        transform: translateY(0) rotateX(0deg) rotateY(0deg);
        box-shadow: 0 18px 28px rgba(61, 48, 33, 0.08);
    }

    42% {
        transform: translateY(-6px) rotateX(4deg) rotateY(-8deg);
        box-shadow: 0 26px 38px rgba(255, 139, 107, 0.14);
    }
}

@keyframes pack-summary-beacon-a {
    0%,
    100% {
        opacity: 0.38;
        transform: scale(0.92) rotate(0deg);
    }

    50% {
        opacity: 0.96;
        transform: scale(1.08) rotate(18deg);
    }
}

@keyframes pack-summary-pop-a {
    0%,
    100% {
        transform: scale(1);
    }

    20% {
        transform: scale(1.12);
    }

    36% {
        transform: scale(0.96);
    }
}

@keyframes pack-summary-sway-b {
    0%,
    100% {
        transform: translateY(0) rotateX(0deg) rotateY(0deg);
    }

    34% {
        transform: translateY(-4px) rotateX(-4deg) rotateY(7deg);
    }

    66% {
        transform: translateY(1px) rotateX(2deg) rotateY(-4deg);
    }
}

@keyframes pack-summary-rail-b {
    0% {
        background-position: 0% 0, -46% 0;
    }

    100% {
        background-position: 180% 0, 146% 0;
    }
}

@keyframes pack-summary-nudge-b {
    0%,
    100% {
        transform: translateX(0);
        text-shadow: 0 0 0 rgba(24, 184, 153, 0);
    }

    50% {
        transform: translateX(3px);
        text-shadow: 0 8px 18px rgba(24, 184, 153, 0.22);
    }
}

@keyframes pack-summary-hover-c {
    0%,
    100% {
        transform: translateY(0) rotateX(0deg) rotateY(0deg);
    }

    50% {
        transform: translateY(-5px) rotateX(5deg) rotateY(5deg);
    }
}

@keyframes pack-summary-sonar-c {
    0% {
        opacity: 0.18;
        transform: scale(0.56);
    }

    40% {
        opacity: 0.92;
    }

    100% {
        opacity: 0;
        transform: scale(1.36);
    }
}

@keyframes pack-summary-breathe-c {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.07);
    }
}

@keyframes pack-summary-tilt-d {
    0%,
    100% {
        transform: translateY(0) rotateX(0deg) rotateY(0deg);
    }

    50% {
        transform: translateY(-6px) rotateX(3deg) rotateY(-6deg);
    }
}

@keyframes pack-summary-vault-d {
    0% {
        background-position: -140% 0, 82% 24%, 0 0;
        opacity: 0.46;
    }

    38% {
        opacity: 1;
    }

    100% {
        background-position: 160% 0, 82% 24%, 0 0;
        opacity: 0.46;
    }
}

@keyframes pack-summary-cash-d {
    from {
        background-position: 0% 0;
    }

    to {
        background-position: 220% 0;
    }
}

@keyframes pack-progress-underlight {
    from {
        transform: rotate(0deg) scale(0.98);
    }

    to {
        transform: rotate(360deg) scale(1.02);
    }
}

@keyframes pack-progress-levitate {
    0%,
    100% {
        transform: rotateX(11deg) translateY(0);
    }

    50% {
        transform: rotateX(11deg) translateY(-3px);
    }
}

@keyframes pack-progress-grid {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(36px);
    }
}

@keyframes pack-progress-search {
    0% {
        background-position: -32% 0;
        opacity: 0.28;
    }

    24% {
        opacity: 0.96;
    }

    100% {
        background-position: 132% 0;
        opacity: 0.28;
    }
}

@keyframes pack-progress-spectrum {
    from {
        background-position: 0% 0;
    }

    to {
        background-position: 240% 0;
    }
}

@keyframes pack-progress-zig {
    from {
        background-position: 0% 0;
    }

    to {
        background-position: 120% 0;
    }
}

@keyframes pack-progress-comet {
    0%,
    100% {
        transform: translateY(-50%) scale(0.82);
        opacity: 0.34;
    }

    50% {
        transform: translateY(-50%) scale(1.2);
        opacity: 0.92;
    }
}

@media (prefers-reduced-motion: reduce) {
    .summary-card,
    .summary-card::before,
    .summary-card::after,
    .summary-card strong,
    .progress-shell::before,
    .progress-bar,
    .progress-bar::before,
    .progress-bar::after,
    .progress-bar span,
    .progress-bar span::before,
    .progress-bar span::after {
        animation: none !important;
        transform: none !important;
    }
}

.summary-grid--metrics .summary-card {
    grid-template-columns: minmax(0, 1fr) 78px;
    gap: 14px;
    min-height: 104px;
    padding: 18px 20px;
    border-radius: 26px;
}

.summary-grid--metrics .summary-card__body {
    position: relative;
    z-index: 3;
    display: grid;
    gap: 8px;
}

.summary-grid--metrics .summary-card .muted,
.summary-grid--metrics .summary-card strong {
    position: relative;
    z-index: 3;
    text-align: left;
}

.summary-grid--metrics .summary-card strong {
    font-size: clamp(1.4rem, 2vw, 2rem);
    line-height: 0.96;
    letter-spacing: -0.03em;
}

.summary-grid--metrics .summary-card__icon {
    position: relative;
    z-index: 3;
    width: 64px;
    height: 64px;
    justify-self: end;
    align-self: center;
    display: grid;
    place-items: center;
    border-radius: 22px;
    transform-style: preserve-3d;
}

.summary-grid--metrics .summary-card__icon::before,
.summary-grid--metrics .summary-card__icon::after,
.summary-grid--metrics .summary-card__mark::before,
.summary-grid--metrics .summary-card__mark::after {
    content: "";
    position: absolute;
}

.summary-grid--metrics .summary-card__icon::before {
    inset: -8px;
    border-radius: 26px;
    opacity: 0.72;
}

.summary-grid--metrics .summary-card__icon::after {
    inset: 7px;
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.06));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
    opacity: 0.9;
}

.summary-grid--metrics .summary-card__ring {
    position: absolute;
    inset: 4px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.34);
}

.summary-grid--metrics .summary-card__core {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    animation: pack-metric-core-pulse 1.4s ease-out infinite;
}

.summary-grid--metrics .summary-card__mark {
    position: absolute;
    width: 28px;
    height: 28px;
}

.summary-grid--metrics .summary-card--inventory {
    animation: pack-metric-lift 2.8s ease-in-out infinite;
}

.summary-grid--metrics .summary-card--inventory .summary-card__icon {
    animation: pack-metric-beacon 2.2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
    filter: drop-shadow(0 16px 22px rgba(255, 139, 107, 0.24));
}

.summary-grid--metrics .summary-card--inventory .summary-card__icon::before {
    background: radial-gradient(circle, rgba(255, 200, 87, 0.5), rgba(255, 200, 87, 0) 72%);
    animation: pack-metric-sonar 2.1s ease-out infinite;
}

.summary-grid--metrics .summary-card--inventory .summary-card__ring {
    border-color: rgba(255, 139, 107, 0.36);
    animation: pack-metric-rotate 1.9s linear infinite !important;
}

.summary-grid--metrics .summary-card--inventory .summary-card__core {
    background: radial-gradient(circle, #fff7d4 0%, #ffc45d 60%, #ff8b6b 100%);
    animation: pack-metric-core-pulse 0.95s ease-out infinite !important;
}

.summary-grid--metrics .summary-card--inventory .summary-card__mark {
    animation: pack-metric-pop 0.9s ease-in-out infinite !important;
}

.summary-grid--metrics .summary-card--inventory .summary-card__mark::before {
    inset: 3px 14px 14px 3px;
    border-radius: 8px;
    background: linear-gradient(180deg, #fff0c8, #ffb86c);
    box-shadow: 13px 8px 0 -2px rgba(255, 200, 87, 0.92), 5px -10px 0 -2px rgba(255, 139, 107, 0.72);
}

.summary-grid--metrics .summary-card--inventory .summary-card__mark::after {
    inset: 14px 3px 3px 14px;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 186, 112, 0.74));
}

.summary-grid--metrics .summary-card--inventory strong {
    animation: pack-metric-pop 1.8s ease-in-out infinite;
}

.summary-grid--metrics .summary-card--scanned {
    animation: pack-metric-scan-glide 1.9s cubic-bezier(0.32, 1, 0.68, 1) infinite;
}

.summary-grid--metrics .summary-card--scanned .summary-card__icon {
    animation: pack-metric-scan-glide 1.45s ease-in-out infinite;
    filter: drop-shadow(0 16px 24px rgba(24, 184, 153, 0.2));
}

.summary-grid--metrics .summary-card--scanned .summary-card__icon::before {
    background: linear-gradient(90deg, rgba(24, 184, 153, 0), rgba(24, 184, 153, 0.54), rgba(24, 184, 153, 0));
    animation: pack-metric-scan-beam 1s linear infinite;
}

.summary-grid--metrics .summary-card--scanned .summary-card__ring {
    border-color: rgba(24, 184, 153, 0.42);
    animation: pack-metric-rotate 1.4s linear infinite;
}

.summary-grid--metrics .summary-card--scanned .summary-card__core {
    background: radial-gradient(circle, #ebfff8 0%, #18b899 74%, #0d7b68 100%);
    animation: pack-metric-core-pulse 0.8s ease-out infinite !important;
}

.summary-grid--metrics .summary-card--scanned .summary-card__mark {
    width: 22px;
    height: 12px;
    border-left: 4px solid #18b899;
    border-bottom: 4px solid #18b899;
    border-radius: 4px 0 4px 2px;
    transform: rotate(-45deg);
    animation: pack-metric-check-pop 1.2s ease-in-out infinite;
}

.summary-grid--metrics .summary-card--remaining {
    animation: pack-metric-orbit-card 3.1s ease-in-out infinite;
}

.summary-grid--metrics .summary-card--remaining .summary-card__icon {
    animation: pack-metric-orbit-card 2.6s ease-in-out infinite;
    filter: drop-shadow(0 18px 24px rgba(89, 169, 255, 0.2));
}

.summary-grid--metrics .summary-card--remaining .summary-card__icon::before {
    border: 1px solid rgba(89, 169, 255, 0.3);
    border-radius: 50%;
    animation: pack-metric-sonar 1.9s ease-out infinite;
}

.summary-grid--metrics .summary-card--remaining .summary-card__ring {
    border-style: dashed;
    border-color: rgba(89, 169, 255, 0.42);
    animation: pack-metric-rotate-reverse 4s linear infinite;
}

.summary-grid--metrics .summary-card--remaining .summary-card__core {
    background: radial-gradient(circle, #ffffff 0%, #7ba8ff 70%, #6f55ff 100%);
    box-shadow: -22px -14px 0 -2px rgba(89, 169, 255, 0.58), 18px 12px 0 -2px rgba(139, 123, 255, 0.45);
    animation: pack-metric-core-drift 1.2s ease-in-out infinite !important;
}

.summary-grid--metrics .summary-card--remaining .summary-card__mark {
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    background: linear-gradient(180deg, #eff5ff, #7ba8ff 62%, #6f55ff);
    animation: pack-metric-orbit-mark 2.4s ease-in-out infinite;
}

.summary-grid--metrics .summary-card--amount {
    animation: pack-metric-coin-shine 2.7s ease-in-out infinite;
}

.summary-grid--metrics .summary-card--amount .summary-card__icon {
    animation: pack-metric-coin-roll 2.1s cubic-bezier(0.22, 1, 0.36, 1) infinite;
    filter: drop-shadow(0 18px 26px rgba(197, 106, 45, 0.2));
}

.summary-grid--metrics .summary-card--amount .summary-card__icon::before {
    background: radial-gradient(circle, rgba(255, 200, 87, 0.46), rgba(255, 200, 87, 0) 72%);
    animation: pack-metric-sonar 1.8s ease-out infinite;
}

.summary-grid--metrics .summary-card--amount .summary-card__ring {
    border-color: rgba(255, 200, 87, 0.46);
    animation: pack-metric-rotate 1.8s linear infinite;
}

.summary-grid--metrics .summary-card--amount .summary-card__core {
    width: 32px;
    height: 32px;
    background: radial-gradient(circle at 32% 30%, #fff9d4 0%, #ffc54d 62%, #df7a1c 100%);
    animation: pack-metric-coin-roll 0.95s cubic-bezier(0.22, 1, 0.36, 1) infinite !important;
}

.summary-grid--metrics .summary-card--amount .summary-card__mark {
    width: 10px;
    height: 26px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(94, 58, 17, 0.9), rgba(197, 106, 45, 0.85));
    box-shadow: 0 0 0 4px rgba(255, 244, 184, 0.36);
    animation: pack-metric-currency-flip 0.82s ease-in-out infinite !important;
}

.summary-grid--metrics .summary-card--amount .summary-card__mark::before {
    inset: 3px -7px;
    border-radius: 999px;
    border: 3px solid rgba(94, 58, 17, 0.74);
    opacity: 0.84;
}

.summary-grid--metrics .summary-card--amount strong {
    color: transparent;
    background: linear-gradient(90deg, #5e3a11, #c56a2d 24%, #fff4b8 48%, #c56a2d 72%, #5e3a11);
    background-size: 240% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: pack-metric-cashflow 1.8s linear infinite;
}

.progress-shell--metrics::before {
    inset: 6px 18px -18px;
    opacity: 0.92;
    animation: pack-metric-progress-hum 2.4s linear infinite;
}

.progress-shell--metrics .progress-bar {
    transform: rotateX(16deg) translateZ(0);
    box-shadow: inset 0 2px 5px rgba(23, 33, 31, 0.16), 0 18px 30px rgba(24, 184, 153, 0.18);
    animation: pack-metric-progress-hum 2.1s ease-in-out infinite;
}

.progress-shell--metrics .progress-bar::after {
    background-size: 30% 100%;
    animation: pack-metric-scan-beam 1.1s linear infinite;
}

.progress-shell--metrics .progress-bar__fill {
    position: relative;
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: inherit;
    background-size: 260% 100%;
    animation: pack-metric-cashflow 1.9s linear infinite;
}

.progress-shell--metrics .progress-bar__fill::before {
    content: "";
    position: absolute;
    inset: -34% 10% -34% -10%;
    background: linear-gradient(105deg, rgba(255, 255, 255, 0) 12%, rgba(255, 255, 255, 0.24) 34%, rgba(255, 255, 255, 0.56) 48%, rgba(255, 255, 255, 0.16) 62%, rgba(255, 255, 255, 0) 76%);
    animation: pack-metric-scan-beam 0.9s linear infinite;
}

.progress-shell--metrics .progress-bar__fill::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -14px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transform: translateY(-50%);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.3) 36%, rgba(255, 255, 255, 0) 70%);
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.58);
    animation: pack-metric-comet 1.1s ease-in-out infinite;
}

@keyframes pack-metric-lift {
    0%,
    100% {
        transform: translateY(0) rotateX(0deg) rotateY(0deg);
    }

    50% {
        transform: translateY(-8px) rotateX(8deg) rotateY(-10deg);
    }
}

@keyframes pack-metric-beacon {
    0%,
    100% {
        transform: rotate(0deg) translateY(0);
    }

    50% {
        transform: rotate(-8deg) translateY(-6px);
    }
}

@keyframes pack-metric-core-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.18);
    }

    100% {
        box-shadow: 0 0 0 14px rgba(255, 255, 255, 0);
    }
}

@keyframes pack-metric-pop {
    0%,
    100% {
        transform: scale(1);
    }

    22% {
        transform: scale(1.12);
    }

    42% {
        transform: scale(0.96);
    }
}

@keyframes pack-metric-scan-glide {
    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    50% {
        transform: translateY(-4px) translateX(4px);
    }
}

@keyframes pack-metric-scan-beam {
    0% {
        background-position: -120% 0;
    }

    100% {
        background-position: 160% 0;
    }
}

@keyframes pack-metric-check-pop {
    0%,
    100% {
        opacity: 0.76;
        transform: rotate(-45deg) scale(0.92);
    }

    50% {
        opacity: 1;
        transform: rotate(-45deg) scale(1.1);
    }
}

@keyframes pack-metric-orbit-card {
    0%,
    100% {
        transform: translateY(0) rotateX(0deg) rotateY(0deg);
    }

    50% {
        transform: translateY(-6px) rotateX(6deg) rotateY(6deg);
    }
}

@keyframes pack-metric-sonar {
    0% {
        transform: scale(0.72);
        opacity: 0.22;
    }

    100% {
        transform: scale(1.28);
        opacity: 0;
    }
}

@keyframes pack-metric-orbit-mark {
    0%,
    100% {
        transform: scale(0.92);
        filter: drop-shadow(0 0 0 rgba(89, 169, 255, 0));
    }

    50% {
        transform: scale(1.12);
        filter: drop-shadow(0 12px 18px rgba(89, 169, 255, 0.26));
    }
}

@keyframes pack-metric-rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pack-metric-rotate-reverse {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

@keyframes pack-metric-coin-roll {
    0%,
    100% {
        transform: rotate(0deg) translateY(0);
    }

    50% {
        transform: rotate(-12deg) translateY(-6px);
    }
}

@keyframes pack-metric-coin-shine {
    0%,
    100% {
        transform: translateY(0) rotateX(0deg) rotateY(0deg);
    }

    50% {
        transform: translateY(-7px) rotateX(5deg) rotateY(-10deg);
    }
}

@keyframes pack-metric-cashflow {
    from {
        background-position: 0% 0;
    }

    to {
        background-position: 240% 0;
    }
}

@keyframes pack-metric-progress-hum {
    0%,
    100% {
        transform: rotateX(16deg) translateY(0);
    }

    50% {
        transform: rotateX(16deg) translateY(-4px);
    }
}

@keyframes pack-metric-comet {
    0%,
    100% {
        transform: translateY(-50%) scale(0.88);
        opacity: 0.42;
    }

    50% {
        transform: translateY(-50%) scale(1.16);
        opacity: 1;
    }
}

@keyframes pack-metric-core-drift {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-4px) scale(1.12);
    }
}

@keyframes pack-metric-currency-flip {
    0%,
    100% {
        transform: rotate(0deg) scaleY(1);
    }

    50% {
        transform: rotate(10deg) scaleY(1.16);
    }
}

@keyframes pack-metric-card-calm {
    0%,
    100% {
        transform: translateY(0) rotateX(0deg) rotateY(0deg) scale(1);
    }

    50% {
        transform: translateY(-3px) rotateX(2deg) rotateY(-2deg) scale(1.01);
    }
}

@keyframes pack-metric-icon-float-calm {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-2px) scale(1.025);
    }
}

@keyframes pack-metric-halo-calm {
    0% {
        transform: scale(0.88);
        opacity: 0.08;
    }

    45% {
        opacity: 0.34;
    }

    100% {
        transform: scale(1.12);
        opacity: 0;
    }
}

@keyframes pack-metric-core-soft {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.88;
    }

    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

@keyframes pack-metric-mark-soft {
    0%,
    100% {
        transform: translateY(0);
        opacity: 0.9;
    }

    50% {
        transform: translateY(-1px);
        opacity: 1;
    }
}

@keyframes pack-metric-scan-sheen-soft {
    0% {
        background-position: -120% 0;
        opacity: 0.14;
    }

    20% {
        opacity: 0.4;
    }

    100% {
        background-position: 160% 0;
        opacity: 0.14;
    }
}

@keyframes pack-metric-progress-calm {
    0%,
    100% {
        transform: rotateX(10deg) translateY(0);
    }

    50% {
        transform: rotateX(10deg) translateY(-1px);
    }
}

@keyframes pack-metric-comet-soft {
    0%,
    100% {
        transform: translateY(-50%) scale(0.9);
        opacity: 0.24;
    }

    50% {
        transform: translateY(-50%) scale(1.02);
        opacity: 0.56;
    }
}

@media (prefers-reduced-motion: reduce) {
    .summary-grid--metrics .summary-card,
    .summary-grid--metrics .summary-card__icon,
    .summary-grid--metrics .summary-card__icon::before,
    .summary-grid--metrics .summary-card__ring,
    .summary-grid--metrics .summary-card__core,
    .summary-grid--metrics .summary-card__mark,
    .summary-grid--metrics .summary-card strong,
    .progress-shell--metrics::before,
    .progress-shell--metrics .progress-bar,
    .progress-shell--metrics .progress-bar__fill,
    .progress-shell--metrics .progress-bar__fill::before,
    .progress-shell--metrics .progress-bar__fill::after {
        animation: none !important;
        transform: none !important;
    }
}

.summary-grid--metrics .summary-card__icon,
.summary-grid--metrics .summary-card__ring,
.summary-grid--metrics .summary-card__core,
.summary-grid--metrics .summary-card__mark,
.progress-shell--metrics .progress-bar__fill::after {
    display: block;
    transform-origin: center;
    will-change: transform, opacity, filter;
}

.summary-grid--metrics .summary-card--inventory {
    animation: pack-metric-card-calm 9.2s ease-in-out infinite !important;
}

.summary-grid--metrics .summary-card--inventory .summary-card__icon {
    animation: pack-metric-icon-float-calm 7.2s ease-in-out infinite !important;
}

.summary-grid--metrics .summary-card--inventory .summary-card__icon::before {
    animation: pack-metric-halo-calm 6.8s ease-out infinite !important;
}

.summary-grid--metrics .summary-card--inventory strong {
    animation: pack-metric-mark-soft 8s ease-in-out infinite !important;
}

.summary-grid--metrics .summary-card--inventory .summary-card__ring {
    animation: pack-metric-rotate 16s linear infinite !important;
}

.summary-grid--metrics .summary-card--inventory .summary-card__core {
    animation: pack-metric-core-soft 4.8s ease-in-out infinite !important;
}

.summary-grid--metrics .summary-card--inventory .summary-card__mark {
    animation: pack-metric-mark-soft 6.4s ease-in-out infinite !important;
}

.summary-grid--metrics .summary-card--scanned {
    animation: pack-metric-card-calm 8.4s ease-in-out infinite !important;
}

.summary-grid--metrics .summary-card--scanned .summary-card__icon {
    animation: pack-metric-icon-float-calm 6.2s ease-in-out infinite !important;
}

.summary-grid--metrics .summary-card--scanned .summary-card__icon::before {
    animation: pack-metric-scan-sheen-soft 4.6s linear infinite !important;
}

.summary-grid--metrics .summary-card--scanned .summary-card__ring {
    animation: pack-metric-rotate 14s linear infinite !important;
}

.summary-grid--metrics .summary-card--scanned .summary-card__mark {
    animation: pack-metric-mark-soft 5.8s ease-in-out infinite !important;
}

.summary-grid--metrics .summary-card--scanned .summary-card__core {
    animation: pack-metric-core-soft 4.2s ease-in-out infinite !important;
}

.summary-grid--metrics .summary-card--scanned strong {
    animation: pack-metric-mark-soft 7.6s ease-in-out infinite !important;
}

.summary-grid--metrics .summary-card--remaining {
    animation: pack-metric-card-calm 9.8s ease-in-out infinite !important;
}

.summary-grid--metrics .summary-card--remaining .summary-card__icon {
    animation: pack-metric-icon-float-calm 7.8s ease-in-out infinite !important;
}

.summary-grid--metrics .summary-card--remaining .summary-card__icon::before {
    animation: pack-metric-halo-calm 6.6s ease-out infinite !important;
}

.summary-grid--metrics .summary-card--remaining .summary-card__ring {
    animation: pack-metric-rotate-reverse 18s linear infinite !important;
}

.summary-grid--metrics .summary-card--remaining .summary-card__mark {
    animation: pack-metric-mark-soft 6.8s ease-in-out infinite !important;
}

.summary-grid--metrics .summary-card--remaining .summary-card__core {
    animation: pack-metric-core-soft 5.2s ease-in-out infinite !important;
}

.summary-grid--metrics .summary-card--remaining strong {
    animation: pack-metric-mark-soft 8.2s ease-in-out infinite !important;
}

.summary-grid--metrics .summary-card--amount {
    animation: pack-metric-card-calm 10.4s ease-in-out infinite !important;
}

.summary-grid--metrics .summary-card--amount .summary-card__icon {
    animation: pack-metric-icon-float-calm 7.4s ease-in-out infinite !important;
}

.summary-grid--metrics .summary-card--amount .summary-card__icon::before {
    animation: pack-metric-halo-calm 6.2s ease-out infinite !important;
}

.summary-grid--metrics .summary-card--amount .summary-card__ring {
    animation: pack-metric-rotate 15s linear infinite !important;
}

.summary-grid--metrics .summary-card--amount strong {
    animation: pack-metric-cashflow 8s linear infinite !important;
}

.summary-grid--metrics .summary-card--amount .summary-card__core {
    animation: pack-metric-core-soft 4.8s ease-in-out infinite !important;
}

.summary-grid--metrics .summary-card--amount .summary-card__mark {
    animation: pack-metric-mark-soft 6s ease-in-out infinite !important;
}

.progress-shell--metrics::before {
    animation: pack-metric-progress-calm 9s ease-in-out infinite !important;
}

.progress-shell--metrics .progress-bar {
    animation: pack-metric-progress-calm 7.6s ease-in-out infinite !important;
}

.progress-shell--metrics .progress-bar::after {
    animation: pack-metric-scan-sheen-soft 4.8s linear infinite !important;
}

.progress-shell--metrics .progress-bar__fill {
    animation: pack-metric-cashflow 9s linear infinite !important;
}

.progress-shell--metrics .progress-bar__fill::before {
    animation: pack-metric-scan-sheen-soft 5.4s linear infinite !important;
}

.progress-shell--metrics .progress-bar__fill::after {
    animation: pack-metric-comet-soft 4.2s ease-in-out infinite !important;
}

.detail-hero-card {
    gap: 16px;
    padding: 20px 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(23, 33, 31, 0.08);
    box-shadow: 0 10px 28px rgba(23, 33, 31, 0.05);
}

.detail-stack.is-cancelled-order .detail-hero-card {
    background: rgba(255, 250, 250, 0.96);
    border-color: rgba(182, 59, 57, 0.12);
    box-shadow: 0 10px 28px rgba(182, 59, 57, 0.05);
}

.detail-top {
    gap: 16px 20px;
    align-items: start;
}

.detail-title-block {
    gap: 8px;
}

.detail-hero-card .eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(197, 106, 45, 0.08);
    color: rgba(131, 74, 34, 0.86);
    letter-spacing: 0.08em;
}

.detail-top h2 {
    font-size: clamp(1.85rem, 2.2vw, 2.7rem);
    line-height: 0.95;
}

.detail-subcopy {
    font-size: 0.9rem;
    color: rgba(23, 33, 31, 0.62);
}

.detail-status-row {
    gap: 8px;
}

.detail-status-row .inline-pill,
.category-state-pill {
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(23, 33, 31, 0.08);
    backdrop-filter: none;
    font-size: 0.76rem;
    font-weight: 650;
    letter-spacing: 0.03em;
    box-shadow: none;
}

.detail-actions {
    gap: 8px;
}

.detail-actions .secondary-btn,
.detail-actions .primary-btn {
    min-height: 40px;
    padding: 0 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 650;
    box-shadow: none;
}

.detail-actions .secondary-btn {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(23, 33, 31, 0.08);
}

.detail-actions .primary-btn {
    background: #1c8b74;
    border: 1px solid #1c8b74;
}

.detail-actions .primary-btn:disabled {
    background: rgba(28, 139, 116, 0.18);
    border-color: rgba(28, 139, 116, 0.12);
    color: rgba(23, 33, 31, 0.42);
}

.summary-grid--metrics {
    gap: 10px;
}

.summary-grid--metrics .summary-card {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 6px;
    padding: 14px 15px;
    border-radius: 18px;
    background: rgba(249, 248, 245, 0.94);
    border: 1px solid rgba(23, 33, 31, 0.06);
    box-shadow: none;
    animation: none !important;
    transform: none !important;
}

.summary-grid--metrics .summary-card::before {
    height: 2px;
    opacity: 0.55;
    animation: none !important;
}

.summary-grid--metrics .summary-card::after {
    display: none;
}

.summary-grid--metrics .summary-card__body {
    gap: 4px;
}

.summary-grid--metrics .summary-card .muted {
    max-width: none;
    font-size: 0.68rem;
    letter-spacing: 0.09em;
    color: rgba(23, 33, 31, 0.48);
}

.summary-grid--metrics .summary-card strong {
    font-size: clamp(1.2rem, 1.6vw, 1.7rem);
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--ink);
    background: none !important;
    -webkit-background-clip: initial;
    background-clip: initial;
    animation: none !important;
}

.summary-grid--metrics .summary-card--amount strong {
    color: #8d5a2b;
}

.summary-grid--metrics .summary-card__icon,
.summary-grid--metrics .summary-card__ring,
.summary-grid--metrics .summary-card__core,
.summary-grid--metrics .summary-card__mark {
    display: none !important;
}

.progress-shell--metrics {
    padding-top: 2px;
}

.progress-shell--metrics::before,
.progress-shell--metrics::after,
.progress-shell--metrics .progress-bar::before,
.progress-shell--metrics .progress-bar::after,
.progress-shell--metrics .progress-bar__fill::before,
.progress-shell--metrics .progress-bar__fill::after {
    content: none !important;
    display: none !important;
}

.progress-shell--metrics .progress-bar {
    height: 6px;
    background: rgba(23, 33, 31, 0.08);
    border-radius: 999px;
    box-shadow: none;
    transform: none !important;
    animation: none !important;
}

.progress-shell--metrics .progress-bar__fill {
    background: #1c8b74;
    box-shadow: none;
    animation: none !important;
}

.detail-ambient-wait {
    position: relative;
    width: 100%;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
}

.detail-ambient-wait__track {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(23, 33, 31, 0.06);
}

.detail-ambient-wait__glow {
    position: absolute;
    top: 1px;
    bottom: 1px;
    left: -28%;
    width: 28%;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(28, 139, 116, 0), rgba(28, 139, 116, 0.34), rgba(28, 139, 116, 0));
    filter: blur(4px);
    animation: detail-ambient-wait-flow 2.8s ease-in-out infinite;
    animation-play-state: running;
}

.detail-ambient-wait::after {
    content: "";
    position: absolute;
    top: 50%;
    left: -8px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #1c8b74;
    box-shadow: 0 0 0 4px rgba(28, 139, 116, 0.08);
    transform: translateY(-50%);
    animation: detail-ambient-wait-dot 2.8s ease-in-out infinite;
    animation-play-state: running;
}

.detail-ambient-wait--empty {
    width: min(260px, 54%);
    margin: 2px auto 10px;
}

.detail-empty-loader {
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    min-height: 34px;
    margin: 4px 0 8px;
}

.detail-empty-loader__dot {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(28, 139, 116, 0.88);
    box-shadow: 0 0 0 6px rgba(28, 139, 116, 0.08);
    animation: detail-empty-loader-bounce 1.35s ease-in-out infinite;
    animation-play-state: running;
    will-change: transform, opacity;
}

.detail-empty-loader__dot:nth-child(2) {
    animation-delay: 0.18s;
}

.detail-empty-loader__dot:nth-child(3) {
    animation-delay: 0.36s;
}

.scanner-hero-visual-track::after {
    animation: scanner-hero-track-flow 2.2s linear infinite !important;
    animation-play-state: running;
    will-change: transform;
}

.scanner-hero-scan-gate__beam {
    animation: scanner-hero-beam-pulse 1.8s ease-in-out infinite !important;
    animation-play-state: running;
    will-change: transform, opacity;
}

.scanner-hero-package {
    animation: scanner-hero-package-move 4.2s cubic-bezier(0.38, 0, 0.2, 1) infinite !important;
    animation-play-state: running;
    will-change: transform, opacity;
}

@keyframes detail-ambient-wait-flow {
    0% {
        transform: translateX(0);
        opacity: 0.18;
    }

    25% {
        opacity: 0.38;
    }

    100% {
        transform: translateX(460%);
        opacity: 0.18;
    }
}

@keyframes detail-ambient-wait-dot {
    0% {
        left: -8px;
        opacity: 0.28;
    }

    15% {
        opacity: 0.82;
    }

    100% {
        left: calc(100% + 8px);
        opacity: 0.28;
    }
}

@keyframes detail-empty-loader-bounce {
    0%,
    100% {
        transform: translateY(0) scale(0.92);
        opacity: 0.38;
    }

    50% {
        transform: translateY(-8px) scale(1);
        opacity: 1;
    }
}

.view-page:not([hidden]),
.auth-shell:not([hidden]),
.scanner-hero:not([hidden]) {
    transform-origin: 50% 0;
    transform-style: preserve-3d;
    animation: pack-stage-enter 760ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

body[data-current-view="operations"] .scanner-hero:not([hidden]),
body[data-current-view="operations"] .view-page:not([hidden]) {
    animation-duration: 860ms;
}

.empty-state-iconic {
    min-height: 220px;
    padding: 26px;
}

.loading-stage {
    width: min(100%, 560px);
    display: grid;
    justify-items: center;
    gap: 18px;
    perspective: 1400px;
}

.loading-stage.is-compact {
    width: 100%;
    gap: 14px;
}

.loading-stage-scene {
    position: relative;
    width: min(100%, 320px);
    height: 220px;
    display: grid;
    place-items: center;
    transform-style: preserve-3d;
}

.loading-stage.is-compact .loading-stage-scene {
    width: min(100%, 280px);
    height: 190px;
}

.loading-stage-floor,
.loading-stage-orbit,
.loading-stage-shadow,
.loading-stage-beacon {
    position: absolute;
    pointer-events: none;
}

.loading-stage-floor {
    inset: auto 24px 28px;
    height: 88px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, rgba(89, 169, 255, 0.14), rgba(89, 169, 255, 0) 62%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.48);
    transform: rotateX(72deg) translateZ(-14px);
    box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.14);
}

.loading-stage-orbit {
    --orbit-tilt: 76deg;
    --orbit-z: 10px;
    --orbit-start: 0deg;
    inset: 28px 60px auto;
    height: 120px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.54);
    background: linear-gradient(90deg, rgba(255, 200, 87, 0.14), rgba(24, 184, 153, 0.08), rgba(89, 169, 255, 0.14));
    transform-style: preserve-3d;
    opacity: 0.86;
    transform: rotateX(var(--orbit-tilt)) rotateZ(var(--orbit-start)) translateZ(var(--orbit-z));
}

.loading-stage-orbit-a {
    --orbit-start: 8deg;
    --orbit-z: 6px;
    animation: pack-orbit-spin 4.2s linear infinite;
}

.loading-stage-orbit-b {
    inset: 46px 74px auto;
    height: 88px;
    --orbit-start: -22deg;
    --orbit-z: 18px;
    animation: pack-orbit-spin 5.6s linear infinite reverse;
}

.loading-stage-orbit-c {
    inset: 64px 92px auto;
    height: 52px;
    border-color: rgba(255, 139, 107, 0.42);
    transform: rotateX(76deg) rotateZ(32deg) translateZ(28px);
    animation: pack-orbit-pulse 2.8s ease-in-out infinite;
}

.loading-stage-beacon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.96), rgba(255, 200, 87, 0.92) 58%, rgba(255, 139, 107, 0.2) 100%);
    box-shadow: 0 0 0 10px rgba(255, 200, 87, 0.08), 0 0 36px rgba(255, 200, 87, 0.34);
    transform: translateY(-26px) translateZ(36px);
    animation: pack-beacon-breathe 1.9s ease-in-out infinite;
}

.loading-stage-cube {
    position: relative;
    width: 76px;
    height: 76px;
    transform-style: preserve-3d;
    transform: translateY(-8px) rotateX(-28deg) rotateY(-38deg);
    animation: pack-cube-drift 3.6s ease-in-out infinite;
}

.loading-stage-face {
    position: absolute;
    inset: 0;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.18);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(244, 249, 255, 0.36));
    backdrop-filter: blur(8px);
}

.loading-stage-face-top {
    transform: rotateX(90deg) translateZ(38px);
    background: linear-gradient(135deg, rgba(255, 200, 87, 0.68), rgba(255, 255, 255, 0.34));
}

.loading-stage-face-front {
    transform: translateZ(38px);
    background: linear-gradient(135deg, rgba(24, 184, 153, 0.26), rgba(255, 255, 255, 0.82));
}

.loading-stage-face-side {
    transform: rotateY(90deg) translateZ(38px);
    background: linear-gradient(135deg, rgba(89, 169, 255, 0.42), rgba(255, 255, 255, 0.48));
}

.loading-stage-shadow {
    bottom: 34px;
    width: 120px;
    height: 28px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(23, 33, 31, 0.18), rgba(23, 33, 31, 0) 72%);
    transform: translateZ(-10px);
    animation: pack-shadow-breathe 3.6s ease-in-out infinite;
}

.loading-stage-copy {
    display: grid;
    gap: 10px;
    text-align: center;
    max-width: 48ch;
}

.loading-stage-copy .eyebrow {
    margin: 0 auto;
}

.loading-stage-copy h3 {
    margin: 0;
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    letter-spacing: -0.04em;
    color: var(--ink);
}

.loading-stage-copy p:last-child,
.loading-stage-copy > p:not(.eyebrow) {
    margin: 0;
    color: rgba(23, 33, 31, 0.66);
    line-height: 1.65;
}

.loading-stage-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.loading-stage-meta span {
    min-height: 34px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 12px 22px rgba(61, 48, 33, 0.08);
    color: rgba(23, 33, 31, 0.68);
    font-size: 0.8rem;
    font-weight: 700;
}

.detail-hero-loading-card {
    gap: 24px;
}

.detail-loading-stack .loading-stage {
    width: 100%;
}

.detail-loading-stack .summary-card {
    transform: translateZ(20px);
}

.detail-loading-stack .summary-card:nth-child(2) {
    transform: translateZ(38px);
}

.detail-loading-stack .summary-card:nth-child(3) {
    transform: translateZ(28px);
}

.detail-loading-stack .summary-card:nth-child(4) {
    transform: translateZ(16px);
}

.scan-success-burst {
    position: sticky;
    top: 18px;
    z-index: 8;
    justify-self: center;
    margin-bottom: -24px;
    padding: 14px 18px;
    display: grid;
    justify-items: center;
    gap: 10px;
    min-width: 164px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(241, 255, 251, 0.96), rgba(255, 255, 255, 0.88));
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: 0 24px 44px rgba(24, 184, 153, 0.18);
    backdrop-filter: blur(14px);
    animation: pack-correct-burst 1000ms cubic-bezier(0.18, 0.9, 0.2, 1) both;
    pointer-events: none;
}

.scan-success-burst p {
    margin: 0;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0f8a72;
}

.scan-success-burst-core {
    position: relative;
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    transform-style: preserve-3d;
}

.scan-success-burst-ring,
.scan-success-burst-check {
    position: absolute;
}

.scan-success-burst-ring {
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(24, 184, 153, 0.2);
}

.scan-success-burst-ring-a {
    border-color: rgba(24, 184, 153, 0.34);
    animation: pack-correct-ring-a 1000ms ease-out both;
}

.scan-success-burst-ring-b {
    inset: 8px;
    border-color: rgba(89, 169, 255, 0.3);
    animation: pack-correct-ring-b 1000ms ease-out both;
}

.scan-success-burst-check {
    width: 22px;
    height: 38px;
    border-right: 6px solid #0f8a72;
    border-bottom: 6px solid #0f8a72;
    transform: rotate(45deg) scale(0.72);
    border-radius: 2px;
    animation: pack-correct-check 1000ms cubic-bezier(0.18, 0.9, 0.2, 1) both;
    filter: drop-shadow(0 8px 14px rgba(24, 184, 153, 0.2));
}

@keyframes pack-stage-enter {
    0% {
        opacity: 0;
        transform: perspective(1400px) rotateX(12deg) translateY(34px) scale(0.97);
        filter: blur(8px);
    }

    100% {
        opacity: 1;
        transform: perspective(1400px) rotateX(0deg) translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes pack-cube-drift {
    0%,
    100% {
        transform: translateY(-8px) rotateX(-28deg) rotateY(-38deg);
    }

    50% {
        transform: translateY(-18px) rotateX(-22deg) rotateY(-18deg);
    }
}

@keyframes pack-orbit-spin {
    from {
        transform: rotateX(var(--orbit-tilt)) rotateZ(var(--orbit-start)) translateZ(var(--orbit-z));
    }

    to {
        transform: rotateX(var(--orbit-tilt)) rotateZ(calc(var(--orbit-start) + 360deg)) translateZ(var(--orbit-z));
    }
}

@keyframes pack-orbit-pulse {
    0%,
    100% {
        opacity: 0.36;
        transform: rotateX(76deg) rotateZ(32deg) translateZ(28px) scale(0.96);
    }

    50% {
        opacity: 0.88;
        transform: rotateX(76deg) rotateZ(32deg) translateZ(34px) scale(1.04);
    }
}

@keyframes pack-beacon-breathe {
    0%,
    100% {
        transform: translateY(-26px) translateZ(36px) scale(0.96);
    }

    50% {
        transform: translateY(-34px) translateZ(42px) scale(1.08);
    }
}

@keyframes pack-shadow-breathe {
    0%,
    100% {
        opacity: 0.28;
        transform: scale(0.9);
    }

    50% {
        opacity: 0.16;
        transform: scale(1.05);
    }
}

@keyframes pack-correct-burst {
    0% {
        opacity: 0;
        transform: translateY(18px) scale(0.82);
        filter: blur(8px);
    }

    18% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }

    80% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-10px) scale(1.06);
    }
}

@keyframes pack-correct-ring-a {
    0% {
        opacity: 0;
        transform: scale(0.52) translateZ(0);
    }

    28% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: scale(1.3) translateZ(0);
    }
}

@keyframes pack-correct-ring-b {
    0% {
        opacity: 0;
        transform: scale(0.4) translateZ(0);
    }

    34% {
        opacity: 0.86;
    }

    100% {
        opacity: 0;
        transform: scale(1.18) translateZ(0);
    }
}

@keyframes pack-correct-check {
    0% {
        opacity: 0;
        transform: rotate(45deg) scale(0.36);
    }

    26% {
        opacity: 1;
        transform: rotate(45deg) scale(1.08);
    }

    46% {
        transform: rotate(45deg) scale(0.96);
    }

    100% {
        opacity: 1;
        transform: rotate(45deg) scale(1);
    }
}

@media (max-width: 720px) {
    .loading-stage-scene {
        width: min(100%, 250px);
        height: 174px;
    }

    .loading-stage-copy h3 {
        font-size: 1.12rem;
    }

    .loading-stage-meta span {
        font-size: 0.74rem;
    }
}

@media (max-width: 720px) {
    body {
        background: #f5f2eb;
    }

    .page-shell {
        padding: 10px 10px 18px;
        gap: 10px;
    }

    .view-switch.main-switch {
        position: sticky;
        top: 8px;
        z-index: 50;
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: max-content;
        gap: 8px;
        overflow-x: auto;
        padding: 6px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.94);
        border: 1px solid rgba(23, 33, 31, 0.08);
        box-shadow: none;
        backdrop-filter: blur(10px);
        scrollbar-width: none;
    }

    .view-switch.main-switch::-webkit-scrollbar {
        display: none;
    }

    .view-tab,
    .ghost-btn,
    .primary-btn,
    .secondary-btn,
    .scanner-row-actions button,
    .supply-search-row .primary-btn,
    .auth-submit {
        min-height: 42px;
        border-radius: 999px;
        padding: 0 14px;
        box-shadow: none !important;
    }

    .card,
    .queue-strip,
    .detail-panel,
    .queue-list-panel,
    .category-tabs,
    .auth-card,
    .supply-hero-card,
    .admin-hero-card,
    .admin-user-card,
    .supply-product-card,
    .detail-block,
    .summary-card,
    .product-card,
    .order-card,
    .history-card,
    .info-card,
    .notice-card,
    .order-note-item {
        border-radius: 18px !important;
        box-shadow: none !important;
        border-color: rgba(23, 33, 31, 0.08) !important;
        background: rgba(255, 255, 255, 0.94) !important;
    }

    .detail-hero-card::before,
    .detail-hero-card::after,
    .product-card::before,
    .detail-stack.ready-celebration::before,
    .detail-stack.ready-celebration::after,
    .summary-grid--metrics .summary-card::before,
    .summary-grid--metrics .summary-card::after,
    .summary-card__icon,
    .detail-ambient-wait,
    .scanner-hero-visual,
    .scanner-hero-visual--empty,
    .category-chip-support,
    .category-chip-meta,
    .category-rail-head,
    .queue-strip-subtitle,
    .queue-meta-kicker,
    .info-toggle-preview,
    .history-card,
    .scan-success-burst {
        display: none !important;
    }

    .scanner-hero-visual-track::after,
    .scanner-hero-scan-gate__beam,
    .scanner-hero-package,
    .loading-stage-cube,
    .loading-stage-orbit,
    .loading-stage-beacon,
    .loading-stage-shadow {
        animation: none !important;
        transition: none !important;
    }

    .section-head {
        gap: 10px;
        margin-bottom: 12px;
    }

    .section-head h2,
    .section-head h3,
    .empty-state h2 {
        font-size: 1.02rem;
        line-height: 1.18;
    }

    .eyebrow {
        font-size: 0.62rem;
        letter-spacing: 0.14em;
    }

    .auth-shell {
        min-height: auto;
        padding: 4px 0 16px;
    }

    .auth-card {
        width: 100%;
        padding: 18px;
    }

    .auth-copy {
        margin-bottom: 16px;
        font-size: 0.9rem;
        line-height: 1.45;
    }

    .auth-actions,
    .detail-actions,
    .admin-form-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        width: 100%;
    }

    .scanner-hero {
        padding: 14px;
        margin-bottom: 12px;
        gap: 12px;
        background: rgba(255, 255, 255, 0.88) !important;
        border-color: rgba(23, 33, 31, 0.08) !important;
    }

    .scanner-hero-top,
    .scanner-hero-side {
        grid-template-columns: 1fr;
        gap: 10px;
        min-width: 0;
        width: 100%;
    }

    .scanner-hero-copy h1 {
        font-size: 1.28rem;
        line-height: 1.02;
        letter-spacing: -0.03em;
    }

    .scanner-hero-copy-text,
    .supply-copy,
    .queue-strip-title .eyebrow + h2 + p {
        font-size: 0.88rem;
        line-height: 1.42;
    }

    .scanner-hero-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .session-pill,
    .hero-status {
        grid-column: 1 / -1;
    }

    .scanner-row,
    .supply-search-row,
    .scan-row,
    .order-note-form,
    .admin-form-grid {
        grid-template-columns: 1fr !important;
        gap: 8px;
    }

    .scanner-row input,
    .supply-search-row input,
    .scan-row input,
    .auth-field input,
    .order-note-form input,
    .admin-field input,
    .admin-field select,
    .admin-field textarea {
        min-height: 46px;
        border-radius: 14px;
        padding: 12px 14px;
        box-shadow: none !important;
    }

    .minimal-layout,
    .supply-layout,
    .admin-layout {
        gap: 12px;
    }

    .queue-strip,
    .workspace,
    .detail-panel {
        position: static !important;
        top: auto !important;
    }

    .queue-strip,
    .supply-hero-card,
    .admin-hero-card,
    .detail-hero-card,
    .detail-block,
    .product-card,
    .supply-product-card,
    .admin-user-card {
        padding: 14px !important;
    }

    .queue-workbench {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .category-tabs {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(124px, 1fr);
        gap: 8px;
        overflow-x: auto;
        padding: 4px 0 2px;
        background: transparent !important;
        border: 0 !important;
        scrollbar-width: none;
    }

    .category-tabs::-webkit-scrollbar {
        display: none;
    }

    .category-chip {
        min-width: 124px;
        gap: 6px;
        padding: 11px 12px 11px 14px;
        border-radius: 16px;
        box-shadow: none !important;
        transform: none !important;
    }

    .category-chip strong {
        font-size: 0.84rem;
    }

    .category-chip-count {
        min-width: 30px;
        min-height: 26px;
        padding: 0 8px;
        font-size: 0.74rem;
    }

    .queue-list-panel {
        gap: 10px;
        padding: 10px !important;
    }

    .queue-meta {
        padding: 0 0 8px;
    }

    .queue-active-title {
        font-size: 0.92rem;
    }

    .queue-count-chip {
        min-height: 30px;
        padding: 0 10px;
        font-size: 0.74rem;
    }

    .queue-list,
    .queue-list-minimal {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .order-card {
        padding: 12px 13px;
    }

    .order-card-overline,
    .order-card-index,
    .order-meta-label {
        display: none;
    }

    .order-card-meta {
        gap: 6px;
    }

    .detail-panel {
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
    }

    .detail-stack {
        gap: 10px;
    }

    .detail-hero-card {
        gap: 12px;
    }

    .detail-top {
        gap: 10px;
    }

    .detail-title-block h2 {
        font-size: 1.28rem;
        line-height: 1.02;
    }

    .detail-subcopy {
        font-size: 0.88rem;
        line-height: 1.4;
    }

    .detail-status-row {
        gap: 6px;
    }

    .summary-grid,
    .summary-grid--metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .summary-grid--metrics .summary-card {
        min-height: auto;
        padding: 12px !important;
    }

    .summary-grid--metrics .summary-card strong {
        font-size: 1.06rem;
        letter-spacing: -0.02em;
    }

    .scan-card,
    .notice-card,
    .order-note-card,
    .info-disclosure {
        padding: 14px !important;
    }

    .product-layout {
        grid-template-columns: 68px minmax(0, 1fr);
        gap: 10px;
    }

    .product-image {
        width: 68px;
        height: 88px;
        border-radius: 12px;
    }

    .product-head h3 {
        font-size: 0.96rem;
        line-height: 1.2;
    }

    .product-code,
    .product-variants {
        font-size: 0.76rem;
        line-height: 1.35;
    }

    .product-keyfacts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .product-keyfact {
        padding: 8px 10px;
        border-radius: 12px;
    }

    .product-keyfact span,
    .product-keyfact strong,
    .progress-pill,
    .inline-pill,
    .product-price-pill {
        font-size: 0.74rem;
    }

    .supply-layout,
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .supply-results,
    .supply-saved-list,
    .supply-history-list,
    .team-users-grid {
        gap: 10px;
    }

    .supply-history-card,
    .supply-product-card,
    .admin-user-card {
        padding: 12px !important;
    }

    .supply-product-card {
        padding: 10px !important;
    }

    .api-config-dialog,
    .supply-alert-dialog,
    .image-lightbox-dialog {
        width: min(100%, 100%);
        border-radius: 18px;
        box-shadow: none;
    }
}

@media (max-width: 540px) {
    .page-shell {
        padding: 8px 8px 16px;
    }

    .scanner-hero,
    .queue-strip,
    .detail-hero-card,
    .detail-block,
    .auth-card,
    .supply-hero-card,
    .admin-hero-card {
        padding: 12px !important;
    }

    .view-tab {
        font-size: 0.78rem;
    }

    .scanner-hero-copy h1,
    .detail-title-block h2 {
        font-size: 1.16rem;
    }

    .summary-grid,
    .summary-grid--metrics,
    .product-keyfacts {
        grid-template-columns: 1fr;
    }

    .scanner-hero-actions {
        grid-template-columns: 1fr;
    }

    .category-chip {
        min-width: 112px;
    }

    .product-layout {
        grid-template-columns: 56px minmax(0, 1fr);
    }

    .product-image {
        width: 56px;
        height: 74px;
    }
}

@media (max-width: 720px) {
    .image-lightbox,
    .supply-alert-modal,
    .api-config-modal {
        padding: 8px;
    }

    .supply-alert-modal,
    .api-config-modal {
        place-items: end center;
    }

    .image-lightbox-backdrop,
    .supply-alert-backdrop,
    .api-config-backdrop {
        backdrop-filter: none;
    }

    .image-lightbox-dialog,
    .supply-alert-dialog,
    .api-config-dialog {
        width: 100%;
        max-height: calc(100svh - 16px);
        padding: 12px;
        border-radius: 18px;
        box-shadow: 0 12px 28px rgba(16, 24, 22, 0.12);
        gap: 10px;
    }

    .image-lightbox-dialog {
        background: rgba(251, 249, 245, 0.98);
    }

    .image-lightbox-head,
    .supply-alert-head,
    .api-config-head {
        gap: 10px;
        align-items: flex-start;
    }

    .image-lightbox-head .eyebrow {
        display: none;
    }

    .image-lightbox-close,
    .supply-alert-close,
    .api-config-close {
        min-height: 36px;
        padding: 0 12px;
        border-radius: 999px;
    }

    .image-lightbox-image {
        max-height: calc(100svh - 84px);
        border-radius: 14px;
    }

    .supply-alert-head h2,
    .api-config-head h2 {
        font-size: 1rem;
        line-height: 1.1;
    }

    .supply-alert-summary,
    .api-config-summary {
        padding: 10px 12px;
        border-radius: 14px;
        font-size: 0.84rem;
        line-height: 1.45;
    }

    .supply-alert-card {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 10px;
        padding: 10px;
        border-radius: 14px;
        box-shadow: none;
    }

    .supply-alert-card-media {
        aspect-ratio: 1 / 1;
        border-radius: 12px;
    }

    .supply-alert-card-head h3 {
        font-size: 0.92rem;
        line-height: 1.15;
    }

    .supply-alert-card-code {
        font-size: 0.72rem;
    }

    .supply-alert-card-note {
        padding: 8px 10px;
        border-radius: 12px;
        gap: 4px;
    }

    .supply-alert-card-note p {
        font-size: 0.8rem;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .supply-alert-dock {
        left: 10px;
        right: 10px;
        bottom: 10px;
        top: auto;
        transform: none;
        width: auto;
    }

    .supply-alert-dock-button {
        min-width: 0;
        flex: 1;
        padding: 12px 14px;
        border-radius: 16px 0 0 16px;
    }

    .supply-alert-dock-title {
        font-size: 0.86rem;
    }

    .supply-alert-dock-summary {
        display: none;
    }

    .supply-alert-dock-dismiss {
        width: 44px;
        border-radius: 0 16px 16px 0;
    }

    .api-config-dialog {
        padding: 14px;
    }

    .api-config-grid,
    .api-config-form {
        gap: 12px;
    }

    .api-config-input-mono {
        font-size: 0.86rem;
    }

    #adminApiBaseUrlInput,
    #adminApiKeyInput,
    #adminApiSecretInput {
        min-height: 44px;
    }

    .api-config-summary {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

@media (max-width: 540px) {
    .image-lightbox-dialog,
    .supply-alert-dialog,
    .api-config-dialog {
        border-radius: 16px 16px 12px 12px;
        padding: 10px;
        gap: 8px;
        box-shadow: 0 10px 24px rgba(16, 24, 22, 0.1);
    }

    .supply-alert-card {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 8px;
        padding: 8px;
    }

    .supply-alert-card-note {
        padding: 6px 8px;
        border-radius: 10px;
    }

    .supply-alert-card-note p {
        -webkit-line-clamp: 1;
    }

    .supply-alert-dock-button {
        padding: 10px 12px;
    }

    .supply-alert-dock-dismiss {
        width: 40px;
    }

    .image-lightbox-image {
        max-height: calc(100svh - 72px);
    }
}

.detail-kpi-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.detail-kpi {
    min-width: 0;
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(23, 33, 31, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 244, 237, 0.9));
}

.detail-kpi span {
    color: rgba(23, 33, 31, 0.48);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.detail-kpi strong {
    color: var(--ink);
    font-size: 1.08rem;
    line-height: 1.05;
    letter-spacing: -0.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.detail-kpi--accent strong {
    color: #9c622e;
}

.product-spec-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.product-spec-chip {
    min-width: 0;
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(23, 33, 31, 0.08);
    background: linear-gradient(180deg, rgba(249, 250, 252, 0.98), rgba(242, 244, 247, 0.92));
}

.product-spec-chip small {
    color: rgba(23, 33, 31, 0.46);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.product-spec-chip strong {
    color: var(--ink);
    font-size: 0.9rem;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-spec-chip--quantity {
    background: linear-gradient(180deg, rgba(227, 242, 238, 0.98), rgba(215, 236, 231, 0.94));
    border-color: rgba(14, 124, 102, 0.12);
}

.product-toolbar--compact {
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.product-toolbar--compact .product-price-pill {
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
}

.product-toolbar--compact .product-undo-btn {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
}

.detail-block-notice {
    padding: 12px 14px !important;
}

.detail-block-notice p {
    margin: 0;
}

.detail-block-notice .package-control-note {
    font-size: 0.84rem;
    line-height: 1.4;
}

@media (max-width: 720px) {
    .detail-actions {
        grid-template-columns: auto 1fr;
        align-items: stretch;
    }

    .detail-actions .secondary-btn,
    .detail-actions .primary-btn {
        min-height: 40px;
    }

    .detail-kpi-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .detail-kpi {
        padding: 10px 12px;
        border-radius: 14px;
    }

    .detail-kpi strong {
        font-size: 0.98rem;
    }

    .product-spec-strip {
        gap: 6px;
    }

    .product-spec-chip {
        padding: 8px 10px;
        border-radius: 12px;
    }

    .product-spec-chip strong {
        font-size: 0.82rem;
    }

    .product-toolbar--compact {
        margin-top: 10px;
        display: none;
    }

    .detail-block-notice {
        padding: 10px 12px !important;
        border-radius: 14px !important;
    }

    .detail-block-notice .eyebrow {
        margin-bottom: 6px;
    }

    .detail-block-notice .package-control-note,
    .detail-block-notice p {
        font-size: 0.8rem;
        line-height: 1.35;
    }
}

@media (max-width: 540px) {
    .detail-actions {
        grid-template-columns: minmax(0, 112px) minmax(0, 1fr);
        gap: 8px;
    }

    .detail-kpi-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-kpi {
        padding: 10px;
    }

    .detail-kpi span {
        font-size: 0.6rem;
    }

    .detail-kpi strong {
        font-size: 0.92rem;
    }

    .product-spec-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .product-spec-chip {
        padding: 8px 9px;
    }

    .product-spec-chip small {
        font-size: 0.56rem;
    }

    .product-spec-chip strong {
        font-size: 0.76rem;
    }

}

@media (max-width: 720px) {
    .scanner-hero {
        padding: 12px !important;
        gap: 10px;
    }

    .scanner-hero-copy h1 {
        font-size: 1.12rem;
        line-height: 1.04;
    }

    .scanner-form-hero {
        padding: 10px;
        border-radius: 18px;
        gap: 8px;
        background: rgba(255, 255, 255, 0.9);
    }

    .scanner-form-hero .field-label {
        margin-bottom: 0;
        font-size: 0.72rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .scanner-row {
        gap: 8px;
    }

    .scanner-row input {
        min-height: 44px;
        padding: 0 14px;
        border-radius: 14px;
        font-size: 0.88rem;
        font-weight: 500;
    }

    .scanner-row-actions {
        display: flex;
        gap: 8px;
        margin-top: 8px;
    }

    .scanner-row-actions > button {
        flex: 1 1 0;
        min-width: 0;
    }

    .scanner-row-actions .primary-btn,
    .scanner-row-actions .scan-camera-toggle {
        min-height: 42px;
        border-radius: 14px;
        box-shadow: none;
        font-size: 0.84rem;
    }

    .scanner-search-camera-btn:not([hidden]) {
        width: auto;
        min-height: 42px;
        margin-top: 0;
        padding: 0 12px;
        justify-self: auto;
        border-radius: 14px;
        font-size: 0.76rem;
    }

    .scanner-search-camera-panel:not([hidden]),
    .scanner-search-camera-message:not([hidden]) {
        margin-top: 6px;
    }

    .product-card {
        padding: 12px !important;
        border-radius: 18px !important;
    }

    .product-layout {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 8px;
        align-items: start;
    }

    .product-image {
        width: 52px;
        height: 68px;
        border-radius: 10px;
    }

    .product-head {
        gap: 8px;
        margin-bottom: 6px;
    }

    .product-head h3 {
        font-size: 0.84rem;
        line-height: 1.18;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }

    .product-code {
        margin-top: 2px;
        font-size: 0.66rem;
        line-height: 1.25;
    }

    .progress-pill {
        min-height: 26px;
        padding: 0 9px;
        border-radius: 999px;
        font-size: 0.68rem;
        white-space: nowrap;
    }

    .product-variants {
        gap: 4px;
        margin-bottom: 0;
    }

    .product-variants .inline-pill {
        min-height: 22px;
        padding: 0 7px;
        border-radius: 999px;
        font-size: 0.62rem;
    }

    .product-spec-strip {
        gap: 4px;
    }

    .product-spec-chip {
        padding: 7px 8px;
        border-radius: 10px;
    }

    .product-spec-chip small {
        font-size: 0.52rem;
        letter-spacing: 0.12em;
    }

    .product-spec-chip strong {
        font-size: 0.72rem;
        line-height: 1.1;
    }

    .product-toolbar--compact {
        margin-top: 10px;
        gap: 10px;
    }

    .product-toolbar--compact .product-price-pill,
    .product-toolbar--compact .product-undo-btn {
        min-height: 32px;
        padding: 0 11px;
        font-size: 0.7rem;
    }

    .category-control,
    .order-note-card {
        padding: 12px !important;
        border-radius: 16px !important;
    }

    .category-control-head,
    .order-note-head {
        align-items: center;
        gap: 8px;
        margin-bottom: 8px;
    }

    .category-control-head h3,
    .order-note-card h3 {
        font-size: 0.92rem;
        line-height: 1.15;
    }

    .category-state-pill,
    .order-note-head .inline-pill {
        min-height: 24px;
        padding: 0 8px;
        font-size: 0.66rem;
        border-radius: 999px;
    }

    .category-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        padding: 0;
        background: transparent;
        border: 0;
    }

    .category-action-btn {
        min-height: 38px;
        padding: 0 8px;
        border-radius: 12px;
        font-size: 0.72rem;
        font-weight: 600;
    }

    .order-note-form {
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: 8px;
        align-items: center;
    }

    .order-note-form input {
        min-height: 40px;
        padding: 0 12px;
        border-radius: 12px;
        font-size: 0.8rem;
    }

    .order-note-form .secondary-btn {
        min-height: 40px;
        padding: 0 12px;
        border-radius: 12px;
        font-size: 0.74rem;
    }

    .order-note-list {
        gap: 6px;
    }

    .order-note-item {
        padding: 10px 11px;
        border-radius: 12px;
    }

    .order-note-item-top {
        gap: 8px;
        align-items: center;
    }

    .order-note-item p,
    .order-note-item span,
    .order-note-empty,
    .order-note-feedback {
        font-size: 0.72rem;
        line-height: 1.3;
    }

    .order-note-item p {
        margin-top: 4px;
    }

    .order-note-delete {
        min-height: 22px;
        font-size: 0.72rem;
    }
}

@media (max-width: 540px) {
    .scanner-hero-copy h1 {
        font-size: 1.04rem;
    }

    .scanner-form-hero {
        padding: 8px;
        border-radius: 16px;
    }

    .scanner-row input {
        min-height: 40px;
    }

    .scanner-row-actions {
        gap: 6px;
        margin-top: 6px;
    }

    .scanner-row-actions > button {
        flex: 1 1 0;
        min-width: 0;
    }

    .scanner-row-actions .primary-btn,
    .scanner-row-actions .scan-camera-toggle {
        min-height: 40px;
        border-radius: 12px;
        font-size: 0.78rem;
    }

    .product-layout {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 7px;
    }

    .product-image {
        width: 46px;
        height: 60px;
    }

    .product-head h3 {
        font-size: 0.8rem;
    }

    .product-code {
        font-size: 0.62rem;
    }

    .progress-pill {
        min-height: 24px;
        padding: 0 8px;
        font-size: 0.64rem;
    }

    .product-spec-chip {
        padding: 6px 7px;
    }

    .product-spec-chip small {
        font-size: 0.5rem;
    }

    .product-spec-chip strong {
        font-size: 0.68rem;
    }

    .product-toolbar--compact .product-price-pill,
    .product-toolbar--compact .product-undo-btn {
        min-height: 30px;
        padding: 0 10px;
        font-size: 0.66rem;
    }

    .category-actions {
        grid-template-columns: 1fr;
    }

    .category-action-btn,
    .order-note-form .secondary-btn {
        min-height: 36px;
    }

    .order-note-form {
        grid-template-columns: 1fr !important;
    }
}

.detail-block-cargo {
    padding: 18px !important;
}

.cargo-label-head {
    justify-content: space-between;
    gap: 10px;
}

.cargo-generate-btn {
    min-height: 42px;
    border-radius: 14px;
    padding: 0 14px;
    font-weight: 700;
}

.cargo-label-empty {
    margin-top: 10px;
    border-radius: 14px;
    padding: 12px;
    border: 1px dashed rgba(23, 33, 31, 0.12);
    background: rgba(255, 255, 255, 0.7);
}

.cargo-label-empty p {
    margin: 0;
    color: rgba(23, 33, 31, 0.62);
    font-size: 0.84rem;
}

.cargo-label-list {
    margin-top: 10px;
    display: grid;
    gap: 10px;
}

.cargo-label-item {
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(23, 33, 31, 0.08);
    background: rgba(255, 255, 255, 0.82);
    display: grid;
    gap: 8px;
}

.cargo-label-item.is-current {
    border-color: rgba(14, 124, 102, 0.28);
    box-shadow: 0 8px 20px rgba(14, 124, 102, 0.12);
}

.cargo-label-item-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.cargo-label-item-title {
    margin: 0;
    font-weight: 700;
    color: var(--ink);
}

.cargo-label-item-meta {
    margin: 2px 0 0;
    font-size: 0.78rem;
    color: rgba(23, 33, 31, 0.6);
}

.cargo-label-item-actions {
    display: flex;
    gap: 8px;
}

.cargo-label-action-btn {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
}

.cargo-label-item-note {
    margin: 0;
    font-size: 0.78rem;
    color: rgba(23, 33, 31, 0.72);
}

.cargo-label-preview {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(23, 33, 31, 0.08);
    background: #fff;
    max-width: 420px;
}

.cargo-label-preview img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 720px) {
    .cargo-label-head {
        flex-direction: column;
        align-items: stretch;
    }

    .cargo-label-item-head {
        flex-direction: column;
    }

    .cargo-label-item-actions {
        width: 100%;
    }

    .cargo-label-action-btn {
        flex: 1;
    }
}

.cargo-design-modal {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: grid;
    place-items: center;
    padding: 18px;
}

.cargo-design-modal[hidden] {
    display: none !important;
}

.cargo-design-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.46);
    backdrop-filter: blur(8px);
}

.cargo-design-dialog {
    position: relative;
    width: min(96vw, 1540px);
    height: min(92vh, 920px);
    overflow: hidden;
    border-radius: 24px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 24px 72px rgba(15, 23, 42, 0.18);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}

.cargo-design-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 20px 16px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.92);
}

.cargo-design-title-group {
    min-width: 0;
}

.cargo-design-title-group h2 {
    margin: 0;
    font-size: clamp(1.2rem, 1.8vw, 1.55rem);
    letter-spacing: -0.04em;
}

.cargo-design-summary {
    margin: 8px 0 0;
    max-width: 64ch;
    color: rgba(23, 33, 31, 0.68);
    font-size: 0.9rem;
    line-height: 1.45;
}

.cargo-design-top-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.cargo-design-pill,
.cargo-design-zoom-btn,
.cargo-design-zoom-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.96);
    color: var(--ink);
    font-weight: 700;
    letter-spacing: 0.01em;
}

.cargo-design-pill {
    padding: 0 14px;
    box-shadow: none;
}

.cargo-design-pill.is-live {
    background: rgba(14, 124, 102, 0.12);
    border-color: rgba(14, 124, 102, 0.18);
    color: var(--accent);
}

.cargo-design-zoom-group {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: none;
}

.cargo-design-zoom-btn {
    width: 38px;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.cargo-design-zoom-value {
    min-width: 72px;
    border: 0;
    border-left: 1px solid rgba(24, 33, 48, 0.08);
    border-right: 1px solid rgba(24, 33, 48, 0.08);
    border-radius: 0;
    font-size: 0.85rem;
}

.cargo-design-close {
    min-height: 40px;
    padding: 0 14px;
}

.cargo-design-workbench {
    min-height: 0;
    display: grid;
    grid-template-columns: 276px minmax(0, 1fr) 336px;
    gap: 12px;
    padding: 12px;
}

.cargo-design-toolbox,
.cargo-design-canvas-shell,
.cargo-design-inspector {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.cargo-design-toolbox {
    padding: 14px;
    display: block;
    height: 100%;
}

.cargo-design-inspector {
    padding: 14px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 12px;
}

.cargo-design-toolbox-body {
    min-height: 0;
    height: 100%;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 12px;
}

.cargo-design-canvas-shell {
    padding: 14px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 12px;
}

.cargo-design-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.cargo-design-panel-head--spaced {
    margin-top: 6px;
}

.cargo-design-panel-kicker {
    margin: 0 0 4px;
    color: rgba(23, 33, 31, 0.56);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.cargo-design-panel-head h3,
.cargo-design-inspector h3 {
    margin: 0;
    font-size: 0.98rem;
    letter-spacing: -0.03em;
}

.cargo-design-panel-hint {
    flex: 0 0 auto;
    align-self: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.04);
    color: rgba(23, 33, 31, 0.72);
    font-size: 0.72rem;
    font-weight: 700;
}

.cargo-design-tool-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.cargo-design-tool-sections {
    min-height: 0;
    overflow: auto;
    display: grid;
    gap: 12px;
    padding-right: 4px;
}

.cargo-design-tool-section {
    display: grid;
    gap: 10px;
}

.cargo-design-tool-section + .cargo-design-tool-section {
    padding-top: 12px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.cargo-design-tool,
.cargo-design-size-card {
    display: grid;
    gap: 6px;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
    text-align: left;
    cursor: pointer;
    transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.cargo-design-tool:hover,
.cargo-design-size-card:hover {
    transform: translateY(-1px);
    border-color: rgba(14, 124, 102, 0.22);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.06);
}

.cargo-design-tool.is-active,
.cargo-design-size-card.is-active {
    border-color: rgba(14, 124, 102, 0.36);
    background: rgba(14, 124, 102, 0.04);
    box-shadow: 0 10px 18px rgba(14, 124, 102, 0.08);
}

.cargo-design-tool-icon {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 10px;
    color: var(--accent);
    background: rgba(14, 124, 102, 0.1);
    font-size: 0.8rem;
    font-weight: 800;
}

.cargo-design-tool-text {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.cargo-design-tool-title,
.cargo-design-size-title {
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.15;
}

.cargo-design-tool-copy,
.cargo-design-size-copy {
    color: var(--muted);
    font-size: 0.7rem;
    line-height: 1.28;
}

.cargo-design-size-list {
    display: grid;
    gap: 8px;
}

.cargo-design-size-card {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px;
}

.cargo-design-size-card::before {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1px solid rgba(24, 33, 48, 0.14);
    background:
        linear-gradient(135deg, rgba(14, 124, 102, 0.14), rgba(89, 169, 255, 0.12));
}

.cargo-design-size-card.is-active::before {
    border-color: rgba(14, 124, 102, 0.38);
    background:
        linear-gradient(135deg, rgba(14, 124, 102, 0.22), rgba(89, 169, 255, 0.18));
}

.cargo-design-canvas-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.cargo-design-canvas-meta {
    display: grid;
    gap: 4px;
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.cargo-design-canvas-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cargo-design-badge {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(24, 33, 48, 0.08);
    background: rgba(255, 255, 255, 0.88);
    color: rgba(23, 33, 31, 0.72);
    font-size: 0.78rem;
    font-weight: 700;
}

.cargo-design-ruler-wrap {
    min-height: 0;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    grid-template-rows: 28px minmax(0, 1fr);
    gap: 0;
}

.cargo-design-ruler {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 1), rgba(240, 243, 247, 0.96));
    border: 1px solid rgba(24, 33, 48, 0.08);
}

.cargo-design-ruler--top {
    grid-column: 2;
    border-radius: 14px 14px 0 0;
    border-bottom: 0;
}

.cargo-design-ruler--left {
    grid-row: 2;
    border-radius: 0 0 0 14px;
    border-right: 0;
}

.cargo-design-ruler-tick {
    position: absolute;
    color: rgba(23, 33, 31, 0.52);
    font-size: 0.62rem;
    line-height: 1;
    font-weight: 700;
}

.cargo-design-ruler-tick::before {
    content: "";
    position: absolute;
    background: rgba(23, 33, 31, 0.28);
}

.cargo-design-ruler--top .cargo-design-ruler-tick {
    top: 4px;
    transform: translateX(-50%);
}

.cargo-design-ruler--top .cargo-design-ruler-tick::before {
    top: 100%;
    left: 50%;
    width: 1px;
    height: 8px;
}

.cargo-design-ruler--left .cargo-design-ruler-tick {
    left: 4px;
    transform: translateY(-50%);
}

.cargo-design-ruler--left .cargo-design-ruler-tick::before {
    left: 100%;
    top: 50%;
    width: 8px;
    height: 1px;
}

.cargo-design-stage-wrap {
    position: relative;
    min-width: 0;
    grid-column: 2;
    grid-row: 2;
    overflow: auto;
    padding: 14px 12px 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-top: 0;
    border-left: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 247, 250, 0.96));
}

.cargo-design-stage-hint {
    position: absolute;
    top: 8px;
    left: 14px;
    z-index: 2;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: none;
    color: rgba(23, 33, 31, 0.66);
    font-size: 0.76rem;
    font-weight: 700;
}

.cargo-design-stage-viewport {
    min-height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 24px 6px 18px;
}

.cargo-design-stage {
    position: relative;
    width: 400px;
    height: 600px;
    transform-origin: top center;
    border-radius: 18px;
    background: #ffffff;
    border: 1px dashed rgba(15, 23, 42, 0.18);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.cargo-design-stage::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 18px;
    border: 1px solid rgba(24, 33, 48, 0.08);
    pointer-events: none;
}

.cargo-design-stage::after {
    content: "";
    position: absolute;
    inset: 16px;
    background:
        linear-gradient(rgba(34, 42, 58, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 42, 58, 0.04) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.45;
    pointer-events: none;
    border-radius: 14px;
}

.cargo-design-element {
    position: absolute;
    z-index: 1;
    box-sizing: border-box;
    color: var(--ink);
    border-radius: 12px;
    cursor: move;
    user-select: none;
    touch-action: none;
}

.cargo-design-element.is-selected {
    z-index: 4;
    outline: 2px solid rgba(14, 124, 102, 0.72);
    box-shadow: 0 0 0 4px rgba(14, 124, 102, 0.12);
}

.cargo-design-element-frame {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: inherit;
}

.cargo-design-element-label {
    position: absolute;
    left: 8px;
    top: 8px;
    z-index: 2;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(24, 33, 48, 0.08);
    color: rgba(23, 33, 31, 0.62);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cargo-design-resize-handle {
    position: absolute;
    right: -6px;
    bottom: -6px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #fff;
    border: 2px solid var(--accent);
    box-shadow: 0 6px 12px rgba(15, 23, 42, 0.12);
    cursor: nwse-resize;
}

.cargo-design-brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff8b5b, #ffb44f);
    box-shadow: inset -4px -4px 0 rgba(255, 255, 255, 0.24);
    clip-path: polygon(18% 12%, 78% 12%, 94% 50%, 78% 88%, 18% 88%, 4% 50%);
}

.cargo-design-brand-logo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.cargo-design-brand-copy {
    display: grid;
    gap: 2px;
}

.cargo-design-brand-copy strong {
    font-size: 1.05rem;
    line-height: 1;
    letter-spacing: -0.04em;
}

.cargo-design-brand-copy span {
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.cargo-design-brand-content {
    display: grid;
    align-items: center;
    grid-template-columns: 40px 1fr;
    gap: 10px;
    width: 100%;
    height: 100%;
    padding: 4px 8px;
    box-sizing: border-box;
}

.cargo-design-brand-content--logo {
    grid-template-columns: 48px minmax(0, 1fr);
}

.cargo-design-field-shell {
    display: grid;
    gap: 2px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.cargo-design-element--field,
.cargo-design-element--text,
.cargo-design-element--note {
    padding: 0;
    background: transparent;
    border: 0;
}

.cargo-design-field-label {
    margin: 0 0 4px;
    color: rgba(23, 33, 31, 0.52);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.cargo-design-field-value {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.cargo-design-element--date,
.cargo-design-element--time,
.cargo-design-element--order-no,
.cargo-design-element--customer,
.cargo-design-element--zone,
.cargo-design-element--weight,
.cargo-design-element--content {
    display: flex;
    align-items: center;
}

.cargo-design-element--date .cargo-design-field-value,
.cargo-design-element--time .cargo-design-field-value,
.cargo-design-element--order-no .cargo-design-field-value,
.cargo-design-element--customer .cargo-design-field-value,
.cargo-design-element--zone .cargo-design-field-value,
.cargo-design-element--weight .cargo-design-field-value,
.cargo-design-element--content .cargo-design-field-value {
    font-size: 0.88rem;
}

.cargo-design-element--box {
    border: 0;
    background: transparent;
}

.cargo-design-element--line {
    border-radius: 999px;
    background: rgba(24, 33, 48, 0.24);
}

.cargo-design-element--barcode {
    padding: 0;
    background: transparent;
    border: 0;
}

.cargo-design-element--qr {
    padding: 0;
    background: transparent;
    border: 0;
}

.cargo-design-barcode-content {
    display: grid;
    align-content: center;
    gap: 4px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.cargo-design-barcode-image {
    width: 100%;
    height: calc(100% - 18px);
    object-fit: fill;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: pixelated;
}

.cargo-design-barcode-text {
    margin: 0;
    text-align: center;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: rgba(23, 33, 31, 0.82);
}

.cargo-design-qr-content {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 4px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.cargo-design-qr-image {
    width: 100%;
    max-height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    display: block;
}

.cargo-design-qr-text {
    margin: 0;
    text-align: center;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    font-weight: 700;
    word-break: break-all;
    color: rgba(23, 33, 31, 0.82);
}

.cargo-design-measure-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
}

.cargo-design-measure-tag {
    position: absolute;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(14, 124, 102, 0.9);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 10px 18px rgba(14, 124, 102, 0.2);
}

.cargo-design-inspector {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 14px;
}

.cargo-design-inspector-scroll {
    min-height: 0;
    display: grid;
    gap: 12px;
    overflow: auto;
    padding-right: 4px;
}

.cargo-design-section {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.cargo-design-section h4 {
    margin: 0;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.cargo-design-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.cargo-design-grid--single {
    grid-template-columns: 1fr;
}

.cargo-design-field {
    display: grid;
    gap: 6px;
}

.cargo-design-field--wide {
    grid-column: 1 / -1;
}

.cargo-design-field label {
    color: rgba(23, 33, 31, 0.56);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cargo-design-field input,
.cargo-design-field select,
.cargo-design-field textarea {
    min-height: 40px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #ffffff;
    color: var(--ink);
    font: inherit;
}

.cargo-design-field textarea {
    min-height: 80px;
    padding: 10px 12px;
    resize: vertical;
}

.cargo-design-field input:focus,
.cargo-design-field select:focus,
.cargo-design-field textarea:focus {
    outline: none;
    border-color: rgba(14, 124, 102, 0.34);
    box-shadow: 0 0 0 3px rgba(14, 124, 102, 0.08);
}

.cargo-design-inline-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cargo-design-inline-row--size {
    align-items: center;
}

.cargo-design-inline-row--size input {
    min-width: 96px;
    max-width: 132px;
    flex: 1 1 112px;
}

.cargo-design-size-separator {
    align-self: center;
    color: rgba(23, 33, 31, 0.56);
    font-size: 0.86rem;
    font-weight: 800;
}

.cargo-design-inline-row .secondary-btn {
    min-height: 38px;
    border-radius: 12px;
}

.cargo-design-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.cargo-design-actions .primary-btn,
.cargo-design-actions .secondary-btn {
    min-height: 42px;
    border-radius: 14px;
}

.cargo-design-footnote {
    color: rgba(23, 33, 31, 0.6);
    font-size: 0.82rem;
    line-height: 1.45;
}

.cargo-design-empty {
    display: grid;
    place-items: center;
    min-height: 180px;
    padding: 16px;
    border-radius: 18px;
    border: 1px dashed rgba(24, 33, 48, 0.16);
    background: rgba(255, 255, 255, 0.7);
    color: var(--muted);
    text-align: center;
}

.cargo-design-preview-mode .cargo-design-stage {
    box-shadow: 0 20px 36px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.28) inset;
}

@media (max-width: 1320px) {
    .cargo-design-workbench {
        grid-template-columns: 256px minmax(0, 1fr) 310px;
    }
}

@media (max-width: 1120px) {
    .cargo-design-dialog {
        height: min(94vh, 1020px);
    }

    .cargo-design-workbench {
        grid-template-columns: 1fr;
        overflow: auto;
    }

    .cargo-design-toolbox,
    .cargo-design-inspector,
    .cargo-design-canvas-shell {
        max-height: none;
    }

    .cargo-design-toolbox,
    .cargo-design-inspector {
        grid-template-rows: auto minmax(0, 1fr);
    }

    .cargo-design-inspector {
        grid-template-rows: auto minmax(0, 1fr) auto;
    }

    .cargo-design-canvas-shell {
        min-height: 720px;
    }

    .cargo-design-ruler-wrap {
        min-height: 720px;
    }
}

@media (max-width: 760px) {
    .cargo-design-modal {
        padding: 10px;
    }

    .cargo-design-dialog {
        width: 100%;
        height: calc(100vh - 20px);
        border-radius: 20px;
    }

    .cargo-design-topbar {
        padding: 16px;
        flex-direction: column;
    }

    .cargo-design-top-controls {
        justify-content: flex-start;
    }

    .cargo-design-workbench {
        padding: 12px;
        gap: 12px;
    }

    .cargo-design-tool-grid,
    .cargo-design-grid,
    .cargo-design-actions {
        grid-template-columns: 1fr;
    }

    .cargo-design-stage {
        transform-origin: top left;
        width: 360px;
        height: 540px;
    }

    .cargo-design-ruler-wrap {
        grid-template-columns: 24px minmax(0, 1fr);
        min-height: 640px;
    }
}

/* Sidebar navigation refresh */
.minimal-shell {
    position: relative;
}

.minimal-shell > .view-switch.main-switch {
    position: fixed;
    top: 12px;
    left: 12px;
    width: 72px;
    height: calc(100vh - 24px);
    max-height: calc(100vh - 24px);
    padding: 14px 6px 14px;
    gap: 6px;
    z-index: 20;
}

.minimal-shell > .auth-shell,
.minimal-shell > #appShell {
    margin-left: 80px;
    width: calc(100% - 80px);
    min-width: 0;
    transition: margin-left 180ms ease, width 180ms ease;
}

body.sidebar-expanded .minimal-shell > .view-switch.main-switch {
    width: 288px;
    padding: 24px 16px 22px;
    gap: 18px;
}

body.sidebar-expanded .minimal-shell > .auth-shell,
body.sidebar-expanded .minimal-shell > #appShell {
    margin-left: 308px;
    width: calc(100% - 308px);
}

.minimal-shell > #loginShell.auth-shell,
body.sidebar-expanded .minimal-shell > #loginShell.auth-shell {
    margin-left: 0;
    width: 100%;
}

#appShell {
    display: grid;
    gap: 18px;
}

.view-switch.main-switch {
    position: fixed;
    top: 16px;
    left: 16px;
    width: 72px;
    height: calc(100vh - 32px);
    max-height: calc(100vh - 32px);
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
    min-height: calc(100vh - 32px);
    padding: 14px 6px 14px;
    margin-bottom: 0;
    border-radius: 34px;
    overflow: hidden;
    background:
        radial-gradient(circle at 14% 12%, rgba(90, 160, 255, 0.28), transparent 24%),
        radial-gradient(circle at 100% 100%, rgba(21, 150, 190, 0.2), transparent 30%),
        linear-gradient(180deg, #0b2257 0%, #12336f 56%, #1b4f95 100%);
    border: 1px solid rgba(188, 218, 255, 0.16);
    box-shadow: 0 24px 42px rgba(10, 33, 86, 0.24);
    z-index: 20;
    transition: width 180ms ease, padding 180ms ease, gap 180ms ease, box-shadow 180ms ease;
}

body.sidebar-expanded .view-switch.main-switch {
    width: var(--sidebar-expanded-width, 296px);
    padding: 24px 16px 22px;
    gap: 18px;
}

.view-switch.main-switch::-webkit-scrollbar {
    display: none;
}

.view-switch.main-switch::before,
.view-switch.main-switch::after {
    content: "";
    position: absolute;
    inset: auto auto 0 -10%;
    width: 120%;
    height: 180px;
    background:
        radial-gradient(circle at 20% 70%, rgba(166, 217, 255, 0.26) 0 2px, transparent 3px),
        radial-gradient(circle at 35% 82%, rgba(166, 217, 255, 0.18) 0 2px, transparent 3px),
        radial-gradient(circle at 48% 62%, rgba(21, 150, 190, 0.22) 0 2px, transparent 3px),
        linear-gradient(180deg, rgba(21, 150, 190, 0), rgba(21, 150, 190, 0.08));
    opacity: 0.58;
    pointer-events: none;
}

.view-switch.main-switch::after {
    inset: auto -8% -42px auto;
    width: 260px;
    height: 200px;
    border-radius: 60% 40% 0 0;
    background: linear-gradient(180deg, rgba(21, 150, 190, 0.04), rgba(80, 149, 228, 0.16));
}

.view-brand,
.view-switch-body,
.view-switch.main-switch > * {
    position: relative;
    z-index: 1;
}

.view-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 6px 4px 2px;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: inherit;
    width: 100%;
}

body:not(.sidebar-expanded) .view-brand {
    display: flex;
    justify-content: center;
    gap: 0;
    padding: 2px 0 0;
}

body.sidebar-expanded .view-brand {
    display: none;
    justify-content: center;
    gap: 0;
    padding: 0;
}

.view-brand-mark {
    display: block;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: center / contain no-repeat url("assets/qvet-mark-blue.svg");
    overflow: hidden;
}

body.sidebar-expanded .view-brand-mark {
    display: none;
}

.view-switch-body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    padding-top: 4px;
    flex: 1 1 auto;
    min-height: 0;
}

.view-switch-top {
    display: none;
}

.view-settings-group {
    display: grid;
    gap: 6px;
}

body:not(.sidebar-expanded) .view-settings-group {
    gap: 6px;
    justify-items: center;
}

.view-settings-panel {
    display: grid;
    gap: 6px;
    padding-left: 10px;
}

body:not(.sidebar-expanded) .view-settings-panel {
    padding-left: 0;
    gap: 6px;
    justify-items: center;
}

.view-tab--section:disabled {
    opacity: 1;
    cursor: default;
    transform: none;
    box-shadow: none;
}

.view-tab--section:disabled .view-tab-icon {
    background: linear-gradient(180deg, rgba(221, 238, 255, 0.12), rgba(221, 238, 255, 0.04));
}

.view-tab--section .view-tab-icon::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3'/%3E%3Cpath d='M5 20c1.5-3.5 4-5.2 7-5.2S17.5 16.5 19 20'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3'/%3E%3Cpath d='M5 20c1.5-3.5 4-5.2 7-5.2S17.5 16.5 19 20'/%3E%3C/svg%3E");
}

.view-switch-footer {
    display: grid;
    gap: 6px;
    padding-top: 8px;
    margin-top: auto;
    flex-shrink: 0;
}

.sidebar-session-pill {
    padding: 8px 10px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(235, 244, 255, 0.95), rgba(216, 232, 255, 0.88));
    border: 1px solid rgba(136, 175, 226, 0.24);
    box-shadow: 0 10px 20px rgba(8, 27, 73, 0.12);
    color: #102a61;
}

body:not(.sidebar-expanded) .sidebar-session-pill {
    display: none;
}

.sidebar-session-pill strong {
    font-size: 0.78rem;
    font-weight: 700;
    color: #102a61;
    line-height: 1.05;
}

.sidebar-session-pill span {
    color: #102a61;
    font-size: 0.68rem;
    line-height: 1.05;
}

.view-settings-group[hidden],
.view-settings-panel[hidden] {
    display: none !important;
}

.view-tab[hidden] {
    display: none !important;
}

.view-tab {
    position: relative;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
    width: 100%;
    min-height: 54px;
    padding: 0 10px 0 8px;
    border: 1px solid rgba(217, 235, 255, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.045);
    color: rgba(244, 248, 255, 0.86);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition:
        background 160ms ease,
        color 160ms ease,
        border-color 160ms ease,
        transform 160ms ease,
        box-shadow 160ms ease;
}

.view-tab--toggle {
    grid-template-columns: 36px minmax(0, 1fr) 12px;
}

.view-tab--sub {
    min-height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
}

.view-tab--logout {
    grid-template-columns: 36px minmax(0, 1fr);
}

.view-tab:hover {
    background: rgba(214, 234, 255, 0.12);
    color: #ffffff;
    border-color: rgba(214, 234, 255, 0.18);
}

body.sidebar-expanded .view-tab {
    grid-template-columns: 36px minmax(0, 1fr);
    justify-items: stretch;
    gap: 10px;
    width: 100%;
    min-height: 54px;
    padding: 0 10px 0 8px;
}

body.sidebar-expanded .view-tab--toggle,
body.sidebar-expanded .view-tab--logout,
body.sidebar-expanded .view-tab--sub {
    grid-template-columns: 36px minmax(0, 1fr);
}

body.sidebar-expanded .view-tab--toggle {
    grid-template-columns: 36px minmax(0, 1fr) 12px;
}

body.sidebar-expanded .view-tab-label,
body.sidebar-expanded .view-tab-chevron {
    display: block;
}

body.sidebar-expanded .view-tab-chevron {
    align-self: center;
    justify-self: end;
}

body.sidebar-expanded .view-tab-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
}

body.sidebar-expanded .view-tab--sub {
    min-height: 48px;
}

body.sidebar-expanded .view-tab.is-active {
    width: 100%;
    min-height: 54px;
    transform: translateX(4px);
}

.view-tab::before {
    content: "";
    position: absolute;
    left: -16px;
    top: 14px;
    bottom: 14px;
    width: 4px;
    border-radius: 999px;
    background: transparent;
    transition: background 160ms ease;
}

.view-tab.is-active {
    background: linear-gradient(135deg, #0c265f, #153a7d 58%, #1b69b3 100%);
    color: #ffffff;
    border-color: rgba(185, 219, 255, 0.28);
    box-shadow: 0 18px 30px rgba(7, 23, 59, 0.22), 0 0 0 1px rgba(214, 234, 255, 0.08) inset;
    transform: translateX(4px);
}

body:not(.sidebar-expanded) .view-tab {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0;
    min-height: 42px;
    width: 40px;
    padding: 0;
    border-radius: 14px;
    margin-inline: 0;
}

body:not(.sidebar-expanded) .view-tab--toggle,
body:not(.sidebar-expanded) .view-tab--logout {
    grid-template-columns: 1fr;
}

body:not(.sidebar-expanded) .view-tab.is-active {
    transform: none;
}

body:not(.sidebar-expanded) .view-tab-label,
body:not(.sidebar-expanded) .view-tab-chevron {
    display: none;
}

body:not(.sidebar-expanded) .view-tab::before {
    display: none;
}

.view-tab.is-active::before {
    background: linear-gradient(180deg, #27c2df 0%, #6ea5ff 100%);
}

.view-settings-group.is-open .view-tab-chevron,
.view-tab--toggle[aria-expanded="true"] .view-tab-chevron {
    transform: translateY(2px) rotate(225deg);
}

.view-tab:disabled {
    opacity: 0.42;
    cursor: not-allowed;
    transform: none;
}

.view-tab-label {
    min-width: 0;
}

.view-tab-chevron {
    justify-self: end;
    width: 7px;
    height: 7px;
    margin-right: 2px;
    border-right: 2px solid rgba(245, 247, 255, 0.84);
    border-bottom: 2px solid rgba(245, 247, 255, 0.84);
    transform: translateY(-1px) rotate(45deg);
    transition: transform 160ms ease, border-color 160ms ease, opacity 160ms ease;
    opacity: 0.9;
}

body:not(.sidebar-expanded) .view-tab-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
}

body:not(.sidebar-expanded) .view-switch-body,
body:not(.sidebar-expanded) .view-switch-footer {
    align-items: center;
}

body:not(.sidebar-expanded) .view-tab-icon::before {
    width: 18px;
    height: 18px;
}

.view-tab--toggle:hover .view-tab-chevron,
.view-tab--toggle.is-active .view-tab-chevron {
    border-color: rgba(245, 247, 255, 0.96);
}

.view-tab-icon {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(221, 238, 255, 0.12), rgba(221, 238, 255, 0.04));
    border: 1px solid rgba(221, 238, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.view-tab.is-active .view-tab-icon {
    background: linear-gradient(180deg, rgba(225, 241, 255, 0.2), rgba(225, 241, 255, 0.08));
    border-color: rgba(225, 241, 255, 0.2);
}

.view-tab-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 18px;
    height: 18px;
    background: rgba(246, 250, 255, 0.96);
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}

.view-tab[data-view-tab="login"] .view-tab-icon::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='15' r='4'/%3E%3Cpath d='M14 10h7'/%3E%3Cpath d='M18 7v6'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='15' r='4'/%3E%3Cpath d='M14 10h7'/%3E%3Cpath d='M18 7v6'/%3E%3C/svg%3E");
}

.view-tab--home .view-tab-icon::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11.5L12 4l9 7.5'/%3E%3Cpath d='M5 10.5V20h14v-9.5'/%3E%3Cpath d='M9 20v-6h6v6'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11.5L12 4l9 7.5'/%3E%3Cpath d='M5 10.5V20h14v-9.5'/%3E%3Cpath d='M9 20v-6h6v6'/%3E%3C/svg%3E");
}

.view-tab[data-view-tab="operations"] .view-tab-icon::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2l8 4.5v11L12 22 4 17.5v-11L12 2z'/%3E%3Cpath d='M12 12l8-4.5'/%3E%3Cpath d='M12 12L4 7.5'/%3E%3Cpath d='M12 12v10'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2l8 4.5v11L12 22 4 17.5v-11L12 2z'/%3E%3Cpath d='M12 12l8-4.5'/%3E%3Cpath d='M12 12L4 7.5'/%3E%3Cpath d='M12 12v10'/%3E%3C/svg%3E");
}

.view-tab[data-view-tab="cargo"] .view-tab-icon::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h11v9H3z'/%3E%3Cpath d='M14 9h3l4 4v2h-7z'/%3E%3Ccircle cx='7.5' cy='17.5' r='1.5'/%3E%3Ccircle cx='17.5' cy='17.5' r='1.5'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h11v9H3z'/%3E%3Cpath d='M14 9h3l4 4v2h-7z'/%3E%3Ccircle cx='7.5' cy='17.5' r='1.5'/%3E%3Ccircle cx='17.5' cy='17.5' r='1.5'/%3E%3C/svg%3E");
}

.view-tab[data-view-tab="supply"] .view-tab-icon::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 4.5v9L12 21l-8-4.5v-9L12 3z'/%3E%3Cpath d='M12 12l8-4.5'/%3E%3Cpath d='M12 12v9'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 4.5v9L12 21l-8-4.5v-9L12 3z'/%3E%3Cpath d='M12 12l8-4.5'/%3E%3Cpath d='M12 12v9'/%3E%3C/svg%3E");
}

.view-tab[data-view-tab="settings"] .view-tab-icon::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.7 1.7 0 0 0 .34 1.87l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06A1.7 1.7 0 0 0 15 19.4a1.7 1.7 0 0 0-1 1.55V21a2 2 0 1 1-4 0v-.05a1.7 1.7 0 0 0-1-1.55 1.7 1.7 0 0 0-1.87.34l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06A1.7 1.7 0 0 0 4.6 15a1.7 1.7 0 0 0-1.55-1H3a2 2 0 1 1 0-4h.05a1.7 1.7 0 0 0 1.55-1 1.7 1.7 0 0 0-.34-1.87l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06A1.7 1.7 0 0 0 9 4.6 1.7 1.7 0 0 0 10 3.05V3a2 2 0 1 1 4 0v.05a1.7 1.7 0 0 0 1 1.55 1.7 1.7 0 0 0 1.87-.34l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06A1.7 1.7 0 0 0 19.4 9c.4.48.65 1.1.65 1.78V12c0 .68-.25 1.3-.65 1.78Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.7 1.7 0 0 0 .34 1.87l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06A1.7 1.7 0 0 0 15 19.4a1.7 1.7 0 0 0-1 1.55V21a2 2 0 1 1-4 0v-.05a1.7 1.7 0 0 0-1-1.55 1.7 1.7 0 0 0-1.87.34l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06A1.7 1.7 0 0 0 4.6 15a1.7 1.7 0 0 0-1.55-1H3a2 2 0 1 1 0-4h.05a1.7 1.7 0 0 0 1.55-1 1.7 1.7 0 0 0-.34-1.87l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06A1.7 1.7 0 0 0 9 4.6 1.7 1.7 0 0 0 10 3.05V3a2 2 0 1 1 4 0v.05a1.7 1.7 0 0 0 1 1.55 1.7 1.7 0 0 0 1.87-.34l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06A1.7 1.7 0 0 0 19.4 9c.4.48.65 1.1.65 1.78V12c0 .68-.25 1.3-.65 1.78Z'/%3E%3C/svg%3E");
}

.view-tab--logout .view-tab-icon::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 17l5-5-5-5'/%3E%3Cpath d='M15 12H3'/%3E%3Cpath d='M15 3h6v18h-6'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 17l5-5-5-5'/%3E%3Cpath d='M15 12H3'/%3E%3Cpath d='M15 3h6v18h-6'/%3E%3C/svg%3E");
}

.view-tab[data-view-tab="founder"] .view-tab-icon::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l2.1 4.9L19 9l-3.8 3.2 1.2 5-4.4-2.6-4.4 2.6 1.2-5L5 9l4.9-1.1L12 3z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l2.1 4.9L19 9l-3.8 3.2 1.2 5-4.4-2.6-4.4 2.6 1.2-5L5 9l4.9-1.1L12 3z'/%3E%3C/svg%3E");
}

.view-tab[data-view-tab="admin"] .view-tab-icon::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.2'/%3E%3Cpath d='M5 19c1.5-3.2 4-4.8 7-4.8S17.5 15.8 19 19'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.2'/%3E%3Cpath d='M5 19c1.5-3.2 4-4.8 7-4.8S17.5 15.8 19 19'/%3E%3C/svg%3E");
}

.view-tab[data-view-tab="user-settings"] .view-tab-icon::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h12'/%3E%3Ccircle cx='18' cy='7' r='2'/%3E%3Cpath d='M4 12h7'/%3E%3Ccircle cx='13' cy='12' r='2'/%3E%3Cpath d='M4 17h10'/%3E%3Ccircle cx='16' cy='17' r='2'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h12'/%3E%3Ccircle cx='18' cy='7' r='2'/%3E%3Cpath d='M4 12h7'/%3E%3Ccircle cx='13' cy='12' r='2'/%3E%3Cpath d='M4 17h10'/%3E%3Ccircle cx='16' cy='17' r='2'/%3E%3C/svg%3E");
}

.view-tab[data-view-tab="design"] .view-tab-icon::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19h16'/%3E%3Cpath d='M7 17V7'/%3E%3Cpath d='M12 17V5'/%3E%3Cpath d='M17 17V9'/%3E%3Cpath d='M3 5h18'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19h16'/%3E%3Cpath d='M7 17V7'/%3E%3Cpath d='M12 17V5'/%3E%3Cpath d='M17 17V9'/%3E%3Cpath d='M3 5h18'/%3E%3C/svg%3E");
}

.view-tab[data-view-tab="connections"] .view-tab-icon::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.1 0l2-2a5 5 0 0 0-7.1-7.1l-1.1 1.1'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.1 0l-2 2a5 5 0 0 0 7.1 7.1l1.1-1.1'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.1 0l2-2a5 5 0 0 0-7.1-7.1l-1.1 1.1'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.1 0l-2 2a5 5 0 0 0 7.1 7.1l1.1-1.1'/%3E%3C/svg%3E");
}

.view-tab[data-view-tab="admin"] .view-tab-icon::before,
.view-tab[data-view-tab="founder"] .view-tab-icon::before,
.view-tab[data-view-tab="design"] .view-tab-icon::before,
.view-tab[data-view-tab="connections"] .view-tab-icon::before {
    background: rgba(245, 247, 255, 0.96);
}

.user-settings-shell {
    display: grid;
    gap: 16px;
    padding: 18px;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(249, 252, 250, 0.94)),
        radial-gradient(circle at top left, rgba(25, 135, 84, 0.08), transparent 32%);
    border: 1px solid rgba(25, 135, 84, 0.12);
    box-shadow: 0 18px 40px rgba(16, 61, 43, 0.08);
}

.user-settings-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.user-settings-header-copy {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.user-settings-avatar {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    flex: none;
    border-radius: 999px;
    background: rgba(25, 135, 84, 0.08);
    border: 1px solid rgba(25, 135, 84, 0.12);
    color: var(--theme-plum);
}

.user-settings-avatar svg,
.user-settings-section-icon svg,
.user-settings-input-icon svg,
.user-permission-chip-icon svg {
    width: 1em;
    height: 1em;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.user-settings-avatar svg {
    width: 22px;
    height: 22px;
}

.user-settings-header-text {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.user-settings-header-text h2 {
    margin: 0;
    font-size: 1.54rem;
    line-height: 1.02;
    letter-spacing: -0.04em;
    color: var(--ink);
}

.user-settings-header-text p {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

.user-settings-mode-badge {
    width: fit-content;
    margin-top: 4px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(25, 135, 84, 0.12);
    background: rgba(25, 135, 84, 0.06);
    color: var(--theme-plum-strong);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.user-settings-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
}

.user-settings-close-btn {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    border-radius: 12px;
    border: 1px solid rgba(23, 33, 31, 0.08);
    background: rgba(255, 255, 255, 0.82);
    color: var(--muted);
    font-size: 1.4rem;
    line-height: 1;
}

.user-settings-submit-btn {
    min-height: 40px;
    padding-inline: 18px;
    border-radius: 12px;
    font-size: 0.84rem;
    letter-spacing: 0.01em;
}

.user-settings-workbench {
    display: grid;
    gap: 14px;
}

.user-settings-section {
    display: grid;
    gap: 14px;
    padding: 16px;
    border-radius: 22px;
    border: 1px solid rgba(23, 33, 31, 0.08);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.user-settings-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--theme-plum-strong);
}

.user-settings-section-icon {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    color: var(--theme-plum);
    flex: none;
}

.user-settings-section-head h3 {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--theme-plum-strong);
}

.user-settings-fields {
    display: grid;
    gap: 12px;
}

.user-settings-fields--identity {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.user-settings-dual-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 14px;
}

.user-settings-fields--role,
.user-settings-fields--security {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.user-settings-field {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.user-settings-field > span {
    color: var(--muted);
    font-size: 0.74rem;
    line-height: 1.1;
}

.user-settings-input-shell {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 12px;
    border-radius: 14px;
    border: 1px solid rgba(23, 33, 31, 0.10);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.user-settings-input-icon {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    flex: none;
    color: rgba(86, 97, 92, 0.86);
    font-size: 0.95rem;
}

.user-settings-input-shell input,
.user-settings-input-shell select {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: 0.9rem;
    outline: none;
    box-shadow: none;
    padding: 0;
    min-height: 44px;
}

.user-settings-input-shell select {
    appearance: none;
    padding-right: 18px;
    cursor: pointer;
}

.user-settings-input-shell input::placeholder {
    color: rgba(86, 97, 92, 0.6);
}

.user-settings-field--password .user-settings-input-shell {
    gap: 10px;
    padding-right: 8px;
}

.user-settings-inline-action {
    border: 0;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 10px;
    background: rgba(25, 135, 84, 0.10);
    color: var(--theme-plum-strong);
    font-size: 0.8rem;
    font-weight: 600;
}

.user-settings-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 46px;
    padding: 0 12px;
    border-radius: 14px;
    border: 1px solid rgba(23, 33, 31, 0.10);
    background: rgba(255, 255, 255, 0.96);
}

.user-settings-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 46px;
    height: 26px;
    flex: none;
}

.user-settings-switch input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.user-settings-switch-track {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: rgba(23, 33, 31, 0.12);
    transition: background 180ms ease;
}

.user-settings-switch-track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(16, 61, 43, 0.18);
    transition: transform 180ms ease;
}

.user-settings-switch input:checked + .user-settings-switch-track {
    background: linear-gradient(180deg, #6ad5ae, #2fb67c);
}

.user-settings-switch input:checked + .user-settings-switch-track::after {
    transform: translateX(20px);
}

.user-settings-toggle-state {
    color: var(--muted);
    font-size: 0.84rem;
}

.user-settings-permissions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.user-permission-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid rgba(23, 33, 31, 0.10);
    background: rgba(255, 255, 255, 0.96);
    color: var(--ink);
    transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.user-permission-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.user-permission-chip-copy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 0.84rem;
    font-weight: 600;
}

.user-permission-chip-icon {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    flex: none;
    color: var(--muted);
}

.user-permission-chip-check {
    width: 16px;
    height: 16px;
    flex: none;
    border-radius: 4px;
    border: 1.5px solid rgba(23, 33, 31, 0.18);
    background: rgba(255, 255, 255, 0.86);
    position: relative;
}

.user-permission-chip-check::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 2px;
    background: transparent;
}

.user-permission-chip input:checked ~ .user-permission-chip-check {
    border-color: rgba(25, 135, 84, 0.32);
    background: rgba(25, 135, 84, 0.12);
}

.user-permission-chip input:checked ~ .user-permission-chip-check::after {
    background: var(--theme-plum);
}

.user-permission-chip.is-checked {
    border-color: rgba(25, 135, 84, 0.18);
    background: linear-gradient(180deg, rgba(243, 252, 248, 0.98), rgba(236, 247, 241, 0.94));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.user-permission-chip.is-checked .user-permission-chip-icon {
    color: var(--theme-plum);
}

.user-permission-chip.is-checked .user-permission-chip-check {
    border-color: rgba(25, 135, 84, 0.32);
    background: rgba(25, 135, 84, 0.12);
}

.user-settings-form-status {
    min-height: 0;
}

.user-settings-footer-spacer,
.user-settings-cancel-edit,
.user-settings-card-note {
    display: none;
}

.user-settings-workbench #noteInput[hidden] {
    display: none !important;
}

@media (max-width: 1180px) {
    .minimal-shell {
        display: grid;
        gap: 18px;
    }

    .minimal-shell > .view-switch.main-switch,
    .minimal-shell > .auth-shell,
    .minimal-shell > #appShell {
        margin-left: 0;
        width: auto;
    }

    .view-switch.main-switch {
        position: relative;
        top: auto;
        left: auto;
        width: auto;
        height: auto;
        max-height: none;
        min-height: auto;
        padding: 20px 18px;
        border-radius: 28px;
        overflow: hidden;
    }

    .view-brand {
        padding: 4px 4px 0;
    }

    .view-switch-body {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .view-settings-panel {
        padding-left: 10px;
    }

    .view-tab {
        min-height: 66px;
        border-radius: 20px;
        transform: none;
    }

    .view-tab.is-active {
        transform: none;
    }

    .view-tab::before {
        display: none;
    }

    .auth-shell {
        min-height: auto;
    }
}

@media (max-width: 720px) {
    .view-brand-copy p {
        display: none;
    }

    .view-switch.main-switch {
        gap: 16px;
        padding: 16px 14px;
        border-radius: 24px;
    }

    .view-switch-body {
        grid-template-columns: 1fr;
    }

    .view-tab {
        min-height: 58px;
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 12px;
        padding: 0 14px 0 10px;
        border-radius: 18px;
        font-size: 0.94rem;
    }

    .view-tab--toggle {
        grid-template-columns: 42px minmax(0, 1fr) 14px;
    }

    .view-tab-icon {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .view-tab-icon::before {
        width: 20px;
        height: 20px;
    }

    .view-tab-chevron {
        width: 8px;
        height: 8px;
    }
}

/* Global soft-blue theme */
:root {
    --bg: #f4f7ff;
    --surface: rgba(255, 255, 255, 0.96);
    --ink: #102a61;
    --muted: #5c7198;
    --line: rgba(26, 72, 146, 0.14);
    --shadow: 0 24px 52px rgba(16, 42, 97, 0.1);
    --theme-plum: #1596be;
    --theme-plum-strong: #0f2f6c;
    --theme-plum-soft: rgba(21, 150, 190, 0.12);
    --theme-plum-cloud: rgba(224, 241, 255, 0.92);
}

body {
    color: var(--ink);
    background:
        radial-gradient(circle at 10% 14%, rgba(21, 150, 190, 0.12), transparent 22%),
        radial-gradient(circle at 86% 10%, rgba(30, 93, 177, 0.12), transparent 24%),
        radial-gradient(circle at 50% 100%, rgba(15, 47, 108, 0.08), transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
    background-color: var(--bg);
}

.page-shell {
    padding: 6px;
}

.minimal-shell > .auth-shell {
    position: relative;
    border-radius: 38px;
    border: 1px solid rgba(19, 54, 122, 0.1);
    background:
        radial-gradient(circle at 0 0, rgba(159, 223, 243, 0.18), transparent 22%),
        radial-gradient(circle at 100% 0, rgba(220, 236, 255, 0.26), transparent 26%),
        radial-gradient(circle at 50% 100%, rgba(15, 47, 108, 0.1), transparent 30%),
        linear-gradient(180deg, rgba(244, 249, 255, 0.99), rgba(229, 239, 255, 0.97));
    box-shadow: 0 24px 52px rgba(16, 42, 97, 0.1);
}

.minimal-shell > #appShell {
    position: relative;
    border-radius: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.minimal-shell > .auth-shell {
    padding: 18px;
    min-height: calc(100vh - 12px);
    overflow: hidden;
    isolation: isolate;
}

.minimal-shell > #appShell {
    padding: 8px 10px 14px;
}

.minimal-shell > .auth-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
}

.minimal-shell > .auth-shell > *,
.minimal-shell > #appShell > * {
    position: relative;
    z-index: 1;
}

.minimal-shell > .auth-shell .auth-card,
#appShell :is(
    .card,
    .queue-strip,
    .queue-list-panel,
    .detail-panel,
    .supply-hero-card,
    .admin-hero-card,
    .admin-create-card,
    .admin-users-card,
    .supply-product-card,
    .supply-history-card,
    .admin-user-card,
    .summary-card,
    .scan-card,
    .notice-card,
    .order-note-card,
    .history-card,
    .category-control,
    .info-disclosure,
    .cargo-company-panel,
    .cargo-results-panel
) {
    border: 1px solid rgba(19, 54, 122, 0.1) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.94)) !important;
    box-shadow: 0 18px 40px rgba(16, 42, 97, 0.08) !important;
    backdrop-filter: blur(18px);
}

.minimal-shell > .auth-shell .auth-card {
    position: relative;
    z-index: 2;
    border-color: rgba(159, 223, 243, 0.22) !important;
    background:
        radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.24), transparent 28%),
        linear-gradient(180deg, rgba(246, 250, 255, 0.98), rgba(233, 241, 255, 0.96)) !important;
    box-shadow: 0 18px 40px rgba(16, 42, 97, 0.1) !important;
}

#loginShell.auth-shell {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 0;
    place-items: stretch;
    padding: 10px 24px 12px !important;
    min-height: 100dvh;
    height: 100dvh;
    overflow: hidden;
    background: #ffffff !important;
    box-shadow: none !important;
    border: 0 !important;
    border-radius: 0 !important;
}

#loginShell.auth-shell::before {
    display: none;
}

#loginShell.auth-shell,
.minimal-shell > #loginShell.auth-shell {
    background: #ffffff !important;
    box-shadow: none !important;
    border: 0 !important;
    border-radius: 0 !important;
}

body:has(#loginShell:not([hidden])) {
    background: #ffffff !important;
    overflow: hidden;
}

.page-shell:has(#loginShell:not([hidden])) {
    padding: 0;
    min-height: 100dvh;
}

.minimal-shell:has(#loginShell:not([hidden])) {
    max-width: none;
}

#loginShell .login-landing-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 24px;
    padding: 10px 10px 14px;
    border-bottom: 1px solid rgba(14, 32, 79, 0.08);
}

#loginShell .login-brand-suite {
    display: flex;
    align-items: center;
    min-width: 0;
}

#loginShell .login-brand-image {
    display: block;
    width: auto;
    height: clamp(58px, 5vw, 82px);
    max-width: min(100%, 390px);
    object-fit: contain;
    object-position: left center;
}

#loginShell .login-landing-links {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
}

#loginShell .login-landing-link {
    position: relative;
    padding: 10px 2px;
    color: #334e7d;
    font-weight: 500;
    text-decoration: none;
}

#loginShell .login-landing-link.is-active,
#loginShell .login-landing-link:hover {
    color: #1696c1;
}

#loginShell .login-landing-link.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -7px;
    width: 58px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #19b7d8, #0f7ec0);
    transform: translateX(-50%);
}

#loginShell .login-support-cta {
    min-height: 52px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 18px;
    border: 2px solid rgba(18, 42, 97, 0.2);
    color: #132d62;
    text-decoration: none;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 24px rgba(16, 42, 97, 0.06);
}

#loginShell .login-support-cta svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

#loginShell .login-landing-main {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(360px, 430px);
    align-items: center;
    gap: clamp(28px, 4vw, 84px);
    min-height: 0;
    height: 100%;
    padding: 8px 10px 0;
}

#loginShell .login-hero {
    min-height: 100%;
    display: grid;
    align-content: center;
    gap: 20px;
    padding: clamp(8px, 2vw, 24px) 6px 8px;
}

#loginShell .login-hero-copy {
    max-width: 700px;
}

#loginShell .login-hero-copy h2 {
    margin: 0;
    font-family: "Sora", "Inter", sans-serif;
    font-size: clamp(3.6rem, 7vw, 7rem) !important;
    line-height: 0.94;
    letter-spacing: -0.08em;
    color: #0d2760;
}

#loginShell .login-hero-copy h2 span {
    display: block;
    color: #1596be;
}

#loginShell .login-hero-underline {
    width: 74px;
    height: 5px;
    margin: 14px 0 16px;
    border-radius: 999px;
    background: linear-gradient(90deg, #15c2da, #0f7eb9);
}

#loginShell .login-hero-description {
    margin: 0;
    color: #435d89;
    font-size: clamp(1.15rem, 1.7vw, 1.95rem);
    line-height: 1.45;
}

#loginShell .login-hero-illustration {
    width: min(100%, 330px);
    opacity: 0.34;
}

#loginShell .login-hero-illustration svg {
    width: 100%;
    height: auto;
    stroke: rgba(102, 136, 178, 0.34);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

#loginShell .login-auth-card {
    width: 100%;
    max-width: 430px;
    justify-self: end;
    padding: 26px 32px 28px;
    border-radius: 30px;
    border-color: rgba(16, 42, 97, 0.08) !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 28px 54px rgba(16, 42, 97, 0.12) !important;
}

#loginShell .login-auth-card .eyebrow {
    margin-bottom: 10px;
    color: rgba(51, 78, 125, 0.62);
}

#loginShell .login-auth-card h1 {
    margin: 0 0 10px;
    font-family: "Sora", "Inter", sans-serif;
    font-size: clamp(2.2rem, 2.8vw, 3.1rem) !important;
    line-height: 1.02;
    color: #102a61;
}

#loginShell .auth-copy {
    margin-bottom: 16px;
    color: #5e7092;
}

#loginShell .auth-form {
    gap: 14px;
}

#loginShell .auth-field {
    gap: 10px;
}

#loginShell .auth-field label {
    font-size: 0.98rem;
    color: #3e5784;
}

#loginShell .auth-input-shell {
    position: relative;
}

#loginShell .auth-input-icon {
    position: absolute;
    top: 50%;
    left: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #7388ad;
    transform: translateY(-50%);
    pointer-events: none;
}

#loginShell .auth-input-icon svg,
#loginShell .auth-input-toggle svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

#loginShell .auth-field input {
    min-height: 58px;
    padding: 16px 20px 16px 58px;
    border-radius: 18px;
    border: 1px solid rgba(102, 130, 174, 0.2);
    background: linear-gradient(180deg, rgba(246, 250, 255, 0.98), rgba(240, 246, 255, 0.96));
    font-size: 1rem;
    color: #102a61;
}

#loginShell .auth-field input:focus {
    border-color: rgba(27, 117, 191, 0.4) !important;
    box-shadow: 0 0 0 5px rgba(33, 120, 199, 0.12) !important;
}

#loginShell .auth-input-toggle {
    position: absolute;
    top: 50%;
    right: 16px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #7388ad;
    transform: translateY(-50%);
    cursor: pointer;
}

#loginShell .auth-input-toggle.is-active {
    color: #102a61;
}

#loginShell .auth-actions {
    margin-top: 12px;
}

#loginShell .auth-submit {
    width: 100%;
    min-width: 0;
    min-height: 68px;
    border-radius: 18px;
    font-family: "Sora", "Inter", sans-serif;
    font-size: 1.15rem !important;
    font-weight: 700;
    background: linear-gradient(135deg, #0a2156, #12367a 55%, #1e5db1) !important;
    box-shadow: 0 22px 40px rgba(10, 33, 86, 0.2) !important;
}

#loginShell .auth-submit:hover {
    background: linear-gradient(135deg, #081b49, #102f6c 55%, #184e96) !important;
}

#loginShell #authMessage {
    margin-top: 16px;
}

#loginShell #authMessage:empty,
#loginShell .auth-copy[hidden] {
    display: none;
}

#loginShell .login-landing-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 16px;
    padding: 10px 10px 0;
    border-top: 1px solid rgba(16, 42, 97, 0.08);
    color: #425a86;
}

#loginShell .login-footer-note,
#loginShell .login-footer-links {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

#loginShell .login-footer-note svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

#loginShell .login-footer-links {
    gap: 28px;
}

#loginShell .login-footer-links a,
#loginShell .login-footer-copy,
#loginShell .login-footer-note {
    color: #425a86;
    text-decoration: none;
    font-size: 0.98rem;
}

@media (max-height: 860px) {
    #loginShell.auth-shell {
        padding: 8px 20px 10px !important;
    }

    #loginShell .login-landing-nav {
        padding-bottom: 10px;
    }

    #loginShell .login-support-cta {
        min-height: 48px;
    }

    #loginShell .login-hero-copy h2 {
        font-size: clamp(3.2rem, 5vw, 5.8rem) !important;
    }

    #loginShell .login-hero-description {
        font-size: clamp(1rem, 1.4vw, 1.35rem);
    }

    #loginShell .login-hero-illustration {
        width: min(100%, 240px);
    }

    #loginShell .login-auth-card h1 {
        font-size: clamp(1.9rem, 2.2vw, 2.4rem) !important;
    }
}

@media (max-height: 720px) {
    #loginShell .login-landing-main {
        gap: 20px;
    }

    #loginShell .login-hero {
        gap: 14px;
        padding-top: 0;
    }

    #loginShell .login-hero-copy h2 {
        font-size: clamp(2.7rem, 4vw, 4.5rem) !important;
    }

    #loginShell .login-hero-underline {
        margin: 10px 0 12px;
    }

    #loginShell .login-hero-illustration {
        width: min(100%, 170px);
    }

    #loginShell .login-auth-card {
        padding: 22px 24px 24px;
    }

    #loginShell .auth-field input {
        min-height: 52px;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    #loginShell .login-landing-footer {
        padding-top: 8px;
    }
}

@media (max-height: 620px) {
    #loginShell .login-hero-illustration,
    #loginShell .login-footer-note {
        display: none;
    }

    #loginShell .login-landing-footer {
        grid-template-columns: 1fr auto;
    }
}

@media (max-width: 1180px) {
    #loginShell .login-landing-nav {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    #loginShell .login-brand-image {
        height: clamp(48px, 6.5vw, 66px);
        max-width: min(100%, 330px);
    }

    #loginShell .login-support-cta {
        justify-self: start;
    }

    #loginShell .login-landing-main {
        grid-template-columns: 1fr;
        gap: 14px;
        align-content: center;
    }

    #loginShell .login-auth-card {
        justify-self: start;
        max-width: 520px;
    }

    #loginShell .login-landing-footer {
        grid-template-columns: 1fr;
        justify-items: start;
    }
}

@media (max-width: 720px) {
    #loginShell.auth-shell {
        padding: 10px 14px 12px !important;
    }

    #loginShell .login-brand-image {
        height: clamp(40px, 10.5vw, 54px);
        max-width: min(100%, 250px);
    }

    #loginShell .login-landing-links {
        gap: 18px;
        flex-wrap: wrap;
    }

    #loginShell .login-hero {
        padding: 4px 0 0;
        gap: 12px;
    }

    #loginShell .login-hero-copy h2 {
        font-size: clamp(2.2rem, 12vw, 3.5rem) !important;
    }

    #loginShell .login-hero-description {
        font-size: 0.95rem;
    }

    #loginShell .login-hero-illustration {
        width: min(100%, 120px);
    }

    #loginShell .login-auth-card {
        padding: 20px 18px 18px;
    }

    #loginShell .auth-field input {
        min-height: 50px;
        padding-left: 52px;
    }

    #loginShell .auth-submit {
        min-height: 52px;
    }

    #loginShell .login-footer-links {
        gap: 14px;
        flex-wrap: wrap;
    }
}

#appShell .scanner-hero,
#appShell .queue-strip,
#appShell .supply-hero-card,
#appShell .admin-hero-card,
#appShell .detail-hero-card {
    background:
        radial-gradient(circle at top right, rgba(21, 150, 190, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(243, 248, 255, 0.95)) !important;
}

.section-head h2,
.section-head h3,
.scanner-hero-copy h1,
.detail-title-block h2,
.auth-card h1,
.auth-card h2 {
    color: #102a61;
}

.eyebrow,
.field-label,
.auth-field label,
.scanner-hero-copy-text,
.auth-copy,
.queue-strip-subtitle,
.supply-copy,
.detail-subcopy {
    color: var(--muted);
}

.ghost-btn,
.secondary-btn,
.manual-btn,
.search-row input,
.scan-row input,
.auth-field input,
.scanner-row input,
.supply-search-row input,
.order-note-form input,
.admin-field input,
.admin-field select,
.admin-field textarea,
.supply-note-input,
#noteInput {
    border: 1px solid rgba(102, 130, 174, 0.22) !important;
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(242, 247, 255, 0.94)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.search-row input:focus,
.scan-row input:focus,
.auth-field input:focus,
.scanner-row input:focus,
.supply-search-row input:focus,
.order-note-form input:focus,
.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus,
.supply-note-input:focus,
#noteInput:focus {
    border-color: rgba(27, 117, 191, 0.42) !important;
    box-shadow: 0 0 0 5px rgba(33, 120, 199, 0.12) !important;
    outline: none;
}

.primary-btn,
.search-row button,
.scanner-row-actions .primary-btn,
.scan-row-actions .primary-btn,
.auth-submit,
.supply-search-row .primary-btn {
    background: linear-gradient(135deg, #0a2156, #12367a 55%, #1e5db1) !important;
    color: #ffffff !important;
    box-shadow: 0 18px 34px rgba(10, 33, 86, 0.18);
}

.primary-btn:hover,
.search-row button:hover,
.scanner-row-actions .primary-btn:hover,
.scan-row-actions .primary-btn:hover,
.auth-submit:hover,
.supply-search-row .primary-btn:hover {
    background: linear-gradient(135deg, #081b49, #102f6c 55%, #184e96) !important;
}

.secondary-btn,
.ghost-btn {
    color: #153467 !important;
}

.ghost-btn {
    background: rgba(229, 242, 255, 0.88) !important;
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.92) !important;
}

.queue-strip .ghost-btn,
.scanner-hero-actions .ghost-btn,
.scanner-hero-actions .session-pill,
.hero-status-action {
    background: linear-gradient(180deg, rgba(232, 244, 255, 0.96), rgba(220, 237, 255, 0.9)) !important;
    border: 1px solid rgba(136, 175, 226, 0.18) !important;
    color: #12367a;
}

.detail-panel {
    --pack-peach: #19b7d8;
    --pack-sun: #9fdff3;
    --pack-mint: #1d71c6;
    --pack-sky: #dcecff;
    --pack-grape: #0d2760;
    --pack-card-border: rgba(27, 117, 191, 0.14);
    --pack-card-shadow: 0 18px 40px rgba(16, 42, 97, 0.1);
    background:
        radial-gradient(circle at top left, rgba(159, 223, 243, 0.2), transparent 26%),
        radial-gradient(circle at 85% 14%, rgba(220, 236, 255, 0.34), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(243, 248, 255, 0.96));
}

.detail-hero-card {
    border: 1px solid rgba(27, 117, 191, 0.14);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 255, 0.9) 46%, rgba(226, 240, 255, 0.94)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0)) !important;
}

.detail-hero-card::before {
    background: radial-gradient(circle, rgba(159, 223, 243, 0.34), rgba(159, 223, 243, 0) 70%);
}

.detail-hero-card::after {
    background: radial-gradient(circle, rgba(29, 113, 198, 0.3), rgba(29, 113, 198, 0) 70%);
}

.category-chip.category-new,
.category-chip.category-ready,
.category-chip.category-shipped,
.category-chip.category-history,
.category-chip.category-rpt,
.category-chip.category-patlak,
.category-chip.category-cancelled {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 247, 255, 0.96));
}

.view-brand-mark,
.view-brand-copy strong span {
    color: #1596be;
}

.view-tab.is-active {
    background: linear-gradient(135deg, #0c265f, #153a7d 58%, #1b69b3 100%) !important;
    border-color: rgba(189, 180, 255, 0.3);
    box-shadow: 0 18px 30px rgba(7, 23, 59, 0.22), 0 0 0 1px rgba(214, 234, 255, 0.08) inset;
}

.view-tab.is-active::before {
    background: linear-gradient(180deg, #27c2df 0%, #6ea5ff 100%) !important;
}

@media (max-width: 1180px) {
    .minimal-shell > .auth-shell,
    .minimal-shell > #appShell {
        border-radius: 30px;
    }

    .design-hero-card {
        padding: 20px;
    }

    .user-settings-shell {
        gap: 14px;
        padding: 16px;
    }

    .user-settings-header {
        flex-direction: column;
        align-items: stretch;
    }

    .user-settings-header-actions {
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .user-settings-fields--identity {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .user-settings-dual-grid {
        grid-template-columns: 1fr;
    }

    .founder-connections-layout {
        grid-template-columns: 1fr;
    }

    .user-settings-fields--role,
    .user-settings-fields--security,
    .user-settings-permissions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-hero-copy {
        max-width: none;
    }

    .home-cargo-card {
        padding: 18px;
    }
}

@media (max-width: 720px) {
    .page-shell {
        padding: 12px;
    }

    .design-hero-card {
        padding: 16px;
        border-radius: 22px;
    }

    .minimal-shell > .auth-shell,
    .minimal-shell > #appShell {
        padding: 16px;
        border-radius: 24px;
    }

    .home-hero {
        padding: 18px;
    }

    .home-hero-top {
        flex-direction: column;
        align-items: stretch;
    }

    .home-hero-actions {
        width: 100%;
        margin-left: 0;
        flex-wrap: wrap;
        justify-content: flex-end;
        padding-top: 0;
    }

    .home-feedback-button {
        flex: 1 1 180px;
        justify-content: center;
    }

    .home-cargo-card {
        padding: 16px;
        border-radius: 22px;
    }

    .home-cargo-head {
        flex-direction: column;
    }

    .home-cargo-period {
        width: 100%;
    }

    .home-cargo-metrics {
        grid-template-columns: 1fr;
    }

    .home-cargo-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .home-cargo-insights {
        grid-template-columns: 1fr;
    }

    .home-cargo-status-shell {
        grid-template-columns: 1fr;
    }

    .home-cargo-activity-item {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .home-cargo-activity-time {
        grid-column: 2 / -1;
        justify-self: start;
        margin-top: -2px;
    }

    .home-cargo-chart-shell {
        min-height: 246px;
    }

    .home-feedback-dialog {
        width: 100%;
        padding: 18px;
        border-radius: 20px;
    }

    .home-feedback-actions {
        flex-direction: column;
    }

    .home-feedback-actions .secondary-btn,
    .home-feedback-actions .primary-btn {
        width: 100%;
    }

    .user-settings-shell {
        padding: 14px;
        border-radius: 24px;
    }

    .user-settings-header-copy {
        align-items: flex-start;
    }

    .user-settings-header-text h2 {
        font-size: 1.18rem;
    }

    .user-settings-header-actions {
        width: 100%;
    }

    .user-settings-submit-btn {
        flex: 1;
    }

    .user-settings-fields--identity,
    .user-settings-fields--role,
    .user-settings-fields--security,
    .user-settings-permissions,
    .user-settings-dual-grid {
        grid-template-columns: 1fr;
    }

    .user-settings-toggle-row {
        min-height: 42px;
    }
}

:root {
    --app-font-family: "Inter", "Segoe UI", sans-serif;
    --base-font-size: 15px;
    --heading-scale: 0.94;
    --base-line-height: 1.45;
    --page-padding: 6px;
    --app-shell-padding: 10px;
    --card-padding: 22px;
    --card-gap: 14px;
    --section-gap: 14px;
    --control-height: 42px;
    --control-radius: 14px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --shell-max-width: 100%;
    --sidebar-width: 240px;
    --hero-card-padding: 26px;
    --hero-card-gap: 16px;
    --hero-card-radius: 28px;
    --panel-card-padding: 18px;
    --panel-card-gap: 12px;
    --panel-card-radius: 22px;
    --list-card-padding: 14px;
    --list-card-gap: 10px;
    --list-card-radius: 16px;
    --list-item-radius: 14px;
    --home-cargo-width: 100%;
    --cargo-workbench-aside-width: 280px;
    --supply-shell-width: 760px;
    --supply-product-padding: 16px;
    --supply-product-radius: 22px;
    --supply-history-padding: 16px;
    --supply-history-radius: 20px;
    --bg-spot-1: rgba(21, 150, 190, 0.12);
    --bg-spot-2: rgba(30, 93, 177, 0.12);
    --bg-gradient-from: #f8fbff;
    --bg-gradient-to: #eef4ff;
}

html {
    font-size: var(--base-font-size);
}

body {
    font-family: var(--app-font-family);
    font-size: var(--base-font-size);
    line-height: var(--base-line-height);
    background:
        radial-gradient(circle at 12% 18%, var(--bg-spot-1), transparent 24%),
        radial-gradient(circle at 82% 12%, var(--bg-spot-2), transparent 26%),
        linear-gradient(180deg, var(--bg-gradient-from) 0%, var(--bg-gradient-to) 100%);
    background-color: var(--bg);
}

html.reduced-motion *,
html.reduced-motion *::before,
html.reduced-motion *::after,
body.reduced-motion *,
body.reduced-motion *::before,
body.reduced-motion *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
}

html.high-contrast {
    --surface: rgba(255, 255, 255, 0.98);
    --line: rgba(23, 33, 31, 0.18);
    --shadow: 0 10px 28px rgba(16, 61, 43, 0.12);
}

.minimal-shell {
    max-width: var(--shell-max-width);
}

.page-shell {
    padding: var(--page-padding);
}

.minimal-shell > .auth-shell,
.minimal-shell > #appShell {
    padding: var(--app-shell-padding);
}

.card {
    padding: var(--card-padding) !important;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    border-color: var(--line);
    background: var(--surface);
}

.view-switch.main-switch {
    width: var(--sidebar-rest-width, 72px);
}

.primary-btn,
.secondary-btn,
.view-tab,
input,
select,
textarea {
    border-radius: var(--control-radius);
}

.primary-btn,
.secondary-btn,
.view-tab {
    min-height: var(--control-height);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.08;
}

h1 {
    font-size: calc(2.4rem * var(--heading-scale)) !important;
}

h2 {
    font-size: calc(1.65rem * var(--heading-scale)) !important;
}

h3 {
    font-size: calc(1.2rem * var(--heading-scale)) !important;
}

h4 {
    font-size: calc(1rem * var(--heading-scale)) !important;
}

.eyebrow {
    letter-spacing: 0.16em;
}

/* Category rail sidebar */
#operationsView #operationsLayout.is-queue-strip-collapsed {
    grid-template-columns: 72px minmax(0, 1fr);
}

#operationsView #queueStrip {
    transition: padding 180ms ease, min-height 180ms ease, box-shadow 180ms ease;
    border-radius: 32px;
    border: 1px solid rgba(31, 78, 154, 0.08);
    background:
        radial-gradient(circle at 0% 0%, rgba(222, 238, 255, 0.94), transparent 28%),
        radial-gradient(circle at 100% 0%, rgba(215, 236, 255, 0.72), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 255, 0.95));
    box-shadow: 0 22px 48px rgba(29, 72, 146, 0.08);
}

#operationsView #queueStrip.is-collapsed {
    padding: 16px 8px !important;
    min-height: calc(100vh - 268px);
}

#operationsView #queueStrip.is-collapsed .queue-strip-head,
#operationsView #queueStrip.is-collapsed .queue-list-panel {
    display: none;
}

#operationsView #queueStrip.is-collapsed .queue-strip-toggle-btn {
    display: none;
}

#operationsView #queueStrip.is-collapsed #queueWorkbench {
    grid-template-columns: 1fr;
    gap: 0;
}

#operationsView #queueStrip.is-collapsed #categoryRail {
    width: 100%;
    padding: 10px 0 12px;
    gap: 12px;
    justify-items: center;
}

#operationsView #queueStrip.is-collapsed #categoryRail .category-rail-header {
    width: 100%;
    justify-content: center;
    padding: 0 0 6px;
}

#operationsView #queueStrip.is-collapsed #categoryRail .category-rail-toolbar {
    width: auto;
    justify-content: center;
}

#operationsView #queueWorkbench {
    display: grid;
    grid-template-columns: minmax(188px, 208px) minmax(0, 1fr);
    gap: 0;
    align-items: start;
    transition: grid-template-columns 180ms ease;
    min-height: calc(100vh - 328px);
    overflow: hidden;
    border: 1px solid rgba(19, 54, 122, 0.08);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(244, 248, 255, 0.95));
    box-shadow: 0 18px 40px rgba(16, 42, 97, 0.06);
}

#operationsView #queueWorkbench.is-category-rail-expanded {
    grid-template-columns: minmax(188px, 208px) minmax(0, 1fr);
}

#operationsView #queueWorkbench.is-category-rail-collapsed {
    grid-template-columns: 72px minmax(0, 1fr);
}

#operationsView #categoryRail {
    display: grid;
    gap: 12px;
    align-content: start;
    min-height: 100%;
    padding: 14px 10px 12px 14px;
}

#operationsView #categoryRail .category-rail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 2px 4px 8px 2px;
}

#operationsView #categoryRail .category-rail-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
}

#operationsView .category-rail-toggle {
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
    padding: 0;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(107, 154, 227, 0.28);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(230, 242, 255, 0.92));
    color: #0d4f97;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    box-shadow:
        0 16px 30px rgba(16, 42, 97, 0.11),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

#operationsView .category-rail-toggle::before,
#operationsView .category-rail-refresh-btn::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0));
    pointer-events: none;
}

#operationsView .category-rail-toggle:hover,
#operationsView .category-rail-refresh-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(107, 154, 227, 0.42);
    box-shadow:
        0 20px 38px rgba(16, 42, 97, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

#operationsView .category-rail-toggle:active,
#operationsView .category-rail-refresh-btn:active {
    transform: translateY(0) scale(0.98);
}

#operationsView .category-rail-toggle:focus-visible,
#operationsView .category-rail-refresh-btn:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 4px rgba(33, 120, 199, 0.14),
        0 20px 38px rgba(16, 42, 97, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

#operationsView .category-rail-refresh-btn {
    background: linear-gradient(180deg, rgba(239, 247, 255, 0.98), rgba(222, 237, 255, 0.92));
    color: #124f92;
}

#operationsView .category-rail-toggle .category-rail-toggle-icon {
    width: 16px;
    height: 16px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 180ms ease;
}

#operationsView .category-rail-refresh-icon {
    width: 18px;
    height: 18px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 180ms ease;
}

#operationsView .category-rail-refresh-btn:hover .category-rail-refresh-icon {
    transform: rotate(12deg);
}

#operationsView .queue-strip-toggle-btn[aria-expanded="true"] .category-rail-toggle-icon,
#operationsView #categoryRail:not(.is-collapsed) .category-rail-toggle .category-rail-toggle-icon {
    transform: rotate(180deg);
}

#operationsView #queueStrip.is-collapsed #categoryRail .category-rail-toolbar {
    justify-content: center;
}

#operationsView #queueStrip.is-collapsed #categoryRail .category-rail-refresh-btn {
    display: none;
}

#operationsView #categoryRail .category-rail-kicker {
    color: #7787a8;
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

#operationsView #categoryRail .category-tabs {
    display: grid;
    flex: 1 1 auto;
    align-content: start;
    gap: 4px;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    transition: padding 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

#operationsView #categoryRail .category-chip-main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 7px;
}

#operationsView #categoryRail .category-chip-icon {
    width: 26px;
    height: 26px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--category-accent);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(24, 56, 47, 0.06);
    flex: 0 0 auto;
}

#operationsView #categoryRail .category-chip-icon svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

#operationsView #categoryRail .category-chip-copy {
    min-width: 0;
    display: grid;
    gap: 0;
}

#operationsView #categoryRail.is-collapsed .category-rail-head {
    display: none;
}

#operationsView #categoryRail.is-collapsed .category-tabs {
    display: grid;
    grid-template-columns: 1fr;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    justify-items: center;
    gap: 10px;
}

#operationsView #categoryRail.is-collapsed .category-rail-header {
    justify-content: center;
    padding: 0 0 6px;
}

#operationsView #categoryRail.is-collapsed .category-rail-kicker {
    display: none;
}

#operationsView #categoryRail.is-collapsed .category-rail-toolbar {
    width: 100%;
    justify-content: center;
}

#operationsView #categoryRail.is-collapsed .category-chip {
    width: 48px;
    min-height: 48px;
    padding: 0;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 8px 18px rgba(24, 78, 156, 0.08);
}

#operationsView #categoryRail.is-collapsed .category-chip::before {
    display: none;
}

#operationsView #categoryRail.is-collapsed .category-chip-main {
    grid-template-columns: 1fr;
    gap: 0;
    width: 100%;
    justify-items: center;
    align-items: center;
}

#operationsView #categoryRail.is-collapsed .category-chip-icon {
    width: 22px;
    height: 22px;
    background: transparent;
    border: 0;
    color: var(--category-accent);
    justify-self: center;
    margin-inline: auto;
}

#operationsView #categoryRail.is-collapsed .category-chip-icon svg {
    width: 18px;
    height: 18px;
    display: block;
    margin: auto;
}

#operationsView #categoryRail.is-collapsed .category-chip-copy,
#operationsView #categoryRail.is-collapsed .category-chip-meta {
    display: none;
}

#operationsView #categoryRail.is-collapsed .category-rail-footer {
    width: 100%;
    padding: 10px 0 0;
    text-align: center;
}

#operationsView #categoryRail.is-collapsed .category-rail-footer-meta {
    font-size: 0;
    gap: 0;
}

#operationsView #categoryRail.is-collapsed .category-rail-footer-meta::before {
    font-size: 0.72rem;
}

#operationsView #categoryRail .category-rail-footer {
    margin-top: auto;
    padding: 14px 2px 0;
    border-top: 1px solid rgba(26, 72, 146, 0.08);
}

#operationsView #categoryRail .category-rail-footer-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #8b99b7;
    font-size: 0.72rem;
    line-height: 1.3;
}

#operationsView #categoryRail .category-rail-footer-meta::before {
    content: "◔";
    font-size: 0.72rem;
    color: #9aabc9;
}

#operationsView #categoryRail .category-rail-footer-meta::before {
    content: "\25D4";
}

#operationsView .queue-list-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    min-height: 100%;
    padding: 14px 0 8px 18px;
    gap: 0;
    border: 0 !important;
    border-left: 1px solid rgba(26, 72, 146, 0.08) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

#operationsView .queue-meta {
    padding: 2px 14px 12px 0;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(26, 72, 146, 0.08);
}

#operationsView .queue-meta-copy {
    gap: 0;
}

#operationsView .queue-meta-kicker--headline {
    color: #7888a8 !important;
    font-size: 0.72rem !important;
    font-weight: 700;
    letter-spacing: 0.16em !important;
    text-transform: uppercase;
    white-space: nowrap;
}

#operationsView .queue-list {
    min-height: 0;
    gap: 0;
    max-height: calc(100vh - 430px);
    padding-right: 10px;
}

#operationsView .queue-list-footer {
    margin-top: auto;
    padding: 14px 12px 2px 0;
    border-top: 1px solid rgba(26, 72, 146, 0.08);
}

#operationsView .queue-view-all-btn {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: #2f6fe0;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

#operationsView .queue-view-all-btn-arrow {
    font-size: 1.05rem;
    line-height: 1;
}

#operationsView .category-chip {
    min-height: 44px;
    padding: 11px 10px 11px 14px;
    border: 1px solid transparent !important;
    border-radius: 14px;
    background: transparent !important;
    box-shadow: none !important;
}

#operationsView .category-chip::before {
    inset: 10px auto 10px 0;
    width: 3px;
    border-radius: 999px;
}

#operationsView .category-chip.is-active {
    transform: none;
    border-color: rgba(27, 117, 191, 0.14) !important;
    background: linear-gradient(180deg, rgba(239, 247, 255, 0.98), rgba(233, 242, 255, 0.92)) !important;
    box-shadow: none !important;
}

#operationsView .category-chip strong {
    font-size: 0.84rem;
    line-height: 1.15;
}

#operationsView .category-chip-count {
    min-width: 29px;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: #f4f7fb;
    border: 1px solid rgba(27, 117, 191, 0.08);
    color: #61759d;
    font-size: 0.7rem;
}

#operationsView .category-chip-support,
#operationsView .category-chip-meta {
    display: none !important;
}

#operationsView #categoryRail .category-chip-icon {
    width: 18px;
    height: 18px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

#operationsView #categoryRail .category-chip-icon svg {
    width: 15px;
    height: 15px;
}

#operationsView .order-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    padding: 11px 10px 11px 0;
    border: 0 !important;
    border-bottom: 1px solid rgba(26, 72, 146, 0.08) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

#operationsView .order-card:last-child {
    border-bottom: 0 !important;
}

#operationsView .order-card:hover,
#operationsView .order-card.is-active {
    transform: none;
    background: rgba(244, 248, 255, 0.8) !important;
    box-shadow: none !important;
    border-color: rgba(26, 72, 146, 0.08) !important;
}

#operationsView .order-code {
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

#operationsView .status-badge {
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(255, 190, 156, 0.24);
    border: 1px solid rgba(235, 194, 167, 0.34);
    color: #d08253;
    font-size: 0.64rem;
    font-weight: 700;
    box-shadow: none;
}

#operationsView .order-time {
    min-width: 38px;
    text-align: right;
    color: #8a98b7;
    font-size: 0.72rem;
    font-weight: 500;
}

@media (max-width: 900px) {
    #operationsView #operationsLayout.is-queue-strip-collapsed,
    #operationsView #queueWorkbench,
    #operationsView #queueWorkbench.is-category-rail-expanded,
    #operationsView #queueWorkbench.is-category-rail-collapsed {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 12px;
    }

    #operationsView #categoryRail.is-collapsed .category-chip {
        width: 50px;
        min-height: 50px;
    }
}

@media (max-width: 1100px) {
    #operationsView .workspace {
        order: 2;
    }

    #operationsView #queueStrip {
        order: 1;
    }

    #operationsView #queueWorkbench,
    #operationsView #queueWorkbench.is-category-rail-expanded,
    #operationsView #queueWorkbench.is-category-rail-collapsed {
        grid-template-columns: 1fr;
    }

    #operationsView #categoryRail {
        padding: 14px 14px 12px;
    }

    #operationsView #categoryRail .category-tabs {
        display: grid;
        grid-template-columns: 1fr;
        grid-auto-flow: row;
        overflow: visible;
    }

    #operationsView .category-chip {
        width: 100%;
    }

    #operationsView .queue-list-panel {
        padding: 14px 0 8px;
        border-left: 0 !important;
        border-top: 1px solid rgba(26, 72, 146, 0.08) !important;
    }
}

@media (max-width: 900px) {
    .minimal-shell {
        display: block;
    }

    .minimal-shell > .view-switch.main-switch {
        position: fixed;
        top: 12px;
        left: 12px;
        width: 72px;
        height: calc(100vh - 24px);
        max-height: calc(100vh - 24px);
        min-height: calc(100vh - 24px);
        padding: 14px 6px 14px;
        gap: 6px;
        border-radius: 34px;
        overflow: hidden;
    }

    .minimal-shell > .auth-shell,
    .minimal-shell > #appShell,
    body.sidebar-expanded .minimal-shell > .auth-shell,
    body.sidebar-expanded .minimal-shell > #appShell {
        margin-left: 80px;
        width: calc(100% - 80px);
    }

    body.sidebar-expanded .minimal-shell > .view-switch.main-switch {
        width: 72px;
        padding: 14px 6px 14px;
        gap: 6px;
    }

    .view-switch-body {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* Login-inspired application theme */
:root {
    --bg: #f4f7ff;
    --surface: rgba(255, 255, 255, 0.96);
    --ink: #102a61;
    --muted: #5c7198;
    --line: rgba(26, 72, 146, 0.14);
    --shadow: 0 24px 52px rgba(16, 42, 97, 0.1);
    --accent: #1596be;
    --accent-soft: rgba(21, 150, 190, 0.14);
    --theme-plum: #1596be;
    --theme-plum-strong: #0f2f6c;
    --theme-plum-soft: rgba(21, 150, 190, 0.12);
    --theme-plum-cloud: rgba(224, 241, 255, 0.92);
    --app-shell-glow: rgba(30, 93, 177, 0.08);
}

body {
    color: var(--ink);
    background:
        radial-gradient(circle at 10% 14%, rgba(21, 150, 190, 0.12), transparent 22%),
        radial-gradient(circle at 86% 10%, rgba(30, 93, 177, 0.12), transparent 24%),
        radial-gradient(circle at 50% 100%, rgba(15, 47, 108, 0.08), transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
    background-color: var(--bg);
}

#appShell {
    gap: 20px;
}

.minimal-shell > #appShell {
    padding: 10px 12px 16px;
}

#appShell > * {
    animation: slide-up 440ms ease both;
}

#appShell :is(
    .card,
    .queue-strip,
    .queue-list-panel,
    .detail-panel,
    .home-cargo-card,
    .cargo-hero-card,
    .supply-hero-card,
    .design-hero-card,
    .admin-hero-card,
    .admin-create-card,
    .admin-users-card,
    .user-settings-shell,
    .supply-product-card,
    .supply-history-card,
    .admin-user-card,
    .summary-card,
    .scan-card,
    .notice-card,
    .order-note-card,
    .history-card,
    .category-control,
    .info-disclosure,
    .cargo-company-panel,
    .cargo-orders-shell,
    .cargo-results-panel,
    .home-cargo-panel,
    .supply-panel,
    .admin-metric-card,
    .admin-chart-card,
    .admin-role-legend-item
) {
    border: 1px solid rgba(19, 54, 122, 0.1) !important;
    background:
        radial-gradient(circle at 100% 0, rgba(21, 150, 190, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.94)) !important;
    box-shadow: 0 18px 40px rgba(16, 42, 97, 0.08) !important;
}

#appShell :is(
    .scanner-hero,
    .queue-strip,
    .detail-hero-card,
    .cargo-hero-card,
    .supply-hero-card,
    .design-hero-card,
    .admin-hero-card,
    .home-cargo-card,
    .user-settings-shell
) {
    background:
        radial-gradient(circle at 100% 0, rgba(21, 150, 190, 0.12), transparent 28%),
        radial-gradient(circle at 0 0, rgba(160, 208, 255, 0.12), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(243, 248, 255, 0.95)) !important;
}

.section-head h2,
.section-head h3,
.home-hero-copy h1,
.home-cargo-head-copy h2,
.scanner-hero-copy h1,
.queue-strip-title h2,
.detail-title-block h2,
.cargo-head h2,
.supply-head h2,
.design-head h2,
.admin-hero-card .section-head h2,
.admin-users-head h2,
.admin-form-head h2,
.user-settings-header-text h2,
.api-config-head h2,
.supply-alert-head h2,
.cargo-reprint-copy h2,
.cargo-design-title-group h2 {
    color: #102a61 !important;
    font-family: "Sora", "Inter", sans-serif;
}

.eyebrow,
.field-label,
.auth-field label,
.scanner-hero-copy-text,
.auth-copy,
.queue-strip-subtitle,
.supply-copy,
.detail-subcopy,
.cargo-copy,
.design-copy,
.home-hero-copy p,
.home-cargo-head-copy p,
.admin-meta-note,
.user-settings-header-text p,
.api-config-summary,
.supply-alert-summary,
.cargo-reprint-summary {
    color: #5c7198 !important;
}

.view-switch.main-switch {
    background:
        radial-gradient(circle at 14% 12%, rgba(90, 160, 255, 0.28), transparent 24%),
        radial-gradient(circle at 100% 100%, rgba(21, 150, 190, 0.2), transparent 30%),
        linear-gradient(180deg, #0b2257 0%, #12336f 56%, #1b4f95 100%);
    border: 1px solid rgba(188, 218, 255, 0.16);
    box-shadow: 0 24px 42px rgba(10, 33, 86, 0.24);
}

.view-switch.main-switch::before {
    background:
        radial-gradient(circle at 20% 70%, rgba(166, 217, 255, 0.26) 0 2px, transparent 3px),
        radial-gradient(circle at 35% 82%, rgba(166, 217, 255, 0.18) 0 2px, transparent 3px),
        radial-gradient(circle at 48% 62%, rgba(21, 150, 190, 0.22) 0 2px, transparent 3px),
        linear-gradient(180deg, rgba(21, 150, 190, 0), rgba(21, 150, 190, 0.08));
}

.view-switch.main-switch::after {
    background: linear-gradient(180deg, rgba(21, 150, 190, 0.04), rgba(80, 149, 228, 0.16));
}

.sidebar-session-pill {
    background: linear-gradient(180deg, rgba(235, 244, 255, 0.95), rgba(216, 232, 255, 0.88));
    border: 1px solid rgba(136, 175, 226, 0.24);
    box-shadow: 0 10px 20px rgba(8, 27, 73, 0.12);
    color: #102a61;
}

.sidebar-session-pill strong,
.sidebar-session-pill span {
    color: inherit;
}

.view-tab {
    border: 1px solid rgba(217, 235, 255, 0.1);
    background: rgba(255, 255, 255, 0.045);
    color: rgba(244, 248, 255, 0.86);
}

.view-tab:hover {
    background: rgba(214, 234, 255, 0.12);
    border-color: rgba(214, 234, 255, 0.18);
}

.view-tab.is-active {
    background: linear-gradient(135deg, #0c265f, #153a7d 58%, #1b69b3 100%) !important;
    border-color: rgba(185, 219, 255, 0.28);
    box-shadow: 0 18px 30px rgba(7, 23, 59, 0.22), 0 0 0 1px rgba(214, 234, 255, 0.08) inset;
}

.view-tab.is-active::before {
    background: linear-gradient(180deg, #27c2df 0%, #6ea5ff 100%) !important;
}

.view-tab-icon {
    background: linear-gradient(180deg, rgba(221, 238, 255, 0.12), rgba(221, 238, 255, 0.04));
    border: 1px solid rgba(221, 238, 255, 0.1);
}

.view-tab.is-active .view-tab-icon {
    background: linear-gradient(180deg, rgba(225, 241, 255, 0.2), rgba(225, 241, 255, 0.08));
    border-color: rgba(225, 241, 255, 0.2);
}

.view-tab-icon::before,
.view-tab[data-view-tab="admin"] .view-tab-icon::before,
.view-tab[data-view-tab="founder"] .view-tab-icon::before,
.view-tab[data-view-tab="design"] .view-tab-icon::before,
.view-tab[data-view-tab="connections"] .view-tab-icon::before {
    background: rgba(246, 250, 255, 0.96);
}

.ghost-btn,
.secondary-btn,
.manual-btn,
.search-row input,
.scan-row input,
.auth-field input,
.scanner-row input,
.supply-search-row input,
.order-note-form input,
.admin-field input,
.admin-field select,
.admin-field textarea,
.supply-note-input,
#noteInput,
.home-cargo-period select,
.cargo-pagination-select,
.cargo-pagination-btn,
.team-pin-field input,
.user-settings-input-shell,
.user-settings-toggle-row,
.user-permission-chip,
.cargo-order-hover-copy-btn,
.cargo-company-order-btn {
    border-color: rgba(102, 130, 174, 0.22) !important;
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(242, 247, 255, 0.94)) !important;
    color: #102a61 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.search-row input:focus,
.scan-row input:focus,
.auth-field input:focus,
.scanner-row input:focus,
.supply-search-row input:focus,
.order-note-form input:focus,
.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus,
.supply-note-input:focus,
#noteInput:focus,
.home-cargo-period select:focus,
.team-pin-field input:focus {
    border-color: rgba(27, 117, 191, 0.42) !important;
    box-shadow: 0 0 0 5px rgba(33, 120, 199, 0.12) !important;
    outline: none;
}

.primary-btn,
.search-row button,
.scanner-row-actions .primary-btn,
.scan-row-actions .primary-btn,
.auth-submit,
.supply-search-row .primary-btn,
.admin-form-actions .primary-btn,
.cargo-selection-bar .primary-btn,
.cargo-order-hover-action--primary,
.cargo-design-actions .primary-btn {
    background: linear-gradient(135deg, #0a2156, #12367a 55%, #1e5db1) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 18px 34px rgba(10, 33, 86, 0.18);
}

.primary-btn:hover,
.search-row button:hover,
.scanner-row-actions .primary-btn:hover,
.scan-row-actions .primary-btn:hover,
.auth-submit:hover,
.supply-search-row .primary-btn:hover,
.admin-form-actions .primary-btn:hover,
.cargo-selection-bar .primary-btn:hover,
.cargo-order-hover-action--primary:hover,
.cargo-design-actions .primary-btn:hover {
    background: linear-gradient(135deg, #081b49, #102f6c 55%, #184e96) !important;
}

.secondary-btn,
.ghost-btn,
.cargo-order-hover-action--ghost,
.supply-alert-close,
.api-config-close,
.cargo-design-close,
.cargo-reprint-actions .secondary-btn,
.team-pin-actions .secondary-btn {
    color: #153467 !important;
}

.ghost-btn {
    background: rgba(229, 242, 255, 0.88) !important;
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.92) !important;
}

#operationsView .queue-strip-icon-btn,
#operationsView .queue-strip-toggle-btn,
#operationsView .category-rail-toggle,
.queue-strip .ghost-btn,
.scanner-hero-actions .ghost-btn,
.scanner-hero-actions .session-pill,
.hero-status-action,
.queue-count-chip,
.supply-status-pill,
.design-status-pill,
.admin-api-status-chip.is-ready,
.user-settings-mode-badge {
    background: linear-gradient(180deg, rgba(240, 247, 255, 0.98), rgba(221, 236, 255, 0.92)) !important;
    border: 1px solid rgba(107, 154, 227, 0.24) !important;
    color: #124f92 !important;
    box-shadow:
        0 16px 30px rgba(16, 42, 97, 0.11),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

.home-cargo-metric,
.home-cargo-panel,
.supply-panel,
.admin-role-legend-item,
.supply-note-form,
.supply-note-previous,
.cargo-order-hover-card,
.cargo-order-item,
.cargo-company-card,
.cargo-selection-bar,
.order-card,
.category-chip,
.user-settings-section {
    border-color: rgba(26, 72, 146, 0.1) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.95)) !important;
    box-shadow: 0 12px 28px rgba(16, 42, 97, 0.06) !important;
}

.home-cargo-metric-icon,
.home-cargo-activity-icon,
.admin-metric-visual-main,
.admin-metric-mini,
.user-settings-avatar {
    background: linear-gradient(180deg, rgba(225, 241, 255, 0.98), rgba(210, 232, 255, 0.92)) !important;
    border: 1px solid rgba(129, 169, 224, 0.2) !important;
    color: #1596be !important;
}

.home-cargo-chart-shell {
    border-color: rgba(26, 72, 146, 0.08);
    background:
        linear-gradient(180deg, rgba(21, 150, 190, 0.05), rgba(255, 255, 255, 0.8)),
        linear-gradient(90deg, rgba(16, 42, 97, 0.04) 0, rgba(16, 42, 97, 0.04) 1px, transparent 1px, transparent 100%);
}

.home-cargo-chart-shell .u-axis,
.home-cargo-period span,
.home-cargo-metric span,
.home-cargo-status-percent,
.home-cargo-activity-time,
.supply-product-eyebrow,
.supply-product-chip-label,
.supply-card-status,
.cargo-order-hover-top-label,
.cargo-order-hover-row-label,
.cargo-order-number-trigger,
.category-chip-support,
.category-chip-meta,
.order-card-overline,
.order-card-index {
    color: #6b7ea1 !important;
}

.home-cargo-status-dot,
.cargo-order-hover-status-dot {
    box-shadow: 0 0 0 4px rgba(21, 150, 190, 0.12);
}

#operationsView .category-tabs,
#operationsView .queue-list-panel,
#operationsView #detailPanel.is-empty,
.detail-panel {
    background:
        radial-gradient(circle at 100% 0, rgba(21, 150, 190, 0.08), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(244, 248, 255, 0.95)) !important;
}

.category-chip {
    box-shadow: 0 14px 24px rgba(16, 42, 97, 0.05);
}

.category-chip strong,
.order-code,
.order-card-title strong,
.cargo-company-card-title,
.cargo-order-hover-top-value,
.cargo-order-hover-row strong,
.home-cargo-status-label,
.home-cargo-metric strong,
.admin-role-legend-copy strong,
.user-permission-chip-copy,
.supply-product-copy h3,
.supply-history-copy h3 {
    color: #102a61 !important;
}

.category-chip.is-active,
.order-card:hover,
.order-card.is-active,
.cargo-company-card.is-active,
.cargo-order-item.is-selected {
    border-color: rgba(27, 117, 191, 0.32) !important;
    background:
        linear-gradient(180deg, rgba(239, 247, 255, 0.98), rgba(225, 240, 255, 0.94)) !important;
    box-shadow: 0 16px 28px rgba(16, 42, 97, 0.1) !important;
}

.category-chip.category-new,
.category-chip.category-ready,
.category-chip.category-shipped,
.category-chip.category-history,
.category-chip.category-rpt,
.category-chip.category-patlak,
.category-chip.category-cancelled {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 247, 255, 0.96)) !important;
}

.detail-panel {
    --pack-peach: #19b7d8;
    --pack-sun: #9fdff3;
    --pack-mint: #1d71c6;
    --pack-sky: #dcecff;
    --pack-grape: #0d2760;
    --pack-card-border: rgba(27, 117, 191, 0.14);
    --pack-card-shadow: 0 18px 40px rgba(16, 42, 97, 0.1);
    background:
        radial-gradient(circle at top left, rgba(159, 223, 243, 0.2), transparent 26%),
        radial-gradient(circle at 85% 14%, rgba(220, 236, 255, 0.34), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(243, 248, 255, 0.96)) !important;
}

.detail-hero-card {
    border: 1px solid rgba(27, 117, 191, 0.14);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 255, 0.9) 46%, rgba(226, 240, 255, 0.94)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0)) !important;
}

.detail-hero-card::before {
    background: radial-gradient(circle, rgba(159, 223, 243, 0.42), rgba(159, 223, 243, 0) 70%);
}

.detail-hero-card::after {
    background: radial-gradient(circle, rgba(110, 165, 255, 0.32), rgba(110, 165, 255, 0) 70%);
}

.cargo-head-actions .secondary-btn,
.cargo-selection-bar .secondary-btn,
.cargo-pagination-btn.is-active,
.cargo-company-order-btn:hover:not(:disabled),
.cargo-order-number-trigger:hover,
.cargo-order-number-trigger:focus-visible,
.cargo-order-number-trigger.is-active,
.cargo-order-hover-copy-btn:hover,
.cargo-order-hover-thumb-more,
.cargo-order-hover-action--ghost {
    background: rgba(231, 243, 255, 0.96) !important;
    border-color: rgba(27, 117, 191, 0.18) !important;
    color: #12367a !important;
}

.cargo-order-item,
.cargo-orders-shell,
.cargo-order-hover-card,
.cargo-selection-bar,
.cargo-reprint-dialog {
    border-color: rgba(19, 54, 122, 0.1) !important;
}

.cargo-selection-bar {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.96)) !important;
    box-shadow: 0 20px 42px rgba(10, 33, 86, 0.16) !important;
}

.cargo-selection-bar .cargo-bar-icon-button--receipt {
    color: #154f94;
    background: rgba(231, 243, 255, 0.98);
    border-color: rgba(27, 117, 191, 0.18);
}

.cargo-selection-bar .cargo-bar-icon-button--barcode {
    color: #0f2f6c;
}

.supply-product-card.is-saved,
.supply-note-form,
.supply-note-previous,
.supply-alert-card-note,
.admin-api-status-chip.is-ready {
    background:
        linear-gradient(180deg, rgba(239, 247, 255, 0.98), rgba(232, 243, 255, 0.94)) !important;
    border-color: rgba(27, 117, 191, 0.16) !important;
}

.supply-action-btn.is-saved,
.supply-chip,
.supply-color-chip,
.supply-list-count,
.supply-note-meta-pill {
    background: rgba(236, 245, 255, 0.88) !important;
    border-color: rgba(26, 72, 146, 0.12) !important;
    color: #12367a !important;
}

.supply-action-btn.is-danger,
.admin-api-status-chip.is-missing,
.supply-alert-dock-dismiss {
    color: #8a3636 !important;
}

.admin-metric-card.success,
.admin-user-card,
.admin-chart-card,
.admin-role-chart-card,
.admin-create-card,
.admin-users-card {
    background:
        radial-gradient(circle at 100% 0, rgba(21, 150, 190, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(245, 249, 255, 0.94)) !important;
    border-color: rgba(19, 54, 122, 0.1) !important;
}

.admin-bar-track,
.user-settings-switch-track {
    background: rgba(16, 42, 97, 0.1);
}

.admin-bar-fill.tone-success,
.admin-bar-fill.tone-warehouse,
.admin-bar-fill.tone-whatsapp {
    background: linear-gradient(90deg, #1596be, #54c7e4);
}

.admin-bar-fill.tone-admin {
    background: linear-gradient(90deg, #0f2f6c, #305ea7);
}

.admin-bar-fill.tone-operator,
.admin-bar-fill.tone-katma {
    background: linear-gradient(90deg, #3e7be0, #7aa7ff);
}

.admin-bar-fill.tone-passive {
    background: linear-gradient(90deg, #8ea3c5, #c2d1e8);
}

.user-settings-shell,
.user-settings-section {
    border-color: rgba(19, 54, 122, 0.1) !important;
}

.user-settings-section-head,
.user-settings-section-head h3,
.user-settings-section-icon,
.user-settings-inline-action,
.user-permission-chip.is-checked .user-permission-chip-icon {
    color: #0f2f6c !important;
}

.user-settings-inline-action,
.user-permission-chip.is-checked,
.user-permission-chip input:checked ~ .user-permission-chip-check,
.user-settings-switch input:checked + .user-settings-switch-track {
    background: linear-gradient(180deg, rgba(225, 241, 255, 0.98), rgba(209, 231, 255, 0.92)) !important;
    border-color: rgba(27, 117, 191, 0.18) !important;
}

.user-permission-chip input:checked ~ .user-permission-chip-check::after {
    background: #1b69b3;
}

.supply-alert-dialog,
.api-config-dialog,
.cargo-reprint-dialog,
.cargo-design-dialog {
    background:
        radial-gradient(circle at 100% 0, rgba(21, 150, 190, 0.1), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(243, 248, 255, 0.95)) !important;
    border: 1px solid rgba(19, 54, 122, 0.1) !important;
    box-shadow: 0 28px 70px rgba(10, 33, 86, 0.2) !important;
}

.supply-alert-dialog::before {
    background: linear-gradient(180deg, rgba(223, 241, 255, 0.72), rgba(223, 241, 255, 0));
}

.supply-alert-icon {
    background:
        radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.94), transparent 42%),
        linear-gradient(145deg, rgba(154, 214, 255, 0.96), rgba(21, 150, 190, 0.88));
}

.supply-alert-icon::before,
.supply-alert-icon::after,
.supply-alert-eyebrow {
    color: #0f2f6c;
}

.supply-alert-summary,
.supply-alert-card,
.supply-alert-dock-button,
.cargo-reprint-actions .secondary-btn,
.team-pin-modal .api-config-dialog,
.cargo-design-toolbox,
.cargo-design-canvas-shell,
.cargo-design-inspector {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.94)) !important;
    border-color: rgba(19, 54, 122, 0.1) !important;
}

.supply-alert-dock-button::before {
    background: linear-gradient(180deg, rgba(39, 194, 223, 0.96), rgba(30, 93, 177, 0.92));
}

.cargo-design-pill,
.cargo-design-zoom-btn,
.cargo-design-zoom-value,
.cargo-design-badge,
.cargo-design-tool,
.cargo-design-size-card,
.cargo-design-field input,
.cargo-design-field select,
.cargo-design-field textarea {
    border-color: rgba(102, 130, 174, 0.2) !important;
    background:
        linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(242, 247, 255, 0.94)) !important;
    color: #102a61 !important;
}

.cargo-design-tool.is-active,
.cargo-design-size-card.is-active {
    border-color: rgba(27, 117, 191, 0.26) !important;
    background:
        linear-gradient(180deg, rgba(236, 245, 255, 0.98), rgba(224, 239, 255, 0.94)) !important;
    box-shadow: 0 14px 26px rgba(10, 33, 86, 0.08) !important;
}

.cargo-design-stage {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(246, 250, 255, 0.97)),
        linear-gradient(90deg, rgba(21, 150, 190, 0.06), rgba(21, 150, 190, 0));
    border-color: rgba(27, 117, 191, 0.18);
}

.cargo-design-stage::before {
    background-image:
        linear-gradient(rgba(27, 117, 191, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(27, 117, 191, 0.08) 1px, transparent 1px);
}
