:root{
  --bg:#f6f7fb;
  --card:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --border:rgba(17,24,39,.10);
  --accent:#2563eb;
  --shadow: 0 10px 30px rgba(17,24,39,.07);
  --radius:16px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
}
a{color:inherit}
.container{max-width:980px;margin:0 auto;padding:18px 16px 92px}
.topbar{
  position:sticky; top:0; z-index:10;
  background:rgba(246,247,251,.86);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}
.topbar__inner{
  max-width:980px;margin:0 auto;
  display:flex;align-items:center;justify-content:space-between;
  padding:12px 16px;
}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-weight:700}
.brand__dot{width:10px;height:10px;border-radius:999px;background:var(--accent);display:inline-block}
.brand__name{letter-spacing:.2px}
.topbar__right{display:flex;align-items:center;gap:10px}
.topbar__user{color:var(--muted);font-size:.9rem}
.app{min-height:calc(100vh - 56px)}
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow: var(--shadow);
  padding:16px;
}
.h1{font-size:1.35rem;margin:0 0 10px}
.p{color:var(--muted);margin:0 0 14px;line-height:1.5}
.grid{display:grid;gap:12px}
.grid--2{grid-template-columns:1fr}
@media (min-width:820px){.grid--2{grid-template-columns:1fr 1fr}}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  gap:8px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  background:var(--card);
  text-decoration:none;
  font-weight:650;
  cursor:pointer;
}
.btn:hover{filter:brightness(.98)}
.btn--primary{
  background:var(--accent);
  color:white;
  border-color:rgba(0,0,0,0);
}
.btn--ghost{
  background:transparent;
}
input,select,textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background:var(--card);
  outline:none;
}
label{display:block;margin:10px 0 6px;color:var(--muted);font-size:.9rem}
form .row{display:grid;gap:12px}
@media (min-width:820px){form .row{grid-template-columns:1fr 1fr}}
.toast{
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px 14px;
  margin-bottom:12px;
  background: var(--card);
}
.toast--ok{border-color:rgba(34,197,94,.25)}
.toast--err{border-color:rgba(239,68,68,.25)}
.bottomnav{
  position:fixed;left:0;right:0;bottom:0;
  background:rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-top:1px solid var(--border);
  display:flex;justify-content:space-around;
  padding:10px 10px calc(10px + env(safe-area-inset-bottom));
  z-index:20;
}
.bottomnav__item{
  text-decoration:none;
  display:flex;flex-direction:column;align-items:center;gap:4px;
  font-size:.78rem;
  color:var(--muted);
  padding:6px 10px;
  border-radius:14px;
}
.bottomnav__item .icon{font-size:1.15rem;line-height:1}
.bottomnav__item.is-active{
  color:var(--text);
  background:rgba(37,99,235,.08);
}
table{width:100%;border-collapse:collapse}
th,td{padding:10px 8px;border-bottom:1px solid var(--border);text-align:left;font-size:.95rem}
th{color:var(--muted);font-weight:600}

.bottomnav__item--center{
  transform: translateY(-14px);
  background: var(--accent);
  color: #fff !important;
  border: 1px solid rgba(0,0,0,0);
  box-shadow: 0 18px 45px rgba(37,99,235,.22);
  padding: 10px 14px;
  border-radius: 18px;
  min-width: 92px;
}
.bottomnav__item--center .icon{font-size:1.25rem}
.bottomnav__item--center.is-active{
  background: var(--accent);
  color:#fff;
}


