@font-face {
  font-family: "LINE Seed Sans TH";
  src: local("LINE Seed Sans TH"), local("LINESeedSansTH"), url("fonts/LINESeedSansTH_W_Rg.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "LINE Seed Sans TH";
  src: local("LINE Seed Sans TH Bold"), local("LINESeedSansTH-Bold"), url("fonts/LINESeedSansTH_W_Bd.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #17231e;
  --ink-2: #24362e;
  --forest: #143c30;
  --forest-2: #1f5b46;
  --green: #2e7d5c;
  --lime: #cbe85b;
  --lime-soft: #eff7ca;
  --orange: #e87839;
  --orange-soft: #fff0e5;
  --amber: #c98b16;
  --amber-soft: #fff7d9;
  --blue: #3976b8;
  --blue-soft: #eaf3fd;
  --red: #c95650;
  --red-soft: #feeeee;
  --violet: #8060ad;
  --canvas: #f3f1e9;
  --paper: #fbfaf5;
  --white: #fff;
  --line: #e4e1d7;
  --muted: #768079;
  --muted-2: #9aa19c;
  --shadow: 0 16px 40px rgba(33, 48, 40, 0.07);
  --sidebar: 252px;
  --radius: 18px;
  font-family: "LINE Seed Sans TH", "Noto Sans Thai", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; overflow-x: hidden; background: var(--canvas); color: var(--ink); }
button, input, textarea { font: inherit; }
button { color: inherit; }
button, [data-nav], [data-action] { cursor: pointer; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
h1, h2, h3, h4, p { margin: 0; }
small { color: var(--muted); }
[hidden] { display: none !important; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; width: var(--sidebar); padding: 22px 14px 15px; background: var(--ink); color: #e8eee9; display: flex; flex-direction: column; overflow-y: auto; }
.brand { height: 46px; padding: 0 8px; display: flex; align-items: center; gap: 11px; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--ink); background: var(--lime); transform: rotate(-4deg); }
.brand-mark svg { width: 22px; height: 22px; stroke-width: 2.2; }
.brand > span:nth-child(2) { display: flex; flex-direction: column; line-height: 1; }
.brand strong { font-size: 20px; letter-spacing: -0.5px; color: white; }
.brand small { margin-top: 5px; font-size: 7px; letter-spacing: 2.1px; color: #91a299; }
.sidebar-close { display: none !important; margin-left: auto; color: white !important; }
.workspace-pill { margin: 19px 0 15px; padding: 11px; display: flex; align-items: center; gap: 9px; border: 1px solid #34473e; border-radius: 14px; background: #202e28; }
.workspace-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: #f5ead7; color: #514433; font-size: 10px; font-weight: 800; }
.workspace-pill > span:nth-child(2) { min-width: 0; display: flex; flex: 1; flex-direction: column; }
.workspace-pill small { color: #8c9b93; font-size: 9px; }
.workspace-pill strong { overflow: hidden; color: #eff4f0; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.workspace-pill > svg { width: 13px; height: 13px; transform: rotate(90deg); color: #8d9a94; }
.primary-nav { flex: 1; }
.nav-label { margin: 19px 10px 7px; font-size: 9px; font-weight: 700; letter-spacing: 1.35px; text-transform: uppercase; color: #75867d; }
.nav-item { position: relative; width: 100%; min-height: 42px; margin: 2px 0; padding: 0 11px; border: 0; border-radius: 11px; background: transparent; color: #a9b7af; display: flex; align-items: center; gap: 12px; text-align: left; transition: 160ms ease; }
.nav-item svg { width: 18px; height: 18px; }
.nav-item span { flex: 1; font-size: 12px; font-weight: 600; }
.nav-item:hover { color: white; background: #22322b; }
.nav-item.active { color: #f9ffe4; background: #29463a; box-shadow: inset 3px 0 var(--lime); }
.nav-item.active svg { color: var(--lime); }
.nav-count { min-width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: var(--lime); font-size: 9px; }
.nav-dot { width: 7px; height: 7px; border-radius: 50%; background: #f59454; box-shadow: 0 0 0 3px #4d382c; }
.sidebar-foot { margin-top: 18px; padding: 13px 10px; border-top: 1px solid #344139; display: flex; gap: 9px; align-items: center; }
.demo-badge { padding: 4px 6px; border-radius: 5px; background: var(--lime); color: var(--ink); font-size: 8px; font-weight: 900; letter-spacing: .7px; }
.sidebar-foot div { display: flex; flex-direction: column; }
.sidebar-foot strong { color: #dbe3de; font-size: 10px; }
.sidebar-foot small { font-size: 8px; color: #78877f; }
.sidebar-scrim { display: none; }

.main-content { min-height: 100vh; margin-left: var(--sidebar); }
.topbar { position: sticky; top: 0; z-index: 30; height: 74px; padding: 0 32px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; background: rgba(251, 250, 245, .91); backdrop-filter: blur(16px); }
.topbar-title { display: flex; align-items: center; gap: 12px; }
.topbar-title p { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; }
.topbar-title h1 { margin-top: 2px; font-size: 18px; line-height: 1.2; }
.menu-button { display: none !important; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.search-trigger { width: 226px; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: #f7f6f0; display: flex; align-items: center; gap: 8px; }
.search-trigger svg { width: 16px; height: 16px; }
.search-trigger span { flex: 1; font-size: 10px; text-align: left; }
.search-trigger kbd { padding: 2px 5px; border: 1px solid #dad8d0; border-radius: 4px; background: white; color: #90958f; font-size: 8px; box-shadow: 0 1px 1px #ddd; }
.icon-button { width: 38px; height: 38px; padding: 0; border: 0; border-radius: 10px; display: grid; place-items: center; background: transparent; }
.icon-button:hover { background: #eeece3; }
.notification-button { position: relative; color: #56625b; }
.notification-button i { position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border: 2px solid var(--paper); border-radius: 50%; background: var(--orange); }
.profile-menu { height: 42px; margin-left: 2px; padding-left: 10px; border-left: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.profile-menu > span:nth-child(2) { display: flex; flex-direction: column; }
.profile-menu strong { font-size: 10px; }
.profile-menu small { font-size: 8px; }
.profile-menu > svg { width: 12px; height: 12px; transform: rotate(90deg); color: #89918c; }
.avatar { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #dfe9d6; color: var(--forest); font-size: 10px; font-weight: 800; }
.avatar-dark { background: var(--forest); color: var(--lime-soft); }
.avatar.coral { background: #f9ddd1; color: #913f29; }
.avatar.blue { background: #dce9f8; color: #275d98; }

.demo-ribbon { min-height: 38px; padding: 7px 32px; display: flex; align-items: center; gap: 12px; color: #38453e; background: var(--lime-soft); border-bottom: 1px solid #dce8a9; }
.demo-ribbon > span { padding: 4px 7px; border-radius: 6px; background: var(--forest); color: white; font-size: 8px; font-weight: 800; letter-spacing: .5px; }
.demo-ribbon p { flex: 1; font-size: 9px; }
.demo-ribbon button { width: 25px; height: 25px; padding: 0; border: 0; background: none; color: #66705e; }
.demo-ribbon svg { width: 14px; height: 14px; }

.panel { display: none; max-width: 1440px; margin: 0 auto; padding: 30px 32px 54px; animation: panel-in 240ms ease both; }
.panel.active { display: block; }
@keyframes panel-in { from { opacity: 0; transform: translateY(5px); } }
.page-intro { margin-bottom: 23px; display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; }
.page-intro h2 { margin: 8px 0 3px; font-size: 26px; letter-spacing: -.6px; }
.page-intro p { color: var(--muted); font-size: 11px; }
.page-intro.compact { align-items: center; }
.page-intro.compact h2 { margin-top: 5px; }
.section-kicker { color: var(--green); font-size: 8px; font-weight: 900; letter-spacing: 1.6px; }
.today-pill { width: max-content; padding: 5px 9px; border-radius: 99px; display: flex; align-items: center; gap: 6px; background: #e9eadf; color: #697069; font-size: 8px; font-weight: 700; }
.today-pill span { width: 6px; height: 6px; border-radius: 50%; background: #65a65f; box-shadow: 0 0 0 3px #d6e4ce; }
.intro-actions { display: flex; gap: 8px; }
.button { min-height: 38px; padding: 0 14px; border: 1px solid transparent; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 10px; font-weight: 700; transition: 150ms ease; }
.button:hover { transform: translateY(-1px); }
.button svg { width: 15px; height: 15px; }
.button.primary { background: var(--forest); color: white; box-shadow: 0 6px 14px rgba(20, 60, 48, .16); }
.button.primary:hover { background: #0c4b36; }
.button.ghost { border-color: var(--line); background: var(--paper); color: #56625b; }
.button.danger { border-color: #e7b8b3; background: #fff7f6; color: var(--red); }
.button.small { min-height: 31px; padding: 0 10px; font-size: 9px; }

.stat-grid { margin-bottom: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat-grid.three { grid-template-columns: repeat(3, 1fr); }
.stat-card { min-width: 0; min-height: 135px; padding: 17px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 8px 24px rgba(49, 64, 56, .035); }
.stat-card.accent { border-color: #dfcd91; background: #fff9e5; }
.stat-head { margin-bottom: 13px; display: flex; align-items: center; justify-content: space-between; }
.stat-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; }
.stat-icon svg { width: 16px; height: 16px; }
.stat-icon.green { background: #e4eee2; color: #347452; }
.stat-icon.orange { background: var(--orange-soft); color: var(--orange); }
.stat-icon.yellow { background: var(--amber-soft); color: var(--amber); }
.stat-icon.blue { background: var(--blue-soft); color: var(--blue); }
.trend { padding: 3px 6px; border-radius: 6px; font-size: 8px; font-weight: 800; }
.trend.positive { background: #e8f2e4; color: #4c7b49; }
.stat-link { color: var(--green); font-size: 8px; font-weight: 700; cursor: pointer; }
.stat-card > p { color: var(--muted); font-size: 9px; }
.stat-card h3 { margin: 5px 0 3px; font-size: 24px; letter-spacing: -.5px; }
.stat-card h3 em { color: var(--muted); font-size: 10px; font-style: normal; font-weight: 600; }
.stat-card > small { font-size: 8px; }

.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.card-header { padding: 18px 19px 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.card-header h3 { font-size: 13px; }
.card-header p { margin-top: 3px; color: var(--muted); font-size: 9px; }
.text-button { padding: 3px; border: 0; display: inline-flex; align-items: center; gap: 5px; background: none; color: var(--green); font-size: 9px; font-weight: 800; }
.text-button svg { width: 13px; height: 13px; }
.dashboard-grid { margin-bottom: 18px; display: grid; grid-template-columns: 1.55fr 1fr; gap: 14px; }
.spending-card { min-height: 282px; }
.legend { display: flex; gap: 14px; color: var(--muted); font-size: 8px; }
.legend span { display: flex; align-items: center; gap: 5px; }
.legend i { width: 7px; height: 7px; border-radius: 2px; background: #d7d8d1; }
.legend i.legend-current { background: var(--forest); }
.chart-wrap { height: 207px; padding: 5px 20px 17px; display: grid; grid-template-columns: 27px 1fr; gap: 10px; }
.y-axis { height: 158px; display: flex; flex-direction: column; justify-content: space-between; color: var(--muted-2); font-size: 7px; }
.chart-bars { height: 173px; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to bottom, #e9e7df 0 1px, transparent 1px 52px); display: grid; grid-template-columns: repeat(8, 1fr); align-items: end; gap: 9px; }
.chart-bars > div { position: relative; height: 100%; display: flex; align-items: end; justify-content: center; gap: 3px; }
.chart-bars i { width: 65%; height: var(--new); border-radius: 5px 5px 1px 1px; background: linear-gradient(#2f654f, var(--forest)); box-shadow: -5px 0 0 #d8d9d2; }
.chart-bars span { position: absolute; bottom: -16px; color: var(--muted); font-size: 7px; }
.approvals-card { min-height: 282px; }
.approval-list { padding: 0 13px 12px; }
.approval-list button { width: 100%; min-height: 64px; padding: 9px 6px; border: 0; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; background: none; text-align: left; }
.approval-list button:hover { background: #f6f5ef; }
.approval-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; }
.approval-icon svg { width: 16px; height: 16px; }
.approval-icon.amber { color: var(--amber); background: var(--amber-soft); }
.approval-icon.violet { color: var(--violet); background: #f1eafa; }
.approval-icon.blue { color: var(--blue); background: var(--blue-soft); }
.approval-list button > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.approval-list strong { font-size: 10px; }
.approval-list small { margin-top: 2px; font-size: 8px; }
.approval-list b { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #f0eee7; font-size: 9px; }
.approval-list button > svg { width: 12px; height: 12px; color: #9ca29e; }
.recent-trips { margin-bottom: 16px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th { height: 37px; padding: 0 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f5f4ee; color: #868e88; font-size: 8px; font-weight: 700; text-align: left; }
td { height: 66px; padding: 7px 14px; border-bottom: 1px solid #ece9e2; color: #48534d; font-size: 9px; }
tr:last-child td { border-bottom: 0; }
td strong { color: var(--ink); font-size: 9px; }
td small { display: block; margin-top: 2px; font-size: 7px; }
.trip-id { padding: 0; border: 0; background: none; color: var(--forest); font-size: 9px; font-weight: 800; }
.person-cell, .route-cell { display: flex; align-items: center; gap: 8px; }
.person-cell > span:nth-child(2), .route-cell > span:nth-child(2) { display: flex; flex-direction: column; }
.person-cell .avatar { width: 29px; height: 29px; font-size: 8px; }
.route-mini { position: relative; width: 12px; height: 27px; border-left: 1px dotted #a7aea9; }
.route-mini i, .route-mini b { position: absolute; left: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.route-mini i { top: 0; }
.route-mini b { bottom: 0; background: var(--orange); }
.status { width: max-content; padding: 4px 7px; border-radius: 99px; display: inline-flex; align-items: center; font-size: 7px; font-weight: 800; }
.status-pending { color: #9d6d12; background: var(--amber-soft); }
.status-approved { color: #397254; background: #e5f0e7; }
.status-rejected { color: #a3433e; background: var(--red-soft); }
.status-waiting { color: #32669b; background: var(--blue-soft); }
.status-paid { color: #506059; background: #e9ecea; }
.row-action { width: 25px; height: 25px; padding: 0; border: 1px solid var(--line); border-radius: 7px; display: grid; place-items: center; background: white; }
.row-action svg { width: 12px; height: 12px; }
.capacity-strip { padding: 13px 16px; border: 1px solid #d8dfca; border-radius: 14px; display: flex; align-items: center; gap: 12px; background: #f4f7e9; }
.capacity-icon { width: 35px; height: 35px; border-radius: 9px; display: grid; place-items: center; color: var(--forest); background: #dfe9bd; }
.capacity-icon svg { width: 17px; }
.capacity-strip div { flex: 1; }
.capacity-strip strong { font-size: 10px; }
.capacity-strip p { color: #687161; font-size: 8px; }
.health { display: flex; align-items: center; gap: 5px; color: #4b7254; font-size: 8px; font-weight: 700; }
.health i { width: 7px; height: 7px; border-radius: 50%; background: #63a167; box-shadow: 0 0 0 3px #d6e6ce; }

.filter-bar { margin-bottom: 13px; padding: 11px; border: 1px solid var(--line); border-radius: 15px; display: flex; align-items: center; gap: 9px; background: var(--paper); }
.search-field { min-width: 230px; flex: 1; height: 37px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; display: flex; align-items: center; gap: 7px; background: white; }
.search-field svg, .compact-search svg { width: 15px; height: 15px; color: var(--muted); }
.search-field input, .compact-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 9px; }
.filter-chips { display: flex; gap: 4px; }
.filter-chips button { height: 31px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 8px; font-weight: 700; white-space: nowrap; }
.filter-chips button b { margin-left: 3px; color: #9ea49f; }
.filter-chips button.active { color: white; background: var(--forest); }
.filter-chips button.active b { color: var(--lime); }
.filter-more { min-height: 34px; white-space: nowrap; }
.table-card { overflow: hidden; }
.table-meta { height: 40px; padding: 0 15px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 8px; }
.table-meta strong { color: var(--ink); }
.empty-state { padding: 55px 20px; text-align: center; }
.empty-state svg { width: 30px; height: 30px; color: var(--muted); }
.empty-state h3 { margin-top: 8px; font-size: 13px; }
.empty-state p { color: var(--muted); font-size: 9px; }
.workflow-grid { margin-top: 15px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.mini-info { min-height: 80px; padding: 13px; border: 1px dashed #d6d4ca; border-radius: 13px; display: flex; gap: 10px; background: rgba(251,250,245,.55); }
.mini-info > span { color: var(--orange); font-size: 8px; font-weight: 900; }
.mini-info strong { font-size: 9px; }
.mini-info p { margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.5; }

.notice { min-height: 61px; margin-bottom: 15px; padding: 11px 14px; border-radius: 14px; display: flex; align-items: center; gap: 11px; }
.notice > svg { width: 22px; height: 22px; flex: 0 0 auto; }
.notice > div { flex: 1; }
.notice strong { font-size: 10px; }
.notice p { margin-top: 2px; font-size: 8px; }
.notice.warning { border: 1px solid #ebd697; background: #fff8dd; color: #765919; }
.notice.info { border: 1px solid #cfe1d7; background: #edf6f0; color: #315e4a; }
.payments-layout { display: grid; grid-template-columns: 1.6fr .85fr; gap: 14px; }
.payment-list { padding: 0 16px 10px; }
.payment-row { min-height: 67px; padding: 9px 2px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 34px minmax(125px, 1.3fr) minmax(90px, .7fr) auto auto; align-items: center; gap: 9px; }
.payment-person { display: flex; flex-direction: column; }
.payment-row strong { font-size: 9px; }
.payment-row small { font-size: 7px; }
.payment-row > div:nth-child(3) { display: flex; flex-direction: column; }
.payment-history { align-self: start; }
.timeline-list { padding: 0 17px 13px; }
.timeline-list > div { min-height: 55px; display: flex; gap: 10px; position: relative; }
.timeline-list > div:not(:last-child)::after { content: ""; position: absolute; top: 21px; left: 6px; bottom: 0; border-left: 1px dashed #cbd2ca; }
.timeline-list i { position: relative; z-index: 1; width: 13px; height: 13px; margin-top: 4px; border: 3px solid #cfe0d1; border-radius: 50%; background: var(--green); }
.timeline-list span { display: flex; flex-direction: column; }
.timeline-list strong { font-size: 9px; }
.timeline-list small { font-size: 7px; }
.scope-anchor { margin-top: 14px; padding: 12px 15px; border-left: 3px solid var(--green); display: flex; flex-direction: column; background: #eaf1e7; }
.scope-anchor strong { font-size: 9px; }
.scope-anchor span { color: var(--muted); font-size: 8px; }

.fleet-summary { margin-bottom: 15px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.fleet-summary article { min-height: 96px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); display: flex; align-items: center; gap: 13px; background: var(--paper); }
.fleet-illustration { width: 51px; height: 51px; border-radius: 14px; display: grid; place-items: center; color: var(--green); background: #e2eee4; }
.fleet-illustration.driver { color: var(--blue); background: var(--blue-soft); }
.fleet-illustration.rate { color: var(--orange); background: var(--orange-soft); }
.fleet-illustration svg { width: 26px; height: 26px; }
.fleet-summary article div { display: flex; flex-direction: column; }
.fleet-summary small { font-size: 8px; }
.fleet-summary strong { margin-top: 2px; font-size: 18px; }
.fleet-summary p { color: var(--muted); font-size: 7px; }
.fleet-summary p i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #5b9b67; }
.compact-search { width: 180px; height: 32px; padding: 0 9px; border: 1px solid var(--line); border-radius: 9px; display: flex; align-items: center; gap: 6px; background: white; }
.vehicle-grid { padding: 2px 17px 17px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.vehicle-card { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.vehicle-top { display: flex; align-items: center; justify-content: space-between; }
.vehicle-type { padding: 4px 7px; border-radius: 6px; background: #f0efe8; color: var(--muted); font-size: 7px; font-weight: 800; }
.big-truck { width: 65px; height: 45px; margin: 13px 0 5px; color: var(--green); stroke-width: 1.3; }
.orange-truck { color: var(--orange); }
.blue-truck { color: var(--blue); }
.vehicle-card h3 { font-size: 17px; }
.vehicle-card > p { margin: 2px 0 11px; color: var(--muted); font-size: 8px; }
.assigned { padding: 9px 0; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.assigned .avatar { width: 28px; height: 28px; font-size: 8px; }
.assigned > span:nth-child(2) { display: flex; flex-direction: column; }
.assigned small { font-size: 7px; }
.assigned strong { font-size: 8px; }
.vehicle-rate { padding-top: 8px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; font-size: 8px; }
.vehicle-rate span { color: var(--muted); }
.vehicle-rate strong { color: var(--green); }

.formula-grid { margin-bottom: 15px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.formula-card { position: relative; min-height: 186px; padding: 17px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.formula-card.active { border-color: #8eb49f; box-shadow: inset 0 3px var(--green); }
.formula-card h3 { margin: 13px 0 11px; font-size: 12px; }
.formula-no { color: var(--green); font-size: 8px; font-weight: 900; letter-spacing: .8px; }
.formula { min-height: 38px; padding: 7px; border-radius: 9px; display: flex; align-items: center; justify-content: center; gap: 6px; background: #eeeee8; }
.formula strong { padding: 4px 6px; border-radius: 5px; background: white; font-size: 8px; }
.formula b { color: var(--orange); }
.formula-card > p { margin: 10px 0; color: var(--muted); font-size: 8px; }
.formula-card > p b { color: var(--ink); }
.formula-tag { padding: 4px 6px; border-radius: 6px; color: #527158; background: #e8f0e5; font-size: 7px; }
.rate-table { padding-bottom: 9px; }
.rate-row { min-height: 47px; padding: 0 19px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1.3fr .65fr 1fr 1fr .8fr; align-items: center; color: #4f5b54; font-size: 8px; }
.rate-row.header { min-height: 34px; background: #f5f4ee; color: var(--muted); font-weight: 700; }
.rate-row > span:first-child { display: flex; align-items: center; gap: 7px; }
.vehicle-dot { width: 8px; height: 8px; border-radius: 3px; }
.vehicle-dot.green { background: var(--green); }
.vehicle-dot.orange { background: var(--orange); }
.vehicle-dot.blue { background: var(--blue); }
.immutable-note { margin-top: 12px; padding: 12px 14px; border-radius: 12px; display: flex; gap: 9px; color: #5c675f; background: #e9e8e0; }
.immutable-note svg { width: 17px; flex: 0 0 auto; color: var(--green); }
.immutable-note p { font-size: 8px; line-height: 1.5; }

.report-filters { margin-bottom: 13px; padding: 12px; border: 1px solid var(--line); border-radius: 15px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; background: var(--paper); }
.report-filters label { display: flex; flex-direction: column; gap: 4px; }
.report-filters label > span { color: var(--muted); font-size: 7px; font-weight: 700; }
.report-filters button, .report-filters input { height: 34px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; display: flex; align-items: center; justify-content: space-between; background: white; color: var(--ink); font-size: 8px; text-align: left; }
.report-filters button svg { width: 11px; transform: rotate(90deg); }
.report-hero { min-height: 160px; margin-bottom: 14px; padding: 24px 28px; border-radius: var(--radius); display: grid; grid-template-columns: 1fr 135px 1fr; align-items: center; gap: 20px; background: var(--forest); color: white; overflow: hidden; }
.report-hero > div:first-child > span { color: #aabeb4; font-size: 8px; }
.report-hero h2 { margin: 3px 0 5px; font-size: 29px; color: #f3f8e8; }
.report-hero p { color: #9fb2a9; font-size: 8px; }
.report-hero p b { color: var(--lime); }
.report-donut { width: 111px; height: 111px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--lime) 0 84%, #315a4a 84%); position: relative; }
.report-donut::before { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: var(--forest); }
.report-donut span { position: relative; display: flex; flex-direction: column; align-items: center; }
.report-donut strong { font-size: 20px; }
.report-donut small { color: #9fb2a9; font-size: 7px; }
.report-split p { min-height: 40px; border-bottom: 1px solid #365a4b; display: grid; grid-template-columns: 9px 1fr auto; align-items: center; gap: 7px; font-size: 8px; }
.report-split p:last-child { border-bottom: 0; }
.report-split i { width: 7px; height: 7px; border-radius: 2px; }
.paid-dot { background: var(--lime); }
.wait-dot { background: var(--orange); }
.report-split span { color: #aabeb4; }
.report-split strong { font-size: 11px; }
.horizontal-chart { padding: 0 20px 17px; }
.horizontal-chart div { min-height: 38px; display: grid; grid-template-columns: 70px 1fr 65px; align-items: center; gap: 9px; font-size: 8px; }
.horizontal-chart i { height: 7px; border-radius: 99px; background: #ebeae3; overflow: hidden; }
.horizontal-chart i b { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.horizontal-chart strong { text-align: right; }
.leaderboard { margin: 0; padding: 0 17px 14px; list-style: none; }
.leaderboard li { min-height: 53px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 20px 30px 1fr auto; align-items: center; gap: 8px; }
.leaderboard li > b { color: var(--orange); font-size: 10px; }
.leaderboard .avatar { width: 28px; height: 28px; font-size: 8px; }
.leaderboard li > span:nth-child(3) { display: flex; flex-direction: column; }
.leaderboard strong { font-size: 9px; }
.leaderboard small { font-size: 7px; }
.leaderboard em { color: var(--green); font-size: 9px; font-style: normal; font-weight: 800; }

.role-grid { margin-bottom: 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.role-card { min-height: 143px; padding: 15px; border: 1px solid var(--line); border-radius: 15px; display: flex; flex-direction: column; gap: 9px; background: var(--paper); }
.role-card.super { color: white; background: var(--forest); }
.role-icon { width: 31px; height: 31px; border-radius: 9px; display: grid; place-items: center; color: var(--green); background: #e4eee5; }
.super .role-icon { color: var(--lime); background: #2c5a49; }
.role-icon svg { width: 16px; }
.role-card h3 { font-size: 10px; }
.role-card p { margin-top: 2px; color: var(--muted); font-size: 7px; line-height: 1.45; }
.role-card.super p { color: #aabeb4; }
.role-card > strong { margin-top: auto; color: var(--green); font-size: 8px; }
.role-card.super > strong { color: var(--lime); }
.users-layout { display: grid; grid-template-columns: 1.3fr .8fr; gap: 13px; }
.user-list { padding: 0 16px 12px; }
.user-list > div { min-height: 57px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 34px 1fr auto 24px; align-items: center; gap: 8px; }
.user-list > div > span:nth-child(2) { display: flex; flex-direction: column; }
.user-list strong { font-size: 9px; }
.user-list small { font-size: 7px; }
.dots { border: 0; background: transparent; color: var(--muted); }
.check-list { margin: 0; padding: 0 16px 14px; list-style: none; }
.check-list li { min-height: 58px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 9px; }
.check-list li > span { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; color: var(--green); background: #e6efe4; }
.check-list svg { width: 13px; }
.check-list div { display: flex; flex-direction: column; }
.check-list strong { font-size: 8px; }
.check-list small { font-size: 7px; }

.audit-layout { display: grid; grid-template-columns: 185px 1fr; gap: 13px; }
.audit-filter { align-self: start; padding: 14px 10px; border: 1px solid var(--line); border-radius: 15px; display: flex; flex-direction: column; background: var(--paper); }
.audit-filter > strong { margin: 0 8px 9px; font-size: 9px; }
.audit-filter button { min-height: 37px; padding: 0 8px; border: 0; border-radius: 8px; display: flex; align-items: center; gap: 7px; background: none; color: var(--muted); font-size: 8px; text-align: left; }
.audit-filter button.active { color: var(--ink); background: #ebece4; font-weight: 700; }
.audit-filter button b { margin-left: auto; color: #a3aaa5; }
.audit-dot { width: 7px; height: 7px; border-radius: 50%; }
.audit-dot.all { background: var(--ink); }
.audit-dot.approve { background: var(--green); }
.audit-dot.adjust { background: var(--orange); }
.audit-dot.auth { background: var(--blue); }
.audit-dot.error { background: var(--red); }
.audit-stream { padding: 15px 21px 25px; }
.audit-day { height: 31px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 8px; font-weight: 700; }
.audit-event { position: relative; min-height: 80px; padding: 15px 0 10px 48px; }
.audit-event:not(:last-child)::after { content: ""; position: absolute; top: 46px; bottom: -1px; left: 15px; border-left: 1px dashed #cfd4cf; }
.audit-event > i { position: absolute; left: 0; top: 14px; z-index: 1; width: 31px; height: 31px; border-radius: 9px; display: grid; place-items: center; }
.audit-event > i svg { width: 15px; }
.audit-event > i.approve { color: var(--green); background: #e4eee5; }
.audit-event > i.adjust { color: var(--orange); background: var(--orange-soft); }
.audit-event > i.auth { color: var(--blue); background: var(--blue-soft); }
.audit-event > i.error { color: var(--red); background: var(--red-soft); }
.audit-event p { display: flex; align-items: center; gap: 7px; }
.audit-event strong { font-size: 9px; }
.audit-event small { font-size: 7px; }
.audit-event blockquote { width: max-content; max-width: 100%; margin: 7px 0 0; padding: 7px 9px; border-radius: 7px; background: #f0efe9; color: #66716a; font-size: 8px; }

.platform-pills { display: flex; align-items: center; gap: 6px; }
.platform-pills span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font-size: 8px; font-weight: 700; }
.platform-pills b { padding: 6px 9px; border-radius: 8px; color: var(--forest); background: var(--lime); font-size: 8px; }
.mobile-showcase { min-height: 650px; padding: 31px 6%; border-radius: 24px; display: grid; grid-template-columns: 350px 1fr; align-items: center; gap: 7%; background: radial-gradient(circle at 20% 20%, #3c6c56 0, transparent 35%), var(--forest); color: white; overflow: hidden; }
.phone-stage { position: relative; display: grid; place-items: center; }
.phone-shadow { position: absolute; width: 285px; height: 35px; bottom: -13px; border-radius: 50%; background: rgba(0,0,0,.34); filter: blur(16px); }
.phone { position: relative; z-index: 2; width: 298px; height: 615px; padding: 8px; border: 1px solid #52655c; border-radius: 40px; background: #101713; box-shadow: 0 30px 70px rgba(0,0,0,.35), inset 0 0 0 1px #76837b; }
.phone-notch { position: absolute; z-index: 8; top: 14px; left: 50%; width: 78px; height: 20px; transform: translateX(-50%); border-radius: 14px; background: #101713; }
.phone-status { position: absolute; z-index: 7; top: 12px; left: 22px; right: 22px; display: flex; justify-content: space-between; color: var(--ink); font: 700 7px Arial; }
.phone-screen { height: 100%; padding: 32px 14px 80px; border-radius: 33px; display: none; overflow-y: auto; scrollbar-width: none; background: #f6f4ed; color: var(--ink); }
.phone-screen.active { display: block; }
.phone-screen::-webkit-scrollbar { display: none; }
.mobile-header { display: flex; justify-content: space-between; align-items: center; }
.mobile-header small { font-size: 7px; }
.mobile-header h3 { margin-top: 2px; font-size: 14px; }
.driver-balance { margin: 15px 0 10px; padding: 15px; border-radius: 16px; color: white; background: linear-gradient(135deg, #1a4d3b, #2f7457); box-shadow: 0 10px 20px rgba(24,74,55,.18); }
.driver-balance > small { color: #b9cec3; font-size: 7px; }
.driver-balance h2 { margin: 4px 0 12px; color: #f4ffcb; font-size: 21px; }
.driver-balance > div { padding-top: 9px; border-top: 1px solid #4c7968; display: grid; grid-template-columns: 1fr 1fr; }
.driver-balance span { display: flex; flex-direction: column; color: #bdd0c7; font-size: 6px; }
.driver-balance b { margin-top: 2px; color: white; font-size: 8px; }
.assigned-truck { min-height: 60px; padding: 9px; border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: center; gap: 9px; background: white; }
.assigned-truck > span:first-child { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--orange); background: var(--orange-soft); }
.assigned-truck svg { width: 17px; }
.assigned-truck > div { flex: 1; display: flex; flex-direction: column; }
.assigned-truck small { font-size: 6px; }
.assigned-truck strong { font-size: 8px; }
.assigned-truck p { color: var(--muted); font-size: 6px; }
.assigned-truck > svg { width: 11px; color: var(--muted); }
.new-trip-button { width: 100%; min-height: 64px; margin: 9px 0 13px; padding: 9px; border: 0; border-radius: 13px; display: flex; align-items: center; gap: 9px; color: var(--ink); background: var(--lime); text-align: left; box-shadow: 0 7px 16px rgba(104,127,50,.15); }
.new-trip-button > span:first-child { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: white; background: var(--forest); }
.new-trip-button > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.new-trip-button strong { font-size: 8px; }
.new-trip-button small { color: #5c662e; font-size: 6px; }
.new-trip-button > svg { width: 15px; }
.mobile-section-title { display: flex; align-items: center; justify-content: space-between; }
.mobile-section-title strong { font-size: 9px; }
.mobile-section-title button { padding: 0; border: 0; background: none; color: var(--green); font-size: 7px; }
.mobile-trip-card { margin-top: 7px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; display: flex; gap: 8px; background: white; }
.trip-line { position: relative; width: 9px; border-left: 1px dotted #a7aea9; }
.trip-line i, .trip-line b { position: absolute; left: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.trip-line b { bottom: 0; background: var(--orange); }
.mobile-trip-card > div { display: flex; flex: 1; flex-direction: column; }
.mobile-trip-card strong { font-size: 8px; }
.mobile-trip-card small { font-size: 6px; }
.mobile-trip-card p { margin-top: 6px; display: flex; align-items: center; justify-content: space-between; font-size: 8px; font-weight: 800; }
.mobile-nav { position: absolute; z-index: 7; left: 8px; right: 8px; bottom: 8px; height: 56px; padding: 5px 8px 8px; border-radius: 0 0 31px 31px; display: flex; justify-content: space-around; background: white; box-shadow: 0 -5px 14px rgba(20,30,25,.06); }
.mobile-nav button { width: 52px; border: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; background: none; color: #99a09b; font-size: 6px; }
.mobile-nav svg { width: 16px; height: 16px; }
.mobile-nav button.active { color: var(--forest); font-weight: 800; }
.mobile-subheader { min-height: 44px; display: grid; grid-template-columns: 28px 1fr 28px; align-items: center; }
.mobile-subheader > button { width: 27px; height: 27px; padding: 0; border: 0; border-radius: 8px; background: white; font-size: 16px; }
.mobile-subheader > button:last-child { color: var(--red); font-size: 10px; font-weight: 900; }
.mobile-subheader div { text-align: center; }
.mobile-subheader small { font-size: 6px; }
.mobile-subheader h3 { font-size: 11px; }
.mobile-subheader.simple { grid-template-columns: 28px 1fr 45px; }
.mobile-subheader.simple > h3 { font-size: 11px; text-align: center; }
.mobile-subheader .edit-profile { width: auto; color: var(--green); background: none; font-size: 7px; }
.step-progress { margin: 4px 0 13px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.step-progress i { height: 3px; border-radius: 4px; background: #deded7; }
.step-progress i.active { background: var(--green); }
.mobile-step { display: none; }
.mobile-step.active { display: block; animation: panel-in 200ms ease; }
.location-search { height: 36px; margin-bottom: 8px; padding: 0 9px; border: 1px solid var(--line); border-radius: 9px; display: flex; align-items: center; gap: 6px; background: white; }
.location-search svg { width: 13px; color: var(--green); }
.location-search input { width: 100%; border: 0; outline: 0; background: none; font-size: 7px; }
.mini-map { position: relative; height: 210px; border-radius: 13px; overflow: hidden; background: #e7e9dd; }
.road { position: absolute; height: 15px; border: 5px solid white; border-width: 4px 0; background: #d2d3ca; transform: rotate(-15deg); }
.mini-map .r1 { width: 135%; top: 32%; left: -15%; }
.mini-map .r2 { width: 100%; top: 55%; left: 25%; transform: rotate(70deg); }
.mini-map .r3 { width: 85%; top: 75%; left: -5%; transform: rotate(20deg); }
.map-label { position: absolute; padding: 2px 4px; color: #838a82; background: rgba(255,255,255,.6); font-size: 5px; }
.map-label.l1 { top: 24%; left: 6%; transform: rotate(-15deg); }
.map-label.l2 { right: 9%; bottom: 21%; transform: rotate(-20deg); }
.current-pin { position: absolute; top: 48%; left: 48%; width: 23px; height: 23px; border: 6px solid rgba(55,128,91,.25); border-radius: 50%; display: grid; place-items: center; background: rgba(55,128,91,.18); }
.current-pin i { width: 8px; height: 8px; border: 2px solid white; border-radius: 50%; background: var(--green); box-shadow: 0 2px 5px #3335; }
.gps-button { position: absolute; right: 9px; bottom: 9px; width: 30px; height: 30px; border: 0; border-radius: 8px; display: grid; place-items: center; color: var(--green); background: white; box-shadow: 0 3px 10px #263b3125; }
.gps-button svg { width: 14px; }
.location-options { margin-top: 8px; }
.location-options button { width: 100%; min-height: 48px; padding: 6px 4px; border: 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 7px; background: transparent; text-align: left; }
.location-options button > span:first-child { width: 27px; height: 27px; border-radius: 8px; display: grid; place-items: center; color: var(--green); background: #e4eee5; }
.location-options button svg { width: 13px; }
.location-options button > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.location-options strong { font-size: 7px; }
.location-options small { font-size: 6px; }
.location-options button > svg { width: 10px; color: var(--muted); }
.route-inputs { padding: 9px; border-radius: 11px; display: flex; gap: 9px; background: white; }
.route-dots { position: relative; width: 10px; border-left: 1px dotted #9ba59e; }
.route-dots i, .route-dots em { position: absolute; left: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.route-dots i { top: 9px; }
.route-dots em { bottom: 9px; background: var(--orange); }
.route-inputs > div { flex: 1; }
.route-inputs label { min-height: 40px; display: flex; flex-direction: column; justify-content: center; }
.route-inputs label:first-child { border-bottom: 1px solid var(--line); }
.route-inputs small { font-size: 6px; }
.route-inputs strong { font-size: 7px; }
.route-map { height: 285px; margin-top: 8px; }
.route-path { position: absolute; width: 150px; height: 190px; top: 45px; left: 55px; border: 5px solid var(--green); border-width: 0 0 5px 5px; border-radius: 0 0 0 70%; transform: rotate(-17deg); }
.route-pin { position: absolute; width: 23px; height: 23px; border: 3px solid white; border-radius: 50% 50% 50% 4px; display: grid; place-items: center; color: white; background: var(--green); font-size: 7px; font-weight: 900; transform: rotate(-45deg); box-shadow: 0 3px 7px #2235; }
.route-pin.start { left: 55px; bottom: 34px; }
.route-pin.end { right: 52px; top: 38px; background: var(--orange); }
.route-pin { color: transparent; }
.map-bubble { position: absolute; top: 12px; left: 12px; padding: 6px 8px; border-radius: 7px; background: rgba(255,255,255,.9); color: var(--muted); font-size: 5px; box-shadow: 0 3px 10px #2222; }
.map-bubble b { color: var(--ink); }
.route-stats { margin-top: 8px; padding: 9px; border-radius: 10px; display: grid; grid-template-columns: 1fr 1fr; background: white; }
.route-stats span { display: flex; flex-direction: column; }
.route-stats span + span { padding-left: 9px; border-left: 1px solid var(--line); }
.route-stats small { font-size: 6px; }
.route-stats strong { font-size: 8px; }
.estimate-hero { padding: 18px 12px; border-radius: 14px; color: white; background: var(--forest); text-align: center; }
.estimate-hero > span { width: 35px; height: 35px; margin: 0 auto 7px; border-radius: 50%; display: grid; place-items: center; color: var(--lime); background: #2a5948; }
.estimate-hero svg { width: 17px; }
.estimate-hero small { display: block; color: #b5c8bf; font-size: 7px; }
.estimate-hero h2 { margin: 2px 0; color: #f1ffbb; font-size: 22px; }
.estimate-hero p { color: #9fb5aa; font-size: 6px; }
.calc-breakdown { margin-top: 9px; padding: 9px 11px; border-radius: 11px; background: white; }
.calc-breakdown div { min-height: 32px; display: flex; align-items: center; justify-content: space-between; font-size: 7px; }
.calc-breakdown span { color: var(--muted); }
.calc-breakdown hr { border: 0; border-top: 1px solid var(--line); }
.calc-breakdown div:last-child strong { color: var(--green); font-size: 10px; }
.snapshot-note { margin-top: 7px; padding: 7px; border-radius: 7px; color: #6c6e58; background: var(--amber-soft); font-size: 6px; text-align: center; }
.success-check { padding: 15px 0 12px; text-align: center; }
.success-check span { width: 48px; height: 48px; margin: 0 auto 9px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--green); box-shadow: 0 0 0 7px #dfeadf; }
.success-check svg { width: 23px; stroke-width: 2.5; }
.success-check h2 { font-size: 15px; }
.success-check p { color: var(--muted); font-size: 7px; }
.submit-summary { padding: 8px 11px; border-radius: 11px; background: white; }
.submit-summary div { min-height: 37px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.submit-summary div:last-child { border-bottom: 0; }
.submit-summary small { font-size: 6px; }
.submit-summary strong { max-width: 150px; font-size: 7px; text-align: right; }
.submit-trip { width: 100%; height: 43px; margin-top: 9px; border: 0; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 7px; color: white; background: var(--forest); font-size: 8px; font-weight: 800; }
.submit-trip svg { width: 14px; }
.mobile-step-actions { margin-top: 11px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 7px; }
.mobile-step-actions button { height: 36px; border: 1px solid var(--line); border-radius: 9px; background: white; font-size: 7px; font-weight: 700; }
.mobile-step-actions button.primary { border-color: var(--forest); display: flex; align-items: center; justify-content: center; gap: 5px; color: white; background: var(--forest); }
.mobile-step-actions svg { width: 12px; }
.mobile-tabs { padding: 7px 0; border-bottom: 1px solid var(--line); display: flex; gap: 6px; }
.mobile-tabs button { height: 27px; padding: 0 8px; border: 0; border-radius: 7px; color: var(--muted); background: none; font-size: 6px; }
.mobile-tabs button.active { color: white; background: var(--forest); }
.history-list article { min-height: 83px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 9px; }
.history-date { width: 32px; height: 38px; border-radius: 8px; display: grid; place-items: center; color: var(--green); background: #e5eee4; font-size: 8px; font-weight: 800; line-height: .85; }
.history-date small { color: var(--green); font-size: 5px; }
.history-list article > div { flex: 1; display: flex; flex-direction: column; }
.history-list strong { font-size: 8px; }
.history-list small { font-size: 6px; }
.history-list p { margin-top: 6px; display: flex; justify-content: space-between; align-items: center; }
.history-list p b { font-size: 8px; }
.profile-hero { padding: 19px 0 14px; text-align: center; }
.profile-hero .avatar { width: 55px; height: 55px; margin: 0 auto 8px; font-size: 14px; }
.profile-hero h3 { font-size: 12px; }
.profile-hero p { color: var(--muted); font-size: 6px; }
.profile-fields { padding: 2px 10px; border-radius: 11px; background: white; }
.profile-fields label { min-height: 49px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.profile-fields label:last-child { border: 0; }
.profile-fields small { font-size: 6px; }
.profile-fields strong { font-size: 7px; }
.logout-button { width: 100%; height: 36px; margin-top: 10px; border: 1px solid #edc3c0; border-radius: 9px; color: var(--red); background: #fff5f4; font-size: 7px; font-weight: 700; }
.mobile-feature-copy { max-width: 590px; }
.mobile-feature-copy .section-kicker { color: var(--lime); }
.mobile-feature-copy > h2 { max-width: 470px; margin: 7px 0 8px; font-size: clamp(25px, 3vw, 38px); line-height: 1.25; letter-spacing: -.7px; }
.mobile-feature-copy > p { max-width: 540px; color: #b7c8c0; font-size: 10px; line-height: 1.7; }
.feature-steps { margin: 23px 0 16px; display: flex; flex-direction: column; gap: 6px; }
.feature-steps button { width: 100%; min-height: 64px; padding: 9px 12px; border: 1px solid transparent; border-radius: 12px; display: flex; align-items: center; gap: 12px; color: #9db1a7; background: transparent; text-align: left; }
.feature-steps button:hover { background: #1d4b3b; }
.feature-steps button.active { border-color: #4b6d5e; color: white; background: #234f3e; }
.feature-steps button > b { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #719082; background: #2b5947; font-size: 8px; }
.feature-steps button.active > b { color: var(--forest); background: var(--lime); }
.feature-steps button > span { display: flex; flex-direction: column; }
.feature-steps strong { font-size: 10px; }
.feature-steps small { color: #8fa69a; font-size: 8px; }
.error-preview { padding: 12px; border: 1px solid #754d43; border-radius: 12px; display: flex; align-items: center; gap: 10px; background: #3c352d; }
.error-preview > span { width: 29px; height: 29px; border-radius: 8px; display: grid; place-items: center; color: white; background: var(--red); font-size: 11px; font-weight: 900; }
.error-preview > div { flex: 1; }
.error-preview strong { font-size: 9px; }
.error-preview p { color: #c2aca6; font-size: 7px; }
.error-preview button { padding: 5px 7px; border: 0; border-radius: 6px; color: white; background: #6b493f; font-size: 7px; }
.mobile-capabilities { margin-top: 15px; display: flex; flex-wrap: wrap; gap: 6px; }
.mobile-capabilities span { padding: 5px 8px; border: 1px solid #426557; border-radius: 99px; color: #aec0b7; font-size: 7px; }

.project-hero { min-height: 315px; margin-bottom: 18px; padding: 38px 5%; border-radius: 22px; display: flex; align-items: center; justify-content: space-between; color: white; background: var(--forest); overflow: hidden; }
.project-hero > div:first-child { position: relative; z-index: 1; }
.project-label { color: var(--lime); font-size: 8px; font-weight: 900; letter-spacing: 1.7px; }
.project-hero h2 { margin: 10px 0 9px; font-size: clamp(30px, 4vw, 47px); line-height: 1.15; letter-spacing: -1.2px; }
.project-hero p { max-width: 620px; color: #abc0b6; font-size: 10px; }
.project-meta { margin-top: 25px; display: flex; gap: 35px; }
.project-meta span { display: flex; flex-direction: column; }
.project-meta small { color: #96aa9f; font-size: 7px; }
.project-meta strong { color: #eff7d0; font-size: 13px; }
.project-mark { width: 210px; height: 210px; margin-right: 3%; border: 1px solid #547466; border-radius: 50%; display: grid; place-items: center; position: relative; color: var(--lime); background: radial-gradient(circle, #2b5c49, #153d30 68%); box-shadow: 0 0 0 20px #1b4939, 0 0 0 21px #3d6355; transform: rotate(7deg); }
.project-mark svg { width: 65px; height: 65px; stroke-width: 1; }
.project-mark span { position: absolute; right: 28px; bottom: 36px; color: white; font: 800 12px/1 Arial; letter-spacing: 2px; }
.scope-section { margin-bottom: 15px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.scope-heading { margin-bottom: 19px; display: flex; align-items: flex-start; gap: 12px; }
.scope-heading > span { width: 31px; height: 31px; border-radius: 9px; display: grid; place-items: center; color: var(--forest); background: var(--lime); font-size: 8px; font-weight: 900; }
.scope-heading h3 { font-size: 16px; }
.scope-heading p { color: var(--muted); font-size: 8px; }
.deliverable-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.deliverable-grid article { min-height: 147px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.deliverable-grid article > span { width: 33px; height: 33px; border-radius: 9px; display: grid; place-items: center; color: var(--green); background: #e5eee4; }
.deliverable-grid svg { width: 16px; }
.deliverable-grid h4 { margin: 11px 0 4px; font-size: 10px; }
.deliverable-grid p { color: var(--muted); font-size: 8px; line-height: 1.5; }
.store-note { margin-top: 11px; color: var(--muted); font-size: 7px; }
.delivery-timeline { position: relative; display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.delivery-timeline::before { content: ""; position: absolute; top: 15px; left: 5%; right: 5%; border-top: 1px dashed #bdc5bd; }
.delivery-timeline > div { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; }
.delivery-timeline b { width: 31px; height: 31px; border: 3px solid var(--paper); border-radius: 50%; display: grid; place-items: center; color: white; background: var(--green); font-size: 7px; box-shadow: 0 0 0 1px #9ab4a2; }
.delivery-timeline span { display: flex; flex-direction: column; }
.delivery-timeline strong { font-size: 8px; }
.delivery-timeline small { font-size: 7px; }
.dependency-box { margin-top: 22px; padding: 13px; border-radius: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #eeeee7; }
.dependency-box strong { margin-right: 5px; font-size: 8px; }
.dependency-box span { padding: 5px 7px; border-radius: 6px; background: white; color: var(--muted); font-size: 7px; }
.price-table { max-width: 820px; margin: 0 auto; }
.price-table > div { min-height: 43px; padding: 0 12px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; font-size: 9px; }
.price-table strong { white-space: nowrap; }
.price-table .price-total { min-height: 58px; margin-top: 8px; padding: 0 15px; border: 0; border-radius: 10px; color: white; background: var(--forest); }
.price-total span { font-size: 11px; font-weight: 700; }
.price-total strong { color: var(--lime); font-size: 18px; }
.milestone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.milestone-grid article { padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.milestone-grid span { padding: 4px 7px; border-radius: 6px; color: var(--green); background: #e6efe4; font-size: 7px; font-weight: 800; }
.milestone-grid > article > strong { display: block; margin-top: 12px; color: var(--orange); font-size: 26px; }
.milestone-grid h4 { margin: 1px 0 6px; font-size: 12px; }
.milestone-grid p { color: var(--muted); font-size: 8px; }
.exclusion-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.exclusion-grid span { min-height: 41px; padding: 9px 10px 9px 28px; border-radius: 9px; display: flex; align-items: center; position: relative; background: #f0efe9; color: #606a64; font-size: 8px; }
.exclusion-grid span::before { content: "×"; position: absolute; left: 10px; color: var(--red); font-weight: 900; }
.scope-section.split { display: grid; grid-template-columns: 280px 1fr; gap: 30px; }
.scope-section.split .scope-heading { margin: 0; }
.terms-copy p { margin-bottom: 10px; color: #59655e; font-size: 9px; line-height: 1.7; }
.terms-list { margin: 0; padding-left: 17px; color: #59655e; font-size: 9px; line-height: 1.8; }
.terms-list li::marker { color: var(--orange); }
.feature-catalog { padding: 25px; border-radius: var(--radius); color: white; background: var(--ink); }
.catalog-head span { color: var(--lime); font-size: 8px; font-weight: 900; letter-spacing: 1.5px; }
.catalog-head h3 { margin-top: 4px; font-size: 20px; }
.catalog-head p { color: #98aaa1; font-size: 8px; }
.catalog-grid { margin-top: 17px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.catalog-grid > div { min-height: 112px; padding: 14px; border: 1px solid #35483f; border-radius: 12px; display: flex; flex-direction: column; gap: 8px; background: #202e28; }
.catalog-grid b { color: var(--lime); font-size: 10px; }
.catalog-grid span { color: #a9b7af; font-size: 8px; line-height: 1.65; }

.drawer { position: fixed; z-index: 70; top: 0; right: 0; bottom: 0; width: min(470px, 100%); background: var(--paper); box-shadow: -20px 0 55px rgba(19,33,25,.17); transform: translateX(105%); transition: transform 260ms cubic-bezier(.2,.7,.2,1); display: flex; flex-direction: column; }
.drawer[aria-hidden="false"] { transform: translateX(0); }
.drawer-head { min-height: 72px; padding: 15px 19px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.drawer-head span { color: var(--muted); font-size: 8px; }
.drawer-head h2 { font-size: 18px; }
.drawer-body { flex: 1; padding: 16px 19px; overflow-y: auto; }
.drawer-driver { margin-bottom: 12px; display: flex; align-items: center; gap: 9px; }
.drawer-driver > div { flex: 1; display: flex; flex-direction: column; }
.drawer-driver strong { font-size: 10px; }
.drawer-driver small { font-size: 7px; }
.detail-map { position: relative; height: 185px; margin-bottom: 15px; border-radius: 14px; overflow: hidden; background: #e5e8dc; }
.map-road { position: absolute; height: 18px; border: 5px solid white; border-width: 5px 0; background: #cfd2c8; }
.map-road.a { width: 130%; top: 50%; left: -10%; transform: rotate(-12deg); }
.map-road.b { width: 80%; top: 36%; left: 39%; transform: rotate(66deg); }
.map-road.c { width: 75%; top: 72%; left: -2%; transform: rotate(25deg); }
.detail-route { position: absolute; width: 230px; height: 95px; top: 35px; left: 80px; border: 4px solid var(--green); border-width: 0 0 4px 4px; border-radius: 0 0 0 50%; transform: rotate(-9deg); }
.detail-pin { position: absolute; width: 24px; height: 24px; border: 3px solid white; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--green); font-size: 7px; font-weight: 900; box-shadow: 0 3px 8px #3334; }
.detail-pin.origin { left: 72px; bottom: 39px; }
.detail-pin.destination { right: 72px; top: 31px; background: var(--orange); }
.detail-distance { position: absolute; top: 12px; left: 12px; padding: 6px 8px; border-radius: 7px; background: white; color: var(--ink); font-size: 8px; font-weight: 800; box-shadow: 0 3px 10px #2222; }
.detail-map > small { position: absolute; right: 9px; bottom: 7px; padding: 3px 5px; border-radius: 4px; background: rgba(255,255,255,.75); font-size: 6px; }
.route-detail { margin-bottom: 13px; }
.route-detail > div { position: relative; min-height: 47px; padding-left: 27px; display: flex; align-items: center; }
.route-detail > div:first-child::after { content: ""; position: absolute; top: 30px; bottom: -15px; left: 7px; border-left: 1px dotted #aeb6b0; }
.route-detail i { position: absolute; left: 2px; width: 11px; height: 11px; border: 3px solid #c9e0d0; border-radius: 50%; background: var(--green); }
.route-detail i.destination { border-color: #f4d4c2; background: var(--orange); }
.route-detail span { display: flex; flex-direction: column; }
.route-detail small { font-size: 7px; }
.route-detail strong { font-size: 9px; }
.calculation-card { padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.calc-title { display: flex; align-items: center; gap: 8px; }
.calc-title > span { width: 31px; height: 31px; border-radius: 8px; display: grid; place-items: center; color: var(--orange); background: var(--orange-soft); }
.calc-title svg { width: 15px; }
.calc-title div { display: flex; flex-direction: column; }
.calc-title strong { font-size: 9px; }
.calc-title small { font-size: 7px; }
.calc-rows { margin: 10px 0 6px; }
.calc-rows p { min-height: 30px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 8px; }
.calc-rows strong { color: var(--ink); }
.calc-rows .calc-total { border: 0; color: var(--ink); font-weight: 700; }
.calc-total strong { color: var(--green); font-size: 14px; }
.decision-note { margin: 13px 0; display: flex; flex-direction: column; gap: 5px; }
.decision-note span { font-size: 8px; font-weight: 700; }
.decision-note textarea { min-height: 68px; padding: 9px; border: 1px solid var(--line); border-radius: 9px; outline: 0; resize: vertical; background: white; font-size: 8px; }
.drawer-audit { padding: 11px 0; }
.drawer-audit > strong { font-size: 9px; }
.drawer-audit > div { min-height: 45px; display: flex; align-items: center; gap: 9px; }
.drawer-audit i { width: 8px; height: 8px; border: 2px solid #b8d3bf; border-radius: 50%; background: var(--green); }
.drawer-audit span { display: flex; flex-direction: column; }
.drawer-audit b { font-size: 8px; }
.drawer-audit small { font-size: 7px; }
.drawer-actions { min-height: 67px; padding: 12px 19px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; background: white; }
.modal-scrim { position: fixed; z-index: 60; inset: 0; pointer-events: none; opacity: 0; background: rgba(15,26,20,.43); backdrop-filter: blur(2px); transition: opacity 200ms ease; }
.drawer-open .modal-scrim { pointer-events: auto; opacity: 1; }
.action-dialog { width: min(510px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 90px rgba(19,30,24,.28); }
.action-dialog::backdrop { background: rgba(15,26,20,.5); backdrop-filter: blur(2px); }
.action-dialog form { padding: 20px; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; }
.dialog-head span { color: var(--green); font-size: 7px; font-weight: 900; letter-spacing: 1.2px; text-transform: uppercase; }
.dialog-head h2 { margin-top: 3px; font-size: 20px; }
.dialog-description { margin: 8px 0 16px; color: var(--muted); font-size: 9px; line-height: 1.55; }
.dialog-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.dialog-fields label { display: flex; flex-direction: column; gap: 5px; }
.dialog-fields label.full { grid-column: 1 / -1; }
.dialog-fields label > span { font-size: 8px; font-weight: 700; }
.dialog-fields input, .dialog-fields textarea { min-height: 39px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; outline: 0; background: white; font-size: 9px; }
.dialog-fields textarea { min-height: 70px; resize: vertical; }
.dialog-note { margin-top: 12px; padding: 10px; border-radius: 9px; display: flex; gap: 7px; color: #78601f; background: var(--amber-soft); font-size: 8px; }
.dialog-note svg { width: 14px; flex: 0 0 auto; }
.dialog-actions { margin-top: 15px; display: flex; justify-content: flex-end; gap: 8px; }
.error-toast, .toast { position: fixed; z-index: 100; right: 22px; bottom: 22px; width: min(390px, calc(100% - 28px)); min-height: 72px; padding: 12px; border: 1px solid #e7b8b3; border-radius: 14px; display: flex; align-items: center; gap: 10px; background: #fff9f8; box-shadow: 0 18px 50px rgba(41,27,24,.2); transform: translateY(130%); opacity: 0; transition: 250ms ease; }
.error-toast.show, .toast.show { transform: translateY(0); opacity: 1; }
.error-toast > span, .toast > span { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 9px; display: grid; place-items: center; color: white; background: var(--red); font-weight: 900; }
.error-toast > div, .toast > div { flex: 1; }
.error-toast strong, .toast strong { font-size: 9px; }
.error-toast p, .toast p { color: var(--muted); font-size: 7px; }
.error-toast button { border: 0; background: none; color: var(--muted); }
.error-toast button svg { width: 14px; }
.toast { border-color: #bbd2bd; background: #f7fcf4; }
.toast > span { background: var(--green); }
.toast > span svg { width: 18px; }

@media (max-width: 1200px) {
  :root { --sidebar: 222px; }
  .panel { padding-inline: 22px; }
  .topbar, .demo-ribbon { padding-inline: 22px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-bar { flex-wrap: wrap; }
  .search-field { flex: 1 1 260px; }
  .filter-chips { order: 3; width: 100%; overflow-x: auto; }
  .payment-row { grid-template-columns: 34px 1fr auto; }
  .payment-row > div:nth-child(3), .payment-row .status { display: none; }
  .delivery-timeline { grid-template-columns: repeat(4, 1fr); gap: 18px 8px; }
  .delivery-timeline::before { display: none; }
}

@media (max-width: 980px) {
  :root { --sidebar: 0px; }
  .sidebar { width: 252px; transform: translateX(-105%); transition: transform 220ms ease; }
  .menu-open .sidebar { transform: translateX(0); }
  .sidebar-close { display: grid !important; }
  .sidebar-scrim { position: fixed; z-index: 35; inset: 0; display: block; pointer-events: none; opacity: 0; background: rgba(12,24,17,.43); transition: opacity 200ms ease; }
  .menu-open .sidebar-scrim { pointer-events: auto; opacity: 1; }
  .menu-button { display: grid !important; }
  .main-content { margin-left: 0; }
  .dashboard-grid, .payments-layout, .users-layout { grid-template-columns: 1fr; }
  .workflow-grid, .role-grid, .deliverable-grid { grid-template-columns: repeat(2, 1fr); }
  .mobile-showcase { grid-template-columns: 310px 1fr; gap: 4%; padding-inline: 3%; }
  .phone { transform: scale(.92); }
  .mobile-feature-copy > h2 { font-size: 26px; }
  .report-filters { grid-template-columns: repeat(3, 1fr); }
  .scope-section.split { grid-template-columns: 220px 1fr; gap: 18px; }
}

@media (max-width: 760px) {
  .topbar { height: 64px; padding: 0 14px; }
  .topbar-title p { display: none; }
  .topbar-title h1 { font-size: 15px; }
  .search-trigger, .profile-menu > span:nth-child(2), .profile-menu > svg { display: none; }
  .profile-menu { padding-left: 7px; }
  .demo-ribbon { padding: 8px 14px; align-items: flex-start; }
  .demo-ribbon p { line-height: 1.45; }
  .panel { padding: 21px 14px 42px; }
  .page-intro { align-items: flex-start; flex-direction: column; }
  .page-intro h2 { font-size: 22px; }
  .intro-actions { width: 100%; }
  .intro-actions .button { flex: 1; }
  .stat-grid, .stat-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-card { min-height: 124px; padding: 14px; }
  .stat-card h3 { font-size: 20px; }
  .capacity-strip { align-items: flex-start; flex-wrap: wrap; }
  .health { margin-left: 47px; }
  .workflow-grid, .fleet-summary, .formula-grid, .vehicle-grid, .role-grid, .deliverable-grid, .milestone-grid, .catalog-grid { grid-template-columns: 1fr; }
  .filter-bar { padding: 8px; }
  .filter-more { display: none; }
  .filter-chips button { flex: 0 0 auto; }
  .payments-layout { grid-template-columns: 1fr; }
  .payment-row { grid-template-columns: 34px 1fr auto; }
  .payment-row .button { grid-column: 2 / -1; width: 100%; }
  .rate-row { grid-template-columns: 1.2fr 1fr 1fr; }
  .rate-row > span:nth-child(3), .rate-row > span:nth-child(5) { display: none; }
  .report-filters { grid-template-columns: 1fr 1fr; }
  .report-hero { padding: 19px; grid-template-columns: 1fr 90px; }
  .report-donut { width: 85px; height: 85px; }
  .report-split { grid-column: 1 / -1; }
  .audit-layout { grid-template-columns: 1fr; }
  .audit-filter { flex-direction: row; overflow-x: auto; }
  .audit-filter > strong { display: none; }
  .audit-filter button { flex: 0 0 auto; }
  .mobile-showcase { padding: 28px 13px; grid-template-columns: 1fr; gap: 38px; }
  .phone { transform: none; }
  .mobile-feature-copy { padding: 0 9px; }
  .project-hero { padding: 28px 22px; }
  .project-mark { display: none; }
  .project-meta { gap: 16px; flex-wrap: wrap; }
  .scope-section { padding: 18px; }
  .delivery-timeline { grid-template-columns: repeat(2, 1fr); }
  .exclusion-grid { grid-template-columns: 1fr; }
  .scope-section.split { grid-template-columns: 1fr; gap: 10px; }
  .price-table > div { gap: 20px; font-size: 8px; }
  .price-total strong { font-size: 14px; }
}

@media (max-width: 450px) {
  .stat-grid, .stat-grid.three { grid-template-columns: 1fr; }
  .stat-card { min-height: 118px; }
  .legend { display: none; }
  .chart-wrap { padding-inline: 12px; }
  .phone { width: 286px; height: 600px; }
  .report-filters { grid-template-columns: 1fr; }
  .report-hero { grid-template-columns: 1fr; }
  .report-donut { display: none; }
  .role-grid { grid-template-columns: 1fr; }
  .action-dialog form { padding: 16px; }
  .dialog-fields { grid-template-columns: 1fr; }
  .dialog-fields label.full { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
  .sidebar, .topbar, .demo-ribbon, .button, .platform-pills, .drawer, .toast, .error-toast { display: none !important; }
  .main-content { margin: 0; }
  .panel { display: block; max-width: none; padding: 20px; break-after: page; }
  .card, .scope-section { box-shadow: none; break-inside: avoid; }
}

/* ==========================================================================
   2026 PRODUCT REDESIGN — LINE Seed Sans TH / product-only workspace
   ========================================================================== */

:root {
  --ink: #18203b;
  --ink-2: #2d3655;
  --forest: #3c4bdc;
  --forest-2: #5260e7;
  --green: #3c4bdc;
  --lime: #d9ff72;
  --lime-soft: #f1ffd0;
  --orange: #ff7d5f;
  --orange-soft: #fff0eb;
  --amber: #d49419;
  --amber-soft: #fff6dc;
  --blue: #3c4bdc;
  --blue-soft: #edf0ff;
  --red: #e0525e;
  --red-soft: #fff0f1;
  --violet: #8d5ee8;
  --canvas: #f5f6fa;
  --paper: #ffffff;
  --white: #ffffff;
  --line: #e7e9f1;
  --muted: #737b95;
  --muted-2: #a2a8ba;
  --shadow: 0 12px 32px rgba(35, 45, 88, 0.055);
  --sidebar: 238px;
  --radius: 20px;
  font-family: "LINE Seed Sans TH", "Noto Sans Thai", "Segoe UI", system-ui, sans-serif;
}

body {
  background:
    radial-gradient(circle at 92% 3%, rgba(210, 216, 255, .38), transparent 22rem),
    var(--canvas);
  font-family: "LINE Seed Sans TH", "Noto Sans Thai", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
}

button,
input,
textarea { font-family: inherit; }

.sidebar {
  width: var(--sidebar);
  padding: 24px 16px 18px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  color: var(--ink);
  box-shadow: none;
}

.brand {
  height: 52px;
  padding: 0 7px;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: white;
  background: linear-gradient(145deg, #5666ee, #3442cd);
  box-shadow: 0 9px 20px rgba(60, 75, 220, .25);
  transform: none;
}

.brand strong {
  color: var(--ink);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.6px;
}

.brand small {
  margin-top: 5px;
  color: #9299ad;
  font-size: 7px;
  letter-spacing: 1.85px;
}

.primary-nav { margin-top: 24px; }

.nav-label {
  margin: 24px 12px 8px;
  color: #a2a8b8;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.1px;
}

.nav-item {
  min-height: 46px;
  margin: 3px 0;
  padding: 0 12px;
  border-radius: 13px;
  color: #65708b;
}

.nav-item svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.9;
}

.nav-item span {
  font-size: 12px;
  font-weight: 600;
}

.nav-item:hover {
  color: #3442ce;
  background: #f1f3ff;
}

.nav-item.active {
  color: #2d3bc7;
  background: #eaedff;
  box-shadow: none;
}

.nav-item.active::before {
  content: "";
  width: 4px;
  height: 20px;
  margin-left: -12px;
  margin-right: 8px;
  border-radius: 0 8px 8px 0;
  background: #3c4bdc;
}

.nav-item.active svg { color: #3c4bdc; }

.nav-count {
  min-width: 22px;
  height: 22px;
  color: white;
  background: #3c4bdc;
}

.nav-dot {
  background: #ff7d5f;
  box-shadow: 0 0 0 3px #ffe7e0;
}

.sidebar-foot {
  padding: 15px 9px 4px;
  border-color: var(--line);
}

.sidebar-foot strong { color: var(--ink); font-size: 10px; }
.sidebar-foot small { color: #989fb1; font-size: 8px; }
.demo-badge { color: #2d3b15; background: var(--lime); }

.main-content { background: transparent; }

.topbar {
  height: 80px;
  padding: 0 34px;
  border-color: var(--line);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(20px);
}

.topbar-title p {
  color: #9097a9;
  font-size: 9px;
  letter-spacing: .8px;
}

.topbar-title h1 {
  margin-top: 3px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
}

.search-trigger {
  width: 245px;
  height: 42px;
  padding-inline: 12px;
  border-color: #e2e4ec;
  border-radius: 13px;
  background: #f7f8fb;
}

.search-trigger span { font-size: 10px; }
.icon-button { border-radius: 12px; }
.profile-menu { height: 48px; padding-left: 14px; }
.profile-menu strong { font-size: 11px; }
.profile-menu small { font-size: 9px; }

.avatar {
  background: #e8ebff;
  color: #3442c9;
  font-size: 10px;
}

.avatar-dark {
  background: linear-gradient(145deg, #3c4bdc, #272f98);
  color: white;
}

.demo-ribbon {
  min-height: 40px;
  padding: 8px 34px;
  border-color: #e9e2b9;
  background: #fffbe8;
}

.demo-ribbon > span {
  color: #2b3514;
  background: var(--lime);
}

.demo-ribbon p { color: #777250; font-size: 10px; }

.panel {
  max-width: 1460px;
  padding: 36px 34px 64px;
}

.page-intro { margin-bottom: 28px; }

.page-intro h2 {
  margin: 9px 0 5px;
  color: #151c35;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.8px;
}

.page-intro p { color: var(--muted); font-size: 12px; }

.section-kicker {
  color: #4654d9;
  font-size: 9px;
  letter-spacing: 1.5px;
}

.today-pill {
  padding: 6px 10px;
  color: #5d6781;
  background: #edf0f7;
  font-size: 9px;
}

.today-pill span {
  background: #32b77c;
  box-shadow: 0 0 0 3px #d9f3e7;
}

.button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 13px;
  font-size: 11px;
}

.button.primary {
  color: white;
  background: #3c4bdc;
  box-shadow: 0 8px 18px rgba(60, 75, 220, .18);
}

.button.primary:hover { background: #2e3bc4; }
.button.ghost { border-color: var(--line); background: white; color: #5d6680; }

.card,
.stat-card {
  border-color: var(--line);
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow);
}

.stat-grid { gap: 15px; margin-bottom: 21px; }

.stat-card {
  min-height: 154px;
  padding: 20px;
  border-radius: 20px;
}

.stat-card:first-child {
  border-color: transparent;
  color: white;
  background:
    radial-gradient(circle at 105% -20%, rgba(217, 255, 114, .5), transparent 45%),
    linear-gradient(135deg, #4655e4, #2f3cc0);
  box-shadow: 0 18px 35px rgba(52, 64, 196, .19);
}

.stat-card:first-child > p,
.stat-card:first-child > small { color: #d8dcff; }
.stat-card:first-child h3 { color: white; }
.stat-card:first-child .stat-icon { color: white; background: rgba(255,255,255,.16); }
.stat-card:first-child .trend { color: #203019; background: var(--lime); }

.stat-head { margin-bottom: 17px; }

.stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.stat-icon svg { width: 18px; height: 18px; }
.stat-icon.green { color: #3c4bdc; background: #edf0ff; }
.stat-icon.orange { color: #f06447; background: #fff0eb; }
.stat-icon.yellow { color: #c78810; background: #fff5d9; }
.stat-icon.blue { color: #6d50ce; background: #f0ebff; }
.trend { padding: 5px 8px; font-size: 9px; }
.stat-link { color: #3c4bdc; font-size: 9px; }
.stat-card > p { color: #727b94; font-size: 11px; }

.stat-card h3 {
  margin: 6px 0 4px;
  color: #18203b;
  font-size: 28px;
  font-weight: 700;
}

.stat-card h3 em { color: #7d859a; font-size: 11px; }
.stat-card > small { color: #9299ac; font-size: 9px; }

.dashboard-grid { gap: 16px; margin-bottom: 20px; }
.card { border-radius: 20px; }
.card-header { padding: 22px 22px 17px; }
.card-header h3 { color: #1c2440; font-size: 15px; }
.card-header p { color: #858ca0; font-size: 10px; }
.text-button { color: #3c4bdc; font-size: 10px; }
.spending-card, .approvals-card { min-height: 310px; }
.chart-wrap { height: 230px; padding-inline: 24px; }
.chart-bars i {
  border-radius: 7px 7px 2px 2px;
  background: linear-gradient(#6774ef, #3c4bdc);
  box-shadow: -6px 0 0 #e4e6f2;
}
.legend { color: #858ca0; font-size: 9px; }
.legend i.legend-current { background: #3c4bdc; }
.approval-list button { min-height: 70px; border-color: var(--line); }
.approval-list strong { font-size: 11px; }
.approval-list small { font-size: 9px; }
.approval-list button > svg { color: #adb2c0; }
.approval-icon { width: 39px; height: 39px; border-radius: 12px; }

th {
  height: 43px;
  padding-inline: 17px;
  border-color: var(--line);
  background: #f8f9fc;
  color: #8990a4;
  font-size: 9px;
}

td {
  height: 74px;
  padding-inline: 17px;
  border-color: #eef0f5;
  color: #59627b;
  font-size: 10px;
}

td strong,
.trip-id { font-size: 10px; }
td small { font-size: 8px; }
.trip-id { color: #3342c9; }
.person-cell .avatar { width: 34px; height: 34px; }

.status {
  padding: 5px 9px;
  font-size: 8px;
}

.status-approved { color: #168059; background: #e5f7ef; }
.status-pending { color: #a86e08; background: #fff4d2; }
.status-waiting { color: #3544c6; background: #eaedff; }
.status-paid { color: #545f75; background: #edf0f4; }
.status-rejected { color: #c84651; background: #ffedef; }
.row-action { width: 31px; height: 31px; border-radius: 9px; }

.capacity-strip {
  padding: 16px 18px;
  border-color: #dfe3f4;
  background: #f2f4ff;
}
.capacity-icon { color: #3c4bdc; background: #dfe3ff; }
.capacity-strip strong { font-size: 11px; }
.capacity-strip p { color: #727b94; font-size: 9px; }

.filter-bar,
.report-filters {
  padding: 13px;
  border-radius: 17px;
  border-color: var(--line);
  box-shadow: var(--shadow);
}
.search-field { height: 42px; border-radius: 11px; }
.search-field input, .compact-search input { font-size: 10px; }
.filter-chips button { height: 35px; border-radius: 10px; font-size: 9px; }
.filter-chips button.active { background: #3c4bdc; }
.table-meta { height: 45px; font-size: 9px; }
.workflow-grid { gap: 12px; }
.mini-info { min-height: 92px; padding: 16px; border-style: solid; border-color: var(--line); background: white; }
.mini-info > span { color: #ff7458; font-size: 9px; }
.mini-info strong { font-size: 10px; }
.mini-info p { color: #7d859a; font-size: 9px; }

.notice { min-height: 68px; padding: 14px 17px; border-radius: 16px; }
.notice strong { font-size: 11px; }
.notice p { font-size: 9px; }
.notice.info { color: #3442bd; border-color: #d9defe; background: #f0f2ff; }
.notice.warning { color: #8a631c; border-color: #f0de9e; background: #fff8de; }
.payment-row { min-height: 76px; }
.payment-row strong { font-size: 10px; }
.payment-row small { font-size: 8px; }
.scope-anchor { border-left-color: #3c4bdc; background: #eef0ff; }

.fleet-summary { gap: 14px; }
.fleet-summary article { min-height: 112px; padding: 17px; }
.fleet-illustration { width: 56px; height: 56px; color: #3c4bdc; background: #ecefff; }
.fleet-summary strong { font-size: 21px; }
.fleet-summary small, .fleet-summary p { font-size: 9px; }
.vehicle-grid { gap: 14px; padding: 4px 20px 20px; }
.vehicle-card { padding: 17px; border-radius: 17px; }
.vehicle-card h3 { font-size: 20px; }
.vehicle-card > p, .assigned small, .vehicle-rate { font-size: 9px; }
.assigned strong { font-size: 10px; }
.big-truck { color: #3c4bdc; }

.formula-grid { gap: 14px; }
.formula-card { min-height: 205px; padding: 20px; border-radius: 19px; }
.formula-card.active { border-color: #adb5ff; box-shadow: inset 0 4px #3c4bdc; }
.formula-card h3 { font-size: 13px; }
.formula { min-height: 44px; background: #f2f3f8; }
.formula strong { font-size: 9px; }
.formula b { color: #ff7458; }
.formula-card > p { font-size: 9px; }
.rate-row { min-height: 54px; font-size: 9px; }
.immutable-note { background: #eef0f6; }

.report-filters button,
.report-filters input { height: 39px; font-size: 9px; }
.report-hero {
  min-height: 185px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 78% 20%, rgba(217,255,114,.25), transparent 14rem),
    linear-gradient(135deg, #303cc1, #7254d9);
}
.report-hero h2 { color: white; font-size: 34px; }
.report-hero > div:first-child > span,
.report-hero p,
.report-donut small { color: #d8dcff; }
.report-donut { background: conic-gradient(var(--lime) 0 84%, rgba(255,255,255,.2) 84%); }
.report-donut::before { background: #4b45c7; }
.report-split p { border-color: rgba(255,255,255,.2); font-size: 9px; }
.report-split span { color: #d8dcff; }
.horizontal-chart div { min-height: 43px; font-size: 9px; }
.horizontal-chart i b { background: #3c4bdc; }

.role-grid { gap: 12px; }
.role-card { min-height: 160px; padding: 18px; border-radius: 18px; }
.role-card.super { background: linear-gradient(145deg, #3d4cdd, #272f9d); }
.role-icon { color: #3c4bdc; background: #ecefff; }
.super .role-icon { color: var(--lime); background: rgba(255,255,255,.15); }
.role-card h3 { font-size: 12px; }
.role-card p { font-size: 9px; }
.role-card > strong { color: #3c4bdc; font-size: 9px; }
.user-list > div { min-height: 65px; }
.user-list strong, .check-list strong { font-size: 10px; }
.user-list small, .check-list small { font-size: 8px; }

.audit-filter { border-color: var(--line); border-radius: 18px; }
.audit-filter > strong { font-size: 10px; }
.audit-filter button { min-height: 41px; font-size: 9px; }
.audit-filter button.active { color: #3341c7; background: #eaedff; }
.audit-stream { padding: 18px 24px 28px; }
.audit-day { font-size: 9px; }
.audit-event { min-height: 88px; }
.audit-event strong { font-size: 10px; }
.audit-event small, .audit-event blockquote { font-size: 8px; }

.mobile-showcase {
  min-height: 720px;
  padding: 42px 7%;
  border-radius: 28px;
  grid-template-columns: 370px 1fr;
  background:
    radial-gradient(circle at 12% 15%, rgba(217,255,114,.25), transparent 22rem),
    radial-gradient(circle at 90% 80%, rgba(255,125,95,.22), transparent 20rem),
    linear-gradient(145deg, #2633ae, #6142c5);
}

.phone {
  width: 315px;
  height: 640px;
  border-color: #6670b5;
  background: #10142d;
  box-shadow: 0 36px 75px rgba(15, 18, 65, .4), inset 0 0 0 1px #8991c0;
}

.phone-notch { background: #10142d; }
.phone-screen { background: #f6f7fb; }
.driver-balance,
.estimate-hero { background: linear-gradient(145deg, #3f4dde, #6b50d9); }
.driver-balance h2,
.estimate-hero h2 { color: white; }
.new-trip-button { background: var(--lime); }
.new-trip-button > span:first-child,
.submit-trip,
.mobile-step-actions button.primary { background: #3c4bdc; border-color: #3c4bdc; }
.mobile-nav button.active { color: #3c4bdc; }
.step-progress i.active { background: #3c4bdc; }
.mobile-feature-copy .section-kicker { color: var(--lime); }
.mobile-feature-copy > h2 { font-size: clamp(30px, 3vw, 42px); }
.mobile-feature-copy > p { color: #d5d9ff; font-size: 11px; }
.feature-steps button { color: #c2c7f0; }
.feature-steps button:hover { background: rgba(255,255,255,.08); }
.feature-steps button.active { border-color: rgba(255,255,255,.24); background: rgba(255,255,255,.12); }
.feature-steps button > b { color: #d9dcff; background: rgba(255,255,255,.12); }
.feature-steps button.active > b { color: #263119; background: var(--lime); }
.feature-steps strong { font-size: 11px; }
.feature-steps small { color: #bbc0e8; font-size: 9px; }
.error-preview { border-color: rgba(255,160,140,.35); background: rgba(83,31,59,.42); }
.mobile-capabilities span { border-color: rgba(255,255,255,.25); color: #d7dafe; }

.drawer { background: #f8f9fc; }
.drawer-head { min-height: 80px; padding-inline: 23px; background: white; }
.drawer-head h2 { font-size: 21px; }
.drawer-body { padding: 19px 23px; }
.calculation-card { border-radius: 16px; }
.calc-total strong { color: #3c4bdc; }
.decision-note textarea { font-size: 10px; }
.drawer-actions { min-height: 74px; padding: 14px 23px; }

.action-dialog { border-radius: 22px; }
.action-dialog form { padding: 24px; }
.dialog-head h2 { font-size: 22px; }
.dialog-description { font-size: 10px; }
.dialog-fields label > span { font-size: 9px; }
.dialog-fields input, .dialog-fields textarea { font-size: 10px; }
.toast, .error-toast { border-radius: 17px; }

@media (max-width: 1200px) {
  :root { --sidebar: 220px; }
  .panel { padding-inline: 24px; }
  .topbar, .demo-ribbon { padding-inline: 24px; }
  .mobile-showcase { padding-inline: 4%; grid-template-columns: 340px 1fr; }
}

@media (max-width: 980px) {
  :root { --sidebar: 0px; }
  .sidebar { width: 248px; box-shadow: 18px 0 55px rgba(26, 32, 75, .16); }
  .brand strong { color: var(--ink); }
  .sidebar-close { color: var(--ink) !important; }
  .mobile-showcase { grid-template-columns: 320px 1fr; }
}

@media (max-width: 760px) {
  .topbar { height: 68px; padding-inline: 15px; }
  .topbar-title h1 { font-size: 17px; }
  .demo-ribbon { padding: 9px 15px; }
  .panel { padding: 25px 15px 50px; }
  .page-intro { margin-bottom: 22px; }
  .page-intro h2 { font-size: 25px; }
  .page-intro p { font-size: 11px; }
  .stat-grid, .stat-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-card { min-height: 145px; padding: 17px; }
  .stat-card h3 { font-size: 23px; }
  .dashboard-grid { gap: 14px; }
  .mobile-showcase { padding: 34px 14px; grid-template-columns: 1fr; gap: 48px; }
  .mobile-feature-copy { padding-inline: 10px; }
  .mobile-feature-copy > h2 { font-size: 30px; }
}

@media (max-width: 520px) {
  .stat-grid, .stat-grid.three { grid-template-columns: 1fr; }
  .stat-card { min-height: 136px; }
  .intro-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .phone { width: min(315px, calc(100vw - 48px)); height: 625px; }
  .mobile-showcase { border-radius: 22px; }
  .feature-steps button { padding-inline: 8px; }
}

/* ==========================================================================
   SINGLE PRIMARY SYSTEM — ProSync blue + purposeful motion
   ========================================================================== */

:root {
  --primary: #0874ca;
  --primary-hover: #0562ad;
  --primary-strong: #07589a;
  --primary-soft: #eaf4ff;
  --primary-pale: #f4f9fd;
  --ink: #102d4c;
  --ink-2: #244864;
  --forest: var(--primary);
  --forest-2: var(--primary-hover);
  --blue: var(--primary);
  --blue-soft: var(--primary-soft);
  --violet: var(--primary);
  --lime: var(--primary);
  --lime-soft: var(--primary-soft);
  --green: #0d8f7f;
  --orange: #d88118;
  --canvas: #f5f8fb;
  --paper: #ffffff;
  --line: #dfe8ef;
  --muted: #657d90;
  --muted-2: #93a4b2;
  --shadow: 0 14px 34px rgba(16, 69, 105, .07);
}

body {
  background:
    radial-gradient(circle at 92% 2%, rgba(8, 116, 202, .08), transparent 24rem),
    var(--canvas);
}

:focus-visible { outline-color: var(--primary); }

.brand-mark,
.avatar-dark,
.button.primary,
.filter-chips button.active,
.submit-trip,
.mobile-step-actions button.primary {
  background: var(--primary);
  border-color: var(--primary);
}

.brand-mark {
  box-shadow: 0 9px 22px rgba(8, 116, 202, .22);
}

.nav-item:hover {
  color: var(--primary-hover);
  background: var(--primary-pale);
  transform: translateX(2px);
}

.nav-item.active {
  color: var(--primary-strong);
  background: var(--primary-soft);
}

.nav-item.active::before,
.nav-count { background: var(--primary); }
.nav-item.active svg { color: var(--primary); }
.nav-dot { background: var(--primary); box-shadow: 0 0 0 3px rgba(8, 116, 202, .12); }

.demo-badge,
.demo-ribbon > span,
.platform-pills b {
  color: white;
  background: var(--primary);
}

.demo-ribbon {
  border-color: #d7e8f5;
  background: #f4f9fd;
}

.demo-ribbon p { color: #527087; }
.section-kicker,
.text-button,
.stat-link,
.trip-id,
.calc-total strong { color: var(--primary); }

.button.primary {
  box-shadow: 0 9px 20px rgba(8, 116, 202, .2);
}

.button.primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: 0 12px 26px rgba(8, 116, 202, .25);
  transform: translateY(-1px);
}

.card,
.stat-card {
  border-color: var(--line);
  box-shadow: var(--shadow);
  transition: transform 220ms cubic-bezier(.2,.7,.2,1), box-shadow 220ms ease, border-color 220ms ease;
}

.card:hover,
.stat-card:hover {
  border-color: #c8dce9;
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(16, 69, 105, .11);
}

.stat-card:first-child {
  background:
    radial-gradient(circle at 105% -20%, rgba(255, 255, 255, .22), transparent 46%),
    linear-gradient(135deg, var(--primary), var(--primary-strong));
  box-shadow: 0 18px 36px rgba(8, 96, 165, .2);
}

.stat-card:first-child > p,
.stat-card:first-child > small { color: #d8edfc; }
.stat-card:first-child .trend { color: var(--primary-strong); background: white; }

.stat-icon.green,
.stat-icon.orange,
.stat-icon.yellow,
.stat-icon.blue,
.approval-icon,
.role-icon,
.fleet-illustration,
.capacity-icon {
  color: var(--primary);
  background: var(--primary-soft);
}

.chart-bars i { background: linear-gradient(#48a2e4, var(--primary)); }
.legend i.legend-current,
.horizontal-chart i b { background: var(--primary); }
.capacity-strip,
.scope-anchor { border-color: #cfe2f1; background: var(--primary-pale); }
.notice.info { color: var(--primary-strong); border-color: #cfe2f1; background: var(--primary-pale); }
.mini-info > span,
.formula b { color: var(--primary); }
.big-truck,
.orange-truck,
.blue-truck { color: var(--primary); }
.formula-card.active { border-color: #8bc4ec; box-shadow: inset 0 4px var(--primary); }
.audit-filter button.active { color: var(--primary-strong); background: var(--primary-soft); }

.report-hero {
  background:
    radial-gradient(circle at 78% 20%, rgba(255,255,255,.16), transparent 14rem),
    linear-gradient(135deg, #07558f, var(--primary));
}

.report-donut { background: conic-gradient(#8fd0ff 0 84%, rgba(255,255,255,.2) 84%); }
.report-donut::before { background: #0767ad; }
.role-card.super { background: linear-gradient(145deg, var(--primary), #07558f); }
.super .role-icon { color: var(--primary); background: white; }

.mobile-showcase {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 14% 12%, rgba(100, 185, 243, .28), transparent 22rem),
    radial-gradient(circle at 88% 86%, rgba(8, 116, 202, .22), transparent 21rem),
    linear-gradient(145deg, #062f51, #075e9f 58%, var(--primary));
}

.mobile-showcase::before {
  position: absolute;
  z-index: -1;
  width: 24rem;
  height: 24rem;
  content: "";
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  top: -11rem;
  right: -7rem;
  box-shadow: 0 0 0 3rem rgba(255,255,255,.035), 0 0 0 7rem rgba(255,255,255,.025);
  animation: ambient-orbit 9s ease-in-out infinite;
}

.phone {
  border-color: #4d7796;
  background: #061b2d;
  box-shadow: 0 36px 75px rgba(3, 28, 48, .45), inset 0 0 0 1px #6e92ab;
}

.phone-notch { background: #061b2d; }
.driver-balance,
.estimate-hero { background: linear-gradient(145deg, var(--primary), var(--primary-strong)); }

.new-trip-button {
  color: white;
  background: var(--primary);
  box-shadow: 0 9px 20px rgba(8, 116, 202, .22);
}

.new-trip-button small { color: #d7ecfb; }
.new-trip-button > span:first-child { color: var(--primary); background: white; }
.new-trip-button > svg { color: white; }
.mobile-nav button.active,
.step-progress i.active { color: var(--primary); }
.step-progress i.active { background: var(--primary); }
.mobile-feature-copy .section-kicker { color: #8fd0ff; }
.mobile-feature-copy > p,
.feature-steps button,
.feature-steps small,
.mobile-capabilities span { color: #d3e8f7; }
.feature-steps button.active > b { color: var(--primary-strong); background: white; }
.feature-steps button > b { color: #d8ecfa; background: rgba(255,255,255,.11); }
.feature-steps button.active { border-color: rgba(255,255,255,.27); background: rgba(255,255,255,.11); }
.mobile-capabilities span { border-color: rgba(255,255,255,.22); }

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes card-rise {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes phone-enter {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes shadow-breathe {
  0%, 100% { opacity: .72; transform: scaleX(.92); }
  50% { opacity: 1; transform: scaleX(1.06); }
}

@keyframes nav-pop {
  0% { transform: scale(.72); }
  65% { transform: scale(1.16); }
  100% { transform: scale(1); }
}

@keyframes pin-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(8,116,202,.24); }
  50% { box-shadow: 0 0 0 9px rgba(8,116,202,0); }
}

@keyframes ambient-orbit {
  0%, 100% { transform: translate3d(0,0,0) scale(1); opacity: .8; }
  50% { transform: translate3d(-12px,12px,0) scale(1.04); opacity: 1; }
}

.panel.active .page-intro { animation: reveal-up 440ms cubic-bezier(.2,.75,.2,1) both; }
.panel.active .stat-card,
.panel.active .dashboard-grid > .card,
.panel.active .vehicle-card,
.panel.active .formula-card,
.panel.active .role-card { animation: card-rise 460ms cubic-bezier(.2,.75,.2,1) both; }
.panel.active .stat-card:nth-child(2),
.panel.active .vehicle-card:nth-child(2),
.panel.active .formula-card:nth-child(2),
.panel.active .role-card:nth-child(2) { animation-delay: 55ms; }
.panel.active .stat-card:nth-child(3),
.panel.active .vehicle-card:nth-child(3),
.panel.active .formula-card:nth-child(3),
.panel.active .role-card:nth-child(3) { animation-delay: 110ms; }
.panel.active .stat-card:nth-child(4) { animation-delay: 165ms; }
.panel.active .phone { animation: phone-enter 620ms cubic-bezier(.2,.75,.2,1) both; }
.phone-shadow { animation: shadow-breathe 4.5s ease-in-out infinite; }
.mobile-nav button.active svg { animation: nav-pop 360ms cubic-bezier(.2,.8,.2,1); }
.current-pin { border-color: rgba(8,116,202,.2); background: rgba(8,116,202,.12); animation: pin-pulse 2.2s ease-out infinite; }
.current-pin i { background: var(--primary); }
.route-path,
.detail-route { border-color: var(--primary); }

@media (prefers-reduced-motion: reduce) {
  .panel.active .phone,
  .phone-shadow,
  .mobile-showcase::before,
  .current-pin,
  .mobile-nav button.active svg,
  .panel.active .page-intro,
  .panel.active .stat-card,
  .panel.active .dashboard-grid > .card,
  .panel.active .vehicle-card,
  .panel.active .formula-card,
  .panel.active .role-card {
    animation: none !important;
    transform: none !important;
  }
}
