:root{
  --bg: #f6f7f9;
  --card: #ffffff;
  --text: #111;
  --muted: #6b7280;
  --border: #e5e7eb;
  --btn: #111;
  --btnText: #fff;
}

*{ box-sizing: border-box; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* Top header */
.header{
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner{
  max-width: 1000px;
  margin: 0 auto;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 140px 1fr 140px;
  align-items: center;
  gap: 12px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
}

.brand img{
  height: 32px;
  width: auto;
  display:block;
}

.title{
  text-align:center;
  font-weight: 800;
  letter-spacing: .2px;
}

.header-actions{
  display:flex;
  justify-content:flex-end;
}

/* Main layout */
.container{
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 16px 60px;
}

.card{
  max-width: 620px;
  margin: 24px auto 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  padding: 18px;
}

.card h2{
  margin: 0 0 12px;
  font-size: 18px;
}

.help{
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 16px;
}

/* Table -> responsive */
.table{
  width: 100%;
  border-collapse: collapse;
}

.table th{
  text-align:left;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
}

.table td{
  padding: 12px 8px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.input{
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
}

.switch{
  width: 22px;
  height: 22px;
  transform: scale(1.2);
}

/* Buttons */
.btn{
  appearance:none;
  border: 1px solid #111;
  background: var(--btn);
  color: var(--btnText);
  padding: 10px 14px;
  border-radius: 12px;
  cursor:pointer;
  font-weight: 700;
  font-size: 14px;
}

.btn.secondary{
  background: #fff;
  color: #111;
}

.actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  margin-top: 14px;
}

/* Mobile tweaks */
@media (max-width: 520px){
  .header-inner{
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .title{ text-align:left; }
  .header-actions{ justify-content:flex-start; }
  .card{ margin-top: 14px; padding: 14px; }
  .table th:nth-child(2),
  .table td:nth-child(2){
    width: 70px;
  }
}

.notice{
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 0 0 14px;
  font-weight: 700;
}

.notice.good{
  background: #ecfdf5; /* light green */
  border-color: #a7f3d0;
}

.notice.bad{
  background: #fef2f2; /* light red */
  border-color: #fecaca;
}

.notice small{
  display:block;
  margin-top: 6px;
  font-weight: 600;
  color: var(--muted);
}
