:root {
    color-scheme: light;
    --ink: #111111;
    --muted: #656565;
    --line: #dededb;
    --soft: #f3f2ed;
    --paper: #ffffff;
    --canvas: #f7f6f1;
    --success: #0d6b45;
    --success-bg: #e8f6ef;
    --warning: #7a4d00;
    --warning-bg: #fff3d6;
    --error: #9f2626;
    --error-bg: #fcebea;
    --radius: 16px;
    --shadow: 0 12px 38px rgba(17, 17, 17, 0.06);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--canvas);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 0%, rgba(255, 255, 255, 0.95), transparent 32rem),
        var(--canvas);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 18ch;
    margin-bottom: 12px;
    font-size: clamp(2.1rem, 6vw, 4.4rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

h2 {
    margin-bottom: 10px;
    font-size: clamp(1.55rem, 3vw, 2.35rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

h3 {
    margin-bottom: 6px;
    font-size: 1rem;
}

.shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 30px 0 72px;
}

.shell--narrow {
    width: min(600px, calc(100% - 32px));
}

.shell--status {
    width: min(820px, calc(100% - 32px));
}

.shell--admin {
    width: min(1480px, calc(100% - 40px));
}

.brand {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: clamp(52px, 10vw, 100px);
}

.brand--row {
    margin-bottom: 52px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.brand__wordmark {
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.brand__section {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero {
    margin-bottom: 34px;
}

.page-login .hero h1 {
    margin-bottom: 0;
}

.hero__copy,
.section-heading > p:last-child,
.status-heading > p:last-child {
    max-width: 62ch;
    color: var(--muted);
    font-size: 1.05rem;
}

.eyebrow {
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.panel {
    padding: clamp(22px, 4vw, 38px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
}

.form-stack {
    display: grid;
    gap: 20px;
}

.field {
    display: grid;
    gap: 7px;
}

.field--compact {
    min-width: 0;
}

.field label,
.upload-field > label {
    font-size: 0.88rem;
    font-weight: 750;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #cfcfcb;
    border-radius: 10px;
    outline: 0;
    background: #fff;
    color: var(--ink);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

input,
select {
    min-height: 48px;
    padding: 10px 12px;
}

textarea {
    min-height: 116px;
    padding: 12px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.1);
}

.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 750;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    transition: transform 120ms ease, opacity 120ms ease, background 120ms ease;
}

.button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.button:focus-visible {
    outline: 3px solid rgba(17, 17, 17, 0.22);
    outline-offset: 2px;
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.42;
}

.button--primary {
    background: var(--ink);
    color: #fff;
}

.button--secondary {
    border-color: var(--line);
    background: #fff;
    color: var(--ink);
}

.button--text {
    min-height: 38px;
    padding: 8px 12px;
    background: transparent;
    color: var(--muted);
}

.button--full {
    width: 100%;
}

.notice {
    padding: 14px 16px;
    border: 1px solid #dfe2e6;
    border-radius: 12px;
    background: #f1f3f5;
    color: #35393d;
}

.notice--success {
    border-color: #b8dfca;
    background: var(--success-bg);
    color: var(--success);
}

.notice--warning {
    border-color: #ecd799;
    background: var(--warning-bg);
    color: var(--warning);
}

.notice--error {
    border-color: #ecc6c3;
    background: var(--error-bg);
    color: var(--error);
}

.privacy-note {
    margin: 12px 12px 0;
    color: var(--muted);
    font-size: 0.78rem;
    text-align: center;
}

.login-guidance {
    margin: 24px 4px 0;
}

.portal-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 42px;
}

.portal-heading h1 {
    margin-bottom: 0;
}

.portal-heading__actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.request-type-selector {
    margin-bottom: 34px;
}

.request-active-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.request-active-notice[hidden] {
    display: none;
}

.request-active-notice .button {
    flex: 0 0 auto;
}

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

.request-type-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.request-type-card[hidden] {
    display: none;
}

.request-type-card {
    display: grid;
    min-height: 230px;
    align-content: start;
    gap: 13px;
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--ink);
    cursor: pointer;
    text-align: left;
    box-shadow: var(--shadow);
    transition: transform 140ms ease, border-color 140ms ease;
}

.request-type-card:hover:not(:disabled) {
    transform: translateY(-2px);
    border-color: #99968e;
}

.request-type-card:focus-visible {
    outline: 3px solid rgba(17, 17, 17, 0.22);
    outline-offset: 3px;
}

.request-type-card:disabled {
    cursor: not-allowed;
    background: #f4f3ef;
    box-shadow: none;
}

.request-type-card:disabled > *:not(small) {
    opacity: 0.52;
}

.request-type-card:disabled small:not(:empty) {
    opacity: 1;
}

.request-type-card__number {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.13em;
}

.request-type-card strong {
    max-width: 13ch;
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.05;
    text-transform: uppercase;
}

.request-type-card > span:not(.request-type-card__number),
.request-type-card small {
    color: var(--muted);
    line-height: 1.55;
}

.request-type-card small:not(:empty) {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: var(--warning);
    font-weight: 700;
}

.stepper {
    margin-bottom: 32px;
}

.stepper ol {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0;
    padding: 0;
    list-style: none;
}

.stepper__item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #92928d;
    font-size: 0.84rem;
}

.stepper__item:not(:last-child)::after {
    position: absolute;
    z-index: 0;
    top: 14px;
    right: 12px;
    left: 40px;
    height: 1px;
    background: var(--line);
    content: "";
}

.stepper__item > span {
    z-index: 1;
    display: inline-grid;
    width: 29px;
    height: 29px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--canvas);
    font-size: 0.75rem;
    font-weight: 800;
}

.stepper__item.is-active,
.stepper__item.is-complete {
    color: var(--ink);
}

.stepper__item.is-active > span,
.stepper__item.is-complete > span {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}

.loading {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
}

.spinner {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    border: 2px solid #d3d3cf;
    border-top-color: var(--ink);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.wizard-step {
    padding: clamp(22px, 4vw, 42px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow);
}

.section-heading {
    margin-bottom: 30px;
}

.section-heading--compact {
    margin-bottom: 18px;
}

.section-heading--compact h3 {
    margin-bottom: 6px;
}

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

.issue-details-panel,
.issue-resolution-panel {
    margin-top: 24px;
    padding: clamp(18px, 3vw, 26px);
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--soft);
}

.section-heading h2:focus {
    outline: 0;
}

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

.product-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
    transition: border-color 160ms ease;
}

.product-card:has(.product-check input:checked) {
    border-color: var(--ink);
}

.product-card.is-unavailable {
    background: #fafaf8;
}

.product-card__header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-card__image,
.product-card__placeholder {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    border-radius: 10px;
    background: var(--soft);
    object-fit: cover;
}

.product-card__placeholder {
    display: grid;
    place-items: center;
    color: #aaa;
    font-weight: 900;
}

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

.product-card__copy h3 {
    overflow-wrap: anywhere;
}

.product-card__copy p,
.stock-note {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.product-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    cursor: pointer;
    font-weight: 700;
}

.product-check input {
    width: 20px;
    min-height: 20px;
    accent-color: var(--ink);
}

.product-card__controls {
    grid-template-columns: minmax(100px, 0.35fr) minmax(190px, 1fr);
    gap: 14px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.product-card__controls:not([hidden]) {
    display: grid;
}

.stock-note {
    margin: 14px 0 0 87px;
}

.stock-note--wait {
    padding: 11px 13px;
    border: 1px solid #e4c878;
    border-radius: 9px;
    background: #fff8dc;
    color: #69500e;
    line-height: 1.45;
}

.wizard-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 30px;
}

.wizard-actions--end {
    justify-content: flex-end;
}

.reason-fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

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

.reason-card {
    position: relative;
    display: flex;
    min-height: 74px;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
    background: #fff;
}

.reason-card:has(input:checked) {
    border-color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--ink);
}

