:root {
  --brand: #0b55b6;
  --brand-dark: #123d7a;
  --brand-deep: #092d60;
  --school-blue: #2a8dca;
  --lavender: #99a5f3;
  --lavender-soft: #eef0ff;
  --ink: #17243a;
  --muted: #667085;
  --line: #dfe5ed;
  --surface: #ffffff;
  --canvas: #f4f7fb;
  --success: #137a4b;
  --warning: #a45b09;
  --danger: #c72f3f;
  --shadow: 0 8px 24px rgba(22, 45, 78, .08);
}

* { box-sizing: border-box; letter-spacing: 0; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 0;
  font-family: "Segoe UI", OpenSansRegular, Arial, sans-serif;
  background: var(--canvas);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { overflow-wrap: anywhere; }
svg { width: 18px; height: 18px; stroke-width: 2; flex: 0 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.btn, button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn:hover, button:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 5px 14px rgba(11, 85, 182, .2); }
.btn-primary:hover { background: #08499e; }
.btn-secondary { background: #fff; color: var(--ink); border: 1px solid #cfd7e2; }
.btn-secondary:hover { border-color: var(--school-blue); color: var(--brand); background: #f8fbff; }
.btn-danger { background: #fff0f1; color: var(--danger); border: 1px solid #f1c3c9; }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-accent { background: var(--lavender); color: var(--brand-deep); box-shadow: 0 7px 20px rgba(4, 25, 67, .24); }
.btn-accent:hover { background: #b0b8ff; }
.btn-ghost-light { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.5); }
.btn-ghost-light:hover { background: rgba(255,255,255,.16); }
.compact { min-height: 34px; padding: 6px 10px; font-size: 12px; }
button:disabled { cursor: not-allowed; opacity: .42; transform: none; }
:focus-visible { outline: 3px solid rgba(42, 141, 202, .35); outline-offset: 2px; }

.actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; align-items: center; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 2px 7px rgba(22, 45, 78, .035);
}
.padded { padding: 22px; }
.muted { color: var(--muted); }
.eyebrow { color: var(--school-blue); font-size: 12px; font-weight: 800; }

.form { display: grid; gap: 15px; }
.label { display: block; margin-bottom: 6px; color: #344054; font-size: 13px; font-weight: 750; }
.input, select, textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.input:hover, select:hover, textarea:hover { border-color: #9eacbe; }
.input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--school-blue); box-shadow: 0 0 0 3px rgba(42, 141, 202, .14); }
textarea { min-height: 94px; resize: vertical; }
.form-footer { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.check-row { display: flex; align-items: center; gap: 9px; min-height: 34px; font-weight: 650; font-size: 14px; color: #344054; }
.check-row input, .assignment-row input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--brand); }

/* Public event entry */
.event-home { background: #fff; }
.event-hero {
  position: relative;
  min-height: 82svh;
  overflow: hidden;
  isolation: isolate;
  background-color: #3157a4;
  background-image: url("../images/banner-evento.png");
  background-size: cover;
  background-position: center top;
  color: #fff;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.event-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(7, 35, 86, .28); }
.event-hero-nav {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  min-height: 92px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.28);
}
.event-hero-nav > img { width: 156px; padding: 9px 12px; background: rgba(255,255,255,.94); border-radius: 6px; }
.event-hero-nav a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; padding: 10px 0; }
.event-hero-content {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  align-self: center;
  display: grid;
  justify-items: start;
  max-width: 1180px;
}
.event-hero-logo { width: min(640px, 72vw); margin-left: -28px; }
.event-hero-content p { max-width: 620px; margin: 0 0 24px; font-size: 19px; line-height: 1.55; color: rgba(255,255,255,.93); }
.event-hero-content .actions { justify-content: flex-start; }
.event-date-strip {
  min-height: 66px;
  padding: 14px max(24px, calc((100% - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(6, 34, 80, .78);
  border-top: 1px solid rgba(255,255,255,.22);
  font-size: 14px;
}
.event-date-strip strong { font-size: 17px; }
.home-next { padding: 64px 24px 72px; background: #fff; border-bottom: 10px solid var(--lavender); }
.home-next-inner { width: min(1180px, 100%); margin: 0 auto; display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.home-next h2 { margin: 8px 0 0; font-size: 32px; color: var(--brand-deep); }
.home-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--brand); }
.home-steps div { padding: 20px 20px 0 0; display: grid; gap: 8px; }
.home-steps strong { color: var(--lavender); font-size: 28px; }
.home-steps span { color: #475467; line-height: 1.45; }

/* Authentication */
.auth-shell { min-height: 100svh; display: grid; grid-template-columns: minmax(340px, .88fr) minmax(520px, 1.12fr); background: #fff; }
.auth-visual {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  padding: 42px;
  background-color: #3157a4;
  background-image: url("../images/banner-evento.png");
  background-size: auto 300%;
  background-repeat: no-repeat;
  background-position: center top;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}
.auth-visual::before { content: ""; position: absolute; inset: 0; background: rgba(8, 39, 91, .3); }
.auth-visual > * { position: relative; z-index: 1; }
.auth-school { width: 170px; padding: 10px 14px; background: #fff; border-radius: 6px; }
.auth-event-logo { width: min(520px, 100%); margin-left: -22px; }
.auth-visual p { max-width: 430px; margin: 0; font-size: 18px; font-weight: 650; }
.auth-content { width: min(570px, calc(100% - 48px)); margin: auto; padding: 48px 0; }
.back-link { display: inline-flex; align-items: center; gap: 7px; color: #475467; font-size: 14px; font-weight: 700; margin-bottom: 64px; }
.back-link:hover { color: var(--brand); }
.auth-heading { margin-bottom: 26px; }
.auth-heading h1 { margin: 8px 0 10px; color: var(--brand-deep); font-size: 34px; }
.auth-heading p { margin: 0; color: var(--muted); line-height: 1.55; }
.login-box, .access-card { width: 100%; margin: 0; }
.access-card h1 { margin: 0; }
.auth-content .card { box-shadow: var(--shadow); border-top: 4px solid var(--lavender); }
.auth-content .btn-primary { width: 100%; }
.auth-help { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 13px; margin: 18px 0 0; }
.code-input { font-family: Consolas, "Courier New", monospace; font-size: 22px; font-weight: 800; text-align: center; text-transform: uppercase; }

/* Admin shell */
.admin-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: 252px;
  padding: 18px 14px 16px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-right: 1px solid var(--line);
  overflow-y: auto;
}
.brand { display: grid; gap: 8px; padding: 3px 8px 18px; border-bottom: 1px solid #edf1f5; }
.brand img { width: 184px; max-height: 68px; object-fit: contain; object-position: left center; }
.brand > span { color: var(--muted); font-size: 11px; font-weight: 750; }
.sidebar nav { display: grid; gap: 3px; padding-top: 12px; }
.nav-label { padding: 14px 12px 5px; color: #98a2b3; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.sidebar nav a, .sidebar-footer a {
  min-height: 42px;
  padding: 9px 11px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #475467;
  font-size: 14px;
  font-weight: 680;
  position: relative;
}
.sidebar nav a:hover { color: var(--brand); background: #f4f7fb; }
.sidebar nav a.active { color: var(--brand); background: var(--lavender-soft); }
.sidebar nav a.active::before { content: ""; position: absolute; inset: 8px auto 8px 0; width: 3px; background: var(--brand); border-radius: 0 3px 3px 0; }
.sidebar nav a.active svg { color: var(--brand); }
.sidebar-footer { margin-top: auto; padding-top: 16px; border-top: 1px solid #edf1f5; display: grid; gap: 10px; }
.sidebar-footer > img { width: 128px; margin: 0 auto 4px; }
.sidebar-footer a.danger { color: var(--danger); }
.sidebar-footer a.danger:hover { background: #fff3f4; }
.admin-main { margin-left: 252px; width: calc(100% - 252px); min-height: 100vh; padding: 0 28px 40px; }
.admin-topbar {
  min-height: 66px;
  margin: 0 -28px 28px;
  padding: 0 28px;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: sticky;
  top: 0;
  z-index: 15;
}
.admin-topbar > div { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.admin-topbar > div span { color: var(--muted); }
.admin-topbar > div span::after { content: "/"; margin-left: 9px; color: #cbd5e1; }
.admin-topbar a { display: inline-flex; align-items: center; gap: 7px; color: var(--brand); font-size: 13px; font-weight: 700; }
.sidebar-toggle, .sidebar-overlay { display: none; }

.page-title { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 22px; }
.page-title > div:first-child { max-width: 760px; }
.page-title h1 { margin: 0; color: var(--brand-deep); font-size: 28px; line-height: 1.2; }
.page-title h1::after { content: ""; display: block; width: 44px; height: 3px; margin-top: 10px; background: var(--lavender); }
.page-title p { margin: 9px 0 0; line-height: 1.45; }
.page-title .actions { justify-content: flex-end; }
.section-heading { padding: 20px 22px 12px; }
.section-heading h2, .section-heading p { margin: 0; }
.section-heading h2 { color: var(--brand-dark); font-size: 20px; }
.section-heading p { margin-top: 5px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 720px; border-collapse: collapse; background: #fff; }
th, td { padding: 12px; border-bottom: 1px solid #e9edf2; text-align: left; vertical-align: middle; font-size: 13px; }
th { height: 42px; color: #667085; font-size: 11px; font-weight: 800; text-transform: uppercase; background: #f7f9fc; }
tbody tr { transition: background-color .15s ease; }
tbody tr:hover { background: #f9fbfe; }
tbody tr:last-child td { border-bottom: 0; }
.table-actions { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.table-actions form { display: inline-flex; }

.badge { border-radius: 999px; padding: 5px 9px; font-size: 11px; font-weight: 800; display: inline-block; white-space: nowrap; }
.ok { background: #e6f7ef; color: var(--success); }
.warn { background: #fff3d8; color: var(--warning); }
.full { background: #ffe8eb; color: var(--danger); }
.status-pending { background: #edf1f5; color: #475467; }
.status-contacted { background: #e4f2fb; color: #176b9e; }
.status-awaiting { background: #fff3d8; color: var(--warning); }
.status-confirmed { background: #e6f7ef; color: var(--success); }
.status-declined { background: #ffe8eb; color: var(--danger); }
.text-warn { color: var(--warning); }
.text-ok { color: var(--success); }

.flash { max-width: 960px; margin: 0 auto 18px; padding: 12px 14px; border-radius: 6px; font-size: 14px; font-weight: 700; }
.flash.success { background: #e6f7ef; color: var(--success); border: 1px solid #b9e6d0; }
.flash.error { background: #ffe8eb; color: #9f1d2c; border: 1px solid #f4bbc3; }

.progress { height: 7px; overflow: hidden; background: #e7ebf1; border-radius: 999px; }
.progress i { display: block; height: 100%; background: var(--school-blue); border-radius: inherit; }
.rule-note { display: grid; gap: 4px; padding: 14px 16px; background: #edf7fc; border-left: 4px solid var(--school-blue); }
.rule-note span { color: #475467; font-size: 14px; }
.round-box { padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.success-box { max-width: 780px; margin: 0 auto; }

/* Students */
.student-page { width: min(1100px, calc(100% - 32px)); margin: 0 auto; padding: 30px 0 52px; }
.student-page::before { content: ""; display: block; height: 8px; width: 100%; margin-bottom: 24px; background: var(--brand); border-bottom: 3px solid var(--lavender); }
.student-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.student-header h1 { margin: 6px 0; color: var(--brand-deep); font-size: 31px; }
.student-header p { margin: 0; }
.student-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--brand-deep); color: #fff; margin-bottom: 28px; border-bottom: 4px solid var(--lavender); }
.student-summary div { padding: 19px 22px; display: grid; gap: 5px; border-right: 1px solid rgba(255,255,255,.18); }
.student-summary div:last-child { border-right: 0; }
.student-summary span { color: #c9d9ee; font-size: 13px; }
.student-summary strong { font-size: 21px; }
.schedule-list { display: grid; gap: 10px; }
.schedule-row { display: grid; grid-template-columns: 180px minmax(0, 1fr) 160px; align-items: center; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--school-blue); min-height: 104px; box-shadow: 0 3px 10px rgba(22,45,78,.04); }
.schedule-row.empty { opacity: .68; border-left-color: #cbd5e1; box-shadow: none; }
.schedule-time, .schedule-detail { display: grid; gap: 5px; padding: 18px; }
.schedule-time { border-right: 1px solid #e9edf2; }
.schedule-time span, .schedule-time small, .schedule-detail span { color: var(--muted); font-size: 13px; }
.schedule-room { font-weight: 800; color: var(--brand); text-align: right; padding: 18px; }
.workshop-form { gap: 11px; }
.workshop-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); align-items: end; border-left: 4px solid var(--lavender); }
.workshop-time { display: grid; gap: 5px; }
.workshop-time span, .workshop-time small { color: var(--muted); font-size: 13px; }
.access-code { font-size: 15px; font-weight: 800; color: var(--brand); }
.monitor-badge { width: fit-content; margin-top: 3px; background: #e9efff; color: var(--brand); border-color: #bbc9f7; }

/* Management */
.room-management-grid { grid-template-columns: minmax(280px, 360px) 1fr; align-items: start; }
.capacity-form { display: flex; align-items: center; gap: 8px; min-width: 150px; }
.capacity-form .input { width: 76px; min-height: 36px; padding: 6px 8px; }
.class-progress-section { margin-bottom: 18px; }
.class-progress { display: grid; grid-template-columns: minmax(100px, 1fr) 42px; align-items: center; gap: 10px; min-width: 170px; }
.config-layout { max-width: 900px; }
.round-time-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.round-time-row { display: grid; grid-template-columns: 90px 70px 1fr 1fr; gap: 14px; align-items: end; background: #fff; padding: 12px; }
.round-time-row > span { color: var(--muted); align-self: center; }
.professional-layout { display: grid; gap: 18px; }
.assignment-grid { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.assignment-row { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: center; padding: 10px 12px; border-bottom: 1px solid #e9edf2; }
.assignment-row:last-child { border-bottom: 0; }
.assignment-row label { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }

.schedule-gate {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid #efd89e;
  border-left: 4px solid var(--warning);
  background: #fffaf0;
}
.schedule-gate.is-unlocked { border-color: #bce4cf; border-left-color: var(--success); background: #f2fbf7; }
.schedule-gate-icon { width: 40px; height: 40px; display: grid; place-items: center; color: #93610c; background: #fff0c7; }
.schedule-gate.is-unlocked .schedule-gate-icon { color: var(--success); background: #dff4e9; }
.schedule-gate-icon svg { width: 20px; height: 20px; }
.schedule-gate > div { display: grid; gap: 3px; }
.schedule-gate strong { color: var(--brand-deep); font-size: 14px; }
.schedule-gate > div span { color: var(--muted); font-size: 12px; }

.area-round-manager { margin-bottom: 18px; border-top: 4px solid var(--lavender); }
.area-round-manager .section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 0 0 18px; }
.area-round-manager .section-heading h2 { margin-top: 4px; }
.round-selector-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.round-choice { display: grid; gap: 13px; min-width: 0; padding: 14px; border: 1px solid var(--line); border-left: 4px solid #b7c1ce; background: #f8fafc; transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease; }
.round-choice.is-selected { border-color: #abdcc3; border-left-color: var(--success); background: #f3fbf7; box-shadow: 0 3px 10px rgba(18, 121, 77, .07); }
.round-choice-toggle { display: flex; align-items: center; gap: 10px; min-width: 0; cursor: pointer; }
.round-choice-toggle input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--success); }
.round-choice-toggle input:disabled { cursor: not-allowed; }
.round-choice-toggle span { display: grid; gap: 2px; min-width: 0; }
.round-choice-toggle strong { color: var(--brand-deep); font-size: 14px; }
.round-choice-toggle small, .round-choice-foot { color: var(--muted); font-size: 11px; }
.round-choice select { min-height: 40px; font-size: 13px; }
.round-choice-foot { padding-top: 9px; border-top: 1px solid #e1e7ee; font-weight: 700; }
.round-choice.is-selected .round-choice-foot { color: var(--success); border-top-color: #cfe9dc; }

.round-accordion-list { display: grid; gap: 10px; }
.round-accordion { overflow: hidden; border: 1px solid var(--line); border-left: 4px solid var(--warning); border-radius: 6px; background: #fff; box-shadow: 0 3px 12px rgba(22,45,78,.04); }
.round-accordion.is-complete { border-left-color: var(--success); }
.round-accordion > summary { min-height: 78px; display: grid; grid-template-columns: 42px minmax(180px, 1fr) minmax(150px, 280px) 100px 22px; align-items: center; gap: 14px; padding: 14px 18px; cursor: pointer; list-style: none; background: #fffbf2; transition: background-color .18s ease; }
.round-accordion.is-complete > summary { background: #f2fbf7; }
.round-accordion > summary::-webkit-details-marker { display: none; }
.round-accordion > summary:hover { background: #fff7e6; }
.round-accordion.is-complete > summary:hover { background: #eaf8f1; }
.round-accordion > summary:focus-visible { outline: 3px solid rgba(11,85,182,.28); outline-offset: -3px; }
.round-accordion-icon { width: 40px; height: 40px; display: grid; place-items: center; color: var(--warning); background: #fff3d8; }
.round-accordion.is-complete .round-accordion-icon { color: var(--success); background: #e1f5eb; }
.round-accordion-icon svg { width: 21px; height: 21px; }
.round-accordion-title { display: grid; gap: 4px; }
.round-accordion-title strong { color: var(--brand-deep); font-size: 16px; }
.round-accordion-title small { color: var(--muted); font-size: 12px; }
.round-accordion-progress { display: grid; grid-template-columns: 1fr 36px; align-items: center; gap: 9px; }
.round-accordion-progress > span { height: 7px; overflow: hidden; border-radius: 999px; background: #eadfc4; }
.round-accordion-progress i { display: block; height: 100%; border-radius: inherit; background: var(--warning); }
.round-accordion.is-complete .round-accordion-progress > span { background: #cee9dc; }
.round-accordion.is-complete .round-accordion-progress i { background: var(--success); }
.round-accordion-progress small { color: var(--muted); font-size: 11px; font-weight: 800; }
.round-accordion-status { display: grid; gap: 2px; text-align: right; }
.round-accordion-status strong { color: var(--warning); font-size: 19px; }
.round-accordion.is-complete .round-accordion-status strong { color: var(--success); }
.round-accordion-status small { color: var(--muted); font-size: 10px; font-weight: 700; }
.round-accordion-chevron { width: 20px; color: #738195; transition: transform .18s ease; }
.round-accordion[open] .round-accordion-chevron { transform: rotate(180deg); }
.round-accordion-content { border-top: 1px solid var(--line); }
.round-accordion-content table { min-width: 760px; }

.planning-day-grid { margin-bottom: 18px; }
.planning-day-card { padding: 20px; border-top: 4px solid var(--school-blue); }
.planning-day-card:nth-child(2) { border-top-color: var(--lavender); }
.planning-day-card header { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.planning-day-card header span { color: var(--muted); font-size: 11px; font-weight: 800; }
.planning-day-card h2 { margin: 4px 0 18px; color: var(--brand-deep); }
.planning-numbers { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #e9edf2; margin-bottom: 16px; }
.planning-numbers div { display: grid; gap: 3px; padding: 12px; border-right: 1px solid #e9edf2; }
.planning-numbers div:last-child { border-right: 0; }
.planning-numbers strong { font-size: 22px; color: var(--brand-dark); }
.planning-numbers span, .planning-day-card small { color: var(--muted); font-size: 12px; }
.planning-day-card .progress { margin-bottom: 8px; }
.planning-rounds, .planning-filters { margin-bottom: 18px; }
.missing-tags { display: flex; flex-wrap: wrap; gap: 4px; max-width: 360px; }
.missing-tags span { padding: 3px 6px; background: #fff4e8; color: #9a4610; border: 1px solid #f4d1af; font-size: 11px; font-weight: 700; }
.missing-tags span.complete { background: #eaf8f1; color: var(--success); border-color: #bce4cf; }

.room-summary-grid { margin-bottom: 26px; }
.mini-round-card { display: grid; gap: 12px; border-top: 3px solid var(--lavender); }
.mini-round-card > div:not(.progress) { display: flex; justify-content: space-between; gap: 10px; }
.mini-round-card span, .mini-round-card small { color: var(--muted); font-size: 13px; }
.room-round-section { margin-bottom: 34px; }
.round-heading { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #ccd5e0; padding-bottom: 12px; margin-bottom: 14px; }
.round-heading > div { display: flex; align-items: center; gap: 12px; }
.round-heading h2, .round-heading p { margin: 0; }
.round-heading h2 { color: var(--brand-deep); }
.round-heading p, .round-heading > span { color: var(--muted); font-size: 13px; }
.round-number { width: 42px; height: 42px; display: grid; place-items: center; background: var(--brand-deep); color: #fff; font-weight: 800; border-bottom: 3px solid var(--lavender); }
.room-card { overflow: hidden; border-top: 3px solid var(--school-blue); }
.room-card > header { display: flex; justify-content: space-between; padding: 16px; border-bottom: 1px solid #e9edf2; }
.room-card > header div { display: grid; gap: 4px; }
.room-card > header div span { color: var(--muted); font-size: 10px; font-weight: 800; }
.occupancy-pill { align-self: start; padding: 5px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.room-professional { padding: 16px; display: grid; gap: 5px; min-height: 78px; }
.room-professional strong { color: var(--brand-deep); }
.room-professional span { color: var(--muted); font-size: 13px; }
.room-capacity { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #e9edf2; }
.room-capacity div { padding: 12px 7px; display: grid; gap: 2px; text-align: center; border-right: 1px solid #e9edf2; }
.room-capacity div:last-child { border-right: 0; }
.room-capacity span { color: var(--muted); font-size: 10px; }
.room-card > .progress { margin: 0 16px 14px; }
.room-card > div:last-child { margin: 0 16px 16px !important; }
.room-monitors { margin: 0 16px 14px; padding: 12px; display: grid; gap: 4px; border: 1px solid #dbe4ef; background: #f8faff; }
.room-monitors > span { color: var(--muted); font-size: 10px; font-weight: 800; }
.room-monitors > strong { color: var(--brand-deep); font-size: 13px; }
.room-monitors > a { color: var(--brand); font-size: 12px; font-weight: 800; }

/* Student monitors */
.monitor-summary-grid { margin-bottom: 18px; }
.monitor-assignment-card { margin-bottom: 18px; border-top: 4px solid var(--lavender); }
.monitor-assignment-card .section-heading { padding: 0 0 18px; }
.monitor-form { gap: 16px; }
.monitor-priority { display: flex; flex-wrap: wrap; gap: 10px 20px; padding: 12px 14px; background: #f7f9fc; border: 1px solid var(--line); }
.monitor-priority span { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
.priority-dot { width: 9px; height: 9px; border-radius: 50%; }
.priority-dot.year-3 { background: var(--success); }
.priority-dot.year-2 { background: var(--warning); }
.priority-dot.year-1 { background: var(--danger); }
.monitor-filters { margin-bottom: 18px; }
.empty-state { padding: 24px; text-align: center; border: 1px dashed #b8c5d6; background: #f8faff; }
.empty-state p { margin-bottom: 0; }

/* Print */
.print-page { max-width: 1050px; margin: 0 auto; padding: 24px; }
.print-toolbar { display: flex; justify-content: space-between; margin-bottom: 22px; }
.print-header { text-align: center; margin-bottom: 22px; }
.code-sheet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.code-ticket { border: 1px dashed #667085; padding: 18px; display: grid; gap: 7px; break-inside: avoid; border-top: 4px solid var(--lavender); }
.code-ticket > span, .code-ticket > small, .code-ticket > p { color: var(--muted); }
.code-ticket > span { font-size: 10px; font-weight: 800; }
.code-ticket > code { font-size: 23px; font-weight: 800; color: var(--brand); margin-top: 8px; }
.code-ticket > p { margin: 0; font-size: 10px; }
.monitor-print-page { max-width: 1180px; }
.monitor-print-header { display: grid; grid-template-columns: 150px 1fr 150px; align-items: center; gap: 24px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 3px solid var(--brand); }
.monitor-print-header img { width: 100%; max-height: 76px; object-fit: contain; }
.monitor-print-header div { text-align: center; }
.monitor-print-header span { color: var(--school-blue); font-size: 11px; font-weight: 800; }
.monitor-print-header h1 { margin: 4px 0; color: var(--brand-deep); font-size: 27px; }
.monitor-print-header p { margin: 0; color: var(--muted); font-size: 13px; }
.monitor-print-summary { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 24px; border: 1px solid var(--line); }
.monitor-print-summary div { display: grid; gap: 3px; padding: 12px; text-align: center; border-right: 1px solid var(--line); }
.monitor-print-summary div:last-child { border-right: 0; }
.monitor-print-summary strong { color: var(--brand-deep); font-size: 21px; }
.monitor-print-summary span { color: var(--muted); font-size: 11px; }
.print-section { margin-bottom: 28px; overflow-x: auto; }
.print-section-title { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 10px; }
.print-section-title h2 { margin: 0; color: var(--brand-deep); font-size: 19px; }
.print-section-title span { color: var(--muted); font-size: 11px; }
.print-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.print-table th, .print-table td { padding: 8px; border: 1px solid #9eabba; vertical-align: top; }
.print-table th { background: #eef3f9; color: var(--brand-deep); text-align: left; font-size: 9px; }
.print-assignment { display: grid; gap: 2px; margin-bottom: 6px; }
.print-assignment:last-child { margin-bottom: 0; }
.print-assignment span { color: #526173; font-size: 10px; }
.signature-cell { min-width: 72px; }

@media print {
  body { background: #fff; }
  .print-toolbar { display: none; }
  .print-page { padding: 0; }
  .code-sheet { grid-template-columns: repeat(3, 1fr); }
  .monitor-print-page { max-width: none; }
  .monitor-print-header { break-after: avoid; }
  .monitor-print-summary, .print-table tr { break-inside: avoid; }
  .print-section { overflow: visible; }
  .page-break-before { break-before: page; }
}

@media (max-width: 1120px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .room-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .round-selector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-shell { grid-template-columns: minmax(300px, .72fr) minmax(480px, 1.28fr); }
}

@media (max-width: 960px) {
  .sidebar { transform: translateX(-102%); transition: transform .22s ease; box-shadow: 10px 0 30px rgba(13,39,78,.18); }
  .sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-toggle { display: grid; place-items: center; position: fixed; z-index: 25; top: 13px; left: 14px; width: 40px; min-height: 40px; padding: 0; background: var(--brand); color: #fff; box-shadow: var(--shadow); }
  .sidebar-overlay { display: block; position: fixed; inset: 0; z-index: 20; min-height: 0; padding: 0; border-radius: 0; background: rgba(8,28,58,.48); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  .sidebar-open .sidebar-overlay { opacity: 1; pointer-events: auto; }
  .admin-main { margin-left: 0; width: 100%; padding: 0 20px 36px; }
  .admin-topbar { margin: 0 -20px 24px; padding: 0 20px 0 68px; }
  .admin-topbar > div span, .admin-topbar a span { display: none; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { min-height: 300px; padding: 28px; }
  .auth-event-logo { width: 430px; margin: auto auto -10px; }
  .auth-visual p { display: none; }
  .auth-content { padding: 38px 0 52px; }
  .back-link { margin-bottom: 36px; }
  .home-next-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 760px) {
  .grid-2, .grid-3, .grid-4, .room-grid { grid-template-columns: 1fr; }
  .event-hero {
    min-height: 86svh;
    background-image: none;
  }
  .event-hero-nav, .event-hero-content { width: calc(100% - 32px); }
  .event-hero-nav { min-height: 76px; }
  .event-hero-nav > img { width: 132px; }
  .event-hero-logo { width: 100%; margin-left: -12px; }
  .event-hero-content p { font-size: 16px; max-width: 420px; }
  .event-hero-content .actions { align-items: stretch; flex-direction: column; width: 100%; }
  .event-date-strip { justify-content: center; text-align: center; }
  .event-date-strip span { display: none; }
  .home-next { padding: 48px 20px 56px; }
  .home-next h2 { font-size: 27px; }
  .home-steps { grid-template-columns: 1fr; }
  .home-steps div { grid-template-columns: 45px 1fr; align-items: center; padding-top: 16px; }
  .page-title, .student-header { align-items: flex-start; flex-direction: column; }
  .page-title .actions { justify-content: flex-start; width: 100%; }
  .page-title .actions .btn, .page-title .actions form, .page-title .actions form button { width: 100%; }
  .student-summary, .code-sheet { grid-template-columns: 1fr; }
  .student-summary div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .student-summary div:last-child { border-bottom: 0; }
  .schedule-row { grid-template-columns: 1fr; }
  .schedule-time { border-right: 0; border-bottom: 1px solid #e9edf2; }
  .schedule-room { text-align: left; padding-top: 0; }
  .workshop-row { grid-template-columns: 1fr; align-items: stretch; }
  .room-management-grid, .round-time-row, .assignment-row { grid-template-columns: 1fr; }
  .monitor-print-header { grid-template-columns: 100px 1fr 100px; }
  .monitor-print-summary { grid-template-columns: repeat(2, 1fr); }
  .planning-numbers { grid-template-columns: 1fr; }
  .planning-numbers div { border-right: 0; border-bottom: 1px solid #e9edf2; }
  .planning-numbers div:last-child { border-bottom: 0; }
  .planning-day-card header { flex-direction: column; }
  .round-selector-grid { grid-template-columns: 1fr; }
  .schedule-gate { grid-template-columns: 42px minmax(0, 1fr); }
  .schedule-gate > .btn { grid-column: 1 / -1; width: 100%; }
  .round-heading { align-items: flex-start; }
  .round-heading > span { display: none; }
  .round-accordion > summary { grid-template-columns: 42px minmax(0, 1fr) 86px 20px; gap: 10px; padding: 12px 14px; }
  .round-accordion-progress { display: none; }
}

@media (max-width: 520px) {
  .admin-main { padding: 0 14px 32px; }
  .admin-topbar { margin: 0 -14px 20px; padding-left: 62px; padding-right: 14px; }
  .page-title h1 { font-size: 25px; }
  .padded { padding: 18px; }
  .auth-visual { min-height: 235px; padding: 20px; }
  .auth-school { width: 136px; }
  .auth-event-logo { width: 330px; margin-bottom: -16px; }
  .auth-content { width: calc(100% - 28px); padding-top: 28px; }
  .auth-heading h1 { font-size: 29px; }
  .back-link { margin-bottom: 28px; }
  .event-hero-nav a span { display: none; }
  .event-date-strip strong { font-size: 15px; }
  .table-actions { flex-wrap: wrap; }
  .round-accordion > summary { grid-template-columns: 36px minmax(0, 1fr) 68px 18px; padding: 11px 10px; }
  .round-accordion-icon { width: 34px; height: 34px; }
  .round-accordion-title strong { font-size: 14px; }
  .round-accordion-title small { font-size: 10px; }
  .round-accordion-status strong { font-size: 16px; }
  .round-accordion-status small { font-size: 9px; }
  .monitor-print-header { grid-template-columns: 1fr; }
  .monitor-print-header img { width: 110px; margin: 0 auto; }
}

/* Administradores */
details.admin-actions > summary { display: inline-flex; align-items: center; cursor: pointer; list-style: none; }
details.admin-actions > summary::-webkit-details-marker { display: none; }
.admin-actions-panel { display: grid; gap: 14px; margin-top: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--canvas); }
.admin-actions-panel > form { display: grid; gap: 8px; margin: 0; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.admin-actions-panel > form:last-child { padding-bottom: 0; border-bottom: none; }

/* Capacidade x Demanda (dashboard) */
.capacity-panel.has-deficit { border: 1px solid #f4bbc3; }
.capacity-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.capacity-days { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 14px; }
.capacity-day { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--canvas); display: grid; gap: 6px; }
.capacity-day.is-over { background: #fff5f6; border-color: #f4bbc3; }
.capacity-day.is-ok { background: #f0faf4; border-color: #b9e6d0; }
.capacity-day-title { display: flex; align-items: center; gap: 8px; }
.capacity-day small { color: #475467; }
/* alerta de estouro no painel de salas */
.round-deficit { margin-left: auto; }

/* Renomear profissao (Programacao) */
.profession-rename { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.profession-name-input { font-size: 20px; font-weight: 800; color: var(--ink); min-width: 260px; max-width: 100%; }
