/* Ranglar va tipografiya — status.claude.com (Statuspage) bilan bir xil. Faqat yorug' tema, ular kabi. */
:root {
  --bg: #faf9f5;
  --text: #141413;
  --name: rgba(20, 20, 19, 0.8);
  --muted: #87867f;
  --line: #dedcd1;
  --ok: #76ad2a;
  --minor: #faa72a;
  --major: #e86235;
  --critical: #e04343;
  --maint: #2c84db;
  --nodata: #dedcd1;
  --btn: #141413;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--text); }
button { font: inherit; color: inherit; }

.wrap { max-width: 886px; margin: 0 auto; padding: 0 18px 60px; }

/* Sarlavha */
.top { display: flex; align-items: center; justify-content: space-between; padding: 72px 0 70px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { border-radius: 7px; }
.brand span { font: 400 31px/1 Georgia, "Times New Roman", serif; letter-spacing: -0.02em; }
.actions { display: flex; align-items: center; gap: 14px; }
.langs { display: flex; gap: 2px; }
.langs button { border: 0; background: none; padding: 4px 6px; font-size: 13px; color: var(--muted); cursor: pointer; letter-spacing: .04em; }
.langs button.on { color: var(--text); font-weight: 500; }
.subscribe {
  display: inline-block; background: var(--btn); color: #fff; text-decoration: none; border: 0; border-radius: 4px;
  padding: 11px 16px; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; white-space: nowrap;
}
.subscribe:hover { color: #fff; opacity: .85; }
.subscribe[hidden] { display: none; }

/* Umumiy holat */
.banner { padding: 20px 22px; border-radius: 4px; color: #fff; font-size: 20px; font-weight: 500; margin-bottom: 38px; }
.banner.operational { background: var(--ok); }
.banner.degraded { background: var(--minor); }
.banner.partial { background: var(--major); }
.banner.major { background: var(--critical); }
.banner.maintenance { background: var(--maint); }

/* Faol hodisalar */
.incident { margin-bottom: 38px; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.incident > h3 { margin: 0; padding: 14px 20px; color: #fff; font-size: 18px; font-weight: 500; }
.incident.minor { border-color: var(--minor); } .incident.minor > h3 { background: var(--minor); }
.incident.major { border-color: var(--major); } .incident.major > h3 { background: var(--major); }
.incident.critical { border-color: var(--critical); } .incident.critical > h3 { background: var(--critical); }
.incident.maintenance { border-color: var(--maint); } .incident.maintenance > h3 { background: var(--maint); }
.incident .ups { padding: 4px 20px; }
.up { padding: 14px 0; }
.up + .up { border-top: 1px solid var(--line); }
.up b { font-weight: 500; }
.up small { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; }
.affected { padding: 12px 20px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }

/* Komponentlar */
.uphead { text-align: right; margin: 0 0 6px; color: var(--muted); font-size: 14px; }
.comps { border: 1px solid var(--line); border-radius: 4px; }
.comp { padding: 20px 20px 16px; }
.comp + .comp { border-top: 1px solid var(--line); }
.chead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.cname { display: flex; align-items: center; gap: 7px; min-width: 0; color: var(--name); font-weight: 500; font-size: 16px; }
.cname .info { width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--muted); color: var(--muted); font-size: 10px; display: inline-grid; place-items: center; cursor: help; flex: none; }
.cstat { font-size: 14px; white-space: nowrap; }
.cstat.operational { color: var(--ok); }
.cstat.degraded { color: var(--minor); }
.cstat.partial { color: var(--major); }
.cstat.major { color: var(--critical); }
.cstat.maintenance { color: var(--maint); }
.cstat.unknown { color: var(--muted); }

.bars { display: flex; gap: 2.5px; height: 34px; }
.bar { flex: 1; border-radius: 1px; background: var(--ok); min-width: 0; cursor: pointer; }
.bar:hover { opacity: .7; }
.bar.minor { background: var(--minor); }
.bar.major { background: var(--major); }
.bar.critical { background: var(--critical); }
.bar.nodata { background: var(--nodata); }
.legend { display: flex; align-items: center; gap: 16px; margin-top: 8px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.legend i { flex: 1; height: 1px; background: var(--muted); opacity: .6; }
.legend .d60, .legend .d30 { display: none; }

.group > .chead { cursor: pointer; user-select: none; }
.group .tog { width: 16px; display: inline-block; color: var(--muted); font-size: 18px; line-height: 1; flex: none; font-weight: 400; }
.group .kids { display: none; margin: 16px -20px -16px; border-top: 1px solid var(--line); background: rgba(222, 220, 209, 0.18); }
.group.open .kids { display: block; }
.group .kids .comp { padding: 16px 20px 14px 43px; }
.group .kids .cname { font-weight: 400; }
.group.open > .bars, .group.open > .legend { display: none; }
.group.open > .chead { margin-bottom: 0; }

/* O'tgan hodisalar */
h2 { font-size: 24px; font-weight: 500; margin: 64px 0 4px; }
.day { padding: 0 0 22px; }
.day h4 { margin: 22px 0 10px; padding-bottom: 7px; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 500; }
.day .none { color: var(--muted); font-size: 15px; }
.pi { margin: 0 0 18px; }
.pi .t { font-weight: 500; font-size: 18px; margin-bottom: 4px; }
.pi.minor .t { color: var(--minor); }
.pi.major .t { color: var(--major); }
.pi.critical .t { color: var(--critical); }
.pi.maintenance .t { color: var(--maint); }
.pi p { margin: 6px 0 0; font-size: 16px; }
.pi p b { font-weight: 500; }
.pi small { display: block; color: var(--muted); font-size: 13px; }
.more { margin-top: 18px; background: none; border: 0; padding: 0; cursor: pointer; font-size: 14px; color: var(--text); }
.more::before { content: "← "; }
.more:hover { text-decoration: underline; }

.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 60px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }

.loading { height: 50vh; display: grid; place-items: center; color: var(--muted); }

/* Bar ustidagi oyna */
.tip {
  position: absolute; z-index: 10; width: 300px; padding: 14px 16px;
  background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 4px;
  box-shadow: 0 2px 12px rgba(20, 20, 19, 0.12); font-size: 14px; pointer-events: none;
}
.tip .td { font-weight: 500; margin-bottom: 6px; }
.tip .tr { display: flex; justify-content: space-between; gap: 10px; padding: 6px 8px; background: rgba(222, 220, 209, 0.3); border-radius: 3px; margin-top: 4px; }
.tip .tr span:first-child::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: 0; }
.tip .tr.major span:first-child::before { background: var(--critical); }
.tip .tr.partial span:first-child::before { background: var(--major); }
.tip .ok { color: var(--muted); }
.tip ul { margin: 10px 0 0; padding: 0; list-style: none; }
.tip ul::before { content: attr(data-h); display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.tip li + li { margin-top: 4px; }

/* Obuna oynasi */
.modal { position: fixed; inset: 0; z-index: 20; background: rgba(20, 20, 19, 0.35); display: grid; place-items: start center; padding: 120px 16px 16px; }
.modal[hidden] { display: none; }
.modal .box { width: 100%; max-width: 420px; background: var(--bg); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 8px 32px rgba(20, 20, 19, 0.2); }
.modal .mh { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 500; }
.modal .mh button { border: 0; background: none; font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted); }
.modal .mb { padding: 18px; font-size: 15px; }
.modal .mb p { margin: 0 0 16px; }
.modal .mb .subscribe { display: block; text-align: center; }

/* Kichik ekranlar: Statuspage kabi 60 / 30 kun */
@media (max-width: 760px) {
  .bars .bar:nth-child(-n+30) { display: none; }
  .legend .d90 { display: none; }
  .legend .d60 { display: inline; }
  .top { padding: 40px 0 40px; }
}
@media (max-width: 520px) {
  .bars .bar:nth-child(-n+60) { display: none; }
  .legend .d60 { display: none; }
  .legend .d30 { display: inline; }
  .top { padding: 28px 0 28px; flex-wrap: wrap; }
  .brand span { font-size: 25px; }
  .banner { font-size: 17px; padding: 16px; }
  .comp { padding: 16px 14px 12px; }
  .group .kids { margin: 14px -14px -12px; }
  .group .kids .comp { padding-left: 30px; }
  .legend { gap: 10px; font-size: 13px; }
}