.reason-card input {
    width: 19px;
    min-height: 19px;
    flex: 0 0 auto;
    accent-color: var(--ink);
}

.reason-card__copy {
    display: grid;
}

#reasonDetailsWrap,
.upload-field {
    margin-top: 22px;
}

.upload-field {
    padding: 18px;
    border: 1px dashed #bdbdb7;
    border-radius: 12px;
    background: #fbfbf9;
}

.upload-field > p {
    margin: 3px 0 12px;
    color: var(--muted);
    font-size: 0.82rem;
}

.upload-field input {
    min-height: auto;
    padding: 8px;
    background: #fff;
}

.photo-preview {
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.82rem;
}

.photo-preview:not([hidden]) {
    display: flex;
}

.photo-preview img {
    width: 64px;
    height: 64px;
    border-radius: 9px;
    object-fit: cover;
}

.photo-preview--multiple:not([hidden]) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.photo-preview--multiple > span {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    overflow-wrap: anywhere;
}

@media (max-width: 980px) {
    .request-type-grid,
    .request-type-grid--two {
        grid-template-columns: 1fr;
    }
}

#reasonError {
    margin-top: 18px;
}

.delivery-selector {
    margin-bottom: 22px;
    padding: clamp(18px, 3vw, 26px);
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

.delivery-selector__heading h3 {
    margin-bottom: 7px;
    font-size: 1.2rem;
}

.delivery-selector__heading > div > p:last-child,
.point-group__heading p,
.point-unavailable {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.postal-search {
    display: grid;
    grid-template-columns: minmax(160px, 240px) auto;
    align-items: end;
    gap: 12px;
    margin-top: 20px;
}

.postal-search .button {
    margin-bottom: 1px;
}

#pointSearchMessage {
    margin-top: 16px;
}

.delivery-dropoff {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #b8dbc7;
    border-radius: 11px;
    background: #effaf3;
}

.delivery-dropoff p {
    margin: 5px 0 0;
    color: #355f47;
    font-size: 0.88rem;
}

.point-groups {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.point-groups:empty {
    display: none;
}

.point-group {
    display: grid;
    gap: 10px;
}

.point-group__heading h4 {
    margin: 0 0 2px;
    font-size: 0.95rem;
}

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

.point-card {
    position: relative;
    display: flex;
    min-width: 0;
    gap: 11px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}

.point-card:has(input:checked) {
    border-color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--ink);
}

.point-card input {
    width: 18px;
    min-height: 18px;
    flex: 0 0 auto;
    margin-top: 2px;
    accent-color: var(--ink);
}

.point-card__copy,
.point-card__title {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.point-card__title strong {
    overflow-wrap: anywhere;
    font-size: 0.9rem;
}

.point-card__title small,
.point-card__address,
.point-card__distance {
    color: var(--muted);
    font-size: 0.78rem;
}

.point-card__distance {
    margin-top: 3px;
    font-weight: 700;
}

.summary-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
}

.summary-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.summary-card--refund {
    grid-column: 1 / -1;
    padding: clamp(20px, 3vw, 28px);
    border-color: #9fcfb4;
    background: #effaf3;
}

.refund-total {
    margin: 0;
    color: var(--ink);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.045em;
    line-height: 1;
}

.refund-total__caption {
    max-width: 680px;
    margin: 10px 0 0;
    color: #355f47;
    font-size: 0.9rem;
}

.refund-scope {
    max-width: 760px;
    margin: 18px 0 0;
    padding: 12px 14px;
    border: 1px solid rgba(53, 95, 71, 0.22);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.62);
    color: #244c36;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.55;
}

