:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #22332e;
  background: #f4f6f5;
  font-synthesis: none;
  --ink: #182e27;
  --muted: #75827b;
  --line: #e3e9e5;
  --green: #237956;
  --light: #eaf5ec;
  --red: #bd5147;
  --amber: #b7802a;
  --radius: 13px;
}
.broker-picker, .broker-progress, .broker-actions, .broker-pagination, .broker-tabs {
  display: flex; align-items: center; gap: 16px;
}
.broker-picker { margin: 22px 0; flex-wrap: wrap; }
.broker-picker select { flex: 1; min-width: 160px; max-width: 600px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.broker-progress { padding: 24px; justify-content: space-between; flex-wrap: wrap; }
.broker-progress > div:first-child { flex: 1; min-width: 200px; }
.broker-progress strong { font-size: 24px; }
.broker-progress p { color: var(--muted); }
.broker-progress progress { width: 100%; accent-color: var(--green); height: 12px; }
.broker-actions { flex-wrap: wrap; }
.broker-tabs { padding: 0 24px; border-bottom: 1px solid var(--line); }
.broker-tabs a { padding: 12px 0; border-bottom: 2px solid transparent; }
.broker-tabs a.active { border-color: var(--green); color: var(--green); font-weight: 600; }
.broker-pagination { justify-content: space-between; flex-wrap: wrap; padding: 16px 24px; color: var(--muted); }
.broker-pagination a { margin-left: 16px; color: var(--green); }
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 14px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
button svg,
a svg,
.panel-head > svg {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  flex-shrink: 0;
}
button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 9px 13px;
  color: #30463c;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  font-weight: 550;
}
button:hover {
  border-color: #b6c7bc;
  background: #fafcf9;
}
button.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
button.primary:hover {
  background: #1b6145;
}
button.danger {
  color: var(--red);
}
button.ghost {
  background: none;
  border-color: transparent;
}
button.small {
  padding: 6px 9px;
  font-size: 12px;
}
button.icon-only {
  padding: 7px;
}
input,
select,
textarea {
  border: 1px solid #dce4df;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: white;
  min-width: 0;
}
input::placeholder {
  color: #9aa69f;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #5a9e7b;
  outline: 2px solid #e7f3e9;
}
input[type="checkbox"] {
  accent-color: var(--green);
}
textarea {
  resize: vertical;
  min-height: 80px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 630;
  letter-spacing: -0.8px;
}
h2 {
  font-size: 16px;
  letter-spacing: -0.15px;
  font-weight: 620;
}
h3 {
  font-size: 14px;
  font-weight: 620;
}
.muted {
  color: var(--muted);
}
.mono,
code,
pre {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}
.boot {
  min-height: 100vh;
  display: grid;
  place-content: center;
  gap: 18px;
  text-align: center;
}
.brandmark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #c5e8a4;
  color: #1c392e;
  display: inline-grid;
  place-items: center;
  font-size: 27px;
  font-weight: 750;
  line-height: 1;
}
.brandmark svg {
  width: 23px;
  height: 23px;
}
.shell {
  min-height: 100vh;
}
.sidebar {
  width: 222px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #162b24;
  color: #c5d3c9;
  display: flex;
  flex-direction: column;
  padding: 28px 16px 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 30;
}
.sidebar > * {
  flex-shrink: 0;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 0 13px 29px;
}
.brand strong {
  display: block;
  font-size: 20px;
  color: #f5faf3;
  letter-spacing: -0.8px;
}
.brand small {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2.4px;
  color: #9fb4a5;
}
.nav-label {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #779084;
  margin: 26px 13px 10px;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  margin: 4px 0;
  border-radius: 8px;
  font-size: 13px;
  transition: background 0.15s;
}
.sidebar nav a:hover {
  background: #213c30;
  color: white;
}
.sidebar nav a.active {
  color: #e8f7dc;
  background: #2b4737;
  box-shadow: inset 3px 0 #bcdf91;
}
.sidebar nav a svg {
  width: 18px;
  color: #94b09d;
}
.sidebar nav a.active svg {
  color: #bcdf91;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 26px 12px 0;
}
.sidebar-note {
  font-size: 11px;
  line-height: 1.6;
  color: #87a090;
  border-top: 1px solid #31463b;
  padding-top: 18px;
}
.user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}
.avatar {
  width: 31px;
  height: 31px;
  background: #365140;
  color: #cae1bd;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 11px;
}
.user-text {
  overflow: hidden;
  flex: 1;
}
.user-text strong {
  font-size: 12px;
  color: #ebf1e9;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-text small {
  font-size: 10px;
}
.user button {
  color: #b9d0bf;
}
.main {
  margin-left: 222px;
}
.topbar {
  height: 76px;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.85);
  gap: 16px;
}
.crumb {
  font-size: 12px;
  color: #7d8b83;
  display: flex;
  align-items: center;
  gap: 9px;
}
.crumb strong {
  font-weight: 550;
  color: #324d3d;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.live {
  font-size: 11px;
  color: #56806a;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.live i {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #5da174;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #e9f2e9;
}
.workspace {
  max-width: 1800px;
  margin: auto;
  padding: 30px 34px 50px;
}
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 27px;
}
.page-head p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 8px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.8px;
  color: #75917e;
  margin-bottom: 10px;
}
.head-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.filters {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 23px;
  flex-wrap: wrap;
}
.filters select {
  min-width: 150px;
  font-size: 12px;
}
.search {
  position: relative;
  min-width: 230px;
  flex: 1;
  max-width: 420px;
}
.search svg {
  width: 16px;
  position: absolute;
  top: 11px;
  left: 12px;
  color: #8ea094;
}
.search input {
  width: 100%;
  padding-left: 36px;
}
.divider {
  width: 1px;
  height: 25px;
  background: var(--line);
  margin: 0 4px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 21px 22px;
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #687a6e;
}
.card-icon {
  background: #f2f6f1;
  color: #7c957d;
  border-radius: 8px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
}
.card-icon svg {
  width: 16px;
  height: 16px;
}
.card-value {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -1px;
  font-weight: 620;
  margin-top: 13px;
}
.card-value .unit {
  font-size: 15px;
  color: #809286;
  letter-spacing: 0;
}
.card-foot {
  font-size: 11px;
  color: #8a978f;
  margin-top: 10px;
}
.card.red .card-value {
  color: #b04f46;
}
.card.red .card-icon {
  color: #b86558;
  background: #fdf0ed;
}
.card.green .card-value {
  color: var(--green);
}
.card.amber .card-value {
  color: #ab7c32;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 22px;
}
.panel-head {
  padding: 20px 23px;
  border-bottom: 1px solid #edf0ed;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.panel-head p {
  font-size: 11px;
  color: #8b988f;
  margin-top: 6px;
}
.panel-head .right {
  display: flex;
  align-items: center;
  gap: 9px;
}
.panel-body {
  padding: 22px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 12px;
}
th {
  font-weight: 500;
  color: #84918a;
  background: #fafcf9;
  border-bottom: 1px solid var(--line);
  padding: 12px 20px;
  white-space: nowrap;
}
td {
  padding: 17px 20px;
  border-bottom: 1px solid #edf1ec;
  vertical-align: middle;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tr.link-row {
  cursor: pointer;
}
tr.link-row:hover {
  background: #f8fbf7;
}
td .name {
  font-weight: 600;
  color: #2d4837;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 9px;
}
td small {
  color: #8a978e;
  font-size: 11px;
  display: block;
  margin-top: 5px;
}
.server-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #e8ece6;
  border-radius: 9px;
  color: #718c75;
  background: #fbfcfa;
  margin-right: 10px;
  float: left;
}
.server-icon svg {
  width: 17px;
  height: 17px;
}
.tag {
  font-size: 10px;
  font-weight: 500;
  color: #708772;
  border: 1px solid #e1e9df;
  border-radius: 5px;
  padding: 3px 6px;
  display: inline-block;
  background: #f9fcf7;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  padding: 5px 8px;
  background: #f0f3f1;
  color: #829187;
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.badge.online {
  color: #32895b;
  background: #eaf5ec;
}
.badge.offline,
.badge.error {
  color: #b6574a;
  background: #fbeee9;
}
.badge.degraded,
.badge.starting {
  color: #aa7c2d;
  background: #faf4e5;
}
.badge.inactive {
  color: #8d9992;
}
.availability {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  font-size: 11px;
  color: #758879;
}
.availability meter {
  width: 76px;
  height: 7px;
  appearance: none;
  border: 0;
  background: #edf1ec;
  border-radius: 5px;
}
.availability meter::-webkit-meter-bar {
  height: 7px;
  border: 0;
  background: #edf1ec;
  border-radius: 5px;
}
.availability meter::-webkit-meter-optimum-value {
  background: #86ad79;
  border-radius: 5px;
}
.count-good {
  color: #398360;
}
.count-bad {
  color: #bf6657;
}
.table-foot {
  padding: 14px 22px;
  border-top: 1px solid #edf0ed;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #909c93;
}
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 22px;
}
.insight {
  border: 1px solid #e5ebdf;
  border-radius: 11px;
  background: #f6f9f0;
  padding: 17px 20px;
  color: #657959;
  font-size: 12px;
  line-height: 1.65;
  display: flex;
  gap: 13px;
  margin-bottom: 24px;
}
.insight > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.insight > button {
  align-self: center;
  flex-shrink: 0;
}
.insight svg {
  height: 19px;
  width: 19px;
  flex-shrink: 0;
  margin-top: 2px;
}
.insight strong {
  display: block;
  font-weight: 600;
  color: #3f6240;
  margin-bottom: 3px;
}
.insight.error {
  border-color: #f0dcd3;
  background: #fff6f0;
  color: #9f7361;
}
.insight.error strong {
  color: #ab614b;
}
.insight.neutral {
  border-color: #dde8ea;
  background: #f0f6f7;
  color: #5b7b84;
}
.insight.neutral strong {
  color: #476b76;
}
.mini-group {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid #edf1ec;
}
.mini-group:last-child {
  border: 0;
}
.group-avatar {
  height: 34px;
  width: 34px;
  border-radius: 9px;
  background: #edf3e7;
  color: #789461;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
}
.group-info {
  flex: 1;
}
.group-info strong {
  font-size: 12px;
}
.group-info small {
  display: block;
  color: #97a098;
  font-size: 11px;
  margin-top: 4px;
}
.group-number {
  font-size: 18px;
  font-weight: 550;
}
.empty {
  padding: 48px 24px;
  text-align: center;
  color: #84918b;
  font-size: 13px;
  line-height: 1.7;
}
.empty svg {
  display: block;
  width: 27px;
  height: 27px;
  margin: 0 auto 12px;
  color: #9aae9e;
}
.empty strong {
  color: #566f5e;
  font-weight: 550;
  display: block;
}
.empty button {
  margin-top: 18px;
}
.tabs {
  display: flex;
  gap: 23px;
  border-bottom: 1px solid var(--line);
  margin: 0 0 24px;
}
.tabs button {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 12px 1px;
  color: #8b978e;
  font-size: 12px;
}
.tabs button.active {
  border-bottom: 2px solid var(--green);
  color: var(--green);
}
.graphs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.graph {
  padding: 21px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  margin-bottom: 2px;
}
.graph h3 {
  font-size: 12px;
}
.graph-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.graph-top strong {
  font-size: 19px;
  font-weight: 550;
  letter-spacing: -0.5px;
}
.chart {
  width: 100%;
  height: 124px;
  display: block;
}
.chart .grid {
  stroke: #eff2ed;
  stroke-width: 1;
}
.chart .line {
  fill: none;
  stroke: #719e67;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chart .fill {
  fill: #f1f6ec;
}
.chart .point {
  fill: #719e67;
}
.graph .chart-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #9ca49d;
  margin-top: 9px;
}
.graph .caption {
  font-size: 10px;
  color: #9aa69c;
  line-height: 1.5;
  margin-top: 14px;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
}
.detail-meta {
  padding: 0 21px 20px;
}
.detail-meta dt {
  color: #9aa49b;
  font-size: 10px;
  margin-top: 18px;
}
.detail-meta dd {
  margin: 6px 0 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.detail-meta button {
  margin-top: 18px;
}
.channel-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.channel-id {
  font-size: 12px;
  color: #9aa59d;
  font-weight: 400;
  letter-spacing: 0;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #829783;
  margin-bottom: 18px;
}
.back svg {
  width: 14px;
  height: 14px;
}
.log-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 15px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.log-toolbar input {
  font-size: 12px;
  max-width: 230px;
  flex: 1;
}
.log-toolbar select {
  font-size: 11px;
  max-width: 180px;
}
.log-meta {
  padding: 12px 18px;
  border-bottom: 1px solid #edf1ec;
  display: flex;
  justify-content: space-between;
  color: #8d998f;
  font-size: 11px;
  gap: 15px;
}
.log-row {
  border-bottom: 1px solid #eef1ed;
}
.log-row:last-child {
  border-bottom: 0;
}
.log-row summary {
  display: grid;
  grid-template-columns: 105px 48px 145px minmax(100px, 1fr) 16px;
  gap: 12px;
  padding: 12px 18px;
  cursor: pointer;
  align-items: start;
  list-style: none;
  font-size: 11px;
}
.log-row summary:hover {
  background: #fafcf9;
}
.log-time {
  color: #8d988f;
  line-height: 1.7;
  font-size: 10px;
}
.log-level {
  font-size: 9px;
  font-weight: 650;
  color: #7d9e88;
  padding-top: 2px;
}
.log-level.ERROR,
.log-level.FATAL {
  color: #c46a59;
}
.log-level.WARN {
  color: #b68f43;
}
.log-event {
  font-family: monospace;
  font-size: 10px;
  color: #798879;
  overflow-wrap: anywhere;
  padding-top: 2px;
}
.log-message {
  font-family: monospace;
  font-size: 11px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #566e58;
  max-height: 55px;
  overflow: hidden;
}
.log-row[open] .log-message {
  max-height: none;
}
.log-row .chevron {
  font-size: 13px;
  color: #a5b09f;
  transition: transform 0.15s;
}
.log-row[open] .chevron {
  transform: rotate(90deg);
}
.log-detail {
  padding: 5px 18px 18px 135px;
  background: #fbfcfa;
}
.log-detail pre {
  overflow: auto;
  max-height: 360px;
  font-size: 10px;
  line-height: 1.65;
  background: #f1f5ee;
  border: 1px solid #e4ebdd;
  border-radius: 8px;
  padding: 14px;
  margin: 10px 0;
  color: #53634c;
}
.log-detail .row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.log-detail .row span {
  color: #8d9c87;
  font-size: 10px;
}
.log-foot {
  padding: 16px;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.timeline {
  padding: 6px 24px;
}
.timeline-item {
  border-left: 1px solid #e4e9df;
  padding: 5px 0 23px 21px;
  position: relative;
  margin-left: 5px;
}
.timeline-item::before {
  content: "";
  width: 7px;
  height: 7px;
  border: 3px solid white;
  background: #8fab7e;
  border-radius: 50%;
  position: absolute;
  left: -7px;
  top: 8px;
}
.timeline-item.error::before {
  background: #c17763;
}
.timeline-item small {
  font-size: 10px;
  color: #96a08f;
}
.timeline-item h3 {
  font-size: 12px;
  margin: 7px 0;
}
.timeline-item p {
  font-size: 11px;
  color: #819178;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.pill {
  font-size: 10px;
  background: #f1f5ed;
  padding: 4px 7px;
  border-radius: 5px;
  color: #7c9070;
}
.ellipsis {
  max-width: 360px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.section-space {
  margin-top: 24px;
}
.numeric {
  font-variant-numeric: tabular-nums;
}
.hide {
  display: none !important;
}
.loading {
  padding: 48px;
  text-align: center;
  color: #93a18f;
}
.loading::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  border: 2px solid #e1e9dd;
  border-top-color: #83a86e;
  border-radius: 50%;
  margin: 0 auto 14px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.alert-bar {
  background: #fff1e9;
  color: #a1604e;
  padding: 12px 18px;
  border: 1px solid #f0dacf;
  border-radius: 9px;
  font-size: 12px;
  margin-bottom: 20px;
  line-height: 1.6;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
}
.login-aside {
  background: #182e25;
  padding: 9vw 7vw;
  color: #d5e3cc;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.login-aside::after {
  content: "";
  width: 360px;
  height: 360px;
  border: 1px solid #354e36;
  border-radius: 50%;
  position: absolute;
  right: -150px;
  bottom: -120px;
  box-shadow:
    0 0 0 50px #20362a,
    0 0 0 51px #354e36,
    0 0 0 100px #20362a,
    0 0 0 101px #354e36;
}
.login-aside .brand {
  padding: 0 0 60px;
}
.login-aside h1 {
  font-size: 43px;
  line-height: 1.16;
  font-weight: 500;
  max-width: 380px;
  letter-spacing: -1.5px;
  color: #f1f6eb;
}
.login-aside p {
  color: #9cb393;
  line-height: 1.8;
  margin-top: 24px;
  max-width: 340px;
}
.login-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.login-form {
  width: 340px;
}
.login-form h2 {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.6px;
}
.login-form > p {
  font-size: 13px;
  color: #94a08d;
  margin: 12px 0 28px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
}
.field label {
  font-size: 11px;
  font-weight: 550;
  color: #697d5e;
}
.field small {
  font-size: 10px;
  line-height: 1.6;
  color: #93a18c;
}
.login-form .primary {
  width: 100%;
  margin-top: 9px;
}
.login-footer {
  margin-top: 30px;
  font-size: 10px;
  line-height: 1.7;
  color: #a6b09e;
}
.form-error {
  font-size: 12px;
  line-height: 1.5;
  color: #b66553;
  background: #fff3ed;
  padding: 11px;
  border-radius: 6px;
  margin-top: 12px;
}
.form-error:empty {
  display: none;
}
dialog {
  border: 1px solid #dce7d3;
  border-radius: 15px;
  box-shadow: 0 30px 90px #14301535;
  padding: 0;
  max-width: 580px;
  width: calc(100% - 36px);
  color: var(--ink);
}
dialog::backdrop {
  background: #162f2455;
  backdrop-filter: blur(2px);
}
.modal-head {
  padding: 23px 25px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-head p {
  font-size: 12px;
  color: #8a9a7c;
  margin-top: 7px;
}
.modal-body {
  padding: 8px 25px 25px;
  max-height: 73vh;
  overflow: auto;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 15px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 24px;
}
.code-box {
  background: #f1f5ed;
  padding: 16px;
  border: 1px solid #dce6d3;
  border-radius: 9px;
  font-family: monospace;
  font-size: 11px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.65;
  max-height: 340px;
  overflow: auto;
}
.check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  margin: 18px 0;
  color: #738763;
}
#toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #294733;
  color: #f0f7e8;
  padding: 14px 20px;
  border-radius: 9px;
  box-shadow: 0 8px 30px #1a361c24;
  font-size: 12px;
  z-index: 100;
  max-width: 420px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
#toast.visible {
  opacity: 1;
}
.mobile-menu {
  display: none;
}
.muted-link {
  color: #64814c;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hint-line {
  font-size: 11px;
  color: #94a08c;
  margin: 18px 0;
  line-height: 1.6;
}
.check-list {
  display: grid;
  gap: 10px;
  font-size: 12px;
  color: #7b8c6d;
}
.check-list span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.check-list svg {
  width: 15px;
  height: 15px;
}
.metrics-table {
  max-height: 530px;
  overflow: auto;
}
.metrics-table th {
  position: sticky;
  top: 0;
}
.metrics-table td {
  font-size: 11px;
  padding: 12px 17px;
}
.metrics-table code {
  font-size: 10px;
  overflow-wrap: anywhere;
}
.group-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 19px;
}
.group-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 23px;
}
.group-card h2 {
  margin-top: 18px;
}
.group-card p {
  font-size: 12px;
  color: #8f9f82;
  margin-top: 10px;
  line-height: 1.65;
  min-height: 38px;
}
.group-card footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #edf1e8;
  padding-top: 16px;
  margin-top: 20px;
  font-size: 11px;
  color: #899d77;
}
.scope-pill {
  background: #f1f5ed;
  border: 1px solid #e2e9db;
  font-size: 11px;
  border-radius: 6px;
  padding: 5px 8px;
  color: #7f946f;
}
.issue-text {
  color: #b66d58;
  font-size: 11px;
}
.no-wrap {
  white-space: nowrap;
}
.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #80906d;
}
.status-select {
  max-width: 190px;
}
.backdrop-close {
  position: absolute;
  top: 15px;
  right: 15px;
}
.line-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.page-count {
  font-size: 12px;
  color: #87977c;
  font-weight: 400;
  letter-spacing: 0;
  margin-left: 9px;
}
@media (min-width: 1650px) {
  .workspace {
    padding: 38px 48px;
  }
  .topbar {
    padding: 0 48px;
  }
  .cards {
    gap: 20px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 190px;
    padding: 24px 10px;
  }
  .main {
    margin-left: 190px;
  }
  .workspace {
    padding: 25px 22px;
  }
  .topbar {
    padding: 0 22px;
  }
  .cards {
    gap: 11px;
  }
  .card {
    padding: 18px;
  }
  .card-value {
    font-size: 28px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .detail-side {
    display: none;
  }
  .group-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .log-row summary {
    grid-template-columns: 95px 42px 120px minmax(100px, 1fr) 12px;
    gap: 8px;
  }
  .top-actions .live {
    display: none;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 222px;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 10px 0 100px #10251640;
  }
  .main {
    margin-left: 0;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .topbar {
    height: 62px;
    padding: 0 16px;
  }
  .workspace {
    padding: 24px 16px;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .card {
    padding: 16px;
  }
  .card-value {
    font-size: 27px;
  }
  .page-head {
    flex-direction: column;
    gap: 17px;
    margin-bottom: 20px;
  }
  .page-head h1 {
    font-size: 24px;
  }
  .head-actions {
    width: 100%;
  }
  .head-actions button {
    font-size: 12px;
  }
  .filters select {
    min-width: 0;
    flex: 1;
  }
  .search {
    min-width: 100%;
    max-width: none;
  }
  .graphs {
    grid-template-columns: 1fr;
  }
  .group-cards {
    grid-template-columns: 1fr;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-aside {
    display: none;
  }
  .login-main {
    padding: 32px 24px;
  }
  .log-row summary {
    grid-template-columns: 90px 42px 1fr;
    gap: 5px 8px;
    padding: 13px;
  }
  .log-event {
    grid-column: 3;
  }
  .log-message {
    grid-column: 1/4;
  }
  .log-row .chevron {
    display: none;
  }
  .log-detail {
    padding: 8px 14px;
  }
  .log-toolbar {
    gap: 7px;
    padding: 11px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .log-toolbar input {
    max-width: none;
    min-width: 0;
    grid-column: 1 / -1;
  }
  .log-toolbar select {
    width: 100%;
    max-width: none;
    min-width: 0;
  }
  .insight {
    display: grid;
    grid-template-columns: 19px minmax(0, 1fr);
  }
  .insight > button {
    grid-column: 2;
    justify-self: start;
  }
  .log-meta {
    flex-wrap: wrap;
    overflow-wrap: anywhere;
  }
  .panel-head {
    padding: 17px;
  }
  .panel-body {
    padding: 17px;
  }
  .crumb {
    font-size: 11px;
  }
  .top-actions {
    gap: 4px;
  }
  .top-actions button {
    font-size: 11px;
  }
  .tabs {
    gap: 18px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .table-foot {
    gap: 12px;
    line-height: 1.6;
  }
  .graph {
    padding: 17px;
  }
  .head-actions .divider {
    display: none;
  }
  .log-meta {
    font-size: 10px;
  }
  .page-head p {
    font-size: 12px;
  }
  .scope-pill {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

.storage-note {
  margin: 0;
  padding: 16px 20px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 13px;
}
.storage-disks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  padding: 20px;
}
.storage-disk {
  display: grid;
  gap: 10px;
}
.storage-disk progress {
  width: 100%;
  height: 9px;
  accent-color: var(--green);
}
.storage-disk small {
  color: var(--muted);
}
.storage-ttl {
  max-width: 340px;
  overflow-wrap: anywhere;
  font-size: 12px;
}
#storage-tables summary {
  padding: 20px;
  cursor: pointer;
  font-weight: 600;
}

.provider-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  vertical-align: middle;
  border-radius: 4px;
}
.provider-logo.big {
  width: 64px;
  height: 64px;
  display: block;
  margin: 8px 0;
}
.provider-logo[hidden] {
  display: none;
}
