:root {
  color-scheme: light;
  --ink: #162946;
  --sub: #556882;
  --muted: #697d99;
  --line: #dde5f0;
  --blue: #2064e8;
  --blue-light: #ecf3ff;
  --green: #13765e;
  --teal: #068a83;
  --amber: #975815;
  --bg: #f3f6fb;
  --shadow: 0 2px 8px #23477508;
  --nav: 188px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    14px/1.55 "Inter",
    "Microsoft YaHei UI",
    "Microsoft YaHei",
    system-ui,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 3px;
}
a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.46;
  cursor: default;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #85b1ff;
}
input,
textarea,
select {
  border: 1px solid #c8d5e7;
  background: white;
  color: var(--ink);
  border-radius: 6px;
  padding: 8px 10px;
  min-width: 0;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #a7c9ff;
  border-color: #6899ea;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(24px, 2vw, 34px);
  letter-spacing: -0.055em;
  line-height: 1.3;
}
h2 {
  font-size: 16px;
  letter-spacing: -0.03em;
}
h3 {
  font-size: 14px;
}
svg.ico {
  width: 19px;
  height: 19px;
  flex: none;
  vertical-align: middle;
  stroke-width: 1.75;
}
.loading {
  padding: 3rem;
  color: var(--sub);
}
.skip {
  position: fixed;
  z-index: 99;
  left: -999px;
  top: 6px;
  padding: 10px 15px;
  background: white;
}
.skip:focus {
  left: 8px;
}
.top {
  height: 61px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 25px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}
