:root{
  --bg:#f7f7f8;
  --card:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --line:#e5e7eb;
  --shadow: 0 10px 30px rgba(0,0,0,.06);
  --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;
  background: var(--bg);
  color: var(--text);
}

.wrap{ max-width: 1100px; margin: 0 auto; padding: 18px; }

.top{
  position: sticky;
  top: 0;
  background: rgba(247,247,248,.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  z-index: 20;
}
.top__inner{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.brand{ display:flex; gap:12px; align-items:center; cursor:pointer; user-select:none; }
.dot{
  width:14px; height:14px; border-radius:999px;
  background: var(--text);
  box-shadow: 0 0 0 4px rgba(17,24,39,.08);
}
.brand__name{ font-weight: 800; letter-spacing: -.2px; }
.brand__tag{ font-size: 12px; color: var(--muted); margin-top: 2px; }

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

.btn{
  border:1px solid var(--line);
  background: var(--card);
  padding: 10px 14px;
  border-radius: 12px;
  cursor:pointer;
  transition: transform .08s ease, background .15s ease;
}
.btn:hover{ background:#f9fafb; }
.btn:active{ transform: scale(.98); }

.btn-primary{
  background: var(--text);
  color: white;
  border-color: var(--text);
}
.btn-primary:hover{ background:#0b1220; }

.pill{
  font-size:12px;
  padding: 6px 10px;
  border-radius: 999px;
  border:1px solid var(--line);
  background: var(--card);
  color: var(--muted);
}

.grid{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 14px;
  margin-top: 14px;
}
@media (max-width: 900px){
  .grid{ grid-template-columns:1fr; }
}

.card{
  background: var(--card);
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card-h{
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  display:flex; justify-content:space-between; align-items:flex-start; gap:10px;
}
.card-b{ padding: 14px 16px; }

.h1{ font-size: 28px; margin: 6px 0 6px; letter-spacing: -.6px; }
.h2{ font-size: 16px; margin: 0; }
.p{ margin: 0; color: var(--muted); line-height: 1.55; font-size: 14px; }

.input, .select, .textarea{
  width:100%;
  border:1px solid var(--line);
  background: #fff;
  padding: 10px 12px;
  border-radius: 12px;
}
.textarea{ min-height: 92px; resize: vertical; }

.row{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
@media (max-width: 650px){ .row{ grid-template-columns:1fr; } }

.list{ display:flex; flex-direction:column; gap:10px; }
.item{
  border:1px solid var(--line);
  background:#fff;
  border-radius: 14px;
  padding: 12px;
}
.item-h{ display:flex; justify-content:space-between; align-items:flex-start; gap:10px; }
.item-title{ font-weight: 800; }
.item-meta{ margin-top: 4px; color: var(--muted); font-size: 12px; }

.sep{ border:0; border-top:1px solid var(--line); margin: 12px 0; }

.tabs{ display:flex; gap:8px; flex-wrap:wrap; }
.tab{
  border:1px solid var(--line);
  background:#fff;
  padding:8px 10px;
  border-radius:999px;
  cursor:pointer;
  color: var(--muted);
  font-size: 13px;
}
.tab.active{ color: var(--text); border-color:#cbd5e1; background:#f9fafb; }

.modal{ position: fixed; inset: 0; z-index: 50; }
.modal__backdrop{ position:absolute; inset:0; background: rgba(17,24,39,.35); }
.modal__panel{
  position: absolute;
  inset: 22px;
  background:#fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow:hidden;
  display:flex;
  flex-direction: column;
}
.modal__bar{
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  display:flex; justify-content:space-between; align-items:center;
}
.modal__title{ font-weight: 800; }
.modal__frame{ border:0; width:100%; flex: 1; }

.hidden{ display:none !important; }

.small{ font-size:12px; color: var(--muted); }
.right{ text-align:right; }
