:root {
    --blue: #1E6BFF;
    --blue-dark: #0B2E59;
    --blue-soft: #F3F7FF;
    --bg: #F8FAFC;
    --text: #1F2937;
    --muted: #6B7280;
    --border: #E5E7EB;
    --surface: #FFFFFF;
    --success: #0F766E;
    --warning: #A16207;
    --shadow: 0 18px 50px rgba(11, 46, 89, 0.12);
    --header-height: 76px;
    --admin-sidebar-width: 272px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-size: 16px;
    line-height: 1.6;
}

.site-body {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1 0 auto;
}

.site-body.page-form .site-main {
    display: flex;
    flex-direction: column;
}

body.nav-open {
    overflow: hidden;
}

body.admin-layout-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: var(--header-height);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 14px clamp(18px, 4vw, 56px);
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(229, 231, 235, 0.85);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--blue-dark);
    white-space: nowrap;
}

.brand-mark {
    display: inline-grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: var(--blue);
    font-size: 0.82rem;
    letter-spacing: 0;
}

.primary-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.primary-nav a,
.text-link,
.lang-switch a {
    padding: 8px 10px;
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 650;
    border-radius: 8px;
    transition: color 160ms ease, background 160ms ease;
}

.primary-nav a:hover,
.primary-nav a.is-active,
.text-link:hover {
    color: var(--blue-dark);
    background: var(--blue-soft);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 800;
}

.lang-switch a {
    padding: 0;
    color: inherit;
    border-radius: 0;
    font-weight: 800;
}

.lang-switch a:hover,
.lang-switch a.is-active {
    color: var(--blue-dark);
    background: transparent;
}

.lang-switch span {
    width: 1px;
    height: 14px;
    background: var(--border);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: var(--blue);
    font-weight: 760;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(30, 107, 255, 0.25);
}

.button-small {
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.9rem;
}

.button-ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.button-muted {
    color: var(--blue-dark);
    background: var(--blue-soft);
}

.admin-layout-body {
    background:
        radial-gradient(circle at top left, rgba(30, 107, 255, 0.08), transparent 26%),
        linear-gradient(180deg, #F7FAFF 0%, #F4F7FB 100%);
}

.account-layout-body {
    background:
        radial-gradient(circle at top left, rgba(30, 107, 255, 0.09), transparent 24%),
        linear-gradient(180deg, #F8FBFF 0%, #F5F8FC 100%);
}

.admin-layout-shell {
    min-height: 100svh;
    display: grid;
    grid-template-columns: var(--admin-sidebar-width) minmax(0, 1fr);
}

.account-layout-shell {
    min-height: 100svh;
    display: grid;
    grid-template-columns: var(--admin-sidebar-width) minmax(0, 1fr);
}

.admin-sidebar {
    position: sticky;
    top: 0;
    min-height: 100svh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 24px;
    padding: 22px 18px 24px;
    color: #D8E4F8;
    background:
        linear-gradient(180deg, rgba(16, 36, 66, 0.98) 0%, rgba(9, 25, 48, 0.98) 100%),
        linear-gradient(180deg, rgba(30, 107, 255, 0.18), transparent 35%);
    border-right: 1px solid rgba(169, 200, 255, 0.14);
}

.account-sidebar {
    position: sticky;
    top: 0;
    min-height: 100svh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 24px;
    padding: 22px 18px 24px;
    color: var(--blue-dark);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 248, 255, 0.98) 100%),
        radial-gradient(circle at top left, rgba(30, 107, 255, 0.09), transparent 38%);
    border-right: 1px solid rgba(11, 46, 89, 0.08);
}

.admin-sidebar .brand {
    color: #fff;
}

.account-sidebar .brand {
    color: var(--blue-dark);
}

.admin-sidebar-brand {
    display: grid;
    gap: 12px;
}

.account-sidebar-brand {
    display: grid;
    gap: 12px;
}

.admin-sidebar-brand p {
    margin: 0;
    color: rgba(216, 228, 248, 0.78);
    font-size: 0.92rem;
    line-height: 1.55;
}

.account-sidebar-brand p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.admin-sidebar-nav {
    display: grid;
    align-content: start;
    gap: 6px;
}

.account-sidebar-nav {
    display: grid;
    align-content: start;
    gap: 6px;
}

.admin-sidebar-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 10px;
    color: rgba(216, 228, 248, 0.84);
    font-size: 0.94rem;
    font-weight: 700;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.account-sidebar-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 10px;
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 700;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.admin-sidebar-nav a:hover,
.admin-sidebar-nav a.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(2px);
}

.account-sidebar-nav a:hover,
.account-sidebar-nav a.is-active {
    color: var(--blue-dark);
    background: rgba(30, 107, 255, 0.1);
    transform: translateX(2px);
}

.admin-sidebar-footer {
    display: flex;
}

.account-sidebar-footer {
    display: grid;
    gap: 10px;
}

.admin-sidebar-footer .button {
    width: 100%;
}

.account-sidebar-footer .button {
    width: 100%;
}

.admin-layout-main {
    min-width: 0;
    min-height: 100svh;
    display: grid;
    grid-template-rows: auto auto 1fr;
}

.account-layout-main {
    min-width: 0;
    min-height: 100svh;
    display: grid;
    grid-template-rows: auto auto 1fr;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 28px 18px;
    background: rgba(247, 250, 255, 0.88);
    border-bottom: 1px solid rgba(229, 231, 235, 0.85);
    backdrop-filter: blur(18px);
}

.account-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 28px 18px;
    background: rgba(248, 251, 255, 0.88);
    border-bottom: 1px solid rgba(229, 231, 235, 0.85);
    backdrop-filter: blur(18px);
}

.admin-topbar-copy {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.account-topbar-copy {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.admin-topbar-copy .eyebrow {
    margin-bottom: 4px;
}

.account-topbar-copy .eyebrow {
    margin-bottom: 4px;
}

.admin-topbar-copy h1 {
    margin: 0;
    color: var(--blue-dark);
    font-size: clamp(1.5rem, 2vw, 2.2rem);
    line-height: 1.08;
}

.account-topbar-copy h1 {
    margin: 0;
    color: var(--blue-dark);
    font-size: clamp(1.5rem, 2vw, 2.2rem);
    line-height: 1.08;
}

.admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.account-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.admin-user-chip {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(11, 46, 89, 0.08);
    border-radius: 999px;
    color: var(--blue-dark);
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 700;
}

.account-user-chip,
.account-status-chip {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(11, 46, 89, 0.08);
    border-radius: 999px;
    color: var(--blue-dark);
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 700;
}

.admin-sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--blue-dark);
    background: rgba(255, 255, 255, 0.92);
    font-weight: 760;
}

.account-sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--blue-dark);
    background: rgba(255, 255, 255, 0.92);
    font-weight: 760;
}

.admin-flash-stack {
    display: grid;
    gap: 10px;
    padding: 20px 28px 0;
}

.account-flash-stack {
    display: grid;
    gap: 10px;
    padding: 20px 28px 0;
}

.admin-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding-bottom: 48px;
}

.account-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding-bottom: 48px;
}

.admin-layout-body .page-hero {
    width: min(1240px, calc(100% - 32px));
    margin: 20px auto 0;
    padding: 18px 22px;
    background: linear-gradient(180deg, rgba(243, 247, 255, 0.88), rgba(255, 255, 255, 0.92));
    border: 1px solid rgba(229, 231, 235, 0.92);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(11, 46, 89, 0.08);
}

.account-layout-body .page-hero {
    width: min(1240px, calc(100% - 32px));
    margin: 20px auto 0;
    padding: 18px 22px;
    background: linear-gradient(180deg, rgba(243, 247, 255, 0.88), rgba(255, 255, 255, 0.92));
    border: 1px solid rgba(229, 231, 235, 0.92);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(11, 46, 89, 0.08);
}

.admin-layout-body .page-hero .eyebrow,
.admin-layout-body .page-hero h1 {
    display: none;
}

.account-layout-body .page-hero .eyebrow,
.account-layout-body .page-hero h1 {
    display: none;
}

.admin-layout-body .page-hero p:not(.eyebrow) {
    max-width: none;
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.6;
}

.account-layout-body .page-hero p:not(.eyebrow) {
    max-width: none;
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.6;
}

.admin-layout-body .section {
    width: min(1240px, calc(100% - 32px));
    padding: 18px 0 0;
}

.account-layout-body .section {
    width: min(1240px, calc(100% - 32px));
    padding: 18px 0 0;
}

.admin-layout-body .section:last-child {
    padding-bottom: 0;
}

.account-layout-body .section:last-child {
    padding-bottom: 0;
}

.admin-layout-body .table-section,
.admin-layout-body .detail-layout,
.admin-layout-body .form-layout {
    align-items: start;
}

.account-layout-body .table-section,
.account-layout-body .detail-layout,
.account-layout-body .form-layout {
    align-items: start;
}

.admin-layout-body .section .section-title {
    font-size: clamp(1.2rem, 2vw, 1.7rem);
}

.account-layout-body .section .section-title {
    font-size: clamp(1.2rem, 2vw, 1.7rem);
}

.admin-layout-body .wide-form {
    width: 100%;
}

.account-layout-body .wide-form,
.account-layout-body .auth-panel {
    width: 100%;
}

.admin-layout-body .list-toolbar {
    margin-bottom: 16px;
    padding: 14px;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(11, 46, 89, 0.06);
}

.account-layout-body .list-toolbar,
.account-layout-body .filter-bar {
    margin-bottom: 16px;
    padding: 14px;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(11, 46, 89, 0.06);
}

