:root {
  color-scheme: dark;
  --bg: #07111f;
  --panel: #0d1929;
  --panel2: #111f32;
  --line: #203047;
  --ink: #edf4ff;
  --muted: #8292aa;
  --brand: #35d2b5;
  --brand2: #1fa58e;
  --blue: #6aa8ff;
  --amber: #ffbd66;
  --red: #ff6b7d;
  --shadow: 0 20px 60px #0004;
  --radius: 14px;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  font:
    14px/1.5 Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--ink);
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 244px 1fr;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 25px 18px;
  border-right: 1px solid var(--line);
  background: #091524;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 10px 26px;
}
.brand-mark {
  width: 38px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--brand);
}
.brand strong {
  display: block;
  font-size: 17px;
  letter-spacing: 0.01em;
}
.brand small {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav-label {
  padding: 12px 11px 7px;
  color: #52647d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav {
  display: grid;
  gap: 4px;
}
.nav button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  border: 0;
  border-radius: 9px;
  padding: 10px 12px;
  color: var(--muted);
  background: transparent;
  text-align: left;
}
.nav button:hover {
  color: var(--ink);
  background: #112036;
}
.nav button.active {
  color: var(--ink);
  background: #15283d;
  box-shadow: inset 3px 0 var(--brand);
}
.nav-icon {
  width: 20px;
  text-align: center;
  color: var(--brand);
  font-size: 13px;
}
.sidebar-foot {
  margin-top: auto;
  padding: 16px 11px 2px;
  border-top: 1px solid var(--line);
}
.mini-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px #ff6b7d16;
}
.dot.ok {
  background: var(--brand);
  box-shadow: 0 0 0 4px #35d2b518;
}
.workspace {
  min-width: 0;
}
.topbar {
  height: 76px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #081423cc;
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 8;
}
.page-heading h1 {
  font-size: 18px;
  margin: 0;
}
.page-heading p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
}
.content {
  padding: 28px 32px 56px;
  max-width: 1500px;
  margin: auto;
}
.view {
  display: none;
}
.view.active {
  display: block;
}
.grid {
  display: grid;
  gap: 16px;
}
.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.card {
  background: linear-gradient(145deg, var(--panel2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-pad {
  padding: 20px;
}
.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.section-head h2 {
  font-size: 16px;
  margin: 0;
}
.section-head p {
  color: var(--muted);
  margin: 3px 0 0;
  font-size: 12px;
}
.protection {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 24px 26px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.protection:after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  right: -100px;
  top: -130px;
  background: #35d2b510;
}
.protection-title {
  display: flex;
  align-items: center;
  gap: 14px;
}
.shield {
  width: 46px;
  height: 46px;
  border: 1px solid #35d2b54a;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: #35d2b511;
  color: var(--brand);
  font-size: 22px;
}
.protection h2 {
  font-size: 19px;
  margin: 0;
}
.protection p {
  color: var(--muted);
  margin: 3px 0 0;
}
.metric {
  padding: 18px 19px;
}
.metric-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}
.metric-icon {
  color: var(--brand);
}
.metric-value {
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -0.04em;
  margin: 9px 0 2px;
}
.metric-note {
  font-size: 11px;
  color: #61728a;
}
.button {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 13px;
  color: var(--ink);
  background: #14243a;
  transition: 0.15s;
}
.button:hover {
  border-color: #46607e;
  background: #192c45;
}
.button.primary {
  border-color: var(--brand2);
  background: var(--brand2);
  color: #041512;
  font-weight: 700;
}
.button.primary:hover {
  background: var(--brand);
}
.button.danger {
  color: #ff9eaa;
}
.button.ghost {
  background: transparent;
}
.button.small {
  padding: 6px 9px;
  font-size: 12px;
}
.system-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.system-list {
  display: grid;
  gap: 17px;
}
.gauge-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
}
.gauge-head span:first-child {
  color: var(--muted);
}
.track {
  height: 6px;
  border-radius: 9px;
  background: #1b2a40;
  overflow: hidden;
}
.track i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand2), var(--brand));
  transition: width 0.4s;
}
.agent-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.agent-meta div {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.agent-meta label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 3px;
}
.agent-meta strong {
  font-size: 13px;
  font-weight: 600;
}
.table-card {
  overflow: hidden;
}
.table-scroll {
  overflow: auto;
  max-height: 420px;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
th {
  padding: 11px 17px;
  color: #60718a;
  background: #0a1726;
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  position: sticky;
  top: 0;
  z-index: 1;
}
td {
  padding: 13px 17px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}
tr:hover td {
  background: #11203688;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
}
.tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  color: #a8b7ca;
  background: #101e31;
  font-size: 11px;
}
.tag.green {
  color: var(--brand);
  border-color: #35d2b538;
}
.tag.amber {
  color: var(--amber);
  border-color: #ffbd6638;
}
.tag.red {
  color: #ff8998;
  border-color: #ff6b7d38;
}
.empty {
  padding: 38px !important;
  text-align: center;
  color: var(--muted);
}
.toolbar {
  display: flex;
  gap: 9px;
  align-items: center;
}
.filter-input {
  min-width: 210px;
}
.form-card {
  padding: 20px;
  margin-bottom: 16px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.6fr 1fr auto;
  gap: 12px;
  align-items: end;
}
.field {
  display: grid;
  gap: 6px;
}
.field label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 10px;
  color: var(--ink);
  background: #091626;
  outline: none;
}
.input:focus {
  border-color: var(--brand2);
  box-shadow: 0 0 0 3px #35d2b511;
}
.settings-list {
  display: grid;
  gap: 2px;
}
.setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.setting:last-child {
  border: 0;
}
.setting h3 {
  font-size: 13px;
  margin: 0;
}
.setting p {
  font-size: 12px;
  color: var(--muted);
  margin: 2px 0 0;
}
.switch {
  position: relative;
  width: 42px;
  height: 23px;
  flex: none;
}
.switch.compact {
  transform: scale(0.84);
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch span {
  position: absolute;
  inset: 0;
  border-radius: 99px;
  background: #26364c;
  transition: 0.2s;
}
.switch span:after {
  content: "";
  position: absolute;
  width: 17px;
  height: 17px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #8292aa;
  transition: 0.2s;
}
.switch input:checked + span {
  background: var(--brand2);
}
.switch input:checked + span:after {
  transform: translateX(19px);
  background: white;
}
.path {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #091626;
  margin-top: 8px;
  color: #b8c5d6;
}
.callout {
  border-left: 3px solid var(--amber);
  padding: 12px 14px;
  background: #ffbd660b;
  color: #b7a88e;
  font-size: 12px;
  margin-top: 16px;
}
.login-overlay,
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: #030812e8;
  backdrop-filter: blur(10px);
}
.login-overlay[hidden],
.modal-overlay[hidden] {
  display: none;
}
.login-card,
.modal {
  width: min(430px, 100%);
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 27px;
  box-shadow: 0 30px 100px #000a;
}
.login-logo {
  margin-bottom: 18px;
}
.login-card h2,
.modal h2 {
  font-size: 20px;
  margin: 0 0 7px;
}
.login-card p,
.modal p {
  color: var(--muted);
  margin: 0 0 18px;
}
.login-card .input {
  margin-bottom: 10px;
}
.login-card .button {
  width: 100%;
  padding: 11px;
}
.error {
  min-height: 20px;
  color: var(--red);
  font-size: 12px;
  margin-top: 8px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 22px;
}
.toast-area {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  display: grid;
  gap: 8px;
}
.toast {
  width: min(370px, calc(100vw - 40px));
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 10px;
  background: #132237;
  box-shadow: var(--shadow);
  animation: slide 0.2s ease;
}
.toast.error-toast {
  border-left-color: var(--red);
}
@keyframes slide {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
}
.mobile-brand {
  display: none;
}
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 16px;
}
.location-map {
  width: 100%;
  height: 280px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.location-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.detail-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.detail-tab {
  white-space: nowrap;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 10px 14px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
}
.detail-tab:hover {
  color: var(--ink);
}
.detail-tab.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}
.device-tab-panel[hidden] {
  display: none;
}
.tab-panel-hint {
  color: var(--muted);
  font-size: 12px;
  margin: 0 0 14px;
}
.machine-card {
  min-height: 250px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: linear-gradient(145deg, #12233a, #0b1727);
  box-shadow: var(--shadow);
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: 0.18s;
}
.machine-card:hover,
.machine-card:focus-visible {
  transform: translateY(-3px);
  border-color: #3c6c78;
  box-shadow:
    0 22px 60px #0006,
    0 0 0 3px #35d2b510;
  outline: 0;
}
.machine-card.offline {
  border-color: #4a2934;
}
.machine-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.machine-icon {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border: 1px solid #35d2b538;
  border-radius: 12px;
  background: #35d2b510;
  color: var(--brand);
  font-size: 21px;
}
.machine-card.offline .machine-icon {
  color: var(--red);
  border-color: #ff6b7d38;
  background: #ff6b7d0b;
}
.machine-name {
  font-size: 16px;
  font-weight: 750;
  margin: 14px 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.machine-model {
  height: 38px;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
}
.machine-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: auto;
  padding-top: 16px;
}
.machine-stat {
  padding: 9px 7px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #081524;
}
.machine-stat small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}
.machine-stat strong {
  font-size: 13px;
}
.machine-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 11px;
}
.fleet-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.detail-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.machine-tabs {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 2px 1px 14px;
  margin-bottom: 2px;
}
.machine-tab {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  color: var(--muted);
  background: #0c192a;
}
.machine-tab:hover {
  color: var(--ink);
  border-color: #46607e;
}
.machine-tab.active {
  color: var(--ink);
  border-color: var(--brand2);
  background: #123129;
}
.machine-tab .dot {
  width: 6px;
  height: 6px;
  box-shadow: none;
}
@media (max-width: 1050px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .form-grid .button {
    height: 39px;
  }
  .system-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: sticky;
    height: auto;
    z-index: 12;
    padding: 10px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand,
  .nav-label,
  .sidebar-foot {
    display: none;
  }
  .nav {
    display: flex;
    overflow: auto;
  }
  .nav button {
    white-space: nowrap;
    width: auto;
    padding: 8px 10px;
  }
  .topbar {
    height: 65px;
    padding: 0 18px;
  }
  .content {
    padding: 20px 16px 44px;
  }
  .mobile-brand {
    display: block;
    color: var(--brand);
    font-weight: 800;
  }
  .page-heading p,
  .status-pill span:last-child {
    display: none;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .protection {
    grid-template-columns: 1fr;
  }
  .protection .button {
    width: 100%;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .agent-meta {
    grid-template-columns: 1fr;
  }
  .top-actions .button {
    padding: 7px 9px;
  }
  .section-head {
    align-items: center;
  }
}
@media (max-width: 460px) {
  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }
  .metric-value {
    font-size: 23px;
  }
  .metric {
    padding: 15px;
  }
  .nav-icon {
    display: none;
  }
}

.user-form {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.2fr 1.2fr auto;
  gap: 12px;
  align-items: end;
}
.user-form-actions {
  display: flex;
  gap: 8px;
}
.role-description {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
@media (max-width: 1100px) {
  .user-form {
    grid-template-columns: 1fr 1fr;
  }
  .user-form-actions {
    grid-column: 1/-1;
  }
}
@media (max-width: 620px) {
  .user-form {
    grid-template-columns: 1fr;
  }
  .user-form-actions {
    grid-column: auto;
    display: grid;
  }
}

.volume-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.volume-chart {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #091626;
}
.volume-chart-head,
.volume-chart-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.volume-chart-head strong {
  font-size: 13px;
}
.volume-chart-head span,
.volume-chart-foot {
  color: var(--muted);
  font-size: 11px;
}
.volume-bar {
  height: 9px;
  margin: 11px 0 8px;
  border-radius: 99px;
  background: #1b2a40;
  overflow: hidden;
}
.volume-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand2), var(--brand));
}
.volume-chart.warning .volume-bar i {
  background: linear-gradient(90deg, #d88732, var(--amber));
}
.volume-chart.critical .volume-bar i {
  background: linear-gradient(90deg, #c83e53, var(--red));
}
.volume-chart.warning .volume-percent {
  color: var(--amber);
}
.volume-chart.critical .volume-percent {
  color: var(--red);
}
.volume-section {
  grid-column: 1/-1;
  margin-top: 8px;
}
.volume-section > label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 5px;
}
.session-list {
  max-height: 130px;
  overflow-y: auto;
  display: grid;
  gap: 7px;
  padding-right: 6px;
  margin-right: -6px;
}
.session-item {
  font-size: 13px;
  font-weight: 600;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.session-item:last-child {
  border: 0;
  padding-bottom: 0;
}
.session-item small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  margin-top: 1px;
}
.gauge-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.gauge-item {
  display: grid;
  justify-items: center;
  gap: 8px;
}
.gauge-item .volume-pie {
  width: 72px;
  height: 72px;
  box-shadow:
    inset 0 0 0 1px #ffffff12,
    0 8px 20px #0005;
}
.gauge-item .volume-pie strong {
  width: 42px;
  height: 42px;
  font-size: 12px;
}
.gauge-item span {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}
.trend-chart {
  margin-top: 8px;
}
.trend-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-size: 11px;
  color: var(--muted);
}
.trend-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
}
.trend-svg {
  width: 100%;
  height: 150px;
  display: block;
}
.alert-bars {
  display: grid;
  gap: 9px;
  margin-bottom: 14px;
}
.alert-bar-row {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.alert-bar-row span:first-child {
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.alert-bar-track {
  height: 8px;
  border-radius: 99px;
  background: #1b2a40;
  overflow: hidden;
}
.alert-bar-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand2), var(--brand));
}
.alert-bar-row.critical .alert-bar-track i {
  background: linear-gradient(90deg, #c83e53, var(--red));
}

.volume-chart-body {
  display: grid;
  grid-template-columns: 104px 1fr;
  align-items: center;
  gap: 16px;
  padding: 13px 0 10px;
}
.volume-pie {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow:
    inset 0 0 0 1px #ffffff12,
    0 8px 24px #0005;
}
.volume-pie strong {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #091626e8;
  color: var(--ink);
  font-size: 14px;
  box-shadow: 0 2px 12px #0007;
}
.volume-legend {
  display: grid;
  gap: 8px;
}
.volume-legend div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}
.volume-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  margin-right: 6px;
  display: inline-block;
}
.volume-legend .free-dot {
  background: #26364c;
}
.volume-chart.warning .volume-legend i {
  background: var(--amber);
}
.volume-chart.critical .volume-legend i {
  background: var(--red);
}
.volume-chart.warning .volume-pie strong {
  color: var(--amber);
}
.volume-chart.critical .volume-pie strong {
  color: var(--red);
}
@media (max-width: 420px) {
  .volume-chart-body {
    grid-template-columns: 84px 1fr;
  }
  .volume-pie {
    width: 78px;
    height: 78px;
  }
  .volume-pie strong {
    width: 44px;
    height: 44px;
    font-size: 12px;
  }
}

