:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #253346;
  background: #f5f7fa;
  font-synthesis: none;
  --blue: #245f99;
  --line: #e3e8ef;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
  font-size: 14px;
}
button {
  background: var(--blue);
  color: white;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 15px;
  cursor: pointer;
  font-weight: 550;
  min-height: 40px;
}
button:hover {
  filter: brightness(0.94);
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button.secondary,
.pager button,
.segmented button {
  background: white;
  border-color: var(--line);
  color: #3a4c62;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #6fa2d4;
  outline-offset: 3px;
}
aside {
  position: fixed;
  width: 225px;
  inset: 0 auto 0 0;
  background: white;
  border-right: 1px solid var(--line);
  padding: 30px 18px;
  display: flex;
  flex-direction: column;
}
.brand {
  color: #1d314b;
  text-decoration: none;
  font-size: 27px;
  letter-spacing: -1px;
  font-weight: 700;
  padding: 0 12px;
}
.brand span {
  display: block;
  font-size: 13px;
  letter-spacing: 0;
  color: #6e7b8d;
  font-weight: 400;
  margin-top: 7px;
}
nav {
  margin-top: 45px;
  display: grid;
  gap: 5px;
}
nav a {
  padding: 13px 12px;
  color: #526075;
  text-decoration: none;
  font-size: 14px;
  border-radius: 8px;
}
nav a.active {
  background: #eaf1f8;
  color: var(--blue);
  font-weight: 600;
}
.aside-footer {
  margin-top: auto;
  font-size: 12px;
  color: #8a94a4;
  line-height: 1.7;
  padding: 12px;
}
main {
  margin-left: 225px;
  padding: 36px 36px 64px;
  max-width: 1850px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 650;
  color: #7a8a9e;
  letter-spacing: 1.3px;
}
h1 {
  font-size: 29px;
  letter-spacing: -0.8px;
  font-weight: 600;
  margin: 10px 0;
}
h2 {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
}
h3 {
  font-size: 14px;
}
p {
  color: #768397;
  font-size: 13px;
  line-height: 1.6;
  margin: 8px 0;
}
label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 550;
  color: #56657a;
}
input,
select {
  min-width: 0;
  width: 100%;
  padding: 10px 11px;
  border: 1px solid #d7dfe9;
  border-radius: 7px;
  background: white;
  color: #26364c;
  min-height: 41px;
}
.provider-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 20px 0;
}
.provider-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 13px;
}
.provider-logo {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  background: #edf3fa;
  color: #245f99;
}
.provider-logo.dhl {
  background: #fff6d2;
  color: #b90c20;
}
.provider-logo.packeta {
  background: #fff0ed;
  color: #ac2c22;
}
.provider-logo.gls {
  background: #e9f0ff;
  color: #244790;
}
.provider-name {
  font-weight: 600;
  font-size: 15px;
}
.provider-status {
  font-size: 11px;
  color: #78899e;
  margin-top: 6px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
}
.card-title {
  padding: 21px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
th {
  text-align: left;
  color: #8a96a6;
  font-size: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  background: #f9fbfd;
  font-weight: 600;
  padding: 13px 24px;
}
td {
  padding: 17px 24px;
  border-top: 1px solid #edf0f5;
}
td button {
  background: #f1f5f9;
  color: var(--blue);
  min-height: 32px;
  font-size: 12px;
  padding: 6px 11px;
}
.badge {
  background: #eaf1f8;
  color: #3d638a;
  font-size: 11px;
  padding: 6px 9px;
  border-radius: 6px;
  white-space: nowrap;
}
.badge.waiting {
  background: #fff3df;
  color: #946318;
}
.badge.active {
  background: #eaf5ef;
  color: #327052;
}
.two-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 20px;
}
.settings {
  padding: 24px;
  height: max-content;
}
.settings label {
  margin-top: 20px;
}
.settings button {
  width: 100%;
  margin-top: 22px;
}
.check {
  display: flex;
  align-items: flex-start;
  font-weight: 400;
  line-height: 1.6;
}
.check input {
  width: 16px;
  min-height: 16px;
  margin: 2px 4px 0 0;
}
.hint {
  font-size: 11px;
  color: #8190a2;
}
.contract-box {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 12px;
}
.contract-box code {
  font-size: 10px;
  background: #f4f6f9;
  padding: 7px;
  display: inline-block;
  border-radius: 5px;
}
.notice {
  border: 1px solid #e3eaf4;
  border-radius: 8px;
  background: #eff5fc;
  color: #456b94;
  padding: 12px 16px;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.segmented {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  flex-shrink: 0;
}
.segmented button {
  border: 0;
  border-radius: 0;
  font-size: 11px;
  min-height: 33px;
  padding: 7px 10px;
}
.segmented button.selected {
  background: #eaf1f8;
  color: var(--blue);
}
.search-row {
  display: grid;
  grid-template-columns: 2fr 0.8fr 1.5fr auto;
  align-items: end;
  gap: 10px;
  padding: 0 24px 18px;
}
.catalog-info {
  font-size: 11px;
  color: #7b8da3;
  padding: 0 24px 12px;
}
.point-browser {
  display: grid;
  grid-template-columns: 270px 1fr;
  min-height: 420px;
  border-top: 1px solid var(--line);
}
#points {
  overflow: auto;
  max-height: 420px;
}
#map {
  height: 420px;
  z-index: 0;
}
.point-item {
  display: block;
  width: 100%;
  text-align: left;
  background: white;
  color: #304258;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 16px 20px;
  min-height: 94px;
}
.point-item strong {
  display: block;
  font-size: 12px;
  margin-bottom: 7px;
}
.point-item span {
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  color: #8593a5;
  display: block;
}
.point-item.selected {
  background: #edf4fb;
  border-left: 3px solid var(--blue);
}
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: #8b98a7;
}
.pager button {
  font-size: 11px;
  min-height: 32px;
  padding: 5px 10px;
}
.point-detail {
  padding: 16px 24px;
  background: #f1f6fc;
  font-size: 12px;
}
.empty {
  padding: 25px;
  font-size: 12px;
  color: #8593a5;
  text-align: center;
}
.error {
  background: #fff1ef;
  color: #a54232;
  padding: 13px 18px;
  border-radius: 7px;
  margin: 15px 0;
  font-size: 12px;
}
.success {
  background: #edf7f0;
  color: #33714b;
  padding: 13px 18px;
  border-radius: 7px;
  margin: 15px 0;
  font-size: 12px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 27px;
  width: min(560px, 95vw);
  color: #253346;
}
dialog::backdrop {
  background: #172b4650;
}
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.dialog-header h2 {
  margin-top: 8px;
}
dialog label {
  margin: 16px 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}
