/* Componentes visuales compartidos de Liah. */
:root {
  --ink: #15234b;
  --muted: #687b9f;
  --border: #e3e9f4;
  --bg: #f5f7fc;
  --shadow: 0 4px 20px #17244706;
}
body {
  font-family: 'Manrope', system-ui, sans-serif;
}
.ui-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
}
.nav-icon,
.line-icon,
.empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-icon .ui-icon {
  width: 21px;
  height: 21px;
}
.empty-icon .ui-icon {
  width: 30px;
  height: 30px;
}
.button .ui-icon,
.badge .ui-icon,
.text-link .ui-icon {
  width: 17px;
  height: 17px;
}
.sidebar {
  background: linear-gradient(165deg, #101c3d, #0e1834);
  border-right: 1px solid #ffffff0a;
}
.sidebar nav a {
  border-radius: 12px;
  min-height: 46px;
  margin-bottom: 5px;
  color: #d7def2;
  transition:
    background 0.15s,
    color 0.15s;
}
.sidebar nav a:hover {
  background: #ffffff0b;
  color: white;
}
.sidebar nav a.active {
  color: #f4fbff;
  background: #6829ed40;
  box-shadow: inset 3px 0 #7847ec;
}
.sidebar nav a.active .nav-icon {
  color: #ffffff;
}
.workspace-label {
  border: 0;
  padding-inline: 12px;
  background: #ffffff05;
  border-radius: 8px;
}
.sidebar .nav-label {
  font-size: 10px;
  letter-spacing: 1.7px;
  color: #9eabca;
}
.sidebar .method-note {
  border-top: 1px solid #ffffff12;
  padding-top: 18px;
}
.user-card {
  border-color: #ffffff12;
}
.topbar {
  gap: 16px;
  box-shadow: 0 1px 0 #102f4303;
}
.breadcrumb {
  margin-right: auto;
}
.topbar-right {
  font-size: 12px;
}
.sidebar-collapse,
.mobile-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.sidebar-collapse.is-collapsed .ui-icon {
  transform: rotate(180deg);
}
.page-heading {
  align-items: center;
  margin-bottom: 28px;
}
.page-heading h1 {
  font-size: clamp(25px, 2.3vw, 34px);
  line-height: 1.25;
  letter-spacing: -1.1px;
}
.page-heading p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 640px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.7px;
  font-weight: 750;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 700;
  min-height: 44px;
  padding: 11px 17px;
  transition:
    box-shadow 0.15s,
    background 0.15s;
}
.button.primary {
  background: #5620d5;
  box-shadow: 0 3px 8px #5620d522;
}
.button.primary:hover {
  background: #4618b7;
  box-shadow: 0 5px 14px #5620d533;
}
.button.secondary {
  background: white;
  border: 1px solid #e1e7f2;
  color: #4e26b7;
}
.button.secondary:hover {
  background: #f3effd;
}
.panel,
.production-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-heading {
  padding: 22px 24px;
  border-bottom: 1px solid #edf1f5;
}
.panel-heading h2 {
  font-size: 17px;
}
.production-card {
  padding: 24px;
}
.line-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f2edff;
  color: #6427d8;
}
.production-value {
  font-variant-numeric: tabular-nums;
  letter-spacing: -2px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 650;
  padding: 5px 9px;
}
.badge.success {
  background: #e8f5ef;
  color: #24624f;
}
.badge.neutral {
  background: #f1f0fa;
  color: #637391;
}
.filters {
  background: white;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  gap: 10px;
}
.filters input,
.filters select {
  background: #f9faff;
  border: 1px solid #e0e5f1;
  border-radius: 9px;
  min-height: 44px;
  font-size: 14px;
}
th {
  background: #f9faff;
  color: #677796;
  font-size: 11px;
  letter-spacing: 0.5px;
}
td {
  font-size: 13px;
  padding-top: 17px;
  padding-bottom: 17px;
}
tbody tr:hover {
  background: #faf9ff;
}
.text-link {
  color: #6029c9;
  font-weight: 650;
}
.empty-state {
  padding: 40px 24px;
}
.empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  background: #f3effd;
  color: #6427d8;
  border-radius: 20px;
}
.empty-state h3 {
  font-size: 18px;
}
.empty-state p {
  font-size: 14px;
  max-width: 380px;
  margin-inline: auto;
}
.create-modal {
  background: #fff;
  border-radius: 22px;
  padding: 28px;
}
.create-modal .page-heading {
  margin-bottom: 24px;
}
.create-modal .page-heading p {
  margin-bottom: 0;
}
.modal-close,
.logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.modal-close {
  background: #f4f7fa;
  border: 0;
}
.form-extra {
  background: #f6f9fc;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: 3px solid #7847ec26;
  border-color: #7847ec;
}
.form-actions {
  align-items: center;
}
@media (max-width: 720px) {
  .topbar {
    min-height: 64px;
  }
  .page-heading {
    align-items: stretch;
    margin-bottom: 22px;
  }
  .page-heading > .button {
    min-height: 46px;
  }
  .panel-heading {
    padding: 18px;
  }
  .production-card {
    padding: 20px;
  }
  .mobile-dock {
    padding-top: 7px;
    box-shadow: 0 -3px 20px #102f4308;
  }
  .mobile-dock a,
  .mobile-dock button {
    font-size: 10px;
    font-weight: 700;
    gap: 5px;
  }
  .mobile-dock span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 27px;
  }
  .mobile-dock .ui-icon {
    width: 21px;
    height: 21px;
  }
  .mobile-dock [aria-current='page'] {
    background: transparent;
    color: #5d25cc;
  }
  .mobile-dock [aria-current='page'] > span {
    background: #eee7ff;
    border-radius: 9px;
  }
  .create-modal {
    padding: 22px 18px max(22px, env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
  }
  .mobile-cards td {
    font-size: 14px;
  }
  .filters {
    padding: 12px;
  }
  .filters input,
  .filters select {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Controles exclusivos de móvil y proporciones de la agenda. */
.navigation-close {
  display: none;
}
.calendar-grid {
  min-height: 300px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.calendar-grid.month {
  min-height: 0;
}
.calendar-day {
  padding: 14px 10px;
}
.calendar-date {
  position: relative;
  min-height: 102px;
  padding: 2px 0 16px;
  border-bottom: 1px solid #eaf0f5;
  margin-bottom: 12px;
}
.calendar-date span {
  font-size: 12px;
  font-weight: 650;
  color: #5f7197;
}
.calendar-date strong {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: 6px auto 0;
  font-size: 21px;
  border-radius: 12px;
}
.is-today .calendar-date strong {
  color: #fff;
  background: #6227d9;
}
.calendar-date small {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  font-weight: 750;
}
.calendar-empty {
  padding: 28px 4px;
  font-size: 13px;
  color: #637391;
}
.calendar-legend {
  font-size: 13px;
  line-height: 1.6;
}
.calendar-meeting {
  border-radius: 10px;
  padding: 12px;
}
.calendar-meeting strong {
  font-size: 14px;
}
.calendar-grid.month .calendar-date {
  min-height: 94px;
}
.calendar-grid.month .calendar-empty {
  padding: 14px 0;
}
@media (min-width: 721px) {
  .sidebar-compact .sidebar {
    padding-top: 24px;
  }
  .sidebar-compact .sidebar .brand {
    display: grid;
    place-items: center;
    min-height: 56px;
  }
  .sidebar-compact .sidebar nav {
    margin-top: 20px;
  }
  .sidebar-compact .sidebar .user-card form {
    margin: 0;
  }
  .period-toolbar {
    justify-content: flex-start;
    gap: 24px;
  }
  .period-toolbar > .text-link {
    margin-left: auto;
  }
  .filters input[name='q'] {
    flex: 1;
    min-width: 200px;
  }
}
@media (max-width: 720px) {
  .navigation-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .calendar-grid.week {
    min-height: 280px;
  }
  .calendar-date {
    min-height: 102px;
  }
}

/* Priorizar orientación y tareas sobre elementos decorativos. */
.page-heading .sky {
  display: none;
}
.sidebar .method-note,
.sidebar .workspace-label {
  display: none;
}
.sidebar > .nav-label {
  margin-top: 28px;
}
.topbar-right .live-dot {
  display: none;
}
.page-heading h1 {
  font-size: clamp(25px, 2vw, 30px);
}
.section-heading h2 {
  font-size: 18px;
}
.production-value {
  font-size: 38px;
}
.secondary-report {
  margin-top: 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 20px;
}
.secondary-report > summary {
  cursor: pointer;
  color: #24365a;
  font-weight: 700;
  line-height: 1.7;
}
.secondary-report > summary small {
  display: block;
  margin-left: 18px;
  font-weight: 400;
  color: var(--muted);
  font-size: 13px;
}
.secondary-report[open] > summary {
  margin-bottom: 24px;
}
.period-details {
  margin: -4px 0 18px;
  color: var(--muted);
  font-size: 12px;
}
.period-details > summary {
  cursor: pointer;
  width: fit-content;
}
.period-details .report-period {
  margin-top: 12px;
}
@media (max-width: 720px) {
  .mobile-dock a,
  .mobile-dock button {
    font-size: 10px;
  }
  .secondary-report {
    padding: 16px;
  }
}

/* Liah — shared navy and violet design system. */
:root {
  --navy: #101c3d;
  --ink: #15234b;
  --muted: #647696;
  --sky: #7847ec;
  --accent: #6028d9;
  --accent-soft: #f2edff;
  --border: #e3e9f4;
  --bg: #f5f7fc;
  --shadow: 0 5px 24px #1b285c04;
}
body {
  background: radial-gradient(ellipse at 75% 0, #eeedfa66, transparent 45%), var(--bg);
}
[hidden] {
  display: none !important;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 100;
  background: white;
  padding: 14px 22px;
  border-radius: 12px;
  color: var(--accent);
}
.skip-link:focus {
  top: 10px;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #966fee;
  outline-offset: 3px;
}
.sidebar {
  background:
    radial-gradient(ellipse at 105% 100%, #48209645, transparent 37%),
    linear-gradient(160deg, #101c3d, #101a36);
  padding-inline: 16px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #475075 transparent;
}
.sidebar::before {
  content: '';
  position: fixed;
  bottom: 100px;
  left: -40px;
  width: 278px;
  height: 160px;
  background: linear-gradient(
    155deg,
    transparent 28%,
    #6332d918 29%,
    transparent 65%,
    #9f76f022 66%,
    transparent 67%
  );
  pointer-events: none;
}
.sidebar > * {
  position: relative;
}
.sidebar .brand {
  margin-left: 22px;
}
.sidebar .brand-sub {
  color: #dce2f4;
  font-size: 10px;
  letter-spacing: 1.65px;
  margin-top: 12px;
}
.sidebar nav a {
  font-size: 13px;
  padding: 12px 15px;
  min-height: 46px;
  margin-bottom: 5px;
  border: 1px solid transparent;
}
.sidebar nav a.active {
  background: linear-gradient(110deg, #6828e48c, #43218f9c);
  box-shadow:
    inset 0 0 17px #783af849,
    0 3px 18px #5121b322;
  border-color: #7136db80;
  color: white;
}
.sidebar nav a.active .nav-icon {
  color: white;
}
.sidebar .nav-label {
  font-size: 10px;
  letter-spacing: 1.15px;
}
.sidebar-bottom {
  padding-top: 28px;
}
.user-card {
  margin-top: 0;
  padding: 20px 0;
}
.user-card > div {
  min-width: 0;
}
.user-card strong,
.user-card small {
  overflow-wrap: anywhere;
}
.user-card small {
  color: #b6c2df;
  font-size: 11px;
}
.avatar {
  background: linear-gradient(135deg, #8f8ab8, #545d94);
  color: white;
  width: 40px;
  height: 40px;
  overflow: hidden;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar.light {
  background: #f0eafa;
  color: #6430c7;
}
.topbar {
  height: 64px;
  padding-inline: 32px;
  background: #ffffffee;
  border-color: var(--border);
}
.topbar-right {
  color: #34476f;
  gap: 10px;
}
.topbar-right > .ui-icon {
  width: 18px;
  height: 18px;
}
.timezone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0;
  font-weight: 650;
}
.breadcrumb {
  color: #556990;
  font-size: 13px;
  align-items: center;
}
.breadcrumb strong {
  color: #263b67;
  font-weight: 650;
}
main {
  padding: 28px 32px;
}
main:focus {
  outline: none;
}
.page-heading {
  margin-bottom: 25px;
}
.page-heading h1 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(24px, 2.3vw, 31px);
  letter-spacing: -1px;
  font-weight: 800;
  color: var(--ink);
}
.heading-icon {
  display: inline-grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 13px;
  background: #eee8fb;
  color: var(--accent);
  flex-shrink: 0;
}
.heading-icon .ui-icon {
  width: 24px;
  height: 24px;
}
.page-heading p {
  color: var(--muted);
}
.button {
  min-height: 43px;
  border-radius: 11px;
  letter-spacing: -0.1px;
}
.button.primary {
  background: linear-gradient(135deg, #6828e3, #4b1fc7);
  border: 1px solid #5d23d4;
  box-shadow: 0 4px 10px #6028d918;
  color: #fff;
}
.button.primary:hover {
  background: linear-gradient(135deg, #7532ed, #5825d6);
  box-shadow: 0 6px 15px #6028d92b;
}
.button.secondary {
  color: #4825a1;
  background: #fff;
  border-color: #e0e6f2;
  box-shadow: 0 2px 4px #18295902;
}
.button.secondary:hover {
  background: #f7f3ff;
  border-color: #d4c4f8;
}
.button-small {
  min-height: 36px;
  padding: 8px 13px;
  font-size: 12px;
}
.text-link {
  color: #6130c8;
}
.panel,
.production-card,
.secondary-report {
  border-radius: 17px;
  border-color: var(--border);
  box-shadow: var(--shadow);
}
.panel-heading {
  padding: 21px 24px;
  border-bottom-color: #edf0f8;
}
.panel-heading h2,
.section-heading h2 {
  color: var(--ink);
  font-weight: 800;
}
.panel-heading p,
.person small,
.help-text,
.back-link,
.footer {
  color: var(--muted);
}
.empty-state {
  white-space: normal;
  padding: 46px 24px;
}
.empty-state h3 {
  color: var(--ink);
  font-weight: 800;
}
.empty-state p {
  color: var(--muted);
}
.empty-icon {
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.filters {
  padding: 15px 18px;
  gap: 12px;
  box-shadow: var(--shadow);
}
.filters label {
  font-size: 12px;
  font-weight: 650;
  color: #52638b;
}
.filters input,
.filters select {
  background: #fafbfe;
  border-color: #e2e7f2;
  color: #34496d;
}
.filters input:focus,
.filters select:focus,
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: #8854e6;
  box-shadow: 0 0 0 3px #7847ec12;
  outline: none;
}
.form-panel {
  padding: 30px;
  max-width: 1040px;
  border-top: 3px solid #cbb4f8;
}
.form-field label {
  color: #34446b;
  font-weight: 700;
}
.form-field input,
.form-field select,
.form-field textarea {
  border-color: #dfe5f1;
  color: #263b63;
  border-radius: 10px;
  background: #fcfcff;
}
.form-field input[type='file'] {
  padding: 8px;
}
.form-field input::file-selector-button {
  border: 0;
  border-radius: 6px;
  color: #5929bf;
  background: #eee7fb;
  padding: 8px 12px;
  margin-right: 12px;
  cursor: pointer;
}
input[type='checkbox'],
input[type='radio'] {
  accent-color: var(--accent);
}
.required {
  color: var(--accent);
}
.form-extra {
  background: #faf8ff;
  border-color: #e8e0f8;
}
.form-extra summary {
  color: #513488;
}
.form-actions {
  border-color: var(--border);
}
.form-errors,
.field-error {
  color: #9c353f;
}
.form-errors {
  background: #fff1f2;
  border: 1px solid #f5d9df;
  border-radius: 10px;
}
.create-modal {
  border: 1px solid #e5dff1;
  box-shadow: 0 24px 100px #101c3d33;
}
.create-modal::backdrop {
  background: #101c3d70;
  backdrop-filter: blur(4px);
}
.create-modal .form-panel {
  border-top: 0;
}
th {
  font-size: 11px;
  font-weight: 700;
  color: #667594;
  text-transform: uppercase;
  letter-spacing: 0.55px;
  background: #f9faff;
  padding-block: 16px;
}
td {
  color: #536489;
  border-color: #eef0f7;
  padding-block: 19px;
}
td strong {
  color: #20325a;
  font-weight: 700;
}
tbody tr:hover {
  background: #fcfaff;
}
.badge {
  border-radius: 7px;
  font-size: 11px;
  font-weight: 650;
}
.badge.neutral,
.badge.scheduled,
.badge.rescheduled {
  background: #f0edf9;
  color: #69518e;
}
.badge.success,
.badge.done {
  background: #e5f8ed;
  color: #247447;
}
.badge.confirmed {
  background: #eaf0ff;
  color: #405fac;
}
.badge.pending {
  background: #fff5df;
  color: #8a671b;
}
.badge.warning,
.badge.no_show,
.badge.cancelled_casher,
.badge.cancelled_contact {
  background: #fff0e5;
  color: #9b562c;
}
.hero {
  border-radius: 19px;
  background:
    radial-gradient(ellipse at 100% 100%, #7131bd75, transparent 55%),
    linear-gradient(120deg, #101c3d, #1d2049);
  box-shadow: 0 8px 25px #1e205914;
}
.hero h2 span {
  color: #c6acff;
}
.hero p,
.hero .eyebrow,
.hero-score div span,
.hero-pill {
  color: #c0cbe3;
}
.hero a {
  color: #d1bdff;
}
.hero-circle {
  border-color: #c8a4ff15;
}
.line-icon {
  border-radius: 50%;
  width: 42px;
  height: 42px;
}
.demo .line-icon {
  background: #edf1ff;
  color: #546ec0;
}
.cafe .line-icon {
  background: #eaf7f0;
  color: #3d8665;
}
.production-value,
.metric-strip strong,
.conversion-grid strong {
  color: var(--ink);
}
.production-grid {
  gap: 17px;
}
.production-card {
  padding: 23px;
}
.progress {
  background: #f0ecf8;
  height: 6px;
}
.progress > span {
  background: linear-gradient(90deg, #8b5aea, #6028d9);
}
.balance {
  border-color: #eeeaf5;
}
.metric-strip {
  border-radius: 15px;
  padding-block: 22px;
  box-shadow: var(--shadow);
}
.metric-strip div > span {
  color: var(--muted);
}
.appointment:hover,
.followup:hover {
  background: #fcfaff;
}
.appointment-body strong,
.followup strong {
  color: #213358;
}
.tip {
  background: #f6f2ff;
  border-color: #e9e0fa;
  border-radius: 12px;
}
.tip > span,
.tip strong {
  color: #754caf;
}
.tabs {
  border: 1px solid #e4e6f1;
  background: #eeedf7;
  padding: 4px;
  border-radius: 11px;
}
.tabs a {
  border-radius: 8px;
  color: #657193;
}
.tabs a.selected {
  color: var(--accent);
  box-shadow: 0 2px 6px #532d9810;
}
.date-control > a {
  border-radius: 8px;
  width: 33px;
  height: 33px;
  color: #6b469e;
}
.calendar-grid {
  border-radius: 16px;
  border-color: var(--border);
}
.calendar-date {
  min-height: 100px;
}
.calendar-date strong {
  color: #33466d;
}
.calendar-date small {
  color: var(--accent);
}
.is-today {
  background: #faf8ff;
}
.is-today .calendar-date strong {
  color: #fff;
  background: var(--accent);
}
.calendar-meeting {
  border-color: #d7c5f0;
  border-left-color: #9564dd;
  background: #fcf9ff;
  border-radius: 10px;
}
.calendar-meeting.effective {
  background: #eee5fb;
}
.calendar-empty {
  color: #7b88a2;
}
.kanban {
  gap: 16px;
  padding-bottom: 18px;
}
.kanban-column {
  background: #eeeff7;
  border: 1px solid #e3e5f0;
  border-radius: 15px;
  padding: 14px;
}
.kanban-column > h2 {
  color: #37476b;
  font-size: 13px;
  padding-bottom: 14px;
}
.opportunity-card {
  border-color: #e5e5f0;
  border-radius: 12px;
  box-shadow: 0 3px 10px #17244704;
  padding: 17px;
}
.opportunity-card h3,
.opportunity-card h3 a {
  color: #26385f;
}
.opportunity-card:hover {
  border-color: #cbb4ef;
}
.origin-tag {
  color: #7244b1;
  background: #f4effc;
  border-radius: 6px;
}
.stage-dot.new {
  background: #9568de;
}
.stage-dot.proposal {
  background: #6f53c9;
}
.detail-panel {
  border-color: var(--border);
}
.detail-panel dt {
  color: #657391;
  font-size: 12px;
}
.detail-panel dd {
  color: #24365d;
}
.collection-total {
  background: radial-gradient(ellipse at right bottom, #6630a766, transparent 70%), var(--navy);
  border: 1px solid #282752;
  border-radius: 18px;
  color: white;
}
.collection-total strong {
  color: white;
}
.collection-total > span,
.collection-total p,
.collection-total small {
  color: #c4cce4;
}
.secondary-report > summary {
  color: #364669;
}
.login-page .login-story {
  background: radial-gradient(ellipse at 0 100%, #7135b352, transparent 65%), #101c3d;
}
.login-story h1 span {
  color: #c4a6ff;
}
.login-access-mark {
  background: #f1eaff;
  color: #6632c5;
  border-color: #e4d7fa;
}
.login-page .login-form {
  background: #f8f9fd;
}
.login-page .login-form .eyebrow {
  color: #805aa8;
}
.login-page .login-form h2 {
  color: var(--ink);
}
.login-page .method-symbol,
.login-page .method-name {
  color: #d2bbff;
}
.login-page .login-mobile-intro span {
  color: var(--accent);
}

/* Profile: image cover, real metrics and contact portfolios. */
.profile-cover {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 182px;
  padding: 26px 28px;
  border: 1px solid #e0e9f0;
  border-radius: 17px;
  background:
    linear-gradient(90deg, #e5f4fae8 0%, #e7f5f7ca 39%, #f4f2f540 77%),
    url("profile-coast.310e0bcf4393.png") center 50% / cover;
  box-shadow: var(--shadow);
}
.profile-identity {
  display: flex;
  gap: 25px;
  align-items: center;
  min-width: 0;
}
.profile-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.profile-avatar {
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  border: 3px solid white;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(130deg, #b3bbd2, #d0d5e4);
  color: white;
  font-size: 38px;
  font-weight: 750;
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar-edit {
  position: absolute;
  bottom: 3px;
  right: 3px;
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 5px #4e239528;
}
.avatar-edit .ui-icon {
  width: 17px;
  height: 17px;
}
.profile-intro {
  min-width: 0;
}
.profile-intro h1 {
  font-size: clamp(26px, 2.6vw, 35px);
  font-weight: 800;
  margin: 0 0 7px;
  overflow-wrap: anywhere;
}
.profile-role {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
  color: #456586;
  font-size: 14px;
}
.profile-role .badge {
  border-radius: 20px;
  background: #ddfbe9;
}
.profile-role .badge.neutral {
  background: #edeef4;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.profile-intro p {
  color: #496887;
  font-size: 13px;
  margin: 13px 0 0;
  max-width: 590px;
  overflow-wrap: anywhere;
}
.profile-edit-button {
  padding: 15px 23px;
  flex-shrink: 0;
  box-shadow: 0 5px 15px #22344d15 !important;
}
.profile-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(275px, 1.6fr);
  gap: 15px;
  margin: 18px 0 28px;
}
.profile-stat {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 21px 18px;
  min-height: 116px;
}
.stat-icon {
  display: inline-grid;
  place-items: center;
  width: 57px;
  height: 57px;
  flex-shrink: 0;
  border-radius: 50%;
  color: var(--accent);
  background: linear-gradient(135deg, #f7f3ff, #eee7fb);
}
.stat-icon .ui-icon {
  width: 29px;
  height: 29px;
}
.profile-stat > div {
  min-width: 0;
}
.profile-stat div > span {
  font-size: 13px;
  color: #344774;
}
.profile-stat strong {
  display: block;
  font-size: 29px;
  line-height: 1.25;
  font-weight: 800;
  margin: 5px 0 2px;
}
.profile-stat small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.profile-cta {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  background:
    radial-gradient(ellipse at bottom right, #782ea0aa, transparent 65%),
    linear-gradient(130deg, #101c3d, #23184e);
  border-radius: 16px;
  color: #fff;
  padding: 22px 25px;
  box-shadow: var(--shadow);
}
.profile-cta > div,
.profile-cta > .cta-arrow {
  position: relative;
  z-index: 1;
}
.profile-cta strong {
  font-size: 17px;
  font-weight: 800;
}
.profile-cta p {
  color: #e4def5;
  font-size: 13px;
  line-height: 1.7;
  margin: 7px 0 0;
}
.cta-arrow {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: white;
  color: var(--accent);
  border-radius: 16px;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.cta-arrow .ui-icon {
  width: 26px;
  height: 26px;
}
.profile-cta:hover .cta-arrow {
  transform: translateX(3px);
}
.cta-watermark {
  position: absolute;
  right: 75px;
  bottom: -15px;
  color: #c2a7ff13;
  transform: rotate(-8deg);
}
.cta-watermark .ui-icon {
  width: 125px;
  height: 125px;
  stroke-width: 1;
}
.section-title {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.section-icon {
  color: var(--accent);
  padding-top: 1px;
}
.section-icon .ui-icon {
  width: 26px;
  height: 26px;
}
.section-title h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}
.section-title p {
  margin: 5px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.profile-section-heading {
  margin-top: 27px;
  margin-bottom: 16px;
}
.profile-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0 9px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(#fff, #fcfcff);
}
.profile-tabs a {
  margin: 0;
  padding: 19px 12px;
  justify-content: center;
  gap: 12px;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  font-size: 13px;
  color: #3d527c;
  text-align: center;
}
.profile-tabs a:hover {
  background: #faf7ff;
}
.profile-tabs a[aria-current] {
  border-bottom-color: #7032e5;
  color: #5124ba;
  font-weight: 750;
}
.profile-tabs a[aria-current] .ui-icon {
  color: #692ae0;
}
.profile-tab-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 32px;
  min-height: 134px;
}
.profile-facts {
  display: grid;
  grid-template-columns: minmax(130px, 180px) minmax(0, 1fr);
  gap: 11px 26px;
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  flex: 1;
}
.profile-facts dt {
  margin: 0;
  align-self: start;
  color: #2f4371;
  font-weight: 700;
}
.profile-facts dd {
  font-size: inherit;
  line-height: inherit;
  color: #4b5e86;
  margin: 0;
  overflow-wrap: anywhere;
}
.profile-context-note {
  max-width: 220px;
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.profile-activity {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}
.profile-activity li {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #eff0f6;
  font-size: 13px;
}
.profile-activity li:last-child {
  border: 0;
}
.activity-mark {
  color: #8c65c9;
  background: #f6f2fc;
  padding: 8px;
  border-radius: 50%;
}
.profile-activity time {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
}
.profile-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 27px;
  padding: 28px;
}
.profile-empty .empty-icon {
  margin: 0;
  width: 74px;
  height: 74px;
  flex-shrink: 0;
}
.profile-empty .empty-icon .ui-icon {
  width: 36px;
  height: 36px;
}
.profile-empty h3 {
  font-size: 15px;
  margin: 0 0 5px;
  font-weight: 800;
}
.profile-empty p {
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 12px;
  color: var(--muted);
}
.admin-visibility {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #72608e;
}
.admin-visibility .ui-icon {
  width: 16px;
  height: 16px;
}
.property-contact {
  margin-top: 18px;
}
.property-contact .panel-heading h2 {
  font-size: 16px;
}
.property-contact .panel-heading p {
  font-size: 12px;
}
.profile-property {
  padding: 23px 25px;
  border-bottom: 1px solid var(--border);
}
.profile-property:last-child {
  border-bottom: 0;
}
.property-heading,
.property-title {
  display: flex;
  align-items: center;
  gap: 16px;
}
.property-heading {
  justify-content: space-between;
}
.property-title {
  min-width: 0;
}
.property-title .stat-icon {
  width: 45px;
  height: 45px;
}
.property-title .stat-icon .ui-icon {
  width: 23px;
  height: 23px;
}
.property-title h3 {
  font-size: 16px;
  margin: 0 0 7px;
  overflow-wrap: anywhere;
}
.property-description {
  font-size: 13px;
  color: var(--muted);
  margin-top: 18px;
  overflow-wrap: anywhere;
}
.property-tracking {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 21px;
}
.property-tracking section {
  padding: 17px;
  border-radius: 12px;
  background: #faf9fd;
  border: 1px solid #efeaf8;
  min-width: 0;
}
.property-tracking h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin: 0 0 12px;
  color: #453467;
}
.property-tracking h4 .ui-icon {
  width: 17px;
  height: 17px;
  color: #9266c9;
}
.property-tracking ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.property-tracking li {
  font-size: 12px;
  border-top: 1px solid #ede8f6;
  padding: 10px 0;
}
.property-tracking li:first-child {
  border-top: 0;
}
.property-tracking li a {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.property-tracking li a:hover strong {
  color: var(--accent);
}
.tracking-empty,
.contact-empty {
  color: var(--muted);
  font-size: 13px;
}
.contact-empty {
  padding: 21px 24px;
}

@media (min-width: 721px) {
  .sidebar-compact .sidebar::before {
    display: none;
  }
}
@media (max-width: 1200px) {
  .profile-overview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .profile-cta {
    grid-column: 1 / -1;
    min-height: 102px;
  }
  .profile-cta p br {
    display: none;
  }
  .profile-stat {
    gap: 12px;
    padding: 18px 14px;
  }
  .profile-stat .stat-icon {
    width: 44px;
    height: 44px;
  }
  .profile-tabs a {
    gap: 8px;
    font-size: 12px;
  }
}
@media (max-width: 960px) {
  .topbar-right .timezone {
    display: none;
  }
  .profile-cover {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .profile-edit-button {
    margin-left: 133px;
  }
  .profile-tab-content {
    flex-wrap: wrap;
    padding: 22px;
  }
  .property-tracking {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  main {
    padding: 22px 16px;
  }
  .topbar {
    padding-inline: 16px;
    min-height: 60px;
    height: 60px;
    gap: 10px;
  }
  .topbar-right {
    display: none;
  }
  .sidebar {
    padding: 28px 16px 0;
  }
  .sidebar::before {
    position: absolute;
  }
  .sidebar .brand {
    margin-left: 18px;
  }
  .page-heading {
    gap: 16px;
    margin-bottom: 22px;
  }
  .page-heading h1 {
    font-size: 26px;
    gap: 10px;
  }
  .page-heading p {
    font-size: 13px;
  }
  .heading-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }
  .heading-icon .ui-icon {
    width: 21px;
    height: 21px;
  }
  .button {
    min-height: 44px;
  }
  .button-small {
    min-height: 40px;
  }
  .hero {
    padding: 25px 22px;
  }
  .form-panel {
    padding: 22px 18px;
  }
  .form-field input,
  .form-field select,
  .form-field textarea {
    font-size: 16px;
  }
  .filters {
    padding: 13px;
  }
  .filters input,
  .filters select {
    min-width: 0;
  }
  .panel-heading {
    padding: 19px 18px;
  }
  .empty-state {
    padding: 32px 18px;
  }
  .mobile-dock {
    background: #fffffff5;
    border-color: #e3e5f1;
    backdrop-filter: blur(10px);
  }
  .mobile-dock [aria-current='page'] {
    color: var(--accent);
  }
  .mobile-dock [aria-current='page'] > span {
    background: #eee6ff;
  }
  .mobile-cards td {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .mobile-cards td[colspan]::before {
    display: none;
  }
  .mobile-cards td[colspan] {
    display: block;
  }
  .calendar-grid.week {
    border-radius: 14px;
  }
  .kanban {
    gap: 12px;
  }
  .kanban-column {
    padding: 12px;
  }
  .footer {
    padding-inline: 18px;
    font-size: 10px;
  }
  .profile-cover {
    padding: 23px 20px;
    gap: 18px;
    background-position: 60% center;
  }
  .profile-identity {
    gap: 16px;
    align-items: flex-start;
  }
  .profile-avatar {
    width: 74px;
    height: 74px;
    font-size: 28px;
  }
  .avatar-edit {
    width: 29px;
    height: 29px;
    bottom: -2px;
    right: -2px;
  }
  .profile-intro h1 {
    font-size: 27px;
  }
  .profile-role {
    gap: 8px;
    font-size: 12px;
  }
  .profile-intro p {
    font-size: 12px;
    line-height: 1.65;
  }
  .profile-edit-button {
    margin-left: 0;
    padding: 11px 18px;
    width: 100%;
  }
  .profile-overview {
    gap: 10px;
    margin: 14px 0 23px;
  }
  .profile-stat {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 15px 12px;
    border-radius: 13px;
  }
  .profile-stat .stat-icon {
    width: 37px;
    height: 37px;
  }
  .profile-stat .stat-icon .ui-icon {
    width: 21px;
    height: 21px;
  }
  .profile-stat div > span {
    font-size: 11px;
  }
  .profile-stat strong {
    font-size: 26px;
  }
  .profile-stat small {
    font-size: 10px;
  }
  .profile-cta {
    padding: 21px;
  }
  .profile-cta strong {
    font-size: 16px;
  }
  .profile-cta p {
    font-size: 12px;
  }
  .profile-section-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 14px;
  }
  .profile-section-heading > .button {
    width: 100%;
  }
  .section-title {
    gap: 10px;
  }
  .section-title h2 {
    font-size: 17px;
  }
  .section-title p {
    font-size: 12px;
  }
  .profile-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-inline: 4px;
  }
  .profile-tabs a {
    flex-direction: column;
    padding: 15px 3px;
    font-size: 10px;
    gap: 7px;
    line-height: 1.4;
  }
  .profile-tabs .ui-icon {
    width: 20px;
    height: 20px;
  }
  .profile-tab-content {
    padding: 20px;
    gap: 18px;
  }
  .profile-facts {
    grid-template-columns: 1fr;
    gap: 4px;
    font-size: 13px;
    flex-basis: 100%;
  }
  .profile-facts dd {
    font-size: inherit;
    line-height: inherit;
    margin-bottom: 10px;
  }
  .profile-context-note {
    max-width: none;
  }
  .profile-empty {
    flex-direction: column;
    text-align: center;
    gap: 18px;
    padding: 28px 20px;
  }
  .profile-empty p br {
    display: none;
  }
  .profile-property {
    padding: 20px 18px;
  }
  .property-heading {
    flex-wrap: wrap;
    gap: 14px;
  }
  .property-contact .panel-heading {
    flex-wrap: wrap;
    gap: 12px;
  }
  .admin-visibility {
    align-items: flex-start;
    line-height: 1.7;
  }
  .profile-activity strong {
    overflow-wrap: anywhere;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

.dashboard-lower {
  margin-top: 22px;
}

/* Clear operational summaries, team management and goals. */
.heading-actions,
.member-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.heading-actions {
  justify-content: flex-end;
}
.workspace-section {
  margin-top: 34px;
}
.section-description {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.result-count {
  color: #667595;
  font-size: 12px;
  white-space: nowrap;
}
.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0 32px;
}
.overview-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 23px 25px;
  min-width: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: 17px;
  box-shadow: var(--shadow);
}
.overview-icon {
  position: absolute;
  right: 18px;
  top: 20px;
  color: #8d64cb;
  background: #f5effe;
  border-radius: 10px;
  padding: 8px;
}
.overview-icon .ui-icon {
  width: 18px;
  height: 18px;
}
.overview-card > span:not(.overview-icon) {
  font-size: 12px;
  color: #52648a;
  padding-right: 33px;
  min-height: 34px;
  font-weight: 650;
}
.overview-card > strong {
  font-size: 34px;
  letter-spacing: -1.3px;
  margin: 7px 0;
  line-height: 1.2;
}
.overview-card > small {
  color: #697997;
  font-size: 11px;
  line-height: 1.6;
}
.overview-card.emphasis {
  background: #fcfaff;
  border-color: #e7dcfa;
}
.overview-card.emphasis .overview-icon {
  background: #eee5ff;
  color: #7136c6;
}
.team-card-list {
  display: grid;
  gap: 22px;
}
.member-progress {
  overflow: visible;
}
.member-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 24px 27px;
  border-bottom: 1px solid #eff0f7;
}
.member-header .avatar {
  width: 48px;
  height: 48px;
}
.member-header .person {
  min-width: 0;
  gap: 15px;
}
.member-header .person > div {
  min-width: 0;
}
.member-header h3 {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 5px;
  overflow-wrap: anywhere;
}
.member-header p {
  font-size: 12px;
  margin: 0;
  color: #697795;
  line-height: 1.6;
}
.member-actions {
  flex-shrink: 0;
}
.member-lines {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 23px 27px;
  gap: 30px;
}
.member-line {
  padding-right: 27px;
  border-right: 1px solid #eef0f7;
}
.member-line:last-child {
  border: 0;
  padding-right: 0;
}
.member-line-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.member-line-title > span {
  font-size: 14px;
  font-weight: 750;
  color: #46316d;
}
.member-line-title small {
  font-size: 11px;
  color: #6c7895;
}
.member-line-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 10px 0 15px;
  flex-wrap: wrap;
}
.member-line-value strong {
  font-size: 29px;
  font-weight: 800;
}
.member-line-value span {
  font-size: 12px;
  color: var(--muted);
}
.member-line-value small {
  margin-left: auto;
  font-size: 11px;
  color: #6a5c8d;
}
.member-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 16px 28px;
  padding: 18px 27px;
  background: #fcfcff;
  border-top: 1px solid #eef0f7;
  border-radius: 0 0 17px 17px;
}
.member-footer > span {
  color: #647391;
  font-size: 12px;
}
.member-footer > span strong {
  color: #2b3c63;
  font-size: 14px;
}
.member-breakdown {
  margin-left: auto;
  font-size: 12px;
  color: #5f3d9b;
}
.member-breakdown summary {
  cursor: pointer;
  font-weight: 650;
  padding: 4px 0;
}
.member-breakdown[open] {
  flex-basis: 100%;
}
.breakdown-content {
  margin-top: 15px;
  padding: 20px;
  background: #f5f2fb;
  border: 1px solid #e8e0f4;
  border-radius: 12px;
  color: #5d6080;
}
.breakdown-content p {
  font-size: 12px;
  line-height: 1.8;
}
.breakdown-lines {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 17px 0;
}
.breakdown-lines > div {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.breakdown-lines strong {
  color: #3b3156;
}
.direction-outcomes {
  display: grid;
  gap: 15px;
}
.outcome-summary {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px;
}
.outcome-date {
  padding: 14px 15px;
  border-radius: 12px;
  background: #f5effe;
  color: #704aa4;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.outcome-summary h3 {
  font-size: 16px;
  margin-bottom: 7px;
}
.outcome-summary p {
  font-size: 12px;
  margin-bottom: 7px;
  color: var(--muted);
}
.outcome-summary > .badge {
  margin-left: auto;
}
.direction-notes-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.note-editor,
.notes-feed {
  padding: 26px;
}
.note-editor h3,
.notes-feed h3 {
  font-size: 17px;
  margin: 0 0 10px;
}
.note-editor > p {
  font-size: 12px;
  margin-bottom: 23px;
}
.note-editor .form-grid {
  grid-template-columns: 1fr;
}
.note-editor .form-actions {
  margin-top: 20px;
}
.note-empty {
  padding: 40px 15px;
  text-align: center;
  color: var(--muted);
}
.note-empty .ui-icon {
  width: 30px;
  height: 30px;
  color: #a085c5;
  margin-bottom: 14px;
}
.note-empty p {
  font-size: 14px;
  margin-bottom: 5px;
}
.note-empty small {
  font-size: 12px;
}
.decision-note {
  border-top: 1px solid var(--border);
  margin-top: 20px;
  padding-top: 20px;
}
.decision-note time {
  font-size: 12px;
  font-weight: 700;
  color: #8057b3;
}
.decision-note p {
  margin: 9px 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.decision-note small {
  font-size: 11px;
  color: var(--muted);
}
.quiet-empty {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px;
}
.quiet-empty .stat-icon {
  width: 50px;
  height: 50px;
}
.quiet-empty h3 {
  font-size: 15px;
  margin: 0 0 6px;
}
.quiet-empty p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
.directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.directory-card {
  padding: 25px;
  display: flex;
  flex-direction: column;
}
.directory-identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 19px;
}
.directory-identity .avatar {
  width: 55px;
  height: 55px;
  font-size: 22px;
}
.directory-card h3 {
  font-size: 18px;
  margin-bottom: 7px;
  overflow-wrap: anywhere;
}
.directory-role {
  font-size: 12px;
  font-weight: 650;
  color: #7756a1;
  margin-bottom: 11px;
}
.directory-description {
  font-size: 13px;
  color: var(--muted);
  min-height: 44px;
  margin-bottom: 20px;
  overflow-wrap: anywhere;
}
.directory-counts {
  display: flex;
  gap: 24px;
  padding: 17px 0;
  margin-top: auto;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}
.directory-counts strong {
  color: #35436a;
}
.directory-actions {
  display: flex;
  gap: 10px;
  margin-top: 7px;
  flex-wrap: wrap;
}
.directory-actions .button {
  flex: 1;
  font-size: 12px;
  padding-inline: 12px;
}
.role-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
  padding-top: 8px;
}
.role-guide-grid h3 {
  font-size: 14px;
  margin-bottom: 9px;
}
.role-guide-grid p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 25px 0;
  color: var(--muted);
  font-size: 13px;
}
.goal-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.goal-card {
  padding: 25px;
}
.goal-card-title {
  display: flex;
  align-items: center;
  gap: 13px;
}
.goal-card-title h3 {
  font-size: 18px;
  margin-bottom: 4px;
}
.goal-card-title small {
  font-size: 11px;
  color: var(--muted);
}
.goal-daily {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 25px 0;
}
.goal-daily strong {
  font-size: 46px;
  letter-spacing: -1.5px;
  line-height: 1.1;
}
.goal-daily span {
  color: var(--muted);
  font-size: 13px;
}
.goal-targets {
  margin: 0;
}
.goal-targets > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 12px 0;
  border-top: 1px solid #edf0f7;
}
.goal-targets dt {
  margin: 0;
  color: #5e6d8c;
  font-size: 12px;
}
.goal-targets dd {
  color: #253963;
  font-size: 16px;
  font-weight: 750;
}
.goal-rule {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 13px;
  background: #faf8fd;
  border-radius: 10px;
  margin: 16px 0 0;
  color: #776587;
  font-size: 11px;
  line-height: 1.7;
}
.goal-rule .ui-icon {
  width: 16px;
  height: 16px;
  margin-top: 2px;
}
.goal-person-filter select {
  min-width: 230px;
}
.goal-person-filter > .text-link {
  margin-left: auto;
}
.explanation-note {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #687492;
  font-size: 12px;
  line-height: 1.8;
  margin: 20px 0 30px;
}
.explanation-note .ui-icon {
  color: #9476bc;
  width: 18px;
  height: 18px;
}
.goal-editor {
  margin: 30px 0;
}
.goal-editor > summary {
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  padding: 23px 27px;
  background: #fcfaff;
  list-style: none;
}
.goal-editor > summary::-webkit-details-marker {
  display: none;
}
.goal-editor > summary strong {
  display: block;
  color: #352456;
  font-size: 15px;
}
.goal-editor > summary small {
  display: block;
  font-size: 12px;
  color: #7a6b8d;
  margin-top: 6px;
}
.editor-symbol {
  color: var(--accent);
  background: #eee6fc;
  padding: 11px;
  border-radius: 12px;
}
.editor-chevron {
  margin-left: auto;
  color: #8c67b9;
}
.goal-editor[open] .editor-chevron {
  transform: rotate(45deg);
}
.goal-editor-body {
  padding: 28px;
  border-top: 1px solid #eadff8;
}
.goal-fieldset {
  padding: 0;
  margin: 0 0 30px;
  border: 0;
  min-width: 0;
}
.goal-fieldset legend {
  font-size: 15px;
  font-weight: 750;
  color: #324366;
  margin-bottom: 17px;
}
.goal-fieldset legend span {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  margin-right: 10px;
  background: #f0e9fb;
  color: #8253b9;
  border-radius: 50%;
  font-size: 12px;
}
.goal-fieldset > p {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 21px;
}
.goal-identity-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.goal-numeric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}
.goal-numeric-grid label {
  min-height: 40px;
  font-size: 12px;
  line-height: 1.6;
}
.policy-history,
.exception-list {
  display: grid;
  gap: 16px;
}
.policy-history-card {
  padding: 23px 26px;
}
.policy-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}
.policy-header h3 {
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 9px;
}
.policy-header p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.policy-header > small {
  color: #8993a9;
  font-size: 11px;
}
.policy-values {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 27px;
  padding: 20px 0;
  margin-top: 8px;
}
.policy-values span {
  font-size: 12px;
  color: #60708e;
}
.policy-values strong {
  font-size: 15px;
  color: #304165;
  margin-right: 4px;
}
.policy-reason {
  font-size: 12px;
  color: #6c558b;
  padding-top: 14px;
  border-top: 1px solid #eef0f7;
}
.policy-reason summary {
  cursor: pointer;
}
.policy-reason p {
  margin-top: 15px;
  color: #62708b;
  overflow-wrap: anywhere;
}
.exception-card {
  display: flex;
  align-items: flex-start;
  padding: 24px;
  gap: 18px;
}
.exception-card h3 {
  font-size: 15px;
  margin-bottom: 8px;
}
.exception-card p {
  color: var(--muted);
  margin-bottom: 10px;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.exception-card small {
  font-size: 11px;
  color: #8490a8;
}
.production-explanation {
  border-top: 1px solid #eef0f7;
  padding-top: 14px;
  margin-top: 16px;
  font-size: 12px;
  color: #725791;
}
.production-explanation summary {
  cursor: pointer;
}
.production-explanation .small {
  font-size: 12px;
  line-height: 1.85;
  padding-top: 12px;
}
.production-grid + .dashboard-lower {
  margin-top: 28px;
}
[data-screen='dashboard'] .production-card {
  padding: 25px;
}
[data-screen='dashboard'] .balance {
  gap: 18px;
  padding-top: 17px;
  margin-top: 21px;
}
[data-screen='dashboard'] .balance > span {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
[data-screen='dashboard'] .balance strong {
  margin-left: 0;
  font-size: 20px;
  color: #354267;
}
[data-screen='dashboard'] .panel-foot {
  flex-wrap: wrap;
  font-size: 11px;
}
main > .panel + .panel,
main > .panel + .detail-grid {
  margin-top: 28px;
}
.table-wrap td {
  padding: 22px 24px;
  vertical-align: middle;
}
.table-wrap th {
  padding: 19px 24px;
  line-height: 1.7;
}
.table-wrap .person > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}
@media (max-width: 1200px) {
  .overview-grid {
    gap: 12px;
  }
  .overview-card {
    padding: 20px 18px;
  }
  .member-line-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  .member-line-value small {
    flex-basis: 100%;
  }
  .directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .goal-card {
    padding: 21px 18px;
  }
  .goal-numeric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 960px) {
  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .member-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .member-actions {
    width: 100%;
    justify-content: space-between;
  }
  .member-lines {
    gap: 18px;
  }
  .member-line {
    padding-right: 15px;
  }
  .goal-card-grid {
    grid-template-columns: 1fr;
  }
  .goal-card {
    padding: 24px;
  }
  .direction-notes-grid {
    grid-template-columns: 1fr;
  }
  .role-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .heading-actions {
    justify-content: flex-start;
  }
  .goal-identity-fields {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .heading-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .overview-grid {
    gap: 11px;
    margin-bottom: 26px;
  }
  .overview-card {
    padding: 17px 15px;
  }
  .overview-card > span:not(.overview-icon) {
    font-size: 11px;
    min-height: 33px;
    padding-right: 0;
    padding-top: 36px;
  }
  .overview-icon {
    top: 12px;
    left: 15px;
    right: auto;
    padding: 6px;
  }
  .overview-card > strong {
    font-size: 29px;
  }
  .overview-card > small {
    font-size: 10px;
  }
  .workspace-section {
    margin-top: 29px;
  }
  .workspace-section > .section-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .section-description {
    font-size: 12px;
  }
  .team-filters .inline-check {
    width: 100%;
  }
  .member-header {
    padding: 20px;
    gap: 16px;
  }
  .member-header .person {
    align-items: flex-start;
  }
  .member-header h3 {
    font-size: 16px;
  }
  .member-header p {
    font-size: 11px;
  }
  .member-actions {
    gap: 10px;
  }
  .member-actions .badge {
    white-space: normal;
  }
  .member-lines {
    grid-template-columns: 1fr;
    padding: 0 20px;
    gap: 0;
  }
  .member-line {
    border-right: 0;
    padding: 19px 0;
    border-bottom: 1px solid #eef0f7;
  }
  .member-line-title {
    flex-direction: row;
    align-items: center;
  }
  .member-line-value {
    margin-block: 8px 12px;
  }
  .member-line-value small {
    flex-basis: auto;
  }
  .member-footer {
    padding: 19px 20px;
    flex-direction: column;
    gap: 12px;
  }
  .member-breakdown {
    margin-left: 0;
    width: 100%;
  }
  .breakdown-content {
    padding: 16px;
  }
  .breakdown-lines {
    gap: 12px;
    grid-template-columns: 1fr;
  }
  .breakdown-lines > div {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .breakdown-lines > div strong {
    flex-basis: 100%;
  }
  .quiet-empty {
    padding: 23px 20px;
    align-items: flex-start;
    gap: 15px;
  }
  .quiet-empty h3 {
    font-size: 14px;
  }
  .quiet-empty p {
    font-size: 12px;
  }
  .quiet-empty .stat-icon {
    width: 39px;
    height: 39px;
  }
  .quiet-empty .stat-icon .ui-icon {
    width: 22px;
    height: 22px;
  }
  .outcome-summary {
    padding: 20px;
    gap: 16px;
    flex-wrap: wrap;
  }
  .outcome-summary > .badge {
    margin-left: 0;
  }
  .note-editor,
  .notes-feed {
    padding: 22px 20px;
  }
  .directory-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .directory-card {
    padding: 23px;
  }
  .role-guide-grid {
    grid-template-columns: 1fr;
  }
  .goal-person-filter select {
    min-width: 0;
    width: 100%;
  }
  .goal-person-filter > .text-link {
    margin-left: 0;
  }
  .goal-card-grid {
    gap: 17px;
  }
  .goal-card {
    padding: 23px;
  }
  .goal-editor > summary {
    padding: 19px;
    gap: 12px;
  }
  .goal-editor > summary strong {
    font-size: 13px;
  }
  .goal-editor > summary small {
    font-size: 11px;
    line-height: 1.7;
  }
  .editor-symbol {
    padding: 8px;
  }
  .editor-chevron {
    display: none;
  }
  .goal-editor-body {
    padding: 22px 19px;
  }
  .goal-numeric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .goal-fieldset legend {
    font-size: 14px;
  }
  .policy-history-card {
    padding: 21px;
  }
  .policy-header {
    flex-wrap: wrap;
  }
  .policy-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17px;
  }
  .policy-values strong {
    display: block;
    margin-bottom: 5px;
  }
  .exception-card {
    padding: 21px;
  }
  .explanation-note {
    align-items: flex-start;
  }
  .explanation-note .ui-icon {
    margin-top: 4px;
  }
  .table-wrap .mobile-cards td {
    padding: 13px 15px;
  }
}

.filters .inline-check {
  display: flex;
  align-items: center;
  gap: 10px;
}
.filters .inline-check input[type='checkbox'] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  flex: 0 0 18px;
  margin: 0;
  padding: 0;
}
.goal-history-report[open] > .policy-history {
  margin-top: 22px;
}
.table-wrap td {
  line-height: 1.7;
}

/* Agenda y bitácora: jerarquía, espacio y lectura por actividad. */
.activity-filters { padding: 22px; margin-bottom: 30px; }
.activity-filters .filters, .agenda-filters { margin: 0; align-items: end; gap: 16px; }
.activity-filters label, .agenda-filters label { display: grid; gap: 8px; font-size: 12px; font-weight: 650; color: var(--muted); min-width: 125px; flex: 1; }
.activity-filters label.filter-search, .agenda-filters label.filter-search { flex: 2; min-width: 200px; }
.activity-filters input, .activity-filters select, .agenda-filters input, .agenda-filters select { width: 100%; min-width: 0; margin: 0; }
.history-count { display: inline-flex; padding: 10px 16px; background: #eee9fa; border-radius: 24px; color: #5a3897; font-size: 13px; }
.activity-feed { max-width: 1120px; margin: 0 auto; }
.activity-date { font-size: 13px; text-transform: capitalize; letter-spacing: .02em; margin: 30px 0 16px 62px; color: var(--muted); }
.activity-item { display: flex; align-items: flex-start; gap: 18px; margin: 0 0 16px; }
.activity-avatar { display: grid; place-items: center; background: #ebe5fb; color: #6028d9; width: 44px; height: 44px; border-radius: 15px; flex: 0 0 44px; font-size: 17px; font-weight: 750; margin-top: 10px; }
.activity-body { background: #fff; border: 1px solid #e1e7f2; border-radius: 17px; padding: 24px 28px; min-width: 0; flex: 1; }
.activity-top { display: flex; gap: 16px; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.activity-category { color: #654698; font-size: 11px; font-weight: 750; letter-spacing: .055em; }
.activity-top time { font-size: 12px; color: var(--muted); white-space: nowrap; }
.activity-body h3 { font-size: 16px; line-height: 1.5; margin: 0 0 5px; }
.activity-person { font-size: 13px; color: var(--muted); margin: 0; }
.activity-reason { font-size: 14px; line-height: 1.7; padding: 12px 16px; border-left: 3px solid #d7c9f9; background: #faf8ff; margin: 16px 0 0; border-radius: 0 9px 9px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.activity-changes { margin-top: 18px; }
.activity-changes summary { font-size: 13px; font-weight: 650; color: #6028d9; cursor: pointer; padding: 6px 0; }
.change-labels, .change-row { display: grid; grid-template-columns: minmax(100px, .7fr) repeat(2, minmax(0, 1fr)); gap: 18px; padding: 14px 0; }
.change-labels { color: var(--muted); font-size: 11px; text-transform: uppercase; margin-top: 8px; }
.change-row { border-top: 1px solid #e9edf5; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.change-row > span { white-space: pre-wrap; max-height: 260px; overflow: auto; }
.change-row > span:last-child { color: #355e53; }
.change-row small { display: none; }
.activity-trace { margin-top: 15px; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.activity-trace summary { cursor: pointer; }
.activity-trace small { display: block; padding-top: 10px; }
.agenda-overview { margin-bottom: 24px; }
.agenda-connection { padding: 15px 20px; margin-bottom: 20px; border: 1px solid #dcd2f4; border-radius: 12px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; font-size: 13px; background: #f5f0ff; }
.agenda-controls { padding: 24px; }
.agenda-navigation { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; flex-wrap: wrap; }
.agenda-navigation .date-control { gap: 10px; min-width: 0; }
.agenda-navigation h2 { font-size: 18px; margin: 0; line-height: 1.4; text-align: center; }
.agenda-navigation .tabs { margin: 0 0 0 auto; }
.agenda-navigation .date-control a { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #e2e7f2; border-radius: 10px; font-size: 24px; flex-shrink: 0; }
.agenda-caption { display: flex; gap: 15px; justify-content: space-between; align-items: center; flex-wrap: wrap; margin: 22px 0 16px; font-size: 12px; color: var(--muted); }
.planner-grid { display: grid; gap: 14px; }
.planner-week { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.planner-month { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; border: 1px solid #e0e6f1; border-radius: 16px; overflow: hidden; background: #fff; }
.planner-day { background: #fff; border: 1px solid #e1e7f2; border-radius: 16px; padding: 16px; min-width: 0; }
.planner-date { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid #e9edf6; }
.planner-date > div { display: flex; flex-direction: column; gap: 8px; }
.planner-date span { font-size: 11px; text-transform: capitalize; color: var(--muted); }
.planner-date strong { font-size: 25px; font-weight: 750; line-height: 1.1; }
.planner-date small { color: var(--muted); font-size: 10px; }
.planner-date .today-tag { color: #6028d9; background: #eee8fc; padding: 5px 8px; border-radius: 8px; font-weight: 750; }
.planner-today { border-color: #b79bec; background: #fdfbff; }
.planner-today .planner-date strong { color: #6028d9; }
.planner-event { --event-color: #6b39d6; display: flex; gap: 18px; border: 1px solid #e8e5f1; border-left: 3px solid var(--event-color); padding: 18px 20px; border-radius: 12px; background: #faf8ff; margin-bottom: 12px; color: var(--ink); min-width: 0; transition: background .15s, box-shadow .15s; }
.planner-event:hover { background: #f3edff; box-shadow: 0 3px 12px #28345010; }
.line-expo { --event-color: #6b39d6; }
.line-demo { --event-color: #327bb1; }
.line-cafe { --event-color: #218374; }
.line-google { --event-color: #b6782d; }
.planner-event.line-demo { background: #f3f8fd; border-color: #dfebf7; border-left-color: var(--event-color); }
.planner-event.line-cafe { background: #f1faf7; border-color: #dceddf; border-left-color: var(--event-color); }
.planner-event.line-google { background: #fffbf3; border-color: #f0e7d5; border-left-color: var(--event-color); }
.event-time { min-width: 74px; font-size: 15px; font-weight: 750; padding-top: 4px; }
.event-time small { display: block; margin-top: 5px; color: var(--muted); font-weight: 400; font-size: 11px; }
.event-content { flex: 1; min-width: 0; }
.event-type { font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; color: var(--event-color); }
.event-content h3 { font-size: 15px; margin: 6px 0; line-height: 1.45; overflow-wrap: anywhere; }
.event-content p { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 6px 0; overflow-wrap: anywhere; }
.event-meta { display: flex; gap: 10px 18px; flex-wrap: wrap; color: var(--muted); font-size: 11px; line-height: 1.5; margin-top: 10px; }
.planner-event > svg { width: 17px; align-self: center; flex-shrink: 0; color: var(--event-color); }
.event-effective .event-meta span:last-child { color: #218374; font-weight: 650; }
.planner-empty { min-height: 170px; display: flex; gap: 15px; justify-content: center; align-items: center; color: #8190aa; font-size: 13px; text-align: center; padding: 20px 5px; }
.planner-empty > svg { width: 28px; height: 28px; color: #b29bdb; flex-shrink: 0; }
.planner-empty small { display: block; margin-top: 8px; font-size: 12px; line-height: 1.6; }
.planner-week .planner-event, .planner-month .planner-event { display: block; padding: 12px 10px; }
.planner-week .planner-event > svg, .planner-month .planner-event > svg { display: none; }
.planner-week .event-time, .planner-month .event-time { min-width: 0; font-size: 13px; margin-bottom: 9px; }
.planner-week .event-time small, .planner-month .event-time small { display: none; }
.planner-week .planner-day { padding: 12px 10px; }
.planner-week .planner-date { align-items: start; flex-direction: column; }
.planner-week .planner-empty, .planner-month .planner-empty { font-size: 11px; min-height: 90px; flex-direction: column; }
.planner-week .event-content h3, .planner-month .event-content h3 { font-size: 12px; }
.planner-week .event-meta, .planner-month .event-meta { gap: 5px; font-size: 10px; flex-direction: column; }
.planner-month .planner-day { border: 0; border-right: 1px solid #e6eaf3; border-bottom: 1px solid #e6eaf3; border-radius: 0; padding: 12px 8px; }
.planner-month .planner-date { margin-bottom: 10px; padding-bottom: 10px; align-items: start; }
.planner-month .planner-date strong { font-size: 19px; }
.planner-month .planner-date small { display: none; }
.planner-month .planner-placeholder { background: #f7f8fc; border-right: 1px solid #e6eaf3; border-bottom: 1px solid #e6eaf3; }
.planner-month .event-content p { display: none; }
.planner-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; margin: 22px 0; font-size: 12px; color: var(--muted); }
.planner-legend > span { display: flex; align-items: center; gap: 8px; }
.planner-legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--event-color); }
.planner-legend > small { margin-left: auto; }
.calendar-settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.connection-panel { padding: 30px; min-width: 0; margin-bottom: 24px; }
.connection-panel h2 { font-size: 21px; line-height: 1.45; margin: 12px 0 18px; }
.connection-panel p { font-size: 14px; color: var(--muted); line-height: 1.8; overflow-wrap: anywhere; }
.connection-status { border-radius: 12px; padding: 15px 18px; background: #f2edff; color: #5c389c; margin: 22px 0; font-size: 14px; font-weight: 650; }
.calendar-choice { display: grid; gap: 14px; }
.calendar-choice label { font-size: 14px; font-weight: 650; }
.connection-steps { padding-left: 24px; }
.connection-steps li { padding-left: 8px; margin-bottom: 22px; }
.connection-steps li::marker { color: #6637b3; font-weight: 750; }
.connection-steps p { margin-top: 7px; }
.disconnect-details { margin-top: 30px; border-top: 1px solid #e5e9f2; padding-top: 20px; }
.disconnect-details summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.calendar-conflict { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px; margin-bottom: 14px; }
.calendar-conflict h3 { margin: 0 0 8px; font-size: 16px; }
.calendar-conflict p { margin: 0; font-size: 14px; color: var(--muted); }
.calendar-error { background: #fff3ed; border-radius: 10px; padding: 12px; color: #985329 !important; }
.event-editor { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.event-editor .field { display: grid; align-content: start; gap: 8px; }
.event-editor label { font-size: 13px; font-weight: 650; }
.event-editor input, .event-editor select, .event-editor textarea { width: 100%; }
.conflict-versions { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0; }
.conflict-versions > div { padding: 20px; background: #f8f7fc; border-radius: 12px; min-width: 0; }
@media (max-width: 1200px) {
    .planner-week { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .planner-week .planner-date { flex-direction: row; }
    .planner-week .event-content h3 { font-size: 14px; }
}
@media (max-width: 960px) {
    .calendar-settings-grid { grid-template-columns: 1fr; }
    .planner-month { grid-template-columns: repeat(7, minmax(0, 1fr)); }
    .planner-month .planner-date span { font-size: 9px; }
    .planner-month .planner-date .today-tag { padding: 3px; }
}
@media (max-width: 720px) {
    .activity-filters, .agenda-controls { padding: 18px; }
    .activity-filters label, .agenda-filters label, .activity-filters label.filter-search, .agenda-filters label.filter-search { min-width: 0; width: 100%; flex: 1 1 100%; }
    .activity-body { padding: 20px; }
    .activity-avatar { display: none; }
    .activity-date { margin-left: 0; }
    .change-labels { display: none; }
    .change-row { grid-template-columns: 1fr 1fr; gap: 10px; }
    .change-row > strong { grid-column: 1 / -1; }
    .change-row small { display: block; color: var(--muted); font-size: 10px; margin-bottom: 4px; }
    .agenda-navigation { gap: 12px; }
    .agenda-navigation .date-control { flex: 1 1 100%; justify-content: space-between; }
    .agenda-navigation h2 { font-size: 16px; }
    .agenda-navigation .tabs { flex: 1; }
    .agenda-navigation .tabs a { flex: 1; text-align: center; }
    .planner-week { grid-template-columns: 1fr 1fr; }
    .planner-month { grid-template-columns: 1fr; gap: 12px; border: 0; background: transparent; overflow: visible; }
    .planner-placeholder { display: none; }
    .planner-month .planner-day { border: 1px solid #e1e7f2; border-radius: 14px; padding: 16px; }
    .planner-month .planner-date { align-items: center; }
    .planner-date > div, .planner-month .planner-date > div { flex-direction: row-reverse; align-items: center; gap: 12px; }
    .planner-month .planner-date span { font-size: 12px; }
    .planner-month .planner-date small { display: block; }
    .planner-month .planner-empty { min-height: 30px; padding: 5px; flex-direction: row; }
    .planner-month .planner-empty > svg { width: 16px; height: 16px; }
    .planner-month .planner-event { display: flex; gap: 16px; }
    .planner-month .event-content h3 { font-size: 14px; }
    .planner-month .event-meta { flex-direction: row; gap: 12px; }
    .planner-event { padding: 16px 12px; gap: 12px; }
    .event-time { min-width: 57px; font-size: 13px; }
    .planner-event > svg { display: none; }
    .planner-legend > small { margin-left: 0; line-height: 1.6; }
    .connection-panel { padding: 22px; }
    .event-editor, .conflict-versions { grid-template-columns: 1fr; }
    .calendar-conflict { flex-direction: column; align-items: stretch; }
}
@media (max-width: 420px) {
    .planner-week { grid-template-columns: 1fr; }
    .planner-week .planner-empty { min-height: 50px; flex-direction: row; }
    .planner-week .planner-event { display: flex; gap: 16px; }
    .activity-body { padding: 16px; }
}
.activity-filters .filters, .agenda-controls .filters { border: 0; box-shadow: none; padding: 0; background: transparent; }
.activity-filters label, .agenda-filters label { flex-basis: 165px; min-width: 165px; }
.activity-filters label.filter-search, .agenda-filters label.filter-search { flex-basis: 230px; }
.activity-tabs { width: fit-content; margin: 0 0 24px; }
@media (max-width: 720px) {
    .activity-filters label, .agenda-filters label, .activity-filters label.filter-search, .agenda-filters label.filter-search { min-width: 0; flex-basis: 100%; }
}

/* Calendario: superficie mensual compacta, selección y horarios reales. */
.agenda-heading { margin-bottom: 20px; }
.agenda-summary { display: flex; align-items: center; gap: 12px 26px; flex-wrap: wrap; color: #64718c; font-size: 12px; margin: 0 0 24px; }
.agenda-summary > span { display: inline-flex; align-items: center; gap: 7px; }
.agenda-summary strong { color: #1b2b50; font-size: 15px; }
.agenda-summary > small { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.agenda-summary svg { width: 14px; height: 14px; }
.summary-dot { width: 6px; height: 6px; border-radius: 50%; background: #9468e7; }
.summary-dot.completed { background: #209581; }
.calendar-workspace { background: #fff; border: 1px solid #e0e5f0; border-radius: 20px; box-shadow: 0 5px 25px #17244c04; min-width: 0; }
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 24px; flex-wrap: wrap; }
.calendar-period { display: flex; align-items: center; gap: 16px; }
.calendar-period h2 { margin: 0; font-size: 21px; font-weight: 750; text-transform: capitalize; letter-spacing: -.5px; }
.calendar-arrows { display: flex; border: 1px solid #e6eaf3; border-radius: 10px; overflow: hidden; }
.calendar-arrows a { display: grid; place-items: center; width: 33px; height: 35px; font-size: 24px; color: #64708a; }
.calendar-arrows a:hover { background: #f5f1ff; color: #6425d8; }
.calendar-arrows a + a { border-left: 1px solid #e6eaf3; }
.calendar-today { border: 1px solid #e4e8f2; border-radius: 8px; font-size: 12px; font-weight: 650; color: #465574; padding: 8px 13px; }
.calendar-view-switch { display: flex; gap: 3px; background: #f3f4f9; padding: 4px; border-radius: 10px; }
.calendar-view-switch a { padding: 9px 19px; font-size: 12px; color: #75809a; border-radius: 7px; }
.calendar-view-switch a.is-active { background: #fff; color: #6126d6; font-weight: 750; box-shadow: 0 2px 5px #17244c0d; }
.calendar-search { padding: 0 24px 20px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.calendar-search > label { min-width: 150px; flex: 0 1 160px; }
.calendar-search label.calendar-search-field { flex: 1 1 235px; }
.calendar-search input, .calendar-search select { width: 100%; height: 40px; border: 1px solid #e8ebf3; background: #fafbfe; border-radius: 9px; font-size: 12px; padding: 8px 12px; color: #4d5c77; min-width: 0; }
.calendar-search .button { min-height: 40px; padding: 8px 16px; font-size: 12px; }
.calendar-extra-filters { position: relative; }
.calendar-extra-filters summary { cursor: pointer; padding: 10px 5px; font-size: 12px; color: #6a7490; }
.calendar-extra-filters > div { position: absolute; right: 0; top: 100%; z-index: 5; background: #fff; box-shadow: 0 10px 35px #17244c20; border: 1px solid #e0e5f0; border-radius: 13px; padding: 18px; width: 260px; display: grid; gap: 16px; }
.calendar-extra-filters label { display: grid; gap: 8px; font-size: 12px; color: #65738c; }
.calendar-reset { font-size: 12px; color: #6c36c6; padding: 10px 0; }
.calendar-month-layout { display: grid; grid-template-columns: minmax(0,1fr) 278px; border-top: 1px solid #e6eaf3; }
.month-surface { min-width: 0; }
.month-weekdays { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); background: #fbfcff; }
.month-weekdays span { padding: 13px 0; text-align: center; font-size: 10px; font-weight: 700; color: #8893a9; text-transform: uppercase; letter-spacing: .065em; border-bottom: 1px solid #e9edf5; }
.month-matrix { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); }
.month-cell { min-width: 0; height: 132px; padding: 9px 5px 6px; border-right: 1px solid #edf0f6; border-bottom: 1px solid #edf0f6; position: relative; }
.month-cell:nth-child(7n) { border-right: 0; }
.month-cell:nth-child(7n), .month-cell:nth-child(7n - 1) { background: #fcfcfe; }
.month-cell.is-outside { background: #fafbfe; }
.month-cell.is-selected { background: #f6f2ff; box-shadow: inset 0 0 0 1px #bda4ec; }
.month-day-number { display: grid; place-items: center; width: 28px; height: 28px; font-size: 12px; font-weight: 650; color: #34445f; margin: 0 0 4px 3px; border-radius: 50%; }
.is-outside .month-day-number { color: #bdc4d2; }
.is-today .month-day-number { color: #6935d8; background: #ede5ff; }
.is-selected .month-day-number { color: #fff; background: #6528db; }
.month-appointment { display: flex; align-items: center; gap: 4px; min-width: 0; padding: 4px 3px; border-radius: 5px; font-size: 10px; color: #47566f; line-height: 1.25; margin-bottom: 1px; }
.month-appointment:hover { background: #eee8fb; }
.month-appointment i, .calendar-line-legend i, .month-mobile-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--event-color); flex-shrink: 0; }
.month-appointment time { font-size: 9px; flex-shrink: 0; color: #78849a; font-variant-numeric: tabular-nums; }
.month-appointment span { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; font-weight: 600; }
.month-more { display: block; font-size: 10px; color: #805bad; margin: 4px 0 0 10px; }
.month-mobile-dots { display: none; }
.selected-day-panel { background: #fdfcff; border-left: 1px solid #e6eaf3; display: flex; flex-direction: column; min-width: 0; scroll-margin-top: 90px; }
.selected-day-panel > header { padding: 24px 20px 20px; border-bottom: 1px solid #edeaf5; }
.selected-day-panel > header > span { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: #8e7aad; font-weight: 700; }
.selected-day-panel > header > div { display: flex; align-items: center; gap: 10px; margin-top: 7px; }
.selected-day-panel h3 { font-size: 23px; letter-spacing: -.6px; margin: 0; }
.selected-day-panel header p { color: #99a0b1; font-size: 11px; margin: 7px 0 0; }
.day-count { border-radius: 7px; padding: 3px 8px; font-size: 11px; background: #ede6fb; color: #8052c0; }
.selected-day-events { padding: 18px 16px; flex: 1; max-height: 520px; overflow-y: auto; }
.day-appointment { display: block; padding: 15px; background: #fff; border: 1px solid #e7e8f0; border-left: 3px solid var(--event-color); border-radius: 11px; margin-bottom: 12px; color: #243458; }
.day-appointment:hover { box-shadow: 0 4px 12px #20315d0a; border-top-color: #d8c8f5; }
.day-appointment-time { display: flex; align-items: center; justify-content: space-between; gap: 5px; font-size: 10px; font-weight: 650; color: #77849a; }
.day-appointment-time > span { color: var(--event-color); font-size: 9px; letter-spacing: .04em; text-transform: uppercase; }
.day-appointment h4 { font-size: 13px; margin: 12px 0 6px; line-height: 1.45; overflow-wrap: anywhere; }
.day-appointment p { font-size: 11px; color: #8691a6; margin: 0 0 10px; line-height: 1.5; }
.day-appointment-owner { display: flex; align-items: center; gap: 6px; font-size: 10px; color: #7c89a0; }
.day-appointment-owner svg { width: 12px; height: 12px; }
.day-appointment > small { display: block; margin-top: 10px; font-size: 10px; color: #7e7196; }
.day-appointment > small.is-effective { color: #258472; }
.selected-day-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid #eee9f6; padding: 18px 20px; color: #7442c4; font-size: 11px; font-weight: 650; }
.selected-day-link svg { width: 15px; height: 15px; }
.calendar-day-empty { padding: 35px 10px; text-align: center; color: #939db0; }
.calendar-day-empty > svg { width: 38px; height: 38px; color: #c0ade3; margin-bottom: 15px; }
.calendar-day-empty h4 { font-size: 14px; color: #54617f; margin: 0 0 10px; }
.calendar-day-empty p { font-size: 12px; line-height: 1.6; }
.calendar-day-empty a { font-size: 11px; color: #7955b6; }
.calendar-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 24px; border-top: 1px solid #e8ecf4; }
.calendar-line-legend { display: flex; gap: 20px; align-items: center; }
.calendar-line-legend span { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; color: #7c88a0; }
.calendar-bottom > a { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; color: #7d699b; }
.calendar-bottom svg { width: 14px; height: 14px; }
.agenda-footnote { margin: 16px 2px 0; font-size: 11px; color: #8e99af; line-height: 1.7; }
.schedule-scroll { max-height: 730px; overflow: auto; border-top: 1px solid #e6eaf3; overscroll-behavior: contain; }
.schedule-board { min-width: 0; }
.schedule-head, .schedule-body { display: grid; grid-template-columns: 58px repeat(var(--days),minmax(0,1fr)); }
.schedule-head { position: sticky; top: 0; z-index: 3; background: #fff; border-bottom: 1px solid #e6eaf3; }
.schedule-zone { font-size: 10px; color: #a0a9b9; display: grid; place-items: end center; padding-bottom: 12px; }
.schedule-day-head { padding: 16px 6px 12px; display: flex; align-items: center; flex-direction: column; gap: 5px; border-left: 1px solid #edf0f6; }
.schedule-day-head > span { font-size: 10px; text-transform: uppercase; color: #939fb4; }
.schedule-day-head strong { font-size: 23px; color: #3b4965; display: grid; place-items: center; width: 37px; height: 37px; border-radius: 50%; }
.schedule-day-head.is-today strong { background: #6225d8; color: white; }
.schedule-day-head small { font-size: 9px; color: #a0a9ba; }
.schedule-body { height: var(--board-height); }
.schedule-hours { position: relative; background: #fcfcfe; }
.schedule-hours span { position: absolute; left: 10px; font-size: 10px; color: #9aa4b6; padding-top: 4px; }
.schedule-track { position: relative; border-left: 1px solid #e9edf5; background: repeating-linear-gradient(to bottom,transparent 0px,transparent 32px,#f3f5f9 32px,#f3f5f9 33px,transparent 33px,transparent 65px,#e8ecf4 65px,#e8ecf4 66px); }
.schedule-track.is-today { background-color: #fdfbff; }
.schedule-event { position: absolute; padding: 5px 7px; border-radius: 6px; border: 1px solid #e6dbfb; border-left: 3px solid var(--event-color); background: #f1eafa; overflow: hidden; min-width: 0; color: #594275; }
.schedule-event.line-demo { background: #eaf3fc; border-color: #d8e9f8; border-left-color: var(--event-color); color: #375f84; }
.schedule-event.line-cafe { background: #e9f6f0; border-color: #d7ece4; border-left-color: var(--event-color); color: #3e7167; }
.schedule-event time { font-size: 9px; display: block; white-space: nowrap; font-variant-numeric: tabular-nums; }
.schedule-event strong { display: block; font-size: 11px; line-height: 1.4; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.schedule-event small { display: block; font-size: 10px; margin-top: 5px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.schedule-event:hover { filter: brightness(.98); outline: 1px solid var(--event-color); z-index: 2; }
.is-cancelled { opacity: .55; }
.is-cancelled h4, .is-cancelled strong, .is-cancelled > span { text-decoration: line-through; }
.schedule-mobile-list { display: none; }
.export-direction { display: flex; align-items: center; gap: 14px; color: #713fc2; font-size: 12px; font-weight: 700; border-radius: 12px; padding: 16px; background: #f4effd; }
.export-direction svg { width: 20px; height: 20px; }
@media (min-width: 1600px) { .calendar-month-layout { grid-template-columns: minmax(0,1fr) 320px; } .month-cell { height: 145px; padding: 12px 8px; } .month-appointment { font-size: 11px; padding: 5px; } }
@media (max-width: 1200px) { .calendar-month-layout { grid-template-columns: minmax(0,1fr); } .selected-day-panel { border-left: 0; border-top: 1px solid #e6eaf3; } .selected-day-events { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; max-height: none; } .selected-day-events .day-appointment { margin: 0; } .calendar-day-empty { grid-column: 1/-1; padding: 15px; } .selected-day-panel > header { padding: 18px 20px; } }
@media (max-width: 720px) {
    .agenda-summary { gap: 10px 18px; margin-bottom: 18px; }
    .agenda-summary > small { margin-left: 0; flex-basis: 100%; }
    .calendar-toolbar { padding: 18px 14px; gap: 16px; }
    .calendar-period { gap: 10px; width: 100%; }
    .calendar-period h2 { font-size: 17px; flex: 1; }
    .calendar-arrows a { width: 27px; height: 33px; }
    .calendar-view-switch { width: 100%; }
    .calendar-view-switch a { flex: 1; text-align: center; }
    .calendar-search { padding: 0 14px 16px; gap: 8px; }
    .calendar-search label.calendar-search-field { flex-basis: 100%; }
    .calendar-search > label { flex: 1 1 40%; min-width: 0; }
    .calendar-extra-filters { margin-right: auto; }
    .calendar-extra-filters > div { right: auto; left: 0; width: min(260px,75vw); }
    .month-cell { height: 66px; padding: 7px 2px; }
    .month-day-number { width: 30px; height: 30px; margin: 0 auto; }
    .month-appointments { display: none; }
    .month-mobile-dots { display: flex; align-items: center; justify-content: center; gap: 3px; height: 18px; }
    .month-mobile-dots small { font-size: 9px; color: #8c77a3; }
    .month-weekdays span { font-size: 9px; }
    .selected-day-events { display: block; padding: 14px; }
    .selected-day-events .day-appointment { margin-bottom: 12px; }
    .selected-day-panel h3 { font-size: 21px; }
    .calendar-bottom { padding: 16px 14px; }
    .schedule-week { display: none; }
    .schedule-mobile-list { display: block; border-top: 1px solid #e7ebf4; padding: 0 16px; }
    .schedule-mobile-list > section { padding: 20px 0; border-bottom: 1px solid #e8ecf4; }
    .schedule-mobile-list header { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
    .schedule-mobile-list header > div { width: 42px; text-align: center; padding: 7px; border-radius: 10px; background: #f2edfc; color: #7249b9; }
    .schedule-mobile-list header span { display: block; font-size: 9px; }
    .schedule-mobile-list header strong { font-size: 21px; }
    .schedule-mobile-list h3 { font-size: 14px; flex: 1; margin: 0; text-transform: capitalize; }
    .schedule-mobile-list h3 small { display: block; font-size: 10px; color: #8f79b2; margin-top: 5px; }
    .schedule-mobile-list header > a { color: #9366c9; padding: 10px; }
    .schedule-mobile-list header svg { width: 17px; height: 17px; }
    .mobile-day-empty { font-size: 12px; color: #9ba4b4; margin: 0 0 0 54px; }
    .schedule-head, .schedule-body { grid-template-columns: 45px repeat(var(--days),minmax(0,1fr)); }
    .schedule-hours span { left: 6px; font-size: 9px; }
    .schedule-scroll { max-height: 610px; }
}
.calendar-search .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.calendar-filter-drawer > summary { display: none; }
@media (max-width: 720px) {
    .agenda-heading .heading-actions { display: flex; flex-wrap: nowrap; gap: 8px; width: 100%; }
    .agenda-heading .heading-actions .button { flex: 1; width: auto; min-width: 0; padding: 10px 8px; font-size: 11px; }
    .agenda-heading .heading-actions svg { width: 15px; height: 15px; }
    .calendar-filter-drawer > summary { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 0 16px 18px; font-size: 12px; color: #7d699b; list-style: none; }
    .calendar-filter-drawer > summary::after { content: '+'; margin-left: auto; font-size: 17px; }
    .calendar-filter-drawer[open] > summary::after { content: '−'; }
    .calendar-filter-drawer > summary small { font-size: 10px; border-radius: 8px; padding: 3px 7px; background: #f2ecfd; }
}
