:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    sans-serif;
  color: #253142;
  background: #f5f6f8;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  border: 1px solid #dce1e7;
  background: #fff;
  color: #344357;
  padding: 10px 15px;
  border-radius: 7px;
  cursor: pointer;
}
button:hover {
  background: #f0f3f7;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.primary {
  color: white;
  background: #ed755d;
  border-color: #ed755d;
}
.primary:hover {
  background: #d76650;
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 228px;
  background: #172331;
  color: #c0cad5;
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #f48970;
  font-size: 28px;
  font-weight: 700;
}
.brand span {
  font-size: 12px;
  letter-spacing: 2px;
  color: inherit;
}
.workspace {
  margin: 30px 10px 22px;
  color: #e7edf3;
  font-size: 13px;
}
.workspace b {
  font-size: 9px;
  padding: 4px;
  background: #344353;
  border-radius: 4px;
  margin-left: 10px;
}
nav {
  overflow-y: auto;
}
nav button {
  display: block;
  width: 100%;
  text-align: left;
  color: #aebcca;
  background: transparent;
  border: 0;
  margin: 3px 0;
  padding: 11px 13px;
}
nav button.active {
  color: #ffd1c3;
  background: #34414e;
}
nav .group {
  font-size: 10px;
  color: #738598;
  margin: 22px 12px 7px;
  letter-spacing: 1px;
}
.aside-foot {
  margin-top: auto;
  font-size: 11px;
  line-height: 2;
  color: #8799ac;
  padding: 15px 10px 0;
}
.aside-foot span {
  display: block;
  color: #dce7f2;
}
.aside-foot button {
  border: 0;
  background: transparent;
  color: #acbdce;
  padding: 6px 0;
}
main {
  margin-left: 228px;
  padding: 35px 40px;
  max-width: 1800px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: #9ba4af;
}
h1 {
  font-size: 28px;
  font-weight: 600;
  margin: 9px 0;
}
header p {
  margin: 7px 0;
  color: #85909e;
  font-size: 13px;
}
.env {
  background: #e8f2ee;
  color: #43846e;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 11px;
}
.notice {
  background: #fff7ef;
  color: #a77f54;
  border: 1px solid #f1e4d5;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 12px;
}
.filters {
  display: flex;
  gap: 12px;
  align-items: end;
  padding: 21px 0;
  flex-wrap: wrap;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: #6e7b8d;
}
input,
select,
textarea {
  border: 1px solid #d9dfe6;
  border-radius: 6px;
  padding: 9px 10px;
  background: white;
  color: #344254;
}
#freshness {
  margin-left: auto;
  color: #9aa4b0;
  font-size: 10px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 3px 0 23px;
}
.card,
.panel {
  background: white;
  border: 1px solid #e5e9ee;
  border-radius: 9px;
}
.card {
  padding: 20px;
}
.card .label {
  color: #8a96a5;
  font-size: 12px;
}
.card .number {
  font-size: 30px;
  margin: 14px 0 8px;
  color: #27394c;
  font-weight: 600;
}
.card small {
  font-size: 11px;
  color: #99a3af;
}
.card.accent {
  border-top: 3px solid #ed755d;
}
.panel {
  margin: 16px 0;
  padding: 22px;
  overflow: auto;
}
.panel h2 {
  font-size: 16px;
  margin: 0 0 9px;
  font-weight: 600;
}
.panel .hint {
  font-size: 12px;
  line-height: 1.8;
  color: #939eac;
  margin: 0 0 18px;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.two .panel {
  margin-top: 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  white-space: nowrap;
}
th {
  text-align: left;
  background: #f7f9fb;
  color: #8291a2;
  font-weight: 500;
  padding: 12px;
}
td {
  padding: 13px 12px;
  border-bottom: 1px solid #eef1f5;
  max-width: 380px;
  white-space: normal;
  word-break: break-word;
}
tr:hover td {
  background: #fcfdff;
}
.badge {
  font-size: 10px;
  border-radius: 4px;
  padding: 4px 7px;
  background: #edf3f0;
  color: #5c8976;
}
.badge.warn {
  background: #fff0e8;
  color: #bd8a65;
}
.muted {
  color: #9ca6b2;
}
.empty {
  text-align: center;
  padding: 45px;
  color: #98a3af;
}
.error {
  color: #c15a47;
  font-size: 12px;
  padding: 9px 0;
  min-height: 8px;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0;
}
.actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.actions button {
  font-size: 11px;
  padding: 6px 9px;
}
.chart {
  display: flex;
  align-items: end;
  gap: 6px;
  height: 175px;
  padding: 15px 6px 25px;
  border-bottom: 1px solid #e5e9ee;
}
.bar {
  flex: 1;
  background: #eaa28e;
  border-radius: 3px 3px 0 0;
  min-width: 4px;
  position: relative;
}
.bar span {
  position: absolute;
  font-size: 9px;
  bottom: -20px;
  color: #9ca7b5;
  white-space: nowrap;
}
.bar:hover {
  background: #e8775c;
}
.funnel {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.funnel-row {
  display: grid;
  grid-template-columns: 100px 1fr 65px;
  align-items: center;
  gap: 10px;
  font-size: 11px;
}
.funnel-bar {
  background: #ecf0f4;
  height: 20px;
  border-radius: 3px;
  overflow: hidden;
}
.funnel-bar b {
  display: block;
  background: #efa88f;
  height: 100%;
}
pre {
  white-space: pre-wrap;
  font-size: 11px;
  max-width: 650px;
  max-height: 250px;
  overflow: auto;
  color: #6e7a89;
}
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #eef1f5;
}
.login-card {
  width: 390px;
  padding: 35px;
  background: white;
  border-radius: 13px;
  border: 1px solid #e1e6ec;
  box-shadow: 0 20px 80px #25364a10;
}
.login-card h1 {
  margin-top: 30px;
}
.login-card p {
  color: #9aa4b0;
  font-size: 12px;
  margin-bottom: 25px;
}
.login-card label {
  margin: 17px 0;
}
.login-card button {
  width: 100%;
  margin: 10px 0 16px;
}
.login-card small {
  color: #a8b0ba;
  font-size: 10px;
  line-height: 1.9;
}
dialog {
  border: 0;
  border-radius: 12px;
  padding: 27px;
  width: 450px;
  box-shadow: 0 30px 100px #18263340;
}
dialog::backdrop {
  background: #16243560;
}
dialog h2 {
  margin-top: 0;
}
dialog p {
  font-size: 12px;
  color: #8b97a6;
}
dialog label {
  margin: 15px 0;
}
.dialog-actions {
  display: flex;
  justify-content: end;
  gap: 10px;
  margin-top: 20px;
}
footer {
  font-size: 10px;
  color: #a6afbb;
  text-align: center;
  padding-top: 25px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1000px) {
  aside {
    width: 185px;
  }
  main {
    margin-left: 185px;
    padding: 25px 20px;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .two {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 650px) {
  aside {
    position: relative;
    width: auto;
    padding: 16px;
  }
  nav {
    display: flex;
    flex-wrap: wrap;
  }
  nav button {
    width: auto;
  }
  nav .group,
  .workspace {
    display: none;
  }
  .aside-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding: 0;
    font-size: 0;
    line-height: 1.4;
  }
  .aside-foot br { display: none; }
  .aside-foot span,
  .aside-foot button { font-size: 12px; }
  main {
    margin: 0;
    padding: 20px;
  }
  .cards {
    gap: 8px;
  }
  .card {
    padding: 15px;
  }
  header .env {
    display: none;
  }
}

/* Metric dates, channels and retention cells remain readable in narrow panels. */
table.metrics td {
  white-space: nowrap;
  word-break: normal;
}

.metric-scope { font-size: 12px; color: #697586; margin: 0 0 16px; }
.filters select { max-width: 260px; }

.release-toolbar {display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:18px}
.release-toolbar p {font-size:13px;line-height:1.8;color:#697586;max-width:650px}
.release-toolbar div {display:flex;gap:8px;flex-shrink:0}
.release-filter {display:flex;align-items:center;gap:12px;padding:16px}
.release-table {overflow-x:auto}.release-table small {display:block;color:#697586;font-size:11px;margin-top:7px}
.release-empty {text-align:center;padding:48px!important;color:#697586}
#releaseDialog {width:min(640px,90vw);max-height:90vh;overflow:auto}
.release-fields {display:grid;grid-template-columns:1fr 1fr;gap:0 16px}
.release-confirm {display:flex;align-items:center;gap:10px;background:#fff5ed;padding:12px;border-radius:8px}
.release-confirm input {width:18px;min-height:18px}
@media(max-width:650px){.release-fields{grid-template-columns:1fr}.release-toolbar{display:block}}

.release-filter {flex-direction:row;justify-content:flex-start;max-width:none;margin:0}.release-filter select{width:auto;min-width:180px}
