/* ════════════════════════════════════════════════════════════════
   INICI · role-based dashboard. Brand tokens from colors_and_type.css
   ═══════════════════════════════════════════════════════════════ */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bp-grey-50); }
.hm-display { font-family: var(--bp-font-display); }

.hm-page { min-height: 100vh; background: var(--bp-grey-50); padding: 24px; display: flex; justify-content: center; }
.hm-shell { width: 100%; max-width: 1560px; background: var(--bp-white); border: 1px solid #E0DCD4;
  box-shadow: 0 24px 48px -16px rgba(20,14,6,0.18), 0 2px 6px rgba(20,14,6,0.06); position: relative; overflow: hidden; }

/* topbar */
.hm-top { background: var(--bp-red); color: #fff; display: flex; align-items: center; gap: 24px; padding: 13px 24px; }
.hm-top .brand { font-family: var(--bp-font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; white-space: nowrap; }
.hm-top nav { display: flex; gap: 20px; flex: 1; flex-wrap: wrap; }
.hm-top nav a { font-family: var(--bp-font-display); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.85); text-decoration: none; position: relative; cursor: pointer; }
.hm-top nav a:hover:not(.off) { color: #fff; }
.hm-top nav a.on { color: #fff; }
.hm-top nav a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -17px; height: 2px; background: #fff; }
.hm-top nav a.off { color: rgba(255,255,255,0.34); cursor: not-allowed; }
.hm-top nav a.off .lk { display: inline-flex; vertical-align: middle; margin-left: 4px; }
.hm-top nav a.off .lk svg { width: 11px; height: 11px; }

.hm-rolesel { appearance: none; background: rgba(255,255,255,0.16); color: #fff; border: 1px solid rgba(255,255,255,0.4); cursor: pointer;
  font-family: var(--bp-font-display); font-weight: 700; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; padding: 7px 30px 7px 12px; white-space: nowrap;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; }
.hm-rolesel option { color: var(--bp-ink); background: #fff; font-weight: 600; }
.hm-who { display: flex; align-items: center; gap: 9px; }
.hm-who .av { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.18); display: flex; align-items: center; justify-content: center; font-family: var(--bp-font-display); font-weight: 700; font-size: 12px; }
.hm-who .nm { font-family: var(--bp-font-display); font-weight: 700; font-size: 12px; white-space: nowrap; }

/* ── HERO band ── */
.hm-hero { display: flex; align-items: stretch; gap: 0; border-bottom: 1px solid var(--bp-grey-100); }
.hm-hero-main { flex: 1; padding: 26px; display: flex; flex-direction: column; justify-content: center; }
.hm-hero .eb { font-family: var(--bp-font-display); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bp-red); margin-bottom: 6px; }
.hm-hero h1 { font-family: var(--bp-font-display); font-weight: 700; font-size: 34px; letter-spacing: -0.025em; color: var(--bp-ink); margin: 0; line-height: 1; }
.hm-hero .sub { font-family: var(--bp-font-body); font-size: 14px; color: var(--bp-grey-700); margin-top: 10px; max-width: 620px; line-height: 1.45; }
.hm-hero .scope-pill { display: inline-flex; align-items: center; gap: 7px; font-family: var(--bp-font-display); font-weight: 700; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bp-grey-700); background: var(--bp-grey-50); border: 1px solid var(--bp-grey-200); padding: 5px 11px; border-radius: var(--bp-radius-pill); white-space: nowrap; margin-top: 14px; align-self: flex-start; }
.hm-hero .scope-pill svg { width: 12px; height: 12px; color: var(--bp-grey-500); }
.hm-hero .scope-pill.ro { color: #8A4A00; background: #FFF6E6; border-color: #E8C98A; }
.hm-hero .scope-pill.ro svg { color: #B85800; }
/* hero side: scenario + primary CTA */
.hm-hero-side { width: 320px; flex-shrink: 0; border-left: 1px solid var(--bp-grey-100); background: #FAFAF7; padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.hm-scn-label { font-family: var(--bp-font-display); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bp-grey-500); display: flex; align-items: center; gap: 6px; }
.hm-scn-label svg { width: 12px; height: 12px; color: var(--bp-red); }
.hm-scnsel { appearance: none; cursor: pointer; width: 100%; font-family: var(--bp-font-display); font-weight: 700; font-size: 13px; color: var(--bp-ink); background: #fff; border: 1.5px solid var(--bp-grey-200); padding: 11px 32px 11px 13px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231D1D1B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }

/* status pill (hero) */
.hm-status { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 6px; }
.hm-status svg { width: 20px; height: 20px; flex-shrink: 0; }
.hm-status .st { font-family: var(--bp-font-display); font-weight: 700; font-size: 13px; line-height: 1.2; }
.hm-status .sd { font-family: var(--bp-font-body); font-size: 11.5px; margin-top: 2px; line-height: 1.3; }
.hm-status.ok { background: #E6F4EA; color: #0E6B2E; }
.hm-status.warn { background: #FFF6E6; color: #8A4A00; }
.hm-status.crit { background: #FCE9E8; color: #B5302C; }

/* body */
.hm-body { padding: 24px 26px 34px; }
.hm-sec-h { display: flex; align-items: baseline; gap: 10px; font-family: var(--bp-font-display); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bp-grey-700); margin: 26px 0 13px; }
.hm-sec-h:first-child { margin-top: 0; }
.hm-sec-h .cnt { font-size: 11px; color: var(--bp-grey-400); letter-spacing: 0.04em; }
.hm-sec-h .seeall { margin-left: auto; font-family: var(--bp-font-display); font-weight: 700; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--bp-red); cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.hm-sec-h .seeall svg { width: 12px; height: 12px; }

/* two-column layout */
.hm-grid2 { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }

/* ── priority cards (denser, with inline lists) ── */
.hm-prio { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.hm-pcard { border: 1px solid var(--bp-grey-200); border-radius: 6px; background: #fff; box-shadow: 0 2px 6px rgba(20,14,6,0.05); overflow: hidden; display: flex; flex-direction: column; }
.hm-pcard.urgent { border-color: #E8B0AD; }
.hm-pcard-h { display: flex; align-items: center; gap: 12px; padding: 14px 16px 12px; }
.hm-pcard-h .ic { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hm-pcard-h .v { font-family: var(--bp-font-display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; color: var(--bp-ink); line-height: 1; }
.hm-pcard-h .lab { font-family: var(--bp-font-display); font-weight: 700; font-size: 13px; color: var(--bp-ink); }
.hm-pcard-h .lab small { display: block; font-family: var(--bp-font-body); font-weight: 400; font-size: 11px; color: var(--bp-grey-500); margin-top: 2px; }
.hm-pcard-list { padding: 0 16px; display: flex; flex-direction: column; }
.hm-pcard-li { display: flex; align-items: center; gap: 9px; padding: 9px 0; border-top: 1px solid var(--bp-grey-50); font-family: var(--bp-font-body); font-size: 12.5px; color: var(--bp-ink); }
.hm-pcard-li .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.hm-pcard-li .grow { flex: 1; min-width: 0; }
.hm-pcard-li .nm { font-family: var(--bp-font-display); font-weight: 700; font-size: 12.5px; color: var(--bp-ink); }
.hm-pcard-li .mt { font-size: 11px; color: var(--bp-grey-500); margin-top: 1px; }
.hm-pcard-li .tag { font-family: var(--bp-font-display); font-weight: 700; font-size: 10px; white-space: nowrap; }
.hm-pcard-li .tag.bad { color: var(--bp-red); } .hm-pcard-li .tag.warn { color: #B85800; }
.hm-pcard-foot { margin-top: auto; padding: 12px 16px; border-top: 1px solid var(--bp-grey-100); }

.hm-btn { font-family: var(--bp-font-display); font-weight: 700; font-size: 11.5px; letter-spacing: 0.03em; text-transform: uppercase; cursor: pointer; padding: 9px 14px; border-radius: var(--bp-radius-pill); border: 1.5px solid var(--bp-ink); background: #fff; color: var(--bp-ink); display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.hm-btn:hover { background: var(--bp-ink); color: #fff; }
.hm-btn svg { width: 14px; height: 14px; }
.hm-btn.primary { background: var(--bp-red); border-color: var(--bp-red); color: #fff; }
.hm-btn.primary:hover { filter: brightness(0.93); }
.hm-btn.lg { padding: 13px 20px; font-size: 13px; }
.hm-btn.block { width: 100%; justify-content: center; }
.hm-btn.disabled { border-color: var(--bp-grey-200); color: var(--bp-grey-400); background: #fff; cursor: not-allowed; pointer-events: none; }
.hm-btn.disabled .lk svg { width: 12px; height: 12px; }
.hm-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── activity feed (dense timeline) ── */
.hm-feed { display: flex; flex-direction: column; }
.hm-feed-item { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--bp-grey-50); }
.hm-feed-item:first-child { border-top: none; }
.hm-feed-item .ft { font-family: var(--bp-font-mono); font-size: 11px; color: var(--bp-grey-500); padding-top: 2px; }
.hm-feed-item .fc { font-family: var(--bp-font-body); font-size: 12.5px; color: var(--bp-ink); line-height: 1.45; }
.hm-feed-item .kind { display: inline-flex; align-items: center; gap: 5px; font-family: var(--bp-font-display); font-weight: 700; font-size: 9px; letter-spacing: 0.05em; text-transform: uppercase; padding: 2px 6px; border-radius: 3px; margin-right: 7px; vertical-align: middle; }
.kind-sub { background: #E2EEF6; color: #0F62A5; } .kind-alta { background: #E6F4EA; color: #0E6B2E; }
.kind-susp { background: #FCE9E8; color: #B5302C; } .kind-exc { background: #FFF2E0; color: #8A4A00; }
.kind-baixa { background: #F6E2E1; color: #7A1F1C; } .kind-recup { background: #EDE4FB; color: #5E2DC6; }

/* ── side rail ── */
.hm-side { display: flex; flex-direction: column; gap: 20px; }
.hm-panel { border: 1px solid var(--bp-grey-200); border-radius: 6px; background: #fff; overflow: hidden; }
.hm-panel-h { font-family: var(--bp-font-display); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bp-grey-700); padding: 12px 16px; border-bottom: 1px solid var(--bp-grey-100); background: #FAFAF7; }
.hm-statgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--bp-grey-100); }
.hm-stat { background: #fff; padding: 14px 16px; }
.hm-stat .v { font-family: var(--bp-font-display); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; color: var(--bp-ink); line-height: 1; }
.hm-stat .v.accent { color: var(--bp-red); }
.hm-stat .v small { font-size: 13px; }
.hm-stat .k { font-family: var(--bp-font-display); font-size: 9.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--bp-grey-500); margin-top: 5px; }
.hm-stat .delta { font-family: var(--bp-font-display); font-weight: 700; font-size: 10px; margin-top: 3px; }
.hm-stat .delta.up { color: #0E6B2E; } .hm-stat .delta.down { color: var(--bp-red); }
.hm-shortcuts { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.hm-shortcut { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border: 1px solid var(--bp-grey-100); border-radius: 5px; text-decoration: none; cursor: pointer; background: #fff; }
.hm-shortcut:hover { background: var(--bp-cream); border-color: var(--bp-grey-200); }
.hm-shortcut.off { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.hm-shortcut .si { width: 30px; height: 30px; border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--bp-grey-50); color: var(--bp-grey-700); }
.hm-shortcut .st { font-family: var(--bp-font-display); font-weight: 700; font-size: 13px; color: var(--bp-ink); }
.hm-shortcut .sd { font-family: var(--bp-font-body); font-size: 11px; color: var(--bp-grey-500); margin-top: 1px; }
.hm-shortcut .ar { margin-left: auto; color: var(--bp-grey-300); }
.hm-shortcut .ar svg { width: 15px; height: 15px; }
.hm-shortcut .lk svg { width: 13px; height: 13px; color: var(--bp-grey-400); margin-left: auto; }

/* ── list rows (sessions / now) ── */
.hm-list { display: flex; flex-direction: column; gap: 9px; }
.hm-row { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--bp-grey-100); border-radius: 6px; padding: 13px 16px; box-shadow: 0 1px 3px rgba(20,14,6,0.04); }
.hm-row .av { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--bp-font-display); font-weight: 700; font-size: 13px; flex-shrink: 0; }
.hm-row .time { font-family: var(--bp-font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; color: var(--bp-ink); width: 58px; flex-shrink: 0; }
.hm-row .time.now { color: var(--bp-red); }
.hm-row .datecol { width: 92px; flex-shrink: 0; }
.hm-row .datecol .dt { font-family: var(--bp-font-display); font-weight: 700; font-size: 11px; color: var(--bp-ink); line-height: 1.2; }
.hm-row .datecol .tm { font-family: var(--bp-font-mono); font-size: 12px; color: var(--bp-grey-500); margin-top: 2px; }
.hm-row .main { flex: 1; min-width: 0; }
.hm-row .main .t { font-family: var(--bp-font-display); font-weight: 700; font-size: 15px; color: var(--bp-ink); }
.hm-row .main .s { font-family: var(--bp-font-body); font-size: 12px; color: var(--bp-grey-700); margin-top: 2px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.hm-row .main .s svg { width: 12px; height: 12px; }
.hm-state { font-family: var(--bp-font-display); font-weight: 700; font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 9px; border-radius: 3px; white-space: nowrap; }
.hm-state.done { background: #E6F4EA; color: #0E6B2E; } .hm-state.now { background: var(--bp-red); color: #fff; } .hm-state.next { background: var(--bp-grey-50); color: var(--bp-grey-700); }
.hm-state.locked { background: var(--bp-grey-50); color: var(--bp-grey-500); display: inline-flex; align-items: center; gap: 5px; }
.hm-state.locked svg { width: 11px; height: 11px; }
.hm-catdot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.hm-code-pill { font-family: var(--bp-font-display); font-weight: 700; font-size: 10px; padding: 3px 8px; border-radius: 3px; }

/* search */
.hm-search { display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid var(--bp-grey-200); border-radius: var(--bp-radius-pill); padding: 0 16px; max-width: 520px; }
.hm-search svg { width: 17px; height: 17px; color: var(--bp-grey-500); }
.hm-search input { flex: 1; border: none; outline: none; background: none; font-family: var(--bp-font-body); font-size: 14px; color: var(--bp-ink); padding: 13px 0; }
.hm-stu-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--bp-grey-100); border-radius: 6px; padding: 12px 16px; }
.hm-stu-row .nm { font-family: var(--bp-font-display); font-weight: 700; font-size: 14px; color: var(--bp-ink); }
.hm-stu-row .meta { font-family: var(--bp-font-body); font-size: 12px; color: var(--bp-grey-500); margin-top: 2px; }

/* occupancy */
.hm-occ { display: flex; flex-direction: column; gap: 15px; max-width: 680px; }
.hm-occ-row { display: grid; grid-template-columns: 130px 1fr 96px; gap: 16px; align-items: center; }
.hm-occ-row .ol { font-family: var(--bp-font-display); font-weight: 700; font-size: 13px; color: var(--bp-ink); display: flex; align-items: center; gap: 8px; }
.hm-occ-track { height: 11px; background: var(--bp-grey-50); border-radius: 999px; overflow: hidden; position: relative; }
.hm-occ-fill { height: 100%; border-radius: 999px; }
.hm-occ-target { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--bp-ink); opacity: 0.45; }
.hm-occ-row .ov { font-family: var(--bp-font-display); font-weight: 700; font-size: 16px; color: var(--bp-ink); text-align: right; }
.hm-occ-row .ov.below { color: #B85800; }
.hm-occ-row .ov small { font-family: var(--bp-font-body); font-weight: 400; font-size: 11px; color: var(--bp-grey-500); display: block; }

/* big KPI strip */
.hm-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--bp-grey-100); border: 1px solid var(--bp-grey-100); border-radius: 6px; overflow: hidden; }
.hm-kpi { background: #fff; padding: 17px 18px; }
.hm-kpi .v { font-family: var(--bp-font-display); font-weight: 700; font-size: 28px; letter-spacing: -0.02em; color: var(--bp-ink); }
.hm-kpi .v.accent { color: var(--bp-red); }
.hm-kpi .v small { font-size: 16px; }
.hm-kpi .k { font-family: var(--bp-font-display); font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bp-grey-500); margin-top: 5px; }

/* empty state */
.hm-empty { border: 1.5px dashed var(--bp-grey-200); background: #FAFAF7; border-radius: 8px; padding: 46px 24px; text-align: center; }
.hm-empty.happy { border-color: #BFE3CC; background: #F2FAF4; }
.hm-empty .eico { width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.hm-empty.happy .eico { background: #DCEFE2; color: #0E6B2E; }
.hm-empty .et { font-family: var(--bp-font-display); font-weight: 700; font-size: 18px; color: var(--bp-ink); }
.hm-empty .ed { font-family: var(--bp-font-body); font-size: 13px; color: var(--bp-grey-700); margin-top: 6px; }

/* toast */
.hm-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 120; background: var(--bp-ink); color: #fff; display: flex; align-items: center; gap: 12px; padding: 13px 18px; box-shadow: 0 12px 30px rgba(0,0,0,0.3); }
.hm-toast svg { width: 18px; height: 18px; color: #6FDB96; flex-shrink: 0; }
.hm-toast .msg { font-family: var(--bp-font-display); font-weight: 700; font-size: 13px; }
.hm-toast .msg small { display: block; font-weight: 400; font-size: 11.5px; color: rgba(255,255,255,0.72); margin-top: 2px; font-family: var(--bp-font-body); }
