/* ════════════════════════════════════════════════════════════════
   QUADRANT GENERAL · UC-1B-05 · Stylesheet
   6 layouts germans (1 per rol) + estats + comparativa
   ═══════════════════════════════════════════════════════════════ */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: #F4F2EE;
  font-family: var(--bp-font-body);
  color: var(--bp-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page { max-width: 1480px; margin: 0 auto; padding: 64px 48px 120px; }

.page-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 32px;
  border-bottom: 1px solid var(--bp-red);
  padding-bottom: 24px;
  margin-bottom: 48px;
}
.page-head .logo {
  font-family: var(--bp-font-display); font-weight: 700; font-size: 28px;
  color: var(--bp-red); line-height: 1; letter-spacing: -0.01em;
}
.page-head .logo span { color: var(--bp-ink); }
.page-head .title {
  font-family: var(--bp-font-display); font-size: 14px;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--bp-ink); font-weight: 700; line-height: 1.4;
}
.page-head .meta {
  font-family: var(--bp-font-display); font-size: 13px;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--bp-grey-500); text-align: right; line-height: 1.5;
}
.page-intro {
  max-width: 880px; font-size: 17px; line-height: 1.55;
  color: var(--bp-grey-700); margin: -16px 0 64px;
}
.page-intro strong { color: var(--bp-ink); font-weight: 500; }

/* Section per screen */
.screen-section { margin-bottom: 88px; }
.screen-label { display: flex; align-items: baseline; gap: 16px; margin-bottom: 16px; }
.screen-label .num {
  font-family: var(--bp-font-display); font-weight: 700; font-size: 54px;
  color: var(--bp-ink); line-height: 1; letter-spacing: -0.02em;
}
.screen-label .role-tag {
  font-family: var(--bp-font-display); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--bp-cream); color: var(--bp-ink);
  padding: 4px 10px; font-weight: 700;
  margin-left: auto;
}
.screen-label .name {
  font-family: var(--bp-font-display); font-weight: 700; font-size: 22px;
  color: var(--bp-ink); line-height: 1.2;
}
.screen-label .sub {
  font-family: var(--bp-font-display); font-size: 13px;
  letter-spacing: 0.10em; text-transform: uppercase; color: var(--bp-grey-500);
  margin-top: 4px; font-weight: 700;
}

.desktop-frame {
  width: 100%; max-width: 1380px;
  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);
  overflow: hidden;
  margin-bottom: 24px;
}
.url-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: #F4F2EE;
  border-bottom: 1px solid #E0DCD4;
  font-size: 12px; color: var(--bp-grey-500);
  font-family: var(--bp-font-mono);
}
.url-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: #FF5F57; }
.url-bar .dot.b { background: #FEBC2E; }
.url-bar .dot.c { background: #28C840; }
.url-bar .url { margin-left: 8px; color: var(--bp-grey-700); }

.note { max-width: 920px; padding: 4px 0; }
.note h3 {
  font-family: var(--bp-font-display); font-size: 13px;
  letter-spacing: 0.10em; text-transform: uppercase; color: var(--bp-red);
  margin: 0 0 12px; font-weight: 700;
}
.note p { margin: 0 0 14px; font-size: 15px; line-height: 1.55; color: #3D3A33; }
.note ul { margin: 0 0 14px; padding: 0; list-style: none; }
.note ul li {
  position: relative; padding-left: 18px;
  font-size: 14.5px; line-height: 1.55; color: #3D3A33; margin-bottom: 6px;
}
.note ul li::before {
  content: ""; position: absolute; left: 0; top: 0.7em;
  width: 8px; height: 1px; background: var(--bp-red);
}

/* ═════════════════════════════════════════════════════════════
   APP CHROME (shared)
   ════════════════════════════════════════════════════════════ */
.app {
  font-family: var(--bp-font-body);
  color: var(--bp-ink);
  font-size: 14px;
}
.app button { font-family: inherit; cursor: pointer; }
.app * { box-sizing: border-box; }

.topbar {
  background: var(--bp-red); color: var(--bp-white);
  padding: 14px 28px; display: flex; align-items: center; gap: 28px;
  min-height: 60px;
}
.topbar .brand {
  font-family: var(--bp-font-display); font-weight: 700; font-size: 18px;
  letter-spacing: -0.01em;
}
.topbar .brand span { font-weight: 400; opacity: 0.8; }
.topbar nav { display: flex; gap: 24px; flex: 1; }
.topbar nav a {
  font-family: var(--bp-font-display); font-size: 12px;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--bp-white); font-weight: 700; opacity: 0.78;
  text-decoration: none; cursor: pointer;
}
.topbar nav a.on {
  opacity: 1; position: relative;
}
.topbar nav a.on::after {
  content: "";
  position: absolute; bottom: -18px; left: 0; right: 0;
  height: 2px; background: var(--bp-white);
}
.topbar .grow { flex: 1; }
.topbar .user-name {
  font-family: var(--bp-font-display); font-size: 12px;
  letter-spacing: 0.04em; font-weight: 700; opacity: 0.9;
}
.topbar .role-pill {
  font-family: var(--bp-font-display); font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(255,255,255,0.2); padding: 4px 10px;
  font-weight: 700;
}
.topbar .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bp-white); color: var(--bp-red);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--bp-font-display); font-weight: 700; font-size: 12px;
}

/* Page header bar */
.ph-bar {
  padding: 18px 28px;
  border-bottom: 1px solid var(--bp-grey-100);
  display: grid; grid-template-columns: 1fr auto;
  gap: 24px; align-items: center;
}
.ph-bar .eyebrow {
  font-family: var(--bp-font-display); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bp-red); font-weight: 700; margin-bottom: 4px;
}
.ph-bar h1 {
  font-family: var(--bp-font-display); font-weight: 700; font-size: 26px;
  letter-spacing: -0.01em; color: var(--bp-ink); margin: 0; line-height: 1.05;
}
.ph-bar .ph-meta {
  display: flex; gap: 24px;
}
.ph-bar .metric { text-align: left; }
.ph-bar .v {
  font-family: var(--bp-font-display); font-weight: 700; font-size: 22px;
  letter-spacing: -0.01em; color: var(--bp-ink); line-height: 1;
}
.ph-bar .v.alert { color: var(--bp-red); }
.ph-bar .l {
  font-family: var(--bp-font-display); font-size: 10px;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--bp-grey-500); margin-top: 4px; font-weight: 700;
}