.brand,
.mark,
.user,
.context,
.bar-right,
.ico-title,
.inline,
.tabs,
.buttons,
.between,
.heading {
  display: flex;
  align-items: center;
  gap: 9px;
}
.brand {
  font-size: 21px;
  letter-spacing: -0.06em;
  font-weight: 760;
  color: #153866;
  gap: 12px;
}
.mark {
  width: 33px;
  height: 33px;
  border-radius: 10px;
  justify-content: center;
  background: linear-gradient(140deg, #68a9ff, #235bec 80%);
  color: white;
  box-shadow: 0 2px 5px #2d69cb2e;
}
.mark svg.ico {
  width: 22px;
  height: 22px;
}
.context {
  font-size: 14px;
  font-weight: 550;
  color: var(--sub);
  border-left: 1px solid var(--line);
  padding-left: 16px;
  margin-left: 5px;
  letter-spacing: normal;
}
.bar-right {
  gap: 12px;
}
.user {
  gap: 8px;
}
.avatar {
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  background: #e1edff;
  color: #245fc7;
  font-weight: 700;
}
.wrapper {
  min-height: calc(100vh - 61px);
  display: grid;
  grid-template-columns: var(--nav) minmax(0, 1fr);
}
.sidebar {
  background: #fcfdff;
  border-right: 1px solid var(--line);
  position: sticky;
  top: 61px;
  height: calc(100vh - 61px);
  display: flex;
  flex-direction: column;
  padding: 25px 10px 15px;
}
.navlink {
  display: flex;
  gap: 11px;
  align-items: center;
  color: #415575;
  border-radius: 7px;
  padding: 12px 15px;
  font-size: 14px;
  font-weight: 580;
  position: relative;
  white-space: nowrap;
  margin-bottom: 4px;
}
.navlink:hover {
  background: #f1f5fc;
  text-decoration: none;
}
.navlink.active {
  background: #e5efff;
  color: #195cda;
}
.navlink.active:before {
  content: "";
  width: 3px;
  height: 18px;
  border-radius: 2px;
  background: #397aef;
  position: absolute;
  left: 0;
}
.aside-foot {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 15px 8px 0;
  color: var(--sub);
  font-size: 12px;
}
.aside-foot b {
  display: block;
  color: var(--ink);
  font-size: 14px;
  margin: 3px 0;
}
.stage {
  min-width: 0;
  padding: 25px clamp(15px, 2.15vw, 38px) 35px;
  max-width: 2060px;
  width: 100%;
  margin: 0 auto;
}
.heading {
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.heading p {
  color: var(--sub);
  font-size: 13px;
  margin-top: 5px;
}
.crumb {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.heading-extra,
.buttons,
.tabs {
  flex-wrap: wrap;
}
.period {
  display: flex;
  gap: 6px;
  align-items: center;
}
.period input {
  max-width: 142px;
}
.period span {
  color: var(--muted);
}
.btn,
.iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 7px;
  border: 1px solid #cbd6e6;
  background: white;
  color: #365170;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.4;
  padding: 8px 12px;
  white-space: nowrap;
}
.btn:hover,
.iconbtn:hover {
  background: #f0f5fe;
  text-decoration: none;
}
.btn.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}
.btn.primary:hover {
  background: #184fc3;
}
.btn.danger {
  background: #fff2f2;
  color: #b13136;
  border-color: #f2c4c7;
}
.btn.ghost,
.iconbtn {
  background: transparent;
  border-color: transparent;
}
.iconbtn {
  padding: 6px;
}
.btn svg.ico {
  width: 16px;
  height: 16px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  min-width: 0;
  overflow: hidden;
}
.panel-head {
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid #eaf0f6;
}
.ico-title {
  gap: 9px;
  line-height: 1.4;
}
.ico-title .ico {
  color: var(--blue);
}
.panel-body {
  padding: 16px 18px;
}
.stack {
  display: grid;
  align-content: start;
  gap: 13px;
  min-width: 0;
}
.layout {
  display: grid;
  gap: 14px;
  align-items: start;
}
.cols2 {
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
}
.equal {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.thirds {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.band {
  margin-top: 14px;
}
.between {
  justify-content: space-between;
  gap: 10px;
}
.muted {
  color: var(--muted);
}
.small,
small {
  font-size: 12px;
}
.num {
  font-variant-numeric: tabular-nums;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 5px;
  background: #edf1f7;
  color: #4c6481;
  font-size: 12px;
  white-space: nowrap;
  font-weight: 550;
}
.pill.green {
  color: #087457;
  background: #e4f6ed;
}
.pill.blue {
  color: #245fcc;
  background: #e9f0ff;
}
.pill.amber {
  color: #8f5313;
  background: #fff1d8;
}
.pill.red {
  color: #b73d44;
  background: #fff0f1;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #93a3b8;
  display: inline-block;
}
.status-dot.on {
  background: #15aa7b;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 11px;
  margin-bottom: 15px;
}
.metric {
  position: relative;
  border: 1px solid #dce6f3;
  border-radius: 11px;
  padding: 13px 14px;
  background: linear-gradient(125deg, #fff 0%, #f0f5ff 100%);
  overflow: hidden;
}
.metric:nth-child(even) {
  background: linear-gradient(125deg, #fff 0%, #edf9f6 100%);
  border-color: #dcebe7;
}
.metric-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #486079;
}
.metric-head .ico {
  color: var(--blue);
  width: 17px;
  height: 17px;
}
.metric:nth-child(even) .ico {
  color: #008c76;
}
.metric strong {
  display: inline-block;
  font-size: clamp(24px, 2.2vw, 36px);
  line-height: 1.3;
  letter-spacing: -0.055em;
  margin-top: 7px;
  font-weight: 680;
  font-variant-numeric: tabular-nums;
}
.metric .unit {
  font-size: 12px;
  margin-left: 5px;
  color: var(--sub);
}
.metric small {
  display: block;
  color: #677d94;
  font-size: 11px;
  margin-top: 3px;
}
.empty {
  color: var(--muted);
  text-align: center;
  padding: 31px 12px;
  font-size: 13px;
  background: linear-gradient(#fff, #fbfcff);
  border-radius: 7px;
}
.empty .ico {
  display: block;
  margin: 0 auto 8px;
  width: 23px;
  height: 23px;
  color: #91aacb;
}
.notice-inline {
  background: #eff6ff;
  color: #345e92;
  border: 1px solid #dbe8fa;
  border-radius: 8px;
  padding: 10px 12px;
}
.notice-inline.green {
  background: #eefaf4;
  border-color: #d3efdf;
  color: #1a7154;
}
.filters {
  display: flex;
  align-items: end;
  gap: 8px;
  flex-wrap: wrap;
}
.filters label,
.form-grid label,
.formblock {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  font-weight: 560;
  color: #526985;
}
.filters input,
.filters select,
.form-grid input,
.form-grid select,
.form-grid textarea,
.formblock input,
.formblock textarea {
  font-size: 14px;
  font-weight: 400;
}
.filters input:not([type="date"]) {
  width: 125px;
}
.filters input[type="date"] {
  width: 132px;
}
.filters .wide input {
  width: 175px;
}
.tabs {
  gap: 7px;
}
.tab {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 7px 11px;
  color: #526882;
  font-size: 13px;
}
.tab.sel {
  color: #1d5dd0;
  background: #edf4ff;
  border-color: #b8d2ff;
}
.table-wrap {
  overflow: auto;
}
.table-wrap table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 13px;
}
.table-wrap th,
.table-wrap td {
  padding: 10px 12px;
  border-bottom: 1px solid #ebf0f6;
  vertical-align: top;
}
.table-wrap th {
  background: #f3f6fa;
  font-weight: 600;
  color: #4b5e79;
  white-space: nowrap;
}
.table-wrap tr:last-child td {
  border-bottom: 0;
}
.table-wrap tr:hover td {
  background: #f8fbff;
}
.link {
  font-weight: 600;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px 20px;
}
.info-grid dt,
.facts dt {
  font-size: 12px;
  color: var(--sub);
}
.info-grid dd,
.facts dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}
.facts {
  margin: 0;
}
.facts > div {
  display: flex;
  justify-content: space-between;
  gap: 13px;
  padding: 9px 0;
  border-bottom: 1px solid #edf1f7;
}
.facts > div:last-child {
  border: 0;
}
.facts dd {
  margin: 0;
  text-align: right;
}
.facts dt {
  flex: none;
}
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
}
.step {
  flex: 1;
  text-align: center;
  position: relative;
  color: #59708c;
  font-size: 12px;
  min-width: 0;
}
.step:after {
  content: "";
  height: 1px;
  background: #d8e4f2;
  position: absolute;
  top: 16px;
  left: calc(50% + 19px);
  right: calc(-50% + 19px);
}
.step:last-child:after {
  display: none;
}
.step i {
  border-radius: 50%;
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  background: #ebf1fa;
  color: #6482a3;
  margin: 0 auto 8px;
}
.step.done i {
  background: #e3f5ee;
  color: #168065;
}
.step.current i {
  background: #e8f0ff;
  color: #2468de;
}
.step b {
  display: block;
  color: var(--ink);
  font-weight: 600;
}
.chart {
  width: 100%;
  height: 195px;
  display: block;
}
.chart text {
  font:
    11px "Inter",
    "Microsoft YaHei",
    sans-serif;
  fill: #71829a;
}
.legend {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 12px;
  color: var(--sub);
  flex-wrap: wrap;
}
.legend i {
  width: 9px;
  height: 9px;
  display: inline-block;
  border-radius: 2px;
  background: #578fea;
  margin-right: 4px;
}
.legend i.green {
  background: #149677;
}
.bars {
  display: grid;
  gap: 9px;
}
.bar-row {
  display: grid;
  grid-template-columns: minmax(56px, 1fr) 2.4fr minmax(27px, auto);
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.track {
  height: 8px;
  border-radius: 8px;
  background: #edf2fa;
  overflow: hidden;
}
.track > i {
  display: block;
  height: 100%;
  background: #5693f6;
  border-radius: 8px;
}
.bar-row:nth-child(even) .track > i {
  background: #46b39b;
}
.live-grid {
  display: grid;
  grid-template-columns: minmax(205px, 0.85fr) minmax(260px, 1.15fr) minmax(290px, 1.15fr);
  gap: 12px;
  align-items: start;
}
.tool-line {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.live-meta {
  display: flex;
  justify-content: space-between;
  gap: 9px;
}
.live-meta b {
  display: block;
  font-size: 25px;
  font-variant-numeric: tabular-nums;
}
.live-meta small {
  color: var(--sub);
}
.meter {
  margin: 14px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 62px;
  background: #f4f8ff;
  border-radius: 9px;
  border: 1px solid #e3ebf7;
}
.meter i {
  width: 4px;
  border-radius: 4px;
  background: #4488ff;
}
.transcript {
  display: grid;
  gap: 12px;
  align-content: start;
  max-height: 465px;
  overflow: auto;
}
.bubble-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 7px;
}
.speaker {
  background: #e9f2ff;
  color: #2767c4;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px;
  align-self: start;
  text-align: center;
}
.speaker.caller {
  background: #e3f7ef;
  color: #127856;
}
.bubble-row p {
  background: #f1f5fc;
  border-radius: 0 8px 8px 8px;
  padding: 6px 9px;
  overflow-wrap: anywhere;
}
.bubble-row time {
  font-size: 10px;
  color: var(--muted);
}
audio {
  width: 100%;
  height: 39px;
}
.tabs-row {
  margin-bottom: 12px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.span2 {
  grid-column: 1/-1;
}
.form-grid textarea {
  resize: vertical;
  min-height: 74px;
}
.form-grid .check {
  display: flex;
  align-items: center;
  flex-direction: row;
}
.check input {
  width: 17px;
  height: 17px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}
.error {
  display: block;
  color: #b32939;
  font-size: 13px;
  margin-top: 8px;
}
dialog {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  border-radius: 15px;
  box-shadow: 0 20px 70px #16375d3d;
  padding: 0;
  width: min(485px, 94vw);
  max-height: 87vh;
}
dialog::backdrop {
  background: #1d355675;
}
.dialog-inner {
  padding: 22px;
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
#notice {
  display: none;
  position: fixed;
  bottom: 23px;
  right: 28px;
  max-width: 90vw;
  z-index: 30;
  background: #183153;
  color: white;
  padding: 12px 18px;
  border-radius: 8px;
  box-shadow: 0 4px 15px #142f5433;
}
#notice.show {
  display: block;
}
.login-screen {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr);
  background: #fafaf8;
  color: #192e3f;
}
.login-cover {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 540px;
  padding: clamp(32px, 4.4vw, 80px);
  color: #fff;
  /* Architectural photograph by Sean Pollock on Unsplash, served locally for intranet use. */
  background:
    linear-gradient(180deg, #132f47a8 0%, #16304616 34%, #102c41a8 66%, #0e2537f5 100%),
    url("/static/login-towers.webp") center 46% / cover no-repeat, #19384f;
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.login-mark {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 8px;
  background: #f4eee0;
  color: #19384f;
}
.login-mark .ico { width: 26px; height: 26px; stroke-width: 2; }
.login-intro { align-self: end; padding: 80px 0 44px; }
.login-intro::before {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin-bottom: 21px;
  background: #d7b987;
}
.login-intro h1 {
  color: #fff;
  font-size: clamp(37px, 4.1vw, 72px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.015em;
}
.login-intro ul {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 19px 0 0;
  padding: 0;
  color: #e0e6e9;
  font-size: clamp(14px, 1.12vw, 17px);
  letter-spacing: 0.09em;
}
.login-intro li + li {
  display: flex;
  align-items: center;
}
.login-intro li + li::before {
  content: "";
  height: 0.85em;
  width: 1px;
  margin: 0 13px;
  background: #c5bcac9c;
}
.login-hotline {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 21px;
  border-top: 1px solid #d4dee147;
  color: #e4e9eb;
  font-size: 13px;
}
.login-hotline .ico { width: 16px; height: 16px; color: #d7b987; }
.login-hotline strong { color: #fff; font-size: 18px; font-weight: 600; letter-spacing: 0.05em; }
.login-panel {
  display: grid;
  place-items: center;
  padding: 56px clamp(32px, 5.2vw, 110px);
}
.login-content { width: min(100%, 392px); }
.login-content h2 {
  font-size: clamp(29px, 2.5vw, 40px);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: 0;
}
.login-instruction { margin: 12px 0 34px; color: #58656e; font-size: 15px; }
.login-field + .login-field { margin-top: 22px; }
.login-field label { display: block; margin-bottom: 8px; color: #243b49; font-weight: 600; }
.login-control {
  position: relative;
  display: flex;
  align-items: center;
}
.login-control > .ico {
  position: absolute;
  left: 15px;
  width: 17px;
  height: 17px;
  color: #64727e;
  pointer-events: none;
}
.login-control input {
  width: 100%;
  height: 50px;
  padding: 0 15px 0 44px;
  border: 1px solid #a6b2bc;
  border-radius: 6px;
  font-size: 16px;
  background-color: #fff;
}
#login-password { padding-right: 48px; }
#login-password::-ms-reveal { display: none; }
.login-control input::placeholder { color: #697781; font-size: 14px; }
.login-control input:focus {
  border-color: #365f83;
  outline: 2px solid #c9d8e3;
  outline-offset: 1px;
}
.login-reveal {
  position: absolute;
  right: 4px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  border-radius: 4px;
  color: #596b78;
}
.login-reveal:hover { color: #15334c; background: #eef2f4; }
.login-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  margin-top: 27px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #1a3a55;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}
.login-submit:hover { background: #254c6c; }
.login-submit .ico { width: 17px; height: 17px; }
#login-form .error:empty { display: none; }
#login-form .error:not(:empty) { display: block; margin: 12px 0 0; }
.login-help {
  display: flex;
  align-items: start;
  gap: 8px;
  padding-top: 21px;
  margin-top: 31px;
  border-top: 1px solid #d8dddf;
  font-size: 13px;
  color: #5a6872;
}
.login-help .ico { width: 15px; height: 15px; margin-top: 3px; }
@media (max-width: 760px) {
  .login-screen { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .login-cover {
    grid-template: auto 1fr / 1fr auto;
    min-height: 195px;
    padding: 22px clamp(20px, 6vw, 42px);
    background-image:
      linear-gradient(180deg, #142e44dc, #1530487a 44%, #10283cdb),
      url("/static/login-towers.webp");
    background-position: center, center 43%;
  }
  .login-brand { font-size: 15px; gap: 8px; }
  .login-mark { width: 29px; height: 29px; border-radius: 6px; }
  .login-mark .ico { width: 21px; height: 21px; }
  .login-intro { grid-column: 1 / -1; padding: 27px 0 0; }
  .login-intro::before { width: 27px; height: 2px; margin-bottom: 10px; }
  .login-intro h1 { font-size: 32px; }
  .login-intro ul { margin-top: 9px; font-size: 13px; }
  .login-intro li + li::before { margin: 0 9px; }
  .login-hotline { grid-area: 1 / 2; align-self: center; gap: 5px; border: 0; padding: 0; font-size: 12px; }
  .login-hotline strong { font-size: 14px; }
  .login-panel { align-items: start; padding: 33px clamp(20px, 6vw, 42px) 30px; }
  .login-content h2 { font-size: 27px; }
  .login-instruction { margin: 8px 0 24px; font-size: 14px; }
  .login-field + .login-field { margin-top: 17px; }
  .login-submit { margin-top: 22px; }
  .login-help { margin-top: 24px; padding-top: 17px; }
}
.mobile-menu {
  display: none;
}
@media (min-width: 1500px) {
  :root {
    --nav: 205px;
  }
  .stage {
    padding-top: 30px;
  }
  .metrics {
    gap: 15px;
  }
  .panel-head,
  .panel-body {
    padding-left: 21px;
    padding-right: 21px;
  }
}
@media (max-width: 1180px) {
  :root {
    --nav: 150px;
  }
  .stage {
    padding: 20px 14px;
  }
  .sidebar {
    padding-left: 6px;
    padding-right: 6px;
  }
  .live-grid {
    grid-template-columns: minmax(190px, 0.85fr) minmax(230px, 1fr) minmax(250px, 1.05fr);
  }
  .panel-head,
  .panel-body {
    padding: 12px;
  }
  .metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 960px) {
  .cols2,
  .thirds,
  .live-grid {
    grid-template-columns: 1fr 1fr;
  }
  .live-grid > .stack:last-child,
  .thirds > .panel:last-child {
    grid-column: 1/-1;
  }
  .context {
    display: none;
  }
  .info-grid {
    gap: 10px;
  }
}
@media (max-width: 740px) {
  .wrapper {
    display: block;
  }
  .top {
    height: 53px;
    padding: 0 11px;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .brand {
    font-size: 17px;
  }
  .sidebar {
    display: none;
  }
  .sidebar.open {
    display: flex;
    position: fixed;
    top: 53px;
    bottom: 0;
    left: 0;
    z-index: 9;
    width: 190px;
    height: calc(100vh - 53px);
    box-shadow: 8px 5px 30px #1d386a26;
  }
  .aside-foot {
    margin-top: 24px;
  }
  .stage {
    padding: 16px 10px;
  }
  .heading {
    align-items: flex-start;
    margin-bottom: 13px;
  }
  .cols2,
  .thirds,
  .equal,
  .live-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .live-grid > .stack:last-child,
  .thirds > .panel:last-child {
    grid-column: auto;
  }
  .bar-right {
    gap: 4px;
  }
  .bar-right .username {
    display: none;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .metric {
    padding: 10px;
  }
  .panel {
    border-radius: 9px;
  }
  .layout,
  .stack {
    gap: 9px;
  }
  .period input {
    max-width: 124px;
    padding: 6px;
    font-size: 12px;
  }
  .steps {
    flex-wrap: wrap;
  }
  .step b {
    font-size: 11px;
  }
  .filters .wide input,
  .filters input:not([type="date"]),
  .filters input[type="date"] {
    width: 125px;
  }
  .form-grid {
    gap: 10px;
  }
  .panel-head {
    gap: 5px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .btn,
  .tab,
  .navlink {
    transition:
      background-color 0.15s,
      border-color 0.15s;
  }
}
@media (min-width: 1600px) {
  .live-grid {
    grid-template-columns: minmax(210px, 0.85fr) minmax(280px, 1.1fr) minmax(550px, 1.9fr);
  }
  .live-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .live-results .preview {
    grid-column: 1/-1;
  }
}
.distribution {
  display: grid;
  grid-template-columns: minmax(102px, 0.8fr) minmax(135px, 1.4fr);
  gap: 18px;
  align-items: center;
  min-height: 180px;
}
.donut {
  border-radius: 50%;
  aspect-ratio: 1;
  width: min(100%, 145px);
  display: grid;
  place-items: center;
  margin: auto;
}
.donut strong {
  width: 65%;
  aspect-ratio: 1;
  background: white;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1.3;
}
.donut small {
  font-weight: 400;
  color: var(--sub);
  font-size: 11px;
}
.distribution-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  margin: 8px 0;
  align-items: center;
  font-size: 12px;
}
.distribution-row .legend {
  gap: 4px;
}
.distribution-row small {
  color: var(--muted);
}
