:root { --ink:#151e33; --muted:#586481; --faint:#f4f6fb; --line:#e0e5f0; --surface:#fff; --primary:#4338d7; --primary-dark:#362db9; --tint:#eeedff; --teal:#086448; --mint:#e1f5ee; --amber:#845008; --honey:#fff0d6; --rose:#9f2b48; --pink:#fbe8ee; --navy:#192544; --shadow:0 12px 32px rgb(34 35 82 / .08); --radius:14px; --side:218px; }
  * { box-sizing:border-box; }
  html { min-width:320px; background:var(--faint); }
  body { margin:0; color:var(--ink); font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif; }
  h1,h2,h3,p { margin:0; }
  h1 { font-size:clamp(28px,3vw,42px); font-weight:650; letter-spacing:-.043em; line-height:1.12; }
  h2 { font-size:21px; font-weight:670; letter-spacing:-.026em; line-height:1.24; }
  h3 { font-size:15px; font-weight:680; line-height:1.31; }
  button,input,select,textarea { font:inherit; }
  button,select { cursor:pointer; }
  button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline:3px solid #6c63ea; outline-offset:3px; }
  button[disabled] { opacity:.55; cursor:default; }
  a { color:var(--primary); }
  .icon { width:18px; height:18px; flex:none; vertical-align:middle; }
  .btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:38px; border:1px solid var(--line); background:white; padding:7px 12px; border-radius:8px; color:var(--ink); font-weight:630; text-align:center; text-decoration:none; white-space:nowrap; }
  .btn:hover { border-color:#b9bbd4; background:#f9f9ff; }
  .btn.primary { color:white; background:var(--primary); border-color:var(--primary); }
  .btn.primary:hover { background:var(--primary-dark); }
  .btn.flat { border-color:transparent; color:var(--primary); background:transparent; }
  .btn.flat:hover { background:var(--tint); }
  .btn.danger { color:var(--rose); }
  .btn.small { min-height:32px; padding:5px 9px; font-size:12px; }
  .btn.large { min-height:47px; padding-inline:17px; }
  .section-button { display:flex; text-align:left; gap:9px; align-items:center; border:0; padding:9px 10px; background:transparent; border-radius:8px; color:var(--muted); font-weight:590; min-height:38px; }
  .section-button:hover,.section-button[aria-current="page"] { color:var(--primary); background:var(--tint); }
  .section-button:focus-visible { outline-offset:0; }
  .brand { display:flex; flex:none; align-items:center; text-align:left; gap:11px; color:var(--ink); padding:0; border:0; background:none; }
  .brand-mark { width:34px; height:34px; display:grid; place-items:center; background:var(--primary); border-radius:10px; box-shadow:0 6px 12px rgb(67 56 215 / .22); color:white; }
  .brand-mark .icon { width:22px; height:22px; }
  .brand b { font-size:14px; font-weight:720; letter-spacing:-.023em; display:block; line-height:1.17; }
  .brand small { display:block; font-size:11px; color:var(--muted); font-weight:550; margin-top:4px; }
  .row { display:flex; gap:9px; align-items:center; flex-wrap:wrap; }
  .row.spread { justify-content:space-between; }
  .right { justify-content:flex-end; }
  .muted { color:var(--muted); }
  .sub { font-size:12px; color:var(--muted); }
  .em { font-weight:660; }
  .nowrap { white-space:nowrap; }
  .mt { margin-top:16px; }
  .note { border:1px solid #dad8fb; background:#f6f5ff; padding:12px 13px; border-radius:10px; color:#4a4386; }
  .note.error { border-color:#edd0d9; background:#fff6f8; color:var(--rose); }
  .badge { display:inline-flex; align-items:center; border-radius:6px; padding:3px 7px; white-space:nowrap; font-size:11px; font-weight:670; background:#eef1f7; color:#45516d; }
  .badge.active { background:var(--tint); color:#4134aa; }
  .badge.good { background:var(--mint); color:var(--teal); }
  .badge.wait { background:var(--honey); color:var(--amber); }
  .badge.bad { background:var(--pink); color:var(--rose); }
  .website { background:#fff; }
  .public-header { max-width:1260px; padding:16px clamp(16px,4.3vw,50px); display:flex; justify-content:space-between; gap:18px; align-items:center; margin:auto; }
  .hero { border-top:1px solid var(--line); background:radial-gradient(ellipse at 75% 34%,#ecebff 0%,transparent 55%),#f7f8fd; overflow:hidden; }
  .hero-grid { max-width:1260px; margin:auto; padding:clamp(46px,6.6vw,92px) clamp(16px,4.3vw,50px); display:grid; grid-template-columns:minmax(0,1.06fr) minmax(0,1fr); gap:clamp(22px,6.5vw,90px); align-items:center; }
  .hero-tag { display:inline-flex; align-items:center; gap:8px; padding:6px 10px; border:1px solid #dcdafa; border-radius:7px; background:#f2f1ff; color:#4540a2; font-size:12px; font-weight:680; margin-bottom:18px; }
  .hero h1 { font-size:clamp(38px,5.25vw,73px); letter-spacing:-.06em; line-height:1.02; max-width:12em; }
  .hero h1 span { color:var(--primary); }
  .hero p { color:var(--muted); margin:21px 0; font-size:clamp(15px,1.55vw,19px); max-width:30em; line-height:1.56; }
  .workspace-header { display:flex; align-items:center; justify-content:space-between; padding:13px clamp(12px,2.15vw,34px); gap:11px; background:white; border-bottom:1px solid var(--line); min-height:64px; }
  .profile { display:inline-flex; align-items:center; gap:8px; font-weight:630; }
  .avatar { width:32px; height:32px; border-radius:9px; background:var(--tint); color:var(--primary); display:inline-grid; place-items:center; font-weight:730; }
  .workspace { min-height:calc(100vh - 110px); display:grid; grid-template-columns:var(--side) minmax(0,1fr); }
  .workspace.no-sidebar { display:block; }
  .sidebar { display:flex; flex-direction:column; gap:4px; padding:19px 12px; border-right:1px solid var(--line); background:#fbfcff; }
  .sidebar .section-button { width:100%; }
  .shell { max-width:1430px; padding:clamp(18px,2.3vw,36px); margin:auto; }
  .dispatch-shell { max-width:none; padding:clamp(14px,1.75vw,30px); }
  .heading { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:21px; }
  .heading p { margin-top:6px; }
  .heading .sub { font-size:14px; }
  .panel { background:white; border:1px solid var(--line); padding:clamp(14px,1.4vw,21px); border-radius:var(--radius); }
  .panel.flat { padding:0; overflow:hidden; }
  .panel + .panel { margin-top:14px; }
  .g2,.g3,.g4,.record-layout { display:grid; gap:14px; }
  .g2 { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .g3 { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .g4 { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .record-layout { grid-template-columns:minmax(0,1.65fr) minmax(0,1fr); }
  .record-layout > div { min-width:0; }
  .g2 > .panel,.g3 > .panel,.g4 > .panel { margin:0; }
  .metric { padding:14px 16px; border:1px solid var(--line); border-radius:11px; background:#fff; }
  .metric b { display:block; font-size:clamp(19px,2.05vw,27px); letter-spacing:-.04em; font-weight:690; font-variant-numeric:tabular-nums; margin:4px 0 0; }
  .metric small { font-size:11px; color:var(--muted); }
  .metric .icon { color:var(--primary); }
  .countbar { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:1px; border:1px solid var(--line); background:var(--line); border-radius:11px; overflow:hidden; margin-bottom:14px; }
  .countbar button { display:flex; justify-content:space-between; align-items:center; gap:8px; border:0; background:#fff; color:var(--muted); text-align:left; padding:11px 13px; font-size:12px; font-weight:620; white-space:nowrap; }
  .countbar button:hover,.countbar button[aria-pressed="true"] { background:var(--tint); color:var(--primary); }
  .countbar b { color:var(--ink); font-variant-numeric:tabular-nums; }
  .toolbar { padding:11px 13px; border-bottom:1px solid var(--line); display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
  .toolbar > .grow { flex:1; min-width:170px; }
  .table-scroll { overflow-x:auto; }
  table { width:100%; border-collapse:collapse; text-align:left; font-variant-numeric:tabular-nums; }
  caption { text-align:left; }
  th { background:#f8f9fd; text-align:left; font-size:11px; font-weight:680; color:var(--muted); white-space:nowrap; }
  th,td { border-bottom:1px solid var(--line); padding:10px 12px; }
  tbody tr:last-child td { border-bottom:0; }
  tbody tr:hover { background:#f8f9ff; }
  .dispatch-table td { white-space:nowrap; font-size:12px; }
  .dispatch-table td:nth-child(3) { min-width:145px; }
  .dispatch-table td:last-child { white-space:normal; min-width:155px; }
  .table-link { background:none; padding:0; border:0; color:var(--primary); font-weight:680; text-align:left; text-decoration:underline; text-decoration-color:#c8c0ff; text-underline-offset:3px; }
  .client-list { display:grid; gap:10px; }
  .job { display:grid; grid-template-columns:minmax(0,1.75fr) minmax(0,1fr) auto; align-items:center; gap:13px; padding:14px 16px; border:1px solid var(--line); border-radius:11px; background:white; }
  .job .row .right { margin-left:auto; }
  .job .job-title { font-size:16px; letter-spacing:-.025em; color:var(--ink); }
  .job p { margin-top:3px; }
  .key-value { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px 10px; margin:0; }
  .key-value dt { font-size:12px; color:var(--muted); }
  .key-value dd { margin:2px 0 0; font-weight:580; overflow-wrap:anywhere; }
  .steps { display:flex; flex-wrap:wrap; gap:6px; padding:0; margin:12px 0 0; list-style:none; }
  .steps li { border-radius:6px; padding:4px 8px; color:var(--muted); background:#f2f4f9; font-size:11px; }
  .steps .done { color:var(--teal); background:var(--mint); }
  .steps .current { color:var(--primary); background:var(--tint); font-weight:730; }
  .timeline { margin:13px 0 0; padding:0; list-style:none; }
  .timeline li { position:relative; padding:0 0 12px 17px; border-left:1px solid #dcdff0; margin-left:4px; }
  .timeline li::before { content:""; position:absolute; width:7px; height:7px; background:#9a93ef; left:-4px; top:7px; border-radius:50%; }
  .timeline li:last-child { padding-bottom:0; border-left-color:transparent; }
  .timeline span { display:block; }
  .quote-total { padding:13px 12px; border-radius:8px; background:#f1efff; margin:11px 0; }
  .quote-total b { font-size:22px; color:#3e32be; }
  .empty { border:1px dashed #cfd5e7; color:var(--muted); border-radius:10px; padding:20px 16px; background:#f9faff; }
  label { display:grid; gap:5px; font-size:12px; color:#3c4864; font-weight:640; align-content:start; }
  input,select,textarea { width:100%; min-height:37px; border:1px solid #cfd6e7; border-radius:8px; background:white; color:var(--ink); padding:7px 9px; }
  input[type="checkbox"] { width:17px; min-height:17px; margin:0; }
  textarea { min-height:76px; resize:vertical; }
  fieldset { border:0; padding:0; min-width:0; margin:0; }
  legend { width:100%; font-size:16px; font-weight:680; padding:0 0 10px; }
  .form-grid { display:grid; gap:11px; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .form-grid .wide { grid-column:1 / -1; }
  .request-form { max-width:900px; }
  .request-form fieldset + fieldset { margin-top:16px; padding-top:14px; border-top:1px solid var(--line); }
  .request-form legend { padding-bottom:12px; }
  .field-inline { display:flex; align-items:center; gap:7px; }
  .form-actions { margin-top:15px; }
  details { margin-top:10px; }
  summary { color:var(--primary); font-weight:610; cursor:pointer; }
  details > div { margin-top:10px; }
  .barline { display:grid; grid-template-columns:minmax(115px,1fr) minmax(70px,1fr) auto; align-items:center; gap:10px; padding:10px 0; }
  .barline + .barline { border-top:1px solid var(--line); }
  .bar-track { height:8px; background:#eeedfa; border-radius:99px; overflow:hidden; }
  .bar-track span { display:block; height:100%; background:#6861e2; border-radius:99px; }
  .modal { width:min(620px,calc(100% - 24px)); max-height:calc(100% - 24px); padding:0; border:1px solid var(--line); border-radius:16px; box-shadow:0 24px 80px #11193242; color:var(--ink); }
  .modal::backdrop { background:#151e335c; }
  .modal-head,.modal-body { padding:16px 21px; }
  .modal-head { border-bottom:1px solid var(--line); }
  #toast { position:fixed; right:16px; bottom:16px; z-index:20; padding:11px 15px; max-width:min(420px,calc(100% - 32px)); border-radius:9px; color:white; background:#263454; box-shadow:var(--shadow); }
  #toast:empty { display:none; }
  [hidden] { display:none!important; }

.public-header { flex-wrap:wrap; }
.hero-grid { min-height:calc(100vh - 74px); }
.hero h1 { max-width:13em; }
.hero .login-card p { margin:7px 0 15px; font-size:14px; }
.login-card { box-shadow:var(--shadow); max-width:470px; width:100%; justify-self:end; }
.login-card label + label { margin-top:12px; }
.login-card .btn.primary { margin-top:16px; }
.test-logins { display:flex; flex-wrap:wrap; gap:7px; }
.test-logins .btn { flex:1; }
.hero .details-note { margin:14px 0 0; font-size:13px; }
.workspace-header .right { margin-left:auto; }
.workspace-header .brand { min-width:0; flex-shrink:1; }
.sidebar { position:sticky; top:0; align-self:start; }
.panel h2 + .key-value, .panel h2 + .table-scroll { margin-top:12px; }
.form-grid .file-field { grid-column:1 / -1; }
.actions + .actions { margin-top:8px; }
.table-scroll a, .sidebar a { color:inherit; }
.page-note { max-width:1430px; margin:auto; padding:24px; }
.notice { width:min(520px,calc(100% - 32px)); }
.inline-errors { margin-bottom:12px; }
.label-small { font-size:11px; }
.coarse { white-space:normal; }
.segmented-select { width:auto; }
.table-scroll td .sub { white-space:normal; }
.status-cell { min-width:136px; }
.button-grid { display:flex; flex-wrap:wrap; gap:8px; }
.nav-count { margin-inline-start:auto; }
.inbox-list { display:grid; gap:10px; }
.inbox-list .inbox-item { margin-top:0; }
.inbox-item.unread { border-color:#c8c4fa; }
.telegram-body { margin:10px 0; white-space:pre-wrap; overflow-wrap:anywhere; }
.rating-list article + article { border-top:1px solid var(--line); margin-top:10px; padding-top:10px; }
.message-body { margin-block:8px; white-space:pre-wrap; overflow-wrap:anywhere; }
.offer-table td { min-width:90px; }
.offer-table td:nth-child(3) { min-width:160px; }
.login-card input { background:#fff; }
.dispatch-table td:nth-child(3) { min-width:145px; }
.dispatch-table td:last-child { white-space:nowrap; min-width:0; }
.carrier-trip-group + .carrier-trip-group { margin-top:22px; }
.carrier-trip-group h2 { margin-bottom:10px; }
.carrier-trip-next { color:var(--ink); font-weight:650; }
.carrier-progress { margin-bottom:16px; }
.carrier-progress h2:focus { outline:none; }
.carrier-steps { margin-bottom:14px; }
.carrier-steps li { padding:5px 9px; font-size:12px; }
.carrier-progress-next { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px 18px; padding:13px 15px; border-radius:10px; background:var(--faint); }
.carrier-progress-next div { flex:1 1 270px; }
.carrier-progress-next strong { display:block; font-size:16px; }
.carrier-progress-next strong + p { margin-top:4px; }
.carrier-progress-next p { color:var(--muted); }
.carrier-other-actions { margin-top:14px; }
.carrier-other-actions summary { cursor:pointer; font-weight:650; }
.work-search { display:flex; flex-wrap:wrap; align-items:flex-end; gap:8px; margin-bottom:16px; }
.work-search label { flex:1 1 200px; min-width:0; }
.work-filters { margin-bottom:16px; }
.work-filters summary { cursor:pointer; font-weight:650; }
.work-all-clear { margin-top:10px; color:var(--muted); }
.order-shortcuts { margin-top:8px; }
.order-section { margin-bottom:14px; scroll-margin-top:12px; }
.offer-cards,.case-list { display:grid; gap:10px; margin-top:12px; }
.offer-cards { grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr)); }
.offer-card,.case-card { display:grid; align-content:start; gap:9px; border:1px solid var(--line); padding:13px; border-radius:10px; }
.offer-card h3,.case-card h3 { overflow-wrap:anywhere; }
.offer-card .btn { justify-self:start; }
.offer-price { font-size:19px; }
.offer-conditions { white-space:pre-wrap; overflow-wrap:anywhere; }
.case-card .message-body,.case-card .mt { margin-block:0; }
.automation-stack { display:grid; gap:14px; }
.automation-stack > .panel { margin:0; }
.automation-metrics { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr)); gap:10px; }
.automation-demo { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
.automation-demo > div { flex:1 1 270px; }
.automation-demo .sub { margin-top:4px; font-size:14px; }
.automation-card .message-body { overflow-wrap:anywhere; }
.monitor-list { margin-top:10px; }
.monitor-row { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:5px 14px; padding:10px 0; border-top:1px solid var(--line); }
.monitor-row h3 { overflow-wrap:anywhere; }
.shipment-examples { margin-bottom:14px; }
@media(max-width:1050px) { :root { --side:170px; } .g4 { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:830px) {
  .workspace { display:block; }
  .sidebar { display:flex; position:static; flex-direction:row; overflow:auto; padding:7px 12px; border-right:0; border-bottom:1px solid var(--line); }
  .sidebar .section-button { width:auto; white-space:nowrap; }
  .record-layout { grid-template-columns:1fr; }
  .countbar { overflow-x:auto; grid-template-columns:repeat(5,minmax(116px,1fr)); }
  .hero-grid { min-height:0; }
}
@media(max-width:640px) {
  .hero-grid { grid-template-columns:1fr; padding-top:32px; }
  .hero h1 { font-size:clamp(35px,8.5vw,47px); }
  .hero p { margin-block:13px; }
  .login-card { justify-self:stretch; max-width:none; }
  .public-header { gap:9px; }
  .public-header .btn { min-height:35px; padding:5px 8px; font-size:12px; }
  .brand b { font-size:12px; }
  .brand small { font-size:10px; }
  .brand-mark { width:31px; height:31px; }
  .workspace-header { align-items:flex-start; flex-wrap:wrap; }
  .workspace-header .profile { font-size:11px; }
  .heading { margin-bottom:14px; }
  .g3, .g2.stack, .form-grid.form-stack { grid-template-columns:1fr; }
  .job { grid-template-columns:1fr auto; }
  .job > :nth-child(2) { grid-row:2; grid-column:1/-1; }
  .carrier-trip { grid-template-columns:1fr; gap:8px; }
  .carrier-trip > :nth-child(2) { grid-row:auto; grid-column:auto; }
  .carrier-trip .btn,.carrier-progress-next .btn { width:100%; min-height:44px; white-space:normal; }
  .modal-head,.modal-body { padding:12px; }
}
@media(prefers-reduced-motion:no-preference) { .btn,.section-button { transition:background .15s,border-color .15s; } }

.registration-nav { display:flex; flex-wrap:wrap; gap:7px; margin-top:16px; }
.registration-checks,.registration-consents { display:grid; gap:7px; }
.registration-card { max-width:620px; }
.registration-card label + label { margin-top:0; }
.registration-card .registration-consents details { margin-top:0; }
.registration-card .registration-consents p { margin:6px 0; font-size:12px; }
.hero-registration { align-items:start; }
@media (min-width:850px) {
  .hero-registration { grid-template-columns:minmax(0,.78fr) minmax(0,1.22fr); }
}
