:root{
  --bg:#f6f7fb;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#475569;
  --line:#e6e8ef;
  --accent:#1d4ed8;
  --ok:#16a34a;
  --err:#dc2626;
  --shadow: 0 10px 30px rgba(15, 23, 42, .10);
  --radius: 18px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background: radial-gradient(900px 500px at 20% 0%, rgba(29,78,216,.08), transparent 60%),
              radial-gradient(900px 500px at 80% 20%, rgba(22,163,74,.06), transparent 60%),
              var(--bg);
}

a{ color: var(--accent); text-decoration:none; }
a:hover{ text-decoration:underline; }

.wrap{
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 14px 40px;
}

.header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom: 14px;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
  min-width: 0;
}

.logo{
  max-width:150px;
  width: 150px;
  height:auto;
  display:block;
}

.titles{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
}

.h1{
  font-size: clamp(24px, 4.2vw, 38px);
  line-height:1.05;
  margin: 0;
  letter-spacing: .2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sub{
  margin:0;
  color:var(--muted);
  font-size: 14px;
}

.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.stack{ display:flex; flex-direction:column; gap: 12px; }

.list{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top: 10px;
}

.item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fbfcff;
}

.item-title{
  font-size: 18px;
  font-weight: 800;
  line-height:1.2;
  color: var(--text);
}

.badge{
  font-size: 12px;
  color: var(--text);
  padding: 6px 10px;
  border-radius: 999px;
  border:1px solid var(--line);
  background: #f1f5ff;
  white-space:nowrap;
}

.badge.live{
  border-color: rgba(22,163,74,.25);
  background: rgba(22,163,74,.10);
}

.status{
  font-weight: 900;
  font-size: 18px;
  margin: 0;
}

.muted{ color: var(--muted); }

.grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn{
  width:100%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: 16px 14px;
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
  background: #ffffff;
  cursor:pointer;
  user-select:none;
  min-height: 58px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .06);
}

.btn:active{ transform: translateY(1px); }
.btn[disabled]{ opacity:.55; cursor:not-allowed; transform:none; box-shadow:none; }

.btn.yes{ border-color: rgba(22,163,74,.25); background: rgba(22,163,74,.08); }
.btn.no{  border-color: rgba(220,38,38,.22); background: rgba(220,38,38,.07); }

.notice{
  display:none;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #f8fafc;
  font-weight: 700;
}

.notice.ok{ display:block; border-color: rgba(22,163,74,.25); background: rgba(22,163,74,.08); }
.notice.err{ display:block; border-color: rgba(220,38,38,.22); background: rgba(220,38,38,.07); }

.footer{
  margin-top: 14px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.smalllink{
  font-size: 14px;
  color: var(--muted);
}

/* Mobile */
@media (max-width: 520px){
  .grid2{ grid-template-columns: 1fr; }
  .item-title{ font-size: 16px; }
  .btn{ font-size: 19px; }
  .card{ padding: 14px; }
  .logo{ width: 130px; max-width:150px; }
  .h1{ white-space: normal; }
}