.admin-layout-body .admin-nav {
    padding-top: 14px;
    gap: 10px;
}

.account-layout-body .admin-nav {
    padding-top: 14px;
    gap: 10px;
}

.admin-layout-body .admin-nav .button {
    min-height: 40px;
}

.account-layout-body .admin-nav .button {
    min-height: 40px;
}

.account-layout-body .account-module-links {
    padding-top: 22px;
}

.admin-layout-body .data-table {
    overflow: hidden;
    border-radius: 12px;
    background: var(--surface);
    box-shadow: 0 12px 28px rgba(11, 46, 89, 0.07);
}

.account-layout-body .data-table {
    overflow: hidden;
    border-radius: 12px;
    background: var(--surface);
    box-shadow: 0 12px 28px rgba(11, 46, 89, 0.07);
}

.admin-layout-body .data-table th {
    background: #F8FAFC;
}

.account-layout-body .data-table th {
    background: #F8FAFC;
}

.admin-layout-body .detail-panel,
.admin-layout-body .contact-panel,
.admin-layout-body .form-panel {
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(11, 46, 89, 0.07);
}

.account-layout-body .detail-panel,
.account-layout-body .contact-panel,
.account-layout-body .form-panel,
.account-layout-body .load-row {
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(11, 46, 89, 0.07);
}

.admin-layout-body .dashboard-grid {
    margin-top: 0;
}

.account-layout-body .dashboard-grid {
    margin-top: 0;
}

.admin-layout-body .dashboard-tile {
    padding: 22px;
}

.account-layout-body .dashboard-tile {
    padding: 22px;
}

.admin-layout-body .status-panel {
    margin-top: 18px;
    margin-bottom: 0;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(11, 46, 89, 0.07);
}

.account-layout-body .status-panel {
    margin-top: 18px;
    margin-bottom: 0;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(11, 46, 89, 0.07);
}

.admin-layout-body .pagination {
    margin-top: 14px;
    padding-top: 8px;
}

.nav-toggle {
    display: none;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--blue-dark);
    font-weight: 760;
    z-index: 21;
}

.hero {
    min-height: calc(100svh - var(--header-height));
    display: flex;
    align-items: center;
    padding: clamp(58px, 8vw, 118px) clamp(20px, 7vw, 96px);
}

.hero-freight {
    position: relative;
    background-image:
        linear-gradient(90deg, rgba(4, 21, 42, 0.88) 0%, rgba(4, 21, 42, 0.72) 34%, rgba(4, 21, 42, 0.22) 68%, rgba(4, 21, 42, 0.05) 100%),
        url("../images/hero-freight-yard.png");
    background-size: cover;
    background-position: center;
    color: #fff;
}

.hero-content {
    width: min(680px, 100%);
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--blue);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.hero .eyebrow {
    color: #A9C8FF;
}

.hero h1,
.page-hero h1 {
    margin: 0;
    font-size: clamp(2.75rem, 7vw, 6.6rem);
    line-height: 0.96;
    letter-spacing: 0;
}

.hero h2 {
    margin: 22px 0 0;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(1.35rem, 3vw, 2.35rem);
    line-height: 1.16;
    letter-spacing: 0;
}

.hero p:not(.eyebrow) {
    max-width: 560px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.08rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.section {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
    padding: clamp(58px, 8vw, 104px) 0;
}

.section-split {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    gap: clamp(32px, 8vw, 96px);
    align-items: start;
}

.section-copy h2,
.section-heading h2,
.final-cta h2,
.service-lane h2,
.dashboard-tile h2 {
    margin: 0;
    color: var(--blue-dark);
    font-size: clamp(1.8rem, 4vw, 3.4rem);
    line-height: 1.06;
    letter-spacing: 0;
}

.section-copy p:not(.eyebrow),
.section-heading p,
.final-cta p {
    color: var(--muted);
    font-size: 1.05rem;
}

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

.process-list li,
.audience-item,
.service-lane,
.dashboard-tile,
.form-panel,
.contact-panel,
.detail-panel,
.load-row {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.process-list li {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px;
}

.process-list span,
.audience-item span,
.service-lane span,
.dashboard-tile span {
    color: var(--blue);
    font-weight: 900;
}

.audience-grid,
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.audience-item,
.service-lane,
.dashboard-tile {
    padding: 24px;
}

.audience-item h3,
.service-lane h2,
.dashboard-tile h2 {
    margin: 8px 0 8px;
}

.audience-item p,
.service-lane p,
.dashboard-tile p,
.statement-list p {
    margin: 0;
    color: var(--muted);
}

.advantage-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.advantage-row span,
.status-dot {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--blue-dark);
    background: var(--blue-soft);
    font-size: 0.86rem;
    font-weight: 780;
}

.final-cta {
    margin-bottom: 64px;
    padding: clamp(42px, 7vw, 72px);
    color: #fff;
    background: var(--blue-dark);
    border-radius: 8px;
}

.final-cta h2,
.final-cta p {
    color: #fff;
}

.page-hero {
    padding: clamp(72px, 10vw, 124px) clamp(20px, 7vw, 96px) clamp(48px, 6vw, 82px);
    background: var(--blue-soft);
    border-bottom: 1px solid var(--border);
}

.compact-hero h1 {
    max-width: 920px;
    color: var(--blue-dark);
    font-size: clamp(2.4rem, 6vw, 5.2rem);
}

.compact-hero p:not(.eyebrow) {
    max-width: 760px;
    color: var(--muted);
    font-size: 1.08rem;
}

.hero-clean {
    padding-top: clamp(60px, 8vw, 100px);
    padding-bottom: clamp(42px, 5vw, 70px);
}

.hero-clean h1 + p {
    margin-top: 16px;
}

.service-lanes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.service-lane a {
    display: inline-flex;
    margin-top: 18px;
    color: var(--blue);
    font-weight: 800;
}

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

.statement-list p {
    padding: 18px 0;
    border-top: 1px solid var(--border);
}

.form-layout,
.detail-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 24px;
    align-items: start;
}

.form-panel,
.contact-panel,
.detail-panel {
    padding: clamp(22px, 4vw, 34px);
}

.form-panel {
    display: grid;
    gap: 18px;
}

.wide-form {
    width: min(980px, 100%);
    margin: 0 auto;
}

.auth-shell {
    min-height: calc(100svh - var(--header-height));
    display: grid;
    flex: 1 0 auto;
    place-items: center;
    padding: 48px 20px;
}

.auth-shell.wide {
    place-items: start center;
}

.auth-panel {
    width: min(520px, 100%);
}

.auth-shell.wide .auth-panel {
    width: min(920px, 100%);
}

.short-state-hero {
    min-height: clamp(360px, calc(100svh - var(--header-height) - 180px), 560px);
    display: grid;
    align-content: center;
}

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

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

.textarea-tall {
    min-height: 220px;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.list-toolbar {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr)) auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 20px;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.list-toolbar.compact {
    grid-template-columns: repeat(3, minmax(150px, 1fr)) auto;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
    padding: 14px 0;
    color: var(--muted);
}

.pagination > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-current {
    color: var(--blue-dark);
    font-weight: 800;
}

label {
    display: grid;
    gap: 7px;
    color: var(--blue-dark);
    font-size: 0.92rem;
    font-weight: 760;
}

input,
select,
textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    background: #fff;
    outline: none;
    transition: border 160ms ease, box-shadow 160ms ease;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(30, 107, 255, 0.12);
}

.has-error input,
.has-error select,
.has-error textarea {
    border-color: #B42318;
    background: #FFF7F6;
}

.has-error input:focus,
.has-error select:focus,
.has-error textarea:focus {
    border-color: #B42318;
    box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.12);
}

.field-error {
    color: #B42318;
    font-size: 0.82rem;
    font-weight: 700;
}

.button:disabled {
    cursor: wait;
    opacity: 0.68;
    transform: none;
    box-shadow: none;
}

.form-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.address-autocomplete {
    position: relative;
}