.refund-breakdown {
    display: grid;
    gap: 8px;
    max-width: 440px;
    margin: 20px 0 0;
}

.refund-breakdown > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 8px;
    border-top: 1px solid rgba(53, 95, 71, 0.2);
}

.refund-breakdown dt,
.refund-breakdown dd {
    margin: 0;
}

.refund-breakdown dt {
    color: #355f47;
    font-size: 0.86rem;
}

.refund-breakdown dd {
    color: var(--ink);
    font-weight: 800;
}

.summary-card h3,
.status-section h3 {
    margin-bottom: 14px;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

.summary-list li {
    display: grid;
    gap: 2px;
}

.summary-list li span,
.summary-detail,
.summary-file,
.status-reason {
    color: var(--muted);
    font-size: 0.88rem;
}

.summary-list .summary-wait {
    margin-top: 4px;
    color: #725911;
    font-size: 0.78rem;
    font-weight: 700;
}

.summary-detail,
.summary-file {
    margin: 10px 0 0;
}

#confirmMsg {
    margin-top: 14px;
}

.status-heading {
    margin-bottom: 28px;
}

.status-panel__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.status-panel__top h2 {
    margin-bottom: 8px;
}

.status-panel__top p:last-child {
    margin-bottom: 0;
    color: var(--muted);
}

