/**
 * Customer shipment tracking — Shipment Control Desk (track_shipment.php)
 */

html:has(body.pts-app) {
    height: 100%;
    overflow: hidden;
}

body.pts-app {
    height: 100%;
    margin: 0;
    overflow: hidden;
    background: #0a101c;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: #0f172a;
    -webkit-font-smoothing: antialiased;
}

body.pts-app .logyx-page-loader {
    background: #0b1220;
}

/* Center Font Awesome glyphs inside square/circle badges */
body.pts-app .pts-icon-box {
    position: relative;
    display: block;
    flex-shrink: 0;
    line-height: 0;
    overflow: hidden;
}

body.pts-app i.pts-icon-box {
    font-style: normal;
}

body.pts-app i.pts-icon-box::before,
body.pts-app .pts-icon-box > i::before {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
}

body.pts-app .pts-icon-box > i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-style: normal;
    line-height: 1;
    display: block;
    margin: 0;
    padding: 0;
}

.pts-app {
    display: grid;
    grid-template-rows: 58px minmax(0, 1fr) 36px;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

/* ── Top bar ── */
.pts-topbar {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) minmax(0, 1.6fr) auto;
    align-items: center;
    gap: 14px;
    padding: 0 18px;
    background: linear-gradient(180deg, #1a2744 0%, #152238 100%);
    border-bottom: 1px solid #243049;
    color: #e2e8f0;
}

.pts-topbar-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.pts-topbar-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(145deg, #1d4ed8, #3b82f6);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.35);
}

.pts-topbar-logo img {
    max-width: 30px;
    max-height: 30px;
    object-fit: contain;
}

.pts-topbar-title strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pts-topbar-title span {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 1px;
}

.pts-topbar-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.pts-topbar-chip-rail {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 4px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid #2a364d;
    overflow-x: auto;
    scrollbar-width: none;
}

.pts-topbar-chip-rail::-webkit-scrollbar {
    display: none;
}

.pts-topbar-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 7px;
    background: transparent;
    border: 1px solid transparent;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    color: #cbd5e1;
}

.pts-topbar-chip i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}

.pts-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: currentColor;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.25);
}

.pts-topbar-chip.is-status {
    gap: 7px;
}

.pts-topbar-chip.is-status.is-live.is-created,
.pts-topbar-chip.is-status.is-live.is-in-transit,
.pts-topbar-chip.is-status.is-live.is-reached,
.pts-topbar-chip.is-status.is-live.is-reached-destination,
.pts-topbar-chip.is-status.is-live.is-out-for-delivery {
    background: rgba(16, 185, 129, 0.22);
    border-color: rgba(52, 211, 153, 0.55);
    color: #d1fae5;
}

.pts-topbar-chip.is-status.is-live.is-created .pts-live-dot,
.pts-topbar-chip.is-status.is-live.is-in-transit .pts-live-dot,
.pts-topbar-chip.is-status.is-live.is-reached .pts-live-dot,
.pts-topbar-chip.is-status.is-live.is-reached-destination .pts-live-dot,
.pts-topbar-chip.is-status.is-live.is-out-for-delivery .pts-live-dot {
    color: #34d399;
    background: #34d399;
    box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.45);
    animation: pts-live-pulse 1.4s ease-in-out infinite;
}

@keyframes pts-live-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.45), 0 0 6px rgba(52, 211, 153, 0.35);
    }
    50% {
        opacity: 0.45;
        transform: scale(0.92);
        box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.12), 0 0 10px rgba(52, 211, 153, 0.2);
    }
}

.pts-topbar-chip.is-id {
    background: rgba(15, 23, 42, 0.85);
    border-color: #334155;
    color: #f8fafc;
    font-weight: 700;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
}

.pts-topbar-chip.is-id i {
    color: #60a5fa;
    font-size: 10px;
}

.pts-topbar-chip.is-principal {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pts-topbar-chip.is-status.is-delivered,
.pts-topbar-chip.is-status.is-closed {
    background: rgba(100, 116, 139, 0.25);
    border-color: rgba(148, 163, 184, 0.4);
    color: #e2e8f0;
}

.pts-topbar-chip.is-status.is-delivered .pts-live-dot,
.pts-topbar-chip.is-status.is-closed .pts-live-dot {
    color: #94a3b8;
    background: #94a3b8;
    box-shadow: none;
    animation: none;
}

.pts-topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 20;
}

.pts-popover-wrap {
    position: relative;
}

.pts-popover {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(300px, calc(100vw - 24px));
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
    color: #334155;
    z-index: 50;
}

.pts-popover header {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 800;
    color: #0f172a;
}

.pts-popover p {
    margin: 0 0 8px;
    font-size: 11px;
    line-height: 1.5;
    color: #64748b;
}

.pts-popover-note {
    margin: 0 !important;
}

.pts-popover-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 4px;
}

.pts-popover-list li a,
.pts-popover-list li > span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
}

.pts-popover-list li a:hover {
    background: #f1f5f9;
}

.pts-popover-list li a span,
.pts-popover-list li span em {
    font-style: normal;
    font-size: 10px;
    font-weight: 700;
    color: #2563eb;
    background: #eff6ff;
    padding: 2px 7px;
    border-radius: 6px;
}

.pts-popover-list.is-contact li a {
    justify-content: flex-start;
    gap: 8px;
    color: #2563eb;
}

.pts-popover-list.is-contact li a i {
    width: 22px;
    text-align: center;
    color: #64748b;
}

.pts-icon-btn {
    position: relative;
    width: 34px;
    height: 34px;
    border: 1px solid #334155;
    border-radius: 9px;
    background: rgba(30, 41, 59, 0.9);
    color: #cbd5e1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    line-height: 0;
    padding: 0;
}

.pts-icon-btn i::before {
    display: block;
    line-height: 1;
}

.pts-icon-btn:hover {
    background: #334155;
}

.pts-icon-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    display: grid;
    place-items: center;
    border: 2px solid #152238;
}

.pts-support-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 9px;
    background: linear-gradient(145deg, #1d4ed8, #2563eb);
    border: 1px solid #3b82f6;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.pts-support-btn:hover {
    background: linear-gradient(145deg, #1e40af, #1d4ed8);
}

.pts-support-btn.is-muted {
    opacity: 0.55;
    pointer-events: none;
    box-shadow: none;
}

/* ── Workspace ── */
.pts-workspace {
    display: grid;
    /* Equal side columns; center column gets ~2.4× the width of each side */
    grid-template-columns: minmax(220px, 1fr) minmax(360px, 2.4fr) minmax(220px, 1fr);
    gap: 12px;
    padding: 12px;
    min-height: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 0%, rgba(37, 99, 235, 0.06), transparent 40%),
        radial-gradient(circle at 80% 100%, rgba(13, 148, 136, 0.05), transparent 35%),
        #e4e9f0;
}

.pts-panel-summary,
.pts-panel-lrs {
    min-width: 0;
}

