:root{
  --bg:#f4f7fb;
  --card:#fff;
  --text:#1f2a37;
  --muted:#6b7280;
  --brand:#0b6ea8;
  --brand2:#12a4a6;
  --line:#e5e7eb;
  --danger:#b42318;
  --shadow:0 10px 30px rgba(17,24,39,.08);
  --radius:14px;
  --focus:0 0 0 4px rgba(11,110,168,.18);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,Arial,"Apple Color Emoji","Segoe UI Emoji";
}

*{box-sizing:border-box}

body{
  margin:0;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  color:var(--text);
  background:
    radial-gradient(1200px 500px at 20% 0%, rgba(18,164,166,.12), transparent 55%),
    radial-gradient(1200px 500px at 80% 0%, rgba(11,110,168,.12), transparent 55%),
    var(--bg);
}

header{
  background:rgba(255,255,255,.75);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}

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

.topbar,
.sitebar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:inherit;
}

.logo{
  width:42px;
  height:42px;
  border-radius:12px;
  background:linear-gradient(135deg,var(--brand),var(--brand2));
  display:grid;
  place-items:center;
  box-shadow:0 10px 20px rgba(11,110,168,.18);
  flex:0 0 auto;
}

.logo svg{display:block}

.brand .name{line-height:1.1}

.brand .title{
  font-size:14px;
  font-weight:650;
  line-height:1.1;
  letter-spacing:.2px;
}

.brand .subtitle{
  font-size:12px;
  color:var(--muted);
  margin-top:2px;
}

.pill{
  font-size:12px;
  color:var(--brand);
  background:rgba(11,110,168,.08);
  border:1px solid rgba(11,110,168,.18);
  padding:8px 10px;
  border-radius:999px;
  white-space:nowrap;
}

main{
  flex:1;
  padding:26px 18px 40px;
}

main.centered{
  display:flex;
  align-items:center;
  justify-content:center;
}

.card,
.panel{
  width:100%;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}

.card{max-width:520px}

.panel{
  max-width:980px;
  margin:0 auto;
}

.cardhead{
  padding:18px 18px 0;
}

.cardbody,
.tablewrap{
  padding:18px;
}

.panelhead{
  padding:18px;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  flex-wrap:wrap;
  border-bottom:1px solid var(--line);
}

h1{
  margin:0;
  font-size:22px;
  letter-spacing:.2px;
}

.hint{
  margin:10px 0 0;
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
}

.grid{
  display:grid;
  gap:12px;
}

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

label{
  display:block;
  font-size:13px;
  color:#374151;
  margin-bottom:6px;
  font-weight:600;
}

input{
  width:100%;
  padding:12px;
  border-radius:12px;
  border:1px solid var(--line);
  outline:none;
  font-size:14px;
  background:#fff;
  transition:box-shadow .15s, border-color .15s, transform .05s;
}

input:focus{
  border-color:rgba(11,110,168,.55);
  box-shadow:var(--focus);
}

.actions{
  margin-top:14px;
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

button,
a.btn{
  display:inline-block;
  appearance:none;
  border:none;
  cursor:pointer;
  text-decoration:none;
  padding:12px 14px;
  border-radius:12px;
  font-weight:650;
  font-size:14px;
  color:#fff;
  background:linear-gradient(135deg,var(--brand),var(--brand2));
  box-shadow:0 12px 22px rgba(11,110,168,.18);
  transition:transform .05s, filter .15s;
}

button:hover,
a.btn:hover{filter:brightness(1.03)}

button:active,
a.btn:active{transform:translateY(1px)}

.smallnote,
.note{
  color:var(--muted);
  line-height:1.35;
}

.smallnote{font-size:12px}

.note{
  margin-top:14px;
  font-size:12px;
}

.alert{
  margin-top:14px;
  padding:12px;
  border-radius:12px;
  border:1px solid rgba(180,35,24,.18);
  background:rgba(180,35,24,.06);
  color:var(--danger);
  font-size:13px;
  line-height:1.4;
}

a.link{
  color:var(--brand);
  text-decoration:none;
}

a.link:hover{text-decoration:underline}

.tablewrap{overflow-x:auto}

table{
  width:100%;
  border-collapse:collapse;
}

th,
td{
  text-align:left;
  padding:12px 10px;
  border-bottom:1px solid var(--line);
  font-size:14px;
  vertical-align:middle;
}

th{
  color:#374151;
  background:#f8fafc;
  font-weight:650;
}

.empty{
  margin:18px;
  padding:18px;
  border-radius:12px;
  background:#f8fafc;
  border:1px solid var(--line);
  color:var(--muted);
  font-size:13px;
  line-height:1.4;
}

footer{
  border-top:1px solid var(--line);
  background:rgba(255,255,255,.7);
  padding:16px 18px;
  color:var(--muted);
  font-size:12px;
}

.footerwrap{
  max-width:980px;
  margin:0 auto;
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

@media (min-width:520px){
  .row{grid-template-columns:1fr 1fr}
}
