:root {
    color-scheme: light;
    --paper: #f3f0e9;
    --paper-deep: #e9e4da;
    --surface: #fffdf9;
    --surface-soft: #f8f6f1;
    --ink: #1b2028;
    --ink-soft: #5f6670;
    --ink-faint: #646a72;
    --line: #ddd8ce;
    --line-light: #eae6de;
    --brand: #c5102f;
    --brand-dark: #981126;
    --night: #20252c;
    --night-soft: #2a3038;
    --success: #24845d;
    --warning: #9a650d;
    --danger: #aa2636;
    --accent: #ef6d73;
    --shadow-sm: 0 8px 30px rgba(37, 31, 24, .06);
    --shadow-lg: 0 24px 70px rgba(37, 31, 24, .13);
    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 28px;
    --content-width: 1180px;
    font-family: "Avenir Next", Avenir, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    min-height: 100%;
    background: var(--paper);
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 9%, rgba(197, 16, 47, .08), transparent 24rem),
        radial-gradient(circle at 92% 32%, rgba(71, 92, 115, .08), transparent 29rem),
        var(--paper);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    content: "";
    pointer-events: none;
    opacity: .22;
    background-image:
        linear-gradient(rgba(47, 43, 38, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(47, 43, 38, .08) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

button,
select {
    font: inherit;
}

button,
select,
summary {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
}

[hidden] {
    display: none !important;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 10px;
    left: 10px;
    padding: 10px 16px;
    color: white;
    background: var(--night);
    border-radius: 9px;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: none;
}

:focus-visible {
    outline: 3px solid #427df0;
    outline-offset: 3px;
}

.page-shell {
    width: min(calc(100% - 40px), var(--content-width));
    margin: 0 auto;
}

.topbar {
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: white;
    background: var(--brand);
    border-radius: 13px;
    box-shadow: 0 8px 20px rgba(197, 16, 47, .2);
}

.brand-mark svg {
    width: 29px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.brand-copy {
    display: grid;
    line-height: 1.08;
}

.brand-copy strong {
    font-size: 17px;
    letter-spacing: -.02em;
}

.brand-copy small {
    margin-top: 5px;
    color: var(--ink-faint);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .19em;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.connection-pill {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    color: var(--ink-soft);
    background: rgba(255, 253, 249, .65);
    border: 1px solid rgba(201, 195, 184, .7);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.connection-dot {
    width: 7px;
    height: 7px;
    background: #b5b1aa;
    border-radius: 50%;
}

.connection-pill.is-live .connection-dot {
    background: var(--success);
    box-shadow: 0 0 0 5px rgba(36, 132, 93, .11);
}

.connection-pill.is-error .connection-dot,
.connection-pill.is-offline .connection-dot {
    background: #d38a22;
}

.button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 19px;
    border: 0;
    border-radius: 12px;
    font-weight: 750;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.button:active:not(:disabled) {
    transform: translateY(0);
}

.button:disabled {
    cursor: wait;
    opacity: .66;
}

.button-primary {
    color: white;
    background: var(--brand);
    box-shadow: 0 10px 24px rgba(197, 16, 47, .18);
}

.button-primary:hover:not(:disabled) {
    background: var(--brand-dark);
    box-shadow: 0 12px 28px rgba(197, 16, 47, .23);
}

.button-compact {
    min-height: 42px;
    padding: 0 16px;
    font-size: 13px;
}

.button-icon {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.is-refreshing .refresh-icon {
    animation: spin .8s linear infinite;
}

.notice {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 2px 0 16px;
    padding: 11px 16px;
    border: 1px solid;
    border-radius: 13px;
    font-size: 13px;
    font-weight: 650;
}

.notice svg {
    flex: 0 0 auto;
    width: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.notice-warning {
    color: #795115;
    background: #fff5df;
    border-color: #ecd49d;
}

.notice-offline {
    color: #7a4931;
    background: #fff0e9;
    border-color: #e7c7b8;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.68fr) minmax(300px, .82fr);
    gap: 18px;
}

.status-card,
.sync-card,
.panel {
    border-radius: var(--radius-lg);
}

.status-card {
    --status-accent: #ef6d73;
    position: relative;
    min-height: 476px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 34px 38px 30px;
    color: #f9f7f2;
    background:
        linear-gradient(137deg, rgba(255, 255, 255, .045), transparent 36%),
        var(--night);
    box-shadow: var(--shadow-lg);
    isolation: isolate;
}

.status-card::before,
.status-card::after {
    position: absolute;
    z-index: -1;
    content: "";
    border-radius: 50%;
}

.status-card::before {
    width: 280px;
    height: 280px;
    top: -155px;
    right: -65px;
    border: 1px solid rgba(255, 255, 255, .09);
    box-shadow: 0 0 0 55px rgba(255, 255, 255, .025), 0 0 0 110px rgba(255, 255, 255, .018);
}

.status-card::after {
    width: 200px;
    height: 200px;
    right: 6%;
    bottom: -165px;
    background: var(--status-accent);
    filter: blur(75px);
    opacity: .19;
}

.status-card[data-status="registered"] { --status-accent: #e9ac56; }
.status-card[data-status="transit"] { --status-accent: #ee626c; }
.status-card[data-status="out-for-delivery"] { --status-accent: #72a9e4; }
.status-card[data-status="delivered"] { --status-accent: #56bd8a; }
.status-card[data-status="returned"] { --status-accent: #e9a34a; }
.status-card[data-status="issue"] { --status-accent: #f0a442; }

.status-glow {
    position: absolute;
    z-index: -1;
    width: 220px;
    height: 220px;
    top: 15%;
    left: -130px;
    background: var(--status-accent);
    border-radius: 50%;
    filter: blur(90px);
    opacity: .14;
}

.status-card-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.status-badge {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0 12px;
    color: #fff;
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.status-badge-dot {
    width: 7px;
    height: 7px;
    background: var(--status-accent);
    border-radius: 50%;
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--status-accent) 16%, transparent);
}

.status-card[data-status="transit"] .status-badge-dot,
.status-card[data-status="out-for-delivery"] .status-badge-dot {
    animation: pulse 2s ease-out infinite;
}

.status-code {
    color: rgba(255, 255, 255, .62);
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
}

.status-copy {
    max-width: 680px;
    margin-top: 42px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--ink-faint);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .17em;
}

.status-card .eyebrow {
    color: rgba(255, 255, 255, .66);
}

.status-copy h1 {
    max-width: 650px;
    margin: 0;
    font-size: clamp(36px, 4.2vw, 58px);
    font-weight: 740;
    letter-spacing: -.055em;
    line-height: .98;
    text-wrap: balance;
}

.status-description {
    max-width: 650px;
    min-height: 44px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: 15px;
    line-height: 1.55;
}

.status-time {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 13px 0 0;
    color: rgba(255, 255, 255, .66);
    font-size: 12px;
}

.status-time svg {
    width: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.journey {
    position: relative;
    margin-top: auto;
    padding-top: 43px;
}

.journey-track {
    position: absolute;
    top: 51px;
    left: 5px;
    right: 5px;
    height: 2px;
    overflow: hidden;
    background: rgba(255, 255, 255, .13);
}

.journey-fill {
    display: block;
    width: 0;
    height: 100%;
    background: var(--status-accent);
    box-shadow: 0 0 12px var(--status-accent);
    transition: width .8s cubic-bezier(.2, .8, .2, 1);
}

.journey-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 0;
    margin: 0;
    list-style: none;
}

.journey-steps li {
    display: grid;
    justify-items: start;
    gap: 9px;
    color: rgba(255, 255, 255, .62);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .03em;
}

.journey-steps li:nth-child(2),
.journey-steps li:nth-child(3) {
    justify-items: center;
}

.journey-steps li:last-child {
    justify-items: end;
}

.journey-node {
    position: relative;
    z-index: 1;
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    background: #3c4249;
    border: 2px solid #5d6268;
    border-radius: 50%;
    transition: background .4s ease, border-color .4s ease, box-shadow .4s ease;
}

.journey-node svg {
    width: 12px;
    fill: none;
    stroke: transparent;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.journey-steps li.is-complete,
.journey-steps li.is-current {
    color: rgba(255, 255, 255, .82);
}

.journey-steps li.is-complete .journey-node {
    background: var(--status-accent);
    border-color: var(--status-accent);
}

.journey-steps li.is-complete .journey-node svg {
    stroke: #fff;
}

.journey-steps li.is-current .journey-node {
    background: var(--night);
    border: 4px solid var(--status-accent);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--status-accent) 15%, transparent);
}

.route-strip {
    min-height: 64px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(45px, 110px) minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    margin: 24px -38px -30px;
    padding: 12px 38px;
    background: rgba(0, 0, 0, .14);
    border-top: 1px solid rgba(255, 255, 255, .07);
}

.route-point {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.route-point > span:not(.route-dot) {
    min-width: 0;
    display: grid;
}

.route-point small {
    color: rgba(255, 255, 255, .66);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .14em;
}

.route-point strong {
    overflow: hidden;
    color: rgba(255, 255, 255, .9);
    font-size: 11px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.route-destination {
    justify-content: flex-end;
    text-align: right;
}

.route-dot {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border: 2px solid var(--status-accent);
    border-radius: 50%;
}

.route-destination .route-dot {
    background: var(--status-accent);
}

.route-arrow {
    width: 100%;
    height: 18px;
    fill: none;
    stroke: rgba(255, 255, 255, .48);
    stroke-width: 1.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 3 4;
}

.sync-card {
    display: flex;
    flex-direction: column;
    padding: 30px;
    background: rgba(255, 253, 249, .88);
    border: 1px solid rgba(214, 208, 197, .8);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(14px);
}

.sync-heading,
.panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.sync-heading h2,
.panel-heading h2 {
    margin: 0;
    font-size: 21px;
    font-weight: 750;
    letter-spacing: -.035em;
    line-height: 1.15;
}

.icon-button,
.mini-button {
    display: grid;
    place-items: center;
    padding: 0;
    color: var(--ink-soft);
    background: var(--surface-soft);
    border: 1px solid var(--line);
    cursor: pointer;
    transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.icon-button:hover,
.mini-button:hover {
    color: var(--brand);
    background: #fff;
    border-color: #c8b4b7;
}

.icon-button {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 12px;
}

.icon-button svg,
.mini-button svg {
    width: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.play-symbol,
.is-paused .pause-symbol {
    display: none;
}

.is-paused .play-symbol {
    display: block;
}

.countdown-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 25px 0 23px;
    padding: 19px;
    background: var(--surface-soft);
    border: 1px solid var(--line-light);
    border-radius: 18px;
}

.countdown-ring {
    --countdown-progress: 0deg;
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    background: conic-gradient(var(--brand) var(--countdown-progress), #e5e0d7 0deg);
    border-radius: 50%;
    transition: background .3s linear;
}

.countdown-inner {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    color: var(--brand);
    background: var(--surface-soft);
    border-radius: 50%;
}

.countdown-inner svg {
    width: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.countdown-copy {
    min-width: 0;
    display: grid;
}

.countdown-copy > span {
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 650;
}

.countdown-copy strong {
    margin: 0 0 2px;
    font-size: 30px;
    font-weight: 760;
    letter-spacing: -.04em;
    line-height: 1.18;
    font-variant-numeric: tabular-nums;
}

.countdown-copy small {
    overflow: hidden;
    color: var(--ink-faint);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.field-label {
    margin: 0 0 7px;
    color: var(--ink-soft);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.select-wrap {
    position: relative;
}

.select-wrap select {
    width: 100%;
    height: 44px;
    appearance: none;
    padding: 0 42px 0 13px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 11px;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
}

.select-wrap > svg {
    position: absolute;
    top: 12px;
    right: 13px;
    width: 20px;
    fill: none;
    stroke: var(--ink-soft);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.notification-control {
    min-height: 56px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 11px;
    margin-top: 12px;
    padding: 8px 11px;
    text-align: left;
    background: transparent;
    border: 1px solid var(--line-light);
    border-radius: 13px;
    cursor: pointer;
}

.notification-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: var(--ink-soft);
    background: var(--surface-soft);
    border-radius: 10px;
}

.notification-icon svg {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.notification-control > span:nth-child(2) {
    min-width: 0;
    display: grid;
}

.notification-control strong {
    font-size: 12px;
}

.notification-control small {
    color: var(--ink-faint);
    font-size: 9px;
}

.toggle {
    width: 34px;
    height: 20px;
    padding: 3px;
    background: #d7d4ce;
    border-radius: 999px;
    transition: background .2s ease;
}

.toggle span {
    display: block;
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
    transition: transform .2s ease;
}

.notification-control.is-enabled .toggle {
    background: var(--success);
}

.notification-control.is-enabled .toggle span {
    transform: translateX(14px);
}

.tracking-number {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 22px;
    border-top: 1px solid var(--line-light);
}

.tracking-number > span {
    min-width: 0;
    display: grid;
}

.tracking-number small {
    color: var(--ink-faint);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .13em;
}

.tracking-number strong {
    overflow: hidden;
    margin-top: 3px;
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 13px;
    letter-spacing: .03em;
    text-overflow: ellipsis;
}

.tracking-actions {
    flex: 0 0 auto;
    display: flex;
    gap: 6px;
}

.mini-button {
    width: 35px;
    height: 35px;
    border-radius: 9px;
}

.mini-button svg {
    width: 17px;
}

.eye-closed,
.is-revealed .eye-open {
    display: none;
}

.is-revealed .eye-closed {
    display: block;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, .85fr);
    align-items: start;
    gap: 18px;
    margin-top: 18px;
}

.panel {
    padding: 31px;
    background: rgba(255, 253, 249, .89);
    border: 1px solid rgba(214, 208, 197, .8);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(14px);
}

.event-count {
    flex: 0 0 auto;
    padding: 6px 10px;
    color: var(--ink-soft);
    background: var(--surface-soft);
    border: 1px solid var(--line-light);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 750;
}

.timeline {
    padding: 0;
    margin: 28px 0 0;
    list-style: none;
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 104px 26px minmax(0, 1fr);
    gap: 14px;
    min-height: 105px;
}

.timeline-item:not(:last-child)::after {
    position: absolute;
    top: 27px;
    bottom: -1px;
    left: 130px;
    width: 1px;
    content: "";
    background: var(--line);
}

.timeline-date {
    display: grid;
    align-content: start;
    padding-top: 1px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.timeline-date strong {
    font-size: 12px;
    font-weight: 760;
}

.timeline-date span {
    color: var(--ink-faint);
    font-size: 10px;
}

.timeline-marker {
    position: relative;
    z-index: 1;
    width: 17px;
    height: 17px;
    margin-top: 4px;
    background: var(--surface);
    border: 2px solid #b8b5ae;
    border-radius: 50%;
}

.timeline-item.is-current .timeline-marker {
    background: var(--brand);
    border: 4px solid var(--surface);
    box-shadow: 0 0 0 2px var(--brand), 0 0 0 7px rgba(197, 16, 47, .09);
}

.timeline-copy {
    padding-bottom: 26px;
}

.timeline-copy h3 {
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: 760;
    letter-spacing: -.015em;
}

.timeline-item.is-current .timeline-copy h3 {
    color: var(--brand);
}

.timeline-copy p {
    max-width: 630px;
    margin: 0;
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.55;
}

.timeline-code {
    display: inline-block;
    margin-top: 7px;
    color: var(--ink-faint);
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 9px;
    letter-spacing: .05em;
}

.empty-timeline {
    display: grid;
    justify-items: center;
    padding: 50px 20px 30px;
    color: var(--ink-faint);
    text-align: center;
}

.empty-timeline svg {
    width: 48px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.empty-timeline p {
    font-size: 13px;
}

.details-stack {
    display: grid;
    gap: 18px;
}

.parcel-stamp {
    min-width: 38px;
    min-height: 30px;
    display: grid;
    place-items: center;
    color: var(--brand);
    border: 2px solid currentColor;
    border-radius: 7px;
    font-family: ui-monospace, monospace;
    font-size: 11px;
    font-weight: 800;
    transform: rotate(3deg);
}

.shipment-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin: 24px 0 0;
}

.shipment-details > div {
    min-width: 0;
    padding: 15px 8px 15px 0;
    border-top: 1px solid var(--line-light);
}

.shipment-details > div:nth-child(even) {
    padding-left: 13px;
    border-left: 1px solid var(--line-light);
}

.shipment-details > .detail-wide {
    grid-column: 1 / -1;
    padding-left: 0;
    border-left: 0;
}

.shipment-details dt {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--ink-faint);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.shipment-details dt svg {
    width: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.shipment-details dd {
    overflow: hidden;
    margin: 6px 0 0 22px;
    font-size: 12px;
    font-weight: 680;
    text-overflow: ellipsis;
}

.privacy-card {
    display: flex;
    gap: 13px;
    padding: 20px;
    color: #48534d;
    background: #e9f0eb;
    border: 1px solid #d2ded5;
    border-radius: var(--radius);
}

.privacy-card > svg {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--success);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.privacy-card strong {
    font-size: 12px;
}

.privacy-card p {
    margin: 4px 0 0;
    color: #58675e;
    font-size: 11px;
    line-height: 1.5;
}

footer {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    color: var(--ink-faint);
    font-size: 10px;
}

.footer-separator {
    width: 3px;
    height: 3px;
    background: #aaa69e;
    border-radius: 50%;
}

.loading-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.68fr) minmax(300px, .82fr);
    gap: 18px;
}

.skeleton {
    padding: 35px;
    overflow: hidden;
    background: rgba(255, 253, 249, .7);
    border: 1px solid var(--line-light);
    border-radius: var(--radius-lg);
}

.skeleton-hero {
    min-height: 476px;
}

.skeleton-side {
    min-height: 476px;
    display: grid;
    justify-items: center;
    align-content: center;
}

.skeleton-list {
    grid-column: 1 / -1;
    min-height: 220px;
}

.skeleton-line,
.skeleton-circle {
    position: relative;
    display: block;
    overflow: hidden;
    background: #e2ded6;
}

.skeleton-line::after,
.skeleton-circle::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .65), transparent);
    transform: translateX(-100%);
    animation: shimmer 1.6s ease-in-out infinite;
}

.skeleton-line {
    width: 100%;
    height: 13px;
    margin-bottom: 17px;
    border-radius: 999px;
}

.skeleton-label { width: 20%; height: 10px; margin-top: 20px; }
.skeleton-title { width: 72%; height: 55px; margin-top: 50px; border-radius: 12px; }
.skeleton-copy { width: 88%; height: 18px; }
.skeleton-route { height: 70px; margin-top: 115px; border-radius: 15px; }
.skeleton-medium { width: 64%; }
.skeleton-small { width: 42%; }
.skeleton-circle { width: 80px; height: 80px; margin-bottom: 27px; border-radius: 50%; }

.fatal-state {
    min-height: 620px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    text-align: center;
}

.fatal-illustration {
    width: 104px;
    height: 104px;
    display: grid;
    place-items: center;
    margin-bottom: 25px;
    color: var(--ink-soft);
    background: rgba(255, 253, 249, .8);
    border: 1px solid var(--line);
    border-radius: 30px;
    transform: rotate(-3deg);
}

.fatal-illustration svg {
    width: 75px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fatal-illustration .fatal-badge {
    fill: var(--brand);
    stroke: var(--surface);
    stroke-width: 3;
}

.fatal-illustration .fatal-mark {
    stroke: white;
    stroke-width: 2.2;
}

.fatal-state .eyebrow {
    color: var(--brand);
}

.fatal-state h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
    letter-spacing: -.05em;
    line-height: 1.04;
}

.fatal-state > p:not(.eyebrow) {
    max-width: 530px;
    margin: 18px 0 0;
    color: var(--ink-soft);
}

.fatal-actions {
    display: grid;
    justify-items: center;
    gap: 12px;
    margin-top: 28px;
}

.fatal-actions details {
    max-width: min(520px, 80vw);
    color: var(--ink-faint);
    font-size: 11px;
}

.fatal-actions summary {
    cursor: pointer;
}

.fatal-actions code {
    display: block;
    overflow-wrap: anywhere;
    margin-top: 10px;
    padding: 10px;
    color: var(--ink-soft);
    background: rgba(255, 255, 255, .6);
    border-radius: 8px;
    text-align: left;
}

.toast {
    position: fixed;
    z-index: 100;
    left: 50%;
    bottom: 26px;
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 17px;
    color: white;
    background: var(--night);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .22);
    font-size: 12px;
    font-weight: 700;
    transform: translateX(-50%);
    animation: toast-in .25s ease-out;
}

.toast svg {
    width: 18px;
    fill: none;
    stroke: #7bd2a5;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--status-accent) 16%, transparent); }
    50% { box-shadow: 0 0 0 9px transparent; }
}

@keyframes shimmer {
    100% { transform: translateX(100%); }
}

@keyframes toast-in {
    from { opacity: 0; transform: translate(-50%, 10px); }
}

@media (max-width: 920px) {
    .hero-grid,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .status-card {
        min-height: 460px;
    }

    .sync-card {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 20px;
    }

    .sync-heading,
    .tracking-number {
        grid-column: 1 / -1;
    }

    .countdown-wrap {
        grid-row: span 2;
        margin-bottom: 17px;
    }

    .field-label {
        align-self: end;
    }

    .notification-control {
        align-self: start;
    }

    .tracking-number {
        margin-top: 18px;
    }

    .loading-layout {
        grid-template-columns: 1fr;
    }

    .skeleton-side {
        min-height: 260px;
    }
}

@media (max-width: 640px) {
    :root {
        --radius-lg: 22px;
    }

    .page-shell {
        width: min(calc(100% - 24px), var(--content-width));
    }

    .topbar {
        min-height: 80px;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
    }

    .brand-copy small {
        display: none;
    }

    .connection-pill {
        display: none;
    }

    .button-compact {
        width: 44px;
        padding: 0;
    }

    .button-compact span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .status-card {
        min-height: 495px;
        padding: 25px 22px 23px;
    }

    .status-code {
        display: none;
    }

    .status-copy {
        margin-top: 36px;
    }

    .status-copy h1 {
        font-size: clamp(35px, 11vw, 48px);
    }

    .status-description {
        font-size: 13px;
    }

    .journey {
        padding-top: 37px;
    }

    .journey-track {
        top: 45px;
    }

    .journey-steps li {
        font-size: 9px;
        letter-spacing: 0;
    }

    .route-strip {
        margin: 22px -22px -23px;
        padding: 12px 22px;
        grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr);
    }

    .route-point strong {
        font-size: 10px;
    }

    .sync-card {
        display: flex;
        padding: 24px;
    }

    .notification-control {
        align-self: stretch;
    }

    .countdown-wrap {
        margin: 24px 0 20px;
    }

    .tracking-number {
        margin-top: 21px;
    }

    .panel {
        padding: 24px 20px;
    }

    .panel-heading {
        align-items: center;
    }

    .panel-heading h2,
    .sync-heading h2 {
        font-size: 19px;
    }

    .timeline-item {
        grid-template-columns: 20px minmax(0, 1fr);
        gap: 13px;
        min-height: 118px;
    }

    .timeline-date {
        grid-column: 2;
        grid-row: 1;
        display: flex;
        gap: 6px;
        text-align: left;
    }

    .timeline-marker {
        grid-column: 1;
        grid-row: 1 / span 2;
    }

    .timeline-copy {
        grid-column: 2;
        padding-bottom: 27px;
    }

    .timeline-item:not(:last-child)::after {
        top: 25px;
        bottom: -2px;
        left: 8px;
    }

    .event-count {
        display: none;
    }

    .shipment-details {
        grid-template-columns: 1fr;
    }

    .shipment-details > div,
    .shipment-details > div:nth-child(even) {
        grid-column: 1;
        padding-left: 0;
        border-left: 0;
    }

    footer {
        min-height: 76px;
        flex-wrap: wrap;
        gap: 7px;
    }

    .skeleton,
    .skeleton-hero {
        min-height: 495px;
        padding: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* --------------------------------------------------------------------------
   Bandeja multipaquete
   -------------------------------------------------------------------------- */

.page-shell-wide {
    --content-width: 1500px;
}

body.is-modal-open {
    overflow: hidden;
}

.button-secondary {
    color: var(--ink);
    background: rgba(255, 253, 249, .78);
    border: 1px solid var(--line);
    box-shadow: 0 7px 20px rgba(37, 31, 24, .05);
}

.button-secondary:hover:not(:disabled) {
    color: var(--brand);
    background: #fff;
    border-color: #cdb8bb;
}

.tracker-shell {
    display: grid;
    grid-template-columns: minmax(285px, 330px) minmax(0, 1fr);
    align-items: start;
    gap: 22px;
}

.shipment-sidebar {
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 32px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 24px 18px 18px;
    background: rgba(255, 253, 249, .88);
    border: 1px solid rgba(214, 208, 197, .85);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(16px);
}

.sidebar-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 5px;
}

.sidebar-heading .eyebrow {
    margin-bottom: 3px;
}

.sidebar-heading h1 {
    margin: 0;
    font-size: 27px;
    line-height: 1.1;
    letter-spacing: -.045em;
}

.package-total {
    min-width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    color: white;
    background: var(--night);
    border-radius: 13px;
    font-size: 13px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.package-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    margin: 22px 0 17px;
}

.package-stats > div {
    min-width: 0;
    padding: 10px 6px;
    text-align: center;
    background: var(--surface-soft);
    border: 1px solid var(--line-light);
    border-radius: 11px;
}

.package-stats dt {
    overflow: hidden;
    color: var(--ink-faint);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .06em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.package-stats dd {
    margin: 2px 0 0;
    font-size: 18px;
    font-weight: 780;
    font-variant-numeric: tabular-nums;
}

.search-box {
    position: relative;
    display: block;
}

.search-box svg {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 18px;
    fill: none;
    stroke: var(--ink-faint);
    stroke-width: 1.8;
    stroke-linecap: round;
    pointer-events: none;
}

.search-box input,
.form-field input,
.form-field select {
    width: 100%;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 11px;
    outline: 0;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.search-box input {
    height: 43px;
    padding: 0 12px 0 39px;
    font: inherit;
    font-size: 12px;
}

.search-box input:focus,
.form-field input:focus,
.form-field select:focus {
    border-color: #a76a75;
    box-shadow: 0 0 0 3px rgba(197, 16, 47, .1);
}

.shipment-filters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin: 11px 0 13px;
    padding: 4px;
    background: var(--paper-deep);
    border-radius: 11px;
}

.shipment-filters button {
    min-width: 0;
    min-height: 31px;
    padding: 0 5px;
    color: var(--ink-soft);
    background: transparent;
    border: 0;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 800;
    cursor: pointer;
}

.shipment-filters button[aria-pressed="true"] {
    color: var(--ink);
    background: var(--surface);
    box-shadow: 0 2px 8px rgba(37, 31, 24, .09);
}

.shipment-list {
    min-height: 120px;
    display: grid;
    align-content: start;
    gap: 8px;
    overflow-y: auto;
    padding: 1px 3px 8px 1px;
    scrollbar-width: thin;
    scrollbar-color: #c9c4bb transparent;
}

.shipment-list-item {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 12px 11px;
    color: var(--ink);
    text-align: left;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.shipment-list-item:hover {
    background: var(--surface-soft);
    border-color: var(--line-light);
    transform: translateX(2px);
}

.shipment-list-item.is-selected {
    background: #fff8f7;
    border-color: #e6c4c8;
    box-shadow: 0 6px 18px rgba(104, 34, 43, .06);
}

.shipment-list-item.is-selected::before {
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: -2px;
    width: 3px;
    content: "";
    background: var(--brand);
    border-radius: 999px;
}

.source-avatar,
.list-avatar {
    display: grid;
    place-items: center;
    color: white;
    background: #69727f;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: -.02em;
}

.list-avatar {
    width: 38px;
    height: 38px;
}

.source-avatar[data-source="amazon"],
.list-avatar[data-source="amazon"] {
    color: #1e242b;
    background: #ffbd62;
}

.source-avatar[data-source="aliexpress"],
.list-avatar[data-source="aliexpress"] {
    background: #e95143;
}

.source-avatar[data-source="pccomponentes"],
.list-avatar[data-source="pccomponentes"] {
    color: #20252c;
    background: #f29a2e;
    box-shadow: inset 0 0 0 1px rgba(32, 37, 44, .08);
}

.source-avatar[data-source="direct"],
.list-avatar[data-source="direct"] {
    background: #47758e;
}

.shipment-list-entry {
    display: block;
}

.list-copy {
    min-width: 0;
    display: grid;
}

.list-copy strong,
.list-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.list-copy strong {
    font-size: 12px;
    font-weight: 760;
}

.list-copy small {
    margin-top: 2px;
    color: var(--ink-faint);
    font-size: 9px;
}

.list-status {
    display: grid;
    justify-items: end;
    gap: 5px;
}

.list-status-dot {
    width: 8px;
    height: 8px;
    background: #9ea2a5;
    border-radius: 50%;
}

.list-status-dot[data-status="registered"],
.list-status-dot[data-status="accepted"] { background: #d49437; }
.list-status-dot[data-status="transit"],
.list-status-dot[data-status="customs"] { background: #e45e68; }
.list-status-dot[data-status="out-for-delivery"],
.list-status-dot[data-status="ready-for-pickup"] { background: #4c8fd2; }
.list-status-dot[data-status="delivered"] { background: var(--success); }
.list-status-dot[data-status="issue"],
.list-status-dot[data-status="returned"] { background: var(--danger); }

.list-alert {
    min-width: 17px;
    height: 17px;
    display: grid;
    place-items: center;
    color: #8d5b12;
    background: #fff0d2;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 900;
}

.list-empty {
    padding: 22px 10px;
    color: var(--ink-faint);
    text-align: center;
    font-size: 11px;
}

.list-empty p {
    margin: 0 0 7px;
}

.text-button {
    padding: 3px;
    color: var(--brand);
    background: transparent;
    border: 0;
    font-size: 11px;
    font-weight: 750;
    cursor: pointer;
}

.shipment-workspace {
    min-width: 0;
}

.detail-toolbar {
    min-height: 66px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    margin-bottom: 13px;
    padding: 2px 2px 2px 5px;
}

.detail-identity {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.source-avatar {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
}

.detail-identity .eyebrow {
    margin-bottom: 2px;
}

.detail-identity h1 {
    overflow: hidden;
    margin: 0;
    font-size: 21px;
    letter-spacing: -.035em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.danger-button:hover {
    color: var(--danger);
    border-color: #dfb5bb;
    background: #fff7f7;
}

.mobile-back-button {
    display: none;
}

.detail-notice {
    margin-top: 0;
}

.status-copy h2 {
    max-width: 650px;
    margin: 0;
    font-size: clamp(34px, 3.7vw, 54px);
    font-weight: 740;
    letter-spacing: -.055em;
    line-height: .98;
    text-wrap: balance;
}

.status-card[data-status="accepted"] { --status-accent: #e9ac56; }
.status-card[data-status="customs"] { --status-accent: #b77ed1; }
.status-card[data-status="ready-for-pickup"] { --status-accent: #72a9e4; }

.sync-card .refresh-icon {
    width: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.external-explainer {
    margin: 18px 0;
    padding: 14px;
    color: #735322;
    background: #fff5df;
    border: 1px solid #ecd49d;
    border-radius: 13px;
    font-size: 11px;
    line-height: 1.5;
}

.workspace-empty {
    min-height: 620px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px;
    text-align: center;
    background: rgba(255, 253, 249, .7);
    border: 1px dashed #cbc4b9;
    border-radius: var(--radius-lg);
}

.empty-orbit {
    width: 110px;
    height: 110px;
    display: grid;
    place-items: center;
    margin-bottom: 25px;
    color: var(--brand);
    background: #fff7f5;
    border: 1px solid #ead2d3;
    border-radius: 50%;
    box-shadow: 0 0 0 15px rgba(197, 16, 47, .035), 0 0 0 30px rgba(197, 16, 47, .02);
}

.empty-orbit svg {
    width: 58px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.workspace-empty h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
    letter-spacing: -.05em;
}

.workspace-empty > p:not(.eyebrow) {
    max-width: 560px;
    margin: 15px 0 25px;
    color: var(--ink-soft);
}

.loading-layout-multi {
    grid-template-columns: minmax(285px, 330px) minmax(0, 1fr);
}

.skeleton-sidebar {
    min-height: 620px;
}

.modal-backdrop {
    position: fixed;
    z-index: 200;
    inset: 0;
    display: grid;
    place-items: center;
    overflow-y: auto;
    padding: 24px;
    background: rgba(22, 25, 30, .56);
    backdrop-filter: blur(8px);
    animation: modal-fade-in .18s ease-out;
}

.modal-card {
    width: min(100%, 700px);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 28px;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 25px;
    box-shadow: 0 30px 90px rgba(11, 13, 17, .3);
    animation: modal-rise-in .22s ease-out;
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line-light);
}

.modal-header h2 {
    margin: 0;
    font-size: 28px;
    letter-spacing: -.045em;
}

.modal-header p:not(.eyebrow) {
    margin: 6px 0 0;
    color: var(--ink-soft);
    font-size: 12px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 22px;
}

.form-field {
    display: grid;
    gap: 7px;
    color: var(--ink-soft);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.form-field-wide {
    grid-column: 1 / -1;
}

.form-field input,
.form-field select {
    height: 46px;
    padding: 0 13px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.form-field small {
    font-weight: 600;
    text-transform: none;
}

.form-field input[aria-invalid="true"],
.form-field select[aria-invalid="true"] {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(170, 38, 54, .1);
}

.conditional-fields {
    margin: 22px 0 0;
    padding: 18px;
    background: var(--surface-soft);
    border: 1px solid var(--line-light);
    border-radius: 16px;
}

.conditional-fields legend {
    padding: 0 7px;
    font-size: 12px;
    font-weight: 780;
}

.conditional-fields > p {
    margin: 0 0 -5px;
    color: var(--ink-faint);
    font-size: 10px;
}

.conditional-fields .form-grid {
    margin-top: 16px;
}

.conditional-fields > .form-field {
    margin-top: 15px;
}

.form-grid-footer {
    align-items: end;
}

.check-field {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    background: var(--surface-soft);
    border: 1px solid var(--line-light);
    border-radius: 11px;
    cursor: pointer;
}

.check-field input {
    width: 18px;
    height: 18px;
    accent-color: var(--brand);
}

.check-field > span {
    display: grid;
}

.check-field strong {
    font-size: 11px;
}

.check-field small {
    color: var(--ink-faint);
    font-size: 9px;
}

.form-error {
    margin: 17px 0 0;
    padding: 11px 13px;
    color: #852433;
    background: #fff0f1;
    border: 1px solid #e4b5bd;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 650;
}

.modal-actions {
    min-height: 0;
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line-light);
}

@keyframes modal-fade-in {
    from { opacity: 0; }
}

@keyframes modal-rise-in {
    from { opacity: 0; transform: translateY(12px) scale(.99); }
}

@media (max-width: 1180px) {
    .tracker-shell,
    .loading-layout-multi {
        grid-template-columns: 280px minmax(0, 1fr);
        gap: 16px;
    }

    .detail-toolbar {
        grid-template-columns: 1fr;
    }

    .detail-actions {
        grid-row: 2;
    }
}

@media (max-width: 760px) {
    .page-shell-wide {
        width: min(calc(100% - 24px), var(--content-width));
    }

    .refresh-all-button {
        display: none;
    }

    .tracker-shell,
    .loading-layout-multi {
        display: block;
    }

    .skeleton-sidebar {
        min-height: 620px;
    }

    .loading-layout-multi .skeleton-hero {
        display: none;
    }

    .shipment-sidebar {
        position: static;
        max-height: none;
        min-height: calc(100vh - 104px);
    }

    .shipment-list {
        overflow: visible;
    }

    .shipment-workspace {
        display: none;
    }

    body.is-detail-view .shipment-sidebar {
        display: none;
    }

    .tracker-shell.has-no-shipments .shipment-sidebar {
        display: none;
    }

    body.is-detail-view .shipment-workspace,
    .tracker-shell.has-no-shipments .shipment-workspace {
        display: block;
    }

    .mobile-back-button {
        width: max-content;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 5px 0;
        color: var(--brand);
        background: transparent;
        border: 0;
        font-size: 11px;
        font-weight: 750;
        cursor: pointer;
    }

    .mobile-back-button svg {
        width: 17px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .detail-toolbar {
        display: flex;
        flex-wrap: wrap;
        margin-bottom: 12px;
    }

    .mobile-back-button {
        flex-basis: 100%;
    }

    .detail-identity {
        min-width: 0;
        flex: 1 1 170px;
    }

    .detail-actions {
        margin-left: auto;
    }

    #official-link {
        width: 42px;
        padding: 0;
    }

    #official-link span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .workspace-empty {
        min-height: calc(100vh - 104px);
        padding: 28px;
    }

    .modal-backdrop {
        align-items: end;
        padding: 0;
    }

    .modal-card {
        width: 100%;
        max-height: 94vh;
        padding: 23px 18px;
        border-radius: 24px 24px 0 0;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-field-wide {
        grid-column: auto;
    }

    .modal-actions .button {
        flex: 1;
    }
}

@media (max-width: 430px) {
    .topbar-actions {
        gap: 7px;
    }

    #add-button {
        width: 44px;
        padding: 0;
    }

    #add-button span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .detail-identity h1 {
        max-width: 145px;
    }

    .detail-actions {
        gap: 5px;
    }

    .detail-actions .icon-button {
        width: 39px;
        height: 39px;
    }

    .status-copy h2 {
        font-size: clamp(33px, 10vw, 45px);
    }
}