.status-badge {
    flex: 0 0 auto;
    padding: 7px 11px;
    border-radius: 999px;
    background: var(--soft);
    font-size: 0.75rem;
    font-weight: 800;
}

.status-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 34px 0;
    padding: 0;
    list-style: none;
}

.status-timeline li {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 8px;
    color: #9b9b96;
    text-align: center;
}

.status-timeline li:not(:last-child)::after {
    position: absolute;
    z-index: 0;
    top: 14px;
    left: calc(50% + 18px);
    width: calc(100% - 36px);
    height: 2px;
    background: var(--line);
    content: "";
}

.status-timeline__marker {
    z-index: 1;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 2px solid var(--line);
    border-radius: 50%;
    background: #fff;
    font-size: 0.72rem;
    font-weight: 800;
}

.status-timeline li.is-current,
.status-timeline li.is-complete {
    color: var(--ink);
}

.status-timeline li.is-current .status-timeline__marker,
.status-timeline li.is-complete .status-timeline__marker {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}

.status-timeline li.is-complete::after {
    background: var(--ink);
}

.status-timeline__label {
    max-width: 130px;
    font-size: 0.76rem;
    font-weight: 700;
}

.status-section {
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.status-reason {
    margin: 16px 0 0;
}

.return-point-summary {
    margin-top: 24px;
}

.return-point-summary p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.return-point-summary small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-weight: 700;
}