/* Toolbar */
.toolbar {
  padding: 12px 28px;
  background: #FAFAF7;
  border-bottom: 1px solid var(--bp-grey-100);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.toolbar .group {
  display: flex; align-items: center; gap: 8px;
}
.toolbar .lbl {
  font-family: var(--bp-font-display); font-size: 10px;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--bp-grey-500); font-weight: 700;
}
.toolbar select {
  padding: 6px 10px;
  border: 1px solid var(--bp-grey-100);
  background: var(--bp-white);
  font-size: 12px; font-family: var(--bp-font-body);
  color: var(--bp-ink); cursor: pointer; min-height: 32px;
}
.toolbar .grow { flex: 1; }

.toolbar .seg {
  display: inline-flex;
  border: 1px solid var(--bp-grey-100);
  background: var(--bp-white);
}
.toolbar .seg button {
  padding: 6px 12px;
  font-family: var(--bp-font-display); font-size: 11px;
  letter-spacing: 0.04em; font-weight: 700;
  background: transparent; color: var(--bp-grey-700);
  border: none; cursor: pointer; min-height: 32px;
}
.toolbar .seg button.on {
  background: var(--bp-ink); color: var(--bp-white);
}

.chip {
  padding: 6px 12px;
  font-family: var(--bp-font-display); font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--bp-white); color: var(--bp-ink);
  border: 1px solid var(--bp-grey-100); border-radius: var(--bp-radius-pill);
  cursor: pointer; min-height: 32px;
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.chip.on { background: var(--bp-ink); color: var(--bp-white); border-color: var(--bp-ink); }
.chip.area-locked {
  background: var(--bp-red); color: var(--bp-white); border-color: var(--bp-red);
  cursor: not-allowed;
}
.chip .x { opacity: 0.6; }

.btn-primary {
  padding: 9px 16px;
  font-family: var(--bp-font-display); font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--bp-red); color: var(--bp-white);
  border: 1.5px solid var(--bp-red); border-radius: var(--bp-radius-pill);
  cursor: pointer; min-height: 36px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-primary.sm { padding: 6px 12px; font-size: 11px; min-height: 30px; }
