/* Retro Regen brand: brand/rr-tokens.css (vendored unchanged) + the Customer Portal's dark theme (bible 3.3). */
@import url("/assets/rr-tokens.css");
@font-face{font-family:"Inter";font-style:normal;font-weight:100 900;font-display:swap;src:url("/assets/fonts/inter-latin-variable.woff2") format("woff2")}

:root {
    --rr-bg: var(--rr-charcoal);
    --rr-bg-deep: var(--rr-black);
    --rr-surface: var(--rr-card-dark);
    --rr-surface-raised: #2A2E32;
    --rr-surface-elevated: #2F3337;
    --rr-border: rgba(223, 201, 184, .38);
    --rr-border-soft: rgba(223, 201, 184, .2);
    --rr-orange-deep: var(--rr-orange-pressed);
    --rr-text: var(--rr-paper);
    --rr-text-secondary: #E6DFD5;
    --rr-text-muted: var(--rr-muted-dark);
    --rr-error: var(--rr-red-dark);
    --rr-success: var(--rr-green-dark);
    --rr-warning: var(--rr-yellow);
    --rr-info: var(--rr-cyan);
    --rr-shadow: 0 18px 46px rgba(0, 0, 0, .34);
    --rr-shadow-soft: 0 10px 26px rgba(0, 0, 0, .24);
    --rr-radius: 8px;
    --rr-radius-sm: 6px;
    --rr-font: var(--rr-font-body);

    --ink: var(--rr-text);
    --muted: var(--rr-text-muted);
    --line: var(--rr-border);
    --panel: var(--rr-surface);
    --band: var(--rr-surface-raised);
    --brand: var(--rr-orange);
    --brand-strong: var(--rr-orange-hover);
    --ok: var(--rr-success);
    --warn: var(--rr-warning);
    --bad: var(--rr-error);
    --shell: var(--rr-black);
}

/* One type family for the portal: Inter (Heath, 2026-10-15). */
h1, h2, h3, h4 {
    font-family: var(--rr-font-body);
    text-transform: none;
    letter-spacing: 0;
}

.final-balance-summary {
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 255, 255, .05);
}

.compact-breakdown {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) auto;
    gap: 6px 14px;
    margin: 8px 0;
}

.compact-breakdown dt {
    color: var(--muted);
}

.compact-breakdown dd {
    margin: 0;
    font-weight: 700;
    text-align: right;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--rr-bg);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--rr-text);
    background: linear-gradient(180deg, var(--rr-black) 0, var(--rr-bg) 320px);
    font-family: var(--rr-font);
    font-size: 15px;
    line-height: 1.5;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .85), rgba(0, 0, 0, .18));
}

a {
    color: var(--link);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--rr-orange);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.ui-button:focus-visible,
.ui-state-focus {
    outline: 2px solid var(--focus) !important;
    outline-offset: 2px;
}

h1,
h2,
h3 {
    color: var(--rr-text);
    letter-spacing: 0;
    line-height: 1.12;
}

h1 {
    margin: 0 0 8px;
    font-size: clamp(28px, 3.1vw, 42px);
    font-weight: 800;
}

h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

h3 {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 700;
}

p {
    margin: 0 0 12px;
}

main {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    padding: 34px 0 40px;
}

.subtle,
.hint,
.field-hint,
.field-help,
.muted-note,
.error-code,
.empty-state,
.head > span,
.panel-head > span {
    color: var(--rr-text-muted) !important;
}

.subtle {
    margin: 0 0 22px;
}

.field-help,
.hint {
    font-size: 13px;
    line-height: 1.4;
}

.field-help {
    margin: 0 0 8px;
}

.hint {
    margin-top: 8px;
}

.app-header,
body > header {
    position: sticky;
    top: 0;
    z-index: 1003;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 clamp(18px, 3vw, 34px);
    background: rgba(0, 0, 0, .96) !important;
    color: var(--rr-text);
    border-bottom: 4px solid var(--rr-orange) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .34);
    /* No backdrop-filter here: a filtered ancestor becomes the containing block for
       position: fixed descendants, so the mobile slide-out nav and its backdrop were
       sized to the 64px header strip and the menu links overflowed with no panel
       behind them. The header is 96% opaque, so the blur added nothing visible. */
}

.brand {
    color: var(--rr-text) !important;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0;
    text-decoration: none;
    white-space: nowrap;
}

.brand {
    font-size: 0;
}

.brand::before {
    content: "";
    width: 150px;
    height: 45px;
    flex: 0 0 150px;
    background: url("/assets/branding/rr-logo-header-600.webp") center / contain no-repeat;
}

.brand::after {
    content: "CUSTOMER PORTAL";
    font: 700 11px/1 var(--rr-font-body);
    letter-spacing: .12em;
    color: var(--rr-cream);
    padding: 4px 8px;
    border: 1px solid var(--rr-control);
    border-radius: 4px;
}

.brand:hover {
    color: var(--rr-orange-hover) !important;
}

.app-nav,
body > header nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}

.app-nav a,
body > header nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    color: var(--rr-text-secondary) !important;
    text-decoration: none;
    padding: 0 13px;
    border: 1px solid transparent;
    border-radius: var(--rr-radius-sm);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.app-nav a:hover,
body > header nav a:hover {
    border-color: var(--rr-border-soft);
    background: rgba(254, 150, 15, .12) !important;
    color: var(--rr-text) !important;
}

.app-nav a.active,
body > header nav a.active {
    background: var(--rr-orange) !important;
    border-color: var(--rr-orange) !important;
    color: var(--rr-black) !important;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .22), 0 8px 20px rgba(254, 150, 15, .18);
}

.app-nav a.logout-link {
    color: #ffd4c7 !important;
}

.app-nav a.logout-link:hover {
    border-color: rgba(217, 83, 79, .45);
    background: rgba(217, 83, 79, .12) !important;
    color: #ffd6d4 !important;
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--rr-border);
    border-radius: var(--rr-radius-sm);
    background: rgba(0, 0, 0, .32) !important;
    color: var(--rr-text);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    padding: 0;
}

.menu-button span,
.menu-button::before,
.menu-button::after {
    content: "";
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform .18s ease, opacity .18s ease;
}

body.nav-open .menu-button span {
    opacity: 0;
}

body.nav-open .menu-button::before {
    transform: translateY(6px) rotate(45deg);
}

body.nav-open .menu-button::after {
    transform: translateY(-6px) rotate(-45deg);
}

.nav-backdrop {
    display: none;
}

.portal-test-notice {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto 28px;
    padding: 14px 16px;
    border: 1px solid var(--rr-border);
    border-left: 4px solid var(--rr-orange);
    border-radius: var(--rr-radius);
    background: rgba(31, 31, 31, .92);
    color: var(--rr-text-secondary);
    box-shadow: var(--rr-shadow-soft);
    font-size: 14px;
    line-height: 1.4;
}