.status-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.status-actions--new-request {
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

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

.status-history__item {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
}

.status-history__item:hover,
.status-history__item.is-current {
    border-color: var(--ink);
}

.status-history__item.is-current {
    background: #f1f3f5;
}

.status-history__item small {
    color: var(--muted);
    font-weight: 600;
}

.empty-state {
    padding: 28px;
    border: 1px dashed #c7c7c1;
    border-radius: 12px;
    text-align: center;
}

.empty-state p {
    color: var(--muted);
}

.empty-state .button {
    margin-top: 8px;
}

.admin-heading h1 {
    margin-bottom: 0;
}

.admin-table-wrap {
    overflow: visible;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.admin-table {
    display: block;
    width: 100%;
    border-collapse: separate;
    white-space: normal;
}

.admin-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.admin-table tbody {
    display: grid;
    gap: 18px;
}

.admin-table tbody > tr {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-areas:
        "request order status status status flow flow flow flow flow date date"
        "reason reason reason reason replacement replacement label label label refund refund refund";
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
}

.admin-table tbody > tr > td {
    min-width: 0;
    padding: 16px;
    font-size: 0.86rem;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.admin-table tbody > tr > td::before {
    display: block;
    margin-bottom: 7px;
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-table tbody > tr > td:nth-child(1) {
    grid-area: request;
}

.admin-table tbody > tr > td:nth-child(2) {
    grid-area: order;
}

.admin-table tbody > tr > td:nth-child(3) {
    grid-area: status;
}

.admin-table tbody > tr > td:nth-child(4) {
    grid-area: flow;
}

.admin-table tbody > tr > td:nth-child(5) {
    grid-area: reason;
}

.admin-table tbody > tr > td:nth-child(6) {
    grid-area: replacement;
}

.admin-table tbody > tr > td:nth-child(7) {
    grid-area: label;
}

.admin-table tbody > tr > td:nth-child(8) {
    grid-area: refund;
}

.admin-table tbody > tr > td:nth-child(9) {
    grid-area: date;
}

.admin-table tbody > tr > td:nth-child(2),
.admin-table tbody > tr > td:nth-child(3),
.admin-table tbody > tr > td:nth-child(4),
.admin-table tbody > tr > td:nth-child(6),
.admin-table tbody > tr > td:nth-child(7),
.admin-table tbody > tr > td:nth-child(8),
.admin-table tbody > tr > td:nth-child(9) {
    border-left: 1px solid var(--line);
}

.admin-table tbody > tr > td:nth-child(5),
.admin-table tbody > tr > td:nth-child(6),
.admin-table tbody > tr > td:nth-child(7),
.admin-table tbody > tr > td:nth-child(8) {
    border-top: 1px solid var(--line);
}

.admin-table td small,
.admin-table td a {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.75rem;
}

.admin-error {
    max-width: 100%;
    margin-top: 6px;
    white-space: normal;
}

.admin-error summary {
    cursor: pointer;
    color: var(--muted);
    font-size: 0.75rem;
}

.admin-error small {
    overflow-wrap: anywhere;
}

.admin-reason-details {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

.admin-review-actions {
    display: grid;
    gap: 8px;
    width: 100%;
    max-width: 420px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    white-space: normal;
}

.admin-view-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: -10px 0 22px;
}

.admin-review-actions .button {
    width: 100%;
}

.admin-evidence-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 8px;
}

.admin-secondary-actions {
    max-width: 420px;
    margin-top: 10px;
    white-space: normal;
}

.admin-secondary-actions summary {
    cursor: pointer;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 750;
}

.admin-confirm-check {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 8px;
    align-items: start;
    color: var(--ink);
    font-size: 0.76rem;
    line-height: 1.4;
}

.admin-confirm-check input {
    width: 18px;
    min-height: 18px;
    margin: 0;
}

.admin-config-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.85fr);
    gap: 22px;
    align-items: start;
}

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

.admin-config-sidebar {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.admin-config-card,
.admin-profile-card {
    min-width: 0;
}

.admin-profile-card {
    max-width: 760px;
}

.admin-config-card__heading {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-start;
    justify-content: space-between;
}

.admin-config-card__heading h2,
.admin-config-card__heading h3 {
    margin-bottom: 0;
}

.admin-config-card > label,
.admin-config-sidebar form > label,
.admin-profile-card > label,
.admin-fieldset label,
.admin-form-grid > label {
    display: grid;
    gap: 7px;
    min-width: 0;
    font-size: 0.86rem;
    font-weight: 750;
}

.admin-config-card label small,
.admin-config-sidebar label small,
.admin-profile-card label small {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.45;
}

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

.admin-fieldset {
    display: grid;
    gap: 16px;
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.admin-fieldset legend {
    padding: 0 8px;
    font-size: 0.8rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.admin-scope-selector {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 18px;
}

.admin-scope-selector label {
    display: grid;
    grid-template-columns: auto minmax(220px, 360px);
    gap: 12px;
    align-items: center;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-help {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.55;
}

.admin-inline-actions,
.admin-site-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: center;
}

.admin-site-checks label {
    display: flex;
    gap: 7px;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 700;
}

.admin-site-checks input {
    width: 18px;
    min-height: 18px;
}

.admin-confirm-check--small {
    margin-top: -9px;
}

.button--danger {
    color: #a42424;
}

.admin-refund-notice {
    width: 100%;
    max-width: 420px;
    margin-top: 10px;
    white-space: normal;
    font-size: 0.75rem;
}

.admin-payment-mode {
    max-width: 420px;
    margin-top: 10px;
    padding: 8px 10px;
    border: 1px solid #efd69e;
    border-radius: 9px;
    color: var(--warning);
    background: var(--warning-bg);
    font-size: 0.75rem;
    font-weight: 750;
    line-height: 1.4;
}

.admin-table tbody > tr.admin-table__empty {
    display: block;
    padding: 28px;
    color: var(--muted);
    text-align: center;
}

.admin-table tbody > tr.admin-table__empty > td {
    display: block;
    padding: 0;
    border: 0;
}

.admin-table tbody > tr.admin-table__empty > td::before {
    content: none;
}

@media (max-width: 1150px) {
    .admin-config-grid,
    .admin-config-grid--equal {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-table tbody > tr {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        grid-template-areas:
            "request order status status date date"
            "flow flow flow flow flow flow"
            "reason reason reason reason reason reason"
            "replacement replacement label label label label"
            "refund refund refund refund refund refund";
    }

    .admin-table tbody > tr > td {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .admin-table tbody > tr > td:nth-child(1),
    .admin-table tbody > tr > td:nth-child(2),
    .admin-table tbody > tr > td:nth-child(3),
    .admin-table tbody > tr > td:nth-child(9) {
        border-top: 0;
    }

    .admin-table tbody > tr > td:nth-child(2),
    .admin-table tbody > tr > td:nth-child(3),
    .admin-table tbody > tr > td:nth-child(9) {
        border-left: 1px solid var(--line);
    }
}

@media (max-width: 800px) {
    .admin-table tbody > tr {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "request order"
            "status status"
            "flow flow"
            "reason reason"
            "replacement date"
            "label label"
            "refund refund";
    }

    .admin-table tbody > tr > td {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .admin-table tbody > tr > td:nth-child(1),
    .admin-table tbody > tr > td:nth-child(2) {
        border-top: 0;
    }

    .admin-table tbody > tr > td:nth-child(2),
    .admin-table tbody > tr > td:nth-child(9) {
        border-left: 1px solid var(--line);
    }
}

.button--compact {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 0.76rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

[hidden] {
    display: none !important;
}

@media (max-width: 720px) {
    .shell {
        width: min(100% - 22px, 1120px);
        padding-top: 18px;
    }

    .admin-table tbody > tr {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "request"
            "order"
            "status"
            "flow"
            "reason"
            "replacement"
            "label"
            "refund"
            "date";
    }

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

    .admin-scope-selector,
    .admin-scope-selector label {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        justify-content: stretch;
    }

    .admin-table tbody > tr > td,
    .admin-table tbody > tr > td:nth-child(2),
    .admin-table tbody > tr > td:nth-child(3),
    .admin-table tbody > tr > td:nth-child(4),
    .admin-table tbody > tr > td:nth-child(5),
    .admin-table tbody > tr > td:nth-child(6),
    .admin-table tbody > tr > td:nth-child(7),
    .admin-table tbody > tr > td:nth-child(8),
    .admin-table tbody > tr > td:nth-child(9) {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .admin-table tbody > tr > td:nth-child(1) {
        border-top: 0;
    }

    .brand {
        margin-bottom: 42px;
    }

    .brand--row {
        margin-bottom: 36px;
    }

    .portal-heading {
        margin-bottom: 28px;
    }

    .portal-heading__actions {
        align-items: flex-end;
        flex-direction: column-reverse;
    }

    .request-type-grid,
    .request-type-grid--two {
        grid-template-columns: 1fr;
    }

    .request-active-notice {
        align-items: stretch;
        flex-direction: column;
    }

    .request-type-card {
        min-height: 190px;
    }

    .stepper__item {
        justify-content: center;
    }

    .stepper__item strong {
        display: none;
    }

    .stepper__item:not(:last-child)::after {
        right: -28%;
        left: 66%;
    }

    .wizard-step {
        padding: 19px 14px;
    }

    .reason-grid,
    .summary-grid,
    .point-list {
        grid-template-columns: 1fr;
    }

    .postal-search {
        grid-template-columns: 1fr;
    }

    .postal-search .button {
        width: 100%;
    }

    .product-card {
        padding: 14px;
    }

    .product-card__image,
    .product-card__placeholder {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
    }

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

    .stock-note {
        margin-left: 0;
    }

    .wizard-actions {
        align-items: stretch;
    }

    .wizard-actions .button {
        flex: 1;
    }

    .status-panel__top {
        display: grid;
    }

    .status-history__list {
        grid-template-columns: 1fr;
    }

    .status-badge {
        justify-self: start;
    }

    .status-timeline__label {
        font-size: 0.68rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