/* Movement */
.pts-panel-track {
    min-width: 0;
    background: linear-gradient(180deg, #fcfdfe 0%, #f6f8fb 100%);
}

.pts-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    background: #fff;
    border: 1px solid #d8dee8;
    border-radius: 16px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 8px 24px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.pts-panel-head {
    padding: 14px 16px 12px;
    border-bottom: 1px solid #eef2f7;
    flex-shrink: 0;
    background: linear-gradient(180deg, #fafbfd 0%, #fff 100%);
}

.pts-panel-head-main {
    display: flex;
    align-items: center;
    gap: 11px;
}

.pts-panel-icon {
    width: 36px;
    height: 36px;
    font-size: 14px;
    border-radius: 10px;
    background: linear-gradient(145deg, #dbeafe, #eff6ff);
    border: 1px solid #bfdbfe;
    color: #2563eb;
}

.pts-panel-icon.is-teal {
    background: linear-gradient(145deg, #ccfbf1, #f0fdfa);
    border-color: #99f6e4;
    color: #0d9488;
}

.pts-panel-icon.is-live {
    background: linear-gradient(145deg, #bbf7d0, #ecfdf5);
    border-color: #86efac;
    color: #16a34a;
}

.pts-panel-head h2 {
    margin: 0;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0f172a;
    line-height: 1.2;
}

.pts-panel-head span {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

/* Shipment facts — compact rows */
.pts-facts {
    margin: 0;
    padding: 4px 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.pts-fact-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(72px, 42%);
    align-items: center;
    gap: 8px;
    padding: 8px 6px;
    border-bottom: 1px solid #f1f5f9;
}

.pts-fact-row:last-child {
    border-bottom: 0;
}

.pts-fact-row dt {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    line-height: 1.2;
}

.pts-fact-row dt span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pts-fact-row dt i {
    width: 24px;
    height: 24px;
    font-size: 10px;
    border-radius: 7px;
    background: linear-gradient(145deg, #eff6ff, #f8fbff);
    border: 1px solid #dbeafe;
    color: #3b82f6;
}

.pts-fact-row dd {
    margin: 0;
    font-size: 12px;
    color: #0f172a;
    font-weight: 700;
    line-height: 1.35;
    text-align: right;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

.pts-fact-row.is-wide dd {
    -webkit-line-clamp: 3;
    font-size: 11px;
    font-weight: 600;
    color: #334155;
}

.pts-path-wrap {
    padding: 14px 14px 8px;
    flex-shrink: 0;
}

.pts-path {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 14px;
    align-items: center;
    width: 100%;
    padding: 14px 14px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.pts-path-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(88px, 1fr);
    align-items: start;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
    padding-bottom: 4px;
}

.pts-path-track::-webkit-scrollbar {
    height: 5px;
}

.pts-path-step {
    position: relative;
    display: grid;
    gap: 7px;
    justify-items: center;
    min-width: 88px;
    text-align: center;
}

.pts-path-step:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 16px;
    left: calc(50% + 16px);
    width: calc(100% - 32px);
    height: 3px;
    background: #e2e8f0;
    z-index: 0;
}

.pts-path-step.is-done:not(:last-child)::before {
    background: #86efac;
}

.pts-path-step.is-active:not(:last-child)::before {
    background: linear-gradient(90deg, #86efac, #93c5fd);
}

.pts-path-node {
    position: relative;
    z-index: 1;
    width: 32px;
    height: 32px;
    font-size: 13px;
    border-radius: 999px;
    border: 2px solid #e2e8f0;
    background: #fff;
    color: #94a3b8;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.pts-path-node i::before {
    font-size: 13px;
}

.pts-path-step.is-done .pts-path-node {
    border-color: #16a34a;
    background: #22c55e;
    color: #fff;
}

.pts-path-step.is-active .pts-path-node {
    border-color: #1d4ed8;
    background: #2563eb;
    color: #fff;
    box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.16);
}

.pts-path-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    max-width: 100%;
    overflow: hidden;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pts-path-label > i {
    flex: 0 0 auto;
    font-size: 9px;
    line-height: 1;
}

.pts-path-step.is-done .pts-path-label,
.pts-path-step.is-active .pts-path-label {
    color: #334155;
}

.pts-path-step.is-active .pts-path-label {
    color: #1d4ed8;
    font-weight: 800;
}

.pts-path-time {
    display: block;
    font-size: 9px;
    font-style: normal;
    font-weight: 600;
    color: #2563eb;
    line-height: 1.2;
    white-space: nowrap;
}

.pts-path-caption {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.pts-path-caption > i {
    font-size: 11px;
    color: #64748b;
}

.pts-path-updated {
    margin: 0;
    padding: 0 14px 6px;
    text-align: center;
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

.pts-path-updated i {
    margin-right: 4px;
    color: #94a3b8;
}

.pts-insight {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px 20px 10px;
    min-height: 0;
}

.pts-insight-art {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 14px;
    width: 100%;
    max-width: 280px;
}

.pts-insight-route {
    flex: 1;
    height: 2px;
    min-width: 18px;
    max-width: 36px;
    background: repeating-linear-gradient(90deg, #cbd5e1 0, #cbd5e1 5px, transparent 5px, transparent 9px);
    opacity: 0.9;
}

.pts-insight-pin {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: #fff;
    border: 2px solid #e2e8f0;
    color: #94a3b8;
    display: grid;
    place-items: center;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.pts-insight-pin.is-left {
    color: #2563eb;
    border-color: #bfdbfe;
    background: #eff6ff;
}

.pts-insight-pin.is-right {
    color: #0d9488;
    border-color: #99f6e4;
    background: #f0fdfa;
}

.pts-insight-truck {
    width: 56px;
    height: 56px;
    margin: 0 8px;
    border-radius: 16px;
    background: linear-gradient(145deg, #eff6ff, #fff);
    border: 1px solid #dbeafe;
    color: #2563eb;
    display: grid;
    place-items: center;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.14);
}

.pts-insight-truck.is-pulse {
    animation: pts-truck-float 2.8s ease-in-out infinite;
}

@keyframes pts-truck-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.pts-insight h3 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.pts-insight p {
    margin: 0;
    max-width: 320px;
    font-size: 12px;
    line-height: 1.55;
    color: #64748b;
}

/* KPI row */
.pts-kpi-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0 14px 14px;
    flex-shrink: 0;
}

.pts-kpi-row article {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e8edf3;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    min-width: 0;
    min-height: 52px;
}

.pts-kpi-row article > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    min-height: 32px;
}

.pts-kpi-row strong {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pts-spin {
    animation: pts-spin 1.1s linear infinite;
}

@keyframes pts-spin {
    to { transform: rotate(360deg); }
}

.pts-kpi-icon {
    width: 32px;
    height: 32px;
    font-size: 13px;
    border-radius: 9px;
}

.pts-kpi-row .is-blue .pts-kpi-icon {
    background: #eff6ff;
    color: #2563eb;
}

.pts-kpi-row .is-green .pts-kpi-icon {
    background: #ecfdf5;
    color: #059669;
}

.pts-kpi-row article.is-live {
    border-color: #86efac;
    background: #f0fdf4;
    box-shadow: 0 1px 3px rgba(22, 163, 74, 0.08);
}

.pts-kpi-row .is-live .pts-kpi-icon {
    position: relative;
    background: #dcfce7;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    overflow: visible;
}

.pts-kpi-row .is-live .pts-kpi-icon .pts-live-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    color: #22c55e;
    background: #22c55e;
    box-shadow: 0 0 0 2px #f0fdf4, 0 0 0 3px rgba(34, 197, 94, 0.35);
    animation: pts-live-pulse 1.4s ease-in-out infinite;
}

.pts-kpi-row .is-live strong {
    color: #15803d;
}

.pts-kpi-row article.is-muted {
    border-color: #e2e8f0;
    background: #f8fafc;
}

.pts-kpi-row .is-muted .pts-kpi-icon {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.pts-kpi-row .is-muted strong {
    color: #475569;
}

.pts-kpi-row .is-amber .pts-kpi-icon {
    background: #fff7ed;
    color: #d97706;
}

.pts-kpi-row .is-violet .pts-kpi-icon {
    background: #f5f3ff;
    color: #7c3aed;
}

.pts-kpi-row em {
    display: block;
    font-style: normal;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}

/* Delivery points */
.pts-panel-lrs {
    display: flex;
    flex-direction: column;
}

.pts-lr-columns {
    display: flex;
    flex-direction: row;
    gap: 12px;
    padding: 12px 14px 14px;
    flex: 1;
    min-height: 0;
    overflow-x: auto;
    overflow-y: hidden;
    align-items: center;
    justify-content: center;
}

.pts-lr-col {
    flex: 0 1 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid #dce3ed;
    border-radius: 14px;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.pts-lr-col-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 14px 10px;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
}

.pts-lr-col-head small {
    display: block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}

.pts-lr-col-head strong {
    display: block;
    margin-top: 3px;
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    word-break: break-all;
}

.pts-lr-doc-icon {
    width: 34px;
    height: 34px;
    font-size: 14px;
    border-radius: 9px;
    background: #f1f5f9;
    color: #64748b;
}

.pts-lr-col-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 10px 14px 0;
    min-height: 36px;
}

.pts-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    border: 1px solid transparent;
}

.pts-tag.is-live {
    background: #ecfdf5;
    color: #047857;
    border-color: #86efac;
}

.pts-tag.is-live::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
    animation: pts-live-pulse 1.4s ease-in-out infinite;
    flex-shrink: 0;
}

.pts-tag.is-created {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}

.pts-tag.is-in-transit,
.pts-tag.is-reached-destination {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.pts-tag.is-out-for-delivery {
    background: #ecfdf5;
    color: #047857;
    border-color: #86efac;
}

.pts-tag.is-delivered,
.pts-tag.is-partially-delivered,
.pts-tag.is-closed {
    background: #f1f5f9;
    color: #475569;
    border-color: #e2e8f0;
}

.pts-tag.is-rejected,
.pts-tag.is-cancelled {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.pts-tag.is-pod-pending,
.pts-tag.is-pod-pending-upload {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.pts-tag.is-pod-uploaded {
    background: #ecfdf5;
    color: #047857;
}

.pts-lr-col-facts {
    padding: 12px 14px;
    display: grid;
    gap: 10px;
    flex: 1;
    min-height: 0;
}

.pts-lr-col-facts p {
    margin: 0;
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 12px;
    line-height: 1.45;
    color: #334155;
}

.pts-lr-col-facts p > i.pts-icon-box {
    width: 28px;
    height: 28px;
    font-size: 11px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #64748b;
    flex-shrink: 0;
}

.pts-lr-col-facts p span {
    min-width: 0;
}

.pts-lr-col-facts p > i.fa-user-tie {
    background: #eff6ff;
    color: #2563eb;
}

.pts-lr-col-facts p > i.fa-map-location-dot {
    background: #f0fdfa;
    color: #0d9488;
}

.pts-lr-col-facts p strong {
    display: block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 2px;
}

.pts-lr-col-facts p em {
    display: block;
    font-style: normal;
    font-weight: 600;
    color: #334155;
    line-height: 1.45;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.pts-lr-col-foot {
    padding: 12px 14px 14px;
    margin-top: auto;
    position: relative;
    z-index: 2;
}

.pts-open-btn {
    position: relative;
    z-index: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    background: linear-gradient(145deg, #1d4ed8, #2563eb);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.pts-open-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.34);
}

.pts-open-btn.is-disabled {
    background: #e2e8f0;
    color: #94a3b8;
    box-shadow: none;
    pointer-events: none;
}

.pts-panel-empty {
    flex: 1;
    display: grid;
    place-content: center;
    text-align: center;
    padding: 24px;
    color: #94a3b8;
}

.pts-panel-empty i {
    font-size: 32px;
    margin-bottom: 10px;
    color: #cbd5e1;
}

.pts-panel-empty h3 {
    margin: 0 0 6px;
    font-size: 14px;
    color: #475569;
}

.pts-panel-empty p {
    margin: 0;
    font-size: 12px;
    max-width: 240px;
}

/* Footer */
.pts-statusbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    height: 34px;
    padding: 0 18px;
    background: #121a2b;
    border-top: 1px solid #243049;
    font-size: 10px;
    color: #64748b;
}

.pts-statusbar-brand {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.pts-statusbar > span:last-child {
    text-align: right;
}

.pts-statusbar b {
    color: #60a5fa;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.pts-secure {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #34d399;
    font-weight: 600;
    white-space: nowrap;
}

.pts-secure i {
    font-size: 9px;
}

/* Error */
.pts-app-empty {
    height: 100vh;
    display: grid;
    place-content: center;
    text-align: center;
    color: #94a3b8;
    padding: 24px;
}

.pts-app-empty i {
    font-size: 40px;
    margin-bottom: 12px;
    color: #475569;
}

.pts-app-empty h1 {
    margin: 0 0 8px;
    font-size: 18px;
    color: #e2e8f0;
}

.pts-app-empty p {
    margin: 0;
    font-size: 13px;
    max-width: 360px;
}

@media (max-width: 1100px) {
    .pts-workspace {
        grid-template-columns: minmax(200px, 1fr) minmax(300px, 2.2fr) minmax(200px, 1fr);
        gap: 10px;
        padding: 10px;
    }

    .pts-path-label {
        font-size: 9px;
    }

    .pts-path-node {
        width: 28px;
        height: 28px;
    }

    .pts-path-node i::before {
        font-size: 11px;
    }

    .pts-path-step:not(:last-child)::before {
        top: 14px;
        left: calc(50% + 14px);
        width: calc(100% - 28px);
    }

    .pts-path-caption {
        display: none;
    }
}

@media (max-width: 900px) {
    .pts-topbar {
        grid-template-columns: 1fr;
        height: auto;
        padding: 10px 12px;
        gap: 10px;
    }

    .pts-topbar-meta {
        justify-content: flex-start;
        overflow-x: auto;
    }

    .pts-app {
        grid-template-rows: auto minmax(0, 1fr) auto;
    }

    .pts-workspace {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: min(90vw, 340px);
        overflow-x: auto;
        overflow-y: hidden;
    }

    .pts-path {
        grid-template-columns: 1fr;
    }

    .pts-path-caption {
        justify-self: end;
    }
}

/* ── Delivery details page ── */
.pts-detail-app {
    grid-template-rows: 58px minmax(0, 1fr) 36px;
}

.pts-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-right: 4px;
    padding: 0;
    border-radius: 9px;
    border: 1px solid #334155;
    background: rgba(30, 41, 59, 0.9);
    color: #e2e8f0;
    text-decoration: none;
    flex-shrink: 0;
    line-height: 0;
    cursor: pointer;
    font: inherit;
}

.pts-back-btn:hover {
    background: #334155;
    color: #fff;
}

button.pts-back-btn:focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}

.pts-back-btn i::before {
    display: block;
    line-height: 1;
    font-size: 13px;
}

.pts-detail-workspace {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 12px;
    padding: 12px;
    min-height: 0;
    overflow: auto;
    background:
        radial-gradient(circle at 20% 0%, rgba(37, 99, 235, 0.06), transparent 40%),
        radial-gradient(circle at 80% 100%, rgba(13, 148, 136, 0.05), transparent 35%),
        #e4e9f0;
}

.pts-panel-invoices {
    grid-column: 1 / -1;
}

.pts-detail-exception {
    margin: 0 14px 10px;
    padding: 12px 14px;
    border: 1px solid #fde4bc;
    border-radius: 12px;
    background: #fffbeb;
}

.pts-detail-exception h3 {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 800;
    color: #b45309;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pts-detail-exception .pts-facts {
    padding: 0;
}

.pts-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 4px 14px 14px;
    margin-top: auto;
}

.pts-open-btn.is-secondary {
    background: #fff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.pts-open-btn.is-secondary:hover {
    background: #eff6ff;
}

.pts-open-btn:not(.is-disabled):not(.is-secondary) {
    flex: 1 1 180px;
}

.pts-invoice-table-wrap {
    padding: 0 14px 14px;
    overflow: auto;
}

.pts-invoice-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.pts-invoice-table th,
.pts-invoice-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eef2f7;
    text-align: left;
    vertical-align: top;
}

.pts-invoice-table th {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    background: #f8fafc;
}

.pts-invoice-table tr:last-child td {
    border-bottom: 0;
}

@media (max-width: 900px) {
    .pts-detail-workspace {
        grid-template-columns: 1fr;
    }
}

/* ── LR document page (delivery_details.php) ── */
.pdd-lr-page {
    overflow: hidden;
}

.pdd-lr-app {
    grid-template-rows: 58px minmax(0, 1fr) 36px;
}

.pdd-lr-workspace {
    min-height: 0;
    overflow: hidden;
    padding: 12px;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 20% 0%, rgba(37, 99, 235, 0.06), transparent 40%),
        radial-gradient(circle at 80% 100%, rgba(13, 148, 136, 0.05), transparent 35%),
        #e4e9f0;
}

.pdd-lr-doc {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 10px 32px rgba(15, 23, 42, 0.1);
    color: #0f172a;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.pdd-doc-id {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 0.9fr;
    flex-shrink: 0;
    border-bottom: 1px solid #0f172a;
}

.pdd-doc-id-cell {
    padding: 10px 14px;
    border-right: 1px solid #0f172a;
}

.pdd-doc-id-cell:last-child {
    border-right: 0;
}

.pdd-doc-id .k,
.pdd-doc-cell .k,
.pdd-doc-totals .k {
    display: block;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 3px;
}

.pdd-doc-id .v,
.pdd-doc-cell .v,
.pdd-doc-totals .v {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pdd-doc-id .v.is-lr-no {
    font-size: 15px;
    letter-spacing: 0.02em;
}

.pdd-doc-parties {
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex-shrink: 0;
    border-bottom: 1px solid #0f172a;
    max-height: 34%;
    min-height: 0;
}

.pdd-doc-party {
    min-width: 0;
    border-right: 1px solid #0f172a;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pdd-doc-party:last-child {
    border-right: 0;
}

.pdd-doc-party h2 {
    margin: 0;
    padding: 8px 12px;
    background: #eef2f7;
    border-bottom: 1px solid #0f172a;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #0f172a;
    flex-shrink: 0;
}

.pdd-doc-party-body {
    padding: 8px 12px 10px;
    overflow: hidden;
    min-height: 0;
}

.pdd-doc-party-body .name {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pdd-doc-line {
    margin: 0 0 4px;
    font-size: 11px;
    line-height: 1.45;
    color: #1e293b;
}

.pdd-doc-line.is-address {
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pdd-doc-line .muted {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.pdd-doc-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    flex-shrink: 0;
    border-bottom: 1px solid #0f172a;
}

.pdd-doc-cell {
    padding: 8px 12px;
    border-right: 1px solid #0f172a;
    border-bottom: 1px solid #0f172a;
    min-width: 0;
}

.pdd-doc-cell:nth-child(4n) {
    border-right: 0;
}

.pdd-doc-cell:nth-last-child(-n + 4) {
    border-bottom: 0;
}

.pdd-doc-goods {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pdd-doc-goods-title {
    margin: 0;
    padding: 9px 14px;
    background: #0f172a;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.pdd-doc-table-wrap {
    flex: 1;
    min-height: 0;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.pdd-doc-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.pdd-doc-table th,
.pdd-doc-table td {
    padding: 8px 10px;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 11px;
    text-align: left;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pdd-doc-table th:last-child,
.pdd-doc-table td:last-child {
    border-right: 0;
}

.pdd-doc-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f1f5f9;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #475569;
}

.pdd-doc-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.pdd-doc-table .num {
    text-align: right;
}

.pdd-doc-table .idx {
    width: 34px;
    text-align: center;
    font-weight: 900;
    color: #64748b;
}

.pdd-doc-table .is-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 10px;
    font-weight: 700;
}

.pdd-doc-table .is-money {
    font-weight: 800;
    color: #047857;
}

.pdd-doc-empty {
    text-align: center;
    color: #94a3b8;
    font-style: italic;
    padding: 16px !important;
}

.pdd-doc-totals {
    display: grid;
    grid-template-columns: repeat(var(--pdd-total-cols, 3), minmax(0, 1fr));
    flex-shrink: 0;
    border-top: 1px solid #0f172a;
    background: #f8fafc;
}

.pdd-doc-totals > div {
    padding: 10px 14px;
    border-right: 1px solid #0f172a;
}

.pdd-doc-totals > div:last-child {
    border-right: 0;
}

.pdd-doc-totals .is-accent {
    background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
}

.pdd-doc-totals .is-accent .v {
    color: #047857;
}

@media (max-width: 900px) {
    .pdd-doc-parties {
        grid-template-columns: 1fr;
        max-height: none;
    }

    .pdd-doc-party {
        border-right: 0;
        border-bottom: 1px solid #0f172a;
    }

    .pdd-doc-party:last-child {
        border-bottom: 0;
    }

    .pdd-doc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pdd-doc-cell:nth-child(4n) {
        border-right: 1px solid #0f172a;
    }

    .pdd-doc-cell:nth-child(2n) {
        border-right: 0;
    }
}

@media (max-height: 720px) {
    .pdd-lr-workspace {
        padding: 8px;
    }

    .pdd-doc-id-cell {
        padding: 7px 10px;
    }

    .pdd-doc-id .v {
        font-size: 12px;
    }

    .pdd-doc-party h2 {
        padding: 6px 10px;
    }

    .pdd-doc-party-body {
        padding: 6px 10px 8px;
    }

    .pdd-doc-party-body .name {
        font-size: 11px;
    }

    .pdd-doc-line {
        font-size: 10px;
    }

    .pdd-doc-cell {
        padding: 6px 10px;
    }

    .pdd-doc-cell .v {
        font-size: 11px;
    }

    .pdd-doc-table th,
    .pdd-doc-table td {
        padding: 6px 8px;
        font-size: 10px;
    }
}

/* Public shipment-search landing */
html:has(body.pts-landing-page) {
    height: auto;
    min-height: 100%;
    overflow: auto;
}

body.pts-landing-page {
    height: auto;
    min-height: 100vh;
    overflow: auto;
    color: #eaf1ff;
    background:
        radial-gradient(circle at 78% 20%, rgba(35, 118, 255, .26), transparent 28rem),
        radial-gradient(circle at 8% 75%, rgba(25, 211, 183, .12), transparent 24rem),
        #07101f;
}

body.pts-landing-page .pts-app {
    display: block;
    height: auto;
    min-height: 100vh;
    overflow: visible;
}

.pts-landing {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background-image:
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 52px 52px;
}

.pts-landing::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(7, 16, 31, .15), #07101f 88%);
}

.pts-landing-nav,
.pts-landing-hero,
.pts-landing-features,
.pts-landing-footer {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.pts-landing-nav {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(148, 163, 184, .16);
}

.pts-landing-brand {
    display: inline-flex;
    align-items: center;
}

.pts-landing-brand img {
    width: 166px;
    max-height: 54px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.pts-landing-nav-copy {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 12px;
    font-weight: 700;
}

.pts-landing-nav-copy span {
    color: #9fb0c9;
}

.pts-landing-nav-copy span i {
    margin-right: 7px;
    color: #43ddad;
}

.pts-landing-nav-copy a {
    padding: 10px 16px;
    border: 1px solid rgba(125, 160, 213, .35);
    border-radius: 10px;
    color: #eaf1ff;
    text-decoration: none;
    transition: .2s ease;
}

.pts-landing-nav-copy a:hover {
    border-color: #4c8dff;
    background: rgba(35, 118, 255, .12);
}

.pts-landing-hero {
    min-height: 570px;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(420px, .96fr);
    align-items: center;
    gap: 70px;
    padding: 64px 0 46px;
}

.pts-landing-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    border: 1px solid rgba(64, 134, 255, .3);
    border-radius: 999px;
    color: #a9c7ff;
    background: rgba(32, 105, 225, .09);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.pts-landing-copy h1 {
    margin: 22px 0 18px;
    color: #f7faff;
    font-size: clamp(45px, 5.1vw, 72px);
    line-height: .98;
    letter-spacing: -.055em;
}

.pts-landing-copy h1 em {
    color: #62a0ff;
    font-style: normal;
}

.pts-landing-copy > p {
    max-width: 620px;
    margin: 0;
    color: #aebbd0;
    font-size: 17px;
    line-height: 1.75;
}

.pts-lookup-form {
    max-width: 690px;
    margin-top: 30px;
}

.pts-lookup-form > label {
    display: block;
    margin-bottom: 9px;
    color: #d9e5f8;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.pts-lookup-control {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    min-height: 64px;
    padding: 5px;
    border: 1px solid rgba(113, 151, 210, .32);
    border-radius: 16px;
    background: rgba(14, 29, 51, .92);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .28);
}

.pts-lookup-control > span {
    display: grid;
    place-items: center;
    height: 42px;
    color: #64a1ff;
    font-size: 17px;
    border-right: 1px solid rgba(148, 163, 184, .17);
}

.pts-lookup-control input {
    width: 100%;
    min-width: 0;
    height: 52px;
    padding: 0 16px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font: 700 14px/1 Inter, sans-serif;
    letter-spacing: .025em;
    text-transform: uppercase;
}

.pts-lookup-control input::placeholder {
    color: #6f819d;
    text-transform: none;
}

.pts-lookup-control button {
    height: 50px;
    padding: 0 21px;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(135deg, #1e6dff, #2f83ff);
    box-shadow: 0 10px 25px rgba(34, 111, 255, .3);
    font: 800 12px/1 Inter, sans-serif;
    cursor: pointer;
    white-space: nowrap;
}

.pts-lookup-control button i {
    margin-left: 8px;
}

.pts-lookup-form small,
.pts-lookup-error {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 10px 3px 0;
    color: #7f91ad;
    font-size: 11px;
}

.pts-lookup-form small i {
    color: #43dbaa;
}

.pts-lookup-error {
    color: #ff9a9a;
    font-weight: 700;
}

.pts-landing-trust {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.pts-landing-trust div {
    padding-right: 30px;
    border-right: 1px solid rgba(148, 163, 184, .17);
}

.pts-landing-trust div:last-child {
    border-right: 0;
}

.pts-landing-trust div > i {
    display: block;
    margin-bottom: 7px;
    color: #2ed9a3;
    font-size: 16px;
    line-height: 1;
}

.pts-landing-trust strong,
.pts-landing-trust span {
    display: block;
}

.pts-landing-trust strong {
    color: #e9f1ff;
    font-size: 15px;
}

.pts-landing-trust span {
    margin-top: 3px;
    color: #7587a3;
    font-size: 10px;
}

.pts-landing-visual {
    position: relative;
    min-height: 430px;
    display: grid;
    place-items: center;
}

.pts-landing-visual::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(40, 116, 255, .23), rgba(40, 116, 255, .03) 58%, transparent 70%);
}

.pts-orbit {
    position: absolute;
    border: 1px solid rgba(86, 142, 232, .18);
    border-radius: 50%;
}

.pts-orbit.is-one {
    width: 390px;
    height: 390px;
}

.pts-orbit.is-two {
    width: 300px;
    height: 300px;
    border-style: dashed;
}

.pts-visual-card {
    position: absolute;
    border: 1px solid rgba(113, 155, 221, .26);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(25, 45, 76, .96), rgba(11, 25, 46, .96));
    box-shadow: 0 28px 70px rgba(0, 0, 0, .36);
    backdrop-filter: blur(12px);
}

.pts-visual-card.is-main {
    z-index: 2;
    width: min(420px, 88%);
    padding: 24px;
    transform: rotate(-1.5deg);
}

.pts-visual-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pts-visual-card-head > span {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #73aaff;
    background: rgba(44, 119, 245, .15);
}

.pts-visual-card-head div {
    flex: 1;
}

.pts-visual-card small,
.pts-visual-card strong {
    display: block;
}

.pts-visual-card small {
    color: #8495af;
    font-size: 10px;
}

.pts-visual-card strong {
    margin-top: 3px;
    color: #f2f6fd;
    font-size: 14px;
}

.pts-visual-card-head em {
    padding: 6px 8px;
    border-radius: 999px;
    color: #56e3b5;
    background: rgba(38, 194, 142, .1);
    font-size: 9px;
    font-style: normal;
    font-weight: 900;
    letter-spacing: .08em;
}

.pts-visual-route {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 13px;
    margin-top: 28px;
    color: #73aaff;
}

.pts-visual-route > span {
    position: relative;
    height: 1px;
    display: flex;
    justify-content: space-around;
    background: linear-gradient(90deg, #337cf1, #4fddb3);
}

.pts-visual-route b {
    width: 6px;
    height: 6px;
    margin-top: -2px;
    border-radius: 50%;
    background: #62a0ff;
    box-shadow: 0 0 0 4px rgba(98, 160, 255, .1);
}

.pts-visual-points {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: #7588a5;
    font-size: 9px;
}

.pts-visual-card.is-pod,
.pts-visual-card.is-alert {
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 11px;
    width: 205px;
    padding: 14px 16px;
}

.pts-visual-card.is-pod {
    right: -5px;
    bottom: 55px;
    color: #4bddae;
}

.pts-visual-card.is-alert {
    left: -12px;
    top: 58px;
    color: #ffbf5c;
}

.pts-visual-card.is-pod > i,
.pts-visual-card.is-alert > i {
    font-size: 20px;
}

.pts-landing-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 18px 0 48px;
}

.pts-landing-features article {
    display: flex;
    gap: 14px;
    padding: 22px;
    border: 1px solid rgba(110, 146, 200, .16);
    border-radius: 16px;
    background: rgba(14, 28, 49, .66);
}

.pts-landing-features article > i {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 10px;
    color: #67a4ff;
    background: rgba(42, 110, 222, .12);
}

.pts-landing-features strong,
.pts-landing-features span {
    display: block;
}

.pts-landing-features strong {
    color: #e7eef9;
    font-size: 13px;
}

.pts-landing-features span {
    margin-top: 6px;
    color: #7f90aa;
    font-size: 11px;
    line-height: 1.55;
}

.pts-landing-footer {
    display: flex;
    justify-content: space-between;
    padding: 20px 0 28px;
    border-top: 1px solid rgba(148, 163, 184, .13);
    color: #65758e;
    font-size: 10px;
}

.pts-empty-search {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 11px 15px;
    border-radius: 10px;
    color: #fff;
    background: #246ef5;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 900px) {
    .pts-landing-hero {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pts-landing-visual {
        min-height: 370px;
    }

    .pts-landing-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .pts-landing-nav,
    .pts-landing-hero,
    .pts-landing-features,
    .pts-landing-footer {
        width: min(100% - 28px, 1180px);
    }

    .pts-landing-nav-copy span {
        display: none;
    }

    .pts-landing-hero {
        padding-top: 42px;
    }

    .pts-landing-copy h1 {
        font-size: 43px;
    }

    .pts-lookup-control {
        grid-template-columns: 42px 1fr;
    }

    .pts-lookup-control button {
        grid-column: 1 / -1;
        width: 100%;
        margin-top: 5px;
    }

    .pts-landing-trust {
        gap: 14px;
    }

    .pts-landing-trust div {
        padding-right: 14px;
    }

    .pts-visual-card.is-alert {
        left: 0;
    }

    .pts-visual-card.is-pod {
        right: 0;
    }

    .pts-landing-footer {
        display: grid;
        gap: 6px;
    }
}

/* Compact light AI landing — intentionally fits one desktop viewport */
html:has(body.pts-landing-page),
body.pts-landing-page {
    width: 100%;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
    background: #f7faff;
}

body.pts-landing-page {
    color: #152238;
}

body.pts-landing-page .pts-app {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
}

.pts-landing {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    display: grid;
    grid-template-rows: 68px minmax(0, 1fr) 104px 30px;
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 35%, rgba(43, 116, 255, .13), transparent 27%),
        radial-gradient(circle at 68% 62%, rgba(20, 201, 172, .09), transparent 22%),
        linear-gradient(rgba(28, 93, 188, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(28, 93, 188, .035) 1px, transparent 1px),
        #f8fbff;
    background-size: auto, auto, 42px 42px, 42px 42px, auto;
}

.pts-landing::before {
    background:
        linear-gradient(115deg, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .78) 43%, transparent 70%);
}

.pts-landing-nav,
.pts-landing-hero,
.pts-landing-features,
.pts-landing-footer {
    width: min(1180px, calc(100% - 42px));
}

.pts-landing-nav {
    min-height: 68px;
    border-bottom-color: #dfe8f5;
}

.pts-landing-brand img {
    width: 142px;
    max-height: 46px;
    filter: none;
}

.pts-landing-nav-copy {
    gap: 10px;
}

.pts-landing-nav-copy span {
    color: #72829a;
    margin-right: 8px;
}

.pts-landing-nav-copy a {
    padding: 8px 12px;
    border-color: #d8e3f2;
    color: #29405f;
    background: #fff;
}

.pts-landing-nav-copy a:hover {
    border-color: #2b73ef;
    color: #1459ce;
    background: #f2f7ff;
}

.pts-landing-nav-copy .pts-home-link {
    color: #fff;
    border-color: #1f6ff2;
    background: #1f6ff2;
    box-shadow: 0 7px 18px rgba(31, 111, 242, .2);
}

.pts-landing-nav-copy .pts-home-link:hover {
    color: #fff;
    background: #155ed4;
}

.pts-landing-hero {
    min-height: 0;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
    gap: 44px;
    padding: 20px 0 12px;
}

.pts-landing-eyebrow {
    padding: 6px 10px;
    color: #2366cf;
    border-color: #cfe0fb;
    background: #edf5ff;
    font-size: 9px;
}

.pts-landing-copy h1 {
    margin: 14px 0 10px;
    color: #12213a;
    font-size: clamp(37px, 4vw, 54px);
    line-height: 1.02;
    letter-spacing: -.045em;
}

.pts-landing-copy h1 em {
    color: #2671ee;
}

.pts-landing-copy > p {
    max-width: 590px;
    color: #60718a;
    font-size: 13px;
    line-height: 1.6;
}

.pts-lookup-form {
    margin-top: 18px;
}

.pts-lookup-form > label {
    margin-bottom: 7px;
    color: #354b68;
    font-size: 10px;
}

.pts-lookup-control {
    min-height: 56px;
    border-color: #cfdbeb;
    background: #fff;
    box-shadow: 0 14px 38px rgba(42, 76, 124, .12);
}

.pts-lookup-control > span {
    height: 38px;
    border-right-color: #e3eaf4;
}

.pts-lookup-control input {
    height: 46px;
    color: #152238;
    font-size: 12px;
}

.pts-lookup-control input::placeholder {
    color: #9aa8bb;
}

.pts-lookup-control button {
    height: 44px;
}

.pts-lookup-form small,
.pts-lookup-error {
    margin-top: 7px;
    color: #7c8da5;
}

.pts-lookup-error {
    color: #d14848;
}

.pts-landing-trust {
    gap: 20px;
    margin-top: 16px;
}

.pts-landing-trust div {
    padding-right: 20px;
    border-right-color: #dfe6ef;
}

.pts-landing-trust div > i {
    color: #2b7de9;
    font-size: 14px;
}

.pts-landing-trust strong {
    color: #203550;
    font-size: 12px;
}

.pts-landing-trust span {
    color: #8290a4;
    font-size: 9px;
}

.pts-landing-visual {
    min-height: 315px;
}

.pts-landing-visual::before {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(52, 126, 246, .16), rgba(52, 126, 246, .04) 55%, transparent 70%);
}

.pts-orbit {
    border-color: rgba(45, 113, 220, .18);
}

.pts-orbit.is-one {
    width: 315px;
    height: 315px;
}

.pts-orbit.is-two {
    width: 245px;
    height: 245px;
}

.pts-ai-core {
    position: absolute;
    z-index: 4;
    top: 12px;
    right: 18px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    border: 1px solid #d5e2f5;
    border-radius: 13px;
    color: #29405f;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 14px 34px rgba(42, 78, 132, .12);
}

.pts-ai-core > span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, #226ff0, #19bfa5);
}

.pts-ai-core small,
.pts-ai-core strong {
    display: block;
}

.pts-ai-core small {
    color: #71839b;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.pts-ai-core strong {
    margin-top: 2px;
    font-size: 10px;
}

.pts-visual-card {
    border-color: #d6e1f0;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 22px 55px rgba(33, 71, 122, .16);
}

.pts-visual-card.is-main {
    width: min(370px, 88%);
    padding: 19px;
}

.pts-visual-card small {
    color: #7889a0;
}

.pts-visual-card strong {
    color: #20344f;
}

.pts-visual-card.is-pod {
    right: 0;
    bottom: 24px;
}

.pts-visual-card.is-alert {
    left: 0;
    top: 45px;
}

.pts-landing-features {
    align-self: center;
    gap: 10px;
    padding: 8px 0;
}

.pts-landing-features article {
    gap: 10px;
    min-height: 72px;
    padding: 13px 15px;
    border-color: #dce6f3;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 8px 24px rgba(40, 75, 122, .055);
}

.pts-landing-features article > i {
    width: 34px;
    height: 34px;
}

.pts-landing-features strong {
    color: #263c58;
    font-size: 11px;
}

.pts-landing-features span {
    margin-top: 3px;
    color: #7a899e;
    font-size: 9px;
    line-height: 1.4;
}

.pts-landing-footer {
    align-items: center;
    padding: 0;
    border-top-color: #e1e8f1;
    color: #8795a8;
    font-size: 9px;
}

@media (max-width: 900px) {
    html:has(body.pts-landing-page),
    body.pts-landing-page {
        height: auto;
        min-height: 100%;
        overflow: auto;
    }

    body.pts-landing-page .pts-app,
    .pts-landing {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .pts-landing {
        grid-template-rows: auto;
    }
}

/* Public tracking responsive refinement ---------------------------------- */
.pts-app,
.pts-app *,
.pts-app *::before,
.pts-app *::after {
    box-sizing: border-box;
}

@media (min-width: 901px) {
    .pts-workspace {
        grid-template-columns: minmax(260px, 300px) minmax(480px, 1fr) minmax(320px, 360px);
        gap: 14px;
        padding: 14px;
    }

    .pts-lr-columns {
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .pts-lr-col {
        flex: 0 0 auto;
        width: 100%;
        min-width: 0;
    }
}

.pts-lr-col-head > div,
.pts-lr-col-facts p span {
    min-width: 0;
}

.pts-lr-col-head strong {
    word-break: normal;
    overflow-wrap: anywhere;
}

@media (max-width: 1200px) and (min-width: 901px) {
    .pts-workspace {
        grid-template-columns: minmax(230px, 270px) minmax(390px, 1fr) minmax(290px, 320px);
    }
}

@media (max-width: 900px) {
    html:has(body.pts-app:not(.pts-landing-page)),
    body.pts-app:not(.pts-landing-page) {
        height: auto;
        min-height: 100%;
        overflow: auto;
        background: #edf3fb;
    }

    body.pts-app:not(.pts-landing-page) .pts-app {
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 100dvh;
        overflow: visible;
        padding-bottom: 0;
        background:
            radial-gradient(circle at 100% 0, rgba(37, 99, 235, .12), transparent 28%),
            #edf3fb;
    }

    body.pts-app:not(.pts-landing-page) .pts-topbar {
        position: sticky;
        top: 0;
        z-index: 60;
        display: grid;
        grid-template-areas:
            "brand actions"
            "meta meta";
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px 8px;
        padding: 10px 12px 11px;
        border-bottom: 1px solid rgba(96, 165, 250, .22);
        background:
            radial-gradient(circle at 85% 0, rgba(59, 130, 246, .25), transparent 42%),
            linear-gradient(145deg, #101e37, #172b4d);
        box-shadow: 0 10px 28px rgba(15, 35, 66, .22);
        width: 100%;
        max-width: 100vw;
    }

    body.pts-app:not(.pts-landing-page) .pts-topbar-brand {
        grid-area: brand;
        gap: 8px;
    }

    body.pts-app:not(.pts-landing-page) .pts-topbar-logo {
        width: 34px;
        height: 34px;
        border-radius: 9px;
    }

    body.pts-app:not(.pts-landing-page) .pts-topbar-title strong {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 12px;
    }

    body.pts-app:not(.pts-landing-page) .pts-topbar-title span {
        font-size: 9px;
    }

    body.pts-app:not(.pts-landing-page) .pts-topbar-actions {
        grid-area: actions;
        gap: 6px;
    }

    body.pts-app:not(.pts-landing-page) .pts-icon-btn,
    body.pts-app:not(.pts-landing-page) .pts-back-btn {
        width: 34px;
        height: 34px;
    }

    body.pts-app:not(.pts-landing-page) .pts-support-btn {
        min-height: 34px;
        padding: 0 11px;
        font-size: 10px;
    }

    body.pts-app:not(.pts-landing-page) .pts-topbar-meta {
        grid-area: meta;
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 1px;
        scrollbar-width: none;
    }

    body.pts-app:not(.pts-landing-page) .pts-topbar-meta::-webkit-scrollbar {
        display: none;
    }

    body.pts-app:not(.pts-landing-page) .pts-topbar-chip-rail {
        justify-content: flex-start;
        width: max-content;
        max-width: none;
        padding: 3px;
    }

    body.pts-app:not(.pts-landing-page) .pts-topbar-chip {
        min-height: 28px;
        padding: 0 9px;
        font-size: 10px;
    }

    body.pts-app:not(.pts-landing-page) .pts-workspace {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 100%;
        padding: 12px;
        overflow: visible;
        background: transparent;
    }

    body.pts-app:not(.pts-landing-page) .pts-panel {
        flex: none;
        min-height: 0;
        overflow: hidden;
        border-radius: 17px;
        border-color: #dbe5f2;
        box-shadow: 0 10px 30px rgba(35, 61, 96, .08);
    }

    body.pts-app:not(.pts-landing-page) .pts-panel-track {
        order: 1;
    }

    body.pts-app:not(.pts-landing-page) .pts-panel-summary {
        order: 2;
    }

    body.pts-app:not(.pts-landing-page) .pts-panel-lrs {
        order: 3;
    }

    body.pts-app:not(.pts-landing-page) .pts-panel-head {
        padding: 13px 14px 11px;
    }

    body.pts-app:not(.pts-landing-page) .pts-path-wrap {
        padding: 12px;
    }

    body.pts-app:not(.pts-landing-page) .pts-path {
        display: block;
        padding: 12px 10px 10px;
        overflow: hidden;
    }

    body.pts-app:not(.pts-landing-page) .pts-path-track {
        grid-auto-flow: row;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-columns: auto;
        gap: 14px 4px;
        padding: 2px 0 4px;
        overflow: visible;
        scroll-snap-type: none;
    }

    body.pts-app:not(.pts-landing-page) .pts-path-step {
        scroll-snap-align: start;
    }

    body.pts-app:not(.pts-landing-page) .pts-path-step:not(:last-child)::before {
        display: none;
    }

    body.pts-app:not(.pts-landing-page) .pts-path-label {
        max-width: 100%;
        font-size: 8px;
        line-height: 1.25;
        white-space: normal;
        text-align: center;
    }

    body.pts-app:not(.pts-landing-page) .pts-path-caption {
        display: flex;
        justify-content: flex-start;
        margin-top: 8px;
        font-size: 10px;
    }

    body.pts-app:not(.pts-landing-page) .pts-path-updated {
        margin: 0 12px 10px;
        text-align: left;
        font-size: 10px;
    }

    body.pts-app:not(.pts-landing-page) .pts-insight {
        min-height: 230px;
        margin: 0 12px 12px;
        padding: 20px 16px;
        border: 1px solid #e2eaf5;
        border-radius: 14px;
        background:
            radial-gradient(circle at 50% 30%, rgba(37, 99, 235, .09), transparent 42%),
            #fff;
    }

    body.pts-app:not(.pts-landing-page) .pts-kpi-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 0 12px 12px;
    }

    body.pts-app:not(.pts-landing-page) .pts-kpi-row article {
        min-height: 68px;
    }

    body.pts-app:not(.pts-landing-page) .pts-facts {
        overflow: visible;
        padding: 4px 10px 10px;
    }

    body.pts-app:not(.pts-landing-page) .pts-fact-row {
        padding: 10px 6px;
    }

    body.pts-app:not(.pts-landing-page) .pts-lr-columns {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
        overflow: visible;
    }

    body.pts-app:not(.pts-landing-page) .pts-lr-col {
        width: 100%;
        min-width: 0;
        border-radius: 13px;
    }

    body.pts-app:not(.pts-landing-page) .pts-lr-col-head strong {
        font-size: 14px;
    }

    body.pts-app:not(.pts-landing-page) .pts-lr-col-facts {
        min-height: auto;
    }

    body.pts-app:not(.pts-landing-page) .pts-statusbar {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
        height: auto;
        min-height: 76px;
        padding: 13px 16px;
        text-align: center;
    }

    body.pts-app:not(.pts-landing-page) .pts-statusbar > span,
    body.pts-app:not(.pts-landing-page) .pts-statusbar > span:last-child {
        text-align: center;
    }

    body.pts-app:not(.pts-landing-page) .pts-popover {
        position: fixed;
        top: 112px;
        right: 12px;
        left: 12px;
        width: auto;
        max-height: calc(100dvh - 132px);
        overflow-y: auto;
    }
}

@media (max-width: 620px) {
    body.pts-landing-page .pts-landing {
        min-height: 100dvh;
        background-size: auto, auto, 30px 30px, 30px 30px, auto;
    }

    body.pts-landing-page .pts-landing-nav,
    body.pts-landing-page .pts-landing-hero,
    body.pts-landing-page .pts-landing-features,
    body.pts-landing-page .pts-landing-footer {
        width: calc(100% - 28px);
    }

    body.pts-landing-page .pts-landing-nav {
        min-height: 62px;
        padding: 7px 0;
        border-bottom: 0;
    }

    body.pts-landing-page .pts-landing-brand img {
        width: 116px;
    }

    body.pts-landing-page .pts-landing-nav-copy {
        gap: 6px;
    }

    body.pts-landing-page .pts-landing-nav-copy a {
        min-height: 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 0 10px;
        border-radius: 9px;
        font-size: 9px;
        box-shadow: 0 5px 14px rgba(36, 70, 118, .07);
    }

    body.pts-landing-page .pts-landing-nav-copy .pts-home-link {
        box-shadow: 0 8px 20px rgba(31, 111, 242, .22);
    }

    body.pts-landing-page .pts-landing-hero {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: calc(100% - 28px);
        gap: 12px;
        padding: 24px 0 18px;
    }

    body.pts-landing-page .pts-landing-copy {
        width: 100%;
        min-width: 0;
        text-align: left;
    }

    body.pts-landing-page .pts-landing-eyebrow {
        gap: 7px;
        padding: 7px 10px;
        border-radius: 9px;
        font-size: 8px;
        letter-spacing: .11em;
        box-shadow: 0 5px 16px rgba(37, 99, 235, .07);
    }

    body.pts-landing-page .pts-landing-copy h1 {
        max-width: 330px;
        margin: 14px 0 11px;
        font-size: clamp(33px, 10.5vw, 40px);
        line-height: 1.04;
        letter-spacing: -.048em;
        text-wrap: balance;
    }

    body.pts-landing-page .pts-landing-copy h1 em {
        position: relative;
        display: inline;
        background: linear-gradient(120deg, #1764e8, #3185f6 58%, #13a990);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

    body.pts-landing-page .pts-landing-copy > p {
        max-width: 390px;
        color: #61728a;
        font-size: 12px;
        line-height: 1.62;
    }

    body.pts-landing-page .pts-lookup-form {
        width: 100%;
        max-width: none;
        margin-top: 16px;
        padding: 13px;
        border: 1px solid #d7e4f4;
        border-radius: 18px;
        background:
            linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(247, 251, 255, .9));
        box-shadow:
            0 18px 45px rgba(44, 79, 128, .12),
            inset 0 1px 0 #fff;
        backdrop-filter: blur(12px);
    }

    body.pts-landing-page .pts-lookup-form > label {
        margin: 0 0 8px 2px;
        color: #38516f;
        font-size: 9px;
        letter-spacing: .08em;
    }

    body.pts-landing-page .pts-lookup-control {
        grid-template-columns: 38px minmax(0, 1fr);
        min-height: 52px;
        padding: 4px;
        border-color: #cad9ec;
        border-radius: 12px;
        box-shadow: inset 0 1px 2px rgba(33, 57, 91, .04);
    }

    body.pts-landing-page .pts-lookup-control > span {
        height: 38px;
        border-radius: 9px;
        border-right: 0;
        color: #256eea;
        background: #edf5ff;
    }

    body.pts-landing-page .pts-lookup-control input {
        min-width: 0;
        height: 44px;
        padding: 0 10px;
        font-size: 12px;
    }

    body.pts-landing-page .pts-lookup-control button {
        grid-column: 1 / -1;
        min-height: 44px;
        margin: 7px 0 0;
        border-radius: 10px;
        background: linear-gradient(125deg, #1764e8, #2d7af0 65%, #4268ec);
        box-shadow: 0 10px 22px rgba(31, 103, 232, .24);
    }

    body.pts-landing-page .pts-lookup-form small {
        margin: 9px 2px 0;
        color: #8190a4;
        font-size: 9px;
        line-height: 1.45;
    }

    body.pts-landing-page .pts-landing-trust {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin-top: 14px;
    }

    body.pts-landing-page .pts-landing-trust div {
        min-width: 0;
        padding: 9px 7px;
        border: 1px solid #e0e9f4;
        border-radius: 11px;
        background: rgba(255, 255, 255, .68);
        text-align: center;
    }

    body.pts-landing-page .pts-landing-trust strong {
        overflow: hidden;
        color: #29425f;
        font-size: 9px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.pts-landing-page .pts-landing-trust div > i {
        margin-bottom: 5px;
        font-size: 13px;
    }

    body.pts-landing-page .pts-landing-trust span {
        margin-top: 3px;
        font-size: 8px;
    }

    body.pts-landing-page .pts-landing-visual {
        width: 100%;
        min-width: 0;
        min-height: 306px;
        margin-top: 2px;
        transform: none;
        transform-origin: center;
        border: 1px solid rgba(204, 220, 240, .72);
        border-radius: 24px;
        background:
            radial-gradient(circle at 50% 45%, rgba(50, 126, 244, .13), transparent 42%),
            linear-gradient(rgba(54, 112, 200, .035) 1px, transparent 1px),
            linear-gradient(90deg, rgba(54, 112, 200, .035) 1px, transparent 1px),
            rgba(255, 255, 255, .52);
        background-size: auto, 28px 28px, 28px 28px, auto;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
        overflow: hidden;
    }

    body.pts-landing-page .pts-orbit.is-one {
        width: 250px;
        height: 250px;
    }

    body.pts-landing-page .pts-orbit.is-two {
        width: 194px;
        height: 194px;
    }

    body.pts-landing-page .pts-ai-core {
        top: 12px;
        right: 12px;
        padding: 8px 10px;
        border-radius: 11px;
        box-shadow: 0 10px 26px rgba(42, 78, 132, .11);
    }

    body.pts-landing-page .pts-visual-card.is-main {
        width: calc(100% - 34px);
        padding: 15px;
        border-radius: 16px;
        transform: none;
    }

    body.pts-landing-page .pts-visual-card.is-alert {
        top: 56px;
        left: 8px;
        width: 176px;
        padding: 10px 12px;
    }

    body.pts-landing-page .pts-visual-card.is-pod {
        right: 8px;
        bottom: 13px;
        width: 184px;
        padding: 10px 12px;
    }

    body.pts-landing-page .pts-visual-card.is-alert > i,
    body.pts-landing-page .pts-visual-card.is-pod > i {
        font-size: 15px;
    }

    body.pts-landing-page .pts-visual-card.is-alert strong,
    body.pts-landing-page .pts-visual-card.is-pod strong {
        font-size: 10px;
    }

    body.pts-landing-page .pts-landing-features {
        gap: 9px;
        padding: 2px 0 20px;
    }

    body.pts-landing-page .pts-landing-features article {
        min-height: 74px;
        padding: 14px;
        border-radius: 15px;
        background: rgba(255, 255, 255, .92);
        box-shadow: 0 9px 24px rgba(42, 72, 112, .07);
    }

    body.pts-landing-page .pts-landing-features article > i {
        width: 38px;
        height: 38px;
        border-radius: 11px;
    }

    body.pts-landing-page .pts-landing-features strong {
        font-size: 11px;
    }

    body.pts-landing-page .pts-landing-features span {
        font-size: 9px;
        line-height: 1.5;
    }

    body.pts-landing-page .pts-landing-footer {
        grid-template-columns: 1fr;
        gap: 5px;
        padding: 15px 0 20px;
        text-align: center;
    }
}

@media (max-width: 390px) {
    body.pts-app:not(.pts-landing-page) .pts-support-btn {
        width: 34px;
        padding: 0;
        font-size: 0;
    }

    body.pts-app:not(.pts-landing-page) .pts-support-btn i {
        font-size: 12px;
    }

    body.pts-app:not(.pts-landing-page) .pts-topbar-title span {
        display: none;
    }
}

/* Mobile LR document ----------------------------------------------------- */
@media (max-width: 620px) {
    html:has(body.pdd-lr-page),
    body.pdd-lr-page {
        height: auto;
        min-height: 100%;
        overflow: auto;
        background: #edf3fb;
    }

    body.pdd-lr-page .pdd-lr-app {
        display: block;
        height: auto;
        min-height: 100dvh;
        overflow: visible;
    }

    body.pdd-lr-page .pdd-lr-workspace {
        padding: 10px;
        overflow: visible;
        background: transparent;
    }

    body.pdd-lr-page .pdd-lr-doc {
        display: block;
        overflow: visible;
        border: 0;
        border-radius: 18px;
        box-shadow: 0 12px 34px rgba(37, 61, 96, .1);
    }

    body.pdd-lr-page .pdd-doc-id {
        grid-template-columns: 1fr 1fr;
        gap: 1px;
        padding: 1px;
        border: 0;
        background: #dbe5f1;
    }

    body.pdd-lr-page .pdd-doc-id-cell {
        min-width: 0;
        padding: 11px 12px;
        border: 0;
        background: #fff;
    }

    body.pdd-lr-page .pdd-doc-id-cell:first-child {
        grid-column: 1 / -1;
        border-radius: 15px 15px 0 0;
        background: linear-gradient(135deg, #eff6ff, #f7fbff);
    }

    body.pdd-lr-page .pdd-doc-id .v {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    body.pdd-lr-page .pdd-doc-parties {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 10px;
        border: 0;
        background: #f5f8fc;
    }

    body.pdd-lr-page .pdd-doc-party,
    body.pdd-lr-page .pdd-doc-party:last-child {
        overflow: visible;
        border: 1px solid #dce6f2;
        border-radius: 13px;
        background: #fff;
        box-shadow: 0 4px 14px rgba(42, 65, 96, .045);
    }

    body.pdd-lr-page .pdd-doc-party h2 {
        padding: 9px 11px;
        border-bottom-color: #e2e8f0;
        border-radius: 12px 12px 0 0;
        color: #24436b;
        background: #edf5ff;
    }

    body.pdd-lr-page .pdd-doc-party-body {
        overflow: visible;
        padding: 11px 12px 12px;
    }

    body.pdd-lr-page .pdd-doc-line.is-address {
        display: block;
        overflow: visible;
    }

    body.pdd-lr-page .pdd-doc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1px;
        padding: 1px;
        border: 0;
        background: #dbe5f1;
    }

    body.pdd-lr-page .pdd-doc-cell,
    body.pdd-lr-page .pdd-doc-cell:nth-child(4n),
    body.pdd-lr-page .pdd-doc-cell:nth-child(2n) {
        min-height: 64px;
        padding: 10px 11px;
        border: 0;
        background: #fff;
    }

    body.pdd-lr-page .pdd-doc-cell .v {
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.35;
    }

    body.pdd-lr-page .pdd-doc-goods {
        display: block;
        overflow: visible;
        padding-top: 10px;
        background: #f5f8fc;
    }

    body.pdd-lr-page .pdd-doc-goods-title {
        margin: 0 10px;
        padding: 11px 12px;
        border-radius: 12px 12px 0 0;
        background: linear-gradient(135deg, #12233e, #1b365e);
    }

    body.pdd-lr-page .pdd-doc-table-wrap {
        margin: 0 10px;
        overflow: visible;
        background: #fff;
    }

    body.pdd-lr-page .pdd-doc-table,
    body.pdd-lr-page .pdd-doc-table tbody {
        display: block;
        width: 100%;
    }

    body.pdd-lr-page .pdd-doc-table thead {
        display: none;
    }

    body.pdd-lr-page .pdd-doc-table tbody tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1px;
        margin: 0;
        padding: 1px;
        border-bottom: 8px solid #f5f8fc;
        background: #dfe7f1;
    }

    body.pdd-lr-page .pdd-doc-table td {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        min-width: 0;
        min-height: 58px;
        padding: 9px 10px;
        border: 0;
        background: #fff;
        white-space: normal;
        overflow-wrap: anywhere;
        text-align: left;
    }

    body.pdd-lr-page .pdd-doc-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 4px;
        color: #8797ad;
        font-size: 8px;
        font-family: Inter, sans-serif;
        font-weight: 800;
        letter-spacing: .07em;
        text-transform: uppercase;
    }

    body.pdd-lr-page .pdd-doc-table td.idx {
        display: none;
    }

    body.pdd-lr-page .pdd-doc-table td.is-material {
        grid-column: 1 / -1;
    }

    body.pdd-lr-page .pdd-doc-table td.num {
        align-items: flex-start;
        text-align: left;
    }

    body.pdd-lr-page .pdd-doc-empty {
        display: block !important;
        grid-column: 1 / -1;
        min-height: auto !important;
    }

    body.pdd-lr-page .pdd-doc-empty::before {
        display: none !important;
    }

    body.pdd-lr-page .pdd-doc-totals {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1px;
        margin: 0 10px 10px;
        padding: 1px;
        border: 0;
        border-radius: 0 0 13px 13px;
        overflow: hidden;
        background: #dbe5f1;
    }

    body.pdd-lr-page .pdd-doc-totals > div {
        min-width: 0;
        padding: 11px;
        border: 0;
        background: #fff;
    }

    body.pdd-lr-page .pdd-doc-totals .v {
        white-space: normal;
        overflow-wrap: anywhere;
    }
}