.portal-test-notice strong {
    display: block;
    margin-bottom: 4px;
    color: var(--rr-text);
}

.portal-test-notice a {
    color: var(--rr-orange-hover);
    font-weight: 700;
}

section,
.panel,
.metric,
.admin-card,
.admin-panel,
.error-panel,
.item-card,
.service-card,
.password-panel,
.reset-panel {
    background: linear-gradient(180deg, var(--rr-surface-raised), var(--rr-surface)) !important;
    border: 1px solid var(--rr-border-soft) !important;
    border-radius: var(--rr-radius);
    box-shadow: var(--rr-shadow-soft);
}

section {
    overflow: hidden;
    margin-bottom: 18px;
}

.panel {
    padding: 24px;
}

.head,
.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--rr-border-soft) !important;
    background: linear-gradient(180deg, rgba(254, 150, 15, .12), rgba(254, 150, 15, .045)) !important;
    color: var(--rr-text) !important;
    line-height: 1.3;
}

.head > strong,
.head > h2,
.panel-head > strong,
.panel-head > h2 {
    margin: 0;
    color: var(--rr-text);
    font-size: 16px;
    font-weight: 700;
}

.head > span,
.panel-head > span {
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: right;
    font-size: 13px;
}

.body,
.section-body,
.read-only-panel,
.primary-payment-body {
    padding: 18px;
}

.section-body-divided {
    border-bottom: 1px solid var(--rr-border-soft);
}

.metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.metric {
    position: relative;
    min-height: 104px;
    padding: 16px;
    overflow: hidden;
}

.metric::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--rr-orange);
}

