:root{
  --bg:#ffffff;
  --fg:#0b1320;
  --muted:#5b6475;

  --blue:#1f5eff;
  --blueDark:#1747c7;
  --orange:#ff7a00;

  --border:rgba(11,19,32,.12);
  --card:#ffffff;
  --radius:14px;
  --shadow:0 10px 24px rgba(11,19,32,.10);
  --max:980px;
  --font: system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", sans-serif;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  background:var(--bg);
  color:var(--fg);
}

a{color:inherit}

.container{max-width:var(--max);margin:0 auto;padding:16px}

.topbar{
  position:sticky;top:0;z-index:10;
  background:var(--blue);
  color:#fff;
  border-bottom:3px solid rgba(255,255,255,.18);
}
.topbar .row{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  flex-wrap:wrap;
}

.brand{
  display:flex;align-items:center;gap:10px;
}
.logo{
  width:34px;height:34px;border-radius:10px;
  background:#fff;
  position:relative;
  overflow:hidden;
}
.logo:before{
  content:"";
  position:absolute;inset:0;
  background:linear-gradient(135deg, var(--orange), #ffd2a6);
  clip-path:polygon(0 0, 100% 0, 0 100%);
}
.brand strong{display:block;font-size:16px;letter-spacing:.2px}
.brand small{display:block;opacity:.85}

.nav{display:flex;gap:8px;flex-wrap:wrap}
.nav a{
  text-decoration:none;
  padding:8px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.18);
  font-weight:600;
  font-size:14px;
}
.nav a.active{
  background:#fff;
  color:var(--blueDark);
  border-color:#fff;
}

.badge{
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.18);
  font-weight:600;
  font-size:13px;
}
.dot{width:9px;height:9px;border-radius:50%;background:#22c55e}
.dot.off{background:#ef4444}

.mainTitle{
  display:flex;align-items:flex-end;justify-content:space-between;gap:12px;
  flex-wrap:wrap;
  margin:18px 0 10px;
}
h1{margin:0;font-size:20px}
.sub{color:var(--muted);font-size:13px}

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:14px;
  box-shadow:var(--shadow);
}
.stack{display:grid;gap:12px}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width:720px){.grid2{grid-template-columns:1fr}}

label{display:block;font-size:13px;color:var(--muted);margin-bottom:6px}
input, textarea{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  font:inherit;
  outline:none;
}
textarea{min-height:90px;resize:vertical}

.btnRow{display:flex;gap:10px;flex-wrap:wrap}

button{
  border:0;
  border-radius:12px;
  padding:10px 12px;
  font:inherit;
  font-weight:700;
  cursor:pointer;
}
button.primary{background:var(--orange);color:#fff}
button.blue{background:#fff;color:var(--blueDark);border:1px solid rgba(255,255,255,.0); }
button.secondary{
  background:#fff;
  color:var(--fg);
  border:1px solid var(--border);
}
button:disabled{opacity:.55;cursor:not-allowed}

.list{display:grid;gap:12px}
.item{
  display:grid;gap:10px;
  border-left:4px solid var(--orange);
}
.itemHead{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.item h3{margin:0;font-size:16px}
.item small{color:var(--muted)}
.thumb{
  width:100%;
  border-radius:12px;
  border:1px solid var(--border);
  max-height:260px;
  object-fit:cover;
  display:block;
}

hr{border:0;border-top:1px solid var(--border);margin:10px 0}

.footer{
  color:var(--muted);
  text-align:center;
  padding:18px 0 26px;
  font-size:13px;
}

.notice{
  padding:10px 12px;
  border-radius:12px;
  border:1px dashed rgba(31,94,255,.35);
  background:rgba(31,94,255,.06);
  color:var(--fg);
  font-size:13px;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: gray;
  margin-right: 6px;
}

.dot.ok {
  background: #22c55e;
}

.dot.bad {
  background: #ef4444;
}

.offline-banner {
  background: #ef4444;
  color: white;
  padding: 10px;
  text-align: center;
  font-weight: 600;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
}

html {
  overflow-y: scroll;
}

.container {
  width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
}

.topbar .row {
  position: relative;
}

.badge {
  position: absolute;
  left: 16px;
  bottom: 10px;

  min-width: 110px;
  justify-content: center;
  white-space: nowrap;
}

@media (min-width: 721px) {
  .badge {
    left: auto;
    right: 16px;
    bottom: 50%;
    transform: translateY(50%);
  }
}


