:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #252838;
  background: #f5f6f9;
  font-size: 14px;
  --red: #ef4141;
  --muted: #6b7282;
  --line: #e3e6ed;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  padding: 10px 14px;
  font-weight: 650;
  color: inherit;
}
button:hover {
  border-color: #b6bbc8;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.primary {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.soft {
  background: #fff0ef;
  color: #ab2828;
  border-color: #ffd7d3;
}
.link {
  background: none;
  border: 0;
  color: #9f2c2c;
  padding: 5px 0;
}
a {
  color: #a72d2d;
  text-underline-offset: 3px;
}
input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d2d6e1;
  border-radius: 8px;
  background: white;
  color: inherit;
}
textarea {
  resize: vertical;
  min-height: 85px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #ffc4bf;
  outline-offset: 1px;
}
label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 650;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 27px;
  letter-spacing: -0.7px;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 14px;
}
p {
  line-height: 1.55;
}
.muted,
small {
  color: var(--muted);
}
small {
  font-size: 11px;
  line-height: 1.5;
}
.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
  gap: 15px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  letter-spacing: -0.6px;
  font-weight: 800;
}
.brand .mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: #fff0ef;
  border-radius: 9px;
  color: var(--red);
  font-size: 25px;
}
.brand small {
  display: block;
  font-weight: 500;
  letter-spacing: 0;
}
.topnav {
  display: flex;
  gap: 6px;
  align-items: center;
}
.topnav button.active {
  background: #fff0ef;
  color: #a52f2f;
  border-color: #ffd8d4;
}
.user {
  font-size: 12px;
  color: var(--muted);
  margin-left: 12px;
}
.shell {
  max-width: 1440px;
  margin: auto;
  padding: 28px 32px 50px;
}
.heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.heading p {
  margin-top: 7px;
  color: var(--muted);
}
.eyebrow {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 1.3px;
  color: #a32c2c;
  font-weight: 750;
  margin-bottom: 7px;
}
.sync {
  font-size: 11px;
  color: var(--muted);
  text-align: right;
}
.sync b {
  color: #247359;
  display: block;
  margin-bottom: 4px;
}
.sync.warn b {
  color: #ab7110;
}
.banner {
  padding: 11px 15px;
  border: 1px solid #e8d6a8;
  border-radius: 9px;
  background: #fffaed;
  font-size: 12px;
  margin-bottom: 18px;
  line-height: 1.5;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid #b5bbcb;
  border-radius: 11px;
  padding: 15px;
}
.kpi:nth-child(1) {
  border-top-color: #dfad49;
}
.kpi:nth-child(2) {
  border-top-color: #ef4141;
  background: #fffafa;
}
.kpi:nth-child(3) {
  border-top-color: #b12e44;
}
.kpi:nth-child(4) {
  border-top-color: #7c7aaf;
}
.kpi:nth-child(5) {
  border-top-color: #d48740;
}
.kpi:nth-child(6) {
  border-top-color: #3a9975;
}
.kpi strong {
  display: block;
  font-size: 27px;
  letter-spacing: -1px;
  margin: 7px 0 2px;
}
.kpi span {
  font-size: 11px;
  font-weight: 650;
  color: var(--muted);
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: clip;
}
.panel-title {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
}
.filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 10px;
  padding: 16px 20px;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 20px 16px;
}
.tabs button {
  font-size: 12px;
  padding: 8px 12px;
}
.tabs .active {
  background: #252838;
  color: #fff;
  border-color: #252838;
}
.badge {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.3;
  white-space: normal;
}
.attempted {
  background: #fff4da;
  color: #95641c;
}
.review {
  background: #fff0ef;
  color: #b22c35;
}
.delivered {
  background: #eaf7ef;
  color: #227951;
}
.returning,
.returned {
  background: #eeeafb;
  color: #67529a;
}
.stale {
  background: #fff4da;
  color: #8d641e;
}
.neutral {
  background: #eef0f5;
  color: #686c7d;
}
.table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.table th {
  text-align: left;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #747b8c;
  background: #f8f9fc;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.table td {
  padding: 15px 16px;
  border-bottom: 1px solid #edf0f5;
  vertical-align: top;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.table tr:last-child td {
  border-bottom: 0;
}
.table td strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}
.table td small {
  display: block;
  margin-top: 4px;
}
.table tbody tr:hover {
  background: #fcfcff;
}
.table .parcel-cell {
  width: 23%;
}
.table .status-cell {
  width: 16%;
}
.table .task-cell {
  width: 24%;
}
.table .owner-cell {
  width: 15%;
}
.table .due-cell {
  width: 15%;
}
.table .open-cell {
  width: 7%;
}
.due {
  color: #a52d39;
  font-weight: 700;
}
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  gap: 10px;
}
.empty {
  padding: 50px 20px;
  text-align: center;
  color: var(--muted);
  line-height: 1.6;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr);
  gap: 20px;
}
.detail-stack {
  display: grid;
  gap: 18px;
  align-content: start;
}
.pad {
  padding: 20px;
}
.steps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 15px 0 22px;
}
.step {
  padding: 7px 11px;
  border-radius: 20px;
  background: #e9ecf3;
  color: #73788b;
  font-size: 11px;
  font-weight: 650;
}
.step.done {
  background: #eaf7ef;
  color: #267452;
}
.step.current {
  background: #fff0ef;
  color: #a92b34;
}
.form {
  display: grid;
  gap: 16px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hint {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}
.check input {
  width: auto;
  margin-top: 3px;
}
.error {
  color: #b52a33;
  font-size: 12px;
  background: #fff0ef;
  padding: 10px;
  border-radius: 7px;
  line-height: 1.5;
}
.success {
  padding: 14px;
  background: #eaf7ef;
  border: 1px solid #cde6d6;
  border-radius: 9px;
  line-height: 1.6;
}
.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 18px 0;
}
.meta-grid dt {
  font-size: 11px;
  color: var(--muted);
}
.meta-grid dd {
  margin: 5px 0 0;
  font-size: 13px;
  font-weight: 650;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline li {
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
}
.timeline li:last-child {
  border: 0;
}
.timeline p {
  font-size: 12px;
  margin-top: 5px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.timeline strong {
  font-size: 12px;
}
.timeline small {
  display: block;
  margin-top: 5px;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.replacement {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 10px;
}
.login {
  max-width: 440px;
  margin: 8vh auto;
  padding: 30px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 20px 80px #2020300a;
}
.login h1 {
  margin: 22px 0 8px;
}
.login .form {
  margin-top: 24px;
}
.login .hint {
  margin-top: 18px;
}
.subtitle {
  margin-top: 8px;
  color: var(--muted);
}
.performance th,
.performance td {
  padding: 12px 9px;
}
.performance th {
  font-size: 9px;
}
.performance td {
  font-size: 11px;
}
.team-list {
  display: grid;
  gap: 10px;
}
.team-member {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  background: #f8f9fc;
  border-radius: 8px;
  font-size: 12px;
}
.secret {
  font-family: monospace;
  font-size: 16px;
  overflow-wrap: anywhere;
}
.sticky-submit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
#toast:not(:empty) {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 18px;
  border-radius: 10px;
  background: #252838;
  color: #fff;
  font-size: 12px;
  box-shadow: 0 5px 25px #0002;
  z-index: 20;
  max-width: 90vw;
}
.contact-number {
  font-size: 21px;
  font-weight: 750;
  letter-spacing: 0.3px;
}
.inline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.source-note {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 14px;
}
.loading {
  opacity: 0.6;
  pointer-events: none;
}
@media (max-width: 1000px) {
  .kpis {
    grid-template-columns: repeat(3, 1fr);
  }
  .shell {
    padding: 22px 20px;
  }
  .topbar {
    padding: 0 20px;
  }
  .user {
    display: none;
  }
  .table th,
  .table td {
    padding: 12px 10px;
  }
  .detail-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 700px) {
  .topbar {
    height: auto;
    min-height: 68px;
    padding: 12px 16px;
    flex-wrap: wrap;
    position: static;
    gap: 12px;
  }
  .brand {
    font-size: 18px;
  }
  .topnav {
    gap: 4px;
    flex: 1;
    justify-content: flex-end;
  }
  .topnav button {
    font-size: 11px;
    padding: 8px;
  }
  .shell {
    padding: 22px 14px;
  }
  .heading {
    display: block;
  }
  .heading h1 {
    font-size: 25px;
  }
  .sync {
    text-align: left;
    margin-top: 12px;
  }
  .sync b {
    display: inline;
  }
  .kpis {
    gap: 8px;
    margin-bottom: 18px;
  }
  .kpi {
    padding: 11px;
  }
  .kpi strong {
    font-size: 24px;
  }
  .kpi span {
    font-size: 10px;
  }
  .filters {
    grid-template-columns: 1fr 1fr;
    padding: 14px;
  }
  .filters input {
    grid-column: 1/-1;
  }
  .tabs {
    padding: 0 14px 14px;
    gap: 6px;
  }
  .tabs button {
    font-size: 11px;
    padding: 8px;
  }
  .panel-title {
    padding: 15px;
  }
  .table,
  .table tbody {
    display: block;
    width: 100%;
  }
  .table thead {
    display: none;
  }
  .table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 14px;
    gap: 10px;
    border-bottom: 1px solid var(--line);
  }
  .table td {
    display: block;
    width: auto !important;
    padding: 0;
    border: 0;
    font-size: 12px;
    min-width: 0;
  }
  .table td:before {
    content: attr(data-label);
    display: block;
    font-size: 9px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #8b91a0;
    margin-bottom: 5px;
  }
  .table .parcel-cell {
    grid-column: 1/-1;
  }
  .table .open-cell {
    grid-column: 2;
    display: flex;
    align-items: end;
    justify-content: flex-end;
  }
  .table .parcel-cell strong {
    font-size: 16px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .pad {
    padding: 17px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .login {
    margin: 5vh 14px;
    padding: 24px;
  }
  .performance tbody tr {
    grid-template-columns: repeat(3, 1fr);
    padding: 16px;
    gap: 14px;
  }
  .performance td:first-child {
    grid-column: 1/-1;
  }
  .performance td:first-child strong {
    font-size: 16px;
  }
  .performance td:before {
    font-size: 9px;
  }
  .pager {
    padding: 14px;
  }
  .steps {
    gap: 5px;
  }
  .step {
    font-size: 10px;
    padding: 7px 9px;
  }
  .meta-grid {
    gap: 14px;
  }
  .heading .actions {
    margin-top: 14px;
  }
}
.table .parcel-cell {
  width: 22%;
}
.table .task-cell {
  width: 23%;
}
.table .owner-cell {
  width: 14%;
}
.table .due-cell {
  width: 16%;
}
.table .open-cell {
  width: 9%;
}
.open-cell button {
  white-space: nowrap;
  font-size: 11px;
  padding: 8px 10px;
}

#app[aria-busy="true"] .table,#app[aria-busy="true"] .kpis{opacity:.5;}
#app[aria-busy="true"] .table{pointer-events:none;}
#app[aria-busy="true"] .sync::after{content:" · Updating selected view…";font-weight:600;}

.history-info{padding:0 20px 12px;color:var(--muted,#666);font-size:12px}.history-info p{margin:4px 0 8px}.courier-events{list-style:none;padding:0 20px 16px;margin:0}.courier-events li{border-left:2px solid #f0cece;padding:0 0 18px 16px;position:relative}.courier-events li:before{content:"";position:absolute;left:-5px;top:3px;width:8px;height:8px;background:#dc4d4d;border-radius:50%}.courier-event-head{display:flex;flex-direction:column;gap:5px}.courier-event-head time,.courier-events small{font-size:11px;color:#686877}.courier-note{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;margin:7px 0 0}.courier-events strong{font-size:13px;overflow-wrap:anywhere}.replacement .courier-history{margin-top:14px}.courier-history{overflow:visible}