.metric span,
.shipment-field-label {
    display: block;
    color: var(--rr-text-muted) !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.metric span {
    margin-bottom: 8px;
}

.metric strong {
    color: var(--rr-text);
    font-size: 20px;
    line-height: 1.2;
}

.metric-note {
    margin-top: 6px;
    color: var(--rr-text-muted);
    font-size: 13px;
    line-height: 1.35;
}

.payment-breakdown {
    margin: -6px 0 18px;
    padding: 14px 16px;
    border: 1px solid rgba(254, 150, 15, .36);
    border-radius: var(--rr-radius);
    background: rgba(254, 150, 15, .08);
}

.payment-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.payment-breakdown span {
    display: block;
    color: var(--rr-text-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.payment-breakdown strong {
    display: block;
    margin-top: 3px;
    color: var(--rr-text);
    font-size: 17px;
}

.payment-breakdown p {
    margin: 10px 0 0;
    color: var(--rr-text-secondary);
    font-size: 13px;
}

.primary-payment {
    background: linear-gradient(180deg, rgba(254, 150, 15, .16), rgba(37, 37, 37, .98)) !important;
    border-color: rgba(254, 150, 15, .65) !important;
}

.primary-payment .head {
    background: rgba(254, 150, 15, .18) !important;
    border-bottom-color: rgba(254, 150, 15, .45) !important;
}

.primary-payment-body {
    display: grid;
    gap: 10px;
}

.amount {
    color: var(--rr-text);
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.included-shipping-note {
    display: inline-block;
    margin-left: 6px;
    color: var(--rr-success);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    vertical-align: middle;
}

.notice,
.request-guidance,
.task-note,
.messages li,
.login-message,
.token-warning {
    border: 1px solid rgba(109, 174, 232, .36) !important;
    border-left: 4px solid var(--rr-info) !important;
    border-radius: var(--rr-radius);
    background: rgba(109, 174, 232, .12) !important;
    color: var(--rr-text-secondary) !important;
    line-height: 1.45;
}

.notice,
.request-guidance,
.task-note {
    margin: 0 0 18px;
    padding: 14px 16px;
}

.request-guidance {
    border-color: rgba(254, 150, 15, .48) !important;
    border-left-color: var(--rr-orange) !important;
    background: rgba(254, 150, 15, .13) !important;
}

.request-guidance strong {
    display: block;
    margin-bottom: 4px;
    color: var(--rr-text);
}

.task-note {
    border-color: rgba(242, 201, 76, .42) !important;
    border-left-color: var(--rr-warning) !important;
    background: rgba(242, 201, 76, .1) !important;
}

.messages,
.validation-messages {
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.messages li,
.login-message,
.logout-message,
.token-warning {
    padding: 12px 14px;
}

.logout-message,
.messages .ui-messages-info,
.ui-messages-info {
    border: 1px solid rgba(111, 191, 115, .42) !important;
    border-left: 4px solid var(--rr-success) !important;
    border-radius: var(--rr-radius);
    background: rgba(111, 191, 115, .12) !important;
    color: #dff4e0 !important;
}

.login-message,
.messages .ui-messages-error,
.ui-messages-error,
.ui-message-error {
    border-color: rgba(217, 83, 79, .48) !important;
    border-left-color: var(--rr-error) !important;
    background: rgba(217, 83, 79, .12) !important;
    color: #ffd8d6 !important;
}

.ui-messages,
.ui-message {
    color: var(--rr-text-secondary) !important;
}

.ui-message {
    display: block;
    margin-top: 6px;
    font-size: 13px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 13px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    text-align: left;
    vertical-align: top;
    font-size: 14px;
}

th {
    background: rgba(255, 255, 255, .045) !important;
    color: var(--rr-text-muted) !important;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

td {
    color: var(--rr-text-secondary);
}

tbody tr:hover {
    background: rgba(254, 150, 15, .06);
}

section.table-section,
section:has(table),
.table-scroll {
    overflow-x: auto;
    overflow-y: hidden;
}

.table-scroll table {
    min-width: 640px;
}

.order-link {
    color: var(--rr-orange-hover);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.order-link:hover {
    text-decoration: underline;
}

.status-badge,
.pill,
.status-pill,
.tbd-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    max-width: 100%;
    padding: 4px 9px;
    border: 1px solid rgba(254, 150, 15, .5) !important;
    border-radius: 999px;
    background: rgba(254, 150, 15, .14) !important;
    color: #ffd89c !important;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap; /* a pill reads as one phrase; the table section scrolls sideways when it must */
}

.status-badge.success,
.step.complete,
.icon-button.success.ui-button {
    border-color: rgba(111, 191, 115, .52) !important;
    background: rgba(111, 191, 115, .14) !important;
    color: #c9efcb !important;
}

.status-badge.warning,
.step.active,
.step.selected {
    border-color: rgba(242, 201, 76, .55) !important;
    background: rgba(242, 201, 76, .13) !important;
    color: #ffe69b !important;
}

.status-badge.error {
    border-color: rgba(217, 83, 79, .55) !important;
    background: rgba(217, 83, 79, .13) !important;
    color: #ffc4c1 !important;
}

label,
.field label,
.shipment-field-label {
    display: block;
    margin-bottom: 6px;
    color: var(--rr-text-secondary) !important;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.field-label-spaced {
    margin-top: 12px;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="file"],
select,
textarea,
.ui-inputfield,
.ui-selectonemenu,
.ui-inputnumber,
.ui-selectcheckboxmenu,
.read-only-value {
    width: 100%;
    min-height: 42px;
    box-sizing: border-box;
    border: 1px solid var(--rr-control) !important;
    border-radius: var(--rr-radius-sm) !important;
    background: rgba(0, 0, 0, .24) !important;
    color: var(--rr-text) !important;
    font: inherit;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="file"],
select,
textarea,
.ui-inputfield,
.read-only-value {
    padding: 9px 11px;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

.approval-message-field {
    margin-top: 16px;
}

.approval-message-field .field-help {
    margin: 0 0 8px;
}

.approval-message-input {
    min-height: 82px;
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, .46);
}

input:focus,
select:focus,
textarea:focus,
.ui-inputfield.ui-state-focus,
.ui-selectonemenu.ui-state-focus,
.ui-selectcheckboxmenu.ui-state-focus {
    border-color: var(--rr-orange) !important;
    box-shadow: 0 0 0 3px rgba(254, 150, 15, .18) !important;
    outline: none !important;
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--rr-orange);
}

.ui-selectonemenu-label,
.ui-selectcheckboxmenu-label {
    color: var(--rr-text) !important;
    padding: 9px 34px 9px 11px !important;
}

.ui-selectonemenu,
.ui-selectcheckboxmenu {
    display: block !important;
}

.ui-inputnumber input {
    width: 100% !important;
}

.ui-selectonemenu-trigger,
.ui-selectcheckboxmenu-trigger {
    background: transparent !important;
    border-left: 1px solid rgba(255, 255, 255, .12) !important;
    color: var(--rr-orange-hover) !important;
}

.ui-selectonemenu-panel,
.ui-selectcheckboxmenu-panel,
.ui-autocomplete-panel {
    border: 1px solid var(--rr-border) !important;
    border-radius: var(--rr-radius-sm) !important;
    background: #202020 !important;
    color: var(--rr-text) !important;
    box-shadow: var(--rr-shadow) !important;
}

.ui-selectonemenu-items,
.ui-selectcheckboxmenu-items,
.ui-autocomplete-items {
    background: #202020 !important;
    color: var(--rr-text) !important;
}

.ui-selectonemenu-item,
.ui-selectcheckboxmenu-list-item,
.ui-autocomplete-item {
    color: var(--rr-text-secondary) !important;
}

.ui-selectonemenu-item.ui-state-highlight,
.ui-selectonemenu-item:hover,
.ui-selectcheckboxmenu-list-item:hover,
.ui-autocomplete-item:hover {
    background: rgba(254, 150, 15, .18) !important;
    color: var(--rr-text) !important;
}

.ui-selectcheckboxmenu-panel .ui-selectcheckboxmenu-items-wrapper,
.ui-autocomplete-panel .ui-autocomplete-items,
.ui-selectonemenu-panel .ui-selectonemenu-items-wrapper {
    overscroll-behavior: contain;
}

.select-menu-panel,
.service-menu-panel,
.catalog-menu-panel {
    max-width: calc(100vw - 64px);
}

.service-menu-panel,
.catalog-menu-panel {
    width: min(920px, calc(100vw - 64px)) !important;
}

.service-menu-panel .ui-selectonemenu-items-wrapper,
.catalog-menu-panel .ui-selectcheckboxmenu-items-wrapper {
    max-height: 360px !important;
    overflow-x: hidden !important;
}

.select-menu-panel .ui-selectonemenu-items-wrapper {
    max-height: 320px !important;
    overflow-x: hidden !important;
}

.service-menu-panel .ui-selectonemenu-item,
.catalog-menu-panel .ui-selectcheckboxmenu-list-item {
    white-space: normal;
    line-height: 1.35;
    overflow-wrap: anywhere;
    padding-top: 9px;
    padding-bottom: 9px;
}

.catalog-menu-panel label {
    margin: 0;
    color: var(--rr-text-secondary) !important;
    font-size: 13px;
    line-height: 1.35;
    text-transform: none;
    white-space: normal;
    overflow-wrap: anywhere;
}

.catalog-menu-panel .ui-chkbox {
    flex: 0 0 auto;
    margin-top: 2px;
}

.button,
.btn,
button,
input[type="submit"],
.upload-choice,
.ui-button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--rr-border) !important;
    border-radius: var(--rr-radius-sm) !important;
    background: var(--rr-surface-raised) !important;
    color: var(--rr-paper) !important;
    cursor: pointer;
    font: inherit !important;
    font-family: var(--rr-font-body) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.2 !important;
    padding: 0 14px;
    text-align: center;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: none !important;
}

.button.primary,
.btn.primary,
.action-button.ui-button,
button.primary,
input[type="submit"].primary,
.ui-button.primary {
    background: var(--rr-orange) !important;
    border-color: var(--rr-orange) !important;
    color: var(--rr-charcoal) !important;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .22) !important;
}

.button.primary:hover,
.btn.primary:hover,
.action-button.ui-button:hover,
button.primary:hover,
input[type="submit"].primary:hover,
.ui-button.primary:hover {
    background: var(--rr-orange-hover) !important;
    border-color: var(--rr-orange-hover) !important;
    color: var(--rr-charcoal) !important;
}

.button.secondary,
.btn.secondary,
button.secondary,
input[type="submit"].secondary,
.button:not(.primary):not(.danger),
.btn:not(.primary):not(.danger) {
    background: var(--rr-surface-raised) !important;
    border-color: var(--rr-control) !important;
    color: var(--rr-paper) !important;
}

.button.secondary:hover,
.btn.secondary:hover,
button.secondary:hover,
input[type="submit"].secondary:hover,
.button:not(.primary):not(.danger):hover,
.btn:not(.primary):not(.danger):hover {
    background: var(--rr-surface-elevated) !important;
    border-color: var(--rr-orange) !important;
    color: var(--rr-paper) !important;
}

.btn.danger,
.button.danger,
.button.danger.ui-button,
button.danger,
input[type="submit"].danger,
.icon-button.danger.ui-button {
    border-color: rgba(255, 122, 110, .55) !important;
    color: var(--rr-red-dark) !important;
    background: rgba(255, 122, 110, .12) !important;
}

.btn.danger:hover,
.button.danger:hover,
.button.danger.ui-button:hover,
button.danger:hover,
input[type="submit"].danger:hover,
.icon-button.danger.ui-button:hover {
    background: rgba(217, 83, 79, .2) !important;
}

.btn.disabled,
.button.disabled,
.btn:disabled,
.button:disabled,
button:disabled,
input[type="submit"]:disabled,
span.btn,
span.button {
    background: rgba(255, 255, 255, .06) !important;
    border-color: rgba(255, 255, 255, .12) !important;
    color: rgba(255, 255, 255, .46) !important;
    cursor: default !important;
    text-decoration: none !important;
}

.btn.ui-button,
.button.ui-button {
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

.btn.ui-button .ui-button-text,
.button.ui-button .ui-button-text,
.action-button.ui-button .ui-button-text,
.ui-button .ui-button-text {
    display: inline-flex !important;
    justify-content: center;
    padding: 0 !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: 1.2 !important;
    text-transform: none !important;
}

.button-row,
.actions,
.row-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.actions,
.row-actions {
    justify-content: flex-end;
}

.button-row {
    margin: 14px 0 0;
}

.table-action {
    margin-top: 8px;
    min-height: 32px;
    padding: 0 10px;
    font-size: 13px !important;
}

.secondary-action {
    color: #ffc9c6 !important;
    font-size: 13px;
}

.grid,
.form-grid,
.field-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.grid {
    align-items: start;
}

.form-grid,
.field-row {
    align-items: end;
}

.field-row {
    margin: 12px 0 16px;
}

.field-row.two,
.preference-grid,
.address-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wide,
.notes-field {
    grid-column: 1 / -1;
}

.section-title,
.form-section-title {
    margin: 22px 0 12px;
    color: var(--rr-text);
    font-size: 18px;
}

.readonly-value,
.read-only-value {
    display: flex;
    min-height: 42px;
    align-items: center;
    overflow-wrap: anywhere;
}

.checkbox-row,
.check-field {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--rr-radius-sm);
    background: rgba(0, 0, 0, .24);
    color: var(--rr-text-secondary);
}

.checkbox-row input[type="checkbox"],
.check-field input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-height: 0;
    flex: 0 0 18px;
    padding: 0;
}

.choice-panel,
.address-option {
    border: 1px solid var(--rr-border-soft);
    border-radius: var(--rr-radius);
    background: rgba(0, 0, 0, .18);
}

.choice-panel {
    margin: 14px 0;
    padding: 14px 16px;
}

.approval-config-summary {
    display: grid;
    gap: 8px;
    margin: 12px 0;
    padding: 13px 15px;
    border: 1px solid rgba(245, 158, 11, .7);
    border-left: 4px solid var(--rr-orange);
    border-radius: var(--rr-radius-sm);
    background: linear-gradient(135deg, rgba(245, 158, 11, .18), rgba(14, 165, 233, .08));
    box-shadow: 0 12px 30px rgba(0, 0, 0, .16);
}

.approval-config-summary-bottom {
    position: sticky;
    bottom: 10px;
    z-index: 3;
}

.approval-config-summary div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.approval-config-summary .approval-config-initial,
.approval-config-summary .approval-config-balance {
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, .16);
}

.service-choice-upfront {
    color: #fef3c7;
}

.approval-config-summary span {
    color: var(--rr-text-secondary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.approval-config-summary strong {
    color: #fff;
    font-size: 22px;
    line-height: 1.15;
}

.approval-config-summary p {
    margin: 0;
    color: var(--rr-text-secondary);
}

.approval-config-credit-note {
    font-size: 13px;
}

.option-set-choice + .option-set-choice {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--rr-border-soft);
}

.option-set-choice {
    border: 1px solid rgba(255, 255, 255, .12);
    border-left: 4px solid rgba(255, 255, 255, .24);
    border-radius: var(--rr-radius-sm);
    padding: 13px 14px;
    background: rgba(255, 255, 255, .035);
}

.option-set-choice.alternate-choice-set {
    border-left-color: var(--rr-orange);
    background: linear-gradient(135deg, rgba(245, 158, 11, .16), rgba(255, 255, 255, .03));
}

.option-set-choice.optional-choice-set {
    border-left-color: #38bdf8;
    background: linear-gradient(135deg, rgba(56, 189, 248, .16), rgba(255, 255, 255, .03));
}

.choice-set-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-bottom: 3px;
}

.choice-set-heading strong {
    color: var(--rr-text);
    font-size: 16px;
    line-height: 1.25;
}

.service-choice-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.service-choice-row {
    display: grid !important;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px 12px;
    margin: 0 !important;
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--rr-radius-sm);
    background: rgba(0, 0, 0, .18);
    color: var(--rr-text-secondary) !important;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400 !important;
    line-height: 1.35 !important;
    text-transform: none !important;
    transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.service-choice-row:hover {
    border-color: rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .045);
}