.address-suggestions {
    position: absolute;
    z-index: 12;
    top: calc(100% - 2px);
    right: 0;
    left: 0;
    display: none;
    max-height: 260px;
    overflow-y: auto;
    padding: 6px;
    background: var(--surface);
    border: 1px solid rgba(30, 107, 255, 0.2);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.address-suggestions.is-visible {
    display: grid;
}

.address-suggestions button {
    width: 100%;
    padding: 10px 12px;
    color: var(--text);
    text-align: left;
    background: transparent;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}

.address-suggestions button:hover,
.address-suggestions button:focus {
    color: var(--blue-dark);
    background: var(--blue-soft);
    outline: none;
}

.filter-bar {
    grid-template-columns: repeat(5, minmax(130px, 1fr)) auto;
    align-items: end;
    margin-bottom: 22px;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.load-list {
    display: grid;
    gap: 16px;
}

.load-row {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(380px, 1.4fr) auto;
    gap: 22px;
    align-items: center;
    padding: 22px;
}

.load-row h2 {
    margin: 8px 0 4px;
    color: var(--blue-dark);
    font-size: 1.35rem;
}

.load-row p {
    margin: 0;
    color: var(--muted);
}

.load-row dl,
.detail-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.load-row dl {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

dt {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 760;
}

dd {
    margin: 0;
    color: var(--text);
    font-weight: 720;
}

.detail-header {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.detail-list div {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 18px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
}

.map-preview {
    display: grid;
    gap: 16px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

.map-preview h2 {
    margin: 0;
    color: var(--blue-dark);
    font-size: 1.35rem;
}

.map-frame {
    width: 100%;
    min-height: 360px;
    border: 1px solid rgba(30, 107, 255, 0.16);
    border-radius: 8px;
    background: var(--blue-soft);
}

.map-frame-image {
    display: block;
    height: 360px;
    object-fit: cover;
}

.compact-map-frame {
    min-height: 240px;
    margin-top: 12px;
}

.map-placeholder {
    margin: 0;
    padding: 18px;
    color: var(--muted);
    background: var(--blue-soft);
    border: 1px dashed rgba(30, 107, 255, 0.32);
    border-radius: 8px;
}

.fake-route-map {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    border: 1px solid rgba(30, 107, 255, 0.16);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.42) 1px, transparent 1px) 0 0 / 42px 42px,
        linear-gradient(0deg, rgba(255, 255, 255, 0.42) 1px, transparent 1px) 0 0 / 42px 42px,
        radial-gradient(circle at 22% 22%, rgba(30, 107, 255, 0.13), transparent 24%),
        radial-gradient(circle at 80% 76%, rgba(249, 115, 22, 0.15), transparent 24%),
        linear-gradient(135deg, #eaf2fb 0%, #f8fafc 52%, #eef7f2 100%);
}

.fake-route-map::before,
.fake-route-map::after {
    content: "";
    position: absolute;
    inset: auto;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.64);
    transform-origin: center;
}

.fake-route-map::before {
    width: 140%;
    height: 34px;
    left: -18%;
    top: 48%;
    transform: rotate(-9deg);
}

.fake-route-map::after {
    width: 100%;
    height: 24px;
    right: -28%;
    top: 22%;
    transform: rotate(33deg);
}

.fake-map-road {
    position: absolute;
    height: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.54);
}

.fake-map-road-a {
    width: 52%;
    left: -8%;
    top: 18%;
    transform: rotate(21deg);
}

.fake-map-road-b {
    width: 58%;
    right: -12%;
    bottom: 23%;
    transform: rotate(-18deg);
}

.fake-map-road-c {
    width: 44%;
    left: 26%;
    bottom: 12%;
    transform: rotate(8deg);
}

.fake-map-route {
    position: absolute;
    left: 21%;
    top: 28%;
    width: 58%;
    height: 42%;
    border: 8px solid transparent;
    border-top-color: var(--blue);
    border-right-color: var(--blue);
    border-radius: 12px 120px 120px 12px;
    filter: drop-shadow(0 10px 14px rgba(30, 107, 255, 0.22));
    transform: rotate(4deg);
}

.fake-map-route::after {
    content: "";
    position: absolute;
    right: -16px;
    bottom: -13px;
    border: 9px solid transparent;
    border-left-color: var(--blue);
    transform: rotate(44deg);
}

.fake-map-pin {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px 7px 7px;
    border-radius: 999px;
    color: var(--blue-dark);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(30, 107, 255, 0.14);
    box-shadow: 0 12px 28px rgba(11, 46, 89, 0.12);
}

.fake-map-pin span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--blue);
    font-size: 0.78rem;
    font-weight: 900;
}

.fake-map-pin strong {
    font-size: 0.84rem;
    font-weight: 850;
    white-space: nowrap;
}

.fake-map-pin-pickup {
    left: 12%;
    top: 24%;
}

.fake-map-pin-delivery {
    right: 11%;
    bottom: 23%;
}

.fake-route-map .map-placeholder {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 3;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.86);
    border-style: solid;
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 28px rgba(11, 46, 89, 0.1);
}

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

.map-address-grid div {
    display: grid;
    gap: 6px;
    padding: 16px;
    background: var(--blue-soft);
    border: 1px solid rgba(30, 107, 255, 0.16);
    border-radius: 8px;
}

.map-address-grid span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 760;
}

.map-address-grid strong {
    color: var(--blue-dark);
    line-height: 1.35;
}

.map-action-row,
.route-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.route-cell {
    min-width: 210px;
}

.geo-status {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.geo-status.is-resolved {
    color: #065F46;
    background: #D1FAE5;
}

.geo-status.is-unresolved {
    color: #92400E;
    background: #FEF3C7;
}

.dashboard-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-tile {
    display: block;
    min-height: 180px;
    transition: transform 180ms ease, border-color 180ms ease;
}

.dashboard-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(30, 107, 255, 0.4);
}

.table-section {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.data-table th,
.data-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    color: var(--blue-dark);
    background: var(--blue-soft);
    font-size: 0.88rem;
}

.site-footer {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 28px;
    align-items: start;
    padding: 42px clamp(20px, 7vw, 96px);
    color: rgba(255, 255, 255, 0.82);
    background: #071E3A;
}

.site-footer strong {
    color: #fff;
}

.site-footer p {
    max-width: 520px;
    margin: 8px 0 0;
}

.footer-links,
.footer-contact {
    display: grid;
    gap: 8px;
}

.copyright {
    grid-column: 1 / -1;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.9rem;
}

.toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 30;
    width: min(360px, calc(100% - 40px));
    padding: 14px 16px;
    color: #fff;
    background: var(--blue-dark);
    border-radius: 8px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
}

.flash-stack {
    position: fixed;
    top: calc(var(--header-height) + 14px);
    right: 20px;
    z-index: 25;
    display: grid;
    gap: 10px;
    width: min(420px, calc(100% - 40px));
}

.flash {
    padding: 13px 15px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: var(--shadow);
    font-weight: 720;
}

.flash-success {
    color: var(--success);
    border-color: rgba(15, 118, 110, 0.25);
}

.flash-error {
    color: #B42318;
    border-color: rgba(180, 35, 24, 0.25);
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 0;
}

.admin-stats {
    padding-top: 28px;
}

.admin-table th,
.admin-table td {
    vertical-align: top;
}

.section-title {
    margin: 0 0 18px;
    color: var(--blue-dark);
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    line-height: 1.1;
    letter-spacing: 0;
}

.embedded-form {
    padding: 0;
    border: 0;
    box-shadow: none;
}

.admin-detail {
    align-items: stretch;
}

.status-panel {
    display: grid;
    gap: 10px;
    padding: 22px;
    margin-top: 28px;
    margin-bottom: -42px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.status-panel p {
    margin: 0;
    color: var(--muted);
}

.workspace-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.workspace-summary-grid-compact {
    margin-top: 20px;
}

.workspace-stat,
.workspace-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(11, 46, 89, 0.07);
}

.workspace-stat {
    display: grid;
    gap: 10px;
    padding: 18px 20px;
}

.workspace-stat span {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.workspace-stat strong {
    color: var(--blue-dark);
    font-size: 1.45rem;
    line-height: 1.1;
    word-break: break-word;
}

.workspace-stat small {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.workspace-two-column {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: 20px;
    align-items: start;
}

.workspace-two-column-form {
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
}

.workspace-panel {
    padding: 22px;
}

.workspace-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.workspace-section-head-tight {
    margin-bottom: 14px;
}

.workspace-section-head h2 {
    margin: 0;
    color: var(--blue-dark);
    font-size: 1.16rem;
    line-height: 1.25;
}

.workspace-section-head p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.96rem;
}

.workspace-note {
    display: grid;
    gap: 8px;
    padding: 16px 18px;
    margin-bottom: 14px;
    border: 1px solid rgba(11, 46, 89, 0.08);
    border-radius: 12px;
    background: #F8FBFF;
}

.workspace-note strong,
.workspace-file-row strong {
    color: var(--blue-dark);
}

.workspace-note p,
.workspace-empty-note {
    margin: 0;
    color: var(--muted);
}

.workspace-note.is-success {
    background: #F0FDF8;
    border-color: rgba(15, 118, 110, 0.18);
}

.workspace-note.is-warning {
    background: #FFFBEB;
    border-color: rgba(161, 98, 7, 0.2);
}

.workspace-checklist {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.workspace-checklist li {
    position: relative;
    padding-left: 20px;
    color: var(--text);
}

.workspace-checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #CBD5E1;
}

.workspace-checklist li.is-complete::before {
    background: var(--success);
}

.workspace-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.workspace-steps li {
    display: grid;
    gap: 6px;
    min-height: 94px;
    padding: 12px;
    border: 1px solid rgba(30, 107, 255, 0.16);
    border-radius: 12px;
    background: #f8fbff;
}

.workspace-steps span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: var(--blue);
    font-size: 0.82rem;
    font-weight: 900;
}

.workspace-steps strong {
    color: var(--blue-dark);
    font-size: 0.92rem;
}

.workspace-steps small {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 680;
    line-height: 1.35;
}

.workspace-action-list {
    display: grid;
}

.workspace-action-row {
    display: grid;
    gap: 6px;
    padding: 14px 0;
    border-top: 1px solid var(--border);
}

.workspace-action-row:first-child {
    padding-top: 0;
    border-top: 0;
}

.workspace-action-row strong {
    color: var(--blue-dark);
    font-size: 0.98rem;
}

.workspace-action-row span,
.workspace-inline-meta {
    color: var(--muted);
    font-size: 0.92rem;
}

.workspace-file-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.workspace-file-list-title {
    color: var(--blue-dark);
    font-size: 0.95rem;
    font-weight: 700;
}

.workspace-file-row {
    display: grid;
    gap: 4px;
    padding: 12px 0;
    border-top: 1px solid var(--border);
}

.workspace-file-row:first-of-type {
    padding-top: 0;
    border-top: 0;
}

