:root {
    --gold: #ffb612;
    --gold-bright: #ffc72c;
    --gold-soft: #fff0b8;
    --gold-wash: #fff9e8;
    --gold-deep: #8a5900;
    --ink: #101820;
    --ink-soft: #343a40;
    --muted: #686052;
    --surface: #ffffff;
    --border: #ead79d;
    --shadow: 0 10px 30px rgb(122 80 0 / 9%);
    color: var(--ink);
    background: #fffaf0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html.dialog-open,
html.dialog-open body {
    overflow: hidden;
    overscroll-behavior: none;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 8% 5%, rgb(255 199 44 / 20%), transparent 25rem),
        radial-gradient(circle at 92% 28%, rgb(255 182 18 / 13%), transparent 28rem),
        linear-gradient(180deg, #fffdf7 0%, #fff8e8 100%);
}

a {
    color: var(--gold-deep);
    font-weight: 600;
    text-decoration: none;
    text-underline-offset: 3px;
}

a:hover {
    text-decoration: underline;
}

:focus-visible {
    outline: 3px solid var(--gold-bright);
    outline-offset: 3px;
}

.topbar {
    position: relative;
    z-index: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 0 max(24px, calc((100% - 1240px) / 2 + 24px));
    overflow: visible;
    color: var(--ink);
    background: linear-gradient(115deg, var(--gold-bright) 0%, var(--gold) 58%, #ffd65a 100%);
    border-bottom: 3px solid var(--ink);
    box-shadow: 0 8px 22px rgb(83 55 0 / 18%);
}

.topbar::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(120deg, transparent 20%, rgb(255 255 255 / 38%) 42%, transparent 62%);
    content: "";
    pointer-events: none;
}

.topbar a {
    color: var(--ink);
}

.brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    padding: 4px 8px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgb(16 24 32 / 18%);
    border-radius: 10px;
    box-shadow: 0 3px 9px rgb(80 51 0 / 14%);
}

.brand:hover {
    text-decoration: none;
}

.brand img {
    display: block;
    width: auto;
    max-width: 180px;
    height: 42px;
    object-fit: contain;
}

.topbar nav {
    display: flex;
    align-items: center;
    gap: 6px;
    transform: translateY(4px);
}

.topbar nav a {
    padding: 9px 11px;
    border-radius: 8px;
    font-weight: 750;
}

.topbar nav a:hover {
    background: rgb(255 255 255 / 56%);
    text-decoration: none;
}

.topbar .public-nav {
    margin-left: auto;
    transform: none;
}

.topbar .public-nav-cta {
    background: rgb(255 255 255 / 88%);
    border: 1px solid rgb(16 24 32 / 24%);
    box-shadow: 0 3px 9px rgb(80 51 0 / 13%);
}

.topbar .public-nav-cta:hover {
    background: #fff;
}

