:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --ink: #172033;
  --muted: #697386;
  --line: #e4e8f0;
  --brand: #5562df;
  --brand-soft: #edf0ff;
  --ok: #16805b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { width: min(760px, 100%); margin: 0 auto; padding: 18px 16px 44px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.eyebrow, .kicker { color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .06em; margin: 0 0 4px; text-transform: uppercase; }
h1 { font-size: 1.45rem; margin: 0; } h2 { font-size: 1.15rem; margin: 0 0 8px; } h3 { font-size: 1rem; margin: 0; }
.role-tabs { display: flex; gap: 8px; overflow-x: auto; margin: 0 -2px 16px; padding: 2px; }
.role-tabs button, .ghost { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 10px; padding: 9px 12px; white-space: nowrap; }
.role-tabs button.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.content { display: grid; gap: 12px; }
.panel, .card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.hero { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 13px; }
.avatar { align-items: center; background: var(--brand-soft); border-radius: 50%; color: var(--brand); display: flex; font-size: 1.05rem; font-weight: 800; height: 50px; justify-content: center; overflow: hidden; width: 50px; }
.avatar img { height: 100%; object-fit: cover; width: 100%; }
.muted { color: var(--muted); margin: 5px 0 0; }.notice,.error { border-radius: 12px; margin: 0 0 14px; padding: 11px 12px; }.notice { background: #fff7de; color: #785d00; }.error { background: #fff0f1; color: #a32a38; }.hidden { display: none; }
.status { color: var(--ok); font-weight: 700; }.grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }.metric { font-size: 1.4rem; font-weight: 800; margin-top: 8px; }
.section-nav { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }.section-nav button { background: var(--card); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); min-height: 54px; padding: 10px; text-align: left; }
.section-nav button.selected { background: var(--brand-soft); border-color: #c8cffd; }.list { display: grid; gap: 8px; }.list-item { align-items: center; border: 1px solid var(--line); border-radius: 12px; display: flex; gap: 10px; justify-content: space-between; padding: 11px; }.list-item p { margin: 3px 0 0; }
.table-wrap { overflow-x: auto; }.table { border-collapse: collapse; width: 100%; }.table th,.table td { border-bottom: 1px solid var(--line); font-size: .88rem; padding: 9px 6px; text-align: left; white-space: nowrap; }.table th { color: var(--muted); font-weight: 600; }
.form-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }.form-grid label { color: var(--muted); display: grid; font-size: .82rem; gap: 5px; }.form-grid input,.form-grid select,.form-grid textarea { background: #fff; border: 1px solid #cfd6e3; border-radius: 9px; color: var(--ink); min-height: 40px; padding: 8px 10px; }.wide { grid-column: 1 / -1; }
.primary, .secondary, .danger { border: 0; border-radius: 10px; min-height: 42px; padding: 9px 13px; }.primary { background: var(--brand); color: white; }.secondary { background: var(--brand-soft); color: #3445c7; }.danger { background: #fff0f1; color: #a32a38; }.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }.slot-list { display: flex; flex-wrap: wrap; gap: 7px; }.slot-list button { background: var(--brand-soft); border: 0; border-radius: 8px; color: #3445c7; padding: 8px 10px; }
@media (max-width: 460px) { .grid, .form-grid { grid-template-columns: 1fr; }.topbar { align-items: flex-start; }.ghost { font-size: .85rem; }.wide { grid-column: auto; } }