.workspace-file-row span,
.workspace-file-row em {
    color: var(--muted);
    font-size: 0.9rem;
    font-style: normal;
}

.workspace-upload-preview {
    display: grid;
    gap: 14px;
    padding: 18px 0 0;
    border-top: 1px solid var(--border);
}

.workspace-upload-preview-head {
    display: grid;
    gap: 4px;
}

.workspace-upload-preview-head strong {
    color: var(--blue-dark);
}

.workspace-upload-preview-head span {
    color: var(--muted);
    font-size: 0.92rem;
}

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

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

.document-card {
    position: relative;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(11, 46, 89, 0.06);
}

.document-card-link {
    display: grid;
    gap: 0;
}

.document-card-preview {
    min-height: 148px;
    background: #F8FAFC;
}

.document-card-preview img {
    width: 100%;
    height: 148px;
    object-fit: cover;
}

.document-card-filetype {
    display: grid;
    place-items: center;
    min-height: 148px;
    color: var(--blue-dark);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0;
}

.document-card-body {
    display: grid;
    gap: 4px;
    padding: 12px;
}

.document-card-body strong {
    color: var(--blue-dark);
    font-size: 0.94rem;
    line-height: 1.35;
    word-break: break-word;
}

.document-card-body span,
.document-card-body em {
    color: var(--muted);
    font-size: 0.84rem;
    font-style: normal;
}

.document-card-remove-form {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
}

.document-card-remove {
    display: inline-grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(11, 46, 89, 0.88);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

.document-card-remove:hover {
    background: rgba(180, 35, 24, 0.92);
}

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

.workspace-form-section {
    display: grid;
    gap: 18px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

.workspace-form-section:first-child {
    padding-top: 0;
    border-top: 0;
}

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

.load-location-editor {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.42fr);
    gap: 16px;
    align-items: stretch;
}

.load-location-map-card {
    display: grid;
    grid-template-rows: auto minmax(190px, 1fr) auto;
    gap: 12px;
    min-height: 100%;
    padding: 14px;
    border: 1px solid rgba(30, 107, 255, 0.16);
    border-radius: 16px;
    background: #f8fbff;
}

.load-location-map-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.load-location-map-head div {
    display: grid;
    gap: 3px;
}

.load-location-map-head span,
.load-location-map-status span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 760;
}

.load-location-map-head strong,
.load-location-map-status strong {
    color: var(--blue-dark);
    font-size: 0.94rem;
    line-height: 1.3;
}

.load-location-map-head em {
    flex: 0 0 auto;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    border-radius: 999px;
    color: #0f766e;
    background: rgba(15, 118, 110, 0.1);
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 850;
    white-space: nowrap;
}

.mini-location-map {
    position: relative;
    display: block;
    width: 100%;
    min-height: 190px;
    overflow: hidden;
    border: 1px solid rgba(30, 107, 255, 0.14);
    border-radius: 14px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.46) 1px, transparent 1px) 0 0 / 28px 28px,
        linear-gradient(0deg, rgba(255, 255, 255, 0.46) 1px, transparent 1px) 0 0 / 28px 28px,
        linear-gradient(135deg, #eaf2fb 0%, #f8fafc 56%, #eef7f2 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.58);
    cursor: crosshair;
}

.mini-location-map:focus-visible {
    outline: 3px solid rgba(30, 107, 255, 0.22);
    outline-offset: 3px;
}

.mini-location-map.is-google-map {
    background: #e7edf4;
    cursor: grab;
}

.mini-location-map.is-google-map:active {
    cursor: grabbing;
}

.mini-map-road,
.mini-map-zone {
    position: absolute;
    pointer-events: none;
}

.mini-map-road {
    height: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
}

.mini-map-road-a {
    width: 78%;
    left: -14%;
    top: 31%;
    transform: rotate(18deg);
}

.mini-map-road-b {
    width: 84%;
    right: -24%;
    top: 58%;
    transform: rotate(-16deg);
}

.mini-map-road-c {
    width: 52%;
    left: 18%;
    bottom: 16%;
    transform: rotate(7deg);
}

.mini-map-zone {
    border-radius: 999px;
    background: rgba(30, 107, 255, 0.1);
}

.mini-map-zone-a {
    width: 78px;
    height: 78px;
    left: 10%;
    top: 12%;
}

.mini-map-zone-b {
    width: 96px;
    height: 96px;
    right: 8%;
    bottom: 10%;
    background: rgba(249, 115, 22, 0.12);
}

.mini-map-marker {
    position: absolute;
    left: var(--marker-x, 50%);
    top: var(--marker-y, 50%);
    z-index: 2;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 3px solid #fff;
    border-radius: 999px;
    color: #fff;
    --marker-color: var(--blue);
    background: var(--marker-color);
    box-shadow: 0 14px 24px rgba(11, 46, 89, 0.18);
    font-size: 0.82rem;
    font-weight: 900;
    pointer-events: none;
    transform: translate(-50%, -100%);
    transition: left 180ms ease, top 180ms ease;
}

.mini-map-marker::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -9px;
    border: 7px solid transparent;
    border-top-color: var(--marker-color);
    transform: translateX(-50%);
}

.mini-map-marker-pickup {
    --marker-color: var(--blue);
}

.mini-map-marker-delivery {
    --marker-color: #f97316;
}

.load-location-map-status {
    display: grid;
    gap: 4px;
}

.load-location-map-status strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-map-card {
    overflow: hidden;
    padding: 0;
    border-radius: 18px;
    background: #e9f3ff;
}

.live-map-frame {
    width: 100%;
    min-height: 320px;
    border: 0;
    display: block;
}

.tracking-feed {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.tracking-feed-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #f6f8fb;
    font-size: 0.92rem;
}

.route-metrics-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid rgba(15, 118, 110, 0.16);
    border-radius: 14px;
    background: #f3fbf8;
}

.route-metrics-preview div {
    display: grid;
    gap: 4px;
}

.route-metrics-preview span,
.route-metrics-preview p {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 760;
}

.route-metrics-preview strong {
    color: #0f766e;
    font-size: 1.02rem;
}

.route-metrics-preview p {
    max-width: 360px;
    line-height: 1.45;
    text-align: right;
}

.workspace-form-full {
    grid-column: 1 / -1;
}

.inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    min-width: 360px;
}

