/* PriCoSoft Cloud status page
   Colors: only the shared tokens of appearance.css (light/dark mode and color schemes); no literal colors here. */
:root {
  /* Aliases of the appearance.css color tokens. */
  --blue: var(--accent);
  --blue-dark: var(--accent-hover);
  --ink: var(--text);
  --muted: var(--text-muted);
  --line: var(--border);
  --canvas: var(--bg);
  --card: var(--surface);
  --font: "Segoe UI", Inter, system-ui, sans-serif;
  --bar: 64px;
  /* Status colors: operational, degraded, outage, no data. */
  --ok: var(--success);
  --ok-soft: var(--success-soft);
  --warn: var(--warning);
  --warn-soft: var(--warning-soft);
  --bad: var(--danger);
  --bad-soft: var(--danger-soft);
  --none: var(--border-strong);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--canvas);
}
[hidden] {
  display: none !important;
}
a {
  color: var(--blue);
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex: none;
}
.topbar {
  position: fixed;
  inset: 0 0 auto;
  height: var(--bar);
  background: var(--topbar);
  color: var(--topbar-text);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 26px 0 17px;
  z-index: 40;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  white-space: nowrap;
}
.brand strong {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.2px;
}
.current-app {
  font-size: 15px;
  padding-left: 12px;
  border-left: 1px solid color-mix(in srgb, var(--topbar-text) 25%, transparent);
  white-space: nowrap;
}
.top-actions {
  margin-left: auto;
}
/* Gear icon for the personal settings (same size on desktop and phone). */
.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--topbar-text);
  cursor: pointer;
}
.icon-button:hover {
  background: var(--topbar-hover);
}
.icon-button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.page {
  max-width: 960px;
  margin: 0 auto;
  padding: calc(var(--bar) + 32px) 24px 40px;
}
.secondary {
  border-radius: 6px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}
.secondary:disabled {
  opacity: 0.6;
  cursor: default;
}
.muted {
  color: var(--muted);
}
.overall {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  border-left-width: 6px;
}
.overall > div {
  flex: 1;
  min-width: 0;
}
.overall h1 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.4px;
  margin: 0;
}
.overall p {
  margin: 2px 0 0;
}
.overall-icon .icon {
  width: 40px;
  height: 40px;
}
.overall-operational {
  border-left-color: var(--ok);
}
.overall-operational .overall-icon {
  color: var(--ok);
}
.overall-degraded {
  border-left-color: var(--warn);
}
.overall-degraded .overall-icon {
  color: var(--warn);
}
.overall-outage {
  border-left-color: var(--bad);
}
.overall-outage .overall-icon {
  color: var(--bad);
}
.overall-unknown {
  border-left-color: var(--none);
}
.overall-unknown .overall-icon {
  color: var(--muted);
}
.notice {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--warn-soft);
  color: var(--warning);
  border: 1px solid color-mix(in srgb, var(--warning) 30%, var(--surface));
  white-space: pre-line;
}
.notice-error {
  background: var(--bad-soft);
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 30%, var(--surface));
}
.group h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 32px 0 12px;
}
.component {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
}
.component-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.component-head strong {
  font-size: 15px;
  font-weight: 600;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px 2px 6px;
  border-radius: 999px;
  font-size: 13px;
  white-space: nowrap;
}
.pill .icon {
  width: 16px;
  height: 16px;
}
.pill-operational {
  background: var(--ok-soft);
  color: var(--ok);
}
.pill-degraded {
  background: var(--warn-soft);
  color: var(--warning);
}
.pill-outage {
  background: var(--bad-soft);
  color: var(--bad);
}
.bars {
  display: flex;
  gap: 2px;
  height: 32px;
  margin: 12px 0 6px;
}
.bar {
  flex: 1;
  min-width: 2px;
  border-radius: 2px;
  background: var(--none);
}
.bar-operational {
  background: var(--ok);
}
.bar-degraded {
  background: var(--warn);
}
.bar-outage {
  background: var(--bad);
}
.component-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 12px;
}
.legend > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}
.dot-operational {
  background: var(--ok);
}
.dot-degraded {
  background: var(--warn);
}
.dot-outage {
  background: var(--bad);
}
.dot-none {
  background: var(--none);
}
@media (max-width: 600px) {
  .page {
    padding: calc(var(--bar) + 20px) 16px 32px;
  }
  .overall {
    flex-wrap: wrap;
    padding: 16px;
  }
  .overall h1 {
    font-size: 18px;
  }
  .bars {
    gap: 1px;
  }
  .component-foot span:first-child,
  .component-foot span:last-child {
    display: none;
  }
  .topbar {
    padding: 0 12px;
  }
}
