:root {
  --navy: #071426;
  --navy-2: #0d2842;
  --ink: #1a1a19;
  --muted: #666b72;
  --line: #e3e5e7;
  --paper: #ffffff;
  --canvas: #f6f7f7;
  --orange: #e8521a;
  --orange-dark: #c83f0d;
  --green: #12805c;
  --amber: #aa6608;
  --red: #c43b3b;
  font: 16px/1.6 "Nunito Sans", Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--canvas); }
a { color: inherit; }
h1, h2, h3, button, .brand-copy, .eyebrow, .admin-link { font-family: "Plus Jakarta Sans", Arial, sans-serif; }

.site-header, .admin-header {
  min-height: 92px;
  padding: 0 max(28px, calc((100vw - 1140px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(105deg, #07111f 0%, #0b2945 100%);
  color: #fff;
  border-bottom: 3px solid var(--orange);
}

.brand { display: flex; align-items: center; gap: 18px; text-decoration: none; }
.brand img { width: 132px; height: auto; display: block; }
.brand-copy { padding-left: 18px; border-left: 1px solid #ffffff3d; text-transform: uppercase; }
.brand-copy strong, .brand-copy small { display: block; }
.brand-copy strong { font-size: .84rem; letter-spacing: .13em; font-weight: 700; }
.brand-copy small { margin-top: 2px; color: #ffffffa6; font-size: .61rem; letter-spacing: .14em; }
.admin-link {
  padding: 11px 21px;
  border: 1px solid #ffffff80;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: .72rem;
  font-weight: 700;
  transition: background .18s, border-color .18s;
}
.admin-link:hover { background: var(--orange); border-color: var(--orange); }

.public-main { max-width: 1140px; margin: auto; padding: 64px 28px 96px; }
.hero { margin-bottom: 72px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  color: var(--orange);
  font-size: .72rem;
  letter-spacing: .19em;
  text-transform: uppercase;
  font-weight: 800;
}
.eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--orange); }
.overall {
  position: relative;
  isolation: isolate;
  min-height: 190px;
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 38px 42px;
  overflow: hidden;
  background: linear-gradient(115deg, #071426 0%, #0d3153 100%);
  color: #fff;
  box-shadow: 0 22px 46px #07142624;
}
.overall::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -55%; right: -6%;
  width: 390px; height: 390px;
  border: 1px solid #ffffff1f;
  border-radius: 50%;
  box-shadow: 0 0 0 54px #ffffff08, 0 0 0 108px #ffffff06;
}
.overall h1 { margin: 0 0 5px; font-size: clamp(1.65rem, 3vw, 2.5rem); line-height: 1.18; letter-spacing: -.035em; }
.overall p { margin: 0; color: #d6dde5; font-size: 1.05rem; }
.status-icon { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; background: #4bd29a; box-shadow: 0 0 0 9px #4bd29a22; }
.overall.status-major_outage .status-icon, .overall.status-partial_outage .status-icon { background: #ff7272; box-shadow: 0 0 0 9px #ff727222; }
.overall.status-degraded .status-icon, .overall.status-maintenance .status-icon { background: #ffbd55; box-shadow: 0 0 0 9px #ffbd5522; }
.checked { margin: 13px 0 0; text-align: right; color: var(--muted); font-size: .82rem; }

.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 20px; }
.section-heading h2 { margin: 0; font-size: 1.65rem; line-height: 1.2; letter-spacing: -.025em; }
.section-heading > span { padding-bottom: 3px; color: var(--muted); font-size: .86rem; }
.service-list { background: var(--paper); border-top: 4px solid var(--orange); box-shadow: 0 12px 32px #0714260b; }
.service-row { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px; border: 1px solid var(--line); border-top: 0; }
.service-row h3 { margin: 0; font-size: .98rem; }
.service-row p { margin: 3px 0 0; color: var(--muted); font-size: .8rem; }
.status-pill { display: inline-flex; align-items: center; gap: 9px; color: var(--green); font-size: .84rem; font-weight: 700; }
.status-pill i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-degraded, .status-maintenance { color: var(--amber); }
.status-partial_outage, .status-major_outage { color: var(--red); }
.compact { font-size: .76rem; white-space: nowrap; }

.history { margin-top: 78px; }
.timeline-date { margin: 34px 0 12px; color: var(--muted); font-size: .88rem; text-transform: uppercase; letter-spacing: .08em; }
.update { margin-bottom: 14px; padding: 23px 27px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--orange); box-shadow: 0 6px 18px #07142608; }
.update-meta { display: flex; justify-content: space-between; gap: 16px; }
.update time { color: var(--muted); font-size: .78rem; }
.update h3 { margin: 14px 0 0; }
.update p { margin: 8px 0 0; }
.update .service-name { color: var(--muted); font-size: .85rem; }
.empty-state { padding: 48px; text-align: center; background: var(--paper); border-top: 4px solid var(--orange); box-shadow: 0 12px 32px #0714260b; }
.empty-state h3, .empty-state p { margin: 0; }
.empty-state p { margin-top: 5px; color: var(--muted); }

footer { max-width: 1140px; margin: auto; padding: 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: .8rem; }
footer span:first-child { color: var(--ink); font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; letter-spacing: .15em; }

.admin-body { background: #eef1f3; }
.login-shell { min-height: 100vh; display: grid; place-content: center; padding: 28px; background: linear-gradient(135deg, #f3f5f6 0%, #e5eaed 100%); }
.brand.centered { width: max-content; max-width: 100%; margin: 0 auto 28px; color: var(--ink); }
.brand.centered img { width: 155px; }
.brand.centered .brand-copy { border-left-color: #1a1a1930; }
.brand.centered .brand-copy small { color: var(--muted); }
.login-card, .panel { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--orange); box-shadow: 0 16px 38px #0714260d; }
.login-card { width: min(460px, calc(100vw - 32px)); padding: 38px; }
.login-card h1 { margin: 0; font-size: 1.7rem; line-height: 1.25; letter-spacing: -.035em; }
.login-card > p:not(.eyebrow) { margin-top: 9px; color: var(--muted); }
.back-link { display: block; margin-top: 22px; text-align: center; color: var(--muted); font-size: .86rem; }

label { display: block; margin-top: 19px; font-family: "Plus Jakarta Sans", sans-serif; font-size: .82rem; font-weight: 700; }
input, select, textarea { display: block; width: 100%; margin-top: 7px; padding: 12px 13px; border: 1px solid #c9cdd1; border-radius: 0; background: #fff; color: var(--ink); font: inherit; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #555 50%), linear-gradient(135deg, #555 50%, transparent 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid #e8521a1f; border-color: var(--orange); }
button { width: 100%; margin-top: 24px; padding: 13px 20px; border: 0; border-radius: 0; background: var(--orange); color: #fff; font: 700 .82rem "Plus Jakarta Sans", sans-serif; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
button:hover { background: var(--orange-dark); }
.alert { margin: 19px 0; padding: 12px 15px; border-left: 3px solid; font-size: .9rem; }
.alert.error { background: #fff0ed; border-color: var(--red); color: #982c2c; }
.alert.success { background: #e9f7f1; border-color: var(--green); color: #0f6749; }

.admin-header { padding: 0 32px; }
.admin-header nav { display: flex; align-items: center; gap: 24px; font-size: .84rem; }
.admin-header nav span { color: #aebdca; }
.admin-header nav a { text-decoration: none; }
.admin-header nav a:hover { color: #ff713d; }
.admin-main { max-width: 1180px; margin: auto; padding: 52px 28px 90px; }
.admin-intro h1 { margin: 0; font-size: 2.15rem; line-height: 1.2; letter-spacing: -.035em; }
.admin-intro p:last-child { margin: 7px 0 32px; color: var(--muted); }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 24px; align-items: start; }
.panel { padding: 28px; }
.panel h2 { margin: 0; font-size: 1.16rem; }
.panel > p { margin: 6px 0; color: var(--muted); font-size: .9rem; }
.admin-services { margin-top: 15px; }
.admin-services > div { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.admin-services > div:last-child { border: 0; }
.recent-panel { margin-top: 24px; }
.admin-updates { margin-top: 15px; }
.admin-updates article { display: flex; justify-content: space-between; gap: 18px; padding: 16px 0; border-top: 1px solid var(--line); }
.admin-updates h3 { margin: 0; font-size: .93rem; }
.admin-updates p, .admin-updates time { display: block; margin: 3px 0 0; color: var(--muted); font-size: .76rem; }
.admin-updates article > div:last-child { text-align: right; }

@media (max-width: 720px) {
  .site-header, .admin-header { min-height: 80px; padding: 0 16px; }
  .brand img { width: 105px; }
  .brand-copy { padding-left: 12px; }
  .brand-copy strong { font-size: .72rem; }
  .brand-copy small { display: none; }
  .admin-link { padding: 9px 12px; font-size: .66rem; }
  .public-main { padding: 42px 16px 64px; }
  .hero { margin-bottom: 55px; }
  .overall { min-height: 170px; padding: 28px 22px; }
  .overall::after { right: -55%; }
  .service-row { padding: 18px; gap: 12px; }
  .service-row .status-pill { font-size: 0; }
  .service-row .status-pill i { width: 11px; height: 11px; }
  .section-heading > span { display: none; }
  .history { margin-top: 58px; }
  .admin-header nav { gap: 13px; }
  .admin-header nav span { display: none; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-main { padding: 36px 16px 68px; }
  .panel { padding: 22px; }
  .admin-updates article { display: block; }
  .admin-updates article > div:last-child { margin-top: 8px; text-align: left; }
  footer { margin: 0 16px; padding: 24px 0; }
}