.inline-form select,
.inline-form input {
    width: auto;
    min-width: 130px;
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal {
    opacity: 1;
    transform: none;
}

.js-ready .reveal {
    opacity: 1;
    transform: none;
    transition: opacity 520ms ease, transform 520ms ease;
}

.js-ready .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.account-layout-body .pagination {
    margin-top: 14px;
    padding-top: 8px;
}

.account-layout-body .auth-shell {
    min-height: 0;
    padding: 0;
    place-items: stretch;
}

@media (max-width: 1080px) {
    .admin-layout-shell {
        grid-template-columns: 1fr;
    }

    .account-layout-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 30;
        width: min(82vw, 320px);
        min-height: 100svh;
        transform: translateX(-102%);
        transition: transform 220ms ease;
        box-shadow: 0 30px 80px rgba(9, 25, 48, 0.28);
    }

    .account-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 30;
        width: min(82vw, 320px);
        min-height: 100svh;
        transform: translateX(-102%);
        transition: transform 220ms ease;
        box-shadow: 0 30px 80px rgba(9, 25, 48, 0.18);
    }

    .admin-sidebar.is-open {
        transform: translateX(0);
    }

    .account-sidebar.is-open {
        transform: translateX(0);
    }

    .admin-sidebar-toggle {
        display: inline-flex;
    }

    .account-sidebar-toggle {
        display: inline-flex;
    }

    .admin-topbar {
        padding-left: 20px;
        padding-right: 20px;
    }

    .account-topbar {
        padding-left: 20px;
        padding-right: 20px;
    }

    .admin-flash-stack {
        padding-left: 20px;
        padding-right: 20px;
    }

    .account-flash-stack {
        padding-left: 20px;
        padding-right: 20px;
    }

    .admin-layout-body .page-hero,
    .admin-layout-body .section {
        width: calc(100% - 32px);
    }

    .account-layout-body .page-hero,
    .account-layout-body .section {
        width: calc(100% - 32px);
    }

    .site-header {
        grid-template-columns: auto auto 1fr;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .primary-nav {
        position: fixed;
        inset: var(--header-height) 0 auto 0;
        display: none;
        grid-template-columns: 1fr;
        gap: 0;
        padding: 18px 20px;
        background: #fff;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }

    .primary-nav.is-open {
        display: grid;
    }

    .primary-nav a {
        padding: 14px 8px;
    }

    .header-actions {
        justify-self: end;
    }

    .filter-bar,
    .list-toolbar,
    .list-toolbar.compact,
    .load-row,
    .workspace-summary-grid,
    .workspace-two-column,
    .workspace-two-column-form,
    .load-location-editor,
    .workspace-form-section-grid {
        grid-template-columns: 1fr;
    }

    .route-metrics-preview {
        align-items: flex-start;
        flex-direction: column;
    }

    .route-metrics-preview p {
        max-width: none;
        text-align: left;
    }

    .load-row dl {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-grid,
    .service-lanes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    :root {
        --header-height: 70px;
    }

    .admin-topbar {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px 16px 14px;
    }

    .account-topbar {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px 16px 14px;
    }

    .admin-topbar-copy,
    .admin-topbar-actions {
        width: 100%;
    }

    .account-topbar-copy,
    .account-topbar-actions {
        width: 100%;
    }

    .admin-topbar-actions {
        justify-content: flex-start;
    }

    .account-topbar-actions {
        justify-content: flex-start;
    }

    .admin-user-chip {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .account-user-chip {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .admin-flash-stack {
        padding-left: 16px;
        padding-right: 16px;
    }

    .load-location-map-card {
        padding: 12px;
    }

    .mini-location-map {
        min-height: 172px;
    }

    .account-flash-stack {
        padding-left: 16px;
        padding-right: 16px;
    }

    .admin-layout-body .page-hero,
    .admin-layout-body .section {
        width: calc(100% - 24px);
    }

    .account-layout-body .page-hero,
    .account-layout-body .section {
        width: calc(100% - 24px);
    }

    .admin-layout-body .page-hero {
        padding: 16px 16px 15px;
    }

    .account-layout-body .page-hero {
        padding: 16px 16px 15px;
    }

    .site-header {
        grid-template-columns: 1fr auto;
        gap: 10px;
        padding: 10px 14px 12px;
        background: rgba(255, 255, 255, 0.97);
        box-shadow: 0 10px 28px rgba(11, 46, 89, 0.08);
    }

    .brand {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
    }

    .brand span:last-child {
        max-width: 168px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .brand-mark {
        width: 36px;
        height: 36px;
        border-radius: 9px;
    }

    .nav-toggle {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        display: none;
    }

    .primary-nav {
        position: static;
        grid-column: 1 / -1;
        grid-row: 3;
        display: flex;
        justify-content: flex-start;
        overflow-x: auto;
        gap: 4px;
        padding: 5px;
        background: #f8fafc;
        border: 1px solid rgba(226, 232, 240, 0.95);
        border-radius: 14px;
        box-shadow: none;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .primary-nav::-webkit-scrollbar {
        display: none;
    }

    .primary-nav a {
        flex: 0 0 auto;
        min-height: 34px;
        display: inline-flex;
        align-items: center;
        padding: 0 11px;
        border-radius: 10px;
        white-space: nowrap;
    }

    .primary-nav a.is-active {
        color: var(--blue-dark);
        background: #fff;
        box-shadow: 0 8px 18px rgba(11, 46, 89, 0.08);
    }

    .header-actions {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .header-actions::-webkit-scrollbar {
        display: none;
    }

    .header-actions .lang-switch,
    .header-actions .text-link,
    .header-actions .button-small {
        flex: 0 0 auto;
    }

    .header-actions .lang-switch {
        min-height: 36px;
        padding: 0 12px;
        gap: 9px;
        border-radius: 999px;
        background: #f8fafc;
        border: 1px solid rgba(226, 232, 240, 0.95);
    }

    .header-actions .button-small {
        min-height: 36px;
        padding: 0 12px;
    }

    .header-actions .text-link {
        margin-left: 0;
    }

    .hero {
        min-height: calc(100svh - 118px);
        padding: 56px 20px;
    }

    .hero-content {
        max-width: 320px;
    }

    .hero-freight {
        background-image:
            linear-gradient(90deg, rgba(4, 21, 42, 0.9), rgba(4, 21, 42, 0.56)),
            url("../images/hero-freight-yard.png");
        background-position: center right;
    }

    .hero h1,
    .page-hero h1 {
        font-size: clamp(2.3rem, 12vw, 4.2rem);
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .hero h1 {
        font-size: clamp(2.35rem, 12vw, 3rem);
        word-break: break-all;
    }

    .section,
    .page-hero {
        width: calc(100% - 32px);
    }

    .page-hero {
        padding-left: 16px;
        padding-right: 16px;
    }

    .section-split,
    .form-layout,
    .detail-layout,
    .audience-grid,
    .dashboard-grid,
    .service-lanes,
    .form-grid,
    .settings-grid {
        grid-template-columns: 1fr;
    }

    .final-cta {
        width: calc(100% - 32px);
        padding: 32px 20px;
    }

    .detail-list div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .map-address-grid {
        grid-template-columns: 1fr;
    }

    .map-frame,
    .fake-route-map {
        min-height: 280px;
    }

    .fake-map-route {
        left: 18%;
        top: 29%;
        width: 62%;
        height: 38%;
        border-width: 7px;
    }

    .fake-map-pin {
        gap: 6px;
        padding: 6px 9px 6px 6px;
    }

    .fake-map-pin span {
        width: 24px;
        height: 24px;
        font-size: 0.72rem;
    }

    .fake-map-pin strong {
        font-size: 0.78rem;
    }

    .fake-map-pin-pickup {
        left: 8%;
        top: 22%;
    }

    .fake-map-pin-delivery {
        right: 8%;
        bottom: 32%;
    }

    .fake-route-map .map-placeholder {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 10px 12px;
    }

    .site-footer {
        grid-template-columns: 1fr;
    }

    .short-state-hero {
        min-height: clamp(300px, calc(100svh - 220px), 460px);
    }

    .flash-stack {
        top: 150px;
        right: 16px;
        width: calc(100% - 32px);
    }

    .inline-form {
        min-width: 0;
    }

    .inline-form select,
    .inline-form input {
        width: 100%;
    }
}

/* DAT-style logged-in workbench refresh */
.account-layout-body,
.admin-layout-body {
    min-height: 100svh;
    background:
        radial-gradient(circle at top left, rgba(30, 107, 255, 0.08), transparent 26%),
        linear-gradient(180deg, #f6f9fc 0%, #eef4f8 100%);
}

.dat-topbar {
    position: sticky;
    top: 0;
    z-index: 35;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
    backdrop-filter: blur(16px);
}

.dat-topbar-inner {
    max-width: 1480px;
    margin: 0 auto;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 20px;
}

.dat-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--blue-dark);
    text-decoration: none;
    font-weight: 800;
    white-space: nowrap;
}

.dat-brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--blue);
    color: #fff;
    font-size: 0.86rem;
    box-shadow: 0 10px 22px rgba(30, 107, 255, 0.22);
}

.dat-brand-text {
    display: grid;
    gap: 2px;
    line-height: 1.1;
}

.dat-brand-text strong {
    font-size: 1.05rem;
}

.dat-brand-text small {
    font-size: 0.84rem;
    color: var(--muted);
    font-weight: 650;
}

.dat-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.dat-topbar-link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--blue-soft);
    color: var(--blue-dark);
    font-weight: 750;
}

.dat-lang-switch {
    color: var(--muted);
    box-shadow: none;
}

.dat-lang-switch a.is-active,
.dat-lang-switch a:hover {
    color: var(--blue-dark);
}

.dat-lang-switch span {
    background: var(--border);
}

.dat-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 6px 10px 6px 6px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(30, 107, 255, 0.12);
    box-shadow: 0 8px 24px rgba(11, 46, 89, 0.08);
}

.dat-user-avatar {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--warm);
    color: #fff;
    font-weight: 800;
}

.dat-user-copy {
    display: grid;
    gap: 2px;
    line-height: 1.1;
}

.dat-user-copy strong {
    font-size: 0.95rem;
    font-weight: 800;
}

.dat-user-copy small {
    font-size: 0.78rem;
    color: var(--muted);
}

.dat-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    background: #eef2f7;
    color: var(--blue-dark);
}

.dat-status-badge.status-approved,
.dat-status-badge.status-open,
.dat-status-badge.status-enabled {
    background: #dcfce7;
    color: #166534;
}

.dat-status-badge.status-pending,
.dat-status-badge.status-new {
    background: #fff7ed;
    color: #9a3412;
}

.dat-status-badge.status-rejected,
.dat-status-badge.status-disabled,
.dat-status-badge.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.dat-shell {
    padding: 28px 0 72px;
}

.dat-container {
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 20px;
}

.dat-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    padding: 30px 32px;
    border-radius: 28px;
    color: #fff;
    background:
        linear-gradient(120deg, rgba(8, 36, 66, 0.98), rgba(15, 76, 129, 0.78)),
        url("../images/hero-freight-yard.png");
    background-size: cover;
    background-position: center;
    box-shadow: 0 20px 50px rgba(11, 46, 89, 0.18);
}

.dat-admin-hero {
    background:
        linear-gradient(120deg, rgba(8, 28, 54, 0.98), rgba(15, 76, 129, 0.74)),
        url("../images/hero-freight-yard.png");
    background-size: cover;
    background-position: center;
}

.dat-hero-kicker {
    margin: 0 0 10px;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.72);
}

.dat-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.05rem);
    line-height: 1.08;
    letter-spacing: 0;
}

.dat-hero-summary {
    margin: 12px 0 0;
    max-width: 760px;
    font-size: 1.02rem;
    color: rgba(255, 255, 255, 0.88);
}

.dat-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.dat-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.84rem;
    font-weight: 750;
    color: #fff;
}

.dat-hero-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 220px;
}

.dat-hero-actions .button {
    width: 100%;
    min-height: 48px;
    border-radius: 999px;
}

.dat-hero-actions .button-muted {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.34);
    color: #fff;
}

.dat-hero-actions .button-muted:hover {
    background: rgba(255, 255, 255, 0.24);
}

.dat-workbench-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 20px;
    padding: 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(226, 232, 240, 0.96);
    box-shadow: 0 12px 30px rgba(11, 46, 89, 0.08);
    overflow: auto;
}

.dat-workbench-nav a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 750;
    white-space: nowrap;
}

.dat-workbench-nav a:hover,
.dat-workbench-nav a.is-active {
    background: var(--blue-soft);
    color: var(--blue-dark);
}

.dat-content-stack {
    display: grid;
    gap: 18px;
}

.account-flash-stack,
.admin-flash-stack {
    display: grid;
    gap: 10px;
    margin: 0 0 16px;
}

