:root {
  color-scheme: light;
  --ink: #192524;
  --muted: #53635f;
  --paper: #f7f9f8;
  --white: #ffffff;
  --line: #d9e3df;
  --teal: #116253;
  --teal-hover: #0b4f43;
  --mint: #e2f1ed;
  --warm: #78502a;
  --warm-bg: #f5e9da;
  --red: #9d2f35;
  --red-bg: #f9ecec;
  --ring: #217769;
  font: 15px/1.5 "Segoe UI", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); min-width: 280px; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .72; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--ring); outline-offset: 3px;
}
.skip {
  position: absolute; top: 8px; left: 12px; z-index: 2; padding: 9px 16px;
  color: var(--ink); background: var(--white); transform: translateY(-150%);
}
.skip:focus { transform: none; }
.top { background: var(--white); border-top: 3px solid var(--teal); border-bottom: 1px solid var(--line); }
.top-inner {
  min-height: 64px; max-width: 1160px; padding: 0 28px; margin: auto;
  display: flex; align-items: center; gap: 13px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 720; white-space: nowrap; }
.brand-mark {
  display: grid; width: 34px; height: 34px; place-items: center; border-radius: 8px;
  background: var(--teal); color: var(--white);
}
.environment {
  font-size: 12px; font-weight: 650; color: var(--warm); background: var(--warm-bg);
  padding: 2px 8px; border-radius: 4px;
}
.top-inner > form { margin-left: auto; }
.icon { width: 19px; height: 19px; flex: none; }
.content { max-width: 1160px; padding: 44px 28px 72px; margin: auto; }
.content-narrow { max-width: 630px; }
.page-heading { margin-bottom: 24px; min-width: 0; }
.heading-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.heading-row > div { min-width: 0; }
h1, h2, p { margin: 0; }
h1 { font-size: 35px; line-height: 1.2; font-weight: 720; overflow-wrap: anywhere; }
h2 { font-size: 21px; line-height: 1.3; font-weight: 700; }
.summary { margin-top: 9px; color: var(--muted); overflow-wrap: anywhere; }
.summary strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.heading-icon {
  display: grid; place-items: center; width: 38px; height: 38px;
  margin-bottom: 14px; color: var(--teal); background: var(--mint); border-radius: 8px;
}
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 42px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--white); color: var(--ink); font-size: 14px; font-weight: 650;
  white-space: normal; text-align: center;
}
.button:hover { border-color: #a4b7b0; background: #edf4f1; }
.button-primary { color: var(--white); background: var(--teal); border-color: var(--teal); }
.button-primary:hover { background: var(--teal-hover); border-color: var(--teal-hover); }
.button-quiet { background: transparent; border-color: transparent; }
.button-small { min-height: 36px; padding: 6px 10px; }
.button-small .icon { width: 17px; height: 17px; }
.button-risk { color: var(--red); }
.button-risk:hover { background: var(--red-bg); border-color: var(--red-bg); }
.button-danger { color: var(--white); background: var(--red); border-color: var(--red); }
.button-danger:hover { background: #80242b; border-color: #80242b; }
.lanes {
  display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 22px;
  border-block: 1px solid var(--line); margin: 0 0 31px; padding: 15px 0;
}
.lane { display: flex; align-items: center; gap: 11px; min-width: 0; }
.lane > div { min-width: 0; }
.lane strong { display: block; font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.lane-icon, .device-icon, .empty-icon {
  display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 7px;
}
.lane-ru { color: var(--teal); background: var(--mint); }
.lane-foreign { color: var(--warm); background: var(--warm-bg); }
.lane-path {
  display: flex; align-items: center; flex-wrap: wrap; gap: 5px;
  color: var(--muted); font-size: 13px;
}
.lane-path .icon { width: 13px; height: 13px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 640; white-space: nowrap; }
.status-good { color: #115f4f; }
.status-quiet { color: var(--muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.list-heading, .device-row {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(90px, .65fr) minmax(110px, .65fr) minmax(202px, 1fr);
  align-items: center; column-gap: 12px;
}
.list-heading {
  padding: 0 12px 10px; border-bottom: 1px solid var(--line);
  color: var(--muted); font-size: 13px; font-weight: 630;
}
.list-heading span:last-child { text-align: right; }
.device-list, .export-list { padding: 0; margin: 0; list-style: none; }
.device-row { min-height: 69px; border-bottom: 1px solid var(--line); padding: 12px; }
.device-row:hover { background: #f0f5f3; }
.device-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.device-name > div { min-width: 0; }
.device-icon, .empty-icon { color: #415a55; background: #e8efec; }
.device-name strong { display: block; font-weight: 700; overflow-wrap: anywhere; }
.muted, .device-date { color: var(--muted); font-size: 13px; }
.device-date { font-variant-numeric: tabular-nums; }
.device-actions { display: flex; justify-content: flex-end; gap: 5px; align-items: center; flex-wrap: wrap; }
.inline { display: inline-flex; }
.empty {
  display: grid; place-items: center; text-align: center; gap: 15px;
  min-height: 215px; border-bottom: 1px solid var(--line); padding: 24px 14px 30px;
}
.empty-icon { width: 43px; height: 43px; }
.notice {
  display: flex; align-items: flex-start; gap: 9px; margin: 0 0 18px; padding: 10px 13px;
  border-radius: 6px; color: #81242c; background: var(--red-bg); overflow-wrap: anywhere;
}
.notice .icon { margin-top: 1px; }
.notice-success { color: #15584c; background: var(--mint); }
.back {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 19px; min-height: 32px;
  color: var(--teal); font-size: 14px; font-weight: 650;
}
.back:hover { text-decoration: underline; }
.stack { display: grid; max-width: 460px; justify-items: start; gap: 10px; }
label { font-weight: 700; }
input:not([type="hidden"]) {
  width: 100%; min-height: 46px; padding: 9px 12px; color: var(--ink);
  background: var(--white); border: 1px solid #a6b8b2; border-radius: 6px; font-size: 16px;
}
.stack > .button, .stack .form-actions { margin-top: 7px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.consequence { margin: 0 0 22px; max-width: 460px; }
.export-list { border-top: 1px solid var(--line); margin: 0 0 18px; }
.export-row {
  display: flex; align-items: center; justify-content: space-between; gap: 9px;
  min-height: 65px; padding: 9px 0; border-bottom: 1px solid var(--line);
}
.copy-status { color: var(--muted); margin-top: 13px; min-height: 22px; }
@media (max-width: 680px) {
  .top-inner { padding-inline: 16px; min-height: 57px; gap: 9px; }
  .top .button-quiet { padding-inline: 6px; }
  .content { padding: 27px 16px 44px; }
  h1 { font-size: 28px; }
  .heading-row { align-items: flex-start; flex-direction: column; gap: 13px; }
  .lanes { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 13px; margin-bottom: 20px; }
  .lane-state { grid-column: 1 / -1; }
  .lane-path { font-size: 12px; }
  .list-heading { display: none; }
  .device-row { grid-template-columns: minmax(0, 1fr) auto; padding-inline: 0; gap: 8px; }
  .device-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .device-date { grid-column: 1 / -1; margin-left: 46px; }
  .device-row .device-actions { margin-left: 46px; }
  .device-row .button { min-height: 42px; }
  .export-row { flex-wrap: wrap; }
}
@media (max-width: 360px) {
  .top-inner, .content { padding-inline: 12px; }
  .lane { gap: 7px; }
  .lane-icon { width: 30px; height: 30px; }
  .lane strong { font-size: 14px; }
  .brand { gap: 7px; }
  .brand-mark { width: 30px; height: 30px; }
  .device-row .device-actions { margin-left: 0; }
}
