/* Outages listing — Keymireh */
.outages-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
}
.outages-meta .chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 .75rem;
  background: rgba(12, 125, 106, 0.1);
  color: var(--accent-deep);
  border: 1px solid rgba(12, 125, 106, 0.18);
  font-size: .82rem;
  font-weight: 600;
}
.outages-search {
  position: relative;
  margin-bottom: 1.25rem;
}
.outages-search-box {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: .85rem 1rem;
  position: relative;
}
.outages-search-box::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--volt), var(--arc));
}
.outages-search-box svg {
  width: 20px;
  height: 20px;
  fill: var(--accent);
  flex: 0 0 auto;
}
#searchInput {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  min-height: 40px;
  font-size: 1rem;
  color: var(--ink);
}
#searchClear {
  display: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}
#searchClear.visible { display: inline; }
.hint-search {
  margin-top: .55rem;
  color: var(--muted);
  font-size: .86rem;
}
.outages-error {
  background: #fff4f2;
  border: 1px solid #f0c2ba;
  color: #8a2f24;
  padding: .9rem 1rem;
  margin-bottom: 1rem;
}
.outages-empty {
  padding: 2rem 0;
  color: var(--muted);
  text-align: center;
}
.outage-cards {
  display: grid;
  gap: .85rem;
}
.outage-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1rem 1.05rem;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.outage-card:hover {
  border-color: rgba(12, 125, 106, 0.35);
  transform: translateY(-2px);
}
.outage-card.hidden { display: none; }
.outage-card-top {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  align-items: center;
  margin-bottom: .65rem;
}
.outage-badge {
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent-deep);
  background: rgba(12, 125, 106, 0.1);
  padding: .25rem .55rem;
}
.outage-badge.is-emergency {
  color: #9a4b00;
  background: rgba(240, 193, 75, 0.22);
}
.outage-date-label {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 800;
  font-family: inherit;
  line-height: 1.35;
  letter-spacing: 0;
  padding: .28rem .65rem;
  border-radius: 999px;
  background: rgba(13, 36, 48, 0.06);
  border: 1px solid rgba(13, 36, 48, 0.08);
  white-space: nowrap;
}
.outage-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  margin: 0 0 .55rem;
}
.outage-city {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin: 0 0 .4rem;
  padding: .28rem .65rem .28rem .55rem;
  border-radius: 999px;
  background: rgba(12, 125, 106, 0.1);
  color: var(--accent-deep);
  font-size: .92rem;
  font-weight: 800;
  line-height: 1.2;
}
.outage-meta-row .outage-city {
  margin: 0;
  min-height: 30px;
  padding: 0 .65rem 0 .5rem;
  font-size: .8rem;
  line-height: 1;
}
.outage-city svg {
  flex: 0 0 auto;
  display: block;
  color: var(--accent);
}
.outage-meta-row .outage-city span {
  display: block;
  line-height: 1.2;
  padding-block: .15rem;
}
.outage-address {
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.55;
  margin-bottom: .75rem;
}