.account-layout-body .page-hero,
.admin-layout-body .page-hero {
    width: 100%;
    margin: 0;
    padding: 16px 20px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.96);
    box-shadow: 0 10px 26px rgba(11, 46, 89, 0.06);
}

.account-layout-body .page-hero p,
.admin-layout-body .page-hero p {
    margin: 0;
    color: var(--muted);
}

.account-layout-body .compact-hero,
.admin-layout-body .compact-hero {
    padding: 14px 18px;
}

.account-layout-body .compact-hero p,
.admin-layout-body .compact-hero p {
    color: var(--gray-700);
    font-size: 0.96rem;
}

.account-layout-body .section,
.admin-layout-body .section {
    width: 100%;
    margin: 0;
    padding: 24px 26px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.96);
    box-shadow: 0 10px 26px rgba(11, 46, 89, 0.06);
}

.account-layout-body .account-module-links {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.account-layout-body .account-module-links .button {
    border-radius: 999px;
}

.workspace-summary-grid {
    gap: 16px;
}

.workspace-stat,
.workspace-panel,
.detail-panel,
.contact-panel,
.form-panel {
    border-radius: 22px;
    border: 1px solid rgba(226, 232, 240, 0.96);
    background: #fff;
    box-shadow: 0 10px 26px rgba(11, 46, 89, 0.06);
}

.workspace-stat {
    padding: 20px;
}

.workspace-stat span,
.workspace-section-head p,
.workspace-note p,
.workspace-action-row span,
.workspace-inline-meta {
    color: var(--muted);
}

.workspace-section-head h2 {
    color: var(--blue-dark);
}

.workspace-note {
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid rgba(226, 232, 240, 0.96);
}

.workspace-action-row {
    padding: 18px 0;
}

.filter-bar {
    padding: 18px;
    border-radius: 24px;
    background: #fff7ed;
    border: 1px solid rgba(253, 186, 116, 0.55);
    box-shadow: 0 10px 26px rgba(11, 46, 89, 0.06);
}

.filter-bar label {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(253, 186, 116, 0.35);
    border-radius: 16px;
    padding: 12px 14px;
}

.filter-bar input,
.filter-bar select {
    background: #fff;
}

.load-list {
    display: grid;
    gap: 18px;
}

.load-row {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto;
    gap: 22px;
    align-items: start;
    padding: 24px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.96);
    box-shadow: 0 10px 26px rgba(11, 46, 89, 0.06);
}

.load-row h2 {
    margin: 10px 0 8px;
    color: var(--blue-dark);
}

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

.load-row dl div {
    padding: 12px 14px;
    border-radius: 16px;
    background: #f8fafc;
}

.load-row dl dt {
    color: var(--muted);
}

.load-row dl dd {
    color: var(--blue-dark);
}

.status-dot {
    background: var(--blue-soft);
    color: var(--blue-dark);
}

.carrier-load-search {
    margin-bottom: 18px;
    padding: 20px;
    border: 1px solid rgba(253, 186, 116, 0.62);
    border-radius: 24px;
    background: #fff7ed;
    box-shadow: 0 10px 26px rgba(11, 46, 89, 0.06);
}

.carrier-search-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: #c2410c;
    font-size: 1.35rem;
    font-weight: 900;
}

.carrier-search-title span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #f97316;
    font-size: 1rem;
}

.carrier-search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 12px;
    align-items: end;
}

.carrier-search-field {
    display: grid;
    gap: 6px;
}

.carrier-search-field span {
    color: var(--text);
    font-size: 0.94rem;
    font-weight: 850;
}

.carrier-search-field input,
.carrier-search-field select {
    width: 100%;
    min-height: 54px;
    padding: 0 15px;
    color: var(--text);
    background: #fff;
    border: 2px solid #f2c69c;
    border-radius: 14px;
    font-weight: 740;
}

.carrier-search-field input:focus,
.carrier-search-field select:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.16);
    outline: none;
}

.carrier-search-field small {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 650;
}

.carrier-search-field-wide {
    grid-column: span 2;
}

.carrier-search-button {
    min-height: 54px;
    background: #f97316;
    white-space: nowrap;
}

.carrier-search-button:hover {
    background: #c2410c;
    box-shadow: 0 16px 34px rgba(249, 115, 22, 0.24);
}

.carrier-load-tip {
    margin: 0 0 22px;
    padding: 12px 16px;
    color: var(--blue-dark);
    background: rgba(30, 107, 255, 0.06);
    border-radius: 14px;
    font-size: 0.94rem;
    font-weight: 720;
}

.carrier-load-list-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin: 8px 0 14px;
}

.carrier-load-list-head h2 {
    margin: 0;
    color: var(--blue-dark);
    font-size: 1.75rem;
    line-height: 1.2;
}

.carrier-load-list-head p {
    margin: 2px 0 0;
    color: var(--muted);
    font-weight: 720;
}

.carrier-load-list {
    display: grid;
    gap: 18px;
}

.carrier-load-card {
    display: grid;
    grid-template-columns: minmax(0, 1.36fr) minmax(300px, 0.95fr) minmax(180px, auto);
    gap: 24px;
    align-items: center;
    padding: 24px;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.96);
    border-radius: 24px;
    box-shadow: 0 10px 26px rgba(11, 46, 89, 0.06);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.carrier-load-card:hover {
    transform: translateY(-1px);
    border-color: rgba(249, 115, 22, 0.42);
    box-shadow: 0 18px 42px rgba(11, 46, 89, 0.11);
}

.carrier-route-block {
    display: grid;
    gap: 10px;
}

.carrier-place-label {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.carrier-place {
    color: var(--blue-dark);
    font-size: clamp(1.35rem, 2.3vw, 1.75rem);
    font-weight: 920;
    line-height: 1.16;
    letter-spacing: -0.02em;
}

.carrier-distance-line {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #c2410c;
    font-weight: 850;
}

.carrier-distance-line span {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #f97316;
}

.carrier-load-info {
    display: grid;
    gap: 10px;
}

.carrier-info-pill {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid rgba(230, 237, 243, 0.96);
    border-radius: 14px;
}

.carrier-info-pill span {
    color: var(--muted);
    font-weight: 760;
}

.carrier-info-pill strong {
    color: var(--text);
    font-weight: 850;
    text-align: right;
}

.carrier-load-action {
    display: grid;
    justify-items: end;
    text-align: right;
}

.carrier-status {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 7px 12px;
    color: var(--success);
    background: #dcfce7;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 900;
}

.carrier-price {
    margin-bottom: 8px;
    color: var(--success);
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 920;
    line-height: 1;
}

.carrier-price-label {
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 760;
}

.data-table {
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.96);
    box-shadow: 0 10px 26px rgba(11, 46, 89, 0.06);
}

.data-table thead th {
    background: #f8fafc;
    color: var(--blue-dark);
}

.data-table tbody tr:hover {
    background: #f9fbff;
}

.dashboard-grid .dashboard-tile {
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.96);
    box-shadow: 0 10px 26px rgba(11, 46, 89, 0.06);
}

.workspace-form-stack,
.workspace-form-section {
    display: grid;
    gap: 18px;
}

.workspace-form-section-grid {
    gap: 14px;
}

.form-grid label,
.workspace-form-section-grid label,
.list-toolbar label,
.inline-form {
    background: #f8fbff;
    border: 1px solid rgba(212, 222, 234, 0.92);
    border-radius: 16px;
}

.form-panel label,
.detail-panel label,
.contact-panel label {
    display: grid;
    gap: 8px;
}

.form-panel input,
.form-panel select,
.form-panel textarea,
.detail-panel input,
.detail-panel select,
.detail-panel textarea,
.contact-panel input,
.contact-panel select,
.contact-panel textarea {
    border-radius: 12px;
    border: 1px solid #d4deea;
    background: #fff;
}

.form-panel input:focus,
.form-panel select:focus,
.form-panel textarea:focus,
.detail-panel input:focus,
.detail-panel select:focus,
.detail-panel textarea:focus,
.contact-panel input:focus,
.contact-panel select:focus,
.contact-panel textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(30, 107, 255, 0.12);
}

.workspace-upload-preview,
.workspace-file-list,
.workspace-preview-group {
    border-radius: 18px;
    background: #f8fafc;
}

.workspace-preview-grid .document-card {
    border-radius: 16px;
}

