:root{
  --agent-navy:#0f2f57;
  --agent-navy-2:#174b80;
  --agent-blue:#1e73d8;
  --agent-blue-soft:#eaf3ff;
  --agent-bg:#f4f7fb;
  --agent-surface:#ffffff;
  --agent-text:#13243a;
  --agent-muted:#65758b;
  --agent-line:#dfe7f1;
  --agent-shadow:0 18px 46px rgba(31,53,83,.10);
  --agent-radius:22px;
  --agent-green:#168a55;
  --agent-red:#c94949;
  --agent-amber:#b97a13;
  --agent-cyan:#1682a8;
}
*{box-sizing:border-box}
html{min-width:0;background:var(--agent-bg)}
body{margin:0;min-width:0;color:var(--agent-text);background:var(--agent-bg);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
button,input,textarea,select{font:inherit}
svg{display:block;width:100%;height:100%;fill:currentColor}
.agent-eyebrow{display:inline-block;color:#6faaf0;font-size:.75rem;line-height:1.2;font-weight:800;letter-spacing:.13em;text-transform:uppercase}
.agent-brand{display:inline-flex;align-items:center;gap:13px;color:#fff}
.agent-brand-mark{display:grid;place-items:center;width:48px;height:48px;padding:12px;border-radius:15px;color:#fff;background:linear-gradient(145deg,#2588ec,#1769c7);box-shadow:0 12px 26px rgba(14,105,203,.27)}
.agent-brand strong,.agent-brand small{display:block}.agent-brand strong{font-size:1.08rem}.agent-brand small{margin-top:2px;color:rgba(255,255,255,.68);font-size:.72rem;letter-spacing:.08em;text-transform:uppercase}
.agent-brand-compact .agent-brand-mark{width:42px;height:42px;border-radius:13px;padding:10px}.agent-brand-compact strong{font-size:1rem}.agent-brand-compact small{font-size:.68rem}

/* Login */
.agent-auth-page{min-height:100vh;background:linear-gradient(120deg,#092746 0%,#123f70 48%,#f4f7fb 48%,#f4f7fb 100%)}
.agent-auth-shell{min-height:100vh;width:min(1180px,calc(100% - 40px));margin:0 auto;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(390px,.95fr);align-items:center;gap:72px;padding:56px 0}
.agent-auth-brand{color:#fff;max-width:610px}.agent-auth-copy{margin:70px 0 40px}.agent-auth-copy h1{margin:10px 0 15px;font-size:clamp(2.7rem,5vw,4.6rem);line-height:.98;letter-spacing:-.045em}.agent-auth-copy p{max-width:600px;margin:0;color:rgba(255,255,255,.78);font-size:1.08rem;line-height:1.75}.agent-auth-points{display:flex;flex-wrap:wrap;gap:10px}.agent-auth-points span{padding:9px 13px;border:1px solid rgba(255,255,255,.16);border-radius:999px;background:rgba(255,255,255,.07);color:rgba(255,255,255,.82);font-size:.82rem;font-weight:700}
.agent-auth-card{width:100%;max-width:500px;justify-self:end;padding:34px;border:1px solid rgba(217,226,237,.95);border-radius:28px;background:rgba(255,255,255,.96);box-shadow:0 28px 80px rgba(19,42,69,.18)}
.agent-auth-card-head{display:flex;gap:14px;align-items:center;margin-bottom:27px}.agent-mini-mark{display:grid;place-items:center;flex:0 0 48px;height:48px;border-radius:15px;background:var(--agent-blue-soft);color:var(--agent-blue);font-weight:900}.agent-auth-card h2{margin:5px 0 0;font-size:1.5rem;letter-spacing:-.025em}.agent-auth-help{padding-top:22px;margin-top:24px;border-top:1px solid var(--agent-line);color:var(--agent-muted);font-size:.88rem;line-height:1.55}.agent-auth-help p{margin:0 0 8px}.agent-auth-help a{color:var(--agent-blue);font-weight:800}

/* Shared form */
.agent-form{display:grid;gap:18px}.agent-field{min-width:0}.agent-field label{display:flex;justify-content:space-between;gap:8px;margin:0 0 7px;color:#34465d;font-size:.82rem;font-weight:800}.agent-field label span{color:#8795a7;font-weight:600}.agent-field input,.agent-field textarea,.agent-field select{display:block;width:100%;min-width:0;border:1px solid #ced9e7;border-radius:12px;background:#fff;color:var(--agent-text);outline:0;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}.agent-field input,.agent-field select{height:46px;padding:0 13px}.agent-field textarea{min-height:112px;padding:12px 13px;resize:vertical}.agent-field input[type=file]{height:auto;padding:10px}.agent-field input:focus,.agent-field textarea:focus,.agent-field select:focus{border-color:#6ca8e8;box-shadow:0 0 0 4px rgba(38,126,219,.12)}.agent-password-wrap{position:relative}.agent-password-wrap input{padding-right:70px}.agent-password-toggle{position:absolute;top:5px;right:6px;height:36px;padding:0 11px;border:0;border-radius:9px;background:#edf3fa;color:#31506f;font-size:.78rem;font-weight:800;cursor:pointer}
.agent-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:43px;padding:0 16px;border:1px solid transparent;border-radius:11px;font-weight:800;font-size:.86rem;line-height:1;cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,background .16s ease,border-color .16s ease}.agent-btn:hover{transform:translateY(-1px)}.agent-btn-primary{background:linear-gradient(135deg,#227fdf,#176ac9);color:#fff;box-shadow:0 9px 20px rgba(24,108,202,.19)}.agent-btn-primary:hover{box-shadow:0 12px 24px rgba(24,108,202,.25)}.agent-btn-soft{border-color:#d5e3f2;background:#f4f8fd;color:#245f9a}.agent-btn-ghost{border-color:#d9e2ec;background:#fff;color:#375169}.agent-btn-success{background:#17875a;color:#fff}.agent-btn-small{min-height:37px;padding:0 13px;font-size:.8rem}.agent-btn-block{width:100%;min-height:48px}
.agent-alert{padding:13px 15px;border:1px solid transparent;border-radius:13px;font-size:.88rem;font-weight:700;line-height:1.5}.agent-alert-danger{border-color:#efc9c9;background:#fff1f1;color:#9e3535}.agent-alert-success{border-color:#c9e7d9;background:#edf9f3;color:#246e4b}.agent-alert-info{border-color:#cddff0;background:#eff6fd;color:#315f86}

/* Dashboard */
.agent-topbar{position:sticky;top:0;z-index:50;border-bottom:1px solid rgba(211,222,235,.9);background:rgba(15,47,87,.96);backdrop-filter:blur(16px)}.agent-topbar-inner{width:min(1460px,calc(100% - 40px));height:74px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:24px}.agent-topbar-account{display:flex;align-items:center;gap:15px}.agent-account-copy{text-align:right}.agent-account-copy strong,.agent-account-copy span{display:block}.agent-account-copy strong{color:#fff;font-size:.88rem}.agent-account-copy span{margin-top:2px;color:rgba(255,255,255,.63);font-size:.75rem}.agent-topbar .agent-btn-ghost{border-color:rgba(255,255,255,.20);background:rgba(255,255,255,.08);color:#fff}
.agent-dashboard-shell{width:min(1460px,calc(100% - 40px));margin:0 auto;padding:34px 0 58px}.agent-dashboard-shell>.agent-alert{margin-bottom:20px}.agent-hero{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:30px;align-items:center;padding:34px 36px;border-radius:26px;background:linear-gradient(135deg,#102f56 0%,#1d548b 100%);color:#fff;box-shadow:var(--agent-shadow)}.agent-hero h1{margin:8px 0 8px;font-size:clamp(1.9rem,3.5vw,3rem);letter-spacing:-.04em}.agent-hero p{max-width:760px;margin:0;color:rgba(255,255,255,.75);line-height:1.65}.agent-identity-card{padding:18px;border:1px solid rgba(255,255,255,.15);border-radius:18px;background:rgba(255,255,255,.08)}.agent-identity-card span,.agent-identity-card strong,.agent-identity-card small{display:block}.agent-identity-card span{color:rgba(255,255,255,.60);font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.agent-identity-card strong{margin:5px 0 3px;font-size:1rem}.agent-identity-card small{color:rgba(255,255,255,.72)}
.agent-stat-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin:18px 0}.agent-stat-card{display:flex;align-items:center;gap:13px;min-width:0;padding:18px;border:1px solid var(--agent-line);border-radius:17px;background:#fff;box-shadow:0 9px 24px rgba(34,57,83,.055)}.agent-stat-icon{display:grid;place-items:center;flex:0 0 42px;height:42px;border-radius:13px;font-size:.72rem;font-weight:900}.agent-tone-blue{background:#e8f2ff;color:#1d70c7}.agent-tone-amber{background:#fff3d9;color:#a26a0c}.agent-tone-green{background:#e7f7ef;color:#157749}.agent-tone-cyan{background:#e6f6fa;color:#117c9d}.agent-tone-red{background:#fdebec;color:#b23b43}.agent-stat-card span:not(.agent-stat-icon),.agent-stat-card strong{display:block}.agent-stat-card span:not(.agent-stat-icon){color:var(--agent-muted);font-size:.74rem;font-weight:700}.agent-stat-card strong{margin-top:3px;font-size:1.35rem;letter-spacing:-.03em}
.agent-panel{margin-top:18px;overflow:hidden;border:1px solid var(--agent-line);border-radius:22px;background:#fff;box-shadow:0 12px 34px rgba(34,57,83,.065)}details.agent-panel>summary{list-style:none;cursor:pointer}details.agent-panel>summary::-webkit-details-marker{display:none}.agent-create-panel>summary{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 23px}.agent-create-panel>summary strong,.agent-create-panel>summary small{display:block}.agent-create-panel>summary strong{font-size:1rem}.agent-create-panel>summary small{margin-top:4px;color:var(--agent-muted);font-size:.8rem}.agent-summary-action{padding:9px 12px;border-radius:10px;background:var(--agent-blue-soft);color:var(--agent-blue);font-size:.78rem;font-weight:900}.agent-panel[open]>.agent-create-panel{}.agent-panel-body{padding:23px;border-top:1px solid var(--agent-line)}.agent-shipment-form{gap:17px}.agent-form-grid{display:grid;gap:14px}.agent-form-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.agent-form-grid.five{grid-template-columns:repeat(5,minmax(0,1fr))}.agent-upload-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:18px}.agent-upload-row .agent-btn{min-height:46px;margin-bottom:0}
.agent-panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:23px 23px 17px}.agent-panel-heading h2{margin:5px 0 4px;font-size:1.4rem;letter-spacing:-.025em}.agent-panel-heading p{margin:0;color:var(--agent-muted);font-size:.82rem}.agent-filter-bar{display:grid;grid-template-columns:minmax(220px,1fr) 220px auto;gap:12px;align-items:end;padding:0 23px 20px}.agent-filter-actions{display:flex;gap:8px;align-items:center;padding-bottom:0}.agent-list-body{padding:20px 23px 23px}.agent-shipment-list{display:grid;gap:13px}.agent-shipment-card{overflow:hidden;border:1px solid #dfe7f0;border-radius:17px;background:#fbfcfe}.agent-shipment-main{display:grid;grid-template-columns:minmax(180px,1.25fr) minmax(170px,1.15fr) .7fr .8fr .8fr;gap:18px;align-items:center;padding:17px}.agent-shipment-reference strong,.agent-shipment-reference small,.agent-shipment-client span,.agent-shipment-client strong,.agent-shipment-metric span,.agent-shipment-metric strong{display:block}.agent-shipment-reference strong{margin-top:7px;font-size:.93rem;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.agent-shipment-reference small{margin-top:3px;color:#6d7e91;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;overflow-wrap:anywhere}.agent-shipment-client span,.agent-shipment-metric span{margin-bottom:4px;color:#8290a0;font-size:.69rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.agent-shipment-client strong,.agent-shipment-metric strong{font-size:.83rem;line-height:1.35;overflow-wrap:anywhere}.agent-status{display:inline-flex!important;width:max-content;max-width:100%;padding:6px 9px;border:1px solid transparent;border-radius:999px;font-size:.68rem!important;font-family:inherit!important;font-weight:900;line-height:1.2}.agent-status-pending{background:#fff4dc;color:#93610d;border-color:#f2dcae}.agent-status-approved{background:#e9f8f0;color:#197249;border-color:#c9e9d8}.agent-status-action{background:#fff0f0;color:#a33c3c;border-color:#efcece}.agent-status-processing{background:#e9f5fa;color:#18728f;border-color:#cae5ef}.agent-status-shipped{background:#edf1fb;color:#435caa;border-color:#d9e0f3}.agent-status-neutral{background:#eef1f4;color:#596978;border-color:#dfe4e8}.agent-shipment-details{border-top:1px solid var(--agent-line)}.agent-shipment-details>summary{padding:11px 17px;color:#34628e;font-size:.78rem;font-weight:900;cursor:pointer;list-style:none}.agent-shipment-details>summary::-webkit-details-marker{display:none}.agent-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:0 17px 17px}.agent-detail-grid>div{padding:12px;border-radius:12px;background:#fff;border:1px solid #e5ebf2}.agent-detail-grid .wide{grid-column:1/-1}.agent-detail-grid span,.agent-detail-grid strong{display:block}.agent-detail-grid span{margin-bottom:5px;color:#8190a2;font-size:.69rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.agent-detail-grid strong,.agent-detail-grid p{margin:0;font-size:.84rem;line-height:1.55;overflow-wrap:anywhere}.agent-shipment-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;padding:12px 17px;border-top:1px solid var(--agent-line);background:#fff}.agent-inline-form{display:inline-flex;margin:0}.agent-action-note{margin-right:auto;color:#a34444;font-size:.78rem;font-weight:800}.agent-empty-state{padding:48px 20px;text-align:center}.agent-empty-icon{display:grid;place-items:center;width:54px;height:54px;margin:0 auto 12px;border-radius:17px;background:#eef4fb;color:#3d74a7;font-size:1.4rem}.agent-empty-state h3{margin:0 0 7px}.agent-empty-state p{margin:0;color:var(--agent-muted)}
.agent-pagination{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-top:20px}.agent-pagination a,.agent-pagination span{display:grid;place-items:center;min-width:36px;height:36px;padding:0 10px;border:1px solid #dbe4ed;border-radius:9px;background:#fff;color:#4f6175;font-size:.78rem;font-weight:800}.agent-pagination .active{border-color:#1d71ca;background:#1d71ca;color:#fff}.agent-footer{width:min(1460px,calc(100% - 40px));margin:0 auto;padding:0 0 32px;display:flex;justify-content:space-between;gap:15px;color:#7a8999;font-size:.76rem}.agent-footer a{color:#356a9b;font-weight:800}

@media (max-width:1180px){.agent-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.agent-form-grid.five{grid-template-columns:repeat(3,minmax(0,1fr))}.agent-shipment-main{grid-template-columns:1.2fr 1fr .7fr .8fr}.agent-shipment-main .agent-shipment-metric:last-child{grid-column:4}}
@media (max-width:920px){.agent-auth-page{background:linear-gradient(180deg,#0c3158 0,#154978 44%,#f4f7fb 44%,#f4f7fb 100%)}.agent-auth-shell{grid-template-columns:1fr;width:min(680px,calc(100% - 32px));gap:30px;padding:30px 0 44px}.agent-auth-brand{max-width:none}.agent-auth-copy{margin:38px 0 24px}.agent-auth-copy h1{font-size:2.7rem}.agent-auth-card{max-width:none;justify-self:stretch}.agent-hero{grid-template-columns:1fr}.agent-identity-card{max-width:320px}.agent-shipment-main{grid-template-columns:repeat(2,minmax(0,1fr))}.agent-shipment-main .agent-shipment-metric:last-child{grid-column:auto}.agent-filter-bar{grid-template-columns:1fr 190px}.agent-filter-actions{grid-column:1/-1}.agent-form-grid.five{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:680px){.agent-topbar-inner,.agent-dashboard-shell,.agent-footer{width:min(100% - 24px,1460px)}.agent-topbar-inner{height:68px}.agent-brand-compact small,.agent-account-copy{display:none}.agent-topbar-account{gap:8px}.agent-dashboard-shell{padding-top:20px}.agent-hero{padding:25px 22px;border-radius:20px}.agent-hero h1{font-size:1.85rem}.agent-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.agent-stat-card{padding:14px 12px}.agent-stat-icon{flex-basis:36px;height:36px}.agent-create-panel>summary,.agent-panel-heading,.agent-panel-body,.agent-list-body{padding-left:16px;padding-right:16px}.agent-panel-heading{align-items:center}.agent-form-grid.two,.agent-form-grid.five,.agent-upload-row,.agent-filter-bar{grid-template-columns:1fr}.agent-upload-row .agent-btn{width:100%}.agent-filter-bar{padding-left:16px;padding-right:16px}.agent-filter-actions{grid-column:auto}.agent-filter-actions .agent-btn{flex:1}.agent-shipment-main{grid-template-columns:1fr;padding:15px;gap:12px}.agent-shipment-client,.agent-shipment-metric{display:grid;grid-template-columns:110px 1fr;gap:10px;align-items:center}.agent-shipment-client span,.agent-shipment-metric span{margin:0}.agent-shipment-actions{justify-content:stretch}.agent-shipment-actions .agent-btn,.agent-shipment-actions form{width:100%}.agent-shipment-actions form .agent-btn{width:100%}.agent-detail-grid{grid-template-columns:1fr}.agent-detail-grid .wide{grid-column:auto}.agent-footer{flex-direction:column;align-items:center;text-align:center}.agent-auth-card{padding:25px 20px;border-radius:22px}}
@media (max-width:420px){.agent-stat-grid{grid-template-columns:1fr}.agent-auth-shell{width:calc(100% - 22px)}.agent-auth-copy h1{font-size:2.35rem}.agent-create-panel>summary{align-items:flex-start}.agent-summary-action{white-space:nowrap}.agent-brand-mark{width:43px;height:43px}.agent-brand strong{font-size:.95rem}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* v1.23.0 Agent workspace */
.agent-admin-note{background:#edf3ff;border:1px solid #d8e5fb;border-radius:10px;padding:12px!important}.agent-admin-note span{color:#245fb6!important}.agent-admin-note p{margin-bottom:0}
.agent-photo-count{display:block;margin-top:6px;color:var(--agent-muted);font-size:.75rem}.agent-photo-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin-top:9px}.agent-photo-grid a{display:block;overflow:hidden;border:1px solid var(--agent-line);border-radius:10px;background:#f5f7fa;aspect-ratio:1/1}.agent-photo-grid img{width:100%;height:100%;object-fit:cover;display:block}.agent-photo-grid a:hover{border-color:#8fb4db}@media(max-width:680px){.agent-photo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}


/* v1.23.4 Agent dashboard restructure */
.agent-workspace-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) 310px;
  gap:28px;
  align-items:center;
  padding:26px 28px;
  border:1px solid var(--agent-line);
  border-radius:18px;
  background:#fff;
  box-shadow:0 10px 30px rgba(34,57,83,.055);
}
.agent-workspace-main h1{
  margin:7px 0 7px;
  font-size:clamp(1.7rem,3vw,2.35rem);
  letter-spacing:-.035em;
  line-height:1.08;
}
.agent-workspace-main p{
  max-width:760px;
  margin:0;
  color:var(--agent-muted);
  font-size:.92rem;
  line-height:1.65;
}
.agent-workspace-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:18px}
.agent-profile-summary{
  min-width:0;
  padding:17px 18px;
  border:1px solid #dce6f0;
  border-radius:14px;
  background:#f8fafc;
}
.agent-profile-summary .agent-profile-label{
  display:block;
  margin-bottom:7px;
  color:#8997a6;
  font-size:.68rem;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.agent-profile-summary strong,
.agent-profile-summary small,
.agent-profile-summary span:not(.agent-profile-label){display:block;overflow-wrap:anywhere}
.agent-profile-summary strong{color:#22394f;font-size:.98rem}
.agent-profile-summary small{margin:3px 0 10px;color:#6d7d8e;font-size:.76rem}
.agent-profile-summary span:not(.agent-profile-label){margin-top:4px;color:#526578;font-size:.76rem}

.agent-overview-strip{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  margin-top:14px;
  overflow:hidden;
  border:1px solid var(--agent-line);
  border-radius:14px;
  background:#fff;
}
.agent-overview-item{
  min-width:0;
  padding:13px 15px;
  border-right:1px solid var(--agent-line);
  background:#fff;
  transition:background .15s ease,color .15s ease;
}
.agent-overview-item:last-child{border-right:0}
.agent-overview-item span,
.agent-overview-item strong{display:block}
.agent-overview-item span{
  color:#7b8a9b;
  font-size:.7rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.045em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.agent-overview-item strong{
  margin-top:3px;
  color:#20384f;
  font-size:1.12rem;
}
.agent-overview-item:hover,
.agent-overview-item.active{background:#f0f6fc}
.agent-overview-item.attention strong{color:#ad4046}
.agent-overview-item.attention.active{background:#fff2f2}
.agent-attention-banner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-top:12px;
  padding:11px 14px;
  border:1px solid #efcdcd;
  border-radius:12px;
  background:#fff5f5;
  color:#8f3e42;
  font-size:.8rem;
  font-weight:750;
}
.agent-attention-banner:hover{background:#ffefef}

.agent-create-panel{border-radius:16px}
.agent-create-panel>summary{padding:17px 19px}
.agent-create-panel>summary strong{font-size:.95rem}
.agent-create-panel>summary small{font-size:.77rem}
.agent-panel-body{padding:18px}
.agent-shipment-form{gap:13px}
.agent-form-section{
  display:grid;
  gap:13px;
  padding:16px;
  border:1px solid #e4eaf1;
  border-radius:13px;
  background:#fbfcfe;
}
.agent-form-section-head{
  display:flex;
  align-items:center;
  gap:10px;
  padding-bottom:2px;
}
.agent-form-step{
  display:grid;
  place-items:center;
  flex:0 0 28px;
  height:28px;
  border-radius:9px;
  background:#e9f3ff;
  color:#236eb8;
  font-size:.72rem;
  font-weight:900;
}
.agent-form-section-head strong,
.agent-form-section-head small{display:block}
.agent-form-section-head strong{font-size:.86rem;color:#2a4056}
.agent-form-section-head small{margin-top:2px;color:#7d8b9b;font-size:.72rem}
.agent-form-final-grid{align-items:start}
.agent-form-submit{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding-top:2px;
}
.agent-form-submit span{color:#7a8999;font-size:.75rem}
.agent-form-submit .agent-btn{min-width:160px}

#shipments.agent-panel{border-radius:16px}
#shipments .agent-panel-heading{padding:19px 19px 14px}
#shipments .agent-panel-heading h2{font-size:1.2rem;margin-top:3px}
#shipments .agent-filter-bar{padding:0 19px 15px}
#shipments .agent-list-body{padding:14px 19px 19px}
.agent-shipment-card{
  border-radius:13px;
  background:#fff;
  box-shadow:none;
}
.agent-shipment-main{
  grid-template-columns:minmax(175px,1.35fr) minmax(160px,1.15fr) .7fr .8fr .82fr;
  gap:14px;
  padding:14px 15px;
}
.agent-shipment-reference strong{font-size:.88rem}
.agent-shipment-reference small{font-size:.73rem}
.agent-shipment-client strong,.agent-shipment-metric strong{font-size:.8rem}
.agent-shipment-details>summary{padding:10px 15px}
.agent-shipment-actions{padding:10px 15px}

@media (max-width:1100px){
  .agent-workspace-head{grid-template-columns:1fr 270px}
  .agent-overview-strip{grid-template-columns:repeat(3,minmax(0,1fr))}
  .agent-overview-item:nth-child(3){border-right:0}
  .agent-overview-item:nth-child(-n+3){border-bottom:1px solid var(--agent-line)}
}
@media (max-width:820px){
  .agent-workspace-head{grid-template-columns:1fr;padding:22px}
  .agent-profile-summary{max-width:none}
  .agent-overview-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
  .agent-overview-item:nth-child(n){border-right:1px solid var(--agent-line);border-bottom:1px solid var(--agent-line)}
  .agent-overview-item:nth-child(2n){border-right:0}
  .agent-overview-item:nth-last-child(-n+2){border-bottom:0}
  .agent-form-submit{align-items:stretch;flex-direction:column}
  .agent-form-submit .agent-btn{width:100%}
}
@media (max-width:520px){
  .agent-workspace-head{padding:18px;border-radius:15px}
  .agent-workspace-main h1{font-size:1.65rem}
  .agent-workspace-actions .agent-btn{flex:1}
  .agent-overview-item{padding:11px 12px}
  .agent-overview-item span{font-size:.64rem}
  .agent-attention-banner{align-items:flex-start;flex-direction:column;gap:4px}
  .agent-form-section{padding:13px}
  #shipments .agent-panel-heading{align-items:flex-start;flex-direction:column}
  #shipments .agent-panel-heading .agent-btn{width:100%}
}


/* Agent shipment photo gallery viewer */
.agent-photo-grid .agent-photo-thumb{display:block;width:100%;padding:0;overflow:hidden;border:1px solid var(--agent-line);border-radius:10px;background:#f5f7fa;aspect-ratio:1/1;cursor:pointer}
.agent-photo-grid .agent-photo-thumb:hover,.agent-photo-grid .agent-photo-thumb:focus-visible{border-color:#5d96cf;outline:2px solid rgba(53,122,191,.16);outline-offset:1px}
.agent-photo-grid .agent-photo-thumb img{width:100%;height:100%;object-fit:cover;display:block}
body.agent-photo-viewer-open{overflow:hidden}
.agent-photo-viewer[hidden]{display:none!important}
.agent-photo-viewer{position:fixed;inset:0;z-index:10050;display:grid;place-items:center;padding:24px}
.agent-photo-viewer-backdrop{position:absolute;inset:0;width:100%;height:100%;border:0;background:rgba(15,27,40,.78);cursor:default}
.agent-photo-viewer-panel{position:relative;z-index:1;width:min(980px,calc(100vw - 48px));max-height:calc(100vh - 48px);display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;border:1px solid rgba(255,255,255,.16);border-radius:16px;background:#101923;box-shadow:0 24px 70px rgba(0,0,0,.38)}
.agent-photo-viewer-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 15px;border-bottom:1px solid rgba(255,255,255,.10);color:#fff}
.agent-photo-viewer-head strong,.agent-photo-viewer-head span{display:block}
.agent-photo-viewer-head strong{font-size:.9rem}.agent-photo-viewer-head span{margin-top:2px;color:#aebdca;font-size:.72rem}
.agent-photo-viewer-close{display:grid;place-items:center;width:36px;height:36px;border:1px solid rgba(255,255,255,.14);border-radius:10px;background:rgba(255,255,255,.07);color:#fff;font-size:1.5rem;line-height:1;cursor:pointer}
.agent-photo-viewer-stage{position:relative;min-height:260px;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#081019}
.agent-photo-viewer-stage>img{display:block;max-width:100%;max-height:min(68vh,720px);width:auto;height:auto;object-fit:contain}
.agent-photo-viewer-nav{position:absolute;top:50%;z-index:2;transform:translateY(-50%);display:grid;place-items:center;width:42px;height:52px;border:1px solid rgba(255,255,255,.16);border-radius:12px;background:rgba(5,12,19,.62);color:#fff;font-size:2rem;cursor:pointer}
.agent-photo-viewer-nav.prev{left:14px}.agent-photo-viewer-nav.next{right:14px}.agent-photo-viewer-nav:hover{background:rgba(36,108,177,.86)}
.agent-photo-viewer-thumbs{display:flex;align-items:center;justify-content:center;gap:8px;min-height:82px;padding:10px 14px;overflow-x:auto;border-top:1px solid rgba(255,255,255,.10);background:#101923}
.agent-photo-viewer-thumb{flex:0 0 58px;width:58px;height:58px;padding:0;overflow:hidden;border:2px solid transparent;border-radius:9px;background:#202d39;cursor:pointer;opacity:.7}
.agent-photo-viewer-thumb.active{border-color:#6db0ef;opacity:1}.agent-photo-viewer-thumb img{width:100%;height:100%;display:block;object-fit:cover}
@media(max-width:680px){.agent-photo-viewer{padding:10px}.agent-photo-viewer-panel{width:calc(100vw - 20px);max-height:calc(100vh - 20px);border-radius:13px}.agent-photo-viewer-stage{min-height:220px}.agent-photo-viewer-stage>img{max-height:65vh}.agent-photo-viewer-nav{width:36px;height:46px}.agent-photo-viewer-nav.prev{left:8px}.agent-photo-viewer-nav.next{right:8px}.agent-photo-viewer-thumbs{justify-content:flex-start}}

/* Agent workflow v1.24.0 */
.agent-status-cancelled{background:#f2f3f5;color:#626d78;border-color:#dde1e5}
.agent-status-history{display:grid;gap:8px;margin-top:6px}
.agent-history-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:10px 12px;border:1px solid #e6ebf1;border-radius:10px;background:#fbfcfe}
.agent-history-row>div{min-width:0}.agent-history-row strong{font-size:.8rem}.agent-history-row small{display:block;margin-top:3px;color:#8491a0;font-size:.69rem;text-transform:none;letter-spacing:0;font-weight:600}.agent-history-row em{display:inline-flex;margin-left:7px;padding:2px 5px;border-radius:5px;background:#fff1df;color:#9b641a;font-size:.62rem;font-style:normal;font-weight:900;text-transform:uppercase;letter-spacing:.04em}.agent-history-row p{max-width:52%;margin:0;color:#647486;font-size:.75rem;line-height:1.45}
@media(max-width:640px){.agent-history-row{display:block}.agent-history-row p{max-width:none;margin-top:7px}}

/* ========================================================================== 
   v1.24.4 — Agent Dashboard Minimal UI
   Visual-only refinement. Login, workflow, status transitions, uploads,
   ownership checks and all server-side behavior remain unchanged.
   ========================================================================== */
body.agent-dashboard-page{
  --agent-bg:#f7f8fa;
  --agent-surface:#ffffff;
  --agent-text:#182230;
  --agent-muted:#6b7787;
  --agent-line:#e6e9ed;
  --agent-blue:#1268b3;
  --agent-blue-soft:#eef6fd;
  --agent-shadow:none;
  background:var(--agent-bg);
}
body.agent-dashboard-page .agent-topbar{
  position:sticky;
  top:0;
  z-index:50;
  border-bottom:1px solid #e7eaee;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(14px);
  box-shadow:none;
}
body.agent-dashboard-page .agent-topbar-inner{
  width:min(1280px,calc(100% - 36px));
  height:62px;
  gap:18px;
}
body.agent-dashboard-page .agent-brand{gap:10px;color:#182230}
body.agent-dashboard-page .agent-brand-mark{
  width:34px;
  height:34px;
  padding:8px;
  border-radius:9px;
  background:#1268b3;
  color:#fff;
  box-shadow:none;
}
body.agent-dashboard-page .agent-brand-compact .agent-brand-mark{width:34px;height:34px;padding:8px;border-radius:9px}
body.agent-dashboard-page .agent-brand strong{font-size:.92rem;letter-spacing:-.01em}
body.agent-dashboard-page .agent-brand small{margin-top:1px;color:#8a95a3;font-size:.61rem;letter-spacing:.07em}
body.agent-dashboard-page .agent-topbar-account{gap:11px}
body.agent-dashboard-page .agent-account-copy strong{color:#263342;font-size:.78rem;font-weight:750}
body.agent-dashboard-page .agent-account-copy span{color:#8a95a3;font-size:.68rem}
body.agent-dashboard-page .agent-topbar .agent-btn-ghost{
  min-height:34px;
  border-color:#e1e5e9;
  background:#fff;
  color:#526171;
}
body.agent-dashboard-page .agent-dashboard-shell{
  width:min(1280px,calc(100% - 36px));
  padding:24px 0 48px;
}
body.agent-dashboard-page .agent-dashboard-shell>.agent-alert{margin-bottom:14px}
body.agent-dashboard-page .agent-alert{border-radius:9px;box-shadow:none}
body.agent-dashboard-page .agent-eyebrow{
  color:#7b8795;
  font-size:.66rem;
  font-weight:800;
  letter-spacing:.09em;
}
body.agent-dashboard-page .agent-workspace-head{
  grid-template-columns:minmax(0,1fr) 255px;
  gap:24px;
  padding:22px 24px;
  border:1px solid #e5e8ec;
  border-radius:13px;
  background:#fff;
  box-shadow:none;
}
body.agent-dashboard-page .agent-workspace-main h1{
  margin:5px 0 6px;
  color:#17212d;
  font-size:clamp(1.55rem,2.8vw,2rem);
  line-height:1.12;
  letter-spacing:-.03em;
}
body.agent-dashboard-page .agent-workspace-main p{
  max-width:720px;
  color:#6f7b89;
  font-size:.84rem;
  line-height:1.58;
}
body.agent-dashboard-page .agent-workspace-actions{gap:8px;margin-top:15px}
body.agent-dashboard-page .agent-profile-summary{
  padding:3px 0 3px 21px;
  border:0;
  border-left:1px solid #e8ebee;
  border-radius:0;
  background:transparent;
}
body.agent-dashboard-page .agent-profile-summary .agent-profile-label{
  margin-bottom:5px;
  color:#98a1ac;
  font-size:.61rem;
  letter-spacing:.08em;
}
body.agent-dashboard-page .agent-profile-summary strong{color:#273443;font-size:.88rem}
body.agent-dashboard-page .agent-profile-summary small{margin:2px 0 7px;color:#7c8794;font-size:.69rem}
body.agent-dashboard-page .agent-profile-summary span:not(.agent-profile-label){margin-top:3px;color:#687584;font-size:.69rem}

body.agent-dashboard-page .agent-btn{
  min-height:38px;
  padding:0 13px;
  border-radius:8px;
  font-size:.79rem;
  font-weight:750;
  box-shadow:none;
  transition:background .14s ease,border-color .14s ease,color .14s ease;
}
body.agent-dashboard-page .agent-btn:hover{transform:none;box-shadow:none}
body.agent-dashboard-page .agent-btn-primary{background:#1268b3;color:#fff;box-shadow:none}
body.agent-dashboard-page .agent-btn-primary:hover{background:#0e5b9e;box-shadow:none}
body.agent-dashboard-page .agent-btn-soft{border-color:#dce4eb;background:#f7fafc;color:#365e83}
body.agent-dashboard-page .agent-btn-soft:hover{background:#f0f5f9;border-color:#cbd7e1}
body.agent-dashboard-page .agent-btn-ghost{border-color:#e0e4e8;background:#fff;color:#596674}
body.agent-dashboard-page .agent-btn-ghost:hover{background:#f7f8fa}
body.agent-dashboard-page .agent-btn-success{background:#1c7b52;color:#fff}
body.agent-dashboard-page .agent-btn-small{min-height:34px;padding:0 11px;font-size:.75rem}

body.agent-dashboard-page .agent-overview-strip{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:8px;
  margin-top:12px;
  overflow:visible;
  border:0;
  border-radius:0;
  background:transparent;
}
body.agent-dashboard-page .agent-overview-item,
body.agent-dashboard-page .agent-overview-item:nth-child(n){
  min-width:0;
  padding:11px 12px;
  border:1px solid #e5e8ec;
  border-radius:10px;
  background:#fff;
}
body.agent-dashboard-page .agent-overview-item:hover{background:#fafbfd;border-color:#d9dee4}
body.agent-dashboard-page .agent-overview-item.active{border-color:#a9c8e3;background:#f3f8fc}
body.agent-dashboard-page .agent-overview-item span{
  color:#7f8a97;
  font-size:.61rem;
  font-weight:750;
  letter-spacing:.055em;
}
body.agent-dashboard-page .agent-overview-item strong{margin-top:4px;color:#273543;font-size:1.02rem;font-weight:750}
body.agent-dashboard-page .agent-overview-item.attention strong{color:#a14444}
body.agent-dashboard-page .agent-overview-item.attention.active{border-color:#e4bbbb;background:#fff7f7}
body.agent-dashboard-page .agent-attention-banner{
  margin-top:10px;
  padding:10px 12px;
  border-color:#ecd4d4;
  border-radius:9px;
  background:#fff9f9;
  color:#934747;
  font-size:.75rem;
}
body.agent-dashboard-page .agent-attention-banner:hover{background:#fff5f5}

body.agent-dashboard-page .agent-panel,
body.agent-dashboard-page .agent-create-panel,
body.agent-dashboard-page #shipments.agent-panel{
  margin-top:14px;
  border:1px solid #e5e8ec;
  border-radius:12px;
  background:#fff;
  box-shadow:none;
}
body.agent-dashboard-page .agent-create-panel>summary{padding:15px 17px}
body.agent-dashboard-page .agent-create-panel>summary strong{font-size:.88rem;color:#253240}
body.agent-dashboard-page .agent-create-panel>summary small{margin-top:3px;color:#7f8995;font-size:.71rem}
body.agent-dashboard-page .agent-summary-action{
  padding:6px 9px;
  border:1px solid #dce6ef;
  border-radius:7px;
  background:#f7fafc;
  color:#396b96;
  font-size:.68rem;
  font-weight:750;
}
body.agent-dashboard-page .agent-panel-body{padding:16px;border-top:1px solid #eceff2}
body.agent-dashboard-page .agent-shipment-form{gap:0}
body.agent-dashboard-page .agent-form-section{
  gap:12px;
  padding:17px 0;
  border:0;
  border-top:1px solid #edf0f2;
  border-radius:0;
  background:transparent;
}
body.agent-dashboard-page .agent-form-section:first-child{padding-top:0;border-top:0}
body.agent-dashboard-page .agent-form-section:last-child{padding-bottom:0}
body.agent-dashboard-page .agent-form-section-head{gap:9px}
body.agent-dashboard-page .agent-form-step{
  flex-basis:24px;
  width:24px;
  height:24px;
  border:1px solid #dbe7f1;
  border-radius:7px;
  background:#f5f9fc;
  color:#3d709b;
  font-size:.66rem;
}
body.agent-dashboard-page .agent-form-section-head strong{color:#33404d;font-size:.79rem}
body.agent-dashboard-page .agent-form-section-head small{color:#8b95a0;font-size:.67rem}
body.agent-dashboard-page .agent-field label{margin-bottom:6px;color:#4a5663;font-size:.74rem;font-weight:700}
body.agent-dashboard-page .agent-field label span{color:#9aa3ad;font-weight:600}
body.agent-dashboard-page .agent-field input,
body.agent-dashboard-page .agent-field textarea,
body.agent-dashboard-page .agent-field select{
  border-color:#dce1e6;
  border-radius:8px;
  background:#fff;
  color:#202b37;
  box-shadow:none;
}
body.agent-dashboard-page .agent-field input,
body.agent-dashboard-page .agent-field select{height:41px;padding:0 11px}
body.agent-dashboard-page .agent-field textarea{min-height:92px;padding:10px 11px}
body.agent-dashboard-page .agent-field input[type=file]{height:auto;padding:8px}
body.agent-dashboard-page .agent-field input:focus,
body.agent-dashboard-page .agent-field textarea:focus,
body.agent-dashboard-page .agent-field select:focus{
  border-color:#75a9d3;
  box-shadow:0 0 0 2px rgba(18,104,179,.10);
}
body.agent-dashboard-page .agent-form-grid{gap:10px}
body.agent-dashboard-page .agent-form-submit{padding-top:4px}
body.agent-dashboard-page .agent-form-submit span{color:#8a94a0;font-size:.7rem}
body.agent-dashboard-page .agent-form-submit .agent-btn{min-width:145px}

body.agent-dashboard-page #shipments .agent-panel-heading{padding:17px 17px 12px}
body.agent-dashboard-page #shipments .agent-panel-heading h2{margin:2px 0 3px;color:#25313e;font-size:1.06rem;letter-spacing:-.015em}
body.agent-dashboard-page #shipments .agent-panel-heading p{color:#87919c;font-size:.72rem}
body.agent-dashboard-page #shipments .agent-filter-bar{
  grid-template-columns:minmax(220px,1fr) 190px auto;
  gap:9px;
  padding:12px 17px;
  border-top:1px solid #eef0f2;
  border-bottom:1px solid #eef0f2;
  background:#fbfcfd;
}
body.agent-dashboard-page #shipments .agent-list-body{padding:13px 17px 17px;border-top:0}
body.agent-dashboard-page .agent-shipment-list{gap:8px}
body.agent-dashboard-page .agent-shipment-card{
  overflow:hidden;
  border:1px solid #e5e8ec;
  border-radius:10px;
  background:#fff;
  box-shadow:none;
}
body.agent-dashboard-page .agent-shipment-card:hover{border-color:#d8dde3;background:#fdfefe}
body.agent-dashboard-page .agent-shipment-main{
  grid-template-columns:minmax(170px,1.35fr) minmax(150px,1.1fr) .68fr .78fr .8fr;
  gap:12px;
  padding:12px 13px;
}
body.agent-dashboard-page .agent-shipment-reference strong{margin-top:6px;color:#283544;font-size:.8rem;font-weight:750}
body.agent-dashboard-page .agent-shipment-reference small{margin-top:2px;color:#7e8995;font-size:.68rem}
body.agent-dashboard-page .agent-shipment-client span,
body.agent-dashboard-page .agent-shipment-metric span{margin-bottom:3px;color:#9aa3ad;font-size:.59rem;font-weight:750;letter-spacing:.055em}
body.agent-dashboard-page .agent-shipment-client strong,
body.agent-dashboard-page .agent-shipment-metric strong{color:#3a4653;font-size:.74rem;font-weight:700}
body.agent-dashboard-page .agent-status{
  padding:4px 7px;
  border-radius:999px;
  font-size:.61rem!important;
  font-weight:750;
}
body.agent-dashboard-page .agent-status-pending{background:#fff9ea;color:#86601c;border-color:#f0e2ba}
body.agent-dashboard-page .agent-status-approved{background:#f1faf5;color:#296947;border-color:#d7ecdf}
body.agent-dashboard-page .agent-status-action{background:#fff6f6;color:#934747;border-color:#ecd3d3}
body.agent-dashboard-page .agent-status-processing{background:#f0f8fb;color:#33738a;border-color:#d7eaf0}
body.agent-dashboard-page .agent-status-shipped{background:#f3f5fb;color:#536699;border-color:#dfe4f2}
body.agent-dashboard-page .agent-status-cancelled,
body.agent-dashboard-page .agent-status-neutral{background:#f5f6f7;color:#6a737d;border-color:#e2e5e8}
body.agent-dashboard-page .agent-shipment-details{border-top:1px solid #edf0f2}
body.agent-dashboard-page .agent-shipment-details>summary{padding:9px 13px;color:#4c6b87;font-size:.7rem;font-weight:750}
body.agent-dashboard-page .agent-detail-grid{gap:9px;padding:0 13px 13px}
body.agent-dashboard-page .agent-detail-grid>div{
  padding:10px;
  border:0;
  border-radius:8px;
  background:#f8f9fb;
}
body.agent-dashboard-page .agent-detail-grid span{margin-bottom:4px;color:#98a1ab;font-size:.6rem;font-weight:750}
body.agent-dashboard-page .agent-detail-grid strong,
body.agent-dashboard-page .agent-detail-grid p{color:#45515e;font-size:.76rem;line-height:1.5}
body.agent-dashboard-page .agent-admin-note{border:1px solid #dce8f3!important;background:#f5f9fd!important;border-radius:8px}
body.agent-dashboard-page .agent-shipment-actions{
  gap:7px;
  padding:9px 13px;
  border-top:1px solid #edf0f2;
  background:#fff;
}
body.agent-dashboard-page .agent-action-note{color:#975151;font-size:.7rem;font-weight:700}
body.agent-dashboard-page .agent-empty-state{padding:42px 18px}
body.agent-dashboard-page .agent-empty-icon{width:44px;height:44px;border-radius:11px;background:#f1f5f8;color:#64819a;font-size:1.1rem}
body.agent-dashboard-page .agent-empty-state h3{font-size:.94rem}
body.agent-dashboard-page .agent-empty-state p{font-size:.76rem}
body.agent-dashboard-page .agent-pagination{gap:5px;margin-top:16px}
body.agent-dashboard-page .agent-pagination a,
body.agent-dashboard-page .agent-pagination span{min-width:32px;height:32px;border-color:#e1e5e9;border-radius:7px;font-size:.71rem}
body.agent-dashboard-page .agent-pagination .active{border-color:#1268b3;background:#1268b3;color:#fff}
body.agent-dashboard-page .agent-footer{
  width:min(1280px,calc(100% - 36px));
  padding-bottom:24px;
  color:#98a1ab;
  font-size:.68rem;
}
body.agent-dashboard-page .agent-footer a{color:#607f9a;font-weight:700}
body.agent-dashboard-page .agent-photo-grid{gap:7px}
body.agent-dashboard-page .agent-photo-grid .agent-photo-thumb{border-radius:8px;background:#f4f5f6}
body.agent-dashboard-page .agent-status-history{gap:6px}
body.agent-dashboard-page .agent-history-row{padding:9px 10px;border-color:#e7eaee;border-radius:8px;background:#fff}
body.agent-dashboard-page .agent-history-row strong{font-size:.72rem}
body.agent-dashboard-page .agent-history-row small{font-size:.63rem}
body.agent-dashboard-page .agent-history-row p{font-size:.69rem}

@media(max-width:1080px){
  body.agent-dashboard-page .agent-workspace-head{grid-template-columns:1fr 230px}
  body.agent-dashboard-page .agent-overview-strip{grid-template-columns:repeat(4,minmax(0,1fr))}
  body.agent-dashboard-page .agent-overview-item:nth-child(n){border:1px solid #e5e8ec}
}
@media(max-width:820px){
  body.agent-dashboard-page .agent-workspace-head{grid-template-columns:1fr;padding:19px}
  body.agent-dashboard-page .agent-profile-summary{padding:14px 0 0;border-left:0;border-top:1px solid #e9ecef}
  body.agent-dashboard-page .agent-overview-strip{grid-template-columns:repeat(3,minmax(0,1fr))}
  body.agent-dashboard-page #shipments .agent-filter-bar{grid-template-columns:1fr 170px}
  body.agent-dashboard-page .agent-filter-actions{grid-column:1/-1}
}
@media(max-width:680px){
  body.agent-dashboard-page .agent-topbar-inner,
  body.agent-dashboard-page .agent-dashboard-shell,
  body.agent-dashboard-page .agent-footer{width:calc(100% - 22px)}
  body.agent-dashboard-page .agent-topbar-inner{height:58px}
  body.agent-dashboard-page .agent-brand-compact small,
  body.agent-dashboard-page .agent-account-copy{display:none}
  body.agent-dashboard-page .agent-dashboard-shell{padding-top:14px}
  body.agent-dashboard-page .agent-workspace-head{padding:16px;border-radius:11px}
  body.agent-dashboard-page .agent-workspace-main h1{font-size:1.45rem}
  body.agent-dashboard-page .agent-workspace-main p{font-size:.79rem}
  body.agent-dashboard-page .agent-workspace-actions{display:grid;grid-template-columns:1fr 1fr}
  body.agent-dashboard-page .agent-workspace-actions .agent-btn{width:100%}
  body.agent-dashboard-page .agent-overview-strip{
    display:flex;
    gap:7px;
    margin-left:-1px;
    overflow-x:auto;
    padding:1px 1px 5px;
    scrollbar-width:none;
  }
  body.agent-dashboard-page .agent-overview-strip::-webkit-scrollbar{display:none}
  body.agent-dashboard-page .agent-overview-item,
  body.agent-dashboard-page .agent-overview-item:nth-child(n){flex:0 0 118px;padding:10px;border:1px solid #e5e8ec}
  body.agent-dashboard-page .agent-attention-banner{align-items:flex-start;flex-direction:column;gap:3px}
  body.agent-dashboard-page .agent-panel,
  body.agent-dashboard-page .agent-create-panel,
  body.agent-dashboard-page #shipments.agent-panel{border-radius:10px}
  body.agent-dashboard-page .agent-create-panel>summary,
  body.agent-dashboard-page #shipments .agent-panel-heading,
  body.agent-dashboard-page #shipments .agent-list-body{padding-left:13px;padding-right:13px}
  body.agent-dashboard-page .agent-panel-body{padding:13px}
  body.agent-dashboard-page .agent-form-section{padding:14px 0}
  body.agent-dashboard-page .agent-form-grid.two,
  body.agent-dashboard-page .agent-form-grid.five,
  body.agent-dashboard-page .agent-upload-row,
  body.agent-dashboard-page #shipments .agent-filter-bar{grid-template-columns:1fr}
  body.agent-dashboard-page #shipments .agent-filter-bar{padding:11px 13px}
  body.agent-dashboard-page .agent-filter-actions{grid-column:auto}
  body.agent-dashboard-page .agent-filter-actions .agent-btn{flex:1}
  body.agent-dashboard-page .agent-shipment-main{grid-template-columns:1fr;padding:12px;gap:10px}
  body.agent-dashboard-page .agent-shipment-client,
  body.agent-dashboard-page .agent-shipment-metric{grid-template-columns:102px 1fr}
  body.agent-dashboard-page .agent-shipment-actions{padding:9px 12px}
  body.agent-dashboard-page .agent-detail-grid{grid-template-columns:1fr;padding:0 12px 12px}
  body.agent-dashboard-page .agent-detail-grid .wide{grid-column:auto}
  body.agent-dashboard-page .agent-footer{align-items:center;text-align:center}
}
@media(max-width:420px){
  body.agent-dashboard-page .agent-brand strong{font-size:.86rem}
  body.agent-dashboard-page .agent-topbar .agent-btn-ghost{padding:0 9px}
  body.agent-dashboard-page .agent-workspace-actions{grid-template-columns:1fr}
  body.agent-dashboard-page .agent-create-panel>summary{gap:10px}
  body.agent-dashboard-page .agent-summary-action{white-space:nowrap}
}

/* =========================================================
   v1.24.5 — Agent Dashboard Information Architecture Refresh
   Reorders the workspace around priority work, account context,
   shipment creation and a single shipment workspace.
   ========================================================= */
body.agent-dashboard-page{
  --agent-page:#f7f8fa;
  --agent-card:#ffffff;
  --agent-border:#e6e9ed;
  --agent-border-strong:#d8dde3;
  --agent-ink:#202a35;
  --agent-subtle:#76828f;
  background:var(--agent-page);
}
body.agent-dashboard-page .agent-dashboard-shell{
  width:min(1240px,calc(100% - 36px));
  padding:24px 0 52px;
}
body.agent-dashboard-page .agent-topbar-inner{width:min(1240px,calc(100% - 36px))}

body.agent-dashboard-page .agent-dashboard-intro{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:28px;
  padding:8px 2px 19px;
}
body.agent-dashboard-page .agent-dashboard-intro-copy{max-width:760px}
body.agent-dashboard-page .agent-dashboard-intro h1{
  margin:5px 0 5px;
  color:var(--agent-ink);
  font-size:clamp(1.55rem,2.5vw,2.05rem);
  line-height:1.1;
  letter-spacing:-.035em;
  font-weight:780;
}
body.agent-dashboard-page .agent-dashboard-intro p{
  max-width:710px;
  margin:0;
  color:var(--agent-subtle);
  font-size:.81rem;
  line-height:1.65;
}
body.agent-dashboard-page .agent-dashboard-intro-actions{flex:0 0 auto}

body.agent-dashboard-page .agent-section-nav{
  display:flex;
  align-items:center;
  gap:4px;
  margin:0 0 13px;
  padding:4px;
  width:max-content;
  max-width:100%;
  border:1px solid var(--agent-border);
  border-radius:10px;
  background:#fff;
}
body.agent-dashboard-page .agent-section-nav a{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:32px;
  padding:0 11px;
  border-radius:7px;
  color:#687583;
  font-size:.7rem;
  font-weight:750;
  white-space:nowrap;
}
body.agent-dashboard-page .agent-section-nav a:hover,
body.agent-dashboard-page .agent-section-nav a.active{background:#f1f5f8;color:#29465f}
body.agent-dashboard-page .agent-section-nav a span{
  min-width:20px;
  padding:2px 6px;
  border-radius:999px;
  background:#e9eef3;
  color:#64717e;
  text-align:center;
  font-size:.62rem;
}

body.agent-dashboard-page .agent-overview-layout{
  display:grid;
  grid-template-columns:minmax(0,1.75fr) minmax(260px,.75fr);
  gap:12px;
  align-items:stretch;
}
body.agent-dashboard-page .agent-work-queue,
body.agent-dashboard-page .agent-account-panel{
  border:1px solid var(--agent-border);
  border-radius:12px;
  background:var(--agent-card);
  box-shadow:none;
}
body.agent-dashboard-page .agent-work-queue{padding:17px}
body.agent-dashboard-page .agent-section-heading{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}
body.agent-dashboard-page .agent-section-heading h2{
  margin:3px 0 3px;
  color:#27333f;
  font-size:1rem;
  letter-spacing:-.018em;
}
body.agent-dashboard-page .agent-section-heading p{
  margin:0;
  color:#87919b;
  font-size:.7rem;
  line-height:1.5;
}
body.agent-dashboard-page .agent-text-link{
  flex:0 0 auto;
  margin-top:4px;
  color:#4a6e8c;
  font-size:.68rem;
  font-weight:750;
}
body.agent-dashboard-page .agent-text-link:hover{color:#1268b3}

body.agent-dashboard-page .agent-queue-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  margin-top:14px;
}
body.agent-dashboard-page .agent-queue-item{
  position:relative;
  min-width:0;
  padding:11px 11px 10px;
  border:1px solid #e7eaed;
  border-radius:9px;
  background:#fbfcfd;
  transition:border-color .15s ease,background .15s ease;
}
body.agent-dashboard-page .agent-queue-item:hover{border-color:#d4dbe2;background:#fff}
body.agent-dashboard-page .agent-queue-item.active{border-color:#a9c6df;background:#f4f8fc}
body.agent-dashboard-page .agent-queue-item>span,
body.agent-dashboard-page .agent-queue-item>strong,
body.agent-dashboard-page .agent-queue-item>small{display:block}
body.agent-dashboard-page .agent-queue-item>span{
  color:#687582;
  font-size:.66rem;
  font-weight:760;
}
body.agent-dashboard-page .agent-queue-item>strong{
  margin:5px 0 2px;
  color:#25313e;
  font-size:1.18rem;
  line-height:1;
  letter-spacing:-.025em;
}
body.agent-dashboard-page .agent-queue-item>small{color:#9aa3ac;font-size:.6rem}
body.agent-dashboard-page .agent-queue-item.action>strong{color:#9d4444}
body.agent-dashboard-page .agent-queue-item.action.active{border-color:#e2bebe;background:#fff8f8}
body.agent-dashboard-page .agent-queue-item.pending>strong{color:#8b641f}
body.agent-dashboard-page .agent-queue-item.approved>strong{color:#2b6b49}
body.agent-dashboard-page .agent-queue-item.processing>strong{color:#33748b}

body.agent-dashboard-page .agent-queue-alert,
body.agent-dashboard-page .agent-queue-clear{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-top:10px;
  padding:9px 11px;
  border-radius:8px;
  font-size:.68rem;
  line-height:1.4;
}
body.agent-dashboard-page .agent-queue-alert{
  border:1px solid #ecd2d2;
  background:#fff8f8;
  color:#8c4545;
}
body.agent-dashboard-page .agent-queue-alert b{white-space:nowrap;font-size:.66rem}
body.agent-dashboard-page .agent-queue-alert:hover{background:#fff4f4}
body.agent-dashboard-page .agent-queue-clear{
  justify-content:flex-start;
  border:1px solid #dfe9e4;
  background:#f7fbf8;
  color:#4f6f5d;
}
body.agent-dashboard-page .agent-queue-clear-dot{
  flex:0 0 7px;
  width:7px;
  height:7px;
  border-radius:50%;
  background:#4c9a6f;
}
body.agent-dashboard-page .agent-queue-footer{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:7px 18px;
  margin-top:12px;
  padding-top:11px;
  border-top:1px solid #eef0f2;
  color:#84909b;
  font-size:.64rem;
}
body.agent-dashboard-page .agent-queue-footer b{color:#46535f;font-size:.72rem}

body.agent-dashboard-page .agent-account-panel{
  display:flex;
  flex-direction:column;
  padding:17px;
}
body.agent-dashboard-page .agent-account-panel-head{
  display:flex;
  align-items:center;
  gap:11px;
  padding-bottom:13px;
  border-bottom:1px solid #eef0f2;
}
body.agent-dashboard-page .agent-account-avatar{
  display:grid;
  place-items:center;
  flex:0 0 38px;
  width:38px;
  height:38px;
  border-radius:10px;
  background:#eef3f7;
  color:#47657f;
  font-size:.86rem;
  font-weight:800;
}
body.agent-dashboard-page .agent-account-panel-head strong,
body.agent-dashboard-page .agent-account-panel-head small{display:block}
body.agent-dashboard-page .agent-account-panel-head strong{margin-top:3px;color:#2d3945;font-size:.82rem}
body.agent-dashboard-page .agent-account-panel-head small{margin-top:1px;color:#9099a3;font-size:.65rem}
body.agent-dashboard-page .agent-account-list{display:grid;gap:0;margin:10px 0 14px}
body.agent-dashboard-page .agent-account-list>div{
  display:grid;
  grid-template-columns:82px minmax(0,1fr);
  gap:10px;
  padding:6px 0;
}
body.agent-dashboard-page .agent-account-list dt{color:#9aa3ac;font-size:.62rem;font-weight:700}
body.agent-dashboard-page .agent-account-list dd{margin:0;color:#53606c;font-size:.68rem;overflow-wrap:anywhere}
body.agent-dashboard-page .agent-account-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px;
  margin-top:auto;
}

body.agent-dashboard-page .agent-create-panel{margin-top:12px}
body.agent-dashboard-page .agent-create-panel>summary{padding:13px 15px}
body.agent-dashboard-page .agent-create-summary-copy,
body.agent-dashboard-page .agent-create-summary-side{display:flex;align-items:center;gap:10px}
body.agent-dashboard-page .agent-create-summary-copy{min-width:0}
body.agent-dashboard-page .agent-create-summary-icon{
  display:grid;
  place-items:center;
  flex:0 0 32px;
  width:32px;
  height:32px;
  border-radius:8px;
  background:#eef4f8;
  color:#3f6f95;
  font-size:1.1rem;
  font-weight:600;
}
body.agent-dashboard-page .agent-create-summary-copy>span:last-child{min-width:0}
body.agent-dashboard-page .agent-create-summary-side{flex:0 0 auto}
body.agent-dashboard-page .agent-create-summary-rule{
  padding:5px 7px;
  border:1px solid #e1e6ea;
  border-radius:7px;
  color:#7b8792;
  background:#fafbfc;
  font-size:.61rem;
  font-weight:700;
}
body.agent-dashboard-page .agent-summary-action{padding:6px 8px}
body.agent-dashboard-page .agent-summary-action .when-open{display:none}
body.agent-dashboard-page .agent-create-panel[open] .agent-summary-action .when-closed{display:none}
body.agent-dashboard-page .agent-create-panel[open] .agent-summary-action .when-open{display:inline}

body.agent-dashboard-page #shipments.agent-panel{margin-top:12px}
body.agent-dashboard-page #shipments .agent-panel-heading{padding:16px 16px 11px}
body.agent-dashboard-page .agent-status-chips{
  display:flex;
  align-items:center;
  gap:6px;
  overflow-x:auto;
  padding:0 16px 10px;
  scrollbar-width:none;
}
body.agent-dashboard-page .agent-status-chips::-webkit-scrollbar{display:none}
body.agent-dashboard-page .agent-status-chip{
  display:inline-flex;
  align-items:center;
  gap:7px;
  flex:0 0 auto;
  min-height:31px;
  padding:0 9px;
  border:1px solid #e2e6ea;
  border-radius:8px;
  background:#fff;
  color:#65727f;
  font-size:.66rem;
  font-weight:730;
  white-space:nowrap;
}
body.agent-dashboard-page .agent-status-chip:hover{background:#f8fafb;border-color:#d6dce2}
body.agent-dashboard-page .agent-status-chip b{
  min-width:19px;
  padding:2px 5px;
  border-radius:999px;
  background:#f0f3f5;
  color:#75818c;
  text-align:center;
  font-size:.59rem;
  font-weight:800;
}
body.agent-dashboard-page .agent-status-chip.active{
  border-color:#a9c7df;
  background:#f3f8fc;
  color:#315b7d;
}
body.agent-dashboard-page .agent-status-chip.active b{background:#dfeefa;color:#315b7d}
body.agent-dashboard-page .agent-status-chip.active.attention{border-color:#e5bebe;background:#fff7f7;color:#8f4444}
body.agent-dashboard-page .agent-status-chip.active.attention b{background:#f7dddd;color:#8f4444}

body.agent-dashboard-page #shipments .agent-filter-bar.agent-filter-bar-search{
  grid-template-columns:minmax(0,1fr) auto;
  align-items:end;
  gap:9px;
  padding:11px 16px;
  border-top:1px solid #eef0f2;
  border-bottom:1px solid #eef0f2;
  background:#fbfcfd;
}
body.agent-dashboard-page .agent-filter-bar-search .agent-filter-actions{grid-column:auto;white-space:nowrap}
body.agent-dashboard-page #shipments .agent-list-body{padding:12px 16px 16px}

@media(max-width:980px){
  body.agent-dashboard-page .agent-overview-layout{grid-template-columns:1fr}
  body.agent-dashboard-page .agent-account-panel{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px}
  body.agent-dashboard-page .agent-account-panel-head{padding:0;border-bottom:0}
  body.agent-dashboard-page .agent-account-list{display:none}
  body.agent-dashboard-page .agent-account-actions{grid-template-columns:auto auto;margin:0}
}
@media(max-width:760px){
  body.agent-dashboard-page .agent-dashboard-intro{align-items:flex-start;flex-direction:column;gap:13px;padding-top:4px}
  body.agent-dashboard-page .agent-dashboard-intro-actions{width:100%}
  body.agent-dashboard-page .agent-dashboard-intro-actions .agent-btn{width:100%}
  body.agent-dashboard-page .agent-section-nav{width:100%;overflow-x:auto;scrollbar-width:none}
  body.agent-dashboard-page .agent-section-nav::-webkit-scrollbar{display:none}
  body.agent-dashboard-page .agent-queue-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.agent-dashboard-page .agent-section-heading{align-items:flex-start;flex-direction:column;gap:5px}
  body.agent-dashboard-page .agent-account-panel{display:flex;align-items:stretch}
  body.agent-dashboard-page .agent-account-panel-head{padding-bottom:11px;border-bottom:1px solid #eef0f2}
  body.agent-dashboard-page .agent-account-list{display:grid}
  body.agent-dashboard-page .agent-account-actions{grid-template-columns:1fr 1fr;width:100%}
  body.agent-dashboard-page .agent-create-summary-rule{display:none}
  body.agent-dashboard-page #shipments .agent-panel-heading{align-items:flex-start;flex-direction:column}
  body.agent-dashboard-page #shipments .agent-panel-heading .agent-btn{width:100%}
}
@media(max-width:560px){
  body.agent-dashboard-page .agent-dashboard-shell,
  body.agent-dashboard-page .agent-topbar-inner,
  body.agent-dashboard-page .agent-footer{width:calc(100% - 20px)}
  body.agent-dashboard-page .agent-dashboard-shell{padding-top:13px}
  body.agent-dashboard-page .agent-dashboard-intro h1{font-size:1.4rem}
  body.agent-dashboard-page .agent-dashboard-intro p{font-size:.75rem}
  body.agent-dashboard-page .agent-section-nav{margin-bottom:9px}
  body.agent-dashboard-page .agent-overview-layout{gap:8px}
  body.agent-dashboard-page .agent-work-queue,
  body.agent-dashboard-page .agent-account-panel{padding:13px;border-radius:10px}
  body.agent-dashboard-page .agent-queue-grid{gap:6px}
  body.agent-dashboard-page .agent-queue-item{padding:10px 9px}
  body.agent-dashboard-page .agent-queue-alert{align-items:flex-start;flex-direction:column;gap:4px}
  body.agent-dashboard-page .agent-queue-footer{gap:6px 13px}
  body.agent-dashboard-page .agent-account-actions{grid-template-columns:1fr}
  body.agent-dashboard-page .agent-create-panel>summary{align-items:flex-start;padding:12px}
  body.agent-dashboard-page .agent-create-summary-copy{align-items:flex-start}
  body.agent-dashboard-page .agent-create-summary-side{padding-top:1px}
  body.agent-dashboard-page .agent-create-summary-icon{width:30px;height:30px;flex-basis:30px}
  body.agent-dashboard-page .agent-status-chips{padding-left:12px;padding-right:12px}
  body.agent-dashboard-page #shipments .agent-filter-bar.agent-filter-bar-search{grid-template-columns:1fr;padding:10px 12px}
  body.agent-dashboard-page .agent-filter-bar-search .agent-filter-actions{width:100%}
  body.agent-dashboard-page .agent-filter-bar-search .agent-filter-actions .agent-btn{flex:1}
  body.agent-dashboard-page #shipments .agent-panel-heading,
  body.agent-dashboard-page #shipments .agent-list-body{padding-left:12px;padding-right:12px}
}

/* v1.24.6 — AJAX workspace navigation */
.agent-ajax-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 3000;
    pointer-events: none;
    opacity: 0;
    overflow: hidden;
    background: transparent;
    transition: opacity .15s ease;
}
.agent-ajax-progress span {
    display: block;
    width: 38%;
    height: 100%;
    border-radius: 999px;
    background: currentColor;
    color: #0f5bd7;
    transform: translateX(-120%);
}
.agent-ajax-loading .agent-ajax-progress { opacity: 1; }
.agent-ajax-loading .agent-ajax-progress span { animation: agentAjaxProgress 1s ease-in-out infinite; }
.agent-ajax-loading #shipments,
.agent-ajax-loading #agentOverviewRegion {
    opacity: .72;
    transition: opacity .16s ease;
}
.agent-ajax-loading [data-agent-ajax-form] button[type="submit"] { cursor: wait; }
.agent-flash-region:empty { display: none; }
.agent-flash-region .agent-alert { margin-bottom: 16px; }
.agent-section-nav a { cursor: pointer; }
#overview,
#new-shipment,
#shipments { scroll-margin-top: 92px; }
@keyframes agentAjaxProgress {
    0% { transform: translateX(-120%); }
    55% { transform: translateX(110%); }
    100% { transform: translateX(280%); }
}
@media (prefers-reduced-motion: reduce) {
    .agent-ajax-progress span { animation: none !important; transform: translateX(0); width: 100%; }
    .agent-ajax-loading #shipments,
    .agent-ajax-loading #agentOverviewRegion { transition: none; }
}