.package-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 20px;
  margin-bottom: 16px;
}
.package-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid #6aa8ff44;
  border-radius: 14px;
  background: #6aa8ff10;
  color: var(--blue);
  font-size: 23px;
}
.package-info h2 {
  font-size: 15px;
  margin: 0;
}
.package-info p {
  color: var(--muted);
  font-size: 12px;
  margin: 3px 0 7px;
}
.package-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.package-actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.file-picker {
  max-width: 250px;
  color: var(--muted);
  font-size: 11px;
}
.file-picker::file-selector-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 9px;
  color: var(--ink);
  background: #14243a;
  margin-right: 8px;
  cursor: pointer;
}
@media (max-width: 900px) {
  .package-card {
    grid-template-columns: auto 1fr;
  }
  .package-actions {
    grid-column: 1/-1;
    justify-content: flex-start;
  }
  .file-picker {
    max-width: 100%;
  }
}
@media (max-width: 520px) {
  .package-card {
    grid-template-columns: 1fr;
  }
  .package-icon {
    display: none;
  }
  .package-actions {
    display: grid;
  }
  .package-actions .button {
    width: 100%;
  }
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 5px 10px #0007);
}
.mobile-brand img {
  width: 23px;
  height: 23px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 6px;
}
@media (max-width: 760px) {
  .mobile-brand {
    display: flex;
    align-items: center;
  }
}
.attention-panel {
  margin-bottom: 24px;
}
.attention-summary {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.attention-list {
  max-height: 430px;
  overflow: auto;
}
.attention-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.attention-item p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.attention-item strong {
  overflow-wrap: anywhere;
}
.attention-item .button {
  flex-shrink: 0;
}
.attention-notice {
  color: var(--muted);
  font-size: 12px;
  margin: 8px 0;
}
.attention-item:focus {
  outline: 2px solid var(--brand);
}
@media (max-width: 620px) {
  .attention-item {
    align-items: flex-start;
    flex-direction: column;
  }
  .attention-panel .section-head {
    align-items: flex-start;
  }
}

[hidden] {
  display: none !important;
}

#groupPolicyForm {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 1050px) {
  #groupPolicyForm {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  #groupPolicyForm {
    grid-template-columns: 1fr;
  }
}