@media (max-width: 960px) {
    .dat-topbar-inner,
    .dat-hero,
    .load-row,
    .section,
    .page-hero {
        grid-template-columns: 1fr;
    }

    .dat-topbar-inner {
        align-items: flex-start;
    }

    .dat-topbar-actions {
        justify-content: flex-start;
    }

    .dat-hero-actions {
        min-width: 0;
    }

    .dat-workbench-nav {
        padding: 10px;
    }

    .load-row dl {
        grid-template-columns: 1fr;
    }

    .carrier-search-grid,
    .carrier-load-card {
        grid-template-columns: 1fr;
    }

    .carrier-search-field-wide {
        grid-column: auto;
    }

    .carrier-load-action {
        justify-items: start;
        text-align: left;
    }

    .account-layout-body .account-module-links {
        justify-content: stretch;
    }

    .account-layout-body .account-module-links .button {
        flex: 1 1 0;
    }

    .workspace-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .dat-topbar {
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 10px 28px rgba(11, 46, 89, 0.08);
    }

    .dat-topbar-inner {
        min-height: auto;
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px 14px 9px;
    }

    .dat-brand {
        min-width: 0;
        width: 100%;
        gap: 10px;
    }

    .dat-brand-mark {
        width: 38px;
        height: 38px;
        border-radius: 9px;
        box-shadow: 0 8px 18px rgba(30, 107, 255, 0.18);
    }

    .dat-brand-text {
        min-width: 0;
    }

    .dat-brand-text strong,
    .dat-brand-text small {
        max-width: calc(100vw - 86px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .dat-topbar-actions {
        width: 100%;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 8px;
        overflow-x: auto;
        padding: 2px 0 3px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .dat-topbar-actions::-webkit-scrollbar {
        display: none;
    }

    .dat-lang-switch,
    .dat-notice-link,
    .dat-user-chip,
    .dat-topbar-actions .button-small {
        flex: 0 0 auto;
    }

    .dat-lang-switch {
        min-height: 36px;
        padding: 0 12px;
        gap: 9px;
        border-radius: 999px;
        background: #f8fafc;
        border: 1px solid rgba(226, 232, 240, 0.95);
    }

    .dat-notice-link,
    .dat-topbar-actions .button-small {
        min-height: 36px;
        padding: 0 12px;
        box-shadow: none;
    }

    .dat-user-chip {
        min-height: 36px;
        gap: 7px;
        padding: 4px 8px 4px 4px;
        box-shadow: none;
    }

    .dat-user-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.78rem;
    }

    .dat-user-copy strong {
        max-width: 128px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 0.84rem;
    }

    .dat-user-copy small {
        display: none;
    }

    .dat-status-badge {
        min-height: 24px;
        padding: 0 8px;
        font-size: 0.72rem;
    }

    .dat-shell {
        padding-top: 18px;
    }

    .dat-workbench-nav {
        flex-wrap: nowrap;
        gap: 5px;
        margin: 12px 0 16px;
        padding: 6px;
        border-radius: 16px;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .dat-workbench-nav::-webkit-scrollbar {
        display: none;
    }

    .dat-workbench-nav a {
        min-height: 36px;
        padding: 0 12px;
        border-radius: 12px;
        font-size: 0.9rem;
    }

    .dat-workbench-nav a.is-active {
        background: #fff;
        box-shadow: 0 8px 18px rgba(11, 46, 89, 0.08);
    }
}

@media (max-width: 620px) {
    .workspace-steps {
        grid-template-columns: 1fr;
    }

    .dat-user-copy {
        display: none;
    }

    .dat-status-badge {
        max-width: 96px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

.page-home.site-body,
.page-register.site-body {
    background: #f8fafc;
}

.page-home .site-main,
.page-register .site-main {
    flex: 1 0 auto;
}

.home-entry {
    position: relative;
    min-height: 100svh;
    overflow: hidden;
    color: #fff;
    background-image:
        linear-gradient(90deg, rgba(5, 23, 42, 0.88) 0%, rgba(8, 47, 85, 0.62) 42%, rgba(8, 47, 85, 0.14) 82%),
        url("../images/hero-freight-entry.jpg");
    background-size: cover;
    background-position: center;
}

.home-entry::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 23, 42, 0.04), rgba(5, 23, 42, 0.32));
    pointer-events: none;
}

.home-entry-brand,
.home-language,
.home-entry-actions {
    position: absolute;
    z-index: 1;
}

.home-entry-brand {
    top: clamp(28px, 6vw, 54px);
    left: clamp(22px, 6vw, 66px);
    width: min(620px, calc(100% - 44px));
}

.home-brand-line,
.home-footer-brand,
.register-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.home-brand-mark {
    display: inline-grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: var(--blue);
    font-size: 0.92rem;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(5, 23, 42, 0.2);
}

.home-brand-line strong {
    color: #fff;
    font-size: clamp(1.35rem, 2.5vw, 1.9rem);
    line-height: 1;
}

.home-entry h1 {
    max-width: 620px;
    margin: 24px 0 0;
    color: #fff;
    font-size: clamp(2.25rem, 6vw, 3.8rem);
    line-height: 1.12;
    letter-spacing: 0;
    text-shadow: 0 8px 26px rgba(0, 0, 0, 0.26);
}

.home-entry p {
    max-width: 560px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1.06rem, 2.3vw, 1.35rem);
    font-weight: 720;
    line-height: 1.7;
}

.home-language {
    top: clamp(30px, 6vw, 58px);
    right: clamp(22px, 6vw, 66px);
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.98rem;
    font-weight: 800;
}

.home-language a,
.register-language a {
    color: inherit;
}

.home-language a.is-active,
.register-language a.is-active {
    color: #fff;
}

.home-language span,
.register-language span {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.3);
}

.home-entry-actions {
    right: clamp(22px, 6vw, 66px);
    bottom: clamp(28px, 6vw, 66px);
    display: flex;
    gap: 12px;
}

.home-action,
.register-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 28px;
    border-radius: 999px;
    font-weight: 880;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.home-action:hover,
.register-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(5, 23, 42, 0.2);
}

.home-action-ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.46);
    backdrop-filter: blur(10px);
}

.home-action-primary,
.register-submit {
    color: #fff;
    background: var(--blue);
    border: 0;
}

.home-company-section {
    padding: clamp(58px, 8vw, 88px) clamp(20px, 6vw, 66px);
    background: #f8fafc;
}