/* —— Live countdown strip —— */
.outage-live {
  --live: #0c7d6a;
  --live-soft: rgba(12, 125, 106, 0.12);
  --live-track: rgba(12, 125, 106, 0.12);
  position: relative;
  overflow: hidden;
  margin-bottom: .85rem;
  padding: .95rem 1rem 1rem;
  border: 1px solid rgba(12, 125, 106, 0.18);
  border-radius: 16px;
  background:
    radial-gradient(ellipse 50% 80% at 100% 0%, rgba(62, 224, 184, 0.12), transparent 55%),
    linear-gradient(135deg, rgba(12, 125, 106, 0.07), transparent 55%),
    #f7fafb;
  transition: background .35s var(--ease), border-color .35s var(--ease);
}
.outage-live::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--live), transparent);
  opacity: .7;
}
.outage-live.is-dark {
  --live: #c45c1a;
  --live-soft: rgba(196, 92, 26, 0.14);
  --live-track: rgba(196, 92, 26, 0.14);
  border-color: rgba(196, 92, 26, 0.28);
  background:
    radial-gradient(ellipse 45% 70% at 0% 100%, rgba(240, 193, 75, 0.16), transparent 50%),
    linear-gradient(135deg, rgba(196, 92, 26, 0.1), transparent 55%),
    #fff8f2;
}
.outage-live.is-almost {
  --live: #c99212;
  --live-soft: rgba(240, 193, 75, 0.22);
  --live-track: rgba(240, 193, 75, 0.28);
  border-color: rgba(240, 193, 75, 0.45);
  background:
    radial-gradient(ellipse 50% 70% at 100% 50%, rgba(240, 193, 75, 0.22), transparent 55%),
    linear-gradient(135deg, rgba(240, 193, 75, 0.18), rgba(62, 224, 184, 0.08)),
    #fffced;
}
.outage-live.is-done {
  --live: #0c7d6a;
  --live-soft: rgba(12, 125, 106, 0.1);
  --live-track: rgba(12, 125, 106, 0.12);
  border-color: rgba(12, 125, 106, 0.2);
  background:
    radial-gradient(ellipse 40% 60% at 90% 20%, rgba(62, 224, 184, 0.16), transparent 50%),
    #f3faf7;
}
.outage-live-head {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: .75rem;
}
.outage-mood-wrap {
  position: relative;
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
}
.outage-mood {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--live);
  background: var(--live-soft);
  border: 1px solid color-mix(in srgb, var(--live) 28%, transparent);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--live) 12%, transparent);
  opacity: 0;
  transform: scale(.88) rotate(-4deg);
  transition: opacity .28s var(--ease), transform .34s cubic-bezier(.2, .9, .2, 1);
  pointer-events: none;
}
.outage-mood[hidden] { display: none !important; }
.outage-mood.is-active,
.outage-mood:not([hidden]) {
  opacity: 1;
  transform: none;
}
.outage-mood svg {
  width: 46px;
  height: 46px;
  display: block;
}
.outage-live.is-dark .outage-mood.is-active,
.outage-live.is-dark .outage-mood:not([hidden]) {
  animation: outagePulse 1.8s ease-in-out infinite;
}
.outage-live.is-almost .outage-mood.is-active,
.outage-live.is-almost .outage-mood:not([hidden]) {
  animation: outageGlow 1.4s ease-in-out infinite;
}
.outage-live.is-done .outage-mood.is-active,
.outage-live.is-done .outage-mood:not([hidden]) {
  animation: outagePop .7s cubic-bezier(.2, .9, .2, 1) both;
}
.outage-live-copy {
  display: grid;
  gap: .18rem;
  min-width: 0;
  flex: 1;
}
.outage-live-kicker {
  font-size: .78rem;
  font-weight: 700;
  color: var(--live);
  letter-spacing: -.01em;
}
.outage-live-label {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.35;
}
.outage-live-count {
  font-family: "IBM Plex Sans Arabic", "Vazirmatn", sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--live);
  line-height: 1.1;
  margin-top: .1rem;
}
.outage-live-joke {
  margin-top: .2rem;
  font-size: .84rem;
  color: var(--muted);
  line-height: 1.55;
}
.outage-live.is-urgent {
  --live: #d32f2f;
  --live-soft: rgba(211, 47, 47, 0.12);
  --live-track: rgba(211, 47, 47, 0.16);
  border-color: rgba(211, 47, 47, 0.35);
  background:
    radial-gradient(ellipse 50% 70% at 100% 0%, rgba(211, 47, 47, 0.12), transparent 55%),
    linear-gradient(135deg, rgba(211, 47, 47, 0.08), transparent 55%),
    #fff6f5;
}
.outage-live-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--live) 11%, #e4eaec);
  box-shadow: inset 0 1px 1px rgba(15, 23, 28, 0.045);
  overflow: hidden;
  direction: ltr;
}
.outage-live-fill {
  position: relative;
  z-index: 1;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  margin-inline-start: 0;
  background: color-mix(in srgb, var(--live) 90%, #fff);
  box-shadow: none;
  transition: width .9s linear, background .35s var(--ease);
  transform-origin: left center;
  overflow: hidden;
}
.outage-live-fill::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .28;
  background-image: repeating-linear-gradient(
    -55deg,
    transparent 0,
    transparent 6px,
    rgba(255, 255, 255, 0.7) 6px,
    rgba(255, 255, 255, 0.7) 7.5px
  );
  background-size: 16px 16px;
}
.outage-live-fill::after {
  content: "";
  position: absolute;
  inset-block: -30%;
  width: 36%;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 100%
  );
  opacity: .65;
}
.outage-live[data-flow="drain"] .outage-live-fill {
  background: color-mix(in srgb, var(--live) 88%, #fff);
}
.outage-live[data-flow="drain"] .outage-live-fill::before {
  animation: outageStripeLeft 1.5s linear infinite;
}
.outage-live[data-flow="drain"] .outage-live-fill::after {
  animation: outageSheenLeft 2.2s ease-in-out infinite;
}
.outage-live[data-flow="fill"] .outage-live-fill::before {
  animation: outageStripeRight 1.5s linear infinite;
}
.outage-live[data-flow="fill"] .outage-live-fill::after {
  animation: outageSheenRight 2.2s ease-in-out infinite;
}
.outage-live.is-urgent .outage-live-fill {
  background: color-mix(in srgb, var(--live) 94%, #fff);
  box-shadow: none;
  animation: none;
}
.outage-live.is-urgent .outage-live-fill::before {
  opacity: .22;
}
@keyframes outageStripeLeft {
  from { background-position: 0 0; }
  to { background-position: -16px 0; }
}
@keyframes outageStripeRight {
  from { background-position: 0 0; }
  to { background-position: 16px 0; }
}
@keyframes outageSheenLeft {
  0% { transform: translateX(110%); }
  100% { transform: translateX(-160%); }
}
@keyframes outageSheenRight {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(160%); }
}
@keyframes outagePop {
  0% { transform: scale(.8); }
  60% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@keyframes outagePulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.04); filter: brightness(1.08); }
}
@keyframes outageGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(240, 193, 75, 0); }
  50% { box-shadow: 0 0 18px rgba(240, 193, 75, 0.45); }
}