.service-choice-row input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
}

/* Draft preview: the same rows without inputs, so nothing looks clickable. */
.service-choice-row.service-choice-preview,
.service-choice-row.service-choice-preview:hover {
    cursor: default;
    border-color: rgba(255, 255, 255, .12);
    background: rgba(0, 0, 0, .18);
}

.service-choice-marker {
    display: block;
    width: 16px;
    height: 16px;
    margin: 3px 0 0 1px;
    border: 2px solid rgba(255, 255, 255, .28);
    border-radius: 50%;
}

.choice-panel-preview .choice-set-heading::after {
    content: "Preview";
    margin-left: auto;
    padding: 2px 8px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    color: var(--rr-text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.service-choice-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.service-choice-title {
    color: var(--rr-text);
    font-weight: 850;
    line-height: 1.25;
}

.service-choice-detail {
    color: var(--rr-text-muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
}

.service-choice-price {
    justify-self: end;
    min-width: max-content;
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    color: var(--rr-text-secondary);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: none;
}

.alternate-choice-set .service-choice-row:not(.remove-choice-row) .service-choice-price {
    border-color: rgba(245, 158, 11, .38);
    color: #fed7aa;
}

.optional-choice-set .service-choice-row:not(.remove-choice-row) .service-choice-price {
    border-color: rgba(56, 189, 248, .38);
    color: #bae6fd;
}

.remove-choice-row .service-choice-price {
    border-color: rgba(248, 113, 113, .3);
    color: #fecaca;
}

.alternate-choice-set .choice-selected:not(.remove-choice-row) {
    border-color: rgba(245, 158, 11, .72);
    background: rgba(245, 158, 11, .18);
    box-shadow: inset 4px 0 0 var(--rr-orange);
    color: var(--rr-text) !important;
}

.optional-choice-set .choice-selected:not(.remove-choice-row) {
    border-color: rgba(56, 189, 248, .72);
    background: rgba(56, 189, 248, .18);
    box-shadow: inset 4px 0 0 #38bdf8;
    color: var(--rr-text) !important;
}

.remove-choice-row.choice-selected {
    border-color: rgba(248, 113, 113, .7);
    background: rgba(248, 113, 113, .16);
    box-shadow: inset 4px 0 0 #f87171;
    color: var(--rr-text) !important;
}

.choice-kind-badge {
    display: inline-flex;
    width: fit-content;
    margin: 0 0 8px;
    padding: 3px 8px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    color: var(--rr-text-secondary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.2;
    text-transform: uppercase;
}

.optional-choice-set .choice-kind-badge {
    border-color: rgba(56, 189, 248, .45);
    color: #bae6fd;
}

.alternate-choice-set .choice-kind-badge {
    border-color: rgba(245, 158, 11, .55);
    color: #fed7aa;
}

.approval-choice-cost-data {
    display: none;
}

@media (max-width: 700px) {
    .service-choice-row {
        grid-template-columns: 20px minmax(0, 1fr);
    }

    .service-choice-price {
        grid-column: 2;
        justify-self: start;
    }
}

.address-options {
    display: grid;
    gap: 12px;
    margin: 12px 0 16px;
}

.address-option {
    padding: 14px;
    color: var(--rr-text-secondary);
}

.address-option strong {
    display: block;
    margin-bottom: 6px;
    color: var(--rr-text);
}

.money-field {
    display: flex;
    align-items: center;
    gap: 6px;
}

.money-field span {
    color: var(--rr-text-secondary);
    font-weight: 700;
}

.money-field input {
    min-width: 0;
}

.item-card {
    padding: 16px;
    margin-bottom: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(0, 0, 0, .12)) !important;
}

.item-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--rr-text);
    font-weight: 700;
}

.item-title > span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.item-title > span:first-child::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--rr-orange);
    box-shadow: 0 0 18px rgba(254, 150, 15, .5);
}