.account {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.account-menu {
    position: relative;
}

.account-menu>summary {
    list-style: none;
    cursor: pointer;
}

.account-menu>summary::-webkit-details-marker {
    display: none;
}

.topbar .account-avatar {
    display: grid;
    width: 46px;
    height: 46px;
    color: var(--ink);
    background: rgb(255 255 255 / 88%);
    border: 2px solid rgb(16 24 32 / 32%);
    border-radius: 50%;
    box-shadow: 0 3px 9px rgb(80 51 0 / 16%);
    place-items: center;
    transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.topbar .account-avatar:hover {
    color: var(--ink);
    background: #fff;
    border-color: var(--ink);
    box-shadow: 0 5px 14px rgb(80 51 0 / 24%);
    text-decoration: none;
    transform: translateY(-1px);
}

.account-avatar svg {
    width: 27px;
    height: 27px;
    fill: currentcolor;
}

.account-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 20;
    width: 220px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 16px 38px rgb(16 24 32 / 22%);
}

.account-dropdown::before {
    position: absolute;
    top: -7px;
    right: 16px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
    content: "";
    transform: rotate(45deg);
}

.account-dropdown a,
.account-dropdown button {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    padding: 10px 12px;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-radius: 8px;
    box-shadow: none;
    font: inherit;
    font-weight: 700;
    white-space: nowrap;
    text-align: left;
}

.account-dropdown a:hover,
.account-dropdown button:hover {
    color: var(--ink);
    background: var(--gold-soft);
    box-shadow: none;
    text-decoration: none;
    transform: none;
}

.account-dropdown form {
    margin: 0;
}

.container {
    width: 100%;
    flex: 1 0 auto;
    max-width: 1240px;
    margin: 36px auto;
    padding: 0 24px;
}

.site-footer {
    flex: 0 0 auto;
    color: var(--muted);
    background: rgb(255 255 255 / 72%);
    border-top: 1px solid var(--border);
}

.site-footer-inner {
    display: flex;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 22px 24px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-footer nav {
    display: flex;
    gap: clamp(8px, 1.5vw, 18px);
    flex-wrap: nowrap;
    font-size: 14px;
    white-space: nowrap;
}

.policy-page,
.company-page,
.contact-page {
    width: 100%;
    max-width: none;
    margin: 0;
}

.public-eyebrow {
    display: block;
    margin-bottom: 12px;
    color: var(--gold-deep);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.company-hero {
    padding: 52px;
    background:
        radial-gradient(circle at 92% 0%, rgb(255 199 44 / 34%), transparent 22rem),
        linear-gradient(145deg, #fff 0%, #fff8dd 100%);
    border: 1px solid var(--border);
    border-left: 7px solid var(--gold);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.company-hero h1 {
    max-width: none;
    font-size: clamp(38px, 5.8vw, 64px);
    line-height: 1.02;
    letter-spacing: -.055em;
}

.company-hero-introduction {
    max-width: 850px;
    margin: 22px 0 0;
    color: var(--ink-soft);
    font-size: 20px;
    line-height: 1.65;
}

.company-hero-introduction a {
    font-weight: 750;
    overflow-wrap: anywhere;
}

.company-build-meta {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.company-build-meta strong {
    color: var(--ink-soft);
}

.company-hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.company-section {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 46px;
    margin: 34px 0;
    padding: 34px 38px;
    align-items: center;
    background: rgb(255 255 255 / 78%);
    border: 1px solid var(--border);
    border-left: 7px solid var(--gold);
    border-radius: 16px;
}

.company-section h2,
.company-support-card h2 {
    margin: 0;
    font-size: clamp(27px, 4vw, 38px);
    letter-spacing: -.035em;
}

.company-section p,
.company-support-card p,
.company-capability-grid p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.company-capability-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.company-capability-grid article {
    padding: 28px;
    background: linear-gradient(145deg, #fff 0%, #fffaf0 100%);
    border: 1px solid var(--border);
    border-left: 7px solid var(--gold);
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.company-capability-grid h2 {
    margin: 18px 0 10px;
    font-size: 23px;
    letter-spacing: -.025em;
}

.company-capability-number {
    color: var(--gold-deep);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .12em;
}

.company-support-card {
    display: flex;
    gap: 30px;
    margin-top: 34px;
    padding: 34px 38px;
    align-items: center;
    justify-content: space-between;
    background: var(--gold-soft);
    border: 1px solid #d7b64f;
    border-left: 7px solid var(--gold);
    border-radius: 16px;
}

.company-support-card p {
    max-width: 720px;
    margin-top: 12px;
}

.company-support-card>.button {
    flex: 0 0 auto;
}

.contact-header {
    padding: 42px 46px;
    background: linear-gradient(145deg, #fff 0%, #fff6d5 100%);
    border: 1px solid var(--border);
    border-top: 7px solid var(--gold);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.contact-header h1 {
    font-size: clamp(38px, 6vw, 58px);
}

.contact-header p {
    max-width: none;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}

.contact-header p a {
    font-weight: 750;
    overflow-wrap: anywhere;
}

.contact-layout {
    margin-top: 26px;
}

.contact-form-card,
.contact-success {
    padding: 34px;
    background: rgb(255 255 255 / 88%);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.contact-form-heading {
    margin-bottom: 24px;
}

.contact-form-heading h2 {
    margin: 0;
    font-size: 27px;
    letter-spacing: -.025em;
}

.contact-form-heading p {
    margin: 7px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

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

.contact-field {
    display: grid;
    gap: 7px;
    margin-bottom: 18px;
}

.contact-field>label {
    font-size: 14px;
    font-weight: 800;
}

.contact-field>label>span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.contact-field input,
.contact-field textarea {
    width: 100%;
}

.contact-field textarea {
    min-height: 180px;
    resize: vertical;
}

.contact-attachment-field input[type="file"] {
    padding: 9px;
    background: var(--gold-wash);
}

.contact-attachment-field small {
    color: var(--muted);
    line-height: 1.5;
}

.contact-form-errors {
    margin-bottom: 20px;
}

.contact-form-errors .errorlist,
.contact-field .errorlist {
    margin: 0;
    padding-left: 20px;
}

.contact-submit-row {
    display: flex;
    gap: 20px;
    align-items: center;
}

.contact-submit-row button {
    min-width: 150px;
    flex: 0 0 auto;
}

.contact-submit-row p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.contact-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.contact-success {
    margin-top: 26px;
    border-left: 7px solid #26855a;
}

.contact-success strong {
    display: block;
    color: #176441;
    font-size: 24px;
}

.contact-success p {
    margin: 9px 0 20px;
    color: var(--muted);
    line-height: 1.6;
}

.policy-page {
    padding: 0 0 28px;
}

.policy-header {
    margin-bottom: 28px;
    padding: 42px 46px;
    background: linear-gradient(145deg, #fff 0%, #fff6d5 100%);
    border: 1px solid var(--border);
    border-top: 7px solid var(--gold);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.policy-header h1 {
    font-size: clamp(38px, 6vw, 58px);
}

.policy-header p {
    margin: 14px 0 0;
    color: var(--muted);
}

.policy-introduction,
.policy-page>section {
    padding: 30px 34px;
    background: rgb(255 255 255 / 76%);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.policy-introduction {
    border-top: 1px solid var(--border);
    border-radius: 14px 14px 0 0;
}

.policy-page>section:last-child {
    border-radius: 0 0 14px 14px;
}

.policy-page h2 {
    margin: 0 0 14px;
    font-size: 25px;
    letter-spacing: -.025em;
}

.policy-page p,
.policy-page li {
    color: var(--ink-soft);
    line-height: 1.72;
}

.policy-page p {
    margin: 0 0 14px;
}

.policy-page p:last-child {
    margin-bottom: 0;
}

.policy-page ul {
    display: grid;
    gap: 10px;
    margin: 14px 0;
    padding-left: 24px;
}

.policy-contents {
    display: grid;
    grid-template-columns: auto repeat(3, minmax(0, 1fr));
    gap: 10px 18px;
    margin: 20px 0;
    padding: 22px 26px;
    background: var(--gold-wash);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.policy-contents strong {
    grid-row: 1 / span 2;
    align-self: center;
}

.policy-contact {
    padding: 18px 20px;
    font-style: normal;
    line-height: 1.7;
    background: var(--gold-wash);
    border-left: 4px solid var(--gold);
    border-radius: 8px;
}

.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.page-heading h1,
h1 {
    margin: 0 0 6px;
    color: var(--ink);
    font-size: 30px;
    letter-spacing: -.03em;
}

.page-heading h1::after,
.auth-card h1::after {
    display: block;
    width: 52px;
    height: 5px;
    margin-top: 10px;
    background: linear-gradient(90deg, var(--gold), var(--gold-bright));
    border-radius: 99px;
    content: "";
}

.page-heading p {
    margin: 0;
    color: var(--muted);
}

.panel,
.box-card,
.auth-card {
    background: linear-gradient(145deg, #fff 0%, #fffefa 100%);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.panel,
.auth-card {
    padding: 24px;
}

.panel {
    margin: 22px 0;
}

.auth-card {
    max-width: 500px;
    margin: 60px auto;
    border-top: 5px solid var(--gold);
}

.signup-card {
    max-width: 680px;
}

.account-phone-field {
    display: grid;
    gap: 6px;
    margin: 1em 0;
}

.account-phone-controls {
    display: grid;
    grid-template-columns: minmax(210px, .8fr) minmax(0, 1.2fr);
    gap: 10px;
}

.account-phone-controls select,
.account-phone-controls input {
    width: 100%;
}

.account-phone-errors:empty {
    display: none;
}

.login-showcase {
    position: relative;
    height: clamp(620px, calc(100vh - 190px), 780px);
    margin: 18px 0 28px;
    isolation: isolate;
}

.login-video-pane {
    position: relative;
    height: 100%;
    min-width: 0;
}

.login-video-frame {
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    border-left: 7px solid var(--gold);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.login-operations-video {
    display: block;
    width: 100%;
    height: 100%;
    background: #fff;
    object-fit: cover;
}

.login-auth-card {
    position: absolute;
    top: 32px;
    right: clamp(24px, 4vw, 52px);
    z-index: 3;
    width: min(410px, calc(100% - 48px));
    max-width: 410px;
    margin: 0;
    background: rgb(255 255 255 / 94%);
    border-top: 1px solid var(--border);
    border-left: 7px solid var(--gold);
    box-shadow: 0 24px 60px rgb(16 24 32 / 30%);
    opacity: 0;
    backdrop-filter: blur(13px);
    pointer-events: none;
    transform: translateY(-28px);
    transition: opacity 180ms ease, transform 220ms ease;
}

.login-auth-card.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .login-auth-card {
        transition: none;
    }
}

.auth-card.center {
    text-align: center;
}

.auth-card.center h1::after {
    margin-right: auto;
    margin-left: auto;
}

.inactive-account-card {
    max-width: 620px;
}

.inactive-account-contact {
    display: grid;
    gap: 5px;
    margin-top: 18px;
    padding: 18px 20px;
    background: var(--gold-wash);
    border: 1px solid var(--border);
    border-left: 4px solid var(--gold);
    border-radius: 10px;
}

.inactive-account-contact a {
    overflow-wrap: anywhere;
}

.auth-card form p,
.form-panel form p {
    display: grid;
    gap: 6px;
}

.auth-card input,
.form-panel input,
.form-panel textarea,
.form-panel select {
    width: 100%;
}

.signup-legal-agreement {
    margin: 20px 0;
}

.signup-legal-agreement-control {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.auth-card .signup-legal-agreement-control input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 3px 0 0;
    flex: 0 0 auto;
}

.signup-legal-agreement-control label {
    line-height: 1.5;
}

.legal-agreement-card {
    max-width: 620px;
}

.legal-agreement-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

input,
select,
textarea {
    padding: 10px 12px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #cfbd87;
    border-radius: 8px;
    font: inherit;
    transition: border-color 140ms ease, box-shadow 140ms ease;
}

input:hover,
select:hover,
textarea:hover {
    border-color: var(--gold);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--gold-deep);
    outline: none;
    box-shadow: 0 0 0 4px rgb(255 182 18 / 23%);
}

button,
.button {
    display: inline-block;
    padding: 9px 14px;
    color: var(--ink);
    background: #fffdf7;
    border: 1px solid #c7a749;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgb(86 57 0 / 8%);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

button:hover,
.button:hover {
    background: var(--gold-soft);
    border-color: var(--gold-deep);
    box-shadow: 0 4px 10px rgb(122 80 0 / 12%);
    text-decoration: none;
    transform: translateY(-1px);
}

button:disabled,
button:disabled:hover {
    color: #8a867d;
    background: #efede7;
    border-color: #c9c5bb;
    box-shadow: none;
    cursor: not-allowed;
    opacity: .72;
    transform: none;
}

.primary {
    color: var(--ink);
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    border-color: #b87800;
    box-shadow: 0 4px 10px rgb(168 108 0 / 20%);
}

.primary:hover {
    background: linear-gradient(135deg, #ffd65a, var(--gold-bright));
    border-color: var(--gold-deep);
    box-shadow: 0 6px 15px rgb(168 108 0 / 26%);
}

.danger {
    color: #a52218;
    background: #fffafa;
    border-color: #f6a8a2;
}

.danger:hover {
    color: #851a12;
    background: #fff0ef;
    border-color: #d96c64;
}

.revoke-button:hover {
    color: #a52218;
    background: var(--gold-soft);
    border-color: #f6a8a2;
    transform: none;
}

.link-button {
    padding: 0;
    color: var(--gold-deep);
    background: none;
    border: 0;
    box-shadow: none;
}

.link-button:hover {
    background: none;
    box-shadow: none;
    text-decoration: underline;
    transform: none;
}

.topbar .link-button {
    color: var(--ink);
    font-weight: 750;
}

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

.metric {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 22px;
    overflow: hidden;
    color: var(--ink);
    background: linear-gradient(145deg, #fff 35%, #fff7da 100%);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.metric::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, var(--gold-bright), var(--gold));
    content: "";
}

.metric:hover {
    border-color: var(--gold);
    box-shadow: 0 14px 30px rgb(122 80 0 / 16%);
    text-decoration: none;
    transform: translateY(-3px);
}

.metric strong {
    font-size: 32px;
}

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

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

.status-row i {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 7px;
    border-radius: 50%;
}

.ok {
    background: #12b76a;
}

.pending {
    background: #f79009;
}

.printer-menu {
    position: relative;
}

.printer-menu>summary {
    list-style: none;
    cursor: pointer;
}

.printer-menu>summary::-webkit-details-marker {
    display: none;
}

.printer-status-button {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 9px 14px;
    color: var(--ink);
    background: rgb(255 255 255 / 76%);
    border: 1px solid rgb(16 24 32 / 28%);
    border-radius: 999px;
    box-shadow: 0 3px 9px rgb(80 51 0 / 14%);
    font-size: 14px;
    font-weight: 700;
}

.printer-status-button.ready {
    color: var(--ink);
    border-color: rgb(6 100 65 / 48%);
}

.printer-status-button.not-ready {
    color: var(--ink);
}

.printer-status-button:hover {
    background: #fff;
    border-color: var(--ink);
    box-shadow: 0 5px 14px rgb(80 51 0 / 20%);
    transform: translateY(-1px);
}

.status-dot {
    width: 11px;
    height: 11px;
    background: #f79009;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgb(247 144 9 / 15%);
}

.printer-status-button.ready .status-dot {
    background: #12b76a;
    box-shadow: 0 0 0 4px rgb(18 183 106 / 15%);
}

.printer-menu-chevron {
    width: 8px;
    height: 8px;
    margin: -3px 2px 0 1px;
    border-right: 2px solid currentcolor;
    border-bottom: 2px solid currentcolor;
    transform: rotate(45deg);
    transition: transform 140ms ease;
}

.printer-menu[open] .printer-menu-chevron {
    margin-top: 3px;
    transform: rotate(225deg);
}

.printer-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 20;
    width: min(470px, calc(100vw - 32px));
    max-height: min(620px, calc(100vh - 96px));
    overflow: hidden;
    color: var(--ink);
    background: #fffdf8;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 16px 38px rgb(16 24 32 / 22%);
}

.printer-dropdown::before {
    position: absolute;
    top: -7px;
    right: 24px;
    width: 12px;
    height: 12px;
    background: var(--gold-soft);
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
    content: "";
    transform: rotate(45deg);
}

.printer-list {
    display: grid;
    max-height: min(510px, calc(100vh - 170px));
    gap: 10px;
    padding: 12px;
    overflow: auto;
}

.printer-card {
    display: grid;
    gap: 6px;
    padding: 13px 15px;
    color: var(--ink-soft);
    background: #fff;
    border: 1px solid var(--border);
    border-left: 4px solid var(--gold);
    border-radius: 12px;
}

.printer-card-title {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.printer-card-title strong {
    color: var(--ink);
    font-size: 16px;
}

.printer-card code {
    overflow-wrap: anywhere;
    font-size: 13px;
}

.printer-route-list {
    color: #166534;
    font-size: 13px;
    font-weight: 700;
}

.printer-card time {
    font-size: 12px;
}

.printer-empty {
    padding: 28px 16px;
    color: var(--muted);
    text-align: center;
}

.printer-dropdown-action {
    padding: 12px;
    background: var(--gold-wash);
    border-top: 1px solid var(--border);
}

.printer-dropdown-action .button {
    display: block;
    width: 100%;
    text-align: center;
}

.connect-page {
    display: grid;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0 auto;
    gap: 24px;
}

.connect-page>*,
.connect-hero>div,
.connect-install-card,
.connect-install-heading>div,
.connect-command-panel {
    min-width: 0;
}

.connect-hero {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    align-items: center;
    gap: 30px;
    padding: 42px 46px;
    background: linear-gradient(135deg, #fff 0%, #fff4c8 100%);
    border: 1px solid var(--border);
    border-top: 7px solid var(--gold);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.connect-hero img {
    display: block;
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.connect-hero h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 60px);
}

.connect-hero p {
    max-width: 720px;
    margin: 14px 0 0;
    color: var(--ink-soft);
    font-size: 19px;
    line-height: 1.65;
}

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

.connect-explanation>div {
    position: relative;
    padding: 28px 26px 26px;
    overflow: hidden;
    background: rgb(255 255 255 / 82%);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.connect-section-number {
    display: grid;
    width: 34px;
    height: 34px;
    margin-bottom: 18px;
    color: var(--ink);
    background: var(--gold-bright);
    border-radius: 50%;
    font-weight: 900;
    place-items: center;
}

.connect-explanation h2 {
    margin: 0 0 10px;
    font-size: 19px;
}

.connect-explanation p,
.connect-install-heading p,
.connect-upcoming-card p,
.connect-help p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.connect-platform-nav {
    display: flex;
    gap: 8px;
    padding: 8px;
    overflow-x: auto;
    background: rgb(255 255 255 / 72%);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.connect-platform-nav button {
    display: flex;
    min-width: max-content;
    padding: 11px 16px;
    align-items: center;
    gap: 8px;
    color: var(--ink-soft);
    background: transparent;
    border: 0;
    border-radius: 8px;
    box-shadow: none;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

.connect-platform-nav button:hover,
.connect-platform-nav button[aria-selected="true"] {
    color: var(--ink);
    background: var(--gold-soft);
    transform: none;
}

.connect-platform-nav button[aria-selected="true"] {
    box-shadow: inset 0 -3px 0 var(--gold);
}

.connect-platform-nav button:focus-visible {
    outline: 2px solid var(--gold-deep);
    outline-offset: 2px;
}

.connect-platform-nav span {
    padding: 3px 7px;
    color: var(--muted);
    background: rgb(255 255 255 / 70%);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.connect-install-card {
    padding: 34px;
    scroll-margin-top: 24px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.connect-tab-panel[hidden] {
    display: none;
}

.connect-install-heading {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: start;
    gap: 18px;
}

.connect-platform-mark {
    display: grid;
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    color: var(--ink);
    background: linear-gradient(145deg, var(--gold-bright), var(--gold));
    border: 1px solid var(--gold-deep);
    border-radius: 14px;
    font-size: 25px;
    font-weight: 900;
    place-items: center;
}

.connect-install-heading h2,
.connect-upcoming-card h2,
.connect-help h2 {
    margin: 0 0 8px;
}

.connect-install-steps {
    display: grid;
    gap: 10px;
    margin: 28px 0;
    padding-left: 24px;
    color: var(--ink-soft);
    line-height: 1.55;
}

.connect-command-panel {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    color: #f8fafc;
    background: #101820;
    border: 1px solid #000;
    border-radius: 13px;
    box-shadow: 0 12px 24px rgb(16 24 32 / 18%);
}

.connect-command-toolbar {
    display: flex;
    min-height: 48px;
    padding: 8px 10px 8px 18px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #d4d4d8;
    background: #202a33;
    border-bottom: 1px solid #39444d;
    font-size: 13px;
    font-weight: 800;
}

.connect-command-toolbar button {
    display: grid;
    width: 42px;
    height: 38px;
    padding: 0;
    place-items: center;
    color: #f8fafc;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.connect-command-toolbar button:focus-visible {
    outline: 2px solid var(--gold-bright);
    outline-offset: 2px;
}

.connect-copy-icon {
    position: relative;
    width: 20px;
    height: 20px;
}

.connect-copy-icon::before,
.connect-copy-icon::after {
    position: absolute;
    width: 14px;
    height: 16px;
    border: 2px solid currentcolor;
    border-radius: 4px;
    box-sizing: border-box;
    content: "";
}

.connect-copy-icon::before {
    top: 0;
    right: 0;
}

.connect-copy-icon::after {
    bottom: 0;
    left: 0;
    background: #202a33;
}

.connect-command-toolbar button:hover,
.connect-command-toolbar button.copied {
    color: var(--ink);
    background: var(--gold-bright);
    border-color: var(--gold-bright);
    transform: none;
}

.connect-command-toolbar button:hover .connect-copy-icon::after,
.connect-command-toolbar button.copied .connect-copy-icon::after {
    background: var(--gold-bright);
}

.connect-command-panel pre {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    max-height: 440px;
    margin: 0;
    padding: 22px;
    overflow-x: auto;
    overflow-y: auto;
    white-space: pre;
}

.connect-command-panel code {
    color: #f8fafc;
    font: 14px/1.75 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.connect-note {
    margin-top: 24px;
    padding: 18px 20px;
    color: var(--ink-soft);
    background: var(--gold-wash);
    border: 1px solid var(--border);
    border-left: 5px solid var(--gold);
    border-radius: 10px;
    line-height: 1.65;
}

.connect-note strong {
    display: block;
    color: var(--ink);
}

.connect-note code {
    overflow-wrap: anywhere;
}

.connect-download-panel {
    display: flex;
    margin-top: 28px;
    padding: 20px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: var(--gold-wash);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.connect-download-copy {
    display: grid;
    gap: 5px;
}

.connect-download-copy strong {
    color: var(--ink);
    font-size: 17px;
}

.connect-download-copy span {
    color: var(--muted);
    line-height: 1.5;
}

.connect-download-panel .button {
    flex: 0 0 auto;
}

.connect-release-checksum {
    display: block;
    margin-top: 8px;
    font-size: 12px;
}

.connect-upcoming-card {
    display: flex;
    min-height: 170px;
    padding: 26px;
    align-items: flex-start;
    gap: 18px;
    scroll-margin-top: 24px;
    background: rgb(255 255 255 / 70%);
    border: 1px dashed #cbb66e;
    border-radius: 14px;
}

.connect-upcoming-card .connect-platform-mark {
    color: var(--muted);
    background: #f2eee3;
    border-color: #c9c1ac;
}

.connect-availability {
    display: inline-block;
    margin-bottom: 9px;
    padding: 4px 9px;
    color: var(--gold-deep);
    background: var(--gold-soft);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.connect-help {
    display: flex;
    padding: 28px 30px;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    background: rgb(255 255 255 / 78%);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.connect-help>div {
    max-width: 700px;
}

.connect-help .button {
    flex: 0 0 auto;
}

.filters,
.inline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0;
}

.filters input {
    flex: 1;
}

.table-wrap {
    padding: 0;
    overflow: auto;
}

.team-panel {
    padding: 0;
    overflow: hidden;
}

.team-stack {
    display: grid;
    gap: 22px;
}

.team-stack .panel {
    margin: 0;
}

.team-panel-title {
    margin: 0;
    padding: 18px 24px;
    background: linear-gradient(135deg, var(--gold-soft), #ffe187);
    border-bottom: 1px solid #dfbd58;
}

.invite-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
    max-width: 900px;
    padding: 24px;
}

.invite-form>p:has(#id_email),
.invite-form>.email-capacity-warning,
.invite-form-actions {
    grid-column: 1 / -1;
}

.invite-form>p:has(#id_role) {
    grid-column: 1;
}

.invite-form>p:has(#id_display_name) {
    grid-column: 2;
}

.invite-form:not(:has(#id_display_name))>p:has(#id_role) {
    grid-column: 1 / -1;
}

.invite-form-fixed-role {
    grid-column: 1;
}

.invite-form p {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    align-self: start;
    align-items: center;
    gap: 8px 14px;
    margin: 0 0 18px;
}

.invite-form label {
    font-weight: 650;
}

.invite-form input,
.invite-form select {
    width: 100%;
    min-width: 0;
}

.invite-form .helptext,
.invite-form .errorlist {
    grid-column: 2;
}

.invite-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-left: 134px;
}

.invite-form-actions button:disabled,
.invite-form-actions button:disabled:hover {
    color: #8a867d;
    background: #efede7;
    border-color: #c9c5bb;
    box-shadow: none;
    cursor: not-allowed;
    opacity: .72;
    transform: none;
}

.accounts-table {
    min-width: 920px;
}

.accounts-table .account-control-heading {
    padding-left: 29px;
}

.accounts-table tbody tr {
    height: 48px;
}

.accounts-table tbody td {
    padding-top: 5px;
    padding-bottom: 5px;
    vertical-align: middle;
}

.organization-account-row {
    cursor: pointer;
}

.organization-account-row:hover>td {
    background: var(--gold-wash);
}

.organization-account-row:focus-visible {
    position: relative;
    z-index: 1;
    outline: 3px solid var(--gold);
    outline-offset: -3px;
}

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

.account-name-cell {
    white-space: nowrap;
}

.account-name-cell.hierarchy-depth-1 {
    padding-left: 34px;
}

.account-name-cell.hierarchy-depth-2 {
    padding-left: 58px;
}

.account-hierarchy-branch {
    display: inline-block;
    margin-right: 7px;
    color: #a77716;
    font-weight: 800;
}

.pending-invitations-table tbody tr {
    height: 48px;
}

.pending-invitations-table tbody td {
    padding-top: 5px;
    padding-bottom: 5px;
    vertical-align: middle;
}

.pending-invitations-table tbody button {
    height: 36px;
    padding-top: 6px;
    padding-bottom: 6px;
}

.email-delivery-status {
    display: block;
    font-weight: 700;
}

.email-delivery-status--delivered,
.email-delivery-status--opened,
.email-delivery-status--clicked {
    color: #066441;
}

.email-delivery-status--queued,
.email-delivery-status--sent,
.email-delivery-status--delayed {
    color: #8a6100;
}

.email-delivery-status--bounced,
.email-delivery-status--failed,
.email-delivery-status--suppressed,
.email-delivery-status--complained {
    color: #a52218;
}

.account-static-value {
    display: inline-block;
    padding-left: 13px;
}

.account-status {
    font-weight: 700;
}

.account-status--active {
    color: #066441;
}

.account-status--pending {
    color: #8a6100;
    background: transparent;
}

.account-status--inactive {
    color: #a52218;
}

.membership-dialog {
    width: min(520px, calc(100% - 32px));
    padding: 0;
    color: var(--ink);
    background: #fffdf8;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgb(16 24 32 / 28%);
}

.membership-dialog::backdrop {
    background: rgb(16 24 32 / 62%);
}

.membership-dialog form {
    margin: 0;
}

.membership-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 26px;
    background: linear-gradient(90deg, var(--gold-soft), #fffdf8);
    border-bottom: 1px solid var(--border);
}

.membership-dialog-header h2,
.membership-dialog-header p {
    margin: 0;
}

.membership-dialog-header h2 {
    font-size: 25px;
}

.membership-dialog-header p {
    margin-top: 4px;
    color: var(--muted);
}

.membership-dialog-close {
    padding: 0;
    color: var(--ink-soft);
    background: transparent;
    border: 0;
    box-shadow: none;
    font-size: 34px;
    line-height: 1;
}

.membership-dialog-close:hover {
    background: transparent;
    box-shadow: none;
    transform: scale(1.08);
}

.membership-dialog-fields {
    display: grid;
    gap: 18px;
    padding: 26px;
}

.membership-dialog-field-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.membership-dialog-field-pair>label:only-child {
    grid-column: 1 / -1;
}

.membership-dialog-fields label {
    display: grid;
    gap: 7px;
    font-weight: 700;
}

.membership-dialog-fields input,
.membership-dialog-fields select {
    width: 100%;
}

.membership-dialog-invitation-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.membership-dialog-invitation-control button:disabled,
.membership-dialog-invitation-control button:disabled:hover {
    color: #8a867d;
    background: #efede7;
    border-color: #c9c5bb;
    box-shadow: none;
    cursor: not-allowed;
    opacity: .72;
    transform: none;
}

.membership-dialog-static-field,
.invite-form-static-field {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding: 10px 12px;
    color: var(--muted);
    background: #f5f1e7;
    border: 1px solid #d8ccb0;
    border-radius: 8px;
    font-weight: 500;
}

.membership-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 26px 26px;
}

.membership-dialog-delete {
    margin-right: auto;
}

.current-account-row {
    background: var(--gold-wash);
}

.current-account-row td:first-child {
    box-shadow: inset 4px 0 var(--gold);
}

.current-account-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 3px 8px;
    color: var(--ink);
    background: var(--gold-bright);
    border: 1px solid #c88b00;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    line-height: 1.2;
    text-transform: uppercase;
    vertical-align: middle;
}

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

th,
td {
    padding: 13px 16px;
    border-bottom: 1px solid #eee2bd;
    text-align: left;
    vertical-align: top;
}

tbody tr {
    transition: background 120ms ease;
}

tbody tr:hover {
    background: var(--gold-wash);
}

tbody tr:last-child td {
    border-bottom: 0;
}

th {
    color: #675734;
    background: linear-gradient(180deg, #fff9e8, #fff3c9);
    font-size: 12px;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.actions {
    display: flex;
    gap: 12px;
}

.pill {
    display: inline-block;
    padding: 4px 9px;
    color: #684300;
    background: var(--gold-soft);
    border: 1px solid #e5c45d;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 750;
}

.two-columns {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 20px;
}

.account-settings-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: start;
    gap: 22px;
}

.account-settings-sidebar,
.account-settings-content {
    margin: 0;
}

.account-settings-sidebar {
    position: sticky;
    top: 24px;
    padding: 0;
    overflow: hidden;
}

.account-settings-sidebar h1 {
    margin: 0;
    padding: 22px 24px;
    background: linear-gradient(135deg, var(--gold-soft), #ffe187);
    border-bottom: 1px solid #dfbd58;
    font-size: 22px;
}

.settings-nav {
    display: grid;
    padding: 10px;
}

.settings-nav a {
    padding: 12px 14px;
    color: var(--ink-soft);
    border-left: 4px solid transparent;
    border-radius: 8px;
    font-weight: 650;
}

.settings-nav a:hover {
    color: var(--ink);
    background: var(--gold-wash);
    text-decoration: none;
}

.settings-nav a.active {
    color: var(--ink);
    background: var(--gold-soft);
    border-left-color: var(--gold);
    font-weight: 800;
}

.account-settings-content {
    min-width: 0;
    min-height: 650px;
    padding: 0;
    overflow: hidden;
}

.settings-section {
    padding: 28px 32px 34px;
}

.settings-section-header {
    margin: -28px -32px 28px;
    padding: 24px 32px;
    background: linear-gradient(135deg, #fff9e8, #fff);
    border-bottom: 1px solid var(--border);
}

.settings-section-header h1,
.settings-section-header p {
    margin: 0;
}

.settings-section-header h1 {
    font-size: 34px;
}

.settings-section-header p {
    margin-top: 6px;
    color: var(--muted);
}

.contact-info-form {
    max-width: 860px;
    margin: 0 auto;
}

.contact-info-form>h2 {
    margin: 0 0 22px 194px;
    font-size: 20px;
}

.contact-info-fields {
    display: grid;
    gap: 14px;
}

.contact-info-row {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
}

.contact-info-row>label {
    font-weight: 700;
    text-align: right;
}

.contact-info-control input {
    width: 100%;
}

.contact-phone-controls {
    display: grid;
    grid-template-columns: minmax(210px, .8fr) minmax(0, 1.2fr);
    gap: 10px;
}

.contact-phone-controls select,
.contact-phone-controls input {
    width: 100%;
}

.contact-phone-controls .errorlist {
    grid-column: 1 / -1;
}

.contact-completion-notice {
    max-width: 860px;
    margin: 0 auto 24px;
}

.contact-info-control .errorlist {
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
}

.contact-info-checkbox-row {
    align-items: start;
    margin-top: 4px;
}

.contact-info-checkbox-row>label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-self: start;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.contact-info-checkbox-row input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--gold);
}

.contact-info-checkbox-row>.errorlist {
    grid-column: 2;
    margin: 0;
}

.contact-info-submit-row {
    margin-top: 10px;
}

.contact-info-submit-row button {
    justify-self: start;
}

.password-settings-form {
    display: grid;
    max-width: 760px;
    gap: 18px;
}

.password-account-summary {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    max-width: 760px;
    margin: 0 0 24px;
    padding-bottom: 22px;
    gap: 14px;
    border-bottom: 1px solid var(--border);
}

.password-account-summary dt {
    font-weight: 700;
    text-align: right;
}

.password-account-summary dd {
    min-width: 0;
    margin: 0;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.password-settings-row {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
}

.password-settings-row>label {
    padding-top: 11px;
    font-weight: 700;
    text-align: right;
}

.password-settings-control input {
    width: 100%;
}

.password-settings-control .helptext {
    display: block;
    margin-top: 7px;
    line-height: 1.5;
}

.password-settings-control .helptext ul {
    margin: 6px 0 0;
    padding-left: 20px;
}

.password-settings-control .errorlist {
    margin: 7px 0 0;
    padding-left: 20px;
}

.password-settings-actions,
.password-reset-option {
    margin-left: 204px;
}

.password-reset-option {
    max-width: 556px;
    color: var(--muted);
}

.warehouse-readonly-fields {
    display: grid;
    max-width: 760px;
    gap: 8px;
}

.warehouse-readonly-fields label {
    margin-top: 8px;
    font-weight: 700;
}

.warehouse-readonly-fields input,
.warehouse-readonly-fields textarea {
    width: 100%;
    color: var(--ink);
    background: #f5f2e9;
    cursor: text;
    opacity: 1;
}

.warehouse-readonly-fields textarea {
    resize: none;
}

.warehouse-settings-form {
    max-width: 760px;
}

.warehouse-settings-form p {
    display: grid;
    gap: 7px;
}

.warehouse-settings-form input,
.warehouse-settings-form textarea {
    width: 100%;
}

.settings-placeholder {
    min-height: 500px;
}

.settings-placeholder>p {
    max-width: 580px;
    color: var(--muted);
    font-size: 18px;
}

.profile-details {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 10px 20px;
}

.profile-details dt {
    color: var(--muted);
}

.profile-details dd {
    margin: 0;
    font-weight: 650;
    white-space: pre-line;
}

.page-heading-actions {
    display: flex;
    gap: 10px;
}

.client-browser {
    display: grid;
    grid-template-columns: minmax(190px, 270px) minmax(0, 1fr);
    align-items: end;
    gap: 18px;
    margin: 4px 0 12px;
}

.client-filter-field {
    display: grid;
    width: 100%;
    gap: 6px;
}

.client-filter-field label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

.client-tabs-shell {
    display: grid;
    min-width: 0;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: stretch;
    gap: 8px;
}

.client-tabs-region {
    display: grid;
    min-width: 0;
    gap: 6px;
}

.client-tabs {
    display: flex;
    min-width: 0;
    gap: 2px;
    padding: 0 2px;
    overflow-x: auto;
    border-bottom: 2px solid var(--border);
    overscroll-behavior-x: contain;
    scrollbar-color: #c6a34a var(--gold-wash);
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
}

.client-tab {
    display: flex;
    min-width: max-content;
    min-height: 46px;
    align-items: center;
    padding: 10px 16px 8px;
    color: var(--ink-soft);
    background: transparent;
    border: 0;
    border-bottom: 4px solid transparent;
    border-radius: 0;
    box-shadow: none;
    font-weight: 750;
    scroll-snap-align: start;
    white-space: nowrap;
}

.client-tab:hover {
    color: var(--ink);
    background: var(--gold-wash);
    border-bottom-color: #d4b451;
    text-decoration: none;
}

.client-tab.active {
    color: var(--ink);
    background: linear-gradient(180deg, transparent, var(--gold-wash));
    border-bottom-color: var(--gold);
    box-shadow: none;
}

.client-tabs-scroll {
    width: 42px;
    padding: 0;
    color: var(--gold-deep);
    background: transparent;
    border: 0;
    box-shadow: none;
    font-size: 27px;
    line-height: 1;
}

.client-tabs-scroll:disabled {
    cursor: default;
    opacity: .35;
}

.client-tabs-scroll:disabled:hover {
    background: transparent;
    border: 0;
    box-shadow: none;
    transform: none;
}

.client-tabs-scroll:hover {
    background: var(--gold-wash);
    border: 0;
    box-shadow: none;
}

.client-filter-message {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.client-empty-state {
    grid-column: 2;
    margin: 0;
}

.client-empty-state p {
    margin: 0;
}

.product-client-actions {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 24px;
}

.client-product-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin: 0 0 24px;
}

.client-product-actions form {
    display: contents;
}

.product-search-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px;
}

.warehouse-product-search {
    min-width: 0;
    flex: 1 1 auto;
    margin: 0;
}

.warehouse-product-search select {
    width: min(240px, 28vw);
}

.product-search-actions>button {
    flex: 0 0 auto;
}

.product-primary-controls input:not([type="hidden"]),
.product-primary-controls select,
.product-floating-controls input:not([type="hidden"]),
.product-floating-controls select {
    min-height: 44px;
    padding: 10px 13px;
    color: var(--ink);
    background: #f7f4eb;
    border: 0;
    border-left: 3px solid #d7b44d;
    border-radius: 10px;
    font-weight: 650;
}

.product-floating-controls {
    position: fixed;
    top: 18px;
    z-index: 20;
    display: grid;
    max-height: calc(100dvh - 36px);
    gap: 14px;
    margin: 0;
    padding: 16px;
    overflow-y: auto;
    border-top: 5px solid var(--gold);
    box-shadow: 0 16px 38px rgb(78 51 0 / 18%);
}

.product-floating-controls h2 {
    margin: 0;
    font-size: 18px;
}

.product-floating-fields,
.product-floating-search {
    display: grid;
    gap: 11px;
}

.product-floating-fields label,
.product-floating-search label {
    display: grid;
    gap: 5px;
}

.product-floating-fields label>span,
.product-floating-search label>span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.product-floating-controls input,
.product-floating-controls select,
.product-floating-controls button {
    width: 100%;
}

.page-back-to-top {
    position: fixed;
    right: max(16px, calc((100vw - 1240px) / 2 - 68px));
    bottom: 22px;
    z-index: 18;
    display: grid;
    width: 52px;
    min-height: 52px;
    padding: 6px;
    place-content: center;
    gap: 0;
    color: var(--ink);
    background: rgb(255 255 255 / 96%);
    border: 2px solid var(--gold-bright);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgb(83 55 0 / 18%);
    line-height: 1;
}

.page-back-to-top span:first-child {
    font-size: 23px;
    font-weight: 800;
}

.page-back-to-top span:last-child {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.page-back-to-top:hover,
.page-back-to-top:focus-visible {
    color: var(--ink);
    background: var(--gold-soft);
    border-color: var(--gold);
    box-shadow: 0 14px 34px rgb(83 55 0 / 24%);
}

.product-floating-add-category {
    background: #fff;
}

.add-category-dialog {
    width: min(460px, calc(100% - 32px));
}

.client-import-products-dialog {
    width: min(620px, calc(100% - 32px));
}

.add-category-dialog input,
.add-category-dialog select {
    width: 100%;
}

.category-dialog-save,
.category-dialog-save:hover {
    background: #fff;
}

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

.product-category {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.product-category-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    padding: 14px 18px;
    background: linear-gradient(135deg, var(--gold-soft), #ffe187);
    border-bottom: 1px solid #dfbd58;
}

.product-category-toggle {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    padding: 5px 7px;
    background: transparent;
    border: 0;
    box-shadow: none;
    text-align: left;
}

.product-category-toggle:hover {
    background: rgb(255 255 255 / 48%);
    border: 0;
    box-shadow: none;
    transform: none;
}

.product-category-toggle-icon {
    position: relative;
    display: block;
    width: 25px;
    height: 25px;
    flex: 0 0 auto;
    border: 2px solid #a66b00;
    border-radius: 6px;
}

.product-category-toggle-icon::before,
.product-category-toggle-icon::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 11px;
    height: 2px;
    background: var(--ink);
    border-radius: 99px;
    content: "";
    transform: translate(-50%, -50%);
}

.product-category-toggle-icon::after {
    width: 2px;
    height: 11px;
    opacity: 0;
}

.product-category-toggle[aria-expanded="false"] .product-category-toggle-icon::after {
    opacity: 1;
}

.product-category-name {
    width: 12ch;
    flex: 0 0 12ch;
    overflow: hidden;
    font-size: 21px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-category-client {
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
}

.product-category-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.product-category-actions form {
    margin: 0;
}

.product-category-primary-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
}

.product-category-statistics {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 14px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.product-category-statistics strong {
    color: var(--ink);
    font-weight: 850;
}

.product-category-action-button {
    color: var(--ink);
    background: #fff;
}

.danger-text {
    color: #a52218;
}

.product-category-products[hidden] {
    display: none;
}

.product-category-limit-message {
    margin: 0;
    padding: 12px 18px;
    color: var(--muted);
    background: #fffaf0;
    border-top: 1px solid var(--border);
    font-weight: 650;
}

.product-table tbody td {
    padding-top: 8px;
    padding-bottom: 8px;
    vertical-align: middle;
}

.product-table {
    table-layout: fixed;
}

.product-column-thumbnail {
    width: 6%;
}

.product-column-active-sku {
    width: 22%;
}

.product-column-upc-ean {
    width: 15%;
}

.product-column-existing-skus {
    width: 25%;
}

.product-column-model {
    width: 22%;
}

.product-column-action {
    width: 10%;
}

.product-table tbody td.product-thumbnail-cell {
    padding-top: 2px;
    padding-bottom: 2px;
    text-align: center;
}

.product-list-thumbnail,
.product-list-thumbnail-placeholder {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    border: 1px solid var(--border);
    border-radius: 6px;
}

.product-list-thumbnail {
    background: #fff;
    cursor: zoom-in;
    object-fit: contain;
}

.product-list-image-preview {
    position: fixed;
    z-index: 1200;
    display: grid;
    width: 400px;
    height: 400px;
    grid-template-rows: auto minmax(0, 1fr);
    padding: 8px;
    opacity: 0;
    pointer-events: none;
    background: #fffaf0;
    border: 1px solid #d7b44d;
    border-radius: 10px;
    box-shadow: 0 14px 34px rgb(16 24 32 / 24%);
    transform: translateY(-3px);
    transition: opacity 120ms ease, transform 120ms ease;
}

.product-list-image-preview.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.product-list-image-preview strong {
    display: block;
    max-width: 100%;
    padding: 3px 5px 9px;
    overflow: hidden;
    color: #111821;
    font-size: 15px;
    line-height: 1.25;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-list-image-preview img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    background: #fff;
    border-radius: 6px;
}

.product-list-thumbnail-placeholder {
    color: var(--muted);
    background: rgb(255 255 255 / 55%);
    font-size: 13px;
}

.product-row-clamp {
    display: -webkit-box;
    max-height: 2.7em;
    overflow: hidden;
    line-height: 1.35;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-row-existing-skus {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    grid-auto-rows: 1.35em;
    gap: 0 4px;
    justify-content: start;
    max-height: 2.7em;
    overflow-x: hidden;
    overflow-y: auto;
    line-height: 1.35;
    scrollbar-color: #c6a34a transparent;
    scrollbar-width: thin;
}

.product-row-existing-skus span {
    white-space: nowrap;
}

.product-row-existing-skus::-webkit-scrollbar {
    width: 5px;
}

.product-row-existing-skus::-webkit-scrollbar-thumb {
    background: #c6a34a;
    border-radius: 99px;
}

.product-row-existing-skus::-webkit-scrollbar-track {
    background: transparent;
}

.product-row {
    cursor: pointer;
}

.product-row>td {
    transition: background 120ms ease;
}

.product-row[data-product-action="ship"]>td {
    background: #f3fbf6;
}

.product-row[data-product-action="store"]>td {
    background: #f2f8fd;
}

.product-row[data-product-action="abandon"]>td {
    background: #fff3f2;
}

.product-row[data-product-action="ship"]>td:first-child {
    box-shadow: inset 4px 0 #2e8b57;
}

.product-row[data-product-action="store"]>td:first-child {
    box-shadow: inset 4px 0 #3688bd;
}

.product-row[data-product-action="abandon"]>td:first-child {
    box-shadow: inset 4px 0 #c94b42;
}

.product-row[data-product-action="ship"]:hover>td {
    background: #e5f7eb;
}

.product-row[data-product-action="store"]:hover>td {
    background: #e8f4fd;
}

.product-row[data-product-action="abandon"]:hover>td {
    background: #fdebea;
}

.product-row-action {
    display: inline-flex;
    min-width: 68px;
    min-height: 24px;
    align-items: center;
    justify-content: center;
    padding: 2px 9px;
    border: 1px solid #b7c2cc;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.product-row-action.action-ship {
    color: #17653a;
    background: #e5f7eb;
    border-color: #8bcba3;
}

.product-row-action.action-store {
    color: #1d5f8f;
    background: #e8f4fd;
    border-color: #91c4e8;
}

.product-row-action.action-abandon {
    color: #8f241c;
    background: #fdebea;
    border-color: #e5a09b;
}

.product-row:focus-visible {
    position: relative;
    z-index: 1;
    outline: 3px solid var(--gold);
    outline-offset: -3px;
}

.rename-category-dialog {
    width: min(460px, calc(100% - 32px));
}

.product-dialog.quick-product-dialog {
    width: min(430px, calc(100% - 32px));
}

.product-dialog.shipping-label-page-confirm-dialog {
    width: min(500px, calc(100% - 32px));
}

.product-dialog {
    width: min(560px, calc(100% - 32px));
    padding: 0;
    color: var(--ink);
    background: #fffdf8;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgb(16 24 32 / 28%);
}

.product-dialog::backdrop {
    background: rgb(16 24 32 / 62%);
}

.product-dialog>form,
.product-dialog-actions form {
    margin: 0;
}

.product-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 26px;
    background: linear-gradient(90deg, var(--gold-soft), #fffdf8);
    border-bottom: 1px solid var(--border);
}

.product-dialog-header h2,
.product-dialog-header p {
    margin: 0;
}

.product-dialog-header h2 {
    font-size: 25px;
}

.product-dialog-header p {
    margin-top: 4px;
    color: var(--muted);
}

.product-dialog-close {
    padding: 0;
    color: var(--ink-soft);
    background: transparent;
    border: 0;
    box-shadow: none;
    font-size: 34px;
    line-height: 1;
}

.product-dialog-close:hover {
    background: transparent;
    box-shadow: none;
    transform: scale(1.08);
}

.product-dialog-close:focus,
.product-dialog-close:focus-visible {
    outline: none;
    box-shadow: none;
}

.product-dialog-body {
    display: grid;
    gap: 18px;
    padding: 26px;
}

.product-dialog-body>label {
    display: grid;
    gap: 7px;
    font-weight: 700;
}

.product-dialog-body select,
.product-dialog-body input[type="file"] {
    width: 100%;
}

.product-dialog-help,
.delete-category-dialog .product-dialog-body p {
    margin: 0;
    color: var(--muted);
}

.product-dialog-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 26px 26px;
}

.product-view-dialog {
    position: fixed;
    inset: 50% auto auto 50%;
    width: min(1120px, calc(100% - 32px));
    height: min(760px, calc(100vh - 32px));
    max-height: calc(100vh - 32px);
    height: min(760px, calc(100dvh - 32px));
    max-height: calc(100dvh - 32px);
    margin: 0;
    overflow: hidden;
    transform: translate(-50%, -50%);
}

.product-view-dialog[open] {
    display: flex;
    flex-direction: column;
}

.product-view-dialog:focus,
.product-view-dialog:focus-visible {
    outline: none;
}

.product-view-dialog>.product-dialog-header,
.product-view-dialog>.product-view-tabs {
    flex: 0 0 auto;
}

.product-view-tabs {
    display: flex;
    gap: 4px;
    padding: 0 26px;
    overflow-x: auto;
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.product-view-tabs button {
    flex: 0 0 auto;
    margin-bottom: -1px;
    padding: 13px 15px 11px;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    box-shadow: none;
}

.product-view-tabs button:hover {
    color: var(--ink);
    background: var(--gold-wash);
    border-color: transparent;
    box-shadow: none;
    transform: none;
}

.product-view-tabs button[aria-selected="true"] {
    color: var(--ink);
    border-bottom-color: var(--gold);
}

.product-view-tabs .product-detail-lock,
.product-view-tabs .product-new-active-sku-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    border: 1px solid #c7a749;
    border-bottom: 1px solid #c7a749;
    border-radius: 8px;
    align-self: center;
    padding: 7px 12px;
}

.product-view-dialog:not(.product-detail-tab-active):not(.product-label-tab-active) .product-detail-lock,
.product-view-dialog:not(.product-detail-tab-active):not(.product-label-tab-active) .product-new-active-sku-button,
.product-view-dialog:not(.product-detail-tab-active):not(.product-label-tab-active) .product-detail-cancel,
.product-view-dialog:not(.product-detail-tab-active) .product-delete-button {
    display: none;
}

.product-view-dialog:not(.product-details-unlocked) .product-new-active-sku-button {
    margin-left: auto;
}

.product-view-tabs .product-detail-lock[aria-pressed="true"] {
    color: #17653a;
    background: #e5f7eb;
    border-color: #8bcba3;
}

.product-view-tabs .product-new-active-sku-button:disabled {
    color: #9a8b6d;
    cursor: default;
    opacity: 0.55;
}

.product-view-dialog.product-details-unlocked .product-new-active-sku-button {
    display: none;
}

.product-view-dialog.product-details-unlocked .product-delete-button {
    margin-left: auto;
}

.product-view-dialog:not(.product-details-unlocked) .product-delete-button {
    display: none;
}

.product-view-tabs .product-detail-cancel {
    align-self: center;
    padding: 7px 12px;
    color: var(--muted);
    background: #fff;
    border: 1px solid #cdbb8a;
    border-bottom: 1px solid #cdbb8a;
    border-radius: 8px;
}

.product-view-tabs .product-detail-cancel:hover {
    color: var(--ink);
    background: #fff7dd;
    border-color: #c7a749;
}

.product-view-tabs .product-delete-button {
    align-self: center;
    padding: 7px 12px;
    color: #7f1d1d;
    background: #fff5f5;
    border: 1px solid #f2b8b5;
    border-bottom: 1px solid #f2b8b5;
    border-radius: 8px;
}

.product-view-tabs .product-delete-button:hover {
    color: #fff;
    background: #991b1b;
    border-color: #991b1b;
}

.product-detail-unlock-error {
    margin: -4px 0 0;
    color: #991b1b;
    font-weight: 700;
}

.product-tab-panel {
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
}

.product-view-tab-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
    min-height: 0;
    flex: 1 1 auto;
    gap: 28px;
    padding: 14px 26px 26px;
    overflow: hidden;
}

.product-view-dialog.outbound-box-tab-active .product-view-tab-layout {
    grid-template-columns: minmax(0, 1fr);
}

.product-view-tab-content {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.product-view-tab-content>.product-tab-panel {
    height: 100%;
}

.product-view-information {
    min-width: 0;
}

.product-view-heading {
    min-width: 0;
}

.product-view-dialog>.product-dialog-header {
    position: relative;
    z-index: 5;
    align-items: center;
    gap: 14px;
    overflow: visible;
    padding: 12px 26px 11px;
}

.product-view-dialog .product-dialog-close {
    align-self: flex-start;
}

.product-view-heading h2 {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 5px;
    overflow: hidden;
    font-size: 22px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-title-sku-group {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
}

.product-title-sku-group [data-product-title-sku],
[data-product-title-model] {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

[data-product-title-model][data-product-model-rename-open] {
    cursor: text;
}

.product-title-sku-separator {
    flex: 0 0 auto;
}

.product-variant-arrow {
    display: inline-flex;
    width: 30px;
    height: 32px;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex: 0 0 30px;
    color: #8a5d08;
    background: transparent;
    border: 0;
    border-radius: 8px;
    box-shadow: none;
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
    transform: translateY(-3px);
}

.product-variant-arrow:hover {
    color: #111821;
    background: #fff0ad;
    border-color: transparent;
    box-shadow: none;
    transform: translateY(-3px);
}

.product-variant-arrow:disabled,
.product-variant-arrow[aria-disabled="true"] {
    color: #c6b27e;
    cursor: default;
    opacity: 0.45;
}

.product-variant-arrow:disabled:hover,
.product-variant-arrow[aria-disabled="true"]:hover {
    color: #c6b27e;
    background: transparent;
}

.product-model-rename-dialog {
    width: min(460px, calc(100% - 32px));
}

.product-model-rename-dialog input[type="text"] {
    width: 100%;
}

.product-variant-arrow:focus-visible {
    outline: 2px solid #c79a25;
    outline-offset: 2px;
}

.product-view-heading-meta {
    display: flex;
    min-height: 24px;
    align-items: center;
    gap: 7px;
    margin-top: 4px;
    color: var(--muted);
    flex-wrap: wrap;
}

.product-client-category {
    font-weight: 650;
}

.product-action-badge {
    display: inline-flex;
    min-height: 22px;
    align-items: center;
    padding: 2px 8px;
    border: 1px solid #b7c2cc;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 750;
}

.product-action-control {
    position: relative;
    display: inline-flex;
}

.product-action-button {
    gap: 5px;
    margin: 0;
    box-shadow: none;
    cursor: pointer;
    line-height: 1.2;
}

.product-action-button:hover {
    box-shadow: 0 2px 7px rgb(16 24 32 / 12%);
    transform: none;
}

.product-action-button:focus-visible {
    outline: 2px solid #9a7219;
    outline-offset: 2px;
}

.product-action-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.product-action-menu {
    position: absolute;
    z-index: 30;
    top: calc(100% + 6px);
    left: 0;
    display: grid;
    width: max-content;
    min-width: 126px;
    gap: 3px;
    padding: 6px;
    background: #fffdf8;
    border: 1px solid #d7b44a;
    border-radius: 9px;
    box-shadow: 0 12px 28px rgb(16 24 32 / 18%);
}

.product-action-menu[hidden] {
    display: none;
}

.product-action-menu-item {
    display: flex;
    min-height: 34px;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
    padding: 6px 10px;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-radius: 6px;
    box-shadow: none;
    font-size: 13px;
    font-weight: 700;
}

.product-action-menu-item:hover,
.product-action-menu-item:focus-visible {
    background: #fff2bd;
    box-shadow: none;
    transform: none;
}

.product-action-menu-item[aria-checked="true"] {
    background: #fff0ad;
}

.product-action-menu-item>span {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    background: #83909b;
    border-radius: 50%;
}

.product-action-menu-item.action-ship>span {
    background: #2e8b57;
}

.product-action-menu-item.action-store>span {
    background: #3688bd;
}

.product-action-menu-item.action-abandon>span {
    background: #c94b42;
}

.product-action-badge.action-ship {
    color: #17653a;
    background: #e5f7eb;
    border-color: #8bcba3;
}

.product-action-badge.action-store {
    color: #1d5f8f;
    background: #e8f4fd;
    border-color: #91c4e8;
}

.product-action-badge.action-abandon {
    color: #8f241c;
    background: #fdebea;
    border-color: #e5a09b;
}

.product-in-charge-badge {
    display: inline-flex;
    min-height: 22px;
    align-items: center;
    padding: 2px 8px;
    color: #704900;
    background: #fff7d9;
    border: 1px solid #d5ad3d;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 750;
}

.product-transparency-indicator {
    display: inline-flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    padding: 2px;
    background: #fff;
    border: 1px solid #d4c8aa;
    border-radius: 6px;
}

.product-transparency-indicator img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-transparency-indicator.missing img {
    opacity: .4;
    filter: grayscale(1);
}

.product-view-details {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: none;
    gap: 12px 14px;
    margin: 0;
    height: max-content;
    align-content: start;
    grid-auto-rows: max-content;
}

.product-view-details>div {
    min-width: 0;
}

/* Keep the default span less specific than field-level layout classes below. */
.product-view-details>* {
    grid-column: span 2;
}

.product-view-details dt,
.product-view-media-details dt,
.product-view-media-label {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.product-field-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.product-required-marker {
    color: #991b1b;
    font-weight: 900;
}

.product-field-help {
    position: relative;
    cursor: default;
    width: max-content;
    max-width: 100%;
}

.product-field-help:hover,
.product-field-help:focus-visible {
    z-index: 101;
}

.product-field-help::after {
    position: absolute;
    top: calc(100% + 7px);
    left: 0;
    z-index: 100;
    width: min(320px, 70vw);
    padding: 7px 9px;
    color: #111821;
    background: #fffaf0;
    border: 1px solid #d7b44d;
    border-radius: 6px;
    box-shadow: 0 10px 24px rgb(16 24 32 / 16%);
    content: attr(data-tooltip);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.35;
    opacity: 0;
    pointer-events: none;
    text-align: left;
    text-transform: none;
    transform: translateY(-3px);
    transition: opacity 120ms ease, transform 120ms ease;
    visibility: hidden;
    white-space: normal;
}

.product-field-help:hover::after,
.product-field-help:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.product-view-transparency-flag-field .product-field-help {
    width: 100%;
}

.product-view-transparency-flag-field .product-field-help::after {
    right: 0;
    left: auto;
}

.product-weight-field .product-field-help {
    width: 100%;
}

.product-weight-field .product-field-help::after {
    right: 0;
    left: auto;
}

.product-view-inbound-packing-field .product-field-help {
    width: 100%;
}

.product-view-inbound-packing-field .product-field-help::after {
    right: 0;
    left: auto;
}

.product-transparency-indicator.product-field-help {
    width: 22px;
}

.product-view-details dd,
.product-view-media-details dd {
    min-height: 38px;
    margin: 0;
    padding: 8px 11px;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    background: #f7f4eb;
    border: 0;
    border-left: 3px solid #d7b44d;
    border-radius: 4px !important;
}

.product-view-dialog .product-dimension-values,
.product-view-dialog .product-weight-value {
    background: transparent;
    border: 0;
}

.product-view-dialog .product-dimension-values span,
.product-view-dialog .product-weight-value span {
    height: 38px;
    min-height: 38px;
    padding: 8px 10px;
    background: #f7f4eb;
    border: 0;
    border-left: 3px solid #d7b44d;
    border-radius: 4px;
}

.product-view-dialog:not(.product-details-unlocked) .product-unit-toggle {
    height: 38px;
    background: #fffaf0;
    box-shadow: none;
}

.product-view-dialog:not(.product-details-unlocked) .product-marketplace-link,
.product-view-dialog:not(.product-details-unlocked) .product-external-link {
    height: 38px;
    min-height: 38px;
}

.product-view-dialog .product-view-title-field dd {
    height: auto;
    min-height: calc(3 * 1.45em + 16px);
}

.product-view-dialog [data-edit-field][contenteditable="true"] {
    outline: none;
    caret-color: var(--ink);
    cursor: text;
}

.product-view-dialog [data-edit-field][contenteditable="true"]:focus {
    box-shadow: 0 0 0 2px rgb(199 167 73 / 28%);
}

.product-view-details .product-view-wide-field {
    grid-column: 1 / -1;
}

.product-outbound-packing-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.product-outbound-packing-manage-button {
    padding: 3px 8px;
    font-size: 12px;
    line-height: 1.2;
    text-transform: none;
}

.product-outbound-packing-field [data-edit-readonly] {
    cursor: default;
}

.product-dialog.outbound-packing-manage-dialog {
    width: min(760px, calc(100% - 32px));
}

.outbound-packing-manage-dialog .product-dialog-body {
    position: relative;
}

.outbound-packing-manage-status {
    position: absolute;
    right: 18px;
    bottom: 0px;
    left: 18px;
    z-index: 3;
    margin: 0;
    box-shadow: 0 14px 36px rgb(16 24 32 / 20%);
    animation: toast-enter 180ms ease-out;
    transition: opacity 180ms ease, transform 180ms ease;
}

.outbound-packing-manage-status.is-dismissing {
    opacity: 0;
    transform: translateY(8px);
}

.outbound-packing-preset-list {
    display: grid;
    gap: 6px;
}

.outbound-packing-preset-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    background: #f7f4eb;
    border-left: 3px solid #d7b44d;
    border-radius: 6px;
}

.outbound-packing-preset-row button {
    padding: 5px 10px;
    line-height: 1.2;
}

.outbound-packing-preset-label {
    min-width: 0;
    overflow-wrap: anywhere;
    font-weight: 700;
}

.outbound-packing-delete-confirm {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.outbound-packing-delete-confirm[hidden] {
    display: none;
}

.product-view-existing-skus-field,
.product-view-two-column-field,
.product-quantity-summary {
    grid-column: span 4;
}

.product-view-half-column-field {
    grid-column: span 3;
}

.product-dimension-field {
    grid-column: 1 / span 4;
}

.product-weight-field {
    grid-column: 5 / span 2;
}

.product-view-feature-field {
    grid-column: 1 / span 3;
}

.product-view-inbound-packing-field {
    grid-column: 4 / span 3;
}

.product-view-compact-text-field dd,
.product-view-instruction-field dd {
    max-height: calc(2.9em + 22px);
    overflow-x: hidden;
    overflow-y: auto;
    line-height: 1.45;
    scrollbar-color: #c6a34a transparent;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
}

.product-view-compact-text-field dd {
    height: calc(2.9em + 22px);
}

.product-view-compact-text-field dd::-webkit-scrollbar,
.product-view-instruction-field dd::-webkit-scrollbar {
    width: 5px;
}

.product-view-compact-text-field dd::-webkit-scrollbar-thumb,
.product-view-instruction-field dd::-webkit-scrollbar-thumb {
    background: #c6a34a;
    border-radius: 99px;
}

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

.product-view-timestamp-field dd {
    overflow-x: auto;
    overflow-wrap: normal;
    white-space: nowrap;
}

.product-quantity-summary dd {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}

.product-quantity-summary span {
    white-space: nowrap;
}

.product-view-transparency-flag-field {
    align-self: start;
}

.product-view-transparency-flag-field dd {
    display: flex;
    height: 38px;
    min-height: 38px;
    align-items: center;
    overflow: hidden;
}

.product-detail-transparency-toggle {
    display: inline-flex;
    width: 100%;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    min-width: 0;
    white-space: nowrap;
}

.product-detail-transparency-toggle span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-detail-transparency-toggle input {
    width: 16px;
    height: 16px;
    accent-color: #2f7d4f;
}

.product-detail-transparency-toggle input:disabled {
    opacity: 0.65;
}

.product-view-existing-skus {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap !important;
    scrollbar-color: #c6a34a transparent;
    scrollbar-width: thin;
}

.product-view-existing-skus::-webkit-scrollbar {
    height: 5px;
}

.product-view-existing-skus::-webkit-scrollbar-thumb {
    background: #c6a34a;
    border-radius: 99px;
}

.product-view-title-field dd {
    height: calc(3 * 1.45em + 22px);
    overflow-y: auto;
    line-height: 1.45;
}

.product-view-link-field {
    align-self: start;
}

.product-view-link-field .product-detail-link-display {
    display: flex;
    height: 38px;
    min-height: 38px;
    max-height: 38px;
    align-items: center;
    padding: 0 8px;
    overflow: hidden;
}

.product-view-link-field .product-marketplace-link {
    width: auto;
    height: 30px;
    min-height: 30px;
    padding: 0;
    overflow: hidden;
}

.product-view-link-field .product-external-link {
    height: 30px;
    min-height: 30px;
    padding-top: 2px;
    padding-bottom: 2px;
}

.product-view-link-field .product-detail-link-display[contenteditable="true"] {
    display: block;
    padding: 8px 11px;
    overflow-x: auto;
    overflow-y: hidden;
    overflow-wrap: normal;
    white-space: nowrap;
}

.product-marketplace-link {
    display: inline-flex;
    width: 112px;
    height: 42px;
    align-items: center;
    justify-content: center;
    padding: 5px 9px;
    background: #fff;
    border: 1px solid #c7a749;
    border-radius: 8px;
}

.product-marketplace-link:hover {
    background: var(--gold-wash);
    text-decoration: none;
}

.product-marketplace-link img {
    display: block;
    width: auto;
    height: 100%;
    max-height: none;
    object-fit: cover;
}

.product-external-link {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
}

.product-unit-toggle {
    display: inline-flex;
    width: 50px;
    height: 42px;
    flex: 0 0 50px;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--gold-deep);
    background: #fff;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.3;
    text-transform: none;
}

.product-dimension-values {
    display: grid;
    height: 42px;
    min-height: 42px !important;
    grid-template-columns:
        minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

.product-dimension-values span,
.product-weight-value span {
    display: flex;
    height: 38px;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    background: #f7f4eb;
    border: 0;
    border-left: 3px solid #d7b44d;
    border-radius: 4px;
}

.product-dimension-values b {
    color: var(--muted);
    font-weight: 700;
}

.product-weight-value {
    display: flex;
    height: 42px;
    min-height: 42px !important;
    gap: 7px;
    align-items: stretch;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    white-space: normal !important;
}

.product-weight-value span {
    flex: 1 1 auto;
    min-width: 0;
}

.product-dimension-values .product-unit-toggle,
.product-weight-value .product-unit-toggle {
    align-self: center;
}

.product-view-media {
    min-width: 0;
}

.product-view-dialog.outbound-box-tab-active .product-view-media {
    display: none;
}

.product-modal-feedback {
    position: absolute;
    left: 26px;
    bottom: -4px;
    z-index: 5;
    display: flex;
    width: min(520px, calc(100% - 52px));
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0;
    padding: 16px 18px;
    box-shadow: 0 14px 36px rgb(16 24 32 / 18%);
    animation: toast-enter 180ms ease-out;
    transition: opacity 180ms ease, transform 180ms ease;
}

.product-modal-feedback.is-dismissing {
    opacity: 0;
    transform: translateY(6px);
}

.print-next-warning-overlay {
    position: absolute;
    inset: 0;
    z-index: 30;
    display: grid;
    padding: 26px;
    background: rgb(16 24 32 / 48%);
    place-items: center;
}

.print-next-warning-dialog {
    width: min(560px, 100%);
    padding: 18px;
    background: #fffdf8;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 24px 60px rgb(16 24 32 / 32%);
}

.print-next-warning-header {
    margin: 0 0 14px;
}

.print-next-warning-header h2 {
    margin: 0;
    font-size: 22px;
}

.print-next-warning-message {
    margin: 0;
}

.print-next-warning-message .notice-icon {
    margin-right: 6px;
}

.print-next-warning-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
}

.product-view-media-details {
    margin: 0 0 14px;
}

.product-view-media-heading {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 28px;
    margin: 0 0 4px;
}

.product-view-media-label {
    margin: 0;
}

.product-image-upload-form,
.product-image-actions {
    display: none;
}

.product-details-unlocked .product-image-upload-form,
.product-details-unlocked .product-image-actions {
    display: flex;
}

.product-details-unlocked .product-image-upload-form {
    position: absolute;
    top: -4px;
    right: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-image-upload-button,
.product-image-clipboard-button {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
}

.product-image-clipboard-button:disabled {
    cursor: not-allowed;
}

.product-image-upload-button input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

.product-view-image-gallery {
    position: relative;
    height: 420px;
    overflow: hidden;
    background: #f8f5ec;
    border: 2px dashed #d8c99f;
    border-radius: 12px;
}

.product-details-unlocked .product-view-image-gallery[data-product-image-dropzone] {
    cursor: default;
}

.product-details-unlocked .product-view-image-gallery[data-product-image-dropzone]:focus-visible {
    outline: 3px solid rgb(185 134 0 / 38%);
    outline-offset: 3px;
}

.product-view-image-gallery.is-dragover {
    border-color: var(--gold-deep);
    border-style: solid;
}

.product-image-drop-overlay {
    position: absolute;
    z-index: 5;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    background: rgb(255 248 223 / 92%);
    font-size: 18px;
    pointer-events: none;
}

.product-view-image-gallery.is-dragover .product-image-drop-overlay {
    display: flex;
}

.product-view-image-slide,
.product-view-image-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 12px;
}

.product-view-image-gallery img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-image-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    gap: 7px;
}

.product-image-actions form {
    margin: 0;
}

.product-image-actions button {
    display: flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: rgb(255 255 255 / 94%);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgb(16 24 32 / 18%);
}

.product-image-primary-form button {
    color: var(--gold-deep);
    border: 1px solid var(--gold);
}

.product-image-primary-form button:hover {
    background: var(--gold-soft);
}

.product-image-primary-form button.is-primary {
    color: var(--gold-deep);
    background: var(--gold-soft);
    opacity: 1;
    cursor: default;
}

.product-image-primary-form button.is-primary svg {
    fill: currentColor;
}

.product-image-delete-form button {
    color: #a32626;
    border: 1px solid rgb(163 38 38 / 55%);
}

.product-image-delete-form button:hover {
    color: #7f1d1d;
    background: #fff1f1;
    border-color: #a32626;
}

.product-image-actions svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.product-view-image-placeholder {
    flex-direction: column;
    color: var(--muted);
    text-align: center;
}

.product-view-image-placeholder svg {
    width: 64px;
    height: 64px;
    fill: #b6aa8b;
}

.product-view-image-placeholder p {
    margin: 8px 0 0;
}

.product-image-navigation {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    width: 48px;
    height: 72px;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: translateY(-50%);
}

.product-image-navigation::before {
    width: 17px;
    height: 17px;
    border-top: 4px solid #fff;
    border-right: 4px solid #fff;
    content: "";
    filter: drop-shadow(0 1px 2px rgb(16 24 32 / 90%));
}

.product-image-navigation:hover {
    background: transparent;
    box-shadow: none;
    transform: translateY(-50%);
}

.product-image-navigation:hover::before {
    border-color: var(--gold-bright);
}

.product-image-navigation.previous {
    left: 4px;
}

.product-image-navigation.previous::before {
    transform: rotate(-135deg);
}

.product-image-navigation.next {
    right: 4px;
}

.product-image-navigation.next::before {
    transform: rotate(45deg);
}

.product-image-counter {
    position: absolute;
    bottom: 12px;
    left: 50%;
    z-index: 2;
    min-width: 62px;
    padding: 5px 10px;
    color: #fff;
    background: transparent;
    border: 0;
    border-radius: 0;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    text-shadow:
        0 1px 2px rgb(16 24 32 / 100%),
        0 0 5px rgb(16 24 32 / 85%);
    transform: translateX(-50%);
}

.product-label-panel {
    display: grid;
    min-height: 0;
    grid-template-rows: minmax(0, 1fr);
    align-content: start;
    gap: 22px;
    padding: 0;
}

.product-label-preview {
    position: relative;
    width: 100%;
    min-height: 180px;
    height: 100%;
    max-height: 280px;
}

.product-label-preview-image {
    display: block;
    width: 100%;
    height: 100%;
    padding: 14px;
    background: var(--gold-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
    object-fit: contain;
}

.product-label-preview iframe:not(.product-label-print-source) {
    display: block;
    width: 100%;
    height: 100%;
    background: #f8f5ec;
    border: 1px solid #d8c99f;
    border-radius: 12px;
}

.product-label-preview iframe.product-label-print-source,
.transparency-label-print-source {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.pdf-preview-guard {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 12px;
    cursor: default;
    user-select: none;
}

.product-label-generation-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: var(--ink-soft);
    background: rgb(248 245 236 / 92%);
    border: 1px solid #d8c99f;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 750;
    text-align: center;
}

.product-label-generation-overlay span::before {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 9px;
    border: 2px solid #d8c99f;
    border-top-color: var(--accent-strong);
    border-radius: 50%;
    content: "";
    vertical-align: -3px;
    animation: product-label-spin 800ms linear infinite;
}

@keyframes product-label-spin {
    to {
        transform: rotate(360deg);
    }
}

.product-label-preview-size,
.product-label-preview-page-count {
    position: absolute;
    top: 10px;
    z-index: 2;
    padding: 5px 8px;
    color: var(--ink);
    background: rgb(255 255 255 / 90%);
    border: 1px solid #d9dee7;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgb(16 24 32 / 12%);
    font-size: 12px;
    font-weight: 750;
    pointer-events: none;
}

.product-label-preview-size {
    left: 10px;
}

.product-label-preview-page-count {
    right: 10px;
}

.product-label-preview-size.is-missing {
    color: #a52218;
    background: #fff0ef;
    border-color: #d96c64;
    animation: product-label-size-missing 850ms ease-in-out 3;
}

@keyframes product-label-size-missing {
    50% {
        color: #fff;
        background: #b42318;
        box-shadow: 0 0 0 5px rgb(180 35 24 / 18%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-label-preview-size.is-missing {
        animation: none;
    }
}

.product-label-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 0;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 30px;
    color: var(--muted);
    background: #f8f5ec;
    border: 2px dashed #d8c99f;
    border-radius: 12px;
    flex-direction: column;
    text-align: center;
}

.product-label-placeholder svg,
.product-label-placeholder img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    fill: #b6aa8b;
    opacity: .7;
}

.product-label-placeholder p {
    margin: 0;
}

.product-label-form {
    position: relative;
    display: grid;
    min-height: 100%;
    grid-template-rows: auto minmax(180px, 1fr) auto;
    gap: 20px;
    margin: 0;
}

.outbound-box-panel {
    height: 100%;
    min-height: 280px;
    overflow: hidden;
}

.outbound-box-panel:not([hidden]) {
    display: grid;
    grid-template-rows: minmax(0, 2fr) minmax(0, 3fr);
    gap: 12px;
    align-content: stretch;
    overflow: hidden;
}

.product-storage-outbound-card {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 0;
    gap: 10px;
    padding: 14px;
    overflow: hidden;
    background: #fffdf8;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.outbound-box-section-card {
    overflow: visible;
}

.product-storage-outbound-card h3 {
    margin: 0;
    color: var(--ink);
    font-size: 20px;
}

.product-storage-outbound-card.has-storage-add-panel {
    grid-template-columns: minmax(0, 5fr) minmax(230px, 3fr);
    grid-template-rows: auto minmax(0, 1fr);
    column-gap: 14px;
}

.product-storage-outbound-card-body {
    display: grid;
    min-height: 0;
    gap: 10px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
}

.product-storage-card-body.has-storage-add-panel {
    grid-column: 1;
    grid-row: 2;
    overflow: hidden;
    padding-right: 0;
}

.product-storage-list {
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
}

.product-storage-list>.table-wrap {
    margin: 0;
}

.product-storage-add-panel {
    display: grid;
    grid-column: 2;
    grid-row: 1 / 3;
    grid-template-rows: auto minmax(0, 1fr);
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-left: 14px;
    border-left: 1px solid var(--border);
}

.product-storage-add-panel h4 {
    margin: 0 0 7px;
    color: var(--ink);
    font-size: 16px;
}

.product-storage-add-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 74px;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 7px;
    min-height: 0;
    margin: 0;
}

.product-storage-field {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.product-storage-field>span,
.product-storage-new-fields label>span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    line-height: 1.1;
    text-transform: uppercase;
}

.product-storage-mode-field {
    grid-column: 1;
}

.product-storage-quantity-field {
    grid-column: 2;
}

.product-storage-existing-field {
    grid-column: 1;
    align-self: start;
}

.product-storage-add-form input,
.product-storage-add-form select {
    width: 100%;
    min-width: 0;
    height: 36px;
    min-height: 36px;
    padding: 5px 8px;
    color: var(--ink);
    background: #f7f4eb;
    border: 0;
    border-left: 3px solid #d7b44d;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
}

.product-storage-add-form input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
    text-align: center;
}

.product-storage-add-form input[type="number"]::-webkit-outer-spin-button,
.product-storage-add-form input[type="number"]::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
}

.product-storage-new-fields {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-self: start;
    gap: 5px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.product-storage-new-fields[hidden] {
    display: none;
}

.product-storage-new-fields legend {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.product-storage-new-fields label {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.product-storage-new-fields select {
    padding-right: 3px;
    padding-left: 3px;
    text-align: center;
    text-align-last: center;
}

.product-storage-add-form [data-product-storage-save] {
    grid-column: 2;
    align-self: end;
    min-width: 0;
    min-height: 36px;
    padding: 5px 8px;
    font-size: 14px;
}

.product-storage-add-form.is-new-storage-mode [data-product-storage-save] {
    grid-column: 1 / -1;
}

.product-storage-add-form [data-product-storage-save]:disabled {
    cursor: default;
    opacity: .55;
}

.outbound-box-card-body {
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.product-storage-outbound-card-body>.table-wrap,
.outbound-box-product-list>.table-wrap {
    margin: 0;
}

.product-storage-unit-link,
.outbound-box-id-link,
.box-detail-sku-link {
    color: inherit;
    font-weight: inherit;
    text-decoration: none;
}

.product-storage-unit-link:hover,
.product-storage-unit-link:focus-visible,
.outbound-box-id-link:hover,
.outbound-box-id-link:focus-visible,
.box-detail-sku-link:hover,
.box-detail-sku-link:focus-visible {
    color: var(--accent-dark);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.outbound-box-add-form {
    display: grid;
    grid-template-columns:
        auto 72px minmax(130px, auto) 180px auto minmax(140px, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin: 0;
    overflow: visible;
    white-space: nowrap;
}

.outbound-box-packing-control {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    gap: 10px;
}

.outbound-box-packing-control [data-outbound-packing-select] {
    flex: 0 1 680px;
    width: min(680px, calc(100% - 120px));
    max-width: 100%;
}

.outbound-packing-preset-active .outbound-box-quantity-input,
.outbound-packing-preset-active .outbound-box-model-input {
    background: var(--gold-soft);
}

.outbound-box-add-label {
    grid-column: 1;
    grid-row: 2;
}

.outbound-box-add-form .outbound-box-quantity-input {
    grid-column: 2;
    grid-row: 2;
}

.outbound-box-destination-copy {
    grid-column: 3;
    grid-row: 2;
}

.outbound-box-add-form .outbound-box-model-combobox {
    grid-column: 4;
    grid-row: 2;
}

.outbound-box-existing-copy {
    grid-column: 5;
    grid-row: 2;
}

.outbound-box-add-form .outbound-box-existing-select {
    grid-column: 6;
    grid-row: 2;
}

.outbound-box-add-form [data-outbound-box-add-save] {
    grid-column: 7;
    grid-row: 2;
}

.outbound-box-add-form input,
.outbound-box-add-form select {
    height: 44px;
    min-height: 44px;
    padding: 8px 12px;
    color: var(--ink);
    background: #f7f4eb;
    border: 0;
    border-left: 3px solid #d7b44d;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.35;
}

.outbound-box-model-combobox {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 180px;
    height: 44px;
    min-height: 44px;
    color: var(--ink);
    background: #f7f4eb;
    border-left: 3px solid #d7b44d;
    border-radius: 4px;
}

.outbound-box-add-form .outbound-box-quantity-input {
    flex: 0 0 72px;
    width: 72px;
    appearance: textfield;
    text-align: center;
}

.outbound-box-add-form .outbound-box-model-input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    padding-right: 4px;
    background: transparent;
    border: 0;
    appearance: textfield;
    text-align: center;
}

.outbound-box-model-toggle {
    position: relative;
    flex: 0 0 28px;
    width: 28px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-radius: 0 4px 4px 0;
    background: transparent;
    box-shadow: none;
}

.outbound-box-model-toggle::before {
    position: absolute;
    top: 16px;
    left: 8px;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    content: "";
    transform: rotate(45deg);
}

.outbound-box-model-toggle:hover {
    background: transparent;
    box-shadow: none;
    transform: none;
}

.outbound-box-model-options {
    position: absolute;
    z-index: 25;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid #d7b44d;
    border-radius: 6px;
    background: #fffdf7;
    box-shadow: 0 10px 20px rgb(86 57 0 / 12%);
}

.outbound-box-model-option {
    display: block;
    width: 100%;
    min-height: 34px;
    padding: 6px 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: left;
    font-size: 15px;
    font-weight: 700;
}

.outbound-box-model-option:hover,
.outbound-box-model-option.is-active {
    background: var(--gold-soft);
    transform: none;
}

.outbound-box-add-form .outbound-box-existing-select {
    width: 100%;
}

.outbound-box-quantity-input::-webkit-inner-spin-button,
.outbound-box-quantity-input::-webkit-outer-spin-button,
.outbound-box-model-input::-webkit-inner-spin-button,
.outbound-box-model-input::-webkit-outer-spin-button {
    margin: 0;
    appearance: none;
}

.outbound-box-add-form span {
    color: var(--ink);
    font-size: 16px;
    font-weight: 700;
}

.outbound-box-add-form strong {
    font-weight: 850;
}

.outbound-box-add-form [data-outbound-box-add-save] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 44px;
}

.outbound-box-add-form button:disabled,
.outbound-box-add-form input:disabled,
.outbound-box-add-form select:disabled {
    cursor: default;
    opacity: .55;
}

.outbound-box-product-list {
    display: grid;
    flex: 1 1 auto;
    min-height: 0;
    gap: 10px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.outbound-box-product-list table {
    margin: 0;
}

.outbound-box-sku-list {
    display: -webkit-box;
    max-width: 260px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: inherit;
    font-family: inherit;
    font-weight: inherit;
    line-clamp: 2;
}

.outbound-box-product-list tbody tr[data-outbound-existing-box-row] {
    cursor: pointer;
}

.outbound-box-product-list tbody tr[data-outbound-existing-box-row]:hover,
.outbound-box-product-list tbody tr[data-outbound-existing-box-row].selected {
    background: #fff7d6;
}

.outbound-box-empty {
    margin: 0;
    color: var(--muted);
    font-weight: 650;
}

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

.product-label-information>label,
.product-label-information-row>label,
.product-label-settings-row>label {
    display: grid;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    gap: 5px;
}

.product-label-information input,
.product-label-information textarea,
.product-label-information select {
    width: 100%;
    min-height: 38px;
    padding: 8px 11px;
    color: var(--ink);
    background: #f7f4eb;
    border: 0;
    border-left: 3px solid #d7b44d;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.35;
}

.product-label-information input[readonly],
.product-label-information textarea[readonly] {
    background: #f7f4eb;
}

.product-label-information textarea {
    min-height: 82px;
    resize: none;
}

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

.product-label-settings-row {
    display: grid;
    grid-template-columns:
        minmax(100px, .75fr) minmax(135px, .9fr) minmax(280px, 1.7fr);
    align-items: stretch;
    gap: 14px;
}

.product-label-existing-sku-option {
    display: grid;
    align-content: center;
    gap: 7px;
    padding: 8px 11px;
    background: #f7f4eb;
    border: 0;
    border-left: 3px solid #d7b44d;
    border-radius: 4px;
}

.product-label-existing-sku-option>label {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 650;
    letter-spacing: 0;
    line-height: 1.3;
    text-transform: none;
    white-space: nowrap;
}

.product-label-existing-sku-option input[type="checkbox"] {
    display: grid;
    width: 20px;
    height: 20px;
    min-height: 20px;
    padding: 0;
    flex: 0 0 auto;
    margin: 0;
    appearance: none;
    background: #fff;
    border: 2px solid #9aa1ad;
    border-radius: 5px;
    box-shadow: none;
    cursor: pointer;
    place-content: center;
    transition: none;
}

.product-label-existing-sku-option input[type="checkbox"]::before {
    width: 10px;
    height: 6px;
    border-bottom: 2px solid #fff;
    border-left: 2px solid #fff;
    content: "";
    transform: rotate(-45deg) scale(0);
}

.product-label-existing-sku-option input[type="checkbox"]:checked {
    background: var(--gold-deep);
    border-color: var(--gold-deep);
}

.product-label-existing-sku-option input[type="checkbox"]:checked::before {
    transform: rotate(-45deg) scale(1);
}

.product-label-existing-sku-option input[type="checkbox"]:focus {
    border-color: var(--gold-deep);
    outline: none;
    box-shadow: 0 0 0 2px rgb(199 167 73 / 24%);
}

.product-label-existing-sku-option p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
    letter-spacing: 0;
    text-transform: none;
}

.product-label-existing-sku-option strong {
    color: var(--ink-soft);
}

.product-label-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.product-label-form>.product-label-actions {
    position: sticky;
    bottom: 0;
    z-index: 4;
    padding-top: 10px;
    background: linear-gradient(180deg, rgb(255 253 248 / 72%), #fffdf8 34%);
}

.transparency-label-upload-form {
    flex: 0 0 auto;
    margin: 0;
    justify-content: flex-start;
}

.transparency-label-manage-button {
    background: #fff;
}

.transparency-label-manage-button:hover {
    background: var(--gold-soft);
    border: 1px solid var(--gold-deep);
    transform: none;
}

.transparency-label-panel {
    position: relative;
    display: grid;
    align-content: start;
    gap: 16px;
    padding-bottom: 82px;
    overflow: hidden;
}

.transparency-label-list {
    display: grid;
    max-height: 410px;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    list-style: none;
    scrollbar-color: #c6a34a transparent;
    scrollbar-width: thin;
}

.transparency-label-file {
    display: grid;
    grid-template-columns: minmax(280px, 56%) minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
    border-bottom: 1px solid var(--border);
}

.transparency-label-file:last-child {
    border-bottom: 0;
}

.transparency-label-file-preview {
    position: relative;
    height: 190px;
    min-width: 0;
}

.transparency-label-file-preview img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 14px;
    background: var(--gold-soft);
    border: 1px solid #d8c99f;
    border-radius: 9px;
    object-fit: contain;
}

.transparency-label-file-preview .pdf-preview-guard {
    border-radius: 9px;
}

.transparency-label-file-details {
    display: grid;
    min-width: 0;
    align-content: start;
    gap: 10px;
}

.transparency-label-file-name {
    overflow: hidden;
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.transparency-label-file-meta {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
}

.transparency-label-file-meta span {
    margin: 0 5px;
}

.transparency-label-file-pending {
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}

.transparency-label-file-available {
    font-size: 15px;
}

.transparency-label-file-printed {
    color: var(--gold-deep);
    font-size: 13px;
    font-weight: 750;
}

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

.transparency-label-delete-form {
    margin: 0;
}

.transparency-label-delete-button {
    color: #a52218;
    background: #fff;
    border-color: #e2a6a0;
}

.transparency-label-delete-button:hover {
    color: #a52218;
    background: var(--gold-soft);
    border-color: #e2a6a0;
    transform: none;
}

.transparency-label-delete-form button:disabled {
    cursor: default;
    opacity: .45;
}

.transparency-label-action-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px 0 0;
    border-top: 1px solid var(--border);
    margin: 0;
}

.transparency-label-print-form {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0;
}

.transparency-label-availability-only {
    justify-content: flex-start;
}

.transparency-label-print-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.transparency-label-print-controls input {
    width: 76px;
    min-height: 38px;
    padding: 8px 11px;
    appearance: textfield;
    color: var(--ink);
    background: #f7f4eb;
    border: 0;
    border-left: 3px solid #d7b44d;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.35;
    text-align: center;
}

.transparency-label-print-controls input::-webkit-inner-spin-button,
.transparency-label-print-controls input::-webkit-outer-spin-button {
    margin: 0;
    appearance: none;
}

.transparency-label-print-controls span {
    color: var(--ink);
    font-size: 18px;
    font-weight: 650;
}

.transparency-label-print-controls button:disabled {
    cursor: default;
    opacity: .5;
}

.transparency-advanced-print-dialog {
    width: min(560px, calc(100% - 32px));
}

.transparency-advanced-print-file {
    display: grid;
    gap: 7px;
}

.transparency-advanced-print-file>span {
    font-weight: 400;
}

.transparency-direct-print-warning {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    color: #5e4300;
    background: #fff7d6;
    border: 1px solid #e0b22f;
    border-radius: 10px;
}

.transparency-direct-print-warning svg {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
}

.transparency-direct-print-warning svg path:first-child {
    fill: #fbc13a;
    stroke: #d79a00;
    stroke-width: .8;
}

.transparency-direct-print-warning svg path:last-child {
    fill: none;
    stroke: #252820;
    stroke-linecap: round;
    stroke-width: 2.4;
}

.transparency-direct-print-warning p {
    margin: 0;
}

.transparency-advanced-print-range {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.transparency-advanced-print-range input {
    width: 76px;
    min-height: 38px;
    padding: 8px 11px;
    appearance: textfield;
    color: var(--ink);
    background: #f7f4eb;
    border: 0;
    border-left: 3px solid #d7b44d;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.35;
    text-align: center;
}

.transparency-advanced-print-range input::-webkit-inner-spin-button,
.transparency-advanced-print-range input::-webkit-outer-spin-button {
    margin: 0;
    appearance: none;
}

.transparency-advanced-print-feedback {
    margin: 0;
}

.transparency-label-feedback:not(.product-modal-feedback) {
    position: absolute;
    top: auto;
    right: 10px;
    bottom: 4px;
    left: 10px;
    z-index: 5;
    width: auto;
    margin: 0;
    box-shadow: 0 8px 24px rgb(16 24 32 / 18%);
}

.product-label-print-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-label-print-controls input {
    width: 76px;
    min-height: 38px;
    padding: 8px 11px;
    appearance: textfield;
    color: var(--ink);
    background: #f7f4eb;
    border: 0;
    border-left: 3px solid #d7b44d;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.35;
    text-align: center;
}

.product-label-print-controls input::-webkit-inner-spin-button,
.product-label-print-controls input::-webkit-outer-spin-button {
    margin: 0;
    appearance: none;
}

.product-label-print-controls span {
    color: var(--ink);
    font-size: 18px;
    font-weight: 650;
}

.product-label-actions>button:disabled,
.product-label-print-controls button:disabled,
.product-label-print-controls input:disabled {
    cursor: default;
    opacity: .55;
}

.product-label-actions>button:disabled:hover,
.product-label-print-controls button:disabled:hover {
    box-shadow: none;
    transform: none;
}

.product-label-message {
    margin: 0;
}

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

.outbound-category-group .card-grid {
    grid-template-columns: repeat(3, minmax(300px, 1fr));
}

.outbound-view-tabs {
    display: inline-flex;
    gap: 4px;
    margin: 0 0 24px;
    padding: 4px;
    background: #fff8e2;
    border: 1px solid var(--border);
    border-radius: 11px;
}

.outbound-view-tabs a {
    min-width: 145px;
    padding: 9px 16px;
    color: var(--muted);
    border-radius: 7px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.outbound-view-tabs a:hover,
.outbound-view-tabs a.active {
    color: var(--ink);
    background: var(--gold-bright);
    box-shadow: 0 2px 8px rgb(95 63 0 / 14%);
}

.shipped-history-section {
    display: grid;
    gap: 16px;
}

.shipped-history-filters {
    display: grid;
    grid-template-columns: minmax(250px, 1.4fr) minmax(170px, .7fr) minmax(170px, .7fr) auto;
    gap: 14px;
    padding: 18px;
    align-items: end;
    background: rgb(255 255 255 / 86%);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.shipped-history-filters label {
    display: grid;
    gap: 6px;
}

.shipped-history-filters label>span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.shipped-history-filters input {
    width: 100%;
}

.shipped-history-filter-actions {
    display: flex;
    gap: 8px;
}

.shipped-history-guidance {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.shipped-history-table-wrap {
    background: rgb(255 255 255 / 92%);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.shipped-history-table {
    table-layout: fixed;
}

.shipped-history-table th:nth-child(1) {
    width: 16%;
}

.shipped-history-table th:nth-child(2) {
    width: 18%;
}

.shipped-history-table th:nth-child(3) {
    width: 14%;
}

.shipped-history-table th:nth-child(4) {
    width: 18%;
}

.shipped-history-table th:nth-child(5) {
    width: 26%;
}

.shipped-history-table th:nth-child(6) {
    width: 8%;
}

.shipped-history-table tbody tr[data-shipped-history-row] {
    cursor: pointer;
}

.shipped-history-table tbody tr[data-shipped-history-row]:hover>td {
    background: #fff8df;
}

.shipped-history-table tbody tr[data-shipped-history-row]:focus-visible {
    position: relative;
    outline: 3px solid var(--gold);
    outline-offset: -3px;
}

.shipped-history-table td {
    vertical-align: middle;
    overflow-wrap: anywhere;
}

.shipped-history-tracking-list {
    display: grid;
    gap: 3px;
    max-height: 3.1em;
    overflow: hidden;
}

.shipped-history-tracking-list a,
.shipped-history-tracking-list span,
.shipped-history-summary dd a,
.shipped-history-summary dd span {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-variant-numeric: tabular-nums;
    font-weight: 400;
}

.shipped-history-tracking-list a,
.shipped-history-summary dd a {
    color: var(--ink-soft);
    text-decoration: underline;
    text-decoration-color: rgb(149 96 0 / 42%);
}

.shipped-history-tracking-list a:hover,
.shipped-history-summary dd a:hover {
    color: var(--gold-deep);
    text-decoration-color: currentColor;
}

.tracking-status-future {
    display: inline-flex;
    padding: 3px 8px;
    color: #59636d;
    background: #eef1f3;
    border: 1px solid #d4dade;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 750;
}

.shipped-history-pagination {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
}

.shipped-history-dialog {
    width: min(1040px, calc(100% - 32px));
}

.shipped-history-dialog-body {
    display: grid;
    gap: 26px;
}

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

.shipped-history-summary>div {
    min-width: 0;
    padding: 14px;
    background: var(--gold-wash);
    border: 1px solid var(--border);
    border-radius: 9px;
}

.shipped-history-summary dt {
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.shipped-history-summary dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.shipped-history-products h3,
.shipped-history-tracking-history h3 {
    margin: 0 0 10px;
}

.shipped-history-products .table-wrap {
    border: 1px solid var(--border);
    border-radius: 9px;
}

.shipped-history-tracking-history {
    padding: 16px;
    color: var(--muted);
    background: #f5f6f7;
    border-left: 4px solid #aeb8c0;
    border-radius: 8px;
}

.shipped-history-tracking-history p {
    margin: 0;
}

.shipped-history-delete-action {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: auto;
}

.shipped-history-delete-control {
    position: relative;
}

.shipped-history-delete-control .danger:disabled,
.shipped-history-delete-control .danger:disabled:hover {
    color: #8b817f;
    background: #f3f0ed;
    border-color: #d8cfcc;
    box-shadow: none;
    cursor: not-allowed;
    opacity: .7;
    transform: none;
}

.shipped-history-delete-wait {
    color: var(--muted);
    font-size: 14px;
    white-space: nowrap;
}

@media (max-width: 800px) {
    .outbound-view-tabs {
        display: flex;
    }

    .outbound-view-tabs a {
        min-width: 0;
        flex: 1 1 50%;
    }

    .shipped-history-filters {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .shipped-history-filter-actions>* {
        flex: 1 1 50%;
        justify-content: center;
        text-align: center;
    }

    .shipped-history-table {
        min-width: 900px;
    }

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

    .shipped-history-delete-action {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }
}

@media (max-width: 500px) {
    .shipped-history-summary {
        grid-template-columns: 1fr;
    }
}

.outbound-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
}

.outbound-jump-menu {
    grid-area: 1 / 1;
    align-self: start;
    justify-self: start;
    position: sticky;
    top: 16px;
    z-index: 10;
    width: 210px;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin-left: -232px;
    padding: 16px;
    overflow-y: auto;
    background: rgb(255 255 255 / 96%);
    border: 1px solid var(--border);
    border-top: 5px solid var(--gold-bright);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgb(83 55 0 / 14%);
}

.outbound-jump-menu h2 {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.outbound-jump-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.outbound-jump-client-list {
    display: grid;
    gap: 14px;
}

.outbound-jump-client,
.outbound-jump-category-list a {
    display: block;
    color: var(--ink);
    line-height: 1.25;
    overflow-wrap: anywhere;
    border-radius: 7px;
}

.outbound-jump-client {
    padding: 6px 8px;
    background: var(--gold-soft);
    font-size: 16px;
    font-weight: 850;
}

.outbound-jump-menu .outbound-jump-category-list {
    display: grid;
    gap: 2px;
    margin-top: 5px;
    padding-left: 14px;
    border-left: 2px solid var(--border);
}

.outbound-jump-category-list a {
    padding: 5px 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.outbound-jump-client:hover,
.outbound-jump-category-list a:hover {
    color: var(--ink);
    background: var(--gold-wash);
    text-decoration: none;
}

.outbound-client-groups {
    grid-area: 1 / 1;
    display: grid;
    min-width: 0;
    gap: 36px;
}

.outbound-client-group {
    display: grid;
    gap: 18px;
    scroll-margin-top: 16px;
}

.outbound-client-banner {
    padding: 17px 20px;
    background: linear-gradient(105deg, var(--gold-soft), var(--gold-wash));
    border: 1px solid var(--border);
    border-left: 7px solid var(--gold-bright);
    border-radius: 12px;
    box-shadow: 0 7px 18px rgb(83 55 0 / 8%);
}

.outbound-client-banner h2 {
    margin: 0;
    color: var(--ink);
    font-size: 28px;
    line-height: 1.15;
}

.outbound-category-groups {
    display: grid;
    gap: 26px;
}

.outbound-category-group {
    display: grid;
    min-width: 0;
    gap: 12px;
    scroll-margin-top: 16px;
}

.outbound-category-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 15px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--gold);
    border-radius: 9px;
}

.outbound-category-banner h3 {
    margin: 0;
    color: var(--ink-soft);
    font-size: 20px;
    line-height: 1.2;
}

.outbound-category-export {
    flex: 0 0 auto;
    white-space: nowrap;
}

.outbound-category-export:disabled,
.outbound-category-export:disabled:hover {
    color: var(--muted);
    background: #f4f1e9;
    border-color: #d4cbb5;
    box-shadow: none;
    cursor: not-allowed;
    opacity: .7;
    transform: none;
}

.outbound-box-status {
    white-space: nowrap;
}

.outbound-box-status-open {
    color: #684300;
    background: var(--gold-soft);
    border-color: #e5c45d;
}

.outbound-box-status-closed {
    color: #3f4650;
    background: #edf0f3;
    border-color: #c2c9d1;
}

.outbound-box-status-requested {
    color: #174f82;
    background: #e5f1ff;
    border-color: #a9cbea;
}

.outbound-box-status-ready_to_ship {
    color: #17653b;
    background: #e2f5e9;
    border-color: #9bcfb0;
}

.outbound-box-status-shipped {
    color: #5b4b72;
    background: #eee8f6;
    border-color: #c8b8dc;
}

.outbound-box-status-form {
    position: relative;
    margin: 8px 0 0;
}

.outbound-box-status-form.is-status-popover-open {
    z-index: 20;
}

.outbound-box-status-control {
    font: inherit;
    cursor: pointer;
}

.outbound-box-status-control:disabled {
    opacity: 1;
    cursor: default;
}

.outbound-box-status-text {
    margin: 8px 0 0;
}

.outbound-box-status-confirm-popover {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: min(310px, calc(100vw - 56px));
    padding: 12px;
    color: var(--ink);
    background: #fffdf8;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgb(16 24 32 / 20%);
}

.outbound-box-status-confirm-popover[hidden] {
    display: none;
}

.outbound-box-status-confirm-popover::before {
    position: absolute;
    top: -6px;
    left: 22px;
    width: 10px;
    height: 10px;
    content: "";
    background: #fffdf8;
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
    transform: rotate(45deg);
}

.outbound-box-status-confirm-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.outbound-box-status-confirm-head strong {
    font-size: 16px;
    line-height: 1.2;
}

.outbound-box-status-confirm-close {
    flex: 0 0 auto;
    width: 26px;
    min-height: 26px;
    padding: 0;
    color: var(--ink-soft);
    font-size: 24px;
    line-height: 1;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.outbound-box-status-confirm-close:hover {
    color: var(--ink);
    background: transparent;
    box-shadow: none;
    transform: none;
}

.outbound-box-status-confirm-popover>p {
    margin: 5px 0 10px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.outbound-box-status-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

.outbound-box-status-confirm-actions button {
    min-height: 34px;
    padding: 6px 11px;
    font-size: 13px;
    border-radius: 9px;
}

.storage-scan-panel,
.storage-result-panel,
.storage-product-panel {
    display: grid;
    gap: 18px;
    margin-bottom: 24px;
}

.storage-scan-form {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto;
    align-items: end;
    gap: 12px;
    max-width: 980px;
}

.storage-scan-form label {
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.storage-scan-form input {
    height: 48px;
    box-sizing: border-box;
    font-size: 18px;
}

.storage-scan-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    box-sizing: border-box;
    align-self: end;
}

.storage-store-dialog {
    width: min(940px, calc(100% - 32px));
}

.storage-dialog-body {
    position: relative;
    display: grid;
    gap: 16px;
    padding-bottom: 70px;
}

.storage-dialog-messages {
    position: absolute;
    right: 26px;
    bottom: 6px;
    left: 26px;
    z-index: 6;
    display: grid;
    gap: 8px;
    pointer-events: none;
}

.storage-dialog-messages:empty {
    display: none;
}

.storage-dialog-messages .storage-dialog-message {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    margin: 0;
    padding: 12px 16px;
    box-shadow: 0 14px 36px rgb(16 24 32 / 18%);
    animation:
        storage-dialog-message-enter 180ms ease-out,
        storage-dialog-message-dismiss 5s ease forwards;
}

@keyframes storage-dialog-message-enter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes storage-dialog-message-dismiss {

    0%,
    86% {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
    }
}

.storage-dialog-body h3 {
    margin: 0;
    color: var(--ink);
    font-size: 22px;
}

.storage-dialog-sections {
    display: grid;
    gap: 16px;
}

.storage-store-section {
    display: grid;
    gap: 14px;
    padding: 18px;
    background: #fffefb;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgb(16 24 32 / 6%);
}

.storage-store-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.storage-store-section-header h3 {
    font-size: 21px;
}

.storage-existing-units-section .storage-dialog-table {
    height: 334px;
    overflow-y: auto;
    scrollbar-gutter: stable;
}

.storage-existing-units-section .storage-existing-empty {
    display: flex;
    align-items: center;
    min-height: 334px;
    margin: 0;
}

.storage-existing-units-section .storage-dialog-table th {
    position: sticky;
    top: 0;
    z-index: 1;
}

.storage-existing-units-section .storage-dialog-table th,
.storage-existing-units-section .storage-dialog-table td {
    padding-top: 10px;
    padding-bottom: 10px;
    vertical-align: middle;
}

.storage-existing-units-section .storage-inline-store-form input {
    min-height: 36px;
}

.storage-existing-units-section .storage-inline-store-form button {
    min-height: 36px;
    padding: 6px 10px;
}

.storage-dialog-product {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.storage-dialog-product h3,
.storage-dialog-product p {
    margin: 0;
}

.storage-dialog-product p {
    color: var(--muted);
    font-weight: 700;
}

.storage-dialog-product dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(90px, 1fr));
    gap: 10px;
    margin: 0;
}

.storage-dialog-product dl div {
    display: grid;
    gap: 2px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.storage-dialog-product dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.storage-dialog-product dd {
    margin: 0;
    color: var(--ink);
    font-size: 20px;
    font-weight: 850;
}

.storage-dialog-table table {
    min-width: 780px;
}

.storage-dialog-table td:first-child {
    color: var(--ink);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-weight: 850;
}

.storage-unit-list {
    display: grid;
    gap: 14px;
    margin-top: 26px;
}

.storage-unit-list h2 {
    margin: 0;
}

.storage-list-note {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    font-weight: 650;
}

.storage-unit-list table {
    min-width: 760px;
}

.storage-unit-list td {
    vertical-align: top;
}

.storage-unit-list td:first-child {
    color: var(--ink);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-weight: 850;
    white-space: nowrap;
}

.storage-unit-row {
    cursor: pointer;
}

.storage-unit-row.is-selected {
    background: rgb(255 182 18 / 20%);
    box-shadow: inset 5px 0 0 var(--accent);
}

.storage-unit-row:focus-visible {
    outline: 3px solid rgb(255 182 18 / 45%);
    outline-offset: -3px;
}

.storage-unit-dialog {
    width: min(680px, calc(100% - 32px));
}

.storage-unit-title-id {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 3px 12px 4px;
    background: #e7f4ff;
    border: 2px solid #7dbce8;
    border-radius: 999px;
    box-shadow: 0 2px 0 rgb(36 118 174 / 16%);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: .78em;
    line-height: 1.05;
}

.storage-unit-dialog-body {
    padding: 22px 26px;
}

.storage-unit-dialog-actions {
    border-top: 1px solid var(--line);
    padding: 16px 26px 22px;
}

.storage-unit-dialog-actions form {
    margin: 0;
}

.storage-unit-dialog-table table {
    min-width: 620px;
}

.storage-unit-dialog-table td:first-child {
    color: var(--ink);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-weight: 400;
}

.storage-item-product-link {
    color: inherit;
    font-weight: 400;
    text-decoration: none;
}

.storage-item-product-link:hover {
    text-decoration: underline;
}

.storage-unit-dialog-table.has-actions th:last-child,
.storage-unit-dialog-table.has-actions td:last-child {
    text-align: right;
}

.storage-row-action {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 15px;
}

.storage-move-dialog {
    width: min(860px, calc(100% - 32px));
}

.storage-delete-dialog {
    width: min(560px, calc(100% - 32px));
}

.storage-client-dialog {
    width: min(560px, calc(100% - 32px));
}

.storage-delete-dialog-body {
    padding: 22px 26px;
}

.storage-client-dialog-body {
    padding: 22px 26px;
}

.storage-delete-dialog-body p {
    margin: 0;
    color: var(--ink);
    font-size: 18px;
    font-weight: 700;
}

.storage-client-dialog-body label {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.storage-client-dialog-body label>span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.storage-client-dialog-body select {
    width: 100%;
    min-height: 38px;
    padding: 8px 11px;
    color: var(--ink);
    background: #f7f4eb;
    border: 0;
    border-left: 3px solid #d7b44d;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.35;
}

.storage-move-dialog-body {
    display: grid;
    grid-template-columns: max-content 78px 88px 12px 78px 12px 88px auto;
    column-gap: 8px;
    row-gap: 6px;
    align-items: center;
    justify-content: center;
    padding: 24px 26px 18px;
    overflow-x: auto;
}

.storage-move-text {
    grid-column: 1;
    grid-row: 2;
    align-self: center;
    transform: translateY(-2px);
    margin-right: 10px;
    color: var(--ink);
    font-size: 18px;
    font-weight: 800;
    white-space: nowrap;
}

.storage-move-target {
    display: contents;
}

.storage-move-target label {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.storage-move-target label:nth-of-type(1) {
    grid-column: 2;
    grid-row: 1 / span 2;
}

.storage-move-target label:nth-of-type(2) {
    grid-column: 3;
    grid-row: 1 / span 2;
}

.storage-move-target label:nth-of-type(3) {
    grid-column: 5;
    grid-row: 1 / span 2;
}

.storage-move-target label:nth-of-type(4) {
    grid-column: 7;
    grid-row: 1 / span 2;
}

.storage-move-target label>span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
}

.storage-move-separator,
.storage-move-period {
    grid-row: 2;
    align-self: end;
    padding-bottom: 8px;
    color: var(--ink);
    font-size: 18px;
    font-weight: 800;
}

.storage-move-separator:nth-of-type(1) {
    grid-column: 4;
}

.storage-move-separator:nth-of-type(2) {
    grid-column: 6;
}

.storage-move-period {
    grid-column: 8;
}

.storage-move-form select {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 8px 11px;
    color: var(--ink);
    background: #f7f4eb;
    border: 0;
    border-left: 3px solid #d7b44d;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 650;
    appearance: auto;
    line-height: 1.2;
    text-align: center;
    text-align-last: center;
}

.storage-inline-store-form {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.storage-inline-store-form input {
    width: 76px;
    min-height: 38px;
    text-align: center;
}

.storage-inline-store-form input[type="number"],
.storage-component-form input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.storage-inline-store-form input[type="number"]::-webkit-outer-spin-button,
.storage-inline-store-form input[type="number"]::-webkit-inner-spin-button,
.storage-component-form input[type="number"]::-webkit-outer-spin-button,
.storage-component-form input[type="number"]::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
}

.storage-component-form {
    --storage-qty-width: 78px;
    --storage-location-width: 386px;
    --storage-action-width: 84px;

    display: grid;
    grid-template-columns:
        auto var(--storage-qty-width) max-content var(--storage-location-width) auto 1fr var(--storage-action-width);
    column-gap: 6px;
    row-gap: 6px;
    padding-top: 4px;
}

.storage-store-labels {
    display: contents;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.storage-store-labels>span:first-child {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    text-align: center;
}

.storage-location-labels {
    grid-column: 4;
    grid-row: 1;
    display: grid;
    grid-template-columns: 78px 88px 12px 78px 12px 88px;
    gap: 6px;
    align-items: end;
    justify-self: stretch;
}

.storage-location-labels>span {
    min-width: 0;
    text-align: center;
    white-space: nowrap;
}

.storage-store-line {
    display: contents;
    color: var(--ink);
    font-size: 18px;
    font-weight: 700;
}

.storage-store-line>span:first-child {
    grid-column: 1;
    grid-row: 2;
    align-self: center;
    justify-self: end;
}

.storage-store-line>input[name="quantity"] {
    grid-column: 2;
    grid-row: 2;
}

.storage-store-line>span:nth-of-type(2) {
    grid-column: 3;
    grid-row: 2;
    align-self: center;
}

.storage-location-fields {
    grid-column: 4;
    grid-row: 2;
    display: grid;
    grid-template-columns: 78px 88px 12px 78px 12px 88px;
    gap: 6px;
    align-items: center;
    justify-self: stretch;
    white-space: nowrap;
}

.storage-location-fields>span {
    justify-self: center;
}

.storage-store-line>span:nth-of-type(4) {
    grid-column: 5;
    grid-row: 2;
    align-self: center;
}

.storage-component-form select {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 5px 18px;
    font-size: 16px;
    line-height: 1.2;
    text-align: center;
    text-align-last: center;
}

.storage-component-form input {
    width: 100%;
    min-height: 42px;
}

.storage-component-form input[name="quantity"] {
    width: var(--storage-qty-width);
    min-width: 0;
    min-height: 38px;
    padding: 5px 12px;
    text-align: center;
}

.storage-component-form button {
    width: 100%;
    min-width: 0;
    min-height: 42px;
}

.storage-component-form.is-occupied select {
    border-color: #e0b420;
}

.storage-store-line button {
    grid-column: 7;
    grid-row: 2;
}

.storage-new-unit-warning {
    position: absolute;
    right: 26px;
    bottom: 6px;
    left: 26px;
    z-index: 5;
    display: flex;
    align-items: center;
    min-height: 48px;
    margin: 0;
    padding: 12px 16px;
    color: #5d4300;
    background: #fff3b0;
    border: 1px solid #e0b420;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgb(122 80 0 / 14%);
    font-size: 13px;
    font-weight: 800;
    pointer-events: none;
}

.storage-new-unit-warning:empty {
    display: none;
}

.storage-product-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.storage-product-summary h2,
.storage-product-summary p,
.storage-store-block h3,
.storage-empty {
    margin: 0;
}

.storage-product-summary p {
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-weight: 700;
}

.storage-product-summary dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(88px, 1fr));
    gap: 10px;
    margin: 0;
}

.storage-product-summary dl div {
    display: grid;
    gap: 2px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.storage-product-summary dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.storage-product-summary dd {
    margin: 0;
    color: var(--ink);
    font-size: 22px;
    font-weight: 850;
}

.storage-store-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 18px;
}

.storage-store-block {
    display: grid;
    align-content: start;
    gap: 14px;
}

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

.storage-location-list li,
.storage-location-list form,
.storage-new-unit-form {
    display: grid;
    gap: 10px;
}

.storage-location-list li {
    grid-template-columns: minmax(0, 1fr) minmax(220px, auto);
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.storage-location-list strong {
    display: block;
    color: var(--ink);
    font-size: 18px;
}

.storage-location-list span,
.storage-empty {
    color: var(--muted);
}

.storage-location-list form {
    grid-template-columns: minmax(74px, 96px) auto;
}

.storage-new-unit-form label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.storage-client-groups {
    display: grid;
    gap: 28px;
    margin-top: 10px;
}

.storage-client-group {
    display: grid;
    gap: 14px;
}

.storage-client-group .card-grid {
    grid-template-columns: repeat(3, minmax(300px, 1fr));
}

.storage-unit-card::before {
    background: linear-gradient(90deg, #2563eb, #14b8a6, #84cc16);
}

.box-card {
    position: relative;
    margin: 12px 0 0;
    padding: 20px;
    overflow: visible;
    border-top: 5px solid var(--gold-bright);
    cursor: pointer;
    transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.box-card:hover {
    border-color: var(--gold);
    border-top-color: var(--gold-bright);
    box-shadow: 0 16px 34px rgb(122 80 0 / 14%);
    transform: translateY(-1px);
}

.box-count-bubble {
    position: absolute;
    z-index: 1;
    top: -15px;
    right: 20px;
    min-width: 52px;
    padding: 5px 10px;
    border: 1px solid #d9dee7;
    border-radius: 8px;
    color: var(--accent-dark);
    background: rgb(255 255 255 / 92%);
    box-shadow: 0 2px 8px rgb(16 24 32 / 12%);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.box-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
    padding: 10px 0 14px;
    border-bottom: 1px solid #efe1bd;
}

.box-card-status {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.box-card h3,
.box-card h4 {
    margin: 0;
}

.box-card h3 {
    font-size: 20px;
}

.box-card h4 {
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.box-items {
    display: grid;
    margin-top: 18px;
}

.box-items ul {
    display: grid;
    gap: 7px;
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.box-items li {
    position: relative;
    min-height: 34px;
}

.box-item-empty-row {
    display: block;
}

.box-items p {
    margin: 0;
    color: var(--muted);
}

.box-item-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content max-content;
    align-items: center;
    gap: 12px;
    min-height: 34px;
}

.box-item-model,
.box-item-sku {
    min-width: 0;
    overflow: hidden;
    color: var(--ink);
    font-size: 15px;
    font-weight: 750;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.box-item-sku {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-weight: 700;
}

.box-item-quantity,
.box-item-quantity-static {
    display: inline-grid;
    min-width: 38px;
    min-height: 32px;
    padding: 0 12px;
    place-items: center;
    border: 0;
    border-radius: 14px;
    color: #173a78;
    background: #dbeafe;
    font-size: 15px;
    font-weight: 850;
    line-height: 1;
}

.box-item-quantity {
    cursor: pointer;
}

.box-item-popover {
    position: absolute;
    z-index: 20;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    display: grid;
    gap: 8px;
    max-width: 100%;
    padding: 12px;
    border: 2px solid var(--gold);
    outline: 2px solid var(--surface);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 16px 32px rgb(17 24 39 / 24%), 0 0 0 1px rgb(217 174 61 / 20%);
}

.box-item-popover[hidden] {
    display: none;
}

.box-item-quantity-form {
    display: grid;
    gap: 8px;
}

.box-item-quantity-title {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.box-item-quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.box-item-quantity-controls label {
    flex: 1 1 auto;
    min-width: 0;
}

.box-item-quantity-form input {
    width: 100%;
    min-height: 38px;
}

.box-item-quantity-controls button {
    flex: 0 0 auto;
    min-height: 38px;
}

.box-measurements {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 16px;
}

.box-measurement-banner {
    display: grid;
    align-items: center;
    grid-template-columns: max-content minmax(102px, 1fr) max-content max-content minmax(38px, max-content);
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    gap: 9px;
    border: 1px solid var(--gold-border);
    border-radius: 8px;
    color: var(--muted);
    background: #fffaf0;
    box-shadow: 0 8px 18px rgb(217 174 61 / 10%);
    font-size: 15px;
    font-weight: 750;
    text-align: left;
}

button.box-measurement-banner {
    cursor: pointer;
}

.box-measurement-banner strong {
    color: var(--ink);
    font-size: 16px;
    font-weight: 850;
    white-space: nowrap;
}

.box-measurement-line[hidden] {
    display: none;
}

.box-measurement-field {
    display: flex;
    align-items: center;
    gap: 10px;
}

.box-measurement-label {
    color: var(--muted);
    font-weight: 700;
}

.box-measurement-field strong {
    font-weight: 650;
}

.box-measurement-separator {
    color: var(--muted);
    font-weight: 700;
}

.box-measurement-popover {
    position: absolute;
    z-index: 20;
    bottom: calc(10%);
    left: 0;
    right: 0;
    padding: 12px;
    border: 2px solid var(--gold);
    outline: 2px solid var(--surface);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 18px 34px rgb(17 24 39 / 24%), 0 0 0 1px rgb(217 174 61 / 20%);
}

.box-measurement-popover[hidden] {
    display: none;
}

.box-measurement-line,
.box-measurement-edit-line {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.box-measurement-edit-line {
    flex-wrap: nowrap;
    font-size: 16px;
}

.box-measurement-editor-row {
    display: grid;
    gap: 8px;
}

.box-measurement-editor-row input {
    width: 56px;
    min-height: 36px;
    text-align: center;
    font-size: 16px;
    font-weight: 650;
}

.box-measurement-editor-row [data-weight-value] {
    width: 64px;
}

.box-measurement-unit {
    min-height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 16px;
}

.box-measurement-edit-line-box .box-measurement-unit {
    margin-left: auto;
}

.box-measurement-value-unit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.box-measurement-edit-line-weight .box-measurement-unit {
    margin-left: 0;
}

.box-measurement-editor-row [data-box-measurements-save] {
    min-height: 36px;
    margin-left: auto;
    padding: 0 12px;
    font-size: 16px;
}

.box-measurements button {
    flex: 0 0 auto;
}

.box-measurements button[hidden] {
    display: none;
}

.box-card dd {
    margin: 0;
    font-weight: 650;
}

.box-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.box-delete-popover {
    position: absolute;
    z-index: 30;
    top: 50%;
    left: 50%;
    width: min(360px, calc(100% - 32px));
    transform: translate(-50%, -50%);
}

.box-delete-popover[hidden] {
    display: none;
}

.box-delete-popover-panel {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--gold-border);
    border-top: 5px solid var(--gold);
    border-radius: 10px;
    background: var(--surface);
    box-shadow: 0 18px 38px rgb(17 24 39 / 24%);
}

.box-delete-popover h4 {
    margin: 0;
    color: var(--ink);
    font-size: 20px;
}

.box-delete-popover p {
    margin: 0;
    color: var(--muted);
    font-weight: 650;
}

.box-delete-popover-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.box-detail-dialog {
    position: relative;
    width: min(740px, calc(100% - 32px));
    height: min(520px, calc(100vh - 32px));
    max-height: min(520px, calc(100vh - 32px));
    overflow: hidden;
    cursor: default;
}

.box-detail-dialog:not([open]) {
    display: none;
}

.box-detail-dialog[open] {
    display: flex;
    flex-direction: column;
}

.box-detail-dialog>.product-dialog-header,
.box-detail-dialog>.box-detail-tabs {
    flex: 0 0 auto;
}

.box-detail-dialog>.product-dialog-header {
    align-items: center;
}

.box-dialog-messages {
    position: absolute;
    right: 16px;
    bottom: -8px;
    left: 16px;
    z-index: 40;
    display: grid;
    gap: 2px;
    pointer-events: none;
}

.box-dialog-messages:empty {
    display: none;
}

.box-dialog-message {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 48px;
    margin: 0;
    padding: 12px 14px;
    box-shadow: 0 14px 36px rgb(16 24 32 / 18%);
    animation: toast-enter 180ms ease-out;
    transition: opacity 180ms ease, transform 180ms ease;
    pointer-events: auto;
}

.box-dialog-message.is-dismissing {
    opacity: 0;
    transform: translateY(6px);
}

.box-detail-header-actions {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
}

.box-detail-header-actions form {
    margin: 0;
}

.box-detail-count-bubble {
    display: inline-grid;
    min-width: 64px;
    min-height: 44px;
    padding: 0 16px;
    place-items: center;
    border: 1px solid #d9dee7;
    border-radius: 8px;
    color: var(--ink);
    background: rgb(255 255 255 / 92%);
    box-shadow: 0 2px 8px rgb(16 24 32 / 12%);
    font-size: 18px;
    font-weight: 850;
    line-height: 1.2;
}

.box-detail-count-bubble.is-disabled,
.box-detail-dialog[data-shipped-box] button:disabled:not([role="tab"]) {
    opacity: .5;
    cursor: default;
    pointer-events: none;
}

.box-detail-dialog[data-shipped-box] input:disabled,
.box-detail-dialog[data-shipped-box] select:disabled,
.box-detail-dialog[data-shipped-box] textarea:disabled {
    opacity: .65;
    cursor: default;
}

button.box-detail-count-bubble {
    cursor: pointer;
}

button.box-detail-count-bubble:hover {
    background: #fff;
    border-color: #cad2df;
    box-shadow: 0 4px 12px rgb(16 24 32 / 14%);
    transform: none;
}

button.box-detail-count-bubble:focus,
button.box-detail-count-bubble:focus-visible {
    outline: none;
    box-shadow: 0 2px 8px rgb(16 24 32 / 12%);
}

.box-count-popover {
    position: absolute;
    z-index: 35;
    top: calc(100% + 8px);
    right: 0;
    width: min(420px, calc(100vw - 48px));
}

.box-count-popover[hidden] {
    display: none;
}

.box-count-popover form {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--gold-border);
    border-top: 4px solid var(--gold);
    border-radius: 10px;
    background: var(--surface);
    box-shadow: 0 18px 38px rgb(17 24 39 / 24%);
}

.box-count-popover p {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    color: var(--ink);
    font-size: 15px;
    font-weight: 750;
    line-height: 1.45;
}

.box-count-popover input {
    width: 58px;
    height: 38px;
    min-height: 38px;
    margin: 0 4px;
    padding: 0 8px;
    text-align: center;
    font-size: 15px;
    font-weight: 850;
}

.box-count-popover button[type="submit"] {
    flex: 0 0 auto;
    height: 38px;
    min-height: 38px;
    padding: 0 12px;
    font-size: 15px;
}

.box-detail-delete-button {
    min-height: 44px;
}

.box-detail-delete-button:focus,
.box-detail-delete-button:focus-visible {
    outline: none;
    box-shadow: none;
}

.box-detail-header-actions .box-delete-popover {
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    width: min(520px, calc(100vw - 48px));
    transform: none;
}

.box-detail-header-actions .box-delete-popover-panel {
    gap: 16px;
    padding: 20px;
}

.box-detail-header-actions .box-delete-popover h4 {
    font-size: 22px;
}

.box-detail-header-actions .box-delete-popover p {
    font-size: 16px;
    line-height: 1.45;
}

.box-detail-header-actions .box-delete-popover-actions {
    flex-wrap: nowrap;
}

.box-detail-tabs {
    display: flex;
    gap: 4px;
    padding: 0 26px;
    overflow-x: auto;
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.box-detail-tabs button {
    flex: 0 0 auto;
    margin-bottom: -1px;
    padding: 13px 15px 11px;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    box-shadow: none;
}

.box-detail-tabs button:hover {
    color: var(--ink);
    background: var(--gold-wash);
    border-color: transparent;
    box-shadow: none;
    transform: none;
}

.box-detail-tabs button[aria-selected="true"] {
    color: var(--ink);
    border-bottom-color: var(--gold);
}

.box-detail-body {
    position: relative;
    display: grid;
    flex: 1 1 auto;
    min-height: 0;
    gap: 14px;
    padding: 18px 26px 22px;
    overflow: auto;
}

.box-detail-dialog[data-active-box-tab="shipping-label"] .box-detail-body,
.box-detail-dialog[data-active-box-tab="transparency-labels"] .box-detail-body {
    grid-template-rows: minmax(0, 1fr);
    overflow: hidden;
}

.box-detail-tab-panel {
    display: grid;
    align-content: start;
    grid-auto-rows: max-content;
    gap: 14px;
    min-height: 0;
}

.box-detail-tab-panel[data-box-detail-tab-panel="detail"] {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
}

.box-detail-tab-panel[data-box-detail-tab-panel="detail"] .box-detail-table-wrap {
    flex: 0 1 auto;
}

.box-detail-tab-panel[data-box-detail-tab-panel="detail"] .box-detail-measurement-row {
    margin-top: auto;
}

.box-detail-tab-panel[hidden] {
    display: none;
}

.box-detail-tab-panel[data-box-detail-tab-panel="detail"]>form {
    display: none;
}

.box-detail-tab-panel[data-box-detail-tab-panel="box-label"] {
    height: 100%;
    min-height: 100%;
}

.box-detail-tab-panel[data-box-detail-tab-panel="shipping-label"]:not([hidden]),
.box-detail-tab-panel[data-box-detail-tab-panel="transparency-labels"]:not([hidden]) {
    display: block;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
}

.box-label-form {
    display: grid;
    height: 100%;
    min-height: 0;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 18px;
    margin: 0;
}

.box-label-viewer {
    display: flex;
    min-height: 100%;
    align-items: flex-start;
    justify-content: center;
    padding-top: 8px;
}

.box-label-controls {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 12px;
}

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

.box-label-field>span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.box-label-field select {
    width: 100%;
    min-height: 38px;
    padding: 8px 11px;
    color: var(--ink);
    background: #f7f4eb;
    border: 0;
    border-left: 3px solid #d7b44d;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.35;
}

.box-label-checkbox {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
}

.box-label-checkbox input {
    width: 16px;
    height: 16px;
}

.box-label-form>button,
.box-label-controls>button {
    width: 100%;
}

.box-label-generate-row {
    display: flex;
    flex-direction: column-reverse;
    gap: 4px;
}

.box-label-generate-row>button {
    width: 100%;
}

.box-label-generate-row>button:disabled,
.box-label-generate-row>button:disabled:hover {
    color: #8a867d;
    background: #efede7;
    border-color: #c9c5bb;
    box-shadow: none;
    cursor: not-allowed;
    opacity: .72;
    transform: none;
}

.box-label-print-controls {
    display: grid;
    grid-template-columns: 78px minmax(62px, 1fr) max-content;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    margin-top: auto;
}

.box-label-print-controls button {
    padding-right: 10px;
    padding-left: 10px;
}

.box-label-print-controls input {
    justify-self: center;
    height: 38px;
    min-height: 38px;
    width: 62px;
    padding: 8px 10px;
    background: #f7f4eb;
    border: 0;
    border-left: 3px solid #d7b44d;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.35;
}

.box-label-print-controls span {
    align-self: center;
    margin-left: 0;
    color: var(--ink);
}

.box-label-preview {
    height: 100%;
    min-height: 220px;
}

.box-label-preview-centered {
    width: min(100%, 560px);
    height: auto;
    min-height: 0;
    aspect-ratio: 1.8 / 1;
}

.shipping-label-panel {
    display: grid;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 18px;
    overflow: hidden;
}

.shipping-label-side {
    display: flex;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    gap: 18px;
    overflow: hidden;
}

.shipping-label-tracking {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    flex: 1 1 auto;
    gap: 8px;
    min-height: 0;
    overflow: hidden;
    padding: 14px;
    color: var(--ink);
    background: #fffdf8;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.shipping-label-tracking h3 {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.shipping-label-tracking p,
.shipping-label-tracking ul {
    margin: 0;
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 700;
}

.shipping-label-tracking ul {
    display: grid;
    align-content: start;
    gap: 8px;
    min-height: 0;
    overflow-y: auto;
    padding: 0;
    list-style: none;
}

.shipping-label-tracking li {
    min-width: 0;
    overflow-wrap: anywhere;
}

.shipping-label-tracking a {
    display: inline-block;
    color: var(--ink-soft);
    text-decoration: none;
}

.shipping-label-tracking a:hover {
    color: var(--gold-deep);
    text-decoration: underline;
}

.shipping-label-tracking-warning {
    align-self: end;
    padding: 10px 12px;
    color: #8a4b00;
    background: #fff4cf;
    border: 1px solid #e3b33f;
    border-radius: 8px;
}

.shipping-label-tracking-warning[hidden] {
    display: none;
}

.shipping-label-actions {
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: auto;
}

.shipping-label-actions-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shipping-label-actions form {
    margin: 0;
}

.shipping-label-actions button {
    width: 100%;
    min-height: 42px;
    padding-right: 10px;
    padding-left: 10px;
}

.shipping-label-actions button:disabled {
    opacity: .55;
    cursor: default;
    pointer-events: none;
}

.shipping-label-actions button:disabled:hover {
    background: #fffdf7;
    border-color: #c7a749;
    box-shadow: 0 1px 2px rgb(86 57 0 / 8%);
    transform: none;
}

.shipping-label-preview {
    height: 100%;
    min-height: 0;
    overflow: hidden;
    padding: 0;
    background: var(--gold-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.product-label-preview.shipping-label-preview {
    max-height: none;
}

.shipping-label-preview-pages {
    position: relative;
    display: grid;
    align-content: start;
    gap: 14px;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
}

.shipping-label-preview-page {
    width: 100%;
    min-height: 360px;
    overflow: hidden;
    background: #fff;
}

.shipping-label-preview .product-label-preview-image {
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    background: #fff;
    border: 0;
    border-radius: 0;
    object-fit: contain;
}

.shipping-label-preview .product-label-placeholder {
    min-height: 320px;
    background: #fffdf8;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.box-detail-placeholder {
    display: grid;
    min-height: 180px;
    place-items: center;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--muted);
    background: #fffdf8;
    font-weight: 700;
    text-align: center;
}

.box-detail-placeholder p {
    margin: 0;
}

.box-detail-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

.box-detail-table {
    width: 100%;
    min-width: 590px;
    border-collapse: collapse;
    table-layout: fixed;
}

.box-detail-table thead,
.box-detail-table tbody tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.box-detail-table tbody {
    display: block;
    max-height: 312px;
    overflow-y: auto;
}

.box-detail-table th,
.box-detail-table td {
    height: 52px;
    padding: 6px 12px;
    border-bottom: 1px solid #f0e2b8;
    vertical-align: middle;
    text-align: left;
}

.box-detail-table th {
    height: 40px;
    color: var(--muted);
    background: #fffaf0;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.box-detail-table td {
    color: var(--ink);
    font-weight: 400;
}

.box-detail-table th:nth-child(3),
.box-detail-table td:nth-child(3) {
    width: 72px;
    text-align: center;
}

.box-detail-table th:nth-child(4),
.box-detail-table td:nth-child(4) {
    width: 88px;
}

.box-detail-table th:last-child,
.box-detail-table td:last-child {
    width: 168px;
}

.box-detail-table tbody tr:last-child td {
    border-bottom: 0;
}

.box-detail-sku-link {
    white-space: nowrap;
}

.transparency-logo {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid #e7d396;
    border-radius: 8px;
    background: #fff9e8;
}

.transparency-logo img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

button.outbound-item-transparency-logo {
    padding: 0;
    cursor: pointer;
}

button.outbound-item-transparency-logo:hover {
    background: var(--gold-soft);
    border-color: var(--gold-deep);
    box-shadow: 0 4px 10px rgb(122 80 0 / 14%);
}

.outbound-item-transparency-body {
    position: relative;
}

.outbound-item-transparency-identity {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.outbound-item-transparency-identity>div {
    min-width: 0;
    padding: 13px 15px;
    background: var(--gold-wash);
    border: 1px solid var(--border);
    border-radius: 9px;
}

.outbound-item-transparency-identity dt {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.outbound-item-transparency-identity dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--ink);
    font-size: 17px;
    font-weight: 800;
}

.outbound-item-transparency-feedback.product-modal-feedback {
    position: static;
    width: 100%;
}

.box-card-transparency-logo {
    width: 34px;
    height: 34px;
}

.box-card-transparency-logo img {
    width: 21px;
    height: 21px;
}

.transparency-logo.missing {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.transparency-logo.missing img {
    filter: grayscale(1);
    opacity: .42;
}

.outbound-transparency-panel {
    display: grid;
    height: 100%;
    min-height: 0;
    grid-template-rows: minmax(0, 75%) auto auto;
    align-content: start;
    gap: 10px;
    overflow: hidden;
    padding: 0;
}

.outbound-transparency-preview {
    width: 66.6667%;
    height: 100%;
    min-height: 0;
    max-height: none;
    justify-self: center;
}

.outbound-transparency-preview .shipping-label-preview-page {
    min-height: 230px;
}

.outbound-transparency-status-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.outbound-transparency-upload-form {
    margin: 0;
}

.outbound-transparency-counts {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.outbound-transparency-counts strong {
    color: var(--ink);
}

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

.outbound-transparency-actions-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.outbound-transparency-actions form {
    margin: 0;
}

.outbound-transparency-actions button {
    width: 100%;
    min-height: 42px;
}

.outbound-transparency-actions button:disabled {
    opacity: .55;
    cursor: default;
    pointer-events: none;
}

.box-detail-empty-value {
    color: var(--muted);
    font-weight: 800;
}

.box-detail-quantity-input {
    width: 68px;
    height: 36px;
    min-height: 36px;
    padding: 0 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 400;
}

.box-detail-table .box-item-quantity-static {
    font-weight: 400;
}

.box-detail-row-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.box-detail-row-actions form {
    margin: 0;
}

.box-detail-row-actions button {
    display: inline-flex;
    height: 36px;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    padding: 0 11px;
    font-size: 14px;
    line-height: 1;
}

.box-detail-measurement-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 8px 16px;
    color: var(--muted);
    background: #fff7d6;
    border: 1px solid #ecd58f;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 800;
    flex-wrap: wrap;
    width: 100%;
    text-align: left;
}

.box-detail-measurement-row strong {
    color: var(--ink);
    font-size: 16px;
    font-weight: 900;
}

button.box-detail-measurement-row {
    cursor: pointer;
}

button.box-detail-measurement-row:hover {
    border-color: var(--gold);
    box-shadow: 0 8px 18px rgb(217 174 61 / 13%);
}

.box-detail-label-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.box-detail-label-actions form {
    margin: 0;
}

.box-detail-label-actions button {
    min-height: 44px;
    padding: 0 16px;
}

.box-measurement-dialog {
    width: min(560px, calc(100% - 24px));
    border-top: 5px solid var(--gold);
}

.box-measurement-dialog-body {
    display: grid;
    gap: 12px;
    padding: 22px;
}

.box-measurement-model-line,
.box-measurement-dialog .box-measurement-edit-line {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 16px;
    font-weight: 850;
    flex-wrap: wrap;
}

.box-measurement-dialog .box-measurement-label {
    flex: 0 0 86px;
    text-align: right;
}

.box-measurement-model-line input {
    width: min(170px, 100%);
    min-height: 40px;
    text-align: center;
    font-size: 16px;
    font-weight: 850;
}

.box-measurement-dialog .box-measurement-edit-line-box {
    flex-wrap: nowrap;
}

.box-measurement-dialog .box-measurement-edit-line input {
    width: 72px;
    min-height: 40px;
    text-align: center;
    font-size: 16px;
    font-weight: 850;
}

.box-measurement-dialog .box-measurement-edit-line [data-weight-value] {
    width: 86px;
    min-height: 40px;
}

.box-measurement-dialog .box-measurement-unit,
.box-measurement-dialog [data-box-measurements-save],
.box-measurement-dialog [data-box-packing-save] {
    min-height: 40px;
    padding: 0 12px;
    font-size: 16px;
}

.box-measurement-dialog [data-box-packing-save]:disabled,
.box-measurement-dialog [data-box-packing-save]:disabled:hover {
    opacity: .45;
    cursor: default;
    box-shadow: none;
    transform: none;
}

.box-measurement-dialog .box-measurement-unit {
    margin-left: 0;
}

.box-measurement-save-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

.notice {
    margin: 12px 0;
    padding: 12px 16px;
    color: #12633f;
    background: #ecfdf3;
    border: 1px solid #a7e7c7;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgb(18 99 63 / 8%);
}

.notice.error {
    color: #a52218;
    background: #fff2f1;
    border-color: #f5b4ae;
}

.notice.info {
    color: #3f5368;
    background: #f3f6f9;
    border-color: #ccd6e0;
}

.notice.warning {
    color: #5d4300;
    background: #fff3b0;
    border-color: #e0b420;
    box-shadow: 0 8px 22px rgb(122 80 0 / 14%);
}

.notice-icon {
    flex: 0 0 auto;
    font-size: 19px;
    line-height: 1;
}

.notice>span:not(.notice-icon) {
    flex: 1 1 auto;
    min-width: 0;
}

.toast-stack {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1000;
    display: grid;
    width: min(520px, calc(100vw - 48px));
    gap: 10px;
    pointer-events: none;
}

.toast-stack .toast {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin: 0;
    padding: 16px 18px;
    box-shadow: 0 14px 36px rgb(16 24 32 / 20%);
    pointer-events: auto;
    animation: toast-enter 180ms ease-out;
    transition: opacity 180ms ease, transform 180ms ease;
}

.toast-stack .toast-leaving {
    opacity: 0;
    transform: translateY(12px);
}

.toast-close {
    flex: 0 0 auto;
    padding: 0;
    color: currentcolor;
    background: transparent;
    border: 0;
    box-shadow: none;
    font-size: 24px;
    line-height: .8;
}

.toast-close:hover {
    background: transparent;
    box-shadow: none;
    transform: scale(1.08);
}

.import-status-toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.import-status-toast-action {
    min-height: 34px;
    padding: 5px 10px;
    color: inherit;
    background: #fff;
    font-size: 13px;
}

.import-errors-dialog {
    width: min(850px, calc(100% - 32px));
}

.import-errors-dialog .product-dialog-body {
    max-height: 55vh;
    overflow: auto;
}

.import-errors-dialog .notice {
    margin-top: 0;
}

.import-issue-table {
    min-width: 720px;
    table-layout: fixed;
}

.import-issue-table th:first-child,
.import-issue-table td:first-child {
    width: 190px;
}

.import-issue-table th:nth-child(2),
.import-issue-table td:nth-child(2) {
    width: 80px;
}

.import-sheet-selection-dialog {
    width: min(520px, calc(100% - 32px));
}

.import-sheet-options {
    display: grid;
    max-height: min(340px, 45vh);
    gap: 8px;
    overflow-y: auto;
}

.import-sheet-options label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f7f4eb;
    border-left: 3px solid #d7b44d;
    border-radius: 6px;
    font-weight: 750;
}

.import-category-option {
    display: grid;
    grid-template-columns: minmax(120px, .7fr) minmax(180px, 1fr);
    align-items: center;
    gap: 16px;
}

.import-category-option span {
    min-width: 0;
    overflow-wrap: anywhere;
    font-weight: 750;
}

.import-category-option input {
    width: 100%;
    min-height: 44px;
    padding: 10px 13px;
    background: #f7f4eb;
    border: 0;
    border-left: 3px solid #d7b44d;
    border-radius: 10px;
    font-weight: 650;
}

.import-sheet-options input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    accent-color: var(--gold-deep);
}

.import-upload-progress {
    display: grid;
    gap: 18px;
}

.import-upload-progress[hidden] {
    display: none;
}

.import-upload-progress-heading {
    display: flex;
    align-items: center;
    gap: 14px;
}

.import-upload-progress-heading>div {
    display: grid;
    gap: 3px;
}

.import-upload-progress-heading strong {
    color: var(--ink);
    font-size: 18px;
}

.import-upload-progress-heading p {
    margin: 0;
    color: var(--muted);
}

.import-upload-spinner {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 4px solid #f2df9d;
    border-top-color: var(--gold-deep);
    border-radius: 50%;
    animation: import-upload-spin 0.8s linear infinite;
}

.import-upload-spinner.complete {
    position: relative;
    border-color: #77bb91;
    animation: none;
}

.import-upload-spinner.complete::after {
    position: absolute;
    top: 6px;
    left: 8px;
    width: 10px;
    height: 6px;
    border-bottom: 3px solid #247044;
    border-left: 3px solid #247044;
    content: "";
    transform: rotate(-45deg);
}

.import-upload-spinner.error {
    border-color: #e5a09b;
    animation: none;
}

.import-upload-progress-track {
    height: 14px;
    overflow: hidden;
    background: #eee8d8;
    border: 1px solid #d9bf67;
    border-radius: 999px;
}

.import-upload-progress-track>span {
    display: block;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #e7b72e, #ffcb35);
    border-radius: inherit;
    transition: width 120ms ease-out;
}

.import-upload-progress-track.indeterminate>span {
    width: 38%;
    animation: import-upload-indeterminate 1.15s ease-in-out infinite;
}

.import-upload-progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
    font-size: 13px;
}

.import-upload-progress-meta>span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.import-upload-progress-meta>strong {
    flex: 0 0 auto;
    color: var(--ink);
}

.import-upload-progress .notice {
    margin: 0;
}

@keyframes import-upload-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes import-upload-indeterminate {
    from {
        transform: translateX(-110%);
    }

    to {
        transform: translateX(265%);
    }
}

@keyframes toast-enter {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.task-view-tabs {
    display: inline-flex;
    gap: 4px;
    margin: 0 0 24px;
    padding: 4px;
    background: #fff8e2;
    border: 1px solid var(--border);
    border-radius: 11px;
}

.task-view-tabs a {
    min-width: 145px;
    padding: 9px 16px;
    color: var(--muted);
    border-radius: 7px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.task-view-tabs a:hover,
.task-view-tabs a.active {
    color: var(--ink);
    background: var(--gold-bright);
    box-shadow: 0 2px 8px rgb(95 63 0 / 14%);
}

.task-panel {
    padding: 22px;
}

.task-filters {
    align-items: center;
    gap: 18px;
    margin: 12px 0 20px;
}

.task-filters label {
    display: grid;
    flex: 1 1 300px;
    min-width: 260px;
    gap: 0;
    color: var(--muted);
    font-size: 15px;
    font-weight: 750;
}

.task-filters label:first-child {
    flex: 1.35 1 440px;
}

.task-filters input,
.task-filters select,
.task-status-form select {
    min-height: 56px;
}

.task-filters input:not([type="hidden"]),
.task-filters select {
    padding: 13px 28px;
    color: var(--ink);
    background: #f7f4eb;
    border: 0;
    border-left: 3px solid #d7b44d;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 650;
}

.task-filters button,
.task-filters .button {
    flex: 0 0 auto;
    min-width: 140px;
    min-height: 56px;
    padding: 0 28px;
    font-size: 18px;
}

.task-table {
    min-width: 900px;
}

.task-table td {
    vertical-align: top;
}

.task-row {
    cursor: pointer;
    transition: background 140ms ease, box-shadow 140ms ease;
}

.task-row:hover {
    background: var(--gold-wash);
}

.task-row:focus-visible {
    outline: none;
    box-shadow: inset 4px 0 var(--gold), inset 0 0 0 2px var(--gold);
}

.task-table td small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
}

.task-active-sku-cell {
    white-space: nowrap;
}

.task-description-cell {
    min-width: 270px;
    max-width: 430px;
}

.task-description-cell p {
    margin: 6px 0 0;
    line-height: 1.45;
}

.task-status {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    color: #735000;
    background: #fff5cc;
    border: 1px solid #e2b830;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.task-status-in_progress {
    color: #174f80;
    background: #eaf4ff;
    border-color: #8db8df;
}

.task-status-completed {
    color: #17653a;
    background: #e8f7ee;
    border-color: #8bcba3;
}

.task-status-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.task-status-form button {
    min-height: 42px;
    padding: 8px 12px;
}

.task-detail-dialog {
    width: min(720px, calc(100% - 32px));
    height: min(650px, calc(100vh - 32px));
    height: min(650px, calc(100dvh - 32px));
    max-height: none;
    overflow: hidden;
}

.task-detail-dialog[open] {
    display: flex;
    flex-direction: column;
}

.task-detail-dialog>.product-dialog-header,
.task-detail-dialog>.task-detail-actions {
    flex: 0 0 auto;
}

.task-detail-body {
    min-height: 0;
    overflow-y: auto;
    flex: 1 1 auto;
}

.task-detail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 28px;
    margin: 0;
}

.task-detail-list>div {
    min-width: 0;
}

.task-detail-list .task-detail-wide {
    grid-column: 1 / -1;
}

.task-detail-list dt {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.task-detail-list dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-weight: 650;
    line-height: 1.45;
}

.task-detail-status-form {
    display: grid;
    gap: 7px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-weight: 750;
}

.task-detail-status-form>div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.task-detail-status-form select {
    min-height: 42px;
    flex: 1 1 auto;
}

.task-detail-status-form button {
    min-height: 42px;
}

.task-delete-control {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: auto;
}

.task-delete-control .danger:disabled,
.task-delete-control .danger:disabled:hover {
    color: #8b817f;
    background: #f3f0ed;
    border-color: #d8cfcc;
    box-shadow: none;
    cursor: not-allowed;
    opacity: .7;
    transform: none;
}

.task-delete-availability {
    color: var(--muted);
    font-size: 14px;
    white-space: nowrap;
}

.task-delete-confirmation-dialog {
    width: min(520px, calc(100% - 32px));
}

.task-delete-confirmation-header {
    background: linear-gradient(90deg, #fff0ef, #fffdf8);
    border-bottom-color: #f1b7b2;
}

.task-delete-confirmation-header h2 {
    color: #851a12;
}

.task-delete-confirmation-body {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: flex-start;
    gap: 16px;
}

.task-delete-confirmation-body p {
    margin: 0 0 8px;
    color: var(--muted);
    line-height: 1.45;
}

.task-delete-confirmation-body strong {
    display: block;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.35;
}

.task-delete-warning-icon {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    color: #a52218;
    background: #fff0ef;
    border: 1px solid #f1b7b2;
    border-radius: 50%;
    place-items: center;
}

.task-delete-warning-icon svg {
    width: 26px;
    height: 26px;
    fill: currentcolor;
}

.task-delete-confirmation-body .task-delete-warning-copy {
    margin: 12px 0 0;
    color: #851a12;
    font-weight: 750;
}

.task-delete-confirmation-actions .danger {
    color: #fff;
    background: #a52218;
    border-color: #851a12;
}

.task-delete-confirmation-actions .danger:hover {
    color: #fff;
    background: #851a12;
    border-color: #65110c;
}

.task-delete-confirmation-actions .danger:disabled {
    cursor: wait;
    opacity: 0.65;
}

.task-empty-state {
    padding: 60px 24px;
    color: var(--muted);
    text-align: center;
}

.task-empty-state h2 {
    margin: 0 0 8px;
    color: var(--ink);
}

.task-empty-state p {
    margin: 0 0 20px;
}

.product-task-panel {
    padding: 6px 0 0;
}

.product-task-layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.8fr) minmax(360px, 1.2fr);
    gap: 24px;
    height: 100%;
}

.product-task-create-card,
.product-task-history {
    min-width: 0;
    padding: 20px;
    background: #fffdf7;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.product-task-create-card h3,
.product-task-history h3 {
    margin: 0;
}

.product-task-create-card>p,
.product-task-history-heading p {
    margin: 5px 0 16px;
    color: var(--muted);
}

.product-task-form {
    display: grid;
    gap: 13px;
}

.product-task-form label {
    display: grid;
    gap: 6px;
}

.product-task-form label>span {
    font-weight: 750;
}

.product-task-form label small {
    color: var(--muted);
    font-weight: 500;
}

.product-task-form textarea {
    resize: vertical;
}

.product-task-form textarea::placeholder {
    font-weight: 400;
}

.product-task-active-sku {
    margin: 0;
    padding: 11px 13px;
    color: var(--muted);
    background: #fff8df;
    border: 1px solid #e4ca78;
    border-radius: 8px;
}

.product-task-active-sku strong {
    display: block;
    margin-top: 3px;
    color: var(--ink);
    font-size: 16px;
}

.product-task-form button {
    justify-self: start;
}

.product-task-history {
    min-height: 0;
    overflow-y: auto;
}

.product-task-history-heading,
.product-task-item-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

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

.product-task-item {
    padding: 15px;
    background: #fff;
    border: 1px solid #eadfbd;
    border-radius: 10px;
}

.product-task-item p {
    margin: 9px 0;
    line-height: 1.45;
}

.product-task-item .product-task-item-sku {
    color: var(--muted);
}

.product-task-item-sku strong {
    color: var(--ink);
}

.product-task-item small,
.product-task-item time,
.product-task-empty {
    color: var(--muted);
}

.product-task-item time {
    display: block;
    margin-top: 10px;
    font-size: 12px;
}

@media (max-width: 800px) {
    .product-task-layout {
        grid-template-columns: 1fr;
    }

    .task-view-tabs {
        display: flex;
    }

    .task-view-tabs a {
        min-width: 0;
        flex: 1 1 0;
    }

    .product-task-layout {
        height: auto;
    }

    .product-task-history {
        overflow: visible;
    }

    .task-detail-list {
        grid-template-columns: 1fr;
    }

    .task-detail-list .task-detail-wide {
        grid-column: 1;
    }

    .task-detail-status-form>div {
        align-items: stretch;
        flex-direction: column;
    }

    .task-delete-control {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .task-delete-availability {
        white-space: normal;
    }
}

@media (max-height: 820px) {
    .product-view-dialog {
        width: min(1120px, calc(100% - 20px));
        height: calc(100vh - 20px);
        max-height: calc(100vh - 20px);
        height: calc(100dvh - 20px);
        max-height: calc(100dvh - 20px);
        border-radius: 12px;
    }

    .product-view-dialog>.product-dialog-header {
        padding: 9px 20px 8px;
    }

    .product-view-heading h2 {
        font-size: 20px;
    }

    .product-view-heading-meta {
        min-height: 21px;
        margin-top: 2px;
    }

    .product-view-tabs {
        padding: 0 20px;
    }

    .product-view-tabs button {
        padding: 9px 12px 8px;
    }

    .product-view-tab-layout {
        gap: 18px;
        padding: 10px 20px 18px;
    }

    .product-label-form {
        grid-template-rows: auto minmax(150px, 1fr) auto;
        gap: 14px;
    }

    .product-label-information {
        gap: 10px;
    }

    .product-label-information-row,
    .product-label-settings-row {
        gap: 10px;
    }

    .product-label-information input,
    .product-label-information textarea,
    .product-label-information select {
        min-height: 36px;
        padding-top: 7px;
        padding-bottom: 7px;
    }

    .product-label-existing-sku-option {
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .product-label-preview {
        min-height: 150px;
        max-height: 220px;
    }

    .product-view-media-details {
        margin-bottom: 10px;
    }

    .product-view-image-gallery {
        height: min(320px, 46dvh);
    }
}

.pair-code {
    margin: 30px 0;
    color: var(--gold-deep);
    font-size: 52px;
    font-weight: 850;
    letter-spacing: .16em;
    text-shadow: 0 2px 0 var(--gold-soft);
}

.errorlist {
    color: #a52218;
}

helptext,
.helptext {
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 1679px) and (min-width: 1051px) {
    .product-floating-controls {
        display: none !important;
    }

    .outbound-page-layout-with-jump-menu {
        grid-template-columns: 210px minmax(0, 1fr);
        gap: 22px;
    }

    .outbound-jump-menu,
    .outbound-client-groups {
        grid-area: auto;
    }

    .outbound-jump-menu {
        width: auto;
        margin-left: 0;
    }

    .outbound-category-group .card-grid {
        grid-template-columns: repeat(2, minmax(300px, 1fr));
    }
}

@media (max-width: 1050px) and (min-width: 801px) {
    .product-floating-controls {
        display: none !important;
    }

    .outbound-page-layout {
        gap: 22px;
    }

    .outbound-jump-menu,
    .outbound-client-groups {
        grid-area: auto;
    }

    .outbound-jump-menu {
        width: 100%;
        max-height: 190px;
        margin-left: 0;
    }

    .outbound-jump-client-list {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .outbound-category-group .card-grid {
        grid-template-columns: repeat(2, minmax(300px, 1fr));
    }
}

@media (max-width: 980px) {
    .topbar {
        gap: 14px;
    }

    .topbar nav {
        gap: 0;
    }

    .account {
        gap: 8px;
    }

    .login-auth-card {
        right: 24px;
        width: 360px;
    }

    .product-storage-outbound-card.has-storage-add-panel {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        overflow-y: auto;
    }

    .product-storage-card-body.has-storage-add-panel {
        grid-column: 1;
        grid-row: 2;
        overflow: visible;
    }

    .product-storage-add-panel {
        grid-column: 1;
        grid-row: 3;
        padding-top: 12px;
        padding-left: 0;
        overflow: visible;
        border-top: 1px solid var(--border);
        border-left: 0;
    }

}

@media (max-width: 800px) {
    .product-floating-controls {
        display: none !important;
    }

    .topbar {
        height: auto;
        padding: 4px 24px;
        flex-wrap: wrap;
    }

    .brand img {
        height: 38px;
    }

    .topbar nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
        transform: none;
    }

    .topbar nav a {
        flex: 1 0 auto;
        text-align: center;
    }

    .account {
        margin-left: auto;
    }

    .container {
        margin-top: 24px;
        padding: 0 16px;
    }

    .login-showcase {
        height: auto;
        margin-top: 0;
    }

    .login-video-pane {
        height: min(500px, 62vh);
        min-height: 390px;
    }

    .login-auth-card {
        position: relative;
        top: auto;
        right: auto;
        width: calc(100% - 32px);
        max-width: 500px;
        margin: -58px auto 0;
    }

    .site-footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-footer nav {
        width: 100%;
        gap: clamp(5px, 1.4vw, 10px);
        justify-content: space-between;
        font-size: clamp(9px, 2.25vw, 12px);
    }

    .company-hero,
    .contact-layout,
    .company-section,
    .company-capability-grid {
        grid-template-columns: 1fr;
    }

    .company-hero,
    .contact-header {
        padding: 34px 24px;
    }

    .company-section {
        gap: 18px;
        padding: 28px 24px;
    }

    .company-support-card {
        padding: 28px 24px;
        align-items: stretch;
        flex-direction: column;
    }

    .company-support-card>.button {
        text-align: center;
    }

    .contact-form-card,
    .contact-success {
        padding: 28px 22px;
    }

    .contact-field-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-submit-row {
        align-items: stretch;
        flex-direction: column;
    }

    .connect-hero {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 20px;
        padding: 30px 24px;
    }

    .connect-hero img {
        width: 76px;
        height: 76px;
    }

    .connect-explanation {
        grid-template-columns: 1fr;
    }

    .connect-install-card {
        padding: 26px 20px;
    }

    .connect-download-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .connect-download-panel .button {
        text-align: center;
    }

    .connect-help {
        align-items: stretch;
        flex-direction: column;
    }

    .connect-help .button {
        text-align: center;
    }

    .policy-header {
        padding: 34px 24px;
    }

    .policy-introduction,
    .policy-page>section {
        padding: 26px 22px;
    }

    .policy-contents {
        grid-template-columns: 1fr;
    }

    .policy-contents strong {
        grid-row: auto;
    }

    .metric-grid,
    .two-columns,
    .card-grid,
    .account-settings-layout {
        grid-template-columns: 1fr;
    }

    .outbound-page-layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .outbound-jump-menu {
        grid-area: auto;
        width: 100%;
        top: 8px;
        max-height: 220px;
        margin-left: 0;
    }

    .outbound-client-groups {
        grid-area: auto;
    }

    .outbound-category-group .card-grid {
        grid-template-columns: 1fr;
    }

    .box-detail-dialog,
    .box-measurement-dialog {
        width: calc(100% - 16px);
        max-height: 92vh;
    }

    .box-detail-body,
    .box-measurement-dialog-body {
        padding: 18px;
    }

    .box-label-form,
    .shipping-label-panel {
        grid-template-columns: 1fr;
    }

    .shipping-label-actions {
        margin-top: 0;
    }

    .box-measurement-dialog .box-measurement-edit-line-box,
    .box-measurement-dialog .box-measurement-edit-line-weight {
        display: grid;
        grid-template-columns: auto 1fr auto 1fr auto 1fr;
    }

    .box-measurement-dialog .box-measurement-edit-line input,
    .box-measurement-dialog .box-measurement-edit-line [data-weight-value] {
        width: 100%;
        min-height: 48px;
        font-size: 17px;
    }

    .box-measurement-dialog .box-measurement-unit,
    .box-measurement-dialog [data-box-measurements-save],
    .box-measurement-dialog [data-box-packing-save] {
        min-height: 46px;
        font-size: 16px;
    }

    .box-measurement-dialog .box-measurement-edit-line-box .box-measurement-unit {
        grid-column: 1 / -1;
    }

    .box-measurement-dialog .box-measurement-edit-line-weight {
        grid-template-columns: 1fr;
    }

    .box-measurement-save-actions {
        width: 100%;
        margin-left: 0;
    }

    .box-measurement-save-actions button {
        flex: 1;
    }

    .storage-client-group .card-grid,
    .storage-store-grid,
    .storage-location-list li,
    .storage-product-summary dl,
    .storage-dialog-product dl {
        grid-template-columns: 1fr;
    }

    .storage-product-summary,
    .storage-dialog-product {
        display: grid;
    }

    .storage-store-line {
        display: grid;
        grid-template-columns: 1fr;
        justify-content: stretch;
    }

    .storage-store-labels {
        display: none;
    }

    .storage-component-form {
        grid-template-columns: 1fr;
    }

    .storage-store-line>span,
    .storage-store-line>input[name="quantity"],
    .storage-location-fields,
    .storage-store-line button {
        grid-column: auto;
        grid-row: auto;
    }

    .storage-location-fields {
        justify-self: start;
    }

    .storage-store-line button {
        grid-column: auto;
        justify-self: start;
        width: auto;
        min-width: 84px;
    }

    .storage-dialog-messages,
    .storage-new-unit-warning {
        right: 18px;
        left: 18px;
    }

    .storage-scan-form,
    .storage-location-list form {
        grid-template-columns: 1fr;
    }

    .account-settings-sidebar {
        position: static;
    }

    .settings-nav {
        display: flex;
        overflow-x: auto;
    }

    .settings-nav a {
        flex: 0 0 auto;
        border-bottom: 4px solid transparent;
        border-left: 0;
    }

    .settings-nav a.active {
        border-bottom-color: var(--gold);
        border-left: 0;
    }

    .account-settings-content {
        min-height: 0;
    }

    .settings-section {
        padding: 24px 20px 28px;
    }

    .settings-section-header {
        margin: -24px -20px 24px;
        padding: 20px;
    }

    .contact-info-form>h2 {
        margin-left: 0;
    }

    .contact-info-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .contact-phone-controls,
    .account-phone-controls {
        grid-template-columns: 1fr;
    }

    .password-settings-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .password-account-summary {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .password-account-summary dt {
        text-align: left;
    }

    .password-settings-row>label {
        padding-top: 0;
        text-align: left;
    }

    .password-settings-actions,
    .password-reset-option {
        margin-left: 0;
    }

    .contact-info-row>label {
        text-align: left;
    }

    .contact-info-checkbox-row>span,
    .contact-info-submit-row>span {
        display: none;
    }

    .contact-info-checkbox-row>.errorlist {
        grid-column: 1;
    }

    .page-heading {
        align-items: flex-start;
        gap: 15px;
        flex-direction: column;
    }

    .page-heading-actions {
        width: 100%;
    }

    .page-heading-actions .button {
        flex: 1;
        text-align: center;
    }

    .client-browser {
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 12px;
    }

    .client-filter-field {
        width: min(270px, 100%);
    }

    .client-empty-state {
        grid-column: 1;
    }

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

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

    .client-product-actions button {
        width: 100%;
    }

    .import-category-option {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .warehouse-product-search select {
        width: 100%;
    }

    .product-search-actions>button {
        width: 100%;
    }

    .product-category-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-category-primary-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .product-category-primary-actions .button {
        flex: 1;
        text-align: center;
    }

    .product-category-statistics {
        padding-left: 7px;
        white-space: normal;
    }

    .product-category-actions {
        margin-left: 0;
        padding-left: 7px;
    }

    .product-view-tab-layout,
    .product-view-details {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }

    .product-view-details .product-view-wide-field,
    .product-view-details>div,
    .product-view-existing-skus-field,
    .product-view-two-column-field,
    .product-view-half-column-field {
        grid-column: 1;
    }

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

    .product-view-image-gallery {
        height: 300px;
    }

    .product-view-tabs {
        padding: 0 16px;
    }

    .product-view-tab-layout {
        padding: 12px 16px 20px;
        overflow-y: auto;
    }

    .product-label-preview {
        height: 220px;
    }

    .product-label-information-row,
    .product-label-settings-row {
        grid-template-columns: 1fr;
    }

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

    .transparency-label-file {
        grid-template-columns: 1fr;
    }

    .transparency-label-action-row,
    .transparency-label-print-form {
        align-items: stretch;
        flex-direction: column;
    }

    .transparency-label-print-controls {
        flex-wrap: wrap;
    }

    .transparency-label-advanced-print,
    .transparency-label-print {
        flex: 1;
    }

    .product-label-actions>.primary {
        text-align: center;
    }

    .product-label-print-controls button {
        flex: 1;
    }

    .printer-status-label {
        display: none;
    }

    .printer-status-button {
        width: 42px;
        padding: 0;
        justify-content: center;
    }

    .printer-menu-chevron {
        display: none;
    }

    .printer-dropdown {
        right: -56px;
    }

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

    .filters input,
    .filters select,
    .filters button {
        width: 100%;
    }

    .invite-form p {
        grid-template-columns: 1fr;
    }

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

    .invite-form>p:has(#id_email),
    .invite-form>p:has(#id_role),
    .invite-form>p:has(#id_display_name),
    .invite-form-actions {
        grid-column: 1;
    }

    .membership-dialog-field-pair {
        grid-template-columns: minmax(0, 1fr);
    }

    .membership-dialog-field-pair>label {
        grid-column: 1;
    }

    .invite-form .helptext,
    .invite-form .errorlist {
        grid-column: 1;
    }

    .invite-form-actions {
        margin-left: 0;
    }

    .invite-form-actions button {
        width: 100%;
    }

    .toast-stack {
        right: 16px;
        bottom: 16px;
        width: calc(100vw - 32px);
    }
}