.outage-times {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
  margin-bottom: .85rem;
  background: #f7fafb;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.outage-time-box {
  background: transparent;
  border: 0;
  padding: .85rem .75rem;
  text-align: center;
}
.outage-time-title {
  display: block;
  color: var(--muted);
  font-size: .76rem;
  margin-bottom: .25rem;
}
.outage-time-val {
  font-size: 1.1rem;
  letter-spacing: .3px;
  direction: ltr;
  font-family: "IBM Plex Sans Arabic", sans-serif;
  font-weight: 600;
}
.outage-time-box.is-muted .outage-time-val {
  color: var(--muted);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: 0;
  direction: rtl;
}
.outage-arrow {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  margin: .5rem 0;
  padding: 0;
  border: 0;
  color: transparent;
  font-size: 0;
  line-height: 0;
  z-index: 1;
}
.outage-arrow::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 50%;
  width: 0;
  border-inline-start: 1px dashed rgba(13, 24, 34, 0.28);
  transform: translateX(-50%);
  z-index: 0;
}
.outage-arrow::after {
  content: "◀";
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  background: #f7fafb;
  color: var(--muted);
  font-size: .75rem;
  line-height: 1;
  box-shadow: 0 0 0 4px #f7fafb;
}
.outage-reason {
  display: flex;
  gap: .55rem;
  align-items: flex-start;
  margin: -.15rem 0 .75rem;
  padding: .55rem .7rem;
  background: rgba(240, 193, 75, 0.12);
  border: 1px solid rgba(240, 193, 75, 0.28);
  font-size: .9rem;
  line-height: 1.55;
}
.outage-reason-label {
  flex: 0 0 auto;
  font-weight: 700;
  color: #8a6a14;
}
.outage-foot-meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.outage-foot {
  display: flex;
  justify-content: flex-start;
  gap: .75rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .86rem;
  border-top: 1px solid var(--line);
  padding-top: .75rem;
}
.outage-monitor-row {
  margin-top: .85rem;
}
.outage-monitor-btn {
  display: flex;
  align-items: center;
  gap: .85rem;
  width: 100%;
  min-height: 64px;
  padding: .7rem .95rem;
  border-radius: 16px;
  border: 1px solid rgba(12, 125, 106, 0.28);
  background:
    radial-gradient(120% 140% at 0% 50%, rgba(62, 224, 184, 0.14), transparent 45%),
    linear-gradient(135deg, rgba(12, 125, 106, 0.08), rgba(255, 255, 255, 0.65));
  color: var(--accent-deep);
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition: transform .14s var(--ease), background .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 8px 22px rgba(13, 24, 34, 0.04);
}
.outage-monitor-btn:hover {
  border-color: rgba(12, 125, 106, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(13, 24, 34, 0.08);
}
.outage-monitor-btn:active,
.outage-monitor-btn.is-pressed {
  transform: scale(0.985);
}
.outage-monitor-btn.is-on {
  border-color: rgba(240, 193, 75, 0.55);
  background:
    radial-gradient(120% 140% at 0% 50%, rgba(240, 193, 75, 0.28), transparent 48%),
    linear-gradient(135deg, rgba(240, 193, 75, 0.2), rgba(255, 250, 235, 0.9));
  color: #7a5a0a;
}
.outage-monitor-btn.is-busy {
  opacity: .72;
  cursor: wait;
}
.outage-monitor-visual {
  position: relative;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
}
.outage-monitor-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.outage-monitor-face.is-on {
  opacity: 0;
  transform: scale(.85) rotate(-8deg);
  pointer-events: none;
}
.outage-monitor-btn.is-on .outage-monitor-face.is-off {
  opacity: 0;
  transform: scale(.85) rotate(8deg);
  pointer-events: none;
}
.outage-monitor-btn.is-on .outage-monitor-face.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.outage-monitor-radar {
  transform-origin: 24px 24px;
  transform-box: view-box;
  animation: monitorRadar 2.4s linear infinite;
}
.outage-monitor-btn.is-on .outage-monitor-radar { animation: none; }
@keyframes monitorRadar {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.outage-monitor-copy {
  display: flex;
  flex-direction: column;
  gap: .12rem;
  min-width: 0;
}
.outage-monitor-label {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
}
.outage-monitor-hint {
  font-size: .82rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--muted);
}
.outage-monitor-btn.is-on .outage-monitor-hint {
  color: #8a6a14;
}

.monitor-confirm {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(7, 16, 24, 0.55);
  backdrop-filter: blur(6px);
}
.monitor-confirm[hidden] { display: none !important; }
body.monitor-confirm-open { overflow: hidden; }
.monitor-confirm-card {
  width: min(420px, 100%);
  padding: 1.35rem 1.25rem 1.2rem;
  border-radius: 22px;
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(240, 193, 75, 0.18), transparent 50%),
    #fff;
  box-shadow: 0 28px 70px rgba(7, 16, 24, 0.28);
  text-align: center;
  animation: monitorPop .28s var(--ease);
}
@keyframes monitorPop {
  from { opacity: 0; transform: translateY(12px) scale(.96); }
  to { opacity: 1; transform: none; }
}
.monitor-confirm-art {
  display: grid;
  place-items: center;
  margin-bottom: .35rem;
}
.monitor-confirm-kicker {
  margin: 0 0 .25rem;
  color: var(--accent-deep);
  font-size: .82rem;
  font-weight: 700;
}
.monitor-confirm-card h3 {
  margin: 0 0 .55rem;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.5;
}
.monitor-confirm-text {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.7;
}
.monitor-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
}
.monitor-confirm-keep,
.monitor-confirm-drop {
  min-height: 46px;
  border-radius: 12px;
  border: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.monitor-confirm-keep {
  background: rgba(12, 125, 106, 0.12);
  color: var(--accent-deep);
}
.monitor-confirm-drop {
  background: #0d1822;
  color: #edf3f1;
}
.monitor-confirm-keep:hover { background: rgba(12, 125, 106, 0.2); }
.monitor-confirm-drop:hover { background: #1c2d3c; }

.monitor-pick {
  position: fixed;
  inset: 0;
  z-index: 121;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(7, 16, 24, 0.55);
  backdrop-filter: blur(6px);
}
.monitor-pick[hidden] { display: none !important; }
body.monitor-pick-open { overflow: hidden; }
.monitor-pick-card {
  width: min(460px, 100%);
  max-height: min(92vh, 640px);
  overflow: auto;
  padding: 1.25rem 1.2rem 1.15rem;
  border-radius: 22px;
  background:
    radial-gradient(90% 70% at 0% 0%, rgba(12, 125, 106, 0.12), transparent 55%),
    #fff;
  box-shadow: 0 28px 70px rgba(7, 16, 24, 0.28);
  text-align: right;
  animation: monitorPop .28s var(--ease);
}
.monitor-pick-kicker {
  margin: 0 0 .2rem;
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent, #0c7d6a);
}
.monitor-pick-card h3 {
  margin: 0 0 .45rem;
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--ink);
}
.monitor-pick-text {
  margin: 0 0 .9rem;
  font-size: .88rem;
  line-height: 1.65;
  color: var(--muted);
}
.monitor-pick-list {
  display: grid;
  gap: .45rem;
  margin-bottom: .9rem;
}
.monitor-pick-item {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .7rem .75rem;
  border: 1px solid var(--line, #d7e0e4);
  border-radius: 12px;
  background: #f7fafb;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.monitor-pick-item:hover {
  border-color: color-mix(in srgb, var(--accent, #0c7d6a) 35%, var(--line, #d7e0e4));
}
.monitor-pick-item:has(input:checked) {
  border-color: color-mix(in srgb, var(--accent, #0c7d6a) 55%, transparent);
  background: color-mix(in srgb, var(--accent, #0c7d6a) 8%, #fff);
}
.monitor-pick-item input {
  margin-top: .2rem;
  accent-color: var(--accent, #0c7d6a);
  flex: 0 0 auto;
}
.monitor-pick-item span {
  font-size: .92rem;
  line-height: 1.5;
  color: var(--ink);
}
.monitor-pick-item-body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .55rem;
  min-width: 0;
}
.monitor-pick-item-text {
  font-size: .92rem;
  line-height: 1.5;
  color: var(--ink);
}
.monitor-pick-item.is-ambiguous {
  border-color: color-mix(in srgb, #c47a1a 40%, var(--line, #d7e0e4));
  background: color-mix(in srgb, #c47a1a 6%, #fff);
}
.monitor-pick-badge {
  display: inline-block;
  font-size: .72rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1.2;
  padding: .18rem .45rem;
  border-radius: 6px;
  color: #7a4a0c;
  background: color-mix(in srgb, #f0c14b 35%, #fff);
  border: 1px solid color-mix(in srgb, #c47a1a 28%, transparent);
  white-space: nowrap;
}
.monitor-pick-warn {
  margin: 0 0 .85rem;
  padding: .7rem .8rem;
  font-size: .86rem;
  line-height: 1.55;
  color: #5c3a0a;
  background: color-mix(in srgb, #f0c14b 22%, #fff);
  border: 1px solid color-mix(in srgb, #c47a1a 30%, transparent);
  border-radius: 10px;
}
.monitor-pick-empty {
  margin: 0;
  padding: .75rem;
  font-size: .88rem;
  color: var(--muted);
  background: #f7fafb;
  border-radius: 12px;
}
.monitor-pick-custom,
.monitor-pick-label {
  display: grid;
  gap: .35rem;
  margin-bottom: .75rem;
}
.monitor-pick-custom span,
.monitor-pick-label span {
  font-size: .8rem;
  font-weight: 700;
  color: var(--ink);
}
.monitor-pick-hint {
  font-style: normal;
  font-weight: 500;
  color: var(--muted, #5b6b73);
  font-size: .75rem;
}
.monitor-pick-custom input,
.monitor-pick-label input {
  width: 100%;
  padding: .7rem .8rem;
  border: 1px solid var(--line, #d7e0e4);
  border-radius: 12px;
  font: inherit;
  background: #fff;
}
.monitor-pick-custom input:focus,
.monitor-pick-label input:focus {
  outline: 2px solid color-mix(in srgb, var(--accent, #0c7d6a) 35%, transparent);
  border-color: var(--accent, #0c7d6a);
}
.monitor-pick-label {
  padding: .65rem .7rem .7rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent, #0c7d6a) 6%, #fff);
  border: 1px dashed color-mix(in srgb, var(--accent, #0c7d6a) 28%, var(--line, #d7e0e4));
}
.monitor-pick-label[hidden] { display: none !important; }
.monitor-pick-label-note {
  margin: 0;
  font-style: normal;
  font-size: .72rem;
  font-weight: 500;
  color: var(--muted, #5b6b73);
  line-height: 1.35;
}
.monitor-pick-label-disabled {
  margin: -.35rem 0 .75rem;
  font-size: .78rem;
  color: var(--muted, #5b6b73);
}
.monitor-pick-label-disabled[hidden] { display: none !important; }
.monitor-watch-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  min-width: 0;
  margin: 0 0 .65rem;
}
.monitor-watch-pill,
.monitor-watch-label,
.monitor-watch-city {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 11px;
  line-height: 1;
  white-space: nowrap;
}
.monitor-watch-label {
  gap: .32rem;
  max-width: 190px;
  padding: .35rem .55rem;
  border: 1px solid rgba(210, 157, 24, .24);
  color: #72530a;
  background: linear-gradient(135deg, rgba(255,213,106,.24), rgba(255,255,255,.96));
  box-shadow: 0 4px 12px rgba(126, 91, 8, .045);
  font-size: .76rem;
}
.monitor-watch-label svg { flex: 0 0 auto; color: #a87908; }
.monitor-watch-label strong {
  overflow: hidden;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.monitor-watch-pill {
  gap: .32rem;
  min-width: 0;
  max-width: min(100%, 520px);
  padding: .35rem .58rem .35rem .7rem;
  border: 1px solid rgba(12, 125, 106, .25);
  color: #3e555d;
  background: linear-gradient(135deg, rgba(12,125,106,.095), rgba(255,255,255,.96));
  box-shadow: inset -3px 0 0 rgba(12,125,106,.5), 0 4px 12px rgba(13,24,34,.035);
  font-size: .76rem;
  font-weight: 650;
}
.monitor-watch-pill svg { flex: 0 0 auto; color: #0c7d6a; }
.monitor-watch-pill > span { flex: 0 0 auto; color: #587078; }
.monitor-watch-pill strong {
  overflow: hidden;
  color: #075f51;
  font-size: .8rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.monitor-watch-city {
  gap: .28rem;
  padding: .35rem .55rem;
  border: 1px solid rgba(12,125,106,.13);
  color: #087361;
  background: rgba(12,125,106,.075);
  font-size: .72rem;
  font-weight: 800;
}
@media (max-width: 520px) {
  .monitor-watch-row { gap: .32rem; margin-bottom: .55rem; }
  .monitor-watch-pill, .monitor-watch-label, .monitor-watch-city { min-height: 31px; border-radius: 10px; }
  .monitor-watch-label { max-width: 42%; padding: .3rem .45rem; font-size: .7rem; }
  .monitor-watch-pill { max-width: 100%; padding: .3rem .48rem .3rem .58rem; font-size: .71rem; }
  .monitor-watch-pill strong { font-size: .74rem; }
  .monitor-watch-city { padding: .3rem .45rem; font-size: .68rem; }
}
.monitor-pick-error {
  margin: 0 0 .75rem;
  font-size: .84rem;
  color: #b42318;
}
.monitor-label-field {
  display: grid;
  gap: .3rem;
  margin: 0 0 .85rem;
}
.monitor-label-field span {
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink, #0d1822);
}
.monitor-label-field em {
  font-style: normal;
  font-weight: 500;
  color: var(--muted, #5b6b73);
  font-size: .75rem;
}
.monitor-label-field input {
  width: 100%;
  padding: .65rem .75rem;
  border: 1px solid var(--line, #d7e0e4);
  border-radius: 12px;
  font: inherit;
  background: #fff;
}
.monitor-label-field small {
  font-size: .72rem;
  color: var(--muted, #5b6b73);
  line-height: 1.35;
}
.monitor-pick-actions {
  display: flex;
  gap: .55rem;
  justify-content: stretch;
}
.monitor-pick-cancel,
.monitor-pick-ok {
  flex: 1;
  border: 0;
  border-radius: 12px;
  padding: .75rem .9rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.monitor-pick-cancel {
  background: rgba(13, 24, 34, 0.06);
  color: var(--ink);
}
.monitor-pick-ok {
  background: var(--ink, #0d1822);
  color: #fff;
}
.monitor-pick-cancel:hover { background: rgba(13, 24, 34, 0.1); }
.monitor-pick-ok:hover { filter: brightness(1.08); }

.outage-watch-tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin: 0;
  min-height: 30px;
  padding: 0 .65rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--accent, #0c7d6a);
  background: color-mix(in srgb, var(--accent, #0c7d6a) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--accent, #0c7d6a) 22%, transparent);
}
.panel-monitor-idle {
  padding: 1.1rem 1.05rem;
  border: 1px dashed var(--line, #d7e0e4);
  border-radius: 18px;
  background: #fafcfc;
}
.panel-monitor-idle.is-removing {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .28s ease, transform .28s ease;
}
.panel-monitor-idle-title {
  margin: 0 0 .35rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
}
.panel-monitor-idle-text {
  margin: 0 0 1rem;
  font-size: .9rem;
  line-height: 1.6;
  color: var(--muted);
}
.panel-monitor-last {
  margin: 0 0 1rem;
  padding: 0;
  border-radius: 14px;
  border: 1.5px dashed #b7c4cb;
  background:
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 10px,
      rgba(13, 36, 48, 0.015) 10px,
      rgba(13, 36, 48, 0.015) 20px
    ),
    #f3f6f7;
  overflow: hidden;
}
.panel-monitor-last-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .4rem .75rem;
  padding: .55rem .85rem;
  border-bottom: 1px dashed #c5d0d6;
  background: rgba(255, 255, 255, 0.45);
}
.panel-monitor-last-label {
  font-size: .78rem;
  font-weight: 800;
  color: #6a7a86;
  letter-spacing: 0;
}
.panel-monitor-last-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .18rem .55rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  color: #5d6f7c;
  background: rgba(93, 111, 124, 0.12);
  border: 1px dashed #9aabb4;
}
.panel-monitor-last-badge::before {
  content: "";
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: #8a9aa5;
  box-shadow: 0 0 0 3px rgba(138, 154, 165, 0.22);
}
.panel-monitor-last-badge.is-upcoming {
  color: #0c5c4f;
  background: color-mix(in srgb, var(--accent, #0c7d6a) 14%, #fff);
  border: 1px solid color-mix(in srgb, var(--accent, #0c7d6a) 35%, transparent);
}
.panel-monitor-last-badge.is-upcoming::before {
  background: var(--accent, #0c7d6a);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #0c7d6a) 22%, transparent);
}
.panel-monitor-last-badge.is-ongoing {
  color: #7a4a0c;
  background: color-mix(in srgb, #f0c14b 28%, #fff);
  border: 1px solid color-mix(in srgb, #c47a1a 32%, transparent);
}
.panel-monitor-last-badge.is-ongoing::before {
  background: #c47a1a;
  box-shadow: 0 0 0 3px color-mix(in srgb, #f0c14b 40%, transparent);
}
.panel-monitor-idle.is-last-upcoming .panel-monitor-last-body,
.panel-monitor-idle.is-last-ongoing .panel-monitor-last-body {
  opacity: 1;
  filter: none;
}
.panel-monitor-last-body {
  padding: .75rem .9rem .85rem;
  opacity: .78;
  filter: grayscale(0.28);
}
.panel-monitor-last-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .65rem;
  margin-bottom: .35rem;
}
.panel-monitor-last-date {
  font-size: .92rem;
  font-weight: 800;
  font-family: inherit;
  letter-spacing: 0;
  color: #4a5a66;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(93, 111, 124, 0.55);
}
.panel-monitor-idle.is-last-upcoming .panel-monitor-last-date,
.panel-monitor-idle.is-last-ongoing .panel-monitor-last-date {
  color: var(--ink);
  text-decoration: none;
}
.panel-monitor-last-city {
  font-size: .8rem;
  font-weight: 700;
  color: #6a7a86;
}
.panel-monitor-last-address {
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.5;
  margin: .1rem 0 .4rem;
  color: #3d4d58;
}
.panel-monitor-last-reason {
  font-size: .84rem;
  color: #6a7a86;
  margin-bottom: .55rem;
}
.panel-monitor-last-times {
  margin: 0;
}
.panel-monitor-last-times .outage-time-box {
  background: rgba(255, 255, 255, .55);
  border-style: dashed;
  opacity: .9;
}
.panel-monitor-last-times .outage-time-val {
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(93, 111, 124, 0.5);
  color: #5a6a76;
}
.panel-monitor-last-times .outage-arrow {
  opacity: .45;
}

@media (prefers-reduced-motion: reduce) {
  .outage-monitor-radar { animation: none; }
  .monitor-confirm-card { animation: none; }
  .monitor-pick-card { animation: none; }
}

.outage-address mark {
  background: rgba(240, 193, 75, 0.35);
  color: inherit;
  padding: 0 2px;
}

/* —— Pagination —— */
.outages-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  flex-wrap: wrap;
  margin: 1.35rem 0 .5rem;
}
.pager-btn,
.pager-page {
  min-height: 40px;
  min-width: 40px;
  padding: 0 .85rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.pager-btn:hover:not(:disabled),
.pager-page:hover {
  border-color: rgba(12, 125, 106, 0.35);
  background: rgba(12, 125, 106, 0.06);
}
.pager-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}
.pager-pages {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  flex-wrap: wrap;
  justify-content: center;
}
.pager-page.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.pager-ellipsis {
  padding: 0 .2rem;
  color: var(--muted);
}

@media (max-width: 600px) {
  .outage-live-count { font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  .outage-live.is-dark .outage-mood,
  .outage-live.is-almost .outage-mood { animation: none; }
  .outage-live-fill { transition: none; animation: none; }
  .outage-live-fill::before,
  .outage-live-fill::after { animation: none; }
}