.dialog-actions button {
  min-width: 180px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.list-only .point-browser {
  grid-template-columns: 1fr;
}
.list-only #map {
  display: none;
}
@media (max-width: 1200px) {
  main {
    padding: 24px;
  }
  .two-columns {
    grid-template-columns: 1fr;
  }
  .settings {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .provider-card {
    padding: 15px;
    gap: 7px;
  }
  .provider-logo {
    width: 34px;
    height: 34px;
  }
  .point-browser {
    grid-template-columns: 240px 1fr;
  }
  .search-row {
    grid-template-columns: 1.5fr 0.8fr 1fr auto;
  }
}
@media (max-width: 760px) {
  aside {
    position: static;
    width: auto;
    padding: 15px;
  }
  .brand {
    font-size: 22px;
  }
  nav {
    display: flex;
    overflow: auto;
    margin-top: 12px;
  }
  .aside-footer {
    display: none;
  }
  main {
    margin: 0;
    padding: 18px;
  }
  .provider-grid {
    grid-template-columns: 1fr 1fr;
  }
  .card-title {
    padding: 18px;
    flex-wrap: wrap;
  }
  .search-row {
    grid-template-columns: 1fr 1fr;
    padding: 0 18px 16px;
  }
  .point-browser {
    grid-template-columns: 1fr;
  }
  #points {
    max-height: 280px;
  }
  #map {
    height: 320px;
  }
  .settings {
    display: block;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  header {
    align-items: flex-start;
    gap: 10px;
  }
  h1 {
    font-size: 25px;
  }
}

.provider-artwork { display: block; width: 56px; height: 36px; object-fit: contain; }
.provider-logo { flex: 0 0 64px; min-width: 64px; width: 64px; overflow: hidden; }
.network-logo { width: 64px; height: 32px; object-fit: contain; display: block; background: white; }
.point-item .network-logo { float: right; margin: 0 0 8px 12px; }
.carrier-marker { background: white; border: 1px solid #d2d7df; border-radius: 6px; padding: 2px; box-shadow: 0 2px 5px #0002; }
