:root {
    color-scheme: light;
    --ink: #112238;
    --navy: #0d2035;
    --steel: #425a72;
    --muted: #52647a;
    --line: #dce4ec;
    --paper: #f0f3f6;
    --gold: #ffce55;
    --green: #156654;
    --surface: #fff;
    --radius: 22px;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); font-size: 15px; line-height: 1.52; }
h1, h2, h3, p { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid #377bcc; outline-offset: 3px; }
.skip-link { position: fixed; z-index: 4; left: 1rem; top: 1rem; padding: 9px 14px; color: var(--ink); background: var(--gold); transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; align-self: start; max-height: 100vh; overflow-y: auto; padding: 24px 18px; background: var(--navy); color: #dce7f1; }
.brand { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 22px; }
.pro-brand-logo { width: 83px; height: 48px; object-fit: contain; padding: 5px 8px; border-radius: 9px; background: white; }
.pro-brand-title { display: flex; gap: 6px; align-items: center; color: white; font-size: 23px; line-height: 1; letter-spacing: -.06em; font-weight: 850; }
.pro-badge { border-radius: 5px; background: var(--gold); color: var(--ink); font-size: 10px; padding: 4px 5px; letter-spacing: .04em; font-weight: 800; }
.nav-label { margin: 19px 10px 6px; color: #aec3d9; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.navs a { color: inherit; text-decoration: none; }
.navs a:hover { color: #fff; background: #243f5b; }
.nav { display: flex; align-items: center; gap: 10px; min-height: 42px; margin: 3px 0; padding: 7px 10px; font-weight: 650; border: 1px solid transparent; border-radius: 10px; }
.nav-mark { width: 19px; text-align: center; color: #bdd2e6; }
.nav.active { border-color: #3a526a; background: #213b55; color: white; }
.nav.active .nav-mark { color: var(--gold); }
.subnav { display: grid; gap: 3px; margin: 3px 0 8px 22px; padding: 0 0 0 8px; border-left: 1px solid #4f657c; font-size: 13px; }
.subnav a { display: block; padding: 5px 7px; border-radius: 6px; }
.subnav a[aria-current="location"] { color: var(--gold); background: #213b55; }
.workspace { min-width: 0; }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 68px; padding: 12px clamp(16px, 3.2vw, 42px); background: white; border-bottom: 1px solid var(--line); }
.account { display: flex; align-items: center; justify-content: end; gap: 14px; min-width: 0; text-align: right; }
.account a, .link { color: #244e78; font-weight: 700; text-underline-offset: .2em; }
.account a { flex: 0 0 auto; padding: 6px 10px; border: 1px solid var(--line); border-radius: 9px; text-decoration: none; }
.account a:hover, .account a:focus-visible { background: #e8f0f8; }
.profile-name { color: var(--steel); font-size: .88rem; font-weight: 640; overflow-wrap: anywhere; }
main { margin: auto; padding: clamp(16px, 3vw, 38px); max-width: 1500px; }
main :is([id], .panel) { scroll-margin-block-start: 20px; }
.views > [data-pro-view] { display: none; }
.views > [data-pro-view]:is(:target, :has(:target)),
.views:not(:has(> [data-pro-view]:target, > [data-pro-view] :target)) > #overview { display: block; }
.views > .panel > .panel-head { padding: clamp(17px, 3vw, 28px) clamp(17px, 3vw, 28px) 14px; }
.views > .panel > .panel-head h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 228px; padding: clamp(20px, 4vw, 44px); display: grid; align-content: center; justify-items: start; gap: 20px; color: white; background: #102842; border-radius: 27px; box-shadow: 0 20px 34px -27px #132f4d; }
.hero::before, .hero::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.hero::before { left: 36%; background: center 54% / cover no-repeat url("/assets/pro-dashboard/hero.webp"); }
.hero::after { background: linear-gradient(90deg, #0b1b2d 2%, #102842 32%, #102842ef 44%, #10284222 77%, transparent); }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); line-height: .98; letter-spacing: -.07em; font-weight: 850; }
h1 em { color: var(--gold); font-style: normal; }
.hero p { margin-top: 11px; color: #e3edf8; font-size: 1rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.actions button { min-height: 44px; padding: 10px 15px; color: #fff; background: #26435e; border: 1px solid #627992; border-radius: 10px; font-weight: 720; }
.actions .primary { color: var(--ink); background: var(--gold); border-color: #e5b638; box-shadow: 0 8px 24px -11px #0b1b2d; }
.actions .primary:hover { background: #ffdc80; }
.action-note { color: #ecf5fc; }
h2 { font-size: clamp(1.05rem, 2.3vw, 1.38rem); line-height: 1.18; letter-spacing: -.035em; }
h3 { font-size: 1rem; letter-spacing: -.017em; }
.sub { color: var(--muted); font-size: .875rem; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 12px 25px -23px #132f4d; }
.balance, .widget-value { display: block; font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 820; line-height: 1.16; letter-spacing: -.055em; }
.home-widgets { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 14px; margin-top: 16px; }
.widget { display: grid; gap: 9px; align-content: start; padding: clamp(15px, 2.3vw, 24px); }
.widget-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; justify-content: space-between; }
.shipment-widget { grid-row: span 2; grid-template-rows: auto 1fr auto; }
.wallet-widget { background: #102842; border-color: #102842; color: white; }
.wallet-widget .sub { color: #dce7f1; }
.wallet-widget .widget-link { color: var(--gold); }
.chart { display: grid; align-content: center; gap: 12px; padding-block: 6px; }
.chart-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 10px; font-size: .9rem; }
.chart-row strong { font-variant-numeric: tabular-nums; }
.chart meter { grid-column: 1 / -1; display: block; width: 100%; height: 8px; appearance: none; border: 0; border-radius: 999px; background: #e8eef4; }
.chart meter::-webkit-meter-bar { height: 8px; background: #e8eef4; border: 0; }
.chart meter::-webkit-meter-optimum-value { background: var(--series-color); }
.chart meter::-moz-meter-bar { background: var(--series-color); }
.chart meter.transit { --series-color: #3775ae; }
.chart meter.delivered { --series-color: var(--green); }
.chart meter.other { --series-color: #a76e13; }
.widget-link { justify-self: start; color: #244e78; font-size: .88rem; font-weight: 750; text-decoration: none; }
.widget-link:hover { text-decoration: underline; text-underline-offset: .2em; }
.section-links { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 clamp(17px, 3vw, 28px) 16px; }
.section-links a { padding: 7px 11px; border: 1px solid var(--line); border-radius: 9px; color: #244e78; background: #f5f8fb; font-weight: 700; text-decoration: none; }
.section-links a:hover { background: #e9f1f8; }
.panel-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 7px 14px; }
.panel-head { padding: 18px 17px 12px; }
.panel-count { display: inline-flex; border-radius: 999px; padding: 3px 8px; color: #375570; background: #eaf0f6; font-size: .78rem; font-weight: 750; white-space: nowrap; }
.panel-body { padding: 0 17px 15px; }
.panel-body p + p { margin-top: 8px; }
.accounting { padding: 0 17px 15px; }
.accounting .sub { margin-top: 4px; }
.list-label { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 720; margin: 13px 0 5px; }
.table-area { overflow-x: auto; }
.table-area:focus-visible { outline-offset: -3px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .875rem; }
th, td { padding: 10px 12px; vertical-align: middle; border-bottom: 1px solid #e8eef4; }
th { color: var(--muted); background: #f2f6f9; font-size: .78rem; font-weight: 750; white-space: nowrap; }
th:first-child, td:first-child { padding-left: 17px; }
th:last-child, td:last-child { padding-right: 17px; }
td:first-child, td:nth-child(2) { white-space: nowrap; }
.ref { color: #214e77; font-weight: 750; text-underline-offset: .18em; }
.tag { display: inline-block; padding: 4px 8px; border-radius: 999px; font-size: .75rem; font-weight: 730; white-space: nowrap; }
.tag.transit { color: #284f76; background: #e7f0f8; }
.tag.done { color: #156654; background: #e5f5ee; }
.tag.wait { color: #68460b; background: #fff1cf; }
.table-action { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.table-action a, .inline-action, .shortcut { color: #244e78; font-weight: 700; text-underline-offset: .2em; }
.inline-action { padding: 3px 0; border: 0; background: transparent; text-decoration: underline; }
.shortcut { display: inline-block; margin-top: 6px; }
.mov { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 3px 10px; padding: 9px 0; border-top: 1px solid #e8eef4; font-size: .875rem; }
.mov strong { white-space: nowrap; }
.list-tools { margin-top: 7px; }
.list-tools:empty { display: none; }
.panel > .list-tools { padding: 0 17px 9px; }
.list-toggle { min-height: 36px; border: 1px solid var(--line); border-radius: 9px; background: #f5f8fb; padding: 5px 10px; color: #234e77; font-size: .84rem; font-weight: 750; }
.list-toggle:hover, .list-toggle:focus-visible { background: #e9f1f8; }
.list-toggle[aria-expanded="true"] { border-color: #b7c8d8; background: #ecf3fa; }
.saved-row { padding-top: 10px; padding-bottom: 10px; border-bottom: 1px solid #e8eef4; }
.saved-row .shortcut { margin-left: .4rem; }
.empty { padding: 9px 17px 14px; color: var(--muted); }
.detail { margin-top: 10px; }
.detail h3, h3.detail { margin-bottom: 5px; }
#tracking-result { color: var(--muted); font-size: .875rem; }
#tracking-result ul { margin: 6px 0; padding-left: 1.1rem; }
#tracking-result ul:empty { display: none; }
.ticket-list { margin: 0; padding: 0; list-style: none; }
.ticket-list li { padding: 8px 0; border-bottom: 1px solid #e8eef4; }
.ticket-note { padding: 8px 0; overflow-wrap: anywhere; white-space: pre-wrap; border-bottom: 1px solid #e8eef4; }
.gate { max-width: 640px; margin: 10vh auto; }
.gate h1 { margin-bottom: 14px; }
@media (min-width: 761px) { .sidebar { min-height: 100vh; } }
@media (max-width: 1080px) {
    .shell { grid-template-columns: 214px minmax(0, 1fr); }
    .sidebar { padding-inline: 14px; }
}
@media (max-width: 760px) {
    .shell { display: block; }
    .sidebar { position: static; max-height: none; overflow: visible; padding: 11px 15px 10px; }
    .brand { margin: 0 0 8px; gap: 8px; }
    .pro-brand-logo { width: 60px; height: 35px; }
    .pro-brand-title { font-size: 20px; }
    .navs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 2px 2px 3px; }
    .nav-label, .subnav { display: none; }
    .nav { padding-inline: 8px; min-height: 36px; margin-block: 0; gap: 7px; font-size: .84rem; }
    .nav-mark { flex: 0 0 16px; }
    .bar { min-height: 49px; padding: 8px 15px; }
    .bar > strong { display: none; }
    .account { width: 100%; justify-content: space-between; text-align: left; }
    .hero { border-radius: 20px; min-height: 185px; gap: 14px; }
    .hero::before { left: 16%; background-position: 64% center; }
    .hero::after { background: linear-gradient(90deg, #0b1b2d 2%, #102842e8 43%, #10284246 100%); }
    .hero p { font-size: .95rem; }
    .home-widgets { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 12px; }
    .shipment-widget { grid-column: 1 / -1; grid-row: auto; }
    .panel { border-radius: 15px; }
}

.pro-access .access-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(310px, .85fr); gap: 18px; align-items: stretch; max-width: 1030px; margin: min(7vh, 68px) auto 0; }
.access-hero { justify-content: stretch; min-height: 395px; }
.access-hero .brand { margin: 0 0 10px; }
.access-hero::before { left: 18%; }
.access-hero::after { background: linear-gradient(90deg, #0b1b2d 2%, #102842ed 40%, #1028422e 100%); }
.access-panel { padding: clamp(20px, 3.4vw, 37px); display: grid; align-content: center; gap: 9px; }
.access-form { display: grid; margin-block: 9px; gap: 6px; }
.access-form label { font-weight: 720; font-size: .9rem; }
.access-form input { width: 100%; padding: 8px 10px; min-height: 44px; margin-bottom: 6px; border: 1px solid #b6c8d8; border-radius: 9px; background: white; }
.access-form .actions { margin-top: 6px; }
.access-form button { width: 100%; }
.access-form button:disabled { opacity: .62; cursor: default; }
.pfi-account-form-error-v21, .pfi-field-error-v21 { color: #962e2b; }
.pfi-account-form-error-v21:empty { display: none; }
.access-form .pfi-invalid-v21 { border-color: #b24643; }
@media (max-width: 760px) {
    .pro-access .access-layout { margin-top: 0; grid-template-columns: 1fr; gap: 12px; }
    .access-hero { min-height: 210px; justify-content: start; }
}

@media (max-width: 760px) {
    .orders-table, .orders-table tbody { display: block; }
    .orders-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
    .orders-table tbody tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas: "ref status" "date carrier" "service actions";
        gap: 1px 7px;
        align-items: baseline;
        padding: 7px 17px;
        border-block: 1px solid #e8eef4;
    }
    .orders-table td { min-width: 0; padding: 2px 0; border: 0; overflow-wrap: anywhere; }
    .orders-table td:nth-child(1) { grid-area: ref; white-space: normal; }
    .orders-table td:nth-child(2) { grid-area: date; }
    .orders-table td:nth-child(3) { grid-area: carrier; text-align: right; }
    .orders-table td:nth-child(4) { grid-area: service; color: var(--steel); }
    .orders-table td:nth-child(5) { grid-area: status; text-align: right; }
    .orders-table td:nth-child(6) { grid-area: actions; }
    .orders-table .table-action { flex-wrap: wrap; justify-content: flex-end; white-space: normal; }
}