.button.item-remove {
    width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    border-radius: 50% !important;
    font-size: 16px !important;
    line-height: 1;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.photo-input,
input[type="file"].photo-input {
    min-height: 44px;
    padding: 8px;
}

.help-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    gap: 18px;
    align-items: start;
}

.support-card {
    border-color: rgba(254, 150, 15, .6) !important;
    background: linear-gradient(180deg, rgba(254, 150, 15, .14), var(--rr-surface)) !important;
}

.support-card .head {
    background: rgba(254, 150, 15, .17) !important;
    border-bottom-color: rgba(254, 150, 15, .45) !important;
}

.support-email-line a {
    margin-left: 4px;
    color: var(--rr-orange);
    font-weight: 700;
}

.copy-status {
    margin: 10px 0 0;
    color: var(--rr-text-muted);
    font-size: 13px;
    line-height: 1.45;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.quick-links a {
    display: block;
    min-height: 86px;
    padding: 13px;
    border: 1px solid var(--rr-border-soft);
    border-radius: var(--rr-radius);
    background: rgba(0, 0, 0, .18);
    color: var(--rr-text);
    font-weight: 700;
    text-decoration: none;
}

.quick-links a:hover {
    border-color: var(--rr-orange);
    background: rgba(254, 150, 15, .1);
}

.quick-links span {
    display: block;
    margin-top: 4px;
    color: var(--rr-text-muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
}

.step-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.step-list li {
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--rr-radius);
    padding: 12px 13px;
    background: rgba(0, 0, 0, .16);
    color: var(--rr-text-secondary);
}

.step-list strong {
    display: block;
    margin-bottom: 4px;
    color: var(--rr-text);
    font-weight: 700;
}

details {
    border-top: 1px solid rgba(255, 255, 255, .1);
}

details:first-of-type {
    border-top: 0;
}

summary {
    cursor: pointer;
    padding: 15px 18px;
    color: var(--rr-text);
    font-weight: 700;
}

summary::marker {
    color: var(--rr-orange);
}

details div {
    padding: 0 18px 18px;
    color: var(--rr-text-secondary);
}

.contact-list {
    margin: 0;
    padding-left: 18px;
    color: var(--rr-text-secondary);
    line-height: 1.55;
}

.shipment-list {
    display: grid;
}

.shipment-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.shipment-item:last-child {
    border-bottom: 0;
}

.shipment-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 14px;
}

.shipment-field {
    min-width: 0;
}

.shipment-field-label {
    margin-bottom: 5px;
}

.shipment-value {
    color: var(--rr-text-secondary);
    font-size: 14px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.shipment-value strong {
    color: var(--rr-text);
    font-size: 15px;
}

.shipment-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
    min-width: 0;
}

.shipment-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    align-content: start;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--rr-radius);
    background: rgba(0, 0, 0, .16);
}

.label-review-form {
    min-width: 0;
}

.empty-state {
    padding: 18px;
}

.label-verify-card {
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 16px;
    border: 1px solid rgba(242, 201, 76, .55);
    border-radius: var(--rr-radius);
    background: rgba(242, 201, 76, .1);
}

.label-verify-card strong {
    display: block;
    color: var(--rr-text);
}

.label-verify-card p {
    margin: 0;
    line-height: 1.35;
}

.label-verify-card .label-recovery {
    padding: 9px 10px;
    border: 1px solid rgba(254, 150, 15, .34);
    border-radius: var(--rr-radius-sm);
    background: rgba(0, 0, 0, .18);
    color: #ffe0ad;
}

.label-verify-card .button {
    justify-content: center;
    text-align: center;
}

.read-only-panel {
    display: block;
}

.profile-lock-notice {
    margin: 0 0 16px;
}

.icon-button.ui-button,
.icon-link {
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--rr-radius-sm);
    border: 1px solid var(--rr-border);
    background: rgba(254, 150, 15, .12);
    color: var(--rr-orange-hover);
    text-decoration: none;
    box-shadow: none;
}

.icon-button.ui-button .ui-button-text {
    display: none;
}

.icon-button.ui-button .ui-button-icon-left {
    position: static;
    margin: 0;
    transform: none;
}

.icon-button.ui-button:hover,
.icon-link:hover {
    background: rgba(254, 150, 15, .2);
    border-color: var(--rr-orange);
    color: var(--rr-orange-hover);
}

.icon-button.primary.ui-button {
    background: var(--rr-orange);
    border-color: var(--rr-orange);
    color: var(--rr-black);
}

.metric-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.metric-link:hover {
    border-color: var(--rr-orange);
}

.ui-dialog,
.ui-dialog .ui-dialog-content,
.ui-dialog .ui-dialog-titlebar {
    background: var(--rr-surface) !important;
    color: var(--rr-text) !important;
    border-color: var(--rr-border-soft) !important;
}

.ui-dialog .ui-dialog-titlebar {
    border-bottom: 1px solid var(--rr-border-soft) !important;
}

.ui-widget-overlay {
    background: rgba(0, 0, 0, .72) !important;
}

