:root {
  --bg: #f6f7fb;
  --panel: #ffffff;
  --panel-soft: #fafbfc;
  --line: #e8ebf1;
  --line-strong: #dce1e9;
  --text: #151b2b;
  --muted: #687386;
  --subtle: #929bad;
  --primary: #315eea;
  --primary-hover: #244bd0;
  --primary-soft: #edf2ff;
  --free: #fbfcfd;
  --free-hover: #f5f8ff;
  --block: #f1f3f6;
  --appointment: #eaf1ff;
  --shared: #f1ebff;
  --danger: #c73a32;
  --danger-soft: #fff1ef;
  --success: #1f9254;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .03), 0 6px 18px rgba(15, 23, 42, .035);
  --shadow-md: 0 18px 45px rgba(15, 23, 42, .10);
  --radius-sm: 10px;
  --radius-md: 15px;
  --radius-lg: 20px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
svg { width: 20px; height: 20px; flex: none; }

.app-body { min-height: 100vh; }
.topbar {
  height: 76px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(222,226,234,.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand, .user-area, .date-navigation, .navigation-buttons, .workspace-actions, .card-heading, .filter-field { display: flex; align-items: center; }
.brand { gap: 12px; }
.brand-symbol {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #edf2ff, #f8f9ff);
  color: var(--primary);
  box-shadow: inset 0 0 0 1px #dfe7ff;
}
.brand-symbol.large { width: 54px; height: 54px; border-radius: 17px; background: rgba(255,255,255,.12); color: white; box-shadow: inset 0 0 0 1px rgba(255,255,255,.20); }
.brand-symbol.large svg { width: 28px; height: 28px; }
.brand-copy { display: flex; flex-direction: column; gap: 2px; }
.brand-copy strong { font-size: 15px; letter-spacing: -.01em; }
.brand-copy span { color: var(--muted); font-size: 12px; }
.user-area { gap: 10px; }
.user-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--avatar-color);
  background: color-mix(in srgb, var(--avatar-color) 11%, white);
  border: 1px solid color-mix(in srgb, var(--avatar-color) 22%, white);
  font-weight: 700;
}
.user-copy { display: flex; flex-direction: column; min-width: 84px; }
.user-copy strong { font-size: 13px; }
.user-copy span { color: var(--muted); font-size: 11px; }

.page-shell { width: min(1640px, 100%); margin: 0 auto; padding: 22px 26px 34px; }
.workspace-card, .filter-card, .calendar-card, .side-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.workspace-card {
  min-height: 92px;
  padding: 17px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
}
.date-navigation { gap: 17px; min-width: 0; }
.navigation-buttons { gap: 7px; }
.period-copy { min-width: 0; }
.eyebrow { display: block; margin-bottom: 4px; color: var(--subtle); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.period-label { margin: 0; font-size: clamp(18px, 2vw, 23px); line-height: 1.2; letter-spacing: -.025em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.workspace-actions { justify-content: flex-end; gap: 9px; flex-wrap: wrap; }
.view-switcher { display: flex; gap: 3px; padding: 5px; background: #f4f6f9; border: 1px solid #e4e9f1; border-radius: 13px; }

.primary-button, .secondary-button, .ghost-button, .view-button, .icon-button, .danger-button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 9px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text);
  background: white;
  font-size: 13px;
  font-weight: 600;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}
.primary-button { background: var(--primary); color: white; box-shadow: 0 8px 18px rgba(49,94,234,.20); }
.primary-button:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(49,94,234,.26); }
.secondary-button { border-color: var(--line-strong); background: #fff; }
.secondary-button:hover, .icon-button:hover, .ghost-button:hover { background: #f7f9fc; border-color: #d3d9e4; }
.ghost-button { background: transparent; color: var(--muted); }
.logout-button { min-height: 36px; padding: 7px 9px; }
.logout-button svg { width: 17px; height: 17px; }
.view-button { min-width: 62px; min-height: 38px; padding: 8px 15px; border-radius: 9px; background: transparent; color: #5c687b; font-size: 13.5px; font-weight: 700; letter-spacing: .01em; }
.view-button.active { border-color: rgba(49,94,234,.20); background: #fff; color: var(--primary); box-shadow: 0 4px 12px rgba(15,23,42,.10); }
.view-button:hover:not(.active) { background: rgba(49,94,234,.07); color: var(--text); }
.icon-button { width: 40px; padding: 0; border-color: var(--line-strong); }
.icon-button svg { width: 18px; height: 18px; }
.danger-button { color: var(--danger); background: var(--danger-soft); border-color: #ffd6d1; }
.danger-button:hover { background: #ffe8e5; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(49,94,234,.16); outline-offset: 1px; }
button:disabled, input:disabled, select:disabled, textarea:disabled { opacity: .58; cursor: not-allowed; }

.filter-card {
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
}
.filter-field { gap: 10px; min-width: 260px; }
.field-icon { width: 34px; height: 34px; display: grid; place-items: center; color: var(--primary); background: var(--primary-soft); border-radius: 10px; }
.field-icon svg { width: 17px; height: 17px; }
.filter-field label { display: grid; grid-template-columns: auto minmax(150px, 1fr); align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.filter-field select { min-width: 170px; }
.interaction-hint { margin: 0; color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 7px; }
.interaction-hint svg { width: 16px; height: 16px; }
.status-message { margin-left: auto; min-height: 20px; font-size: 12px; color: var(--success); font-weight: 600; }
.status-message.error { color: var(--danger); }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 14px; align-items: start; }
.calendar-card { min-width: 0; overflow: hidden; }
.calendar-card-header { min-height: 72px; padding: 15px 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.calendar-card-header h2 { margin: 0; font-size: 15px; letter-spacing: -.01em; }
.live-indicator { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.live-indicator i { width: 7px; height: 7px; border-radius: 50%; background: #36b37e; box-shadow: 0 0 0 4px rgba(54,179,126,.10); }
.calendar-panel { overflow: auto; min-height: 665px; background: #fff; }
.sidebar { display: flex; flex-direction: column; gap: 14px; }
.side-card { padding: 17px; }
.card-heading { gap: 11px; margin-bottom: 15px; }
.card-heading h3 { margin: 0; font-size: 14px; letter-spacing: -.01em; }
.compact-heading { margin-bottom: 12px; }
.card-icon { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 11px; }
.card-icon svg { width: 17px; height: 17px; }
.card-icon.blue { color: #315eea; background: #edf2ff; }
.card-icon.violet { color: #7a4be8; background: #f2edff; }
.card-icon.neutral { color: #667085; background: #f2f4f7; }

.summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.summary-stat { min-height: 84px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-soft); }
.summary-stat span { display: block; color: var(--muted); font-size: 11px; line-height: 1.3; }
.summary-stat strong { display: block; margin-top: 7px; font-size: 21px; letter-spacing: -.04em; }
.summary-stat.appointments strong { color: var(--primary); }
.summary-stat.blocks strong { color: #667085; }
.summary-stat.shared strong { color: #7a4be8; }
.summary-stat.hours strong { color: #0f766e; }
.upcoming-list { display: flex; flex-direction: column; gap: 5px; }
.upcoming-row { position: relative; overflow: hidden; display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 10px; margin: 0; padding: 11px 10px; border: 1px solid transparent; border-radius: 10px; transition: background .18s ease, border-color .18s ease; }
.upcoming-row:last-child { border-bottom-color: transparent; padding-bottom: 11px; }
.upcoming-dot { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--event-color, var(--primary)); }
.upcoming-content { min-width: 0; }
.upcoming-row strong { display: block; margin-bottom: 3px; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upcoming-row span { color: var(--muted); font-size: 10.5px; line-height: 1.45; }
.empty-state { padding: 18px 8px 8px; text-align: center; color: var(--muted); }
.empty-state svg { width: 28px; height: 28px; margin-bottom: 8px; color: #aeb6c5; }
.empty-state strong { display: block; color: #4f596a; font-size: 12px; }
.empty-state span { display: block; margin-top: 3px; font-size: 11px; }
.legend-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 8px; }
.legend-list > div { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.legend-swatch { width: 12px; height: 12px; border-radius: 4px; border: 1px solid var(--line-strong); }
.legend-swatch.free { background: #fff; }
.legend-swatch.block { background: var(--block); }
.legend-swatch.appointment { background: var(--appointment); border-color: #cfddff; }
.legend-swatch.shared { background: var(--shared); border-color: #dfd3ff; }

.day-grid { display: grid; min-width: 820px; }
.day-header, .day-row { display: grid; grid-template-columns: 78px repeat(var(--people-count), minmax(210px, 1fr)); }
.day-header { min-height: 50px; background: #fbfcfd; border-bottom: 1px solid var(--line); font-weight: 650; position: sticky; top: 0; z-index: 5; }
.day-header > div { display: flex; align-items: center; gap: 8px; padding: 12px; border-right: 1px solid var(--line); font-size: 12px; }
.day-header > div:first-child { color: var(--muted); font-weight: 600; }
.day-user-heading { min-width: 0; }
.day-user-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.availability-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding: 4px 7px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}
.availability-status i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.availability-status.available { color: #78e4b1; border-color: rgba(72, 213, 151, .25); background: rgba(32, 139, 96, .12); }
.availability-status.available i { background: #48d597; box-shadow: 0 0 0 3px rgba(72, 213, 151, .10); }
.availability-status.busy { color: #ffadb4; border-color: rgba(255, 100, 112, .26); background: rgba(166, 48, 59, .13); }
.availability-status.busy i { background: #ff6470; box-shadow: 0 0 0 3px rgba(255, 100, 112, .10); }

.day-row { min-height: 56px; border-bottom: 1px solid #eef1f5; }
.day-row > div { padding: 7px 9px; border-right: 1px solid #eef1f5; }
.day-row:nth-child(odd) .slot-cell { background: #fdfefe; }
.time-cell { display: flex; align-items: flex-start; justify-content: center; padding-top: 10px !important; color: #7c8799; font-size: 10.5px; background: #fbfcfd; font-variant-numeric: tabular-nums; }
.slot-cell { position: relative; min-width: 0; background: var(--free); transition: background .15s ease; }
.slot-cell:hover { background: var(--free-hover); box-shadow: inset 0 0 0 1px #dce5ff; }
.slot-cell:empty::after { content: "+"; position: absolute; right: 10px; top: 50%; translate: 0 -50%; color: #aab7d6; opacity: 0; font-size: 16px; transition: opacity .15s ease; }
.slot-cell:empty:hover::after { opacity: 1; }
.occupied-continuation { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; color: #8a93a3; font-size: 10px; }
.event-pill { position: relative; min-height: 41px; border-radius: 9px; padding: 7px 9px 7px 11px; font-size: 11px; border: 1px solid #d7e2ff; background: var(--appointment); overflow: hidden; cursor: pointer; transition: transform .14s ease, box-shadow .14s ease; }
.event-pill::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--primary); }
.event-pill:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(49,94,234,.12); }
.event-pill.block { background: var(--block); border-color: #e0e4ea; }
.event-pill.block::before { background: #7b8494; }
.event-pill.shared { background: var(--shared); border-color: #e2d8ff; }
.event-pill.shared::before { background: #7a4be8; }
.event-pill strong { display: block; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11.5px; }
.event-pill small { display: block; color: #657086; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 9.5px; }
.event-participants { display: inline-flex; gap: 3px; margin-top: 5px; }
.event-participants i { width: 6px; height: 6px; border-radius: 50%; background: var(--dot-color); }

.week-grid { display: grid; grid-template-columns: repeat(7, minmax(160px, 1fr)); min-width: 1120px; }
.week-day { min-height: 640px; border-right: 1px solid var(--line); background: #fff; }
.week-day h4 { position: sticky; top: 0; z-index: 4; margin: 0; padding: 13px 10px; background: #fbfcfd; border-bottom: 1px solid var(--line); text-align: center; color: #4b5565; font-size: 11px; font-weight: 650; text-transform: capitalize; }
.week-day.today h4 { color: var(--primary); background: #f6f8ff; }
.week-events { padding: 9px; display: flex; flex-direction: column; gap: 7px; }
.week-empty { padding: 24px 6px; color: #a0a8b6; text-align: center; font-size: 10px; }
.month-grid { display: grid; grid-template-columns: repeat(7, minmax(125px, 1fr)); min-width: 920px; }
.month-weekday { position: sticky; top: 0; z-index: 4; padding: 12px; text-align: center; color: #7b8494; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: #fbfcfd; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.month-day { min-height: 132px; padding: 9px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.month-day:hover { background: #fafbff; }
.month-day.outside { background: #fafbfc; color: #b3bac5; }
.month-day.today { background: #f8faff; box-shadow: inset 0 0 0 1px #b9cbff; }
.month-number { width: 26px; height: 26px; display: grid; place-items: center; margin-bottom: 7px; border-radius: 8px; font-size: 11px; font-weight: 700; }
.month-day.today .month-number { background: var(--primary); color: white; }
.month-events { display: flex; flex-direction: column; gap: 5px; }
.month-events .event-pill { min-height: auto; padding: 5px 6px 5px 8px; font-size: 9px; }
.month-events .event-pill strong { margin: 0; font-size: 9.5px; }
.month-more { color: var(--muted); font-size: 9px; }

.event-dialog { width: min(680px, calc(100% - 24px)); max-height: calc(100vh - 30px); border: 0; border-radius: 20px; padding: 0; overflow: auto; box-shadow: 0 28px 90px rgba(15,23,42,.25); }
.event-dialog::backdrop { background: rgba(20,27,43,.54); backdrop-filter: blur(3px); }
.event-form { padding: 23px; }
.dialog-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.dialog-header h2 { margin: 0; font-size: 20px; letter-spacing: -.025em; }
.close-button { border-color: transparent; background: #f5f6f8; }
.form-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 13px; color: #4f596a; font-size: 11px; font-weight: 650; }
.event-form input, .event-form select, .event-form textarea, .filter-field select, .stack-form input {
  min-height: 42px;
  border: 1px solid #d9dee7;
  border-radius: 10px;
  padding: 10px 11px;
  background: #fff;
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.event-form textarea { resize: vertical; }
.event-form input::placeholder, .event-form textarea::placeholder, .stack-form input::placeholder { color: #a5adba; }
.event-form input:focus, .event-form select:focus, .event-form textarea:focus, .filter-field select:focus, .stack-form input:focus { border-color: #98aff4; box-shadow: 0 0 0 4px rgba(49,94,234,.08); outline: none; }
.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 13px; margin: 0 0 13px; }
fieldset legend { padding: 0 5px; color: #4f596a; font-size: 11px; font-weight: 650; }
.participant-list { display: flex; gap: 8px; flex-wrap: wrap; }
.participant-list label { display: inline-flex; flex-direction: row; align-items: center; gap: 7px; margin: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; color: #4f596a; font-size: 11px; font-weight: 550; cursor: pointer; }
.participant-list label:has(input:checked) { border-color: #b7c8fa; background: #f4f7ff; color: #294cb7; }
.participant-list input { min-height: auto; width: 14px; height: 14px; margin: 0; }
.user-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dialog-actions { display: flex; align-items: center; gap: 9px; margin-top: 18px; }
.spacer { flex: 1; }
.alert { padding: 10px 12px; border-radius: 10px; margin: 10px 0; font-size: 12px; }
.alert.error { background: var(--danger-soft); color: #9b2c25; border: 1px solid #ffd0ca; white-space: pre-line; }
.hidden { display: none !important; }
.muted { color: var(--muted); }

.login-body {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  isolation: isolate;
  background: #050b18;
  color: #eef4ff;
}
.login-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: url("/static/images/imagem-agenda-tela.png?v=1.7.0");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.4;
  filter: none;
  transform: none;
  image-rendering: auto;
}
.login-body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 48%, rgba(10, 28, 65, 0) 0%, rgba(2, 8, 24, .03) 65%, rgba(2, 6, 18, .08) 100%),
    linear-gradient(180deg, rgba(3, 10, 28, .01), rgba(2, 7, 20, .05));
}
.login-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 72px);
}
.login-form-panel {
  width: 100%;
  display: grid;
  place-items: center;
}
.login-card {
  position: relative;
  width: min(460px, 100%);
  padding: clamp(28px, 4vw, 42px);
  overflow: hidden;
  border: 1px solid rgba(146, 174, 255, .28);
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(13, 27, 55, .84) 0%, rgba(7, 18, 39, .92) 100%);
  box-shadow: 0 34px 90px rgba(0, 0, 0, .50), inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(24px) saturate(125%);
  -webkit-backdrop-filter: blur(24px) saturate(125%);
}
.login-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #2e73ff 30%, #8f55ff 70%, transparent);
  box-shadow: 0 0 28px rgba(60, 111, 255, .74);
}
.login-card-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  text-align: left;
}
.login-card-brand > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.login-card-brand strong {
  color: #f7faff;
  font-size: 15px;
  letter-spacing: -.01em;
}
.login-card-brand span:not(.login-card-symbol) {
  color: #9aa9c4;
  font-size: 10px;
}
.login-card-symbol {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(112, 149, 255, .40);
  border-radius: 14px;
  color: #b9ceff;
  background: linear-gradient(145deg, rgba(48, 101, 228, .34), rgba(102, 59, 218, .22));
  box-shadow: 0 12px 28px rgba(15, 65, 180, .24), inset 0 1px 0 rgba(255, 255, 255, .10);
}
.login-card-symbol svg { width: 23px; height: 23px; }
.login-card-heading { text-align: center; }
.login-card-heading .eyebrow {
  margin-bottom: 8px;
  color: #8eabf5;
}
.login-card-heading h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(27px, 4vw, 34px);
  line-height: 1.12;
  letter-spacing: -.04em;
}
.login-card-heading p {
  margin: 11px 0 25px;
  color: #a9b7cf;
  font-size: 13px;
  line-height: 1.55;
}
.login-card .alert.error {
  border-color: rgba(255, 104, 117, .34);
  background: rgba(128, 31, 46, .36);
  color: #ffd0d5;
}
.login-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 15px 0;
  color: #c8d4e8;
  font-size: 11px;
  font-weight: 650;
}
.login-form input {
  min-height: 49px;
  border-color: rgba(116, 143, 194, .36);
  background: rgba(4, 14, 33, .68);
  color: #f6f9ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}
.login-form input::placeholder { color: #70809d; }
.login-form input:focus {
  border-color: #628bff;
  background: rgba(8, 22, 49, .88);
  box-shadow: 0 0 0 4px rgba(68, 111, 232, .18), 0 0 24px rgba(43, 91, 219, .18);
}
.login-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 10px;
  justify-content: space-between;
  padding-inline: 18px;
  border-color: #4f7fff;
  background: linear-gradient(135deg, #2e6cf1 0%, #3758e8 54%, #6d44d8 100%);
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(34, 77, 203, .34);
}
.login-submit:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.login-submit svg { width: 18px; height: 18px; }
.login-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 22px 0 0;
  color: #8291aa;
  font-size: 10px;
}
.login-security span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3fd39a;
  box-shadow: 0 0 0 4px rgba(63, 211, 154, .10), 0 0 14px rgba(63, 211, 154, .42);
}

@media (max-width: 1120px) {
  .workspace-card { align-items: flex-start; }
  .workspace-actions { max-width: 560px; }
  .content-grid { grid-template-columns: minmax(0, 1fr) 280px; }
  .interaction-hint { display: none; }
}
@media (max-width: 930px) {
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: repeat(3, 1fr); }
  .calendar-panel { min-height: 560px; }
}
@media (max-width: 760px) {
  .topbar { height: 66px; padding: 0 14px; }
  .brand-copy span, .user-copy, .logout-button span { display: none; }
  .page-shell { padding: 12px; }
  .workspace-card { flex-direction: column; align-items: stretch; padding: 14px; }
  .date-navigation { align-items: flex-start; }
  .workspace-actions { justify-content: flex-start; }
  .workspace-actions .primary-button, .workspace-actions .secondary-button { flex: 1; }
  .filter-card { align-items: flex-start; flex-direction: column; }
  .filter-field { min-width: 100%; }
  .filter-field label { width: 100%; }
  .filter-field select { width: 100%; }
  .status-message { margin-left: 0; }
  .sidebar { grid-template-columns: 1fr; }
  .two-columns { grid-template-columns: 1fr; gap: 0; }
  .event-form { padding: 18px; }
  .dialog-actions { flex-wrap: wrap; }
  .dialog-actions .spacer { display: none; }
  .dialog-actions button { flex: 1; }
}
@media (max-width: 480px) {
  .period-label { white-space: normal; }
  .view-switcher { width: 100%; }
  .view-button { flex: 1; }
  .workspace-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .workspace-actions .view-switcher { grid-column: 1 / -1; }
  .login-shell { padding: 18px; }
  .login-card { padding: 26px 22px; border-radius: 21px; }
}

/* v1.3 — sincronização de agenda externa */
.import-button svg { width: 17px; height: 17px; }
.card-icon.green { color: #15805f; background: #e8f7f1; }
.import-status { display: grid; gap: 7px; color: var(--muted); font-size: 10px; }
.import-status-line { display: flex; align-items: center; gap: 8px; color: var(--text); }
.import-status small { display: block; overflow: hidden; color: #566173; text-overflow: ellipsis; white-space: nowrap; }
.import-status p { margin: 0; color: #667085; line-height: 1.45; }
.import-status > span { color: #98a1b1; }
.sync-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #aab2bf; box-shadow: 0 0 0 4px rgba(170,178,191,.12); }
.sync-dot.success { background: #22a06b; box-shadow: 0 0 0 4px rgba(34,160,107,.12); }
.sync-dot.unchanged { background: #315eea; box-shadow: 0 0 0 4px rgba(49,94,234,.10); }
.sync-dot.error { background: #d92d20; box-shadow: 0 0 0 4px rgba(217,45,32,.10); }
.event-pill.imported { border-style: dashed; }
.event-pill.imported::after { content: ""; position: absolute; right: 7px; bottom: 7px; width: 5px; height: 5px; border-radius: 50%; background: #22a06b; box-shadow: 0 0 0 3px rgba(34,160,107,.10); }
.imported-badge { display: inline-flex; align-items: center; margin-left: 4px; padding: 1px 5px; border: 1px solid rgba(21,128,95,.18); border-radius: 999px; color: #147a5c; background: rgba(232,247,241,.86); font-size: 7.5px; font-weight: 700; vertical-align: 1px; }
.alert.info { background: #eef4ff; color: #294b9b; border: 1px solid #d5e2ff; }
.alert.success { display: grid; gap: 5px; background: #eaf8f1; color: #176b50; border: 1px solid #cbeedc; }
.alert.success strong, .alert.success span { display: block; }
.import-dialog { width: min(700px, calc(100% - 24px)); }
.sync-explanation { margin-bottom: 18px; padding: 14px 15px; border: 1px solid #dce5f5; border-radius: 12px; background: #f7f9fd; }
.sync-explanation strong { display: block; margin-bottom: 5px; font-size: 12px; }
.sync-explanation p { margin: 0; color: #687386; font-size: 11px; line-height: 1.55; }
.file-field input[type="file"] { padding: 8px; }
.file-field small { color: #8a93a3; font-weight: 450; line-height: 1.45; }
.import-actions { flex-wrap: wrap; }

@media (max-width: 930px) {
  .sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .sidebar { grid-template-columns: 1fr; }
  .import-actions .spacer { display: none; }
  .import-actions button { width: 100%; }
}

/* v1.4 — fonte externa da Faculdade e link automático */
.source-title-link {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  max-width: 100%;
  color: var(--text);
  text-decoration: none;
  transition: color .16s ease;
}
.source-title-link:hover { color: var(--primary); }
.source-title-link:focus-visible {
  outline: 3px solid rgba(49,94,234,.14);
  outline-offset: 3px;
  border-radius: 5px;
}
.source-title-link svg { width: 13px; height: 13px; flex: none; }
.import-card .card-heading > div { min-width: 0; }
.import-card .card-heading h3 {
  display: -webkit-box;
  overflow: hidden;
  max-width: 225px;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.source-dialog-link {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  color: #294b9b;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}
.source-dialog-link:hover { text-decoration: underline; }

/* v1.5.7 — uma única ocorrência visual da agenda externa compartilhada */
.faculty-participants-label {
  display: block;
  margin-top: 4px;
  color: #6b4bc3;
  font-size: 9px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.faculty-continuation { color: #7e8796; }
.import-card .card-heading h3 {
  display: block;
  max-width: 225px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: normal;
  -webkit-line-clamp: initial;
}
.source-title-link { align-items: center; }


/* v1.5.8 — refinamentos visuais do cabeçalho e da sincronização */
.compact-user-area {
  gap: 10px;
}
.session-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #667085;
  font-size: 12px;
  font-weight: 650;
}
.session-pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22a06b;
  box-shadow: 0 0 0 4px rgba(34,160,107,.12);
}
.single-user-label {
  color: #667085;
  font-weight: 650;
}
.import-card {
  overflow: hidden;
}
.import-card .card-heading {
  align-items: flex-start;
}
.source-title-caption {
  margin: 6px 0 0;
  color: #98a1b1;
  font-size: 10.5px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.import-status {
  display: grid;
  gap: 12px;
  color: var(--muted);
  font-size: 10.5px;
}
.sync-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #dde3ed;
  background: #f8fafc;
  color: #475467;
  font-size: 11px;
  font-weight: 700;
}
.status-pill .sync-dot {
  box-shadow: none;
  width: 8px;
  height: 8px;
}
.status-pill.success {
  background: #ecfdf3;
  border-color: #c6f0d5;
  color: #087443;
}
.status-pill.unchanged {
  background: #eef4ff;
  border-color: #d6e2ff;
  color: #294b9b;
}
.status-pill.error {
  background: #fff1f2;
  border-color: #ffd3d8;
  color: #b42318;
}
.status-pill.never {
  background: #f5f7fa;
  border-color: #e5e7eb;
  color: #667085;
}
.sync-check {
  color: #98a1b1;
  font-size: 10.5px;
}
.sync-stat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.sync-stat-card {
  padding: 12px 13px;
  border: 1px solid #edf0f5;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
}
.sync-stat-card span {
  display: block;
  color: #98a1b1;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.sync-stat-card strong {
  display: block;
  margin-top: 6px;
  color: #101828;
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: -.01em;
}
.sync-stat-card small {
  display: block;
  margin-top: 5px;
  color: #667085;
  line-height: 1.45;
  white-space: normal;
  overflow: visible;
}


/* v1.5.9 — refinamento do dashboard e usuário administrativo fora da grade */
.page-shell {
  width: min(1720px, 100%);
  padding: 24px 28px 40px;
}
.topbar {
  box-shadow: 0 10px 34px rgba(15, 23, 42, .05);
}
.brand-symbol {
  box-shadow: inset 0 0 0 1px #dfe7ff, 0 8px 22px rgba(49, 94, 234, .10);
}
.workspace-card {
  padding: 18px 20px;
  border-color: #e7ebf2;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .05);
}
.filter-card {
  padding: 14px 16px;
  border-color: #e7ebf2;
}
.content-grid {
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
}
.calendar-card, .side-card {
  border-color: #e7ebf2;
  box-shadow: 0 16px 42px rgba(15, 23, 42, .05);
}
.calendar-card-header {
  min-height: 78px;
  padding: 18px 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}
.calendar-card-header h2 {
  font-size: 17px;
}
.calendar-panel {
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
}
.sidebar {
  gap: 16px;
  position: sticky;
  top: 92px;
}
.side-card {
  padding: 18px;
  border-radius: 18px;
}
.summary-card, .upcoming-card, .import-card, .legend-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}
.card-heading {
  margin-bottom: 16px;
}
.card-heading h3 {
  font-size: 15px;
}
.summary-grid {
  gap: 10px;
}
.summary-stat {
  min-height: 92px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}
.import-card .card-heading {
  padding-bottom: 2px;
  border-bottom: 1px solid #eef2f7;
}
.import-card .card-heading h3 {
  max-width: 100%;
  white-space: normal;
  overflow: visible;
  text-overflow: initial;
  line-height: 1.25;
}
.import-status {
  gap: 14px;
}
.sync-stat-grid {
  gap: 12px;
}
.sync-stat-card {
  border-radius: 16px;
  border-color: #edf1f6;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.legend-card .legend-list {
  gap: 12px 10px;
}
.day-header {
  background: #fcfdff;
}
.day-header > div, .day-row > div {
  border-right-color: #eef2f6;
}
.day-row {
  border-bottom-color: #eef2f6;
}
.time-cell {
  background: #fcfdff;
  font-size: 11px;
}
.slot-cell:hover {
  box-shadow: inset 0 0 0 1px #d8e3ff;
}
.event-pill, @media (max-width: 1120px) {
  .content-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}
@media (max-width: 930px) {
  .sidebar {
    position: static;
    top: auto;
  }
}

/* v1.5.12 — menu administrativo vertical e tema noturno suave */
.dark-agenda {
  --rail-collapsed-width: 58px;
  --rail-expanded-width: 196px;
  --bg: #0b1220;
  --panel: #111a2b;
  --panel-soft: #151f32;
  --line: #243149;
  --line-strong: #33415c;
  --text: #edf3ff;
  --muted: #a9b5c9;
  --subtle: #7f8ca4;
  --primary: #5f83ff;
  --primary-hover: #7695ff;
  --primary-soft: rgba(95, 131, 255, .14);
  --free: #111a2b;
  --free-hover: #17233a;
  --block: #252f41;
  --appointment: #172d50;
  --shared: #2b2348;
  --danger: #ff7d86;
  --danger-soft: rgba(217, 45, 32, .13);
  --success: #48d597;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .20), 0 12px 30px rgba(0, 0, 0, .14);
  --shadow-md: 0 24px 70px rgba(0, 0, 0, .42);
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% -10%, rgba(55, 88, 170, .20), transparent 30%),
    radial-gradient(circle at 100% 12%, rgba(73, 57, 141, .13), transparent 28%),
    #0b1220;
  color: var(--text);
}

.dark-agenda .admin-rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: var(--rail-collapsed-width);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 10px 8px;
  overflow: hidden;
  border-right: 1px solid #25324a;
  background: linear-gradient(180deg, #101a2f 0%, #0c1528 100%);
  box-shadow: 16px 0 40px rgba(0, 0, 0, .16);
  transition: width .22s ease;
  transition-delay: 0s;
}

.dark-agenda .admin-rail:hover {
  width: var(--rail-expanded-width);
  transition-delay: 1s;
}

.dark-agenda .rail-top,
.dark-agenda .rail-bottom {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}

.dark-agenda .rail-brand {
  position: relative;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: none;
  overflow: hidden;
  border: 1px solid #45619b;
  border-radius: 13px;
  background: linear-gradient(145deg, #1b3766, #14284c);
  color: #dce8ff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 10px 24px rgba(0,0,0,.22);
  transition: width .22s ease, padding .22s ease;
  transition-delay: 0s;
}

.dark-agenda .rail-brand-monogram {
  width: 40px;
  flex: 0 0 40px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.03em;
}

.dark-agenda .admin-rail:hover .rail-brand {
  width: calc(var(--rail-expanded-width) - 16px);
  padding-right: 8px;
  transition-delay: 1s;
}

.dark-agenda .rail-divider {
  width: 32px;
  height: 1px;
  margin: 2px 0 3px;
  background: #2a3750;
  transition: width .22s ease;
  transition-delay: 0s;
}

.dark-agenda .admin-rail:hover .rail-divider {
  width: calc(var(--rail-expanded-width) - 34px);
  transition-delay: 1s;
}

.dark-agenda .rail-item,
.dark-agenda .rail-login-summary {
  position: relative;
  width: 42px;
  height: 42px;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: none;
  gap: 12px;
  padding: 0 10px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #91a0ba;
  transition: width .22s ease, color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease;
  transition-delay: 0s;
}

.dark-agenda .admin-rail:hover .rail-item,
.dark-agenda .admin-rail:hover .rail-login-summary {
  width: calc(var(--rail-expanded-width) - 16px);
  transition-delay: 1s, 0s, 0s, 0s, 0s;
}

.dark-agenda .rail-item svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.dark-agenda button.rail-item:hover,
.dark-agenda .rail-item.active {
  color: #f5f8ff;
  border-color: #3458a2;
  background: linear-gradient(145deg, #315fd4, #2448a5);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(27, 72, 179, .28);
}

.dark-agenda .rail-logout {
  color: #ffabb0;
  border-color: rgba(255, 111, 121, .22);
  background: rgba(151, 36, 47, .12);
}

.dark-agenda .rail-logout:hover {
  color: #fff;
  border-color: rgba(255, 111, 121, .48);
  background: rgba(173, 48, 59, .34);
  box-shadow: 0 8px 20px rgba(104, 26, 34, .24);
}

.dark-agenda .rail-profile {
  color: #c4b5fd;
  border-color: rgba(139, 92, 246, .20);
  background: rgba(91, 33, 182, .10);
}

.dark-agenda .rail-profile:hover {
  color: #fff;
  border-color: rgba(139, 92, 246, .46);
  background: linear-gradient(145deg, #6d45c7, #4b2d91);
  box-shadow: 0 8px 20px rgba(67, 38, 126, .28);
}

.dark-agenda .rail-login-summary {
  border-color: #263750;
  background: rgba(10, 22, 42, .72);
  color: #cbd7e9;
}

.dark-agenda .rail-login-summary i {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #47d99a;
  box-shadow: 0 0 0 5px rgba(71, 217, 154, .11);
}

.dark-agenda .rail-label {
  min-width: 0;
  overflow: hidden;
  opacity: 0;
  color: #dce6f6;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: translateX(-5px);
  transition: opacity .14s ease, transform .14s ease;
  transition-delay: 0s;
}

.dark-agenda .admin-rail:hover .rail-label {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 1s;
}

.dark-agenda .rail-user-label {
  max-width: 132px;
}

.dark-agenda .rail-bottom form {
  width: 100%;
  display: flex;
  justify-content: center;
}

.dark-agenda [data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  translate: 0 -50%;
  z-index: 60;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  white-space: nowrap;
  padding: 7px 9px;
  border: 1px solid #34415a;
  border-radius: 8px;
  background: #111a2b;
  color: #eaf0fb;
  font-size: 11px;
  font-weight: 650;
  box-shadow: 0 10px 26px rgba(0,0,0,.30);
  transition: opacity .14s ease, visibility .14s ease;
}

.dark-agenda [data-tooltip]:hover::after,
.dark-agenda [data-tooltip]:focus-visible::after {
  opacity: 1;
  visibility: visible;
}

.dark-agenda .topbar {
  left: var(--rail-collapsed-width);
  width: calc(100% - var(--rail-collapsed-width));
  height: 64px;
  padding: 0 26px;
  border-bottom-color: rgba(48, 62, 88, .78);
  background: rgba(13, 22, 39, .91);
  backdrop-filter: blur(20px);
  box-shadow: 0 12px 34px rgba(0,0,0,.16);
}

.dark-agenda .brand-symbol {
  width: 36px;
  height: 36px;
  color: #8eaaff;
  border-radius: 11px;
  background: rgba(73, 106, 196, .13);
  box-shadow: inset 0 0 0 1px #30446e;
}

.dark-agenda .brand-copy strong { color: #f5f7fd; }
.dark-agenda .brand-copy span { color: #8390a8; }

.dark-agenda .page-shell {
  width: min(1720px, calc(100% - var(--rail-collapsed-width)));
  margin: 0 0 0 var(--rail-collapsed-width);
  padding: 18px 24px 34px;
}

.dark-agenda .workspace-card,
.dark-agenda .filter-card,
.dark-agenda .calendar-card,
.dark-agenda .side-card {
  border-color: #26344d;
  background: linear-gradient(180deg, rgba(18, 29, 48, .98) 0%, rgba(15, 25, 42, .98) 100%);
  box-shadow: 0 16px 44px rgba(0,0,0,.16);
}

.dark-agenda .workspace-card {
  min-height: 76px;
  margin-bottom: 10px;
  padding: 12px 16px;
}

.dark-agenda .filter-card {
  margin-bottom: 12px;
  padding: 10px 14px;
}

.dark-agenda .period-label,
.dark-agenda .calendar-card-header h2,
.dark-agenda .card-heading h3,
.dark-agenda .event-pill strong,
.dark-agenda .summary-stat strong,
.dark-agenda .upcoming-row strong,
.dark-agenda .source-title-link {
  color: #edf3ff;
}

.dark-agenda .eyebrow,
.dark-agenda .interaction-hint,
.dark-agenda .filter-field,
.dark-agenda .filter-field label,
.dark-agenda .live-indicator,
.dark-agenda .upcoming-row span,
.dark-agenda .empty-state,
.dark-agenda .legend-list > div,
.dark-agenda .source-title-caption,
.dark-agenda .sync-check,
.dark-agenda .sync-stat-card small,
.dark-agenda .import-status,
.dark-agenda .muted {
  color: #8e9bb2;
}

.dark-agenda .primary-button,
.dark-agenda .secondary-button,
.dark-agenda .ghost-button,
.dark-agenda .view-button,
.dark-agenda .icon-button,
.dark-agenda .danger-button {
  border-color: #33425e;
  background: #162238;
  color: #dce5f5;
}

.dark-agenda .primary-button {
  border-color: #5275dc;
  background: linear-gradient(145deg, #4f78ee, #365ac7);
  color: #fff;
  box-shadow: 0 9px 24px rgba(45, 83, 188, .26);
}

.dark-agenda .secondary-button:hover,
.dark-agenda .icon-button:hover,
.dark-agenda .ghost-button:hover {
  border-color: #4a5d7e;
  background: #1b2a44;
}

.dark-agenda .view-switcher {
  border-color: #344664;
  background: #0c1728;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.dark-agenda .view-button {
  border-color: transparent;
  background: transparent;
  color: #aab7cd;
}

.dark-agenda .view-button.active {
  color: #ffffff;
  border-color: #3d5f94;
  background: linear-gradient(180deg, #294469 0%, #223957 100%);
  box-shadow: 0 5px 14px rgba(0,0,0,.27), inset 0 1px 0 rgba(255,255,255,.055);
}
.dark-agenda .view-button:hover:not(.active) { background: #182944; color: #edf3ff; }

.dark-agenda .field-icon {
  color: #8ca8ff;
  background: rgba(85, 119, 220, .13);
}

.dark-agenda .filter-field select,
.dark-agenda .event-form input,
.dark-agenda .event-form select,
.dark-agenda .event-form textarea,
.dark-agenda .stack-form input {
  border-color: #35435d;
  background: #0e1829;
  color: #e8eef9;
}

.dark-agenda .filter-field select:focus,
.dark-agenda .event-form input:focus,
.dark-agenda .event-form select:focus,
.dark-agenda .event-form textarea:focus,
.dark-agenda .stack-form input:focus {
  border-color: #6688ef;
  box-shadow: 0 0 0 4px rgba(80, 119, 235, .13);
}

.dark-agenda .calendar-card-header {
  min-height: 68px;
  border-bottom-color: #26344d;
  background: linear-gradient(180deg, #141f33 0%, #111b2d 100%);
}

.dark-agenda .calendar-panel {
  min-height: 665px;
  background: #0f192a;
}

.dark-agenda .day-header,
.dark-agenda .month-weekday,
.dark-agenda .week-day h4 {
  color: #c7d1e2;
  border-color: #29364d;
  background: #121d30;
}

.dark-agenda .day-header > div,
.dark-agenda .day-row > div,
.dark-agenda .week-day,
.dark-agenda .month-day,
.dark-agenda .month-weekday {
  border-color: #243149;
}

.dark-agenda .day-row {
  border-bottom-color: #243149;
}

.dark-agenda .day-row:nth-child(odd) .slot-cell,
.dark-agenda .slot-cell,
.dark-agenda .month-day,
.dark-agenda .week-day {
  background: #101a2b;
}

.dark-agenda .slot-cell:hover,
.dark-agenda .month-day:hover {
  background: #17233a;
  box-shadow: inset 0 0 0 1px #344a79;
}

.dark-agenda .time-cell {
  color: #8390a8;
  background: #121d30;
}

.dark-agenda .occupied-continuation,
.dark-agenda .faculty-continuation {
  color: #8390a8;
}

.dark-agenda .event-pill {
  border-color: #35537d;
  background: #183052;
  color: #eaf2ff;
}

.dark-agenda .event-pill.block {
  border-color: #46536a;
  background: #273143;
}

.dark-agenda .event-pill.shared,
.dark-agenda .event-pill.imported {
  border-color: #684fa1;
  background: #2c244a;
}

.dark-agenda .event-pill small {
  color: #a8b4c9;
}

.dark-agenda .summary-stat,
.dark-agenda .sync-stat-card {
  border-color: #2a3851;
  background: linear-gradient(180deg, #162238 0%, #121d30 100%);
}

.dark-agenda .summary-stat span,
.dark-agenda .sync-stat-card span {
  color: #8996ac;
}

.dark-agenda .upcoming-row { border-bottom-color: transparent; }

.dark-agenda .card-icon.blue { color: #91aaff; background: rgba(79, 120, 238, .15); }
.dark-agenda .card-icon.violet { color: #bda8ff; background: rgba(128, 91, 219, .15); }
.dark-agenda .card-icon.green { color: #72e3b7; background: rgba(40, 168, 121, .14); }
.dark-agenda .card-icon.neutral { color: #a9b5c9; background: #202b3d; }

.dark-agenda .status-pill {
  border-color: #33425e;
  background: #172238;
  color: #cbd5e5;
}

.dark-agenda .status-pill.success {
  border-color: rgba(64, 196, 137, .35);
  background: rgba(30, 126, 86, .18);
  color: #85e5b8;
}

.dark-agenda .status-pill.unchanged {
  border-color: rgba(87, 127, 235, .38);
  background: rgba(52, 83, 170, .20);
  color: #a9bdff;
}

.dark-agenda .status-pill.error {
  border-color: rgba(224, 82, 94, .38);
  background: rgba(151, 42, 52, .19);
  color: #ffadb4;
}

.dark-agenda .source-title-link:hover { color: #91aaff; }

.dark-agenda .legend-swatch.free { background: #101a2b; border-color: #3a4861; }
.dark-agenda .legend-swatch.block { background: #273143; border-color: #4b586d; }
.dark-agenda .legend-swatch.appointment { background: #183052; border-color: #35537d; }
.dark-agenda .legend-swatch.shared { background: #2c244a; border-color: #684fa1; }

.dark-agenda .event-dialog {
  border: 1px solid #34415b;
  background: #111a2b;
  color: #edf3ff;
  box-shadow: 0 30px 100px rgba(0,0,0,.58);
}

.dark-agenda .event-dialog::backdrop {
  background: rgba(2, 7, 18, .76);
  backdrop-filter: blur(5px);
}

.dark-agenda .close-button {
  border-color: #34415b;
  background: #19253a;
}

.dark-agenda fieldset {
  border-color: #33415a;
}

.dark-agenda fieldset legend,
.dark-agenda .form-field {
  color: #aeb9cb;
}

.dark-agenda .participant-list label {
  border-color: #35435d;
  background: #141f33;
  color: #b7c2d4;
}

.dark-agenda .participant-list label:has(input:checked) {
  border-color: #5879da;
  background: rgba(69, 104, 204, .17);
  color: #c8d6ff;
}

.dark-agenda .sync-explanation,
.dark-agenda .alert.info,
.dark-agenda .alert.success {
  border-color: #33425e;
  background: #17243a;
  color: #b9c8df;
}

.dark-agenda .alert.error {
  border-color: rgba(255, 101, 112, .34);
  background: rgba(151, 42, 52, .19);
  color: #ffb0b6;
}

@media (max-width: 930px) {
  .dark-agenda .content-grid { grid-template-columns: 1fr; }
  .dark-agenda .sidebar { position: static; }
}

@media (max-width: 760px) {
  .dark-agenda .admin-rail,
  .dark-agenda .admin-rail:hover {
    inset: auto 0 0 0;
    width: 100%;
    height: 68px;
    flex-direction: row;
    padding: 8px 12px;
    border-top: 1px solid #25324a;
    border-right: 0;
    box-shadow: 0 -14px 36px rgba(0,0,0,.26);
  }
  .dark-agenda .rail-top,
  .dark-agenda .rail-bottom {
    width: auto;
    flex-direction: row;
    gap: 7px;
  }
  .dark-agenda .rail-brand,
  .dark-agenda .admin-rail:hover .rail-brand,
  .dark-agenda .rail-item,
  .dark-agenda .admin-rail:hover .rail-item,
  .dark-agenda .rail-login-summary,
  .dark-agenda .admin-rail:hover .rail-login-summary {
    width: 43px;
    height: 43px;
    min-height: 43px;
    padding: 0 10px;
    transition-delay: 0s;
  }
  .dark-agenda .rail-divider,
  .dark-agenda .admin-rail:hover .rail-divider { width: 0; }
  .dark-agenda .rail-brand { display: none; }
  .dark-agenda [data-tooltip]::after { display: none; }
  .dark-agenda .topbar {
    left: 0;
    width: 100%;
    height: 62px;
  }
  .dark-agenda .page-shell {
    width: 100%;
    margin-left: 0;
    padding: 12px 12px 86px;
  }
  .dark-agenda .workspace-card { min-height: auto; }
}


/* v1.5.13 — topo removido e contraste aprimorado */
.topbar { display: none !important; }
.page-shell { padding-top: 14px; }
.sidebar { top: 18px; }
.import-card .card-heading { margin-bottom: 12px; padding-bottom: 10px; }
.sync-stat-card { padding: 14px 14px; }
.sync-stat-card strong { font-size: 28px; line-height: 1.08; letter-spacing: -.03em; font-weight: 800; }
.sync-stat-card small { margin-top: 7px; font-size: 12px; }
.dark-agenda .page-shell { width: min(1720px, calc(100% - var(--rail-collapsed-width))); margin: 0 0 0 var(--rail-collapsed-width); padding: 12px 24px 34px; }
.dark-agenda .sidebar { top: 12px; }
.dark-agenda .sync-stat-card { border-color: #31486e; background: linear-gradient(180deg, #1a2942 0%, #152236 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 12px 30px rgba(0,0,0,.18); }
.dark-agenda .sync-stat-card span { color: #9fb2d4; }
.dark-agenda .sync-stat-card strong { color: #f8fbff; text-shadow: 0 1px 0 rgba(0,0,0,.28); }
.dark-agenda .sync-stat-card small { color: #c2d0e7; }
.dark-agenda .import-card .card-heading { border-bottom-color: #2f4362; }
.dark-agenda .import-card .card-heading h3 { color: #f7faff; }
@media (max-width: 760px) {
  .page-shell { padding-top: 10px; }
  .dark-agenda .page-shell { width: 100%; margin-left: 0; padding: 10px 12px 86px; }
  .sidebar { top: 0; }
}


/* v1.5.14 — correção definitiva: sem topo e contraste alto */
html,
body,
.app-body {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.topbar,
.dark-agenda .topbar {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

.dark-agenda .page-shell {
  width: min(1720px, calc(100% - var(--rail-collapsed-width))) !important;
  margin: 0 0 0 var(--rail-collapsed-width) !important;
  padding: 8px 24px 34px !important;
}

.dark-agenda .sidebar {
  top: 8px !important;
}

.dark-agenda .import-card .card-heading {
  margin-bottom: 12px !important;
  padding-bottom: 11px !important;
  border-bottom: 1px solid #385076 !important;
}

.dark-agenda .sync-stat-card {
  padding: 15px !important;
  border-color: #3a5278 !important;
  background: linear-gradient(180deg, #1b2b45 0%, #16243a 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 12px 28px rgba(0,0,0,.22) !important;
  opacity: 1 !important;
}

.dark-agenda .sync-stat-card span {
  color: #b6c7e4 !important;
  opacity: 1 !important;
}

.dark-agenda .sync-stat-card strong {
  display: block !important;
  margin-top: 7px !important;
  color: #ffffff !important;
  opacity: 1 !important;
  font-size: 29px !important;
  font-weight: 850 !important;
  line-height: 1.05 !important;
  letter-spacing: -.035em !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.38) !important;
}

.dark-agenda .sync-stat-card small {
  display: block !important;
  margin-top: 8px !important;
  color: #d1dcef !important;
  opacity: 1 !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}

.dark-agenda .sync-overview,
.dark-agenda .sync-check,
.dark-agenda .status-pill {
  opacity: 1 !important;
}

@media (max-width: 760px) {
  .dark-agenda .page-shell {
    width: 100% !important;
    margin-left: 0 !important;
    padding: 8px 12px 86px !important;
  }
}


/* v1.6.0 — Agenda Privada */
.privacy-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-soft);
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.privacy-option:hover {
  border-color: #b9c8f5;
  background: #f5f8ff;
}
.privacy-option > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.privacy-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #667085;
  background: #edf0f5;
}
.privacy-icon svg { width: 18px; height: 18px; }
.privacy-copy { min-width: 0; }
.privacy-copy strong,
.privacy-copy small { display: block; }
.privacy-copy strong { color: var(--text); font-size: 12px; }
.privacy-copy small { margin-top: 3px; color: var(--muted); font-size: 10.5px; line-height: 1.4; }
.privacy-switch {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #c9d0dc;
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.08);
  transition: background .16s ease;
}
.privacy-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15,23,42,.22);
  transition: transform .16s ease;
}
.privacy-option:has(input:checked) {
  border-color: #8aa5f5;
  background: #eef3ff;
  box-shadow: 0 0 0 3px rgba(49,94,234,.08);
}
.privacy-option:has(input:checked) .privacy-icon { color: #315eea; background: #dfe8ff; }
.privacy-option:has(input:checked) .privacy-switch { background: #315eea; }
.privacy-option:has(input:checked) .privacy-switch::after { transform: translateX(18px); }
#participantFieldset.privacy-locked { opacity: .58; }
#participantFieldset.privacy-locked::after {
  content: "Na agenda privada, somente você participa.";
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 10px;
}
.private-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  padding: 1px 5px;
  border: 1px solid rgba(111,82,204,.24);
  border-radius: 999px;
  color: #6b4bc3;
  background: rgba(241,235,255,.92);
  font-size: 7.5px;
  font-weight: 750;
  vertical-align: 1px;
}
.event-pill.private {
  border-color: #765ac2;
  background: #f2edff;
}
.event-pill.private::before { background: #765ac2; }
.dark-agenda .privacy-option {
  border-color: #33425e;
  background: linear-gradient(180deg, #17243a 0%, #141f33 100%);
}
.dark-agenda .privacy-option:hover { border-color: #526b9e; background: #1a2943; }
.dark-agenda .privacy-icon { color: #a9b8d3; background: #202d43; }
.dark-agenda .privacy-copy strong { color: #eef4ff; }
.dark-agenda .privacy-copy small { color: #9aa9c2; }
.dark-agenda .privacy-switch { background: #42506a; }
.dark-agenda .privacy-option:has(input:checked) {
  border-color: #6486ea;
  background: linear-gradient(180deg, #1e3152 0%, #192945 100%);
  box-shadow: 0 0 0 3px rgba(80,119,235,.11);
}
.dark-agenda .privacy-option:has(input:checked) .privacy-icon { color: #b6c8ff; background: #29487d; }
.dark-agenda .privacy-option:has(input:checked) .privacy-switch { background: #5a7fe8; }
.dark-agenda .private-badge {
  border-color: rgba(175,149,255,.35);
  color: #d8caff;
  background: rgba(100,72,174,.28);
}
.dark-agenda .event-pill.private {
  border-color: #725bb3;
  background: #312750;
}


/* v1.6.1 — marcador privado bloqueado e duração inicial inteligente */
.event-pill.private-placeholder {
  cursor: not-allowed;
  border-color: #a5adba;
  background: repeating-linear-gradient(135deg, #eef1f5 0, #eef1f5 8px, #e5e9ef 8px, #e5e9ef 16px);
  color: #465164;
  user-select: none;
}
.event-pill.private-placeholder::before { background: #7d8aa3; }
.event-pill.private-placeholder:hover {
  transform: none;
  box-shadow: none;
}
.event-pill.private-placeholder strong {
  display: flex;
  align-items: center;
  gap: 5px;
}
.private-lock { font-size: 10px; line-height: 1; }
.private-continuation {
  cursor: not-allowed;
  color: #707b8e;
  user-select: none;
}
.dark-agenda .event-pill.private-placeholder {
  border-color: #516078;
  background: repeating-linear-gradient(135deg, #202c40 0, #202c40 8px, #1a2537 8px, #1a2537 16px);
  color: #d3dcec;
}
.dark-agenda .event-pill.private-placeholder::before { background: #8190aa; }
.dark-agenda .event-pill.private-placeholder small,
.dark-agenda .private-continuation { color: #aebbd0; }

/* v1.6.4 — fundo original nítido com marca d'água leve */
.login-card {
  background: linear-gradient(160deg, rgba(13, 27, 55, .90) 0%, rgba(7, 18, 39, .95) 100%);
  box-shadow: 0 34px 90px rgba(0, 0, 0, .58), inset 0 1px 0 rgba(255, 255, 255, .07);
}


/* v1.7.0 — perfil próprio, login resumido e confirmação por senha atual */
.profile-dialog {
  width: min(720px, calc(100% - 24px));
}

.dialog-description {
  max-width: 520px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.profile-current-login {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel-soft);
}

.profile-current-dot {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(72, 213, 151, .11);
}

.profile-current-login div {
  min-width: 0;
}

.profile-current-login small,
.profile-current-login strong {
  display: block;
}

.profile-current-login small {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.profile-current-login strong {
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-password-section {
  margin: 4px 0 16px;
  padding: 15px 15px 2px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-soft);
}

.profile-section-title {
  margin-bottom: 12px;
  color: var(--text);
  font-size: 12px;
  font-weight: 750;
}

.profile-section-title span {
  margin-left: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.profile-current-password {
  margin-top: 4px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--line));
  border-radius: 14px;
  background: color-mix(in srgb, var(--primary-soft) 58%, var(--panel));
}

.profile-dialog .form-field small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
}

.dark-agenda .profile-current-login,
.dark-agenda .profile-password-section {
  border-color: #31415b;
  background: #121e31;
}

.dark-agenda .profile-current-password {
  border-color: #405a91;
  background: rgba(48, 76, 135, .14);
}

.dark-agenda .profile-current-login strong,
.dark-agenda .profile-section-title {
  color: #eef4ff;
}

.dark-agenda .dialog-description,
.dark-agenda .profile-current-login small,
.dark-agenda .profile-section-title span,
.dark-agenda .profile-dialog .form-field small {
  color: #91a0b8;
}

@media (max-width: 760px) {
  .dark-agenda .rail-login-summary {
    width: 43px;
    min-width: 43px;
    height: 43px;
    min-height: 43px;
    padding: 0 10px;
  }

  .dark-agenda .rail-label,
  .dark-agenda .admin-rail:hover .rail-label {
    display: none;
  }

  .profile-dialog .two-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1080px) {
  .availability-status span { display: none; }
  .availability-status { padding: 4px; }
}

/* v1.7.1 — barra compacta expansível e disponibilidade atual */


/* v1.7.3 — blocos segmentados nos intervalos ocupados */
.slot-cell.occupied-slot {
  cursor: default;
  background: var(--free) !important;
  box-shadow: none !important;
}

.slot-cell.occupied-start-slot {
  background: var(--free) !important;
}

.slot-cell.occupied-start-slot > .event-pill,
.slot-cell.occupied-start-slot > 
.slot-cell.occupied-continuation-slot {
  position: relative;
  isolation: isolate;
  background: var(--free) !important;
  box-shadow: none !important;
}

.slot-cell.occupied-continuation-slot::before {
  content: "";
  position: absolute;
  inset: 7px 9px;
  z-index: 0;
  pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--occupied-color) 62%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--occupied-color) 25%, var(--free));
  box-shadow: inset 3px 0 0 color-mix(in srgb, var(--occupied-color) 92%, transparent);
}

.slot-cell.occupied-slot:empty::after {
  display: none !important;
}

.slot-cell.occupied-slot:hover,
.slot-cell.occupied-continuation-slot:hover {
  background: var(--free) !important;
  box-shadow: none !important;
}

.slot-cell.occupied-continuation-slot:hover::before {
  background: color-mix(in srgb, var(--occupied-color) 29%, var(--free));
  border-color: color-mix(in srgb, var(--occupied-color) 72%, transparent);
}

.current-time-row .time-cell {
  color: #4d7cff;
  font-weight: 800;
}

.current-time-row .time-cell::after {
  content: "agora";
  margin-left: 5px;
  color: #6f8fe8;
  font-size: 8px;
  font-weight: 750;
  text-transform: uppercase;
}

.dark-agenda .slot-cell.occupied-slot,
.dark-agenda .slot-cell.occupied-start-slot,
.dark-agenda .slot-cell.occupied-continuation-slot {
  background: #101a2b !important;
  box-shadow: none !important;
}

.dark-agenda .slot-cell.occupied-continuation-slot::before {
  border-color: color-mix(in srgb, var(--occupied-color) 72%, transparent);
  background: color-mix(in srgb, var(--occupied-color) 34%, #101a2b);
  box-shadow: inset 3px 0 0 color-mix(in srgb, var(--occupied-color) 96%, transparent);
}

.dark-agenda .slot-cell.occupied-slot:hover,
.dark-agenda .slot-cell.occupied-continuation-slot:hover {
  background: #101a2b !important;
}

.dark-agenda .slot-cell.occupied-continuation-slot:hover::before {
  background: color-mix(in srgb, var(--occupied-color) 39%, #101a2b);
  border-color: color-mix(in srgb, var(--occupied-color) 82%, transparent);
}

.dark-agenda .current-time-row .time-cell {
  color: #8eaaff;
}


/* v1.7.4 — continuação herda a cor e abre o compromisso pai */
.slot-cell.occupied-continuation-slot[data-parent-event-id] {
  cursor: pointer;
}

.slot-cell.occupied-continuation-slot[data-parent-event-id]::before {
  pointer-events: none;
}

.slot-cell.occupied-continuation-slot[data-parent-event-id]:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--occupied-color) 78%, white);
  outline-offset: -3px;
}

.slot-cell.occupied-private-placeholder {
  cursor: not-allowed;
}


/* v1.7.6 — medidor térmico minimalista dos próximos compromissos */
.upcoming-row.upcoming-heat-yellow {
  border-color: rgba(202, 160, 23, .18);
  background: linear-gradient(90deg, rgba(202, 160, 23, .105), rgba(202, 160, 23, .025) 78%);
  box-shadow: inset 3px 0 0 rgba(202, 160, 23, .56);
}
.upcoming-row.upcoming-heat-orange {
  border-color: rgba(224, 126, 37, .18);
  background: linear-gradient(90deg, rgba(224, 126, 37, .105), rgba(224, 126, 37, .025) 78%);
  box-shadow: inset 3px 0 0 rgba(224, 126, 37, .58);
}
.upcoming-row.upcoming-heat-red {
  border-color: rgba(210, 72, 79, .18);
  background: linear-gradient(90deg, rgba(210, 72, 79, .11), rgba(210, 72, 79, .025) 78%);
  box-shadow: inset 3px 0 0 rgba(210, 72, 79, .60);
}
.upcoming-row.upcoming-heat-neutral { border-color: transparent; background: transparent; }
.dark-agenda .upcoming-row.upcoming-heat-yellow {
  border-color: rgba(218, 178, 58, .18);
  background: linear-gradient(90deg, rgba(188, 144, 28, .13), rgba(188, 144, 28, .025) 78%);
  box-shadow: inset 3px 0 0 rgba(218, 178, 58, .62);
}
.dark-agenda .upcoming-row.upcoming-heat-orange {
  border-color: rgba(232, 139, 55, .18);
  background: linear-gradient(90deg, rgba(202, 104, 27, .14), rgba(202, 104, 27, .025) 78%);
  box-shadow: inset 3px 0 0 rgba(232, 139, 55, .64);
}
.dark-agenda .upcoming-row.upcoming-heat-red {
  border-color: rgba(224, 91, 101, .18);
  background: linear-gradient(90deg, rgba(190, 55, 66, .14), rgba(190, 55, 66, .025) 78%);
  box-shadow: inset 3px 0 0 rgba(224, 91, 101, .66);
}

/* v1.8.0 — lembretes por e-mail no perfil */
.profile-email-section {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #dbe4f1;
  border-radius: 16px;
  background: #f8fbff;
}

.profile-reminder-option {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 12px 14px;
  border: 1px solid #d7e2f1;
  border-radius: 14px;
  background: #ffffff;
  cursor: pointer;
}

.profile-reminder-option > input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.profile-reminder-icon {
  display: grid;
  place-items: center;
  inline-size: 42px;
  block-size: 42px;
  border-radius: 12px;
  background: #e9f0ff;
  color: #315eea;
  font-size: 18px;
}

.profile-reminder-copy {
  display: grid;
  gap: 3px;
}

.profile-reminder-copy strong {
  color: #14213d;
  font-size: 13px;
}

.profile-reminder-copy small {
  color: #65738c;
  font-size: 11px;
  line-height: 1.45;
}

.profile-reminder-option:has(input:checked) {
  border-color: #83a1ff;
  box-shadow: 0 0 0 3px rgba(49, 94, 234, .10);
}

.profile-reminder-option:has(input:checked) .privacy-switch {
  background: #315eea;
}

.profile-reminder-option:has(input:checked) .privacy-switch::after {
  transform: translateX(18px);
}

.dark-agenda .profile-email-section {
  border-color: #2b3d5b;
  background: #111d31;
}

.dark-agenda .profile-reminder-option {
  border-color: #304461;
  background: #142238;
}

.dark-agenda .profile-reminder-icon {
  background: rgba(55, 104, 229, .18);
  color: #8fb0ff;
}

.dark-agenda .profile-reminder-copy strong {
  color: #f5f8ff;
}

.dark-agenda .profile-reminder-copy small {
  color: #9eacc5;
}

.dark-agenda .profile-reminder-option:has(input:checked) {
  border-color: #557bdc;
  background: #172844;
  box-shadow: 0 0 0 3px rgba(79, 118, 222, .12);
}

/* v1.9.0 — console administrativo e auditoria */
.admin-console-body {
  min-height: 100vh;
  background: #0a1220;
}

.admin-page-shell {
  width: min(1720px, calc(100% - var(--rail-collapsed-width, 58px)));
  margin-left: var(--rail-collapsed-width, 58px);
  padding: 18px 24px 42px;
  transition: margin-left .24s ease, width .24s ease;
}

.admin-rail:hover + .admin-page-shell {
  width: min(1720px, calc(100% - var(--rail-expanded-width, 196px)));
  margin-left: var(--rail-expanded-width, 196px);
  transition-delay: 1s;
}

.admin-hero,
.admin-panel {
  border: 1px solid #263855;
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(20, 34, 56, .98), rgba(12, 23, 40, .98));
  box-shadow: 0 20px 50px rgba(0, 0, 0, .18);
}

.admin-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 22px 24px;
}

.admin-hero h1,
.admin-panel h2 {
  margin: 3px 0 0;
  color: #f5f8ff;
}

.admin-hero h1 { font-size: clamp(23px, 2vw, 31px); }
.admin-panel h2 { font-size: 18px; }
.admin-hero p,
.admin-panel-heading p { margin: 7px 0 0; color: #9dadc6; line-height: 1.55; }

.admin-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-updated-label { color: #91a4c1; font-size: 11px; }

.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(135px, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.admin-summary-card {
  min-height: 112px;
  padding: 16px 17px;
  border: 1px solid #293c5b;
  border-radius: 16px;
  background: #111f34;
  box-shadow: inset 3px 0 0 #6683b8;
}
.admin-summary-card.success { box-shadow: inset 3px 0 0 #42c98b; }
.admin-summary-card.warning { box-shadow: inset 3px 0 0 #e5a94d; }
.admin-summary-card.info { box-shadow: inset 3px 0 0 #6f91f5; }
.admin-summary-card.neutral { box-shadow: inset 3px 0 0 #708099; }
.admin-summary-label { display: block; color: #9aabc5; font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.admin-summary-value { display: block; margin-top: 9px; color: #f8fbff; font-size: 27px; line-height: 1; }
.admin-summary-hint { display: block; margin-top: 9px; color: #8192ad; font-size: 10px; line-height: 1.35; }

.admin-panel { padding: 20px; }
.admin-panel + .admin-panel { margin-top: 14px; }
.admin-panel-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 16px; }

.admin-table-wrap {
  overflow: auto;
  border: 1px solid #263a59;
  border-radius: 14px;
}
.admin-table { width: 100%; min-width: 1100px; border-collapse: collapse; }
.admin-table th {
  padding: 12px 14px;
  border-bottom: 1px solid #2d4263;
  background: #14233a;
  color: #9fb0ca;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-align: left;
  text-transform: uppercase;
}
.admin-table td { padding: 14px; border-bottom: 1px solid #22334e; color: #dbe5f5; font-size: 12px; vertical-align: top; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover { background: rgba(76, 110, 174, .07); }

.presence-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid #394b65;
  border-radius: 999px;
  color: #b5c1d3;
  font-size: 10px;
  font-weight: 750;
}
.presence-badge i { width: 8px; height: 8px; border-radius: 50%; background: #77859a; }
.presence-badge.online { border-color: rgba(62, 204, 137, .28); background: rgba(37, 160, 106, .10); color: #8ce5b9; }
.presence-badge.online i { background: #44d18e; box-shadow: 0 0 0 4px rgba(68, 209, 142, .10); }
.presence-badge.offline { background: rgba(111, 126, 149, .08); }

.admin-user-name,
.admin-user-login,
.admin-contact,
.admin-contact-note,
.admin-date-cell span,
.admin-date-cell small { display: block; }
.admin-user-name { color: #f5f8ff; font-size: 13px; }
.admin-user-login,
.admin-contact-note,
.admin-date-cell small { margin-top: 4px; color: #8192ad; font-size: 10px; }
.admin-contact { color: #cbd7e8; }
.session-count { color: #f5f8ff; }
.account-disabled { display: inline-block; margin-top: 6px; padding: 3px 6px; border-radius: 6px; background: rgba(215, 78, 88, .12); color: #ee9198; font-size: 9px; }

.admin-empty { padding: 26px !important; color: #8fa0ba !important; text-align: center; }
.admin-empty.error { color: #f29ba2 !important; }

.audit-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(170px, .8fr) minmax(190px, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin: 14px 0;
}
.audit-filters label { display: grid; gap: 7px; color: #a9b7cb; font-size: 10px; font-weight: 750; text-transform: uppercase; }
.audit-filters input,
.audit-filters select {
  min-height: 40px;
  border: 1px solid #304564;
  border-radius: 10px;
  background: #101d31;
  color: #eef4ff;
  padding: 0 11px;
  font-size: 12px;
}

.admin-count-badge { padding: 6px 9px; border: 1px solid #354a6b; border-radius: 999px; color: #9eb0cc; font-size: 10px; }
.audit-list { display: grid; gap: 10px; }
.audit-entry { padding: 15px 16px; border: 1px solid #293d5c; border-radius: 14px; background: #101d31; }
.audit-entry-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.audit-action { padding: 5px 8px; border: 1px solid #3b4c66; border-radius: 999px; color: #b9c6da; font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.audit-action.success { border-color: rgba(66, 201, 139, .30); background: rgba(66, 201, 139, .10); color: #86e1b3; }
.audit-action.warning { border-color: rgba(229, 169, 77, .30); background: rgba(229, 169, 77, .10); color: #efc77f; }
.audit-action.danger { border-color: rgba(222, 93, 102, .32); background: rgba(222, 93, 102, .11); color: #f09aa1; }
.audit-action.info { border-color: rgba(102, 145, 245, .32); background: rgba(102, 145, 245, .11); color: #a8bdf5; }
.audit-date { color: #8192ad; font-size: 10px; }
.audit-summary { margin: 10px 0 5px; color: #f4f7fc; font-size: 14px; }
.audit-actor { color: #aebbd0; font-size: 11px; }
.audit-actor strong { color: #dbe4f2; }
.audit-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 9px; }
.audit-meta span { padding: 4px 7px; border-radius: 7px; background: #172740; color: #8fa1bd; font-size: 9px; }
.audit-details { margin-top: 11px; border-top: 1px solid #263853; padding-top: 10px; }
.audit-details summary { color: #8fa7cd; font-size: 10px; cursor: pointer; }
.audit-details pre { max-height: 360px; overflow: auto; margin: 10px 0 0; padding: 12px; border-radius: 10px; background: #091423; color: #b9c8dc; font: 10px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; word-break: break-word; }
.audit-load-more { display: flex; justify-content: center; margin-top: 14px; }

@media (max-width: 1100px) {
  .admin-summary-grid { grid-template-columns: repeat(3, minmax(135px, 1fr)); }
  .audit-filters { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .admin-page-shell { width: 100%; margin-left: 0; padding: 12px 12px 84px; }
  .admin-rail:hover + .admin-page-shell { width: 100%; margin-left: 0; }
  .admin-hero { align-items: flex-start; flex-direction: column; }
  .admin-hero-actions { justify-content: flex-start; }
  .admin-summary-grid { grid-template-columns: 1fr 1fr; }
  .admin-panel-heading { align-items: flex-start; flex-direction: column; }
  .audit-filters { grid-template-columns: 1fr; }
}

/* Agenda v2.2.0 — gestão administrativa de usuários */
.admin-users-management-table { min-width: 1540px; }
.admin-user-title { display: flex; align-items: center; gap: 9px; }
.admin-user-color { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255,255,255,.05); flex: none; }
.account-protected,
.agenda-permission-badge,
.admin-protected-action {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .02em;
}
.account-protected { color: #aebfff; border: 1px solid #405894; background: rgba(66, 91, 155, .14); }
.agenda-permission-badge.enabled { color: #72e7ae; border: 1px solid rgba(59, 191, 126, .38); background: rgba(28, 128, 86, .16); }
.agenda-permission-badge.disabled { color: #9dabc1; border: 1px solid #3b4960; background: rgba(71, 84, 105, .15); }
.admin-protected-action { margin: 0; color: #91a0b7; border: 1px solid #34435b; background: #111c2f; white-space: nowrap; }

.presence-badge.admin { color: #b9c9ff; border-color: #4c65a6; background: rgba(61, 88, 160, .18); }
.presence-badge.blocked { color: #ff9a9a; border-color: rgba(224, 73, 73, .48); background: rgba(160, 41, 51, .18); }
.presence-badge.inactive { color: #c4a978; border-color: rgba(197, 151, 68, .4); background: rgba(129, 93, 30, .16); }
.presence-badge.admin i { background: #7896ff; }
.presence-badge.blocked i { background: #f05e67; }
.presence-badge.inactive i { background: #d6a64d; }

.admin-actions-cell { min-width: 250px; }
.admin-actions-menu { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-action-button {
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid #3a4a64;
  border-radius: 8px;
  color: #cfd8e8;
  background: #142139;
  font-size: 11px;
  font-weight: 700;
}
.admin-action-button:hover { border-color: #5870a0; background: #1a2b48; color: #fff; }
.admin-action-button.warning { border-color: rgba(211, 153, 54, .46); color: #efc579; background: rgba(126, 85, 22, .15); }
.admin-action-button.success { border-color: rgba(52, 182, 119, .42); color: #76e6af; background: rgba(25, 121, 79, .15); }
.admin-action-button.danger { border-color: rgba(218, 73, 83, .42); color: #ff9da4; background: rgba(145, 40, 51, .15); }

.admin-user-dialog { width: min(800px, calc(100% - 24px)); }
.admin-password-dialog { width: min(620px, calc(100% - 24px)); }
.admin-user-form-grid { margin-bottom: 14px; }
.admin-password-fields { margin: 14px 0; }
.admin-color-field {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 11px;
  border: 1px solid #35435d;
  border-radius: 10px;
  background: #0e1829;
}
.admin-color-field input[type="color"] { width: 48px; height: 30px; padding: 0; border: 0; background: transparent; }
.admin-color-field span { color: #cbd5e6; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.admin-permission-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 15px 0; }
.admin-permission-card {
  min-height: 86px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px;
  border: 1px solid #30405a;
  border-radius: 13px;
  background: #101c30;
  cursor: pointer;
}
.admin-permission-card:has(input:checked) { border-color: #4e70cc; background: rgba(52, 89, 181, .14); box-shadow: inset 0 0 0 1px rgba(91, 124, 214, .12); }
.admin-permission-card input { margin-top: 3px; accent-color: #557ce9; }
.admin-permission-card span { display: flex; flex-direction: column; gap: 5px; }
.admin-permission-card strong { color: #e7edf8; font-size: 13px; }
.admin-permission-card small { color: #8e9bb2; font-size: 11px; line-height: 1.45; }
.admin-security-note { margin: 15px 0 0; color: #9aa8bd; font-size: 12px; line-height: 1.55; }
.admin-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  max-width: 420px;
  padding: 13px 16px;
  border: 1px solid rgba(59, 191, 126, .42);
  border-radius: 12px;
  color: #dffbef;
  background: rgba(17, 80, 57, .96);
  box-shadow: 0 18px 48px rgba(0,0,0,.32);
  font-size: 13px;
  font-weight: 650;
}
.admin-toast.error { border-color: rgba(224, 73, 73, .46); color: #ffe2e4; background: rgba(112, 31, 41, .97); }

@media (max-width: 900px) {
  .admin-hero-actions { flex-wrap: wrap; }
  .admin-permission-grid { grid-template-columns: 1fr; }
  .admin-user-dialog .two-columns,
  .admin-password-dialog .two-columns { grid-template-columns: 1fr; }
}

/* v2.4.0 - importação individual, turmas acadêmicas e detalhes em modo observador */
.faculty-observer-marker {
  position: relative;
  width: 100%;
  min-height: 52px;
  padding: 7px 9px 7px 11px;
  overflow: hidden;
  border: 1px dashed #b9c1cd;
  border-radius: 12px;
  background: rgba(132, 143, 158, .13);
  color: #717b8b;
  cursor: not-allowed;
  opacity: .78;
}
.faculty-observer-marker::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: #98a2b1; }
.faculty-observer-marker strong {
  font-size: 10.5px;
  line-height: 1.25;
}
.faculty-observer-marker .faculty-observer-time,
.faculty-observer-marker .faculty-observer-source,
.faculty-observer-marker .faculty-observer-description {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 8.8px;
  line-height: 1.25;
}
.faculty-observer-marker .faculty-observer-description {
  color: #667181;
  font-weight: 600;
}
.faculty-observer-marker .faculty-observer-source {
  color: #8993a3;
}
.dark-agenda .faculty-observer-marker .faculty-observer-description { color: #aab4c4; }
.dark-agenda .faculty-observer-marker .faculty-observer-source { color: #7f8b9e; }

.event-pill.import-observer { border-color: #aeb7c4; background: #eef1f4; color: #6f7887; opacity: .78; cursor: not-allowed; }
.slot-cell.occupied-observer.occupied-continuation-slot::before { border-color: rgba(147,157,171,.42); background: rgba(137,148,163,.12); box-shadow: inset 3px 0 0 rgba(151,161,175,.58); }
.dark-agenda .faculty-observer-marker { border-color: #475267; background: rgba(119,131,150,.12); color: #a4afc1; opacity: .76; }
.dark-agenda .faculty-observer-marker::before { background: #68758a; }
.dark-agenda .slot-cell.occupied-observer.occupied-continuation-slot::before { border-color: rgba(111,123,142,.45); background: rgba(101,113,132,.16); box-shadow: inset 3px 0 0 rgba(119,132,151,.62); }

.my-calendar-dialog { width: min(760px, calc(100vw - 28px)); }
.my-calendar-group-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 3px 12px;
  padding: 14px 16px;
  border: 1px solid rgba(86, 117, 170, .32);
  border-radius: 14px;
  background: rgba(36, 69, 126, .13);
}
.my-calendar-group-card span {
  color: #91a7cd;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.my-calendar-group-card strong { font-size: 18px; }
.my-calendar-group-card small {
  grid-column: 1 / -1;
  color: #93a3bd;
  line-height: 1.45;
}
.my-calendar-preview {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(70, 168, 120, .34);
  border-radius: 15px;
  background: rgba(27, 104, 69, .10);
}
.my-calendar-preview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.my-calendar-preview-heading h3 { margin: 0; }
.my-calendar-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  color: #aab7ca;
  font-size: 12px;
}
.my-calendar-preview-sample {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 230px;
  overflow: auto;
}
.my-calendar-preview-sample article {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(97, 127, 178, .27);
  border-radius: 11px;
  background: rgba(12, 27, 50, .36);
}
.my-calendar-preview-sample strong,
.my-calendar-preview-sample small,
.my-calendar-preview-sample span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.my-calendar-preview-sample small,
.my-calendar-preview-sample span { color: #9daac0; font-size: 10px; }
.my-calendar-warning {
  margin: 0;
  color: #aebad0;
  font-size: 11px;
  line-height: 1.5;
}
@media (max-width: 650px) {
  .my-calendar-preview-sample { grid-template-columns: 1fr; }
  .my-calendar-preview-heading { align-items: flex-start; flex-direction: column; }
}

/* BEGIN v2.4.3 - native date time icons */

/* Campos nativos no tema escuro, com espaço maior para o ícone */
.dark-agenda input[type="date"],
.dark-agenda input[type="time"],
.dark-agenda input[type="datetime-local"],
.dark-agenda input[type="month"],
.dark-agenda input[type="week"] {
  color-scheme: dark;
  padding-right: 48px !important;
}

/* Ícones sempre visíveis, maiores e brancos */
.dark-agenda input[type="date"]::-webkit-calendar-picker-indicator,
.dark-agenda input[type="time"]::-webkit-calendar-picker-indicator,
.dark-agenda input[type="datetime-local"]::-webkit-calendar-picker-indicator,
.dark-agenda input[type="month"]::-webkit-calendar-picker-indicator,
.dark-agenda input[type="week"]::-webkit-calendar-picker-indicator {
  opacity: 1 !important;
  filter: brightness(0) invert(1) !important;
  cursor: pointer;
  transform: scale(1.35);
  transform-origin: center;
}

/* Mantém branco também em hover/focus */
.dark-agenda input[type="date"]:hover::-webkit-calendar-picker-indicator,
.dark-agenda input[type="time"]:hover::-webkit-calendar-picker-indicator,
.dark-agenda input[type="datetime-local"]:hover::-webkit-calendar-picker-indicator,
.dark-agenda input[type="month"]:hover::-webkit-calendar-picker-indicator,
.dark-agenda input[type="week"]:hover::-webkit-calendar-picker-indicator,
.dark-agenda input[type="date"]:focus::-webkit-calendar-picker-indicator,
.dark-agenda input[type="time"]:focus::-webkit-calendar-picker-indicator,
.dark-agenda input[type="datetime-local"]:focus::-webkit-calendar-picker-indicator,
.dark-agenda input[type="month"]:focus::-webkit-calendar-picker-indicator,
.dark-agenda input[type="week"]:focus::-webkit-calendar-picker-indicator {
  opacity: 1 !important;
  filter: brightness(0) invert(1) !important;
}

/* Firefox: melhora contraste geral dos controles */
.dark-agenda input[type="date"],
.dark-agenda input[type="time"] {
  scrollbar-color: #dfe8ff #0f1b2d;
}

/* END v2.4.3 - native date time icons */

/* BEGIN v2.5.0 - collaboration, resources and notifications */
.notification-count-badge {
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .13);
}

.event-collaboration-card {
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid #31435f;
  border-radius: 15px;
  background: #0f1b2e;
}
.event-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.event-section-heading h3 { margin: 2px 0 0; font-size: 15px; color: #eef4ff; }
.event-response-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.event-response-buttons button {
  min-height: 35px;
  border: 1px solid #3a4f6e;
  border-radius: 10px;
  padding: 7px 11px;
  background: #15243b;
  color: #bdc9dc;
  font-weight: 700;
}
.event-response-buttons button:hover { border-color: #5d83c7; color: #fff; }
.event-response-buttons button.active { border-color: #4f7ff0; background: #244cae; color: #fff; }
.event-responses-list { display: grid; gap: 7px; }
.event-response-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border: 1px solid #293b56; border-radius: 10px; background: #111f34; }
.event-response-row span { display: inline-flex; align-items: center; gap: 8px; color: #d7e1f1; }
.event-response-row i { width: 9px; height: 9px; border-radius: 50%; background: var(--response-color); }
.event-response-row strong { font-size: 12px; color: #93a4bd; }
.event-response-row .response-accepted { color: #55d89a; }
.event-response-row .response-maybe { color: #f6bc55; }
.event-response-row .response-declined { color: #fb8992; }

.event-resource-list { display: grid; gap: 7px; }
.event-resource-empty { display: block; color: #71829c; font-size: 12px; padding: 5px 0; }
.event-resource-item { display: flex; align-items: center; gap: 8px; border: 1px solid #2c405e; border-radius: 11px; background: #111f34; padding: 8px 10px; }
.event-resource-item a { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; color: #dbe8ff; text-decoration: none; }
.event-resource-item a:hover strong { color: #8db4ff; }
.event-resource-item strong, .event-resource-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-resource-item small { color: #7f91ac; }
.resource-remove-button { width: 28px; height: 28px; border: 1px solid #69404a; border-radius: 8px; background: #2a1720; color: #fb8992; font-size: 18px; line-height: 1; }
.event-link-editor { display: grid; grid-template-columns: 180px minmax(220px, 1fr) auto; gap: 8px; }
.event-link-editor input { min-height: 39px; border: 1px solid #344762; border-radius: 10px; background: #0c1728; color: #eef4ff; padding: 9px 11px; }
.academic-important-option { display: flex; align-items: center; gap: 9px; color: #c6d3e7; font-weight: 650; cursor: pointer; }
.academic-important-option input { width: 18px; height: 18px; accent-color: #3b82f6; }

@media (max-width: 720px) {
  .event-link-editor { grid-template-columns: 1fr; }
}
/* END v2.5.0 - collaboration, resources and notifications */

/* BEGIN v2.6.0 - system health, backup and restore */
.system-admin-shell { display: grid; gap: 16px; }
.system-overall {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid #2b3b55;
  border-radius: 16px;
  background: linear-gradient(180deg, #152138, #101b2e);
  box-shadow: 0 16px 38px rgba(0,0,0,.18);
}
.system-overall-dot,
.system-status-dot {
  width: 11px;
  height: 11px;
  flex: none;
  border-radius: 50%;
  background: #8290a6;
  box-shadow: 0 0 0 5px rgba(130,144,166,.12);
}
.system-overall.success { border-color: rgba(61,201,135,.34); }
.system-overall.warning { border-color: rgba(238,171,65,.38); }
.system-overall.danger { border-color: rgba(239,96,106,.42); }
.system-overall.success .system-overall-dot,
.system-status-dot.success { background: #42c98b; box-shadow: 0 0 0 5px rgba(66,201,139,.12); }
.system-overall.warning .system-overall-dot,
.system-status-dot.warning { background: #eeab41; box-shadow: 0 0 0 5px rgba(238,171,65,.12); }
.system-overall.danger .system-overall-dot,
.system-status-dot.danger { background: #ef606a; box-shadow: 0 0 0 5px rgba(239,96,106,.12); }
.system-overall div { display: grid; gap: 4px; }
.system-overall strong { color: #f7f9fd; font-size: 17px; }
.system-overall small { color: #9aa9bf; line-height: 1.5; }
.system-health-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.system-health-card {
  min-height: 132px;
  display: grid;
  align-content: space-between;
  gap: 10px;
  padding: 15px;
  border: 1px solid #293a54;
  border-radius: 15px;
  background: linear-gradient(180deg, #152238, #101b2e);
}
.system-health-card.success { border-color: rgba(66,201,139,.28); }
.system-health-card.warning { border-color: rgba(238,171,65,.32); }
.system-health-card.danger { border-color: rgba(239,96,106,.34); }
.system-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.system-card-head span { color: #9aabc2; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.system-card-head i { padding: 4px 7px; border-radius: 999px; background: #1b2a42; color: #9aaac0; font-size: 8px; font-style: normal; font-weight: 800; text-transform: uppercase; }
.system-health-card.success .system-card-head i { background: rgba(66,201,139,.12); color: #86e1b3; }
.system-health-card.warning .system-card-head i { background: rgba(238,171,65,.12); color: #f0c77e; }
.system-health-card.danger .system-card-head i { background: rgba(239,96,106,.13); color: #f5a0a7; }
.system-health-card > strong { color: #f7f9fd; font-size: 23px; letter-spacing: -.03em; }
.system-health-card > small { color: #8797af; font-size: 10px; line-height: 1.45; }
.system-two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.system-detail-panel { min-height: 275px; }
.system-service-list,
.system-integration-list { display: grid; gap: 9px; }
.system-service-row,
.system-integration-row {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  border: 1px solid #283a55;
  border-radius: 12px;
  background: #0f1b2e;
}
.system-integration-row { grid-template-columns: auto minmax(0,1fr); }
.system-service-row div,
.system-integration-row div { min-width: 0; display: grid; gap: 3px; }
.system-service-row strong,
.system-integration-row strong { color: #e9eef7; font-size: 12px; }
.system-service-row small,
.system-integration-row small { overflow: hidden; color: #8d9db5; font-size: 9.5px; line-height: 1.45; text-overflow: ellipsis; }
.system-state-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 8px;
  border: 1px solid #3a4b64;
  border-radius: 999px;
  color: #aab8cb;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.system-state-badge.success { border-color: rgba(66,201,139,.28); background: rgba(66,201,139,.09); color: #86dfb2; }
.system-state-badge.warning { border-color: rgba(238,171,65,.30); background: rgba(238,171,65,.09); color: #efc77e; }
.system-state-badge.danger { border-color: rgba(239,96,106,.32); background: rgba(239,96,106,.10); color: #f5a0a7; }
.system-backup-panel { display: grid; gap: 14px; }
.system-backup-heading { align-items: flex-start; }
.system-backup-heading p { max-width: 760px; margin: 7px 0 0; color: #8f9fb7; font-size: 10px; line-height: 1.5; }
.system-backup-table td { vertical-align: middle; }
.system-backup-table td > strong,
.system-backup-table td > small { display: block; }
.system-backup-table td > strong { color: #edf2fa; font-size: 11px; }
.system-backup-table td > small { margin-top: 4px; color: #8292aa; font-size: 9px; }
.system-backup-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.system-backup-actions a { text-decoration: none; }
.system-backup-warning {
  padding: 12px 14px;
  border: 1px solid rgba(238,171,65,.28);
  border-radius: 12px;
  background: rgba(238,171,65,.07);
  color: #b9c4d4;
  font-size: 10px;
  line-height: 1.55;
}
.system-backup-warning strong { color: #f0c77e; }
.maintenance-jobs { display: grid; gap: 8px; }
.maintenance-job {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border: 1px solid #30415b;
  border-radius: 12px;
  background: #101d31;
}
.maintenance-job div { display: grid; gap: 3px; }
.maintenance-job strong { color: #e8edf6; font-size: 11px; }
.maintenance-job small { color: #8b9bb2; font-size: 9px; }
.maintenance-job.failed { border-color: rgba(239,96,106,.32); }
.system-confirm-dialog { width: min(690px, calc(100vw - 28px)); }
@media (max-width: 1350px) {
  .system-health-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .system-health-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .system-two-column { grid-template-columns: 1fr; }
  .system-backup-heading { display: grid; gap: 12px; }
}
@media (max-width: 560px) {
  .system-health-grid { grid-template-columns: 1fr; }
  .system-overall { align-items: flex-start; }
}
/* END v2.6.0 - system health, backup and restore */

/* BEGIN v2.7.0 - espaço pessoal privado e convites controlados */
.private-workspace-badge,
.controlled-invite-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(91, 217, 174, .35);
  border-radius: 999px;
  background: rgba(33, 163, 122, .13);
  color: #8ce7c7;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  padding: 6px 9px;
  white-space: nowrap;
}

.event-pill .controlled-invite-badge {
  margin-left: 5px;
  padding: 3px 6px;
  font-size: 9px;
  vertical-align: middle;
}

.external-invite-card {
  border-color: rgba(91, 217, 174, .28);
  background: linear-gradient(180deg, rgba(18, 40, 50, .86), rgba(13, 27, 42, .94));
}

.event-section-help {
  margin: 0 0 14px;
  color: #a8b7ce;
  font-size: 12px;
  line-height: 1.55;
}

.external-invite-create {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr;
  gap: 10px 16px;
  align-items: end;
}

.external-invite-create > .form-field {
  grid-row: span 3;
}

.external-invite-option {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #dce6f5;
  font-size: 12px;
}

.external-invite-option input {
  width: 16px;
  height: 16px;
  accent-color: #315eea;
}

.external-invite-create .primary-button {
  width: max-content;
  margin-top: 4px;
}

.external-invite-link-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
}

.external-invite-link-row input {
  min-width: 0;
}

.external-invite-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}

.external-invite-meta span {
  border: 1px solid #2d405d;
  border-radius: 999px;
  background: #111d30;
  color: #aebbd0;
  font-size: 11px;
  padding: 6px 9px;
}

.external-invite-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.event-response-row span small {
  display: block;
  color: #8292aa;
  font-size: 10px;
  margin: 2px 0 0 19px;
}

.external-invite-body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 15% 5%, rgba(49, 94, 234, .18), transparent 36%),
    radial-gradient(circle at 90% 80%, rgba(91, 217, 174, .11), transparent 30%),
    #0b1220;
  color: #eef3fb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.external-invite-shell {
  width: min(760px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.external-invite-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
}

.external-invite-brand > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #395580;
  border-radius: 12px;
  background: #172843;
  color: #eaf0ff;
  font-weight: 900;
}

.external-invite-brand div {
  display: grid;
  gap: 2px;
}

.external-invite-brand small {
  color: #8fa1ba;
}

.external-invite-panel {
  border: 1px solid #2b3c59;
  border-radius: 22px;
  background: rgba(15, 27, 45, .96);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .35);
  padding: clamp(20px, 4vw, 34px);
}

.external-invite-error {
  border-color: rgba(240, 91, 109, .45);
}

.external-invite-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}

.external-invite-heading h1,
.external-invite-panel h1,
.external-invite-panel h2 {
  margin: 4px 0 0;
}

.external-invite-heading h1 {
  font-size: clamp(26px, 5vw, 38px);
  line-height: 1.08;
}

.external-invite-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.external-invite-facts > div {
  display: grid;
  gap: 5px;
  border: 1px solid #263a58;
  border-radius: 14px;
  background: #111e32;
  padding: 14px;
}

.external-invite-facts small,
.external-invite-privacy,
.external-invite-readonly {
  color: #91a2ba;
}

.external-invite-description,
.external-invite-resources,
.external-invite-response-form {
  border-top: 1px solid #263751;
  margin-top: 22px;
  padding-top: 20px;
}

.external-invite-description p {
  white-space: pre-wrap;
  color: #c4cede;
  line-height: 1.65;
}

.external-invite-resources {
  display: grid;
  gap: 9px;
}

.external-invite-resources h2 {
  margin-bottom: 6px;
}

.external-invite-resources a {
  display: block;
  border: 1px solid #2c4264;
  border-radius: 11px;
  background: #13223a;
  color: #bcd0ff;
  font-weight: 700;
  padding: 11px 13px;
  text-decoration: none;
}

.external-invite-resources a:hover {
  border-color: #557de0;
  background: #172a49;
}

.external-invite-response-form {
  display: grid;
  gap: 13px;
}

.external-invite-response-form label {
  display: grid;
  gap: 7px;
  color: #aebbd0;
  font-size: 12px;
  font-weight: 800;
}

.external-invite-response-form input,
.external-invite-response-form select {
  min-height: 45px;
  border: 1px solid #334865;
  border-radius: 11px;
  background: #0e1a2c;
  color: #eef3fb;
  padding: 0 12px;
}

.external-invite-response-form .primary-button {
  width: max-content;
}

.external-invite-privacy {
  border-top: 1px solid #263751;
  margin-top: 24px;
  padding-top: 16px;
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .external-invite-create,
  .external-invite-facts {
    grid-template-columns: 1fr;
  }
  .external-invite-create > .form-field {
    grid-row: auto;
  }
  .external-invite-heading {
    display: grid;
  }
  .external-invite-link-row {
    grid-template-columns: 1fr;
  }
}
/* END v2.7.0 - espaço pessoal privado e convites controlados */

/* BEGIN v3.0.0 - produtividade, recorrência, lista, linha do tempo e agendamento */
.inline-field-action { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; }
.mini-action-button,.compact-button { min-height:36px; padding:7px 11px; border-radius:9px; }
.three-columns { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.field-optional { color:#8ea0bc; font-size:10px; font-weight:600; }

.event-pill.categorized { border-left:4px solid var(--category-color,#315eea); }
.event-category-label { display:inline-flex; width:max-content; align-items:center; gap:5px; border:1px solid color-mix(in srgb,var(--category-color) 55%,#31435f); background:color-mix(in srgb,var(--category-color) 18%,#111d31); color:#eaf0ff; border-radius:999px; padding:2px 7px; font-size:9px; font-weight:800; }
.event-category-label::before { content:''; width:6px; height:6px; border-radius:50%; background:var(--category-color); }
.event-tags { display:flex; flex-wrap:wrap; gap:4px; }
.event-tag { color:#aebee0; background:rgba(135,155,196,.13); border-radius:999px; padding:2px 6px; font-size:9px; }
.recurrence-badge { color:#a9c3ff; font-weight:900; }

.recurrence-card { display:grid; gap:12px; }
.recurrence-grid { display:grid; grid-template-columns:1.2fr .7fr .8fr 1fr; gap:10px; }
.weekday-picker { display:flex; flex-wrap:wrap; gap:7px; }
.weekday-picker label { position:relative; }
.weekday-picker input { position:absolute; opacity:0; pointer-events:none; }
.weekday-picker span { display:grid; place-items:center; min-width:42px; min-height:35px; border:1px solid #304561; border-radius:9px; background:#101d31; color:#9eacc5; font-size:11px; font-weight:800; cursor:pointer; }
.weekday-picker input:checked + span { border-color:#5d83ed; background:#234594; color:#fff; box-shadow:0 0 0 2px rgba(79,118,222,.15); }
.recurrence-existing { display:grid; gap:3px; padding:10px 12px; border-left:3px solid #6c8df0; background:rgba(67,103,201,.12); color:#b7c7e5; font-size:11px; }
.recurrence-existing strong { color:#f5f8ff; }

.event-comments-list { display:grid; gap:9px; max-height:300px; overflow:auto; }
.event-comment { display:grid; grid-template-columns:12px minmax(0,1fr) auto; align-items:start; gap:9px; padding:10px; border:1px solid #2b3d59; border-radius:11px; background:#101d30; }
.event-comment > .user-dot { width:9px; height:9px; margin-top:5px; }
.event-comment header { display:flex; justify-content:space-between; gap:10px; }
.event-comment header strong { color:#eef4ff; font-size:12px; }
.event-comment time { color:#788aa7; font-size:9px; }
.event-comment p { margin:5px 0 0; color:#b7c4da; font-size:11px; line-height:1.55; }
.event-comment-composer { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:10px; }

.timeline-view,.agenda-list-view { display:grid; gap:14px; }
.timeline-day,.agenda-list-day { border:1px solid #273a57; border-radius:15px; background:linear-gradient(155deg,#132138,#0f1a2c); overflow:hidden; }
.timeline-day.today,.agenda-list-day.today { border-color:#5178df; box-shadow:0 0 0 2px rgba(71,111,225,.12); }
.timeline-day > header,.agenda-list-day > header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 14px; border-bottom:1px solid #273a57; color:#eef4ff; text-transform:capitalize; }
.timeline-day > header span,.agenda-list-day > header span { color:#8596b2; font-size:10px; }
.timeline-items { display:grid; gap:8px; padding:12px; }
.timeline-entry,.agenda-list-entry { display:grid; grid-template-columns:70px minmax(0,1fr); align-items:start; gap:10px; }
.timeline-entry > time,.agenda-list-entry > time { padding-top:8px; color:#8da5d4; font-size:11px; font-weight:800; }
.timeline-entry .event-pill,.agenda-list-entry .event-pill { min-height:54px; }
.timeline-empty { padding:14px; color:#70819d; font-size:12px; text-align:center; }
.agenda-list-day { padding-bottom:10px; }
.agenda-list-entry { padding:9px 12px 0; }

.event-pill[draggable="true"] { cursor:grab; }
.event-pill.dragging { opacity:.45; cursor:grabbing; }
.drag-target { outline:2px dashed #79a0ff !important; outline-offset:-4px; background:rgba(62,105,220,.12) !important; }

.productivity-dialog { width:min(900px,calc(100vw - 24px)); }
.trash-content { display:grid; gap:9px; max-height:60vh; overflow:auto; }
.trash-item,.booking-request { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 14px; border:1px solid #2c405e; border-radius:12px; background:#111f34; }
.trash-item > div:first-child,.booking-request > div:first-child { display:grid; gap:3px; min-width:0; }
.trash-item strong,.booking-request strong { color:#f0f5ff; }
.trash-item small,.booking-request small,.booking-request span { color:#8fa0bc; font-size:10px; }
.trash-item > div:last-child,.booking-request > div:last-child { display:flex; align-items:center; gap:7px; flex-wrap:wrap; justify-content:flex-end; }
.booking-public-link-card { display:grid; gap:7px; padding:12px; border:1px solid #2f4770; border-radius:12px; background:rgba(46,83,167,.12); }
.booking-public-link-card > div { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:7px; }
.booking-public-link-card input { min-width:0; }
.booking-requests-list { display:grid; gap:8px; max-height:300px; overflow:auto; }

.reminder-preference-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.reminder-preference-grid > section { display:grid; gap:8px; padding:12px; border:1px solid #30435f; border-radius:12px; background:#101c30; }
.reminder-preference-grid strong { color:#eef4ff; font-size:12px; }
.reminder-offset-options { display:grid; gap:6px; }
.reminder-offset-option { display:flex; align-items:center; gap:8px; min-height:34px; color:#afbdd3; font-size:11px; cursor:pointer; }
.reminder-offset-option input { accent-color:#4c75e7; width:16px; height:16px; }

.booking-public-body { min-height:100vh; margin:0; background:radial-gradient(circle at 20% 10%,rgba(47,92,216,.28),transparent 38%),#08111f; color:#edf3ff; }
.booking-public-shell { min-height:100vh; display:grid; place-items:center; padding:24px; }
.booking-public-card { width:min(680px,100%); padding:28px; border:1px solid #2c4162; border-radius:22px; background:linear-gradient(155deg,rgba(18,33,56,.98),rgba(10,20,36,.98)); box-shadow:0 35px 90px rgba(0,0,0,.4); }
.booking-public-brand { display:flex; align-items:center; gap:10px; }
.booking-public-brand > span { display:grid; place-items:center; width:44px; height:44px; border:1px solid #4a6fc7; border-radius:12px; background:#1d376b; font-weight:900; }
.booking-public-brand > div { display:grid; }
.booking-public-brand small,.booking-public-card > p { color:#93a5c2; }
.booking-public-card h1 { margin:22px 0 8px; font-size:clamp(26px,5vw,42px); }
.booking-public-meta { display:flex; flex-wrap:wrap; gap:8px; margin:16px 0; }
.booking-public-meta span { padding:6px 9px; border:1px solid #2d4263; border-radius:999px; color:#b9c7dd; font-size:10px; }
.booking-public-form { display:grid; gap:14px; margin-top:20px; }
.booking-slot-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(105px,1fr)); gap:8px; }
.booking-slot { min-height:40px; border:1px solid #355078; border-radius:10px; background:#13233a; color:#c8d6ed; cursor:pointer; }
.booking-slot:hover,.booking-slot.selected { border-color:#6e94ff; background:#315eea; color:#fff; }
.booking-public-submit { width:100%; min-height:48px; }

@media (max-width:760px) {
  .three-columns,.recurrence-grid,.reminder-preference-grid { grid-template-columns:1fr; }
  .event-comment-composer,.booking-public-link-card > div { grid-template-columns:1fr; }
  .timeline-entry,.agenda-list-entry { grid-template-columns:1fr; }
  .timeline-entry > time,.agenda-list-entry > time { padding:0 4px; }
  .trash-item,.booking-request { align-items:flex-start; flex-direction:column; }
  .trash-item > div:last-child,.booking-request > div:last-child { justify-content:flex-start; }
}

.category-field-actions { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:7px; }
.category-dialog { width:min(760px,calc(100vw - 24px)); }
.category-editor-row { display:grid; grid-template-columns:minmax(0,1fr) 110px auto; align-items:end; gap:10px; }
.category-editor-row input[type="color"] { width:100%; min-height:44px; padding:5px; cursor:pointer; }
.category-manager-list { display:grid; gap:8px; max-height:320px; overflow:auto; padding-right:2px; }
.category-manager-item { display:grid; grid-template-columns:14px minmax(0,1fr) auto auto; align-items:center; gap:10px; padding:10px 12px; border:1px solid #2c405d; border-radius:11px; background:#101e32; }
.category-manager-item strong { color:#eef4ff; font-size:12px; }
.category-manager-item code { color:#8fa2c0; font-size:10px; }
.category-manager-item > div { display:flex; gap:6px; justify-content:flex-end; }
.category-color-dot { width:12px; height:12px; border-radius:50%; box-shadow:0 0 0 3px rgba(255,255,255,.06); }
@media (max-width:760px) {
  .category-editor-row,.category-manager-item { grid-template-columns:1fr; }
  .category-manager-item > div { justify-content:flex-start; }
}

/* END v3.0.0 */


/* BEGIN v3.1.0 - feriados compartilhados nacionais e estaduais */
.legend-swatch.holiday-national { background:#6d4ed6; border-color:#9b86ea; }
.legend-swatch.holiday-state { background:#0f8a82; border-color:#55c2b8; }

.holiday-banner {
  display:flex;
  align-items:center;
  gap:9px;
  min-width:0;
  padding:8px 10px;
  border:1px solid transparent;
  border-radius:10px;
  user-select:none;
  cursor:default;
}
.holiday-banner + .holiday-banner { margin-top:5px; }
.holiday-banner.holiday-national { border-color:rgba(151,122,237,.42); background:linear-gradient(135deg,rgba(99,72,191,.30),rgba(65,46,133,.22)); }
.holiday-banner.holiday-state { border-color:rgba(65,190,177,.42); background:linear-gradient(135deg,rgba(16,130,121,.29),rgba(10,83,79,.22)); }
.holiday-icon {
  display:grid;
  place-items:center;
  flex:0 0 31px;
  width:31px;
  height:26px;
  border-radius:8px;
  color:#fff;
  font-size:9px;
  font-weight:900;
  letter-spacing:.05em;
}
.holiday-national .holiday-icon { background:#7657d8; }
.holiday-state .holiday-icon { background:#118d84; }
.holiday-copy { min-width:0; display:grid; gap:2px; }
.holiday-copy strong { overflow:hidden; color:#f4f7ff; font-size:11px; line-height:1.25; text-overflow:ellipsis; white-space:nowrap; }
.holiday-copy small { color:#aebbd2; font-size:9px; line-height:1.3; }
.holiday-banner.compact { gap:5px; min-height:22px; padding:3px 5px; border-radius:6px; }
.holiday-banner.compact .holiday-icon { flex-basis:22px; width:22px; height:17px; border-radius:5px; font-size:7px; }
.holiday-banner.compact .holiday-copy strong { font-size:8.5px; }
.month-task-deadlines .holiday-banner { width:100%; }
.timeline-items > .holiday-banner { margin-bottom:2px; }
.agenda-list-all-day { display:grid; gap:6px; padding:10px 12px 0; }
.calendar-all-day-items,.task-all-day-items { min-width:0; }

@media (max-width:760px) {
  .holiday-copy strong { white-space:normal; }
}
/* END v3.1.0 */
/* SMART_BIRTHDAYS_V3_3_0 */
.birthday-banner{display:flex;align-items:center;gap:8px;padding:7px 9px;margin:4px 0;border:1px solid rgba(236,72,153,.36);background:rgba(131,24,67,.16);border-radius:10px;color:var(--text,#eef3fb)}.birthday-banner.compact{padding:4px 6px;font-size:12px}.birthday-banner span:last-child{display:flex;flex-direction:column}.birthday-banner small{color:var(--muted,#9ba9bc)}.birthday-icon{font-size:16px}
/* SMART_CONFLICT_SUGGESTIONS_V3_3_0 */
.conflict-suggestion-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.conflict-suggestion-list button{border:1px solid rgba(96,165,250,.45);background:rgba(37,99,235,.15);color:inherit;border-radius:9px;padding:7px 10px;cursor:pointer}.conflict-suggestion-list button:hover{background:rgba(37,99,235,.28)}

/* AGENDA_SEMIO_FRONTEND_V337_START */
.semio-import-panel {
  margin-top: 14px;
  border: 1px solid color-mix(in srgb, #7a4be8 35%, var(--line));
  border-radius: 14px;
}
.semio-import-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.semio-import-heading strong { display: block; margin-top: 3px; }
.semio-existing-status {
  margin: 9px 0 12px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 10px;
}
.semio-overlap-policy { margin: 10px 0 12px; }
.semio-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 10px 0;
}
.semio-preview-card {
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--primary) 5%, transparent);
}
.semio-preview-card span,
.semio-preview-card small { display: block; font-size: 9px; }
.semio-preview-card strong { display: block; margin: 3px 0; font-size: 18px; }
.semio-preview-card.has-overlap {
  border-color: rgba(245, 158, 11, .48);
  background: rgba(245, 158, 11, .08);
}
.semio-preview-note { margin: 7px 0; font-size: 10px; }
.semio-preview-list {
  max-height: 190px;
  overflow: auto;
  margin: 8px 0;
  padding-left: 18px;
}
.semio-preview-list li { margin-bottom: 6px; }
.semio-preview-list li strong,
.semio-preview-list li span { display: block; }
.semio-preview-list li span { color: var(--muted); font-size: 9px; }
.slot-cell.has-visible-overlap { overflow: visible; z-index: 3; }
.time-overlap-badge {
  position: absolute;
  top: 2px;
  right: 4px;
  z-index: 12;
  padding: 2px 6px;
  border: 1px solid rgba(245, 158, 11, .55);
  border-radius: 999px;
  background: rgba(77, 46, 8, .88);
  color: #ffd98a;
  font-size: 8px;
  font-weight: 800;
  line-height: 1.2;
  pointer-events: none;
}
.semio-overlap-extra {
  position: relative;
  z-index: 10;
  margin-top: 4px;
  border-style: dashed !important;
  border-color: rgba(245, 158, 11, .72) !important;
  box-shadow: 0 7px 18px rgba(0,0,0,.18);
}
.dark-agenda .semio-existing-status,
.dark-agenda .semio-preview-card {
  border-color: #33425e;
  background: #121e31;
}
@media (max-width: 640px) {
  .semio-preview-grid { grid-template-columns: 1fr; }
}
/* AGENDA_SEMIO_FRONTEND_V337_END */