.home-section-inner {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.home-company-head {
    max-width: 820px;
}

.home-company-head h2 {
    margin: 0;
    color: var(--blue-dark);
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.1;
}

.home-company-head p:not(.eyebrow) {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.home-company-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 38px;
}

.home-company-item {
    min-height: 230px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(8, 47, 85, 0.06);
}

.home-company-item span {
    color: var(--blue);
    font-weight: 900;
}

.home-company-item h3 {
    margin: 14px 0 12px;
    color: var(--blue-dark);
    font-size: 1.35rem;
    line-height: 1.25;
}

.home-company-item p,
.home-footer p {
    margin: 0;
    color: var(--muted);
}

.home-footer {
    padding: 42px clamp(20px, 6vw, 66px);
    color: #fff;
    background: #071f3a;
}

.home-footer-inner {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 28px;
    align-items: start;
}

.home-footer p,
.home-footer a,
.home-footer span {
    color: rgba(255, 255, 255, 0.68);
}

.home-footer strong {
    color: #fff;
}

.home-footer-links,
.home-footer-contact {
    display: grid;
    gap: 8px;
}

.register-page {
    min-height: 100svh;
    background:
        radial-gradient(circle at top left, rgba(30, 107, 255, 0.08), transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, #f4f7fb 100%);
}

.register-topbar {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px clamp(20px, 5vw, 58px);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    backdrop-filter: blur(16px);
}

.register-brand {
    color: var(--blue-dark);
    font-size: 1.2rem;
    font-weight: 900;
}

.register-top-actions,
.register-language {
    display: flex;
    align-items: center;
    gap: 14px;
}

.register-language {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 780;
}

.register-language a.is-active {
    color: var(--blue-dark);
}

.register-language span {
    background: var(--border);
}

.register-back-link {
    color: var(--blue-dark);
    font-weight: 820;
}

.register-main {
    display: grid;
    place-items: start center;
    padding: clamp(36px, 6vw, 64px) 20px 80px;
}

.register-panel {
    width: min(720px, 100%);
    display: grid;
    gap: 24px;
    padding: clamp(28px, 5vw, 42px);
    border: 1px solid rgba(212, 222, 234, 0.92);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 42px rgba(8, 47, 85, 0.12);
}

.register-panel h1 {
    margin: -10px 0 0;
    color: var(--blue-dark);
    font-size: clamp(2rem, 5vw, 2.7rem);
    line-height: 1.14;
}

.register-intro {
    margin: -12px 0 0;
    color: var(--muted);
    font-size: 1.03rem;
    font-weight: 700;
}

.register-block {
    display: grid;
    gap: 12px;
}

.register-block h2 {
    margin: 0;
    color: var(--text);
    font-size: 1.25rem;
    line-height: 1.25;
}

.register-summary,
.register-location-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border: 2px solid var(--blue);
    border-radius: 16px;
    background: var(--blue-soft);
}

.register-summary.has-error,
.register-field-block.has-error .register-location-summary {
    border-color: #b42318;
    background: #fff7f6;
}

.register-summary-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.register-role-icon {
    display: inline-grid;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 14px;
    color: #c2410c;
    background: #fff7ed;
    font-weight: 900;
}

.register-summary strong,
.register-location-summary strong {
    display: block;
    color: var(--blue-dark);
    font-size: 1.06rem;
    line-height: 1.25;
}

.register-summary p,
.register-location-summary p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.register-pill-button {
    min-height: 38px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    color: var(--blue);
    background: #fff;
    box-shadow: 0 8px 22px rgba(8, 47, 85, 0.08);
    font-weight: 850;
    white-space: nowrap;
}

.register-options {
    display: none;
    gap: 10px;
}

.register-options.is-open {
    display: grid;
}

.register-option {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 16px;
    border: 2px solid var(--border);
    border-radius: 14px;
    color: var(--text);
    background: #fff;
    text-align: left;
    cursor: pointer;
}

.register-option.is-active {
    border-color: var(--blue);
    background: var(--blue-soft);
}

.register-option strong,
.register-option small {
    display: block;
}

.register-option small {
    margin-top: 3px;
    color: var(--muted);
    font-weight: 700;
}

.register-option em {
    display: grid;
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    place-items: center;
    border: 2px solid var(--border);
    border-radius: 50%;
    color: transparent;
    font-style: normal;
    font-size: 0.85rem;
    font-weight: 900;
}

.register-option.is-active em {
    color: #fff;
    border-color: var(--blue);
    background: var(--blue);
}

.register-fields {
    display: grid;
    gap: 16px;
}

.register-fields label,
.register-field-block {
    display: grid;
    gap: 8px;
    color: var(--blue-dark);
    font-size: 0.94rem;
    font-weight: 800;
}

.register-fields input {
    min-height: 54px;
    border-radius: 12px;
    border: 2px solid #dbe6ef;
    font-weight: 680;
}

.register-field-label {
    color: var(--blue-dark);
}

.register-role-note {
    display: grid;
    gap: 4px;
    padding: 16px 18px;
    border: 1px solid #fed7aa;
    border-radius: 16px;
    color: #9a3412;
    background: #fff7ed;
    font-weight: 720;
}

.register-role-note strong {
    color: #c2410c;
}

.register-submit {
    width: 100%;
    min-height: 60px;
    font-size: 1.08rem;
    cursor: pointer;
}

.register-login-note {
    margin: -6px 0 0;
    color: var(--muted);
    text-align: center;
    font-weight: 700;
}

.register-login-note a {
    color: var(--blue);
    font-weight: 900;
}

@media (max-width: 820px) {
    .home-language {
        top: auto;
        right: 24px;
        bottom: 106px;
    }

    .home-entry-actions {
        left: 24px;
        right: 24px;
        bottom: 30px;
    }

    .home-action {
        flex: 1 1 0;
        padding: 0 18px;
    }

    .home-company-grid,
    .home-footer-inner {
        grid-template-columns: 1fr;
    }

    .register-topbar,
    .register-top-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .register-language {
        display: flex;
    }

    .register-top-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .register-summary,
    .register-location-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .register-pill-button {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .home-entry-brand {
        top: 24px;
        left: 18px;
        width: calc(100% - 36px);
    }

    .home-brand-mark {
        width: 44px;
        height: 44px;
    }

    .home-entry h1 {
        font-size: clamp(2rem, 11vw, 2.7rem);
    }

    .home-language {
        right: 18px;
        bottom: 96px;
    }

    .home-entry-actions {
        left: 18px;
        right: 18px;
        bottom: 24px;
    }

    .register-main {
        padding: 28px 16px 56px;
    }

    .register-panel {
        border-radius: 16px;
    }
}

/* Unified transient notices */
.flash-stack,
.account-flash-stack,
.admin-flash-stack {
    position: fixed;
    top: calc(var(--header-height) + 16px);
    right: 20px;
    z-index: 80;
    display: grid;
    gap: 10px;
    width: min(390px, calc(100% - 40px));
    margin: 0;
    padding: 0;
    pointer-events: none;
}

.toast,
.flash {
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 15px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-left: 4px solid var(--blue);
    border-radius: 10px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 38px rgba(11, 46, 89, 0.14);
    backdrop-filter: blur(14px);
    font-size: 0.94rem;
    font-weight: 760;
    line-height: 1.45;
}

.toast {
    position: fixed;
    top: calc(var(--header-height) + 16px);
    right: 20px;
    bottom: auto;
    z-index: 85;
    width: min(390px, calc(100% - 40px));
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
}

.toast::before,
.flash::before {
    content: "";
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--blue);
    box-shadow: 0 0 0 4px rgba(30, 107, 255, 0.12);
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.flash {
    animation: notice-in 180ms ease both;
}

.flash-countdown {
    margin-left: auto;
    padding-left: 10px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 820;
    white-space: nowrap;
}

.flash-success {
    border-left-color: var(--success);
}

.flash-success::before {
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.flash-error {
    border-left-color: #b42318;
}

.flash-error::before {
    background: #b42318;
    box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.12);
}

.toast.is-leaving,
.flash.is-leaving {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    transition: opacity 180ms ease, transform 180ms ease;
}

@keyframes notice-in {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 620px) {
    .flash-stack,
    .account-flash-stack,
    .admin-flash-stack,
    .toast {
        top: calc(var(--header-height) + 10px);
        right: 14px;
        width: calc(100% - 28px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .toast,
    .flash,
    .toast.is-leaving,
    .flash.is-leaving {
        animation: none;
        transition: none;
    }
}

.dat-notice-link {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 13px;
    border-radius: 999px;
    color: var(--blue-dark);
    background: rgba(30, 107, 255, 0.08);
    font-size: 0.92rem;
    font-weight: 800;
}

.dat-notice-link span {
    min-width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    padding: 0 6px;
    border-radius: 999px;
    color: #fff;
    background: #b42318;
    font-size: 0.74rem;
    line-height: 1;
}

.notification-list {
    display: grid;
    gap: 10px;
}

.notification-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
    padding: 14px 16px;
    border: 1px solid rgba(226, 232, 240, 0.96);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(11, 46, 89, 0.06);
}

.notification-item.is-unread {
    border-color: rgba(30, 107, 255, 0.3);
    background: #f8fbff;
}

.notification-dot {
    width: 10px;
    height: 10px;
    margin-top: 8px;
    border-radius: 999px;
    background: var(--border);
}

.notification-item.is-unread .notification-dot {
    background: var(--blue);
    box-shadow: 0 0 0 4px rgba(30, 107, 255, 0.12);
}

.notification-copy {
    display: grid;
    gap: 4px;
}

.notification-copy strong {
    color: var(--blue-dark);
    font-size: 0.98rem;
}

.notification-copy small {
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 650;
}

.notification-copy em {
    color: var(--muted);
    font-size: 0.84rem;
    font-style: normal;
}

.check-option {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid rgba(226, 232, 240, 0.96);
    border-radius: 10px;
    color: var(--blue-dark);
    background: #fff;
    font-weight: 780;
}

.check-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--blue);
}

.carrier-search-check {
    justify-content: center;
}

.carrier-search-check input {
    width: 20px;
    height: 20px;
    margin: 6px 0 0;
    accent-color: var(--blue);
}

.carrier-load-search .address-suggestions {
    top: calc(100% + 4px);
}

.urgent-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    margin-left: 8px;
    padding: 0 8px;
    border-radius: 999px;
    color: #9a3412;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 850;
    white-space: nowrap;
}

.lead-board {
    display: grid;
    gap: 18px;
}

.lead-board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}

.lead-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(226, 232, 240, 0.96);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(11, 46, 89, 0.06);
}

.lead-card-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

.lead-card-head p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 650;
}

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

.lead-metrics div {
    display: grid;
    gap: 3px;
    padding: 10px;
    border-radius: 10px;
    background: #f8fafc;
}

.lead-metrics span,
.lead-detail-list dt {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.lead-metrics strong {
    color: var(--blue-dark);
    font-size: 0.96rem;
}

.lead-detail-list {
    display: grid;
    gap: 8px;
    margin: 0;
}

.lead-detail-list div {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 10px;
}

.lead-detail-list dd {
    margin: 0;
    color: var(--text);
    font-weight: 700;
}

.lead-message {
    padding: 12px;
    border-radius: 10px;
    background: #f8fafc;
}

.lead-message strong {
    color: var(--blue-dark);
    font-size: 0.88rem;
}

.lead-message p {
    margin: 4px 0 0;
    color: var(--text);
}

.lead-action-form {
    display: grid;
    grid-template-columns: minmax(120px, 0.65fr) minmax(180px, 1fr) auto auto;
    gap: 8px;
    align-items: center;
}

.lead-action-form select,
.lead-action-form input {
    width: 100%;
    min-height: 38px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0 10px;
}

.recommended-loads {
    display: grid;
    gap: 18px;
}

.recommended-load-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 14px;
}

.recommended-load-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(226, 232, 240, 0.96);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(11, 46, 89, 0.06);
}

.recommended-load-card h3,
.recommended-load-card p {
    margin: 0;
}

.recommended-load-card h3 {
    color: var(--blue-dark);
    font-size: 1rem;
}

.recommended-load-card p {
    color: var(--text);
    font-weight: 760;
}

.recommended-load-card dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

.recommended-load-card dl div {
    display: grid;
    gap: 2px;
    padding: 8px;
    border-radius: 8px;
    background: #f8fafc;
}

.recommended-load-card dt {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 800;
}

.recommended-load-card dd {
    margin: 0;
    color: var(--blue-dark);
    font-size: 0.9rem;
    font-weight: 820;
}

.saved-filter-panel {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(226, 232, 240, 0.96);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(11, 46, 89, 0.06);
}

.saved-filter-form {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto;
    gap: 10px;
}

.saved-filter-form input[type="text"] {
    width: 100%;
    min-height: 38px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0 12px;
}

.saved-filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.saved-filter-chip {
    display: inline-flex;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid rgba(30, 107, 255, 0.16);
    border-radius: 999px;
    background: var(--blue-soft);
}

.saved-filter-chip a {
    display: grid;
    gap: 1px;
    padding: 7px 12px 7px 14px;
}

.saved-filter-chip strong {
    color: var(--blue-dark);
    font-size: 0.88rem;
    line-height: 1.2;
}

.saved-filter-chip span {
    max-width: 320px;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.saved-filter-chip form {
    display: flex;
}

.saved-filter-chip button {
    width: 34px;
    border: 0;
    border-left: 1px solid rgba(30, 107, 255, 0.14);
    color: var(--blue-dark);
    background: transparent;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 900;
}

@media (max-width: 720px) {
    .lead-action-form {
        grid-template-columns: 1fr;
    }

    .saved-filter-form {
        grid-template-columns: 1fr;
    }
}