.auth-page,
body:has(.login-panel),
body:has(.password-panel),
body:has(.reset-panel) {
    min-height: 100vh;
    display: grid;
    grid-template-rows: 1fr auto;
    place-items: center;
    padding: 28px 20px;
}

.login-panel,
.password-panel,
.reset-panel {
    width: min(470px, 100%);
    overflow: hidden;
}

.login-panel {
    box-shadow: 0 22px 70px rgba(0, 0, 0, .48);
}

.login-head,
.password-panel-head,
.reset-panel-head,
.error-head {
    padding: 24px 26px 22px;
    border-bottom: 1px solid var(--rr-border) !important;
    background: var(--rr-surface) !important;
    color: var(--rr-text) !important;
}

.login-head::after,
.password-panel-head::after,
.reset-panel-head::after {
    content: "";
    display: block;
    width: 84px;
    height: 3px;
    margin-top: 18px;
    border-radius: 999px;
    background: var(--rr-orange);
}

.login-head h1,
.password-panel-head h1,
.reset-panel-head h1,
.error-head h1 {
    margin: 0 0 7px;
    color: var(--rr-cream);
    font-size: 25px;
}

.login-head p,
.password-panel-head p,
.reset-panel-head p,
.error-head p {
    margin: 0;
    color: var(--rr-text-secondary) !important;
    line-height: 1.45;
}

.login-logo {
    display: block;
    width: min(300px, 100%);
    height: auto;
    margin: 0 0 18px;
}

.brand-logo-wide {
    display: block;
    max-width: min(460px, 100%);
    height: auto;
}

.login-body,
.password-panel-body,
.reset-panel-body {
    display: grid;
    gap: 16px;
    padding: 24px 26px 26px;
}

.login-body input[type="submit"],
.password-panel-body input[type="submit"],
.reset-panel-body input[type="submit"] {
    width: 100%;
}

.login-note {
    padding: 12px 13px;
    border: 1px solid var(--rr-border-soft);
    border-radius: var(--rr-radius);
    background: rgba(254, 150, 15, .08);
    color: var(--rr-text-secondary);
    font-size: 14px;
}

.login-note strong {
    color: var(--rr-text);
}

.login-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

main.dashboard-shell {
    width: min(1240px, calc(100% - 48px));
    display: grid;
    grid-template-columns: minmax(190px, 230px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.dashboard-main {
    min-width: 0;
}

.dashboard-rail {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 14px;
    padding: 12px;
    background: linear-gradient(180deg, rgba(37, 37, 37, .94), rgba(15, 15, 15, .96)) !important;
    border: 1px solid var(--rr-border-soft);
    border-radius: var(--rr-radius);
    box-shadow: var(--rr-shadow-soft);
}

.dashboard-rail-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 12px;
    border-bottom: 1px solid var(--rr-border-soft);
    color: var(--rr-text) !important;
    font-weight: 700;
    text-decoration: none;
}

/* The sidebar mark is the L5 RR badge image, never typed initials (brand bible 2). */
.rail-mark {
    display: inline-block;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    background: url("/assets/branding/rr-badge-192.png") center / contain no-repeat;
    color: transparent;
    font-size: 0;
    overflow: hidden;
}

.dashboard-rail-nav {
    display: grid;
    gap: 7px;
}

.dashboard-rail-nav a {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    min-height: 44px;
    gap: 10px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: var(--rr-radius-sm);
    color: var(--rr-text-secondary) !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.dashboard-rail-nav a:hover {
    border-color: var(--rr-border-soft);
    background: rgba(254, 150, 15, .1);
    color: var(--rr-text) !important;
}

.dashboard-rail-nav a.active {
    border-color: var(--rr-orange);
    background: linear-gradient(180deg, var(--rr-orange-hover), var(--rr-orange));
    color: var(--rr-black) !important;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .22), 0 8px 20px rgba(254, 150, 15, .18);
}

.rail-icon {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--rr-radius-sm);
    background: rgba(0, 0, 0, .22);
    color: inherit;
    font-size: 12px;
    font-weight: 700;
}

.rail-icon.pi {
    font-size: 15px;
    font-weight: normal;
}

.dashboard-rail-nav a.active .rail-icon {
    border-color: rgba(0, 0, 0, .18);
    background: rgba(0, 0, 0, .12);
}

.dashboard-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    padding: 24px;
    border-color: rgba(254, 150, 15, .58) !important;
    background:
        linear-gradient(135deg, rgba(254, 150, 15, .16), transparent 42%),
        linear-gradient(180deg, #242424, #171717) !important;
}

.dashboard-hero h1 {
    margin-bottom: 8px;
}

.dashboard-hero p {
    max-width: 680px;
    margin: 0;
    color: var(--rr-text-secondary);
}

.dashboard-kicker {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--rr-orange-hover);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.dashboard-hero-action {
    min-width: min(260px, 100%);
    padding: 13px 14px;
    border: 1px solid var(--rr-border-soft);
    border-radius: var(--rr-radius);
    background: rgba(0, 0, 0, .18);
}