.btn-primary.lg { padding: 14px 22px; font-size: 13px; min-height: 48px; }
.btn-primary.full { width: 100%; }
.btn-primary svg { width: 14px; height: 14px; }
.btn-ghost {
  padding: 9px 16px;
  font-family: var(--bp-font-display); font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--bp-white); color: var(--bp-ink);
  border: 1.5px solid var(--bp-ink); border-radius: var(--bp-radius-pill);
  cursor: pointer; min-height: 36px;
}
.btn-ghost.sm { padding: 6px 12px; font-size: 11px; min-height: 30px; }
.btn-text {
  background: transparent; border: none; color: var(--bp-grey-700);
  font-family: var(--bp-font-display); font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em; cursor: pointer; padding: 6px 0;
}
.btn-text:hover { color: var(--bp-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ═════════════════════════════════════════════════════════════
   CATEGORY COLORS (with shape glyphs for WCAG)
   ════════════════════════════════════════════════════════════ */
.cat-dot {
  display: inline-flex;
  width: 14px; height: 14px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 8px;
  font-weight: 700;
  font-family: var(--bp-font-display);
  color: var(--bp-white);
}
.cat-esports  { background: #2E5BBA; }
.cat-musica   { background: #1E7A3D; }
.cat-idiomes  { background: #B85800; }
.cat-culturals{ background: #5E2DC6; }
.cat-tech     { background: #0E7A85; }
.cat-manuals  { background: #8A4A00; }
.cat-pis      { background: #0F62A5; }

/* Block styles (each with shape "label" for accessibility) */
.cat-block {
  display: block;
  padding: 4px 6px;
  font-family: var(--bp-font-display);
  font-size: 11px; font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--bp-white);
  line-height: 1.15;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.cat-block.esports   { background: #2E5BBA; }
.cat-block.musica    { background: #1E7A3D; }
.cat-block.idiomes   { background: #B85800; }
.cat-block.culturals { background: #5E2DC6; }
.cat-block.tech      { background: #0E7A85; }
.cat-block.manuals   { background: #8A4A00; }
.cat-block.pis       { background: #0F62A5; }

.cat-block .meta {
  font-size: 9px;
  font-weight: 400;
  opacity: 0.85;
  letter-spacing: 0;
  font-family: var(--bp-font-body);
  margin-top: 2px;
}
.cat-block .glyph {
  position: absolute; top: 3px; right: 3px;
  font-size: 9px;
  opacity: 0.8;
}

/* Outlined / pending variant */
.cat-block.outline {
  background: var(--bp-white) !important;
  border: 1.5px solid currentColor;
}
.cat-block.outline.esports { color: #2E5BBA; }
.cat-block.outline.musica { color: #1E7A3D; }
.cat-block.outline.idiomes { color: #B85800; }
.cat-block.outline.culturals { color: #5E2DC6; }
.cat-block.outline.tech { color: #0E7A85; }
.cat-block.outline.manuals { color: #8A4A00; }
.cat-block.outline .meta { opacity: 0.7; color: inherit; }

/* ═════════════════════════════════════════════════════════════
   VIEW 1 — WEEKLY GRID (Anna)
   ════════════════════════════════════════════════════════════ */
.layout-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  min-height: 720px;
}
.grid-main { padding: 0; }
.grid-side {
  background: #FAFAF7;
  border-left: 1px solid var(--bp-grey-100);
  padding: 24px 22px;
}

/* Weekly grid */
.cal {
  display: grid;
  grid-template-columns: 56px repeat(5, 1fr);
  background: var(--bp-grey-100);
  gap: 1px;
}
.cal-h {
  background: var(--bp-cream);
  padding: 12px 8px;
  text-align: center;
  font-family: var(--bp-font-display);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--bp-ink);
}
.cal-h.today {
  background: var(--bp-ink);
  color: var(--bp-white);
}
.cal-h .d { font-size: 10px; letter-spacing: 0.10em; text-transform: uppercase; color: var(--bp-grey-500); }
.cal-h.today .d { color: rgba(255,255,255,0.7); }
.cal-h .n { font-size: 18px; letter-spacing: -0.01em; line-height: 1.2; margin-top: 2px; }
.cal-h:first-child { background: var(--bp-cream); padding: 8px 4px; }
.cal-time {
  background: var(--bp-white);
  padding: 4px 6px;
  font-family: var(--bp-font-display);
  font-size: 10px;
  color: var(--bp-grey-500);
  text-align: right;
  letter-spacing: 0.02em;
  font-weight: 700;
}
.cal-time.half {
  font-size: 9px;
  color: var(--bp-grey-200);
}
.cal-cell {
  background: var(--bp-white);
  min-height: 28px;
  padding: 1px;
  position: relative;
}
.cal-cell:hover { background: #FAFAF7; }
.cal-cell .cat-block {
  margin: 0;
  height: 100%;
  min-height: 26px;
  border-radius: 1px;
}
.cal-cell.span-2 .cat-block { min-height: 56px; }
.cal-cell.span-3 .cat-block { min-height: 86px; }
.cal-cell.span-4 .cat-block { min-height: 116px; }
.cal-cell.conflict::after {
  content: "!";
  position: absolute;
  top: 2px; left: 2px;
  background: var(--bp-red);
  color: var(--bp-white);
  font-family: var(--bp-font-display);
  font-weight: 700;
  font-size: 9px;
  width: 14px; height: 14px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  z-index: 2;
}

/* Side panel content */
.side-section { margin-bottom: 28px; }
.side-h {
  font-family: var(--bp-font-display); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bp-grey-700); font-weight: 700; margin-bottom: 12px;
}
.legend-row {
  display: grid; grid-template-columns: 18px 1fr auto;
  gap: 10px; align-items: center;
  padding: 6px 0;
  font-size: 12px;
}
.legend-row .name {
  font-family: var(--bp-font-display); font-weight: 700;
  color: var(--bp-ink);
}
.legend-row .n {
  font-family: var(--bp-font-mono); font-size: 11px;
  color: var(--bp-grey-700);
}

.side-kpi {
  background: var(--bp-white);
  padding: 14px;
  margin-bottom: 8px;
  display: grid; grid-template-columns: 1fr auto;
  gap: 10px; align-items: baseline;
}
.side-kpi .k {
  font-family: var(--bp-font-display); font-size: 10px;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--bp-grey-700); font-weight: 700;
}
.side-kpi .v {
  font-family: var(--bp-font-display); font-weight: 700;
  font-size: 22px; letter-spacing: -0.01em; color: var(--bp-ink); line-height: 1;
}
.side-kpi .v small { font-size: 11px; color: var(--bp-grey-500); font-weight: 400; }
.side-kpi .v.alert { color: var(--bp-red); }

/* ═════════════════════════════════════════════════════════════
   VIEW 2 — BY SPACE (same grid, different axes)
   ════════════════════════════════════════════════════════════ */
.cal.by-space {
  grid-template-columns: 56px repeat(6, 1fr);
}
.cal-h.space-h {
  background: #F4F2EE;
  text-align: left;
  padding: 10px 10px 12px;
}
.cal-h.space-h .name {
  font-family: var(--bp-font-display); font-weight: 700; font-size: 13px;
  letter-spacing: -0.005em; color: var(--bp-ink);
  display: block; line-height: 1.1;
}
.cal-h.space-h .cap {
  display: block;
  font-family: var(--bp-font-display); font-size: 9px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--bp-grey-500); margin-top: 3px; font-weight: 700;
}

/* Day band header inside by-space view */
.day-band {
  padding: 10px 28px;
  background: #FAFAF7;
  border-bottom: 1px solid var(--bp-grey-100);
  display: flex; align-items: center; gap: 14px;
}
.day-band .seg {
  display: inline-flex;
  border: 1px solid var(--bp-grey-100);
  background: var(--bp-white);
}
.day-band .seg button {
  padding: 6px 12px;
  font-family: var(--bp-font-display); font-size: 11px;
  font-weight: 700; letter-spacing: 0.04em;
  background: transparent; color: var(--bp-grey-700);
  border: none; cursor: pointer; min-height: 32px;
}
.day-band .seg button.on {
  background: var(--bp-ink); color: var(--bp-white);
}
.day-band .label {
  font-family: var(--bp-font-display); font-size: 11px;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--bp-grey-500); font-weight: 700;
}
.day-band h2 {
  font-family: var(--bp-font-display); font-weight: 700;
  font-size: 16px; color: var(--bp-ink); margin: 0;
}

/* ═════════════════════════════════════════════════════════════
   VIEW 3 — SESSION DETAIL MODAL
   ════════════════════════════════════════════════════════════ */
.modal-stage {
  position: relative; min-height: 760px;
}
.modal-bg-blur { filter: brightness(0.65) saturate(0.85); pointer-events: none; }
.modal-scrim { position: absolute; inset: 0; background: rgba(0,0,0,0.45); pointer-events: none; }
.modal-card {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 720px; max-width: 92%;
  background: var(--bp-white);
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
  max-height: 90%;
  display: flex; flex-direction: column;
}
.modal-head {
  padding: 22px 28px 18px;
  border-bottom: 1px solid var(--bp-grey-100);
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 16px; align-items: start;
}
.modal-cat-stripe {
  width: 6px; height: 60px;
  align-self: stretch;
}
.modal-head .eyebrow {
  font-family: var(--bp-font-display); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bp-grey-500); font-weight: 700; margin-bottom: 6px;
  display: flex; align-items: center; gap: 6px;
}
.modal-head .eyebrow .cat-tag {
  background: var(--bp-cream);
  padding: 2px 8px;
  font-size: 10px;
  letter-spacing: 0.08em;
}
.modal-head h2 {
  font-family: var(--bp-font-display); font-weight: 700; font-size: 24px;
  letter-spacing: -0.01em; color: var(--bp-ink); line-height: 1.1; margin: 0;
}
.modal-x {
  width: 36px; height: 36px;
  background: transparent; border: none;
  color: var(--bp-grey-500); cursor: pointer;
}
.modal-x svg { width: 18px; height: 18px; }

.modal-body { padding: 0; display: flex; flex-direction: column; flex: 1; overflow: hidden; }
.modal-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--bp-grey-100);
}
.modal-meta .m {
  padding: 14px 18px;
  border-right: 1px solid var(--bp-grey-100);
}
.modal-meta .m:last-child { border-right: none; }
.modal-meta .k {
  font-family: var(--bp-font-display); font-size: 10px;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--bp-grey-500); font-weight: 700; margin-bottom: 4px;
}
.modal-meta .v {
  font-family: var(--bp-font-display); font-weight: 700;
  font-size: 14px; color: var(--bp-ink); letter-spacing: -0.005em;
  line-height: 1.2;
}
.modal-meta .v small { font-size: 11px; color: var(--bp-grey-500); font-weight: 400; }
.modal-meta .contact {
  display: inline-flex; gap: 6px; align-items: center;
  margin-top: 4px;
  font-size: 11px;
  color: var(--bp-red);
  font-family: var(--bp-font-display); font-weight: 700;
}
.modal-meta .contact svg { width: 12px; height: 12px; }

.modal-students {
  padding: 18px 28px;
  flex: 1;
  overflow-y: auto;
}
.modal-students-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 12px;
}
.modal-students-head .h {
  font-family: var(--bp-font-display); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bp-grey-700); font-weight: 700;
}
.modal-students-head .n {
  font-family: var(--bp-font-display); font-size: 13px;
  color: var(--bp-ink); font-weight: 700;
}
.stu-list {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.stu-row {
  display: grid; grid-template-columns: 28px 1fr;
  gap: 8px; align-items: center;
  padding: 6px 8px;
  background: #FAFAF7;
  font-size: 13px;
}
.stu-row .course {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 2px 6px;
  font-family: var(--bp-font-display); font-weight: 700;
  font-size: 10px; color: var(--bp-grey-700);
  background: var(--bp-grey-100);
  min-width: 24px;
  border-radius: 2px;
}
.stu-row .name {
  font-family: var(--bp-font-display); font-weight: 700;
  font-size: 12px; color: var(--bp-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.stu-row .allergy {
  background: #FFF2E0;
  color: #8A4A00;
  border-radius: 50%;
  width: 16px; height: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

.modal-foot {
  padding: 18px 28px;
  border-top: 1px solid var(--bp-grey-100);
  background: #FAFAF7;
  display: flex; gap: 12px; justify-content: flex-end;
}

/* ═════════════════════════════════════════════════════════════
   VIEW 4 — Coordinator d'àrea (banner)
   ════════════════════════════════════════════════════════════ */
.area-banner {
  background: #FFF2E0;
  border-bottom: 1px solid #E89F00;
  padding: 12px 28px;
  display: flex; gap: 14px; align-items: center;
}
.area-banner svg { color: #8A4A00; width: 18px; height: 18px; }
.area-banner .t {
  font-family: var(--bp-font-display); font-size: 12px;
  color: #8A4A00; font-weight: 700;
  letter-spacing: 0.04em;
}
.area-banner .t strong { color: #5C3000; }
.area-banner .grow { flex: 1; }
.area-banner .help {
  font-family: var(--bp-font-display); font-size: 11px;
  color: #8A4A00; cursor: pointer;
  letter-spacing: 0.04em;
}

/* ═════════════════════════════════════════════════════════════
   VIEW 5 — Monitor calendar
   ════════════════════════════════════════════════════════════ */
.monitor-stage {
  display: grid;
  grid-template-columns: 1fr 360px;
  min-height: 720px;
}
.monitor-main {
  padding: 32px 40px;
}
.monitor-greet { margin-bottom: 28px; }
.monitor-greet .eyebrow {
  font-family: var(--bp-font-display); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bp-red); font-weight: 700; margin-bottom: 6px;
}
.monitor-greet h1 {
  font-family: var(--bp-font-display); font-weight: 700;
  font-size: 32px; letter-spacing: -0.015em;
  color: var(--bp-ink); margin: 0; line-height: 1;
}
.monitor-greet .sub {
  font-size: 14px; color: var(--bp-grey-700);
  margin-top: 8px; line-height: 1.5;
}
.monitor-greet .sub strong { color: var(--bp-ink); }

.monitor-today-h {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--bp-grey-100);
}
.monitor-today-h .h {
  font-family: var(--bp-font-display); font-weight: 700;
  font-size: 18px; letter-spacing: -0.005em; color: var(--bp-ink);
}
.monitor-today-h .meta {
  font-family: var(--bp-font-display); font-size: 11px;
  letter-spacing: 0.08em; color: var(--bp-grey-500);
  font-weight: 700;
}

.session-card {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 20px; align-items: stretch;
  background: var(--bp-white);
  border: 1px solid var(--bp-grey-100);
  border-left: 4px solid var(--bp-grey-100);
  margin-bottom: 12px;
  padding: 16px 20px;
}
.session-card.now { border-left-color: var(--bp-red); background: #FFF7F6; }
.session-card.done { border-left-color: #0E6B2E; opacity: 0.75; }
.session-card.upcoming { border-left-color: #2E5BBA; }

.session-card .time-block {
  display: flex; flex-direction: column;
  justify-content: center;
  padding-right: 16px;
  border-right: 1px solid var(--bp-grey-100);
}
.session-card .time-block .start {
  font-family: var(--bp-font-display); font-weight: 700;
  font-size: 28px; letter-spacing: -0.02em; color: var(--bp-ink); line-height: 1;
}
.session-card .time-block .end {
  font-family: var(--bp-font-display); font-size: 11px;
  letter-spacing: 0.08em; color: var(--bp-grey-500);
  font-weight: 700; margin-top: 6px;
}
.session-card.now .time-block .start { color: var(--bp-red); }

.session-card .info {
  display: flex; flex-direction: column; justify-content: center;
}
.session-card .info .activity {
  font-family: var(--bp-font-display); font-weight: 700;
  font-size: 18px; letter-spacing: -0.005em; color: var(--bp-ink);
  line-height: 1.15;
  display: flex; align-items: center; gap: 8px;
}
.session-card .info .meta {
  display: flex; gap: 12px;
  font-size: 12px; color: var(--bp-grey-700);
  margin-top: 6px; align-items: center;
}
.session-card .info .meta svg { width: 12px; height: 12px; vertical-align: -2px; margin-right: 3px; }
.session-card .status {
  display: flex; flex-direction: column;
  justify-content: center; align-items: flex-end;
  gap: 8px;
}
.session-card .status .count {
  font-family: var(--bp-font-display); font-weight: 700;
  font-size: 20px; letter-spacing: -0.01em; color: var(--bp-ink);
  line-height: 1;
}
.session-card .status .count small {
  font-size: 11px; color: var(--bp-grey-500); font-weight: 400;
}
.session-card .status .lbl {
  font-family: var(--bp-font-display); font-size: 9px;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--bp-grey-500); font-weight: 700;
}

.monitor-side {
  background: #FAFAF7;
  border-left: 1px solid var(--bp-grey-100);
  padding: 32px 24px;
}
.mini-week {
  display: grid;
  grid-template-columns: 38px repeat(5, 1fr);
  background: var(--bp-grey-100);
  gap: 1px;
  margin-top: 14px;
}
.mw-h {
  background: var(--bp-white);
  padding: 8px 4px;
  text-align: center;
  font-family: var(--bp-font-display);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--bp-grey-700);
  text-transform: uppercase;
}
.mw-h.today { background: var(--bp-ink); color: var(--bp-white); }
.mw-t {
  background: var(--bp-white);
  padding: 4px;
  font-family: var(--bp-font-display);
  font-size: 9px;
  color: var(--bp-grey-500);
  text-align: center;
  font-weight: 700;
}
.mw-c {
  background: var(--bp-white);
  min-height: 28px;
  padding: 1px;
}
.mw-c .cat-block {
  height: 100%; min-height: 26px;
  padding: 2px 4px;
  font-size: 9px;
  line-height: 1.1;
}

/* ═════════════════════════════════════════════════════════════
   VIEW 6 — Tutor de classe
   ════════════════════════════════════════════════════════════ */
.tutor-main { padding: 28px 32px; }
.tutor-table {
  display: grid;
  grid-template-columns: 200px 80px repeat(4, 1fr);
  background: var(--bp-grey-100);
  gap: 1px;
  margin-top: 20px;
}
.tt-h {
  background: var(--bp-cream);
  padding: 12px 14px;
  font-family: var(--bp-font-display);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bp-ink);
  font-weight: 700;
}
.tt-cell {
  background: var(--bp-white);
  padding: 10px 14px;
  font-size: 13px;
  min-height: 56px;
  display: flex; flex-direction: column; justify-content: center;
}
.tt-cell.student {
  font-family: var(--bp-font-display);
  font-weight: 700; font-size: 14px;
  color: var(--bp-ink);
}
.tt-cell.student .sub {
  font-size: 11px; color: var(--bp-grey-500);
  font-weight: 400; margin-top: 2px;
  letter-spacing: 0.02em;
}
.tt-cell.empty {
  color: var(--bp-grey-500);
  font-size: 12px;
  font-family: var(--bp-font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tt-cell.with-activity {
  background: #FAFAF7;
}
.tt-cell.with-activity .a {
  font-family: var(--bp-font-display); font-weight: 700;
  font-size: 13px; color: var(--bp-ink); line-height: 1.2;
  display: flex; align-items: center; gap: 5px;
}
.tt-cell.with-activity .where {
  font-size: 11px; color: var(--bp-grey-700);
  margin-top: 3px;
}
.tt-cell.with-activity .now-mark {
  display: inline-block;
  background: var(--bp-red); color: var(--bp-white);
  font-family: var(--bp-font-display); font-weight: 700;
  font-size: 8px; letter-spacing: 0.08em;
  padding: 2px 5px;
  margin-top: 4px;
  text-transform: uppercase;
}
.tt-cell.checkout {
  background: #F4F2EE;
  font-size: 11px;
  color: var(--bp-grey-700);
}
.tt-cell.checkout .ic {
  display: flex; align-items: center; gap: 4px;
  font-family: var(--bp-font-display); font-weight: 700;
}
.tt-cell.checkout .ic svg { width: 11px; height: 11px; }

/* ═════════════════════════════════════════════════════════════
   VIEW 7 + 8 — Secretaria
   ════════════════════════════════════════════════════════════ */
.search-stage {
  padding: 64px 60px;
  min-height: 720px;
  display: flex; flex-direction: column;
  background: var(--bp-cream);
}
.search-stage.with-result {
  padding: 28px 40px;
  background: var(--bp-white);
}

.search-big-wrap {
  max-width: 720px;
  margin: 80px auto 0;
  text-align: center;
}
.search-big-wrap h2 {
  font-family: var(--bp-font-display); font-weight: 700;
  font-size: 36px; letter-spacing: -0.02em;
  color: var(--bp-ink); margin: 0 0 12px; line-height: 1.05;
}
.search-big-wrap .sub {
  font-size: 16px; color: var(--bp-grey-700);
  margin-bottom: 32px; line-height: 1.5;
}
.search-big {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}
.search-big svg {
  position: absolute;
  left: 22px; top: 50%;
  transform: translateY(-50%);
  width: 22px; height: 22px;
  color: var(--bp-grey-500);
}
.search-big input {
  width: 100%;
  padding: 22px 22px 22px 60px;
  border: 2px solid var(--bp-ink);
  background: var(--bp-white);
  font-size: 18px;
  font-family: var(--bp-font-display); font-weight: 700;
  color: var(--bp-ink);
  outline: none;
  letter-spacing: -0.005em;
}
.search-big input::placeholder { color: var(--bp-grey-500); font-weight: 400; font-family: var(--bp-font-body); }

.search-hints {
  margin-top: 24px;
  display: flex; gap: 24px;
  justify-content: center;
  font-size: 13px;
  color: var(--bp-grey-700);
}
.search-hints .h-item {
  display: flex; align-items: center; gap: 8px;
}
.search-hints .kbd {
  padding: 2px 8px;
  background: var(--bp-white);
  border: 1px solid var(--bp-grey-200);
  font-family: var(--bp-font-mono);
  font-size: 11px;
  color: var(--bp-ink);
}

.quick-access {
  max-width: 720px;
  margin: 64px auto 0;
}
.qa-h {
  font-family: var(--bp-font-display); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bp-grey-500); font-weight: 700;
  text-align: center; margin-bottom: 16px;
}
.qa-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.qa-card {
  padding: 18px;
  background: var(--bp-white);
  border: 1px solid var(--bp-grey-100);
  text-align: left;
  cursor: pointer;
  transition: border-color 100ms;
}
.qa-card:hover { border-color: var(--bp-ink); }
.qa-card .ic {
  width: 36px; height: 36px;
  background: var(--bp-cream); color: var(--bp-red);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}
.qa-card .ic svg { width: 18px; height: 18px; }
.qa-card .n {
  font-family: var(--bp-font-display); font-weight: 700;
  font-size: 14px; color: var(--bp-ink); letter-spacing: -0.005em;
}
.qa-card .d {
  font-size: 12px; color: var(--bp-grey-700);
  margin-top: 4px; line-height: 1.4;
}

/* Result view */
.search-top {
  display: flex; gap: 16px; align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--bp-grey-100);
  margin-bottom: 24px;
}
.search-top .search-mini {
  flex: 1; position: relative;
  max-width: 480px;
}
.search-top .search-mini svg {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--bp-grey-500);
}
.search-top .search-mini input {
  width: 100%;
  padding: 10px 14px 10px 42px;
  border: 1.5px solid var(--bp-ink);
  background: var(--bp-white);
  font-size: 14px;
  font-family: var(--bp-font-display); font-weight: 700;
  color: var(--bp-ink);
  outline: none;
  min-height: 44px;
}
.search-top .result-count {
  font-family: var(--bp-font-display); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--bp-grey-500); font-weight: 700;
}

.result-card {
  background: var(--bp-white);
  border: 1px solid var(--bp-grey-100);
  margin-bottom: 16px;
  overflow: hidden;
}
.result-head {
  padding: 20px 24px;
  display: grid; grid-template-columns: 56px 1fr auto;
  gap: 16px; align-items: center;
}
.result-head .av {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bp-cream); color: var(--bp-ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--bp-font-display); font-weight: 700;
  font-size: 20px;
}
.result-head .name {
  font-family: var(--bp-font-display); font-weight: 700;
  font-size: 22px; letter-spacing: -0.01em;
  color: var(--bp-ink); line-height: 1.1;
}
.result-head .meta {
  font-size: 13px; color: var(--bp-grey-700);
  margin-top: 4px;
}
.result-head .ref {
  font-family: var(--bp-font-mono);
  font-size: 11px;
  color: var(--bp-grey-500);
  text-align: right;
}

.now-block {
  padding: 20px 24px;
  background: #FFF7F6;
  border-top: 3px solid var(--bp-red);
}
.now-block .lbl {
  font-family: var(--bp-font-display); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bp-red); font-weight: 700; margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.now-block .lbl .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--bp-red);
}
.now-block .grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px; align-items: center;
}
.now-block .activity {
  font-family: var(--bp-font-display); font-weight: 700;
  font-size: 20px; letter-spacing: -0.01em;
  color: var(--bp-ink); line-height: 1.1;
  display: flex; align-items: center; gap: 10px;
}
.now-block .activity .cat-tag {
  font-family: var(--bp-font-display); font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 700;
  padding: 3px 8px;
  background: var(--bp-cream); color: var(--bp-ink);
}
.now-block .where { font-size: 14px; color: var(--bp-ink); margin-top: 6px; }
.now-block .where strong { font-family: var(--bp-font-display); font-weight: 700; }
.now-block .time-info {
  text-align: right;
}
.now-block .time-info .time {
  font-family: var(--bp-font-display); font-weight: 700;
  font-size: 18px; letter-spacing: -0.005em; color: var(--bp-ink);
}
.now-block .time-info .lbl-s {
  font-family: var(--bp-font-display); font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--bp-grey-500); font-weight: 700; margin-top: 3px;
}
.now-block .contact-block {
  padding: 12px 16px;
  background: var(--bp-white);
  border: 1.5px solid var(--bp-ink);
}
.now-block .contact-block .k {
  font-family: var(--bp-font-display); font-size: 10px;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--bp-grey-500); font-weight: 700;
}
.now-block .contact-block .v {
  font-family: var(--bp-font-display); font-weight: 700;
  font-size: 14px; color: var(--bp-ink); margin-top: 4px;
  display: flex; align-items: center; gap: 6px;
}
.now-block .contact-block .phone {
  font-family: var(--bp-font-mono);
  font-size: 13px;
  color: var(--bp-red);
  margin-top: 4px;
}

.rest-of-day {
  padding: 18px 24px;
}
.rest-of-day .h {
  font-family: var(--bp-font-display); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bp-grey-700); font-weight: 700; margin-bottom: 10px;
}
.rest-row {
  display: grid;
  grid-template-columns: 80px 1fr 100px 80px;
  gap: 16px; align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--bp-grey-100);
  font-size: 13px;
}
.rest-row:last-child { border-bottom: none; }
.rest-row.passed { opacity: 0.55; }
.rest-row.passed .time { text-decoration: line-through; }
.rest-row .time {
  font-family: var(--bp-font-display); font-weight: 700;
  color: var(--bp-ink); letter-spacing: 0.02em;
}
.rest-row .activity {
  font-family: var(--bp-font-display); font-weight: 700;
  color: var(--bp-ink); display: flex; align-items: center; gap: 6px;
}
.rest-row .where { color: var(--bp-grey-700); font-size: 12px; }
.rest-row .state {
  font-family: var(--bp-font-display); font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 700;
}
.rest-row .state.ok { color: #0E6B2E; }
.rest-row .state.upcoming { color: var(--bp-grey-700); }
.rest-row .state.passed { color: var(--bp-grey-500); }

.result-actions {
  padding: 16px 24px;
  border-top: 1px solid var(--bp-grey-100);
  background: #FAFAF7;
  display: flex; gap: 10px;
  justify-content: flex-end;
}

/* ═════════════════════════════════════════════════════════════
   VIEW 9 — Direcció KPIs
   ════════════════════════════════════════════════════════════ */
.dir-main { padding: 32px 40px; min-height: 720px; }
.dir-h {
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: 28px;
}
.dir-h .eyebrow {
  font-family: var(--bp-font-display); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bp-red); font-weight: 700; margin-bottom: 6px;
}
.dir-h h1 {
  font-family: var(--bp-font-display); font-weight: 700;
  font-size: 36px; letter-spacing: -0.02em;
  color: var(--bp-ink); margin: 0; line-height: 1;
}
.dir-h .sub {
  font-size: 14px; color: var(--bp-grey-700); margin-top: 8px;
}
.dir-h select {
  padding: 8px 14px;
  border: 1px solid var(--bp-grey-100);
  background: var(--bp-white);
  font-size: 13px; font-family: var(--bp-font-body);
  cursor: pointer;
}

.dir-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.kpi-card {
  background: var(--bp-white);
  border: 1px solid var(--bp-grey-100);
  padding: 22px 24px;
}
.kpi-card .v {
  font-family: var(--bp-font-display); font-weight: 700;
  font-size: 48px; letter-spacing: -0.02em; color: var(--bp-ink);
  line-height: 1;
}
.kpi-card .v .unit {
  font-size: 20px; color: var(--bp-grey-500); font-weight: 400; letter-spacing: 0;
}
.kpi-card .v.ok { color: #0E6B2E; }
.kpi-card .v.warn { color: #8A4A00; }
.kpi-card .k {
  font-family: var(--bp-font-display); font-size: 11px;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--bp-grey-500); font-weight: 700; margin-top: 12px;
}
.kpi-card .delta {
  font-family: var(--bp-font-display); font-size: 11px;
  font-weight: 700; margin-top: 8px;
  display: flex; align-items: center; gap: 4px;
}
.kpi-card .delta.up { color: #0E6B2E; }
.kpi-card .delta.down { color: var(--bp-red); }

.dir-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.dir-card {
  background: var(--bp-white);
  border: 1px solid var(--bp-grey-100);
  padding: 20px 24px;
}
.dir-card .h {
  font-family: var(--bp-font-display); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bp-grey-700); font-weight: 700; margin-bottom: 16px;
}
.bar-list { display: flex; flex-direction: column; gap: 10px; }
.bar-row {
  display: grid;
  grid-template-columns: 100px 1fr 60px;
  gap: 12px; align-items: center;
  font-size: 13px;
}
.bar-row .cat-name {
  font-family: var(--bp-font-display); font-weight: 700;
  font-size: 13px; color: var(--bp-ink);
  display: flex; align-items: center; gap: 6px;
}
.bar-track {
  height: 18px;
  background: var(--bp-grey-50);
  position: relative;
}
.bar-fill {
  position: absolute; top: 0; left: 0; height: 100%;
}
.bar-fill.esports { background: #2E5BBA; }
.bar-fill.musica { background: #1E7A3D; }
.bar-fill.idiomes { background: #B85800; }
.bar-fill.culturals { background: #5E2DC6; }
.bar-fill.tech { background: #0E7A85; }
.bar-fill.manuals { background: #8A4A00; }
.bar-row .n {
  font-family: var(--bp-font-display); font-weight: 700;
  font-size: 14px; color: var(--bp-ink);
  text-align: right;
}
.bar-row .n small { color: var(--bp-grey-500); font-weight: 400; font-size: 11px; }

/* Mini line chart (SVG-based) */
.minichart {
  height: 120px;
  background: #FAFAF7;
  padding: 8px 4px;
  display: block;
}
.minichart svg { width: 100%; height: 100%; }

.top-list { display: flex; flex-direction: column; gap: 0; }
.top-row {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 12px; align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--bp-grey-100);
  font-size: 13px;
}
.top-row:last-child { border-bottom: none; }
.top-row .rank {
  font-family: var(--bp-font-display); font-weight: 700;
  font-size: 16px; color: var(--bp-grey-500);
  letter-spacing: -0.01em;
}
.top-row .name {
  font-family: var(--bp-font-display); font-weight: 700;
  font-size: 13px; color: var(--bp-ink);
  display: flex; align-items: center; gap: 6px;
}
.top-row .occ {
  font-family: var(--bp-font-display); font-weight: 700;
  font-size: 14px; color: var(--bp-ink);
}
.top-row .occ.full { color: var(--bp-red); }
.top-row .occ.low { color: #8A4A00; }
.top-row .occ small { color: var(--bp-grey-500); font-weight: 400; font-size: 11px; }

/* ═════════════════════════════════════════════════════════════
   VIEW 10 — Empty state
   ════════════════════════════════════════════════════════════ */
.empty-stage {
  position: relative;
  min-height: 600px;
}
.empty-grid-bg {
  opacity: 0.4;
  pointer-events: none;
}
.empty-overlay {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bp-white);
  border: 1px solid var(--bp-grey-100);
  padding: 36px 44px;
  text-align: center;
  max-width: 480px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.empty-overlay .ic {
  width: 56px; height: 56px;
  margin: 0 auto 20px;
  background: var(--bp-cream); color: var(--bp-red);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.empty-overlay .ic svg { width: 28px; height: 28px; }
.empty-overlay h2 {
  font-family: var(--bp-font-display); font-weight: 700;
  font-size: 22px; letter-spacing: -0.01em;
  color: var(--bp-ink); margin: 0 0 8px; line-height: 1.15;
}
.empty-overlay p {
  font-size: 14px; color: var(--bp-grey-700);
  line-height: 1.5; margin: 0 0 20px;
}
.empty-overlay .actions {
  display: flex; gap: 10px; justify-content: center;
}

/* ═════════════════════════════════════════════════════════════
   COMPARISON THUMBNAILS
   ════════════════════════════════════════════════════════════ */
.compare-section { margin-top: 96px; }
.compare-h {
  font-family: var(--bp-font-display); font-weight: 700;
  font-size: 28px; letter-spacing: -0.015em;
  color: var(--bp-ink); margin: 0 0 6px;
}
.compare-sub {
  font-size: 15px; color: var(--bp-grey-700);
  margin: 0 0 28px; max-width: 800px; line-height: 1.5;
}

.thumbs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.thumb {
  background: var(--bp-white);
  border: 1px solid var(--bp-grey-100);
  overflow: hidden;
}
.thumb-head {
  padding: 12px 14px;
  border-bottom: 1px solid var(--bp-grey-100);
  display: grid; grid-template-columns: 1fr auto;
  gap: 10px; align-items: baseline;
}
.thumb-head .who {
  font-family: var(--bp-font-display); font-weight: 700;
  font-size: 13px; color: var(--bp-ink); letter-spacing: -0.005em;
}
.thumb-head .role {
  font-family: var(--bp-font-display); font-size: 9px;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--bp-grey-500); font-weight: 700;
}
.thumb-body {
  height: 180px;
  background: #FAFAF7;
  padding: 8px;
  position: relative;
  overflow: hidden;
}
.thumb-question {
  padding: 12px 14px;
  border-top: 1px solid var(--bp-grey-100);
  font-size: 12px;
  color: var(--bp-grey-700);
  line-height: 1.4;
  font-style: italic;
  background: var(--bp-cream);
}
.thumb-question strong {
  font-family: var(--bp-font-display); font-weight: 700;
  color: var(--bp-ink); font-style: normal;
  display: block; margin-bottom: 2px;
  font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
}

/* Mini graphics inside thumbs */
.tb-grid {
  display: grid;
  grid-template-columns: 14px repeat(5, 1fr);
  gap: 1px;
  background: var(--bp-grey-100);
}
.tb-cell {
  background: var(--bp-white);
  height: 9px;
}
.tb-cell.h { background: var(--bp-cream); }
.tb-cell.b1 { background: #2E5BBA; }
.tb-cell.b2 { background: #1E7A3D; }
.tb-cell.b3 { background: #B85800; }
.tb-cell.b4 { background: #5E2DC6; }
.tb-cell.b5 { background: #0E7A85; }
.tb-cell.b6 { background: #8A4A00; }

.tb-cards {
  display: flex; flex-direction: column; gap: 6px;
}
.tb-card {
  height: 32px;
  background: var(--bp-white);
  border-left: 3px solid #2E5BBA;
  border-top: 1px solid var(--bp-grey-100);
  border-right: 1px solid var(--bp-grey-100);
  border-bottom: 1px solid var(--bp-grey-100);
  display: flex; align-items: center;
  padding: 0 8px;
  gap: 8px;
}
.tb-card .tb-time {
  font-family: var(--bp-font-display); font-weight: 700;
  font-size: 10px; color: var(--bp-ink);
}
.tb-card .tb-name {
  flex: 1;
  height: 5px;
  background: var(--bp-grey-100);
}

.tb-table {
  display: grid;
  grid-template-columns: 1fr repeat(3, 32px);
  gap: 1px;
  background: var(--bp-grey-100);
}
.tb-tcell {
  background: var(--bp-white);
  height: 22px;
  display: flex; align-items: center;
  padding: 0 6px;
}
.tb-tcell.h { background: var(--bp-cream); font-family: var(--bp-font-display); font-size: 8px; font-weight: 700; color: var(--bp-grey-700); letter-spacing: 0.04em; text-transform: uppercase; }
.tb-tcell .tb-name-mini {
  height: 4px; width: 60%;
  background: var(--bp-grey-100);
}
.tb-tcell.act-1 { background: #BFD4ED; }
.tb-tcell.act-2 { background: #B6E2C6; }
.tb-tcell.act-3 { background: #F4D7B4; }
.tb-tcell.empty-c { background: var(--bp-grey-50); }

.tb-search {
  text-align: center;
  padding-top: 20px;
}
.tb-search-input {
  height: 28px;
  background: var(--bp-white);
  border: 1.5px solid var(--bp-ink);
  margin: 0 14px;
  display: flex; align-items: center;
  padding: 0 10px;
  font-family: var(--bp-font-mono);
  font-size: 9px;
  color: var(--bp-grey-500);
  letter-spacing: 0.04em;
}
.tb-result {
  margin: 10px 14px 0;
  padding: 10px;
  background: var(--bp-white);
  border: 1px solid var(--bp-grey-100);
}
.tb-result .name {
  height: 8px; width: 60%;
  background: var(--bp-ink);
  margin-bottom: 6px;
}
.tb-result .now {
  height: 18px;
  background: #FFE5E5;
  border-top: 2px solid var(--bp-red);
  display: flex; align-items: center;
  padding: 0 8px;
}
.tb-result .now .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--bp-red); margin-right: 6px;
}
.tb-result .now .nl { height: 4px; width: 50%; background: var(--bp-ink); }

.tb-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.tb-kpi {
  background: var(--bp-white);
  border: 1px solid var(--bp-grey-100);
  padding: 8px 10px;
}
.tb-kpi .v {
  font-family: var(--bp-font-display); font-weight: 700;
  font-size: 22px; letter-spacing: -0.01em;
  color: var(--bp-ink); line-height: 1;
}
.tb-kpi .k {
  font-size: 8px; color: var(--bp-grey-500);
  letter-spacing: 0.08em; text-transform: uppercase;
  font-family: var(--bp-font-display); font-weight: 700;
  margin-top: 4px;
}
.tb-bars {
  margin-top: 6px;
  display: flex; flex-direction: column; gap: 3px;
}
.tb-bar {
  height: 6px;
  background: var(--bp-grey-100);
  position: relative;
}
.tb-bar i {
  position: absolute; top: 0; left: 0; height: 100%;
}
