:root{
  --bg1:#0f6f76;
  --bg2:#0a5b62;
  --card:#ffffff;
  --muted:#f7f9fb;
  --border:#d9dee3;
  --text:#1b1f23;

  --primary:#3fa6a8;
  --primary2:#2f8f92;

  --shadow: 0 18px 40px rgba(0,0,0,.18);
  --radius: 22px;

  --danger:#b91c1c;
  --dangerBg:#fee2e2;
  --dangerBd:#fecaca;

  --warn:#b45309;
  --warnBg:#ffedd5;
  --warnBd:#fed7aa;
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  min-height:100vh;
  background:
    radial-gradient(1200px 600px at 50% 20%, rgba(255,255,255,.18), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
  padding:18px;
}
.wrap{ width:min(1100px, 95vw); margin:0 auto; }
.card{
  background:rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:18px;
  backdrop-filter: blur(8px);
}
.inner{
  background: var(--card);
  border-radius: calc(var(--radius) - 6px);
  padding:22px 18px 18px;
  border:1px solid rgba(0,0,0,.05);
}
.logoBox{
  background:#ffffff;
  border:1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding:14px 12px;
  display:flex;
  justify-content:center;
  align-items:center;
  margin-bottom:14px;
  min-height: clamp(56px, 10vh, 84px);
}
.logoBox img{
  display:block;
  width:auto; height:auto;
  max-width: 320px;
  max-height: 64px;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}
@media (max-width: 560px){
  .logoBox img{ max-width: 240px; max-height: 48px; }
}
.logoText{ font-weight:900; letter-spacing:.6px; font-size:20px; color: var(--primary2); text-transform: uppercase; }
.headRow{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom: 8px;
}
.titleBox h2{ margin:0; font-size:18px; letter-spacing:.2px; }
.titleBox .sub{ margin:6px 0 0 0; color:#4b5563; font-size:12px; line-height:1.35; }
.pill{
  background: linear-gradient(90deg, var(--primary), var(--primary2));
  color:#fff;
  border:1px solid rgba(0,0,0,.08);
  padding:10px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  display:flex;
  align-items:center;
  gap:8px;
  box-shadow: 0 10px 22px rgba(63,166,168,.22);
  white-space:nowrap;
}
label{ display:block; margin-top:12px; font-weight:900; font-size:12px; }
input, select, textarea{
  width:100%;
  padding:14px 14px;
  margin-top:6px;
  border-radius: 14px;
  border:1px solid var(--border);
  background:#fff;
  font-size: 16px;
  outline:none;
  color: var(--text);
}
textarea{ min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus{
  border-color: rgba(63,166,168,.75);
  box-shadow: 0 0 0 3px rgba(63,166,168,.18);
}
.grid{ display:grid; grid-template-columns:1fr; gap:12px; margin-top:14px; }
@media (min-width: 760px){
  .grid.two{ grid-template-columns:1fr 1fr; }
  .grid.three{ grid-template-columns:1fr 1fr 1fr; }
  .grid.four{ grid-template-columns:1fr 1fr 1fr 1fr; }
}
.btnRow{ display:flex; gap:12px; flex-wrap:wrap; margin-top:14px; }
.btn{ cursor:pointer; user-select:none; border:0; border-radius:14px; padding:12px 14px;
  font-weight:900; font-size:14px; text-decoration:none; display:inline-flex; align-items:center; justify-content:center; gap:8px;
  transition: transform .05s ease, filter .15s ease, border-color .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn-primary{ color:#fff; background: linear-gradient(90deg, var(--primary), var(--primary2)); box-shadow: 0 12px 24px rgba(63,166,168,.26); }
.btn-ghost{ background:#fff; color:var(--text); border:1px solid var(--border); box-shadow:none; }
.btn-ghost:hover,.btn-ghost:focus-visible,
.btn-primary:hover,.btn-primary:focus-visible{
  filter: brightness(.96);
}
.btn-ghost:hover,.btn-ghost:focus-visible{
  background: linear-gradient(90deg, var(--primary), var(--primary2));
  color:#fff;
  border-color: rgba(0,0,0,.08);
  box-shadow: 0 12px 24px rgba(63,166,168,.20);
  outline:none;
}
.btn:active{ transform: translateY(1px); }
.msg{
  margin-top:10px;
  padding:10px 12px;
  border-radius: 12px;
  border:1px solid rgba(0,0,0,.08);
  background:#f7f9fb;
  font-size:12px;
  color:#111827;
  display:none;
  white-space:pre-line;
}
.warn{
  margin-top:10px;
  padding:10px 12px;
  border-radius: 12px;
  border:1px solid var(--warnBd);
  background: var(--warnBg);
  font-size:12px;
  color:#7c2d12;
  white-space:pre-line;
}
.danger{
  margin-top:10px;
  padding:10px 12px;
  border-radius: 12px;
  border:1px solid var(--dangerBd);
  background: var(--dangerBg);
  font-size:12px;
  color:#7f1d1d;
  white-space:pre-line;
}
.tableWrap{ width:100%; overflow:auto; border:1px solid rgba(0,0,0,.08); border-radius:14px; margin-top:14px; background:#fff; }
table{ border-collapse: collapse; width:100%; }
th, td{ padding:10px 12px; border-bottom:1px solid rgba(0,0,0,.06); text-align:left; font-size:13px; }
th{ font-weight:900; background: #fbfcfd; position: sticky; top:0; z-index:1; }
.actionsCell{ white-space:nowrap; }
.iconBtn{ border:1px solid var(--border); background:#fff; border-radius:12px; padding:10px 12px; cursor:pointer; font-weight:900; }
.iconBtn:hover{ background: rgba(63,166,168,.10); }
.smallHint{ margin-top:12px; font-size:12px; color:#4b5563; }