.dashboard-hero-action span {
    display: block;
    margin-bottom: 4px;
    color: var(--rr-text-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.dashboard-hero-action strong {
    display: block;
    color: var(--rr-text);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.stat-card,
.workflow-card {
    border: 1px solid var(--rr-border-soft);
    border-radius: var(--rr-radius);
    background: linear-gradient(180deg, rgba(37, 37, 37, .98), rgba(20, 20, 20, .98));
    box-shadow: var(--rr-shadow-soft);
}

.stat-card {
    min-height: 134px;
    padding: 16px;
}

.stat-card.accent {
    border-color: rgba(254, 150, 15, .6);
    background: linear-gradient(180deg, rgba(254, 150, 15, .16), rgba(31, 31, 31, .98));
}

.stat-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--rr-text-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.stat-card strong {
    display: block;
    margin-bottom: 8px;
    color: var(--rr-text);
    font-size: 24px;
    line-height: 1.15;
}

.stat-card p {
    margin: 0;
    color: var(--rr-text-secondary);
    font-size: 13px;
    line-height: 1.4;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.workflow-card {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 14px;
    min-height: 260px;
    padding: 16px;
}

.workflow-number {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--rr-orange-hover), var(--rr-orange));
    color: var(--rr-black);
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(254, 150, 15, .16);
}

.workflow-card h2 {
    margin-bottom: 8px;
    font-size: 18px;
}

.workflow-card p {
    margin: 0;
    color: var(--rr-text-secondary);
}

.workflow-card .button {
    width: 100%;
}

.dashboard-orders {
    scroll-margin-top: 96px;
}

.compact-hero {
    align-items: center;
}

.summary-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.summary-card,
.empty-state-card {
    border: 1px solid var(--rr-border-soft);
    border-radius: var(--rr-radius);
    background: linear-gradient(180deg, rgba(37, 37, 37, .98), rgba(20, 20, 20, .98));
    box-shadow: var(--rr-shadow-soft);
}

.summary-card {
    display: grid;
    gap: 14px;
    padding: 16px;
}

.summary-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.summary-card-head span:first-child,
.summary-data span {
    display: block;
    margin-bottom: 5px;
    color: var(--rr-text-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.summary-card-head strong,
.summary-data strong {
    color: var(--rr-text);
    font-size: 18px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.summary-card-body {
    display: grid;
    gap: 12px;
}

.summary-card-body p,
.summary-card p {
    margin: 0;
    color: var(--rr-text-secondary);
}

.invoice-data-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.summary-data {
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--rr-radius);
    background: rgba(0, 0, 0, .18);
}

.summary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.summary-actions .button {
    flex: 1 1 180px;
}

.empty-state-card {
    grid-column: 1 / -1;
    padding: 24px;
}

.empty-state-card h2 {
    margin-bottom: 8px;
}

.empty-state-card p {
    max-width: 680px;
    color: var(--rr-text-secondary);
}

@media (max-width: 900px) {
    main {
        width: min(100% - 36px, 1120px);
        padding-top: 24px;
    }

    main.dashboard-shell {
        width: min(100% - 36px, 1120px);
        display: block;
    }

    .dashboard-rail {
        display: none;
    }

    .dashboard-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .workflow-grid,
    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .summary-card-grid,
    .invoice-data-grid,
    .payment-breakdown-grid {
        grid-template-columns: 1fr;
    }

    .help-grid,
    .shipment-item {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .metrics,
    .dashboard-stats,
    .workflow-grid,
    .grid,
    .form-grid,
    .field-row,
    .field-row.two,
    .preference-grid,
    .address-options,
    .shipment-main,
    .shipment-action-grid,
    .photo-grid,
    .quick-links {
        grid-template-columns: 1fr;
    }

    .head,
    .panel-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .head > span,
    .panel-head > span {
        text-align: left;
    }

    .button-row,
    .actions,
    .row-actions {
        align-items: stretch;
        justify-content: stretch;
    }

    .button-row .button,
    .button-row .btn,
    .button-row input[type="submit"],
    .button-row .ui-button,
    .actions .button,
    .actions .btn,
    .actions input[type="submit"],
    .actions .ui-button,
    .row-actions .button,
    .row-actions .btn,
    .row-actions input[type="submit"],
    .row-actions .ui-button {
        width: 100%;
    }
}

@media (max-width: 700px) {
    body.nav-open {
        overflow: hidden;
    }

    .app-header,
    body > header {
        min-height: 64px;
        padding: 0 16px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .brand {
        font-size: 18px;
    }

    .brand::before {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .menu-button {
        display: inline-flex;
        position: relative;
        z-index: 1005;
    }

    .app-nav,
    body > header nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(310px, 84vw);
        z-index: 1004;
        display: none;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: flex-start;
        gap: 8px;
        padding: 82px 18px 18px;
        background: #151515 !important;
        box-shadow: -20px 0 42px rgba(0, 0, 0, .5);
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease, visibility .2s ease;
        visibility: hidden;
    }

    .app-nav a,
    body > header nav a {
        width: 100%;
        justify-content: flex-start;
        min-height: 44px;
        padding: 0 12px;
        text-align: left;
    }

    body.nav-open .app-nav,
    body.nav-open > header nav {
        display: flex;
        opacity: 1;
        pointer-events: auto;
        visibility: visible;
    }

    .nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1002;
        border: 0 !important;
        border-radius: 0 !important;
        background: rgba(0, 0, 0, .66) !important;
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease;
    }

    body.nav-open .nav-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    h1 {
        font-size: 28px;
    }

    .portal-test-notice {
        width: auto;
        margin: 0 18px 24px;
    }

    .auth-page,
    body:has(.login-panel),
    body:has(.password-panel),
    body:has(.reset-panel) {
        padding: 18px;
    }
}

@media (max-width: 700px) {
    .app-header .token-nav {
        position: static;
        inset: auto;
        width: auto;
        height: auto;
        z-index: auto;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        padding: 0;
        background: transparent !important;
        box-shadow: none;
        transform: none;
        transition: none;
    }

    .app-header .token-nav a {
        min-height: 38px;
        width: auto;
        padding: 0 10px;
    }
}

/* Messages with Retro Regen: the conversation attached to an order. */
.message-notice a {
    font-weight: 700;
}

.message-thread {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
}

.message-entry {
    border: 1px solid var(--rr-border, #d9dfeb);
    border-left-width: 4px;
    border-radius: var(--rr-radius, 8px);
    margin-bottom: 10px;
    padding: 12px 14px;
}

.message-entry.from-shop {
    border-left-color: var(--rr-orange, #f29a22);
    background: rgba(254, 150, 15, .08);
}

.message-entry.from-customer {
    border-left-color: var(--rr-info, #6daee8);
    background: rgba(109, 174, 232, .10);
}

.message-meta {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    font-size: 13px;
}

.message-meta span {
    color: var(--rr-text-secondary, #5d6880);
}

.message-subject {
    font-weight: 600;
    margin-top: 6px;
}

.message-text {
    font-family: inherit;
    font-size: inherit;
    line-height: 1.45;
    margin: 8px 0 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.message-attachments {
    color: var(--rr-text-secondary, #5d6880);
    font-size: 13px;
    margin: 8px 0 0;
}

.message-form textarea {
    box-sizing: border-box;
    width: 100%;
}

/* Portal message center (2026-09-24) */
.nav-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--rr-orange); color: var(--rr-black); font-size: 12px; font-weight: 700; }
.app-nav a.active .nav-badge { background: var(--rr-black); color: var(--rr-orange); }
.messages-center { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 16px; align-items: start; }
.conversation-list { padding: 0; overflow: hidden; }
.conversation-empty { padding: 14px 16px; }
.conversation-item { display: block; padding: 12px 16px; border-top: 1px solid var(--rr-border-soft); text-decoration: none; color: var(--rr-text); }
.conversation-item:hover { background: rgba(254, 150, 15, .08); }
.conversation-item.active { background: rgba(254, 150, 15, .14); box-shadow: inset 3px 0 0 var(--rr-orange); }
.conversation-item.awaiting .conversation-title strong::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--rr-orange); }
.conversation-title { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.conversation-preview { display: block; margin-top: 4px; color: var(--rr-text-secondary); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; font-size: 12px; color: var(--rr-text-secondary); }
.awaiting-pill { background: rgba(254, 150, 15, .18); color: var(--rr-orange); border-color: rgba(254, 150, 15, .5); }
.conversation-panel { margin: 0; }
@media (max-width: 900px) { .messages-center { grid-template-columns: 1fr; } }

/* Help page guide (2026-09-24): cards, step infographics, callouts, short FAQ */
main.help-page { width: min(980px, calc(100% - 32px)); }
.help-page section.help-block { overflow: visible; margin: 0; padding: 34px 0 30px; background: none !important; border: 0 !important; border-top: 1px solid rgba(255, 255, 255, .08) !important; border-radius: 0; box-shadow: none; }
.help-hero h1 { margin: 0 0 6px; font-size: 34px; }
.help-hero p { margin: 0 0 22px; color: var(--rr-text-muted); }
.help-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.help-card { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--rr-radius); background: var(--rr-surface); color: var(--rr-text) !important; text-decoration: none; transition: border-color .15s, transform .15s; }
.help-card:hover { border-color: var(--rr-border); transform: translateY(-1px); }
.help-card strong { font-size: 16px; }
.help-card span:last-child { color: var(--rr-text-muted); font-size: 13px; }
.help-card-icon { color: var(--rr-orange); font-size: 18px; margin-bottom: 6px; }
.help-callout { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0; padding: 12px 16px; border-left: 3px solid var(--rr-orange); border-radius: var(--rr-radius-sm); background: rgba(254, 150, 15, .09); color: var(--rr-text-secondary); line-height: 1.45; }
.help-callout > .pi { color: var(--rr-orange); margin-top: 2px; }
.help-callout strong { color: var(--rr-text); }
.help-callout-warn { color: #ffc978; }
.help-callout-warn strong { color: #ffc978; }
.help-journey { display: flex; justify-content: center; gap: 0; margin: 26px 0 6px; padding: 0; list-style: none; }
.help-journey li { display: flex; align-items: center; }
.help-journey li + li::before { content: ""; width: 48px; height: 2px; margin: 0 10px; background: var(--rr-border); }
.help-journey a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--rr-border-soft); border-radius: 999px; color: var(--rr-text) !important; font-weight: 700; font-size: 14px; text-decoration: none; }
.help-journey a:hover { border-color: var(--rr-orange); background: rgba(254, 150, 15, .1); }
.help-journey .pi { color: var(--rr-orange); }
.help-kicker { display: block; margin-bottom: 6px; color: var(--rr-orange); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.help-block h2 { margin: 0 0 6px; font-size: 26px; }
.help-lead { margin: 0 0 8px; color: var(--rr-text-muted); }
.help-note { margin: 0; color: var(--rr-text-muted); font-size: 13px; }
.help-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 26px 0 8px; padding: 0; list-style: none; counter-reset: none; }
.help-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.help-steps li + li::before { content: ""; position: absolute; top: 31px; right: calc(50% + 42px); width: calc(100% - 72px); height: 2px; background: var(--rr-orange-deep); }
.help-steps li + li::after { content: ""; position: absolute; top: 27px; right: calc(50% + 40px); border: 5px solid transparent; border-left: 7px solid var(--rr-orange-deep); }
.help-step-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 8px; border-radius: 50%; background: var(--rr-orange); color: var(--rr-black); box-shadow: 0 6px 18px rgba(254, 150, 15, .25); }
.help-step-icon .pi { font-size: 22px; }
.help-step-icon b { position: absolute; top: -4px; right: -6px; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 2px solid var(--rr-bg); border-radius: 50%; background: var(--rr-white); color: var(--rr-black); font-size: 12px; }
.help-steps strong { font-size: 16px; }
.help-steps li > span:last-child { max-width: 190px; color: var(--rr-text-muted); font-size: 14px; line-height: 1.4; }
.help-faq details { border-top: 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.help-faq summary { padding: 16px 2px; font-weight: 700; }
.help-faq details div { padding: 0 2px 16px; line-height: 1.5; }
.help-faq details p { margin: 0 0 10px; }
.help-faq details a { color: var(--rr-orange); }
.help-status { display: grid; grid-template-columns: minmax(160px, 220px) 1fr; gap: 8px 16px; margin: 0; }
.help-status dt { color: var(--rr-text); font-weight: 700; }
.help-status dd { margin: 0; color: var(--rr-text-secondary); }
.help-support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 12px; }
.help-support h3 { margin: 0 0 6px; font-size: 17px; }
.help-support p { margin: 0 0 12px; color: var(--rr-text-muted); }
.help-support .button .pi { margin-left: 6px; font-size: 12px; }
.help-support-email { display: flex; align-items: center; gap: 12px; }
.help-support-email a { color: var(--rr-orange); font-weight: 700; }
.help-copy { padding: 4px 12px; min-height: 0; font-size: 13px; }
@media (max-width: 720px) {
    .help-cards { grid-template-columns: 1fr; }
    .help-journey { flex-direction: column; align-items: center; gap: 8px; }
    .help-journey li + li::before { display: none; }
    .help-steps { grid-template-columns: 1fr; gap: 18px; }
    .help-steps li { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; row-gap: 2px; align-items: start; text-align: left; }
    .help-steps li + li::before, .help-steps li + li::after { display: none; }
    .help-step-icon { grid-row: span 2; margin-bottom: 0; width: 52px; height: 52px; }
    .help-steps li > span:last-child { max-width: none; }
    .help-status { grid-template-columns: 1fr; gap: 2px; }
    .help-status dd { margin-bottom: 8px; }
    .help-support-grid { grid-template-columns: 1fr; }
}

/* Prepaid inbound label: service choice with the box each service allows. */
.label-service-choice {
    margin: 12px 0 16px;
}

.label-service-choice > label {
    display: block;
    margin-bottom: 4px;
}

.label-service-radio {
    width: 100%;
    margin: 6px 0 10px;
}

.label-service-radio td {
    padding: 6px 0;
    vertical-align: top;
}

.label-service-radio label {
    display: block;
    margin: 0 0 0 6px;
    color: var(--rr-text-secondary) !important;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    text-transform: none;
    cursor: pointer;
}

.label-service-name {
    color: var(--rr-text);
    font-weight: 700;
}

.label-service-speed {
    color: var(--muted);
    font-size: 13px;
}

.label-service-rule {
    display: block;
    margin-top: 2px;
    color: var(--rr-text-secondary);
    font-size: 13px;
}

.notice.flat-rate-notice,
.notice.label-packaging-rule {
    margin: 8px 0 12px;
    border-color: rgba(242, 201, 76, .42) !important;
    border-left-color: var(--rr-warning) !important;
    background: rgba(242, 201, 76, .1) !important;
}

/* PrimeFaces widgets (radio/checkbox labels, text areas, menus) carry the theme's own
   font stack; keep them on Inter like everything else. */
.ui-widget, .ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button,
label, input, select, textarea, button {
    font-family: var(--rr-font-body) !important;
}